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 BOOTCYCLE_JVM_ARGS_BIG 648 JAVA_FLAGS_BIG 649 JAVA_FLAGS 650 TEST_JOBS 651 JOBS 652 MEMORY_SIZE 653 NUM_CORES 654 ENABLE_GENERATE_CLASSLIST 655 BUILD_FAILURE_HANDLER 656 ENABLE_INTREE_EC 657 VALID_JVM_FEATURES 658 JVM_FEATURES_custom 659 JVM_FEATURES_zeroshark 660 JVM_FEATURES_zero 661 JVM_FEATURES_minimal 662 JVM_FEATURES_core 663 JVM_FEATURES_client 664 JVM_FEATURES_server 665 INCLUDE_GRAAL 666 ELF_LIBS 667 ELF_CFLAGS 668 STLPORT_LIB 669 LIBZIP_CAN_USE_MMAP 670 LIBDL 671 LIBM 672 USE_EXTERNAL_LCMS 673 LCMS_LIBS 674 LCMS_CFLAGS 675 USE_EXTERNAL_LIBZ 676 USE_EXTERNAL_LIBPNG 677 PNG_LIBS 678 PNG_CFLAGS 679 USE_EXTERNAL_LIBGIF 680 USE_EXTERNAL_LIBJPEG 681 LLVM_LIBS 682 LLVM_LDFLAGS 683 LLVM_CFLAGS 684 LLVM_CONFIG 685 LIBFFI_LIB_FILE 686 ENABLE_LIBFFI_BUNDLING 687 LIBFFI_LIBS 688 LIBFFI_CFLAGS 689 ALSA_LIBS 690 ALSA_CFLAGS 691 FREETYPE_BUNDLE_LIB_PATH 692 FREETYPE_LIBS 693 FREETYPE_CFLAGS 694 CUPS_CFLAGS 695 X_EXTRA_LIBS 696 X_LIBS 697 X_PRE_LIBS 698 X_CFLAGS 699 XMKMF 700 MSVCP_DLL 701 MSVCR_DLL 702 LIBCXX 703 FIXPATH_DETACH_FLAG 704 FIXPATH 705 BUILD_GTEST 706 ENABLE_AOT 707 GCOV_ENABLED 708 ZIP_EXTERNAL_DEBUG_SYMBOLS 709 COPY_DEBUG_SYMBOLS 710 COMPILE_WITH_DEBUG_SYMBOLS 711 CFLAGS_WARNINGS_ARE_ERRORS 712 BUILD_CC_DISABLE_WARNING_PREFIX 713 DISABLE_WARNING_PREFIX 714 WARNINGS_AS_ERRORS 715 COMPILER_SUPPORTS_TARGET_BITS_FLAG 716 LDFLAGS_TESTEXE 717 LDFLAGS_TESTLIB 718 CXXFLAGS_TESTEXE 719 CXXFLAGS_TESTLIB 720 CFLAGS_TESTEXE 721 CFLAGS_TESTLIB 722 OPENJDK_BUILD_JVM_LIBS 723 OPENJDK_BUILD_JVM_ASFLAGS 724 OPENJDK_BUILD_JVM_LDFLAGS 725 OPENJDK_BUILD_JVM_CFLAGS 726 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 727 OPENJDK_BUILD_LDFLAGS_CXX_JDK 728 OPENJDK_BUILD_JDKEXE_LIBS 729 OPENJDK_BUILD_JDKLIB_LIBS 730 OPENJDK_BUILD_LDFLAGS_JDKEXE 731 OPENJDK_BUILD_LDFLAGS_JDKLIB 732 OPENJDK_BUILD_CXXFLAGS_JDKEXE 733 OPENJDK_BUILD_CXXFLAGS_JDKLIB 734 OPENJDK_BUILD_CFLAGS_JDKEXE 735 OPENJDK_BUILD_CFLAGS_JDKLIB 736 OPENJDK_BUILD_CXXSTD_CXXFLAG 737 JVM_LIBS 738 JVM_ASFLAGS 739 JVM_LDFLAGS 740 JVM_CFLAGS 741 LDFLAGS_HASH_STYLE 742 LDFLAGS_CXX_JDK 743 JDKEXE_LIBS 744 JDKLIB_LIBS 745 LDFLAGS_JDKEXE 746 LDFLAGS_JDKLIB 747 CXXFLAGS_JDKEXE 748 CXXFLAGS_JDKLIB 749 CFLAGS_JDKEXE 750 CFLAGS_JDKLIB 751 MACOSX_VERSION_MIN 752 CXXSTD_CXXFLAG 753 JDK_ARCH_ABI_PROP_NAME 754 CXX_O_FLAG_SIZE 755 CXX_O_FLAG_NONE 756 CXX_O_FLAG_DEBUG 757 CXX_O_FLAG_NORM 758 CXX_O_FLAG_HI 759 CXX_O_FLAG_HIGHEST 760 CXX_O_FLAG_HIGHEST_JVM 761 C_O_FLAG_SIZE 762 C_O_FLAG_NONE 763 C_O_FLAG_DEBUG 764 C_O_FLAG_NORM 765 C_O_FLAG_HI 766 C_O_FLAG_HIGHEST 767 C_O_FLAG_HIGHEST_JVM 768 JVM_CFLAGS_SYMBOLS 769 CXXFLAGS_DEBUG_SYMBOLS 770 CFLAGS_DEBUG_SYMBOLS 771 CXX_FLAG_DEPS 772 C_FLAG_DEPS 773 SHARED_LIBRARY_FLAGS 774 SET_SHARED_LIBRARY_MAPFILE 775 SET_SHARED_LIBRARY_NAME 776 SET_SHARED_LIBRARY_ORIGIN 777 SET_EXECUTABLE_ORIGIN 778 CXX_FLAG_REORDER 779 C_FLAG_REORDER 780 JVM_RCFLAGS 781 RC_FLAGS 782 AR_OUT_OPTION 783 LD_OUT_OPTION 784 EXE_OUT_OPTION 785 CC_OUT_OPTION 786 STRIPFLAGS 787 ARFLAGS 788 COMPILER_BINDCMD_FILE_FLAG 789 COMPILER_COMMAND_FILE_FLAG 790 COMPILER_TARGET_BITS_FLAG 791 JT_HOME 792 JTREGEXE 793 HOTSPOT_TOOLCHAIN_TYPE 794 USING_BROKEN_SUSE_LD 795 PACKAGE_PATH 796 BUILD_AS 797 BUILD_LDCXX 798 BUILD_LD 799 BUILD_STRIP 800 BUILD_OBJCOPY 801 BUILD_AR 802 BUILD_NM 803 BUILD_CXX 804 BUILD_CC 805 BUILD_SYSROOT_LDFLAGS 806 BUILD_SYSROOT_CFLAGS 807 ac_ct_OBJDUMP 808 OBJDUMP 809 ac_ct_OBJCOPY 810 OBJCOPY 811 ac_ct_NM 812 ac_ct_STRIP 813 GNM 814 NM 815 STRIP 816 MSBUILD 817 DUMPBIN 818 RC 819 MT 820 LIPO 821 ac_ct_AR 822 AR 823 AS 824 LDCXX 825 LD 826 CXXCPP 827 CPP 828 CXX_VERSION_NUMBER 829 CC_VERSION_NUMBER 830 ac_ct_CXX 831 CXXFLAGS 832 CXX 833 TOOLCHAIN_PATH_CXX 834 POTENTIAL_CXX 835 OBJEXT 836 EXEEXT 837 ac_ct_CC 838 CPPFLAGS 839 LDFLAGS 840 CFLAGS 841 CC 842 TOOLCHAIN_PATH_CC 843 POTENTIAL_CC 844 TOOLCHAIN_VERSION 845 VS_LIB 846 VS_INCLUDE 847 VS_PATH 848 CYGWIN_LINK 849 SYSROOT_LDFLAGS 850 SYSROOT_CFLAGS 851 EXTRA_LDFLAGS 852 EXTRA_CXXFLAGS 853 EXTRA_CFLAGS 854 EXE_SUFFIX 855 OBJ_SUFFIX 856 STATIC_LIBRARY 857 SHARED_LIBRARY 858 STATIC_LIBRARY_SUFFIX 859 SHARED_LIBRARY_SUFFIX 860 LIBRARY_PREFIX 861 TOOLCHAIN_TYPE 862 STATIC_BUILD 863 IMPORT_MODULES_MAKE 864 IMPORT_MODULES_SRC 865 IMPORT_MODULES_MAN 866 IMPORT_MODULES_LEGAL 867 IMPORT_MODULES_CONF 868 IMPORT_MODULES_LIBS 869 IMPORT_MODULES_CMDS 870 IMPORT_MODULES_CLASSES 871 BUILD_OUTPUT 872 JDK_TOPDIR 873 NASHORN_TOPDIR 874 HOTSPOT_TOPDIR 875 JAXWS_TOPDIR 876 JAXP_TOPDIR 877 CORBA_TOPDIR 878 LANGTOOLS_TOPDIR 879 EXTERNAL_BUILDJDK 880 BUILD_JDK 881 CREATE_BUILDJDK 882 JLINK 883 JMOD 884 JAVAC_FLAGS 885 BOOT_JDK_MODULAR 886 BOOT_JDK_SOURCETARGET 887 JARSIGNER 888 JAR 889 JAVAH 890 JAVAC 891 JAVA 892 BOOT_JDK 893 JAVA_CHECK 894 JAVAC_CHECK 895 VERSION_IS_GA 896 VERSION_SHORT 897 VERSION_STRING 898 VERSION_NUMBER_FOUR_POSITIONS 899 VERSION_NUMBER 900 VERSION_OPT 901 VERSION_BUILD 902 VERSION_PRE 903 VERSION_PATCH 904 VERSION_SECURITY 905 VERSION_MINOR 906 VERSION_MAJOR 907 MACOSX_BUNDLE_ID_BASE 908 MACOSX_BUNDLE_NAME_BASE 909 HOTSPOT_VM_DISTRO 910 COMPANY_NAME 911 JDK_RC_PLATFORM_NAME 912 PRODUCT_SUFFIX 913 PRODUCT_NAME 914 LAUNCHER_NAME 915 JLINK_KEEP_PACKAGED_MODULES 916 COPYRIGHT_YEAR 917 COMPRESS_JARS 918 INCLUDE_SA 919 UNLIMITED_CRYPTO 920 CACERTS_FILE 921 ENABLE_HEADLESS_ONLY 922 DEFAULT_MAKE_TARGET 923 OS_VERSION_MICRO 924 OS_VERSION_MINOR 925 OS_VERSION_MAJOR 926 PKG_CONFIG 927 BASH_ARGS 928 SETFILE 929 CODESIGN 930 XATTR 931 DSYMUTIL 932 IS_GNU_TIME 933 PATCH 934 DTRACE 935 TIME 936 STAT 937 HG 938 READELF 939 OTOOL 940 LDD 941 ZIPEXE 942 UNZIP 943 TAR_SUPPORTS_TRANSFORM 944 TAR_INCLUDE_PARAM 945 TAR_CREATE_EXTRA_PARAM 946 TAR_TYPE 947 FIND_DELETE 948 OUTPUT_SYNC 949 OUTPUT_SYNC_SUPPORTED 950 CHECK_TOOLSDIR_MAKE 951 CHECK_TOOLSDIR_GMAKE 952 CHECK_MAKE 953 CHECK_GMAKE 954 MAKE 955 PKGHANDLER 956 CONFIGURESUPPORT_OUTPUTDIR 957 OUTPUT_ROOT 958 CONF_NAME 959 SPEC 960 SDKROOT 961 XCODEBUILD 962 JVM_VARIANT_MAIN 963 VALID_JVM_VARIANTS 964 JVM_VARIANTS 965 DEBUG_LEVEL 966 HOTSPOT_DEBUG_LEVEL 967 JDK_VARIANT 968 USERNAME 969 CANONICAL_TOPDIR 970 ORIGINAL_TOPDIR 971 TOPDIR 972 PATH_SEP 973 HOTSPOT_BUILD_CPU_DEFINE 974 HOTSPOT_BUILD_CPU_ARCH 975 HOTSPOT_BUILD_CPU 976 HOTSPOT_BUILD_OS_TYPE 977 HOTSPOT_BUILD_OS 978 OPENJDK_BUILD_BUNDLE_PLATFORM 979 OPENJDK_BUILD_OS_EXPORT_DIR 980 OPENJDK_BUILD_CPU_OSARCH 981 OPENJDK_BUILD_CPU_ISADIR 982 OPENJDK_BUILD_CPU_LEGACY_LIB 983 OPENJDK_BUILD_CPU_LEGACY 984 HOTSPOT_TARGET_CPU_DEFINE 985 HOTSPOT_TARGET_CPU_ARCH 986 HOTSPOT_TARGET_CPU 987 HOTSPOT_TARGET_OS_TYPE 988 HOTSPOT_TARGET_OS 989 DEFINE_CROSS_COMPILE_ARCH 990 OPENJDK_TARGET_BUNDLE_PLATFORM 991 OPENJDK_TARGET_OS_EXPORT_DIR 992 OPENJDK_TARGET_CPU_OSARCH 993 OPENJDK_TARGET_CPU_ISADIR 994 OPENJDK_TARGET_CPU_LEGACY_LIB 995 OPENJDK_TARGET_CPU_LEGACY 996 REQUIRED_OS_VERSION 997 REQUIRED_OS_ARCH 998 REQUIRED_OS_NAME 999 COMPILE_TYPE 1000 OPENJDK_TARGET_CPU_ENDIAN 1001 OPENJDK_TARGET_CPU_BITS 1002 OPENJDK_TARGET_CPU_ARCH 1003 OPENJDK_TARGET_CPU 1004 OPENJDK_TARGET_OS_ENV 1005 OPENJDK_TARGET_OS_TYPE 1006 OPENJDK_TARGET_OS 1007 OPENJDK_BUILD_CPU_ENDIAN 1008 OPENJDK_BUILD_CPU_BITS 1009 OPENJDK_BUILD_CPU_ARCH 1010 OPENJDK_BUILD_CPU 1011 OPENJDK_BUILD_OS_ENV 1012 OPENJDK_BUILD_OS_TYPE 1013 OPENJDK_BUILD_OS 1014 OPENJDK_BUILD_AUTOCONF_NAME 1015 OPENJDK_TARGET_AUTOCONF_NAME 1016 target_os 1017 target_vendor 1018 target_cpu 1019 target 1020 host_os 1021 host_vendor 1022 host_cpu 1023 host 1024 build_os 1025 build_vendor 1026 build_cpu 1027 build 1028 PANDOC 1029 NICE 1030 CPIO 1031 DF 1032 READLINK 1033 CYGPATH 1034 SED 1035 FGREP 1036 EGREP 1037 GREP 1038 AWK 1039 XARGS 1040 WHICH 1041 WC 1042 UNIQ 1043 UNAME 1044 TR 1045 TOUCH 1046 TEE 1047 TAR 1048 TAIL 1049 SORT 1050 SH 1051 RMDIR 1052 RM 1053 PRINTF 1054 NAWK 1055 MV 1056 MKTEMP 1057 MKDIR 1058 LS 1059 LN 1060 GZIP 1061 GUNZIP 1062 HEAD 1063 FIND 1064 FILE 1065 EXPR 1066 ECHO 1067 DIRNAME 1068 DIFF 1069 DATE 1070 CUT 1071 CP 1072 COMM 1073 CMP 1074 CHMOD 1075 CAT 1076 BASH 1077 BASENAME 1078 DATE_WHEN_CONFIGURED 1079 ORIGINAL_PATH 1080 CONFIGURE_COMMAND_LINE 1081 target_alias 1082 host_alias 1083 build_alias 1084 LIBS 1085 ECHO_T 1086 ECHO_N 1087 ECHO_C 1088 DEFS 1089 mandir 1090 localedir 1091 libdir 1092 psdir 1093 pdfdir 1094 dvidir 1095 htmldir 1096 infodir 1097 docdir 1098 oldincludedir 1099 includedir 1100 localstatedir 1101 sharedstatedir 1102 sysconfdir 1103 datadir 1104 datarootdir 1105 libexecdir 1106 sbindir 1107 bindir 1108 program_transform_name 1109 prefix 1110 exec_prefix 1111 PACKAGE_URL 1112 PACKAGE_BUGREPORT 1113 PACKAGE_STRING 1114 PACKAGE_VERSION 1115 PACKAGE_TARNAME 1116 PACKAGE_NAME 1117 PATH_SEPARATOR 1118 SHELL' 1119 ac_subst_files='' 1120 ac_user_opts=' 1121 enable_option_checking 1122 with_target_bits 1123 enable_openjdk_only 1124 with_custom_make_dir 1125 with_jdk_variant 1126 enable_debug 1127 with_debug_level 1128 with_jvm_variants 1129 with_cpu_port 1130 with_devkit 1131 with_sys_root 1132 with_sysroot 1133 with_tools_dir 1134 with_toolchain_path 1135 with_extra_path 1136 with_sdk_name 1137 with_conf_name 1138 with_output_sync 1139 with_default_make_target 1140 enable_headless_only 1141 with_cacerts_file 1142 enable_unlimited_crypto 1143 with_copyright_year 1144 enable_keep_packaged_modules 1145 with_milestone 1146 with_update_version 1147 with_user_release_suffix 1148 with_build_number 1149 with_version_string 1150 with_version_pre 1151 with_version_opt 1152 with_version_build 1153 with_version_major 1154 with_version_minor 1155 with_version_security 1156 with_version_patch 1157 with_boot_jdk 1158 with_build_jdk 1159 with_add_source_root 1160 with_override_source_root 1161 with_adds_and_overrides 1162 with_override_langtools 1163 with_override_corba 1164 with_override_jaxp 1165 with_override_jaxws 1166 with_override_hotspot 1167 with_override_nashorn 1168 with_override_jdk 1169 with_import_hotspot 1170 with_import_modules 1171 enable_static_build 1172 with_toolchain_type 1173 with_extra_cflags 1174 with_extra_cxxflags 1175 with_extra_ldflags 1176 with_toolchain_version 1177 with_build_devkit 1178 with_jtreg 1179 with_abi_profile 1180 enable_warnings_as_errors 1181 with_native_debug_symbols 1182 enable_debug_symbols 1183 enable_zip_debug_info 1184 enable_native_coverage 1185 enable_dtrace 1186 enable_aot 1187 enable_hotspot_gtest 1188 with_stdc__lib 1189 with_msvcr_dll 1190 with_msvcp_dll 1191 with_x 1192 with_cups 1193 with_cups_include 1194 with_freetype 1195 with_freetype_include 1196 with_freetype_lib 1197 with_freetype_src 1198 enable_freetype_bundling 1199 with_alsa 1200 with_alsa_include 1201 with_alsa_lib 1202 with_libffi 1203 with_libffi_include 1204 with_libffi_lib 1205 enable_libffi_bundling 1206 with_libjpeg 1207 with_giflib 1208 with_libpng 1209 with_zlib 1210 with_lcms 1211 with_dxsdk 1212 with_dxsdk_lib 1213 with_dxsdk_include 1214 with_libelf 1215 with_libelf_include 1216 with_libelf_lib 1217 with_jvm_features 1218 with_jvm_interpreter 1219 enable_jtreg_failure_handler 1220 enable_generate_classlist 1221 with_num_cores 1222 with_memory_size 1223 with_jobs 1224 with_test_jobs 1225 with_boot_jdk_jvmargs 1226 with_sjavac_server_java 1227 enable_sjavac 1228 enable_javac_server 1229 enable_icecc 1230 enable_precompiled_headers 1231 enable_ccache 1232 with_ccache_dir 1233 ' 1234 ac_precious_vars='build_alias 1235 host_alias 1236 target_alias 1237 BASENAME 1238 BASH 1239 CAT 1240 CHMOD 1241 CMP 1242 COMM 1243 CP 1244 CUT 1245 DATE 1246 DIFF 1247 DIRNAME 1248 ECHO 1249 EXPR 1250 FILE 1251 FIND 1252 HEAD 1253 GUNZIP 1254 GZIP 1255 LN 1256 LS 1257 MKDIR 1258 MKTEMP 1259 MV 1260 NAWK 1261 PRINTF 1262 RM 1263 RMDIR 1264 SH 1265 SORT 1266 TAIL 1267 TAR 1268 TEE 1269 TOUCH 1270 TR 1271 UNAME 1272 UNIQ 1273 WC 1274 WHICH 1275 XARGS 1276 AWK 1277 GREP 1278 EGREP 1279 FGREP 1280 SED 1281 CYGPATH 1282 READLINK 1283 DF 1284 CPIO 1285 NICE 1286 PANDOC 1287 MAKE 1288 UNZIP 1289 ZIPEXE 1290 LDD 1291 OTOOL 1292 READELF 1293 HG 1294 STAT 1295 TIME 1296 DTRACE 1297 PATCH 1298 DSYMUTIL 1299 XATTR 1300 CODESIGN 1301 SETFILE 1302 PKG_CONFIG 1303 JAVA 1304 JAVAC 1305 JAVAH 1306 JAR 1307 JARSIGNER 1308 CC 1309 CFLAGS 1310 LDFLAGS 1311 LIBS 1312 CPPFLAGS 1313 CXX 1314 CXXFLAGS 1315 CCC 1316 CPP 1317 CXXCPP 1318 AS 1319 AR 1320 LIPO 1321 STRIP 1322 NM 1323 GNM 1324 OBJCOPY 1325 OBJDUMP 1326 BUILD_CC 1327 BUILD_CXX 1328 BUILD_NM 1329 BUILD_AR 1330 BUILD_OBJCOPY 1331 BUILD_STRIP 1332 JTREGEXE 1333 XMKMF 1334 FREETYPE_CFLAGS 1335 FREETYPE_LIBS 1336 ALSA_CFLAGS 1337 ALSA_LIBS 1338 LIBFFI_CFLAGS 1339 LIBFFI_LIBS 1340 PNG_CFLAGS 1341 PNG_LIBS 1342 LCMS_CFLAGS 1343 LCMS_LIBS 1344 ELF_CFLAGS 1345 ELF_LIBS 1346 ICECC_CMD 1347 ICECC_CREATE_ENV 1348 ICECC_WRAPPER 1349 CCACHE' 1350 1351 1352 # Initialize some variables set by options. 1353 ac_init_help= 1354 ac_init_version=false 1355 ac_unrecognized_opts= 1356 ac_unrecognized_sep= 1357 # The variables have the same names as the options, with 1358 # dashes changed to underlines. 1359 cache_file=/dev/null 1360 exec_prefix=NONE 1361 no_create= 1362 no_recursion= 1363 prefix=NONE 1364 program_prefix=NONE 1365 program_suffix=NONE 1366 program_transform_name=s,x,x, 1367 silent= 1368 site= 1369 srcdir= 1370 verbose= 1371 x_includes=NONE 1372 x_libraries=NONE 1373 1374 # Installation directory options. 1375 # These are left unexpanded so users can "make install exec_prefix=/foo" 1376 # and all the variables that are supposed to be based on exec_prefix 1377 # by default will actually change. 1378 # Use braces instead of parens because sh, perl, etc. also accept them. 1379 # (The list follows the same order as the GNU Coding Standards.) 1380 bindir='${exec_prefix}/bin' 1381 sbindir='${exec_prefix}/sbin' 1382 libexecdir='${exec_prefix}/libexec' 1383 datarootdir='${prefix}/share' 1384 datadir='${datarootdir}' 1385 sysconfdir='${prefix}/etc' 1386 sharedstatedir='${prefix}/com' 1387 localstatedir='${prefix}/var' 1388 includedir='${prefix}/include' 1389 oldincludedir='/usr/include' 1390 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1391 infodir='${datarootdir}/info' 1392 htmldir='${docdir}' 1393 dvidir='${docdir}' 1394 pdfdir='${docdir}' 1395 psdir='${docdir}' 1396 libdir='${exec_prefix}/lib' 1397 localedir='${datarootdir}/locale' 1398 mandir='${datarootdir}/man' 1399 1400 ac_prev= 1401 ac_dashdash= 1402 for ac_option 1403 do 1404 # If the previous option needs an argument, assign it. 1405 if test -n "$ac_prev"; then 1406 eval $ac_prev=\$ac_option 1407 ac_prev= 1408 continue 1409 fi 1410 1411 case $ac_option in 1412 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1413 *=) ac_optarg= ;; 1414 *) ac_optarg=yes ;; 1415 esac 1416 1417 # Accept the important Cygnus configure options, so we can diagnose typos. 1418 1419 case $ac_dashdash$ac_option in 1420 --) 1421 ac_dashdash=yes ;; 1422 1423 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1424 ac_prev=bindir ;; 1425 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1426 bindir=$ac_optarg ;; 1427 1428 -build | --build | --buil | --bui | --bu) 1429 ac_prev=build_alias ;; 1430 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1431 build_alias=$ac_optarg ;; 1432 1433 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1434 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1435 ac_prev=cache_file ;; 1436 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1437 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1438 cache_file=$ac_optarg ;; 1439 1440 --config-cache | -C) 1441 cache_file=config.cache ;; 1442 1443 -datadir | --datadir | --datadi | --datad) 1444 ac_prev=datadir ;; 1445 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1446 datadir=$ac_optarg ;; 1447 1448 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1449 | --dataroo | --dataro | --datar) 1450 ac_prev=datarootdir ;; 1451 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1452 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1453 datarootdir=$ac_optarg ;; 1454 1455 -disable-* | --disable-*) 1456 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1457 # Reject names that are not valid shell variable names. 1458 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1459 as_fn_error $? "invalid feature name: $ac_useropt" 1460 ac_useropt_orig=$ac_useropt 1461 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1462 case $ac_user_opts in 1463 *" 1464 "enable_$ac_useropt" 1465 "*) ;; 1466 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1467 ac_unrecognized_sep=', ';; 1468 esac 1469 eval enable_$ac_useropt=no ;; 1470 1471 -docdir | --docdir | --docdi | --doc | --do) 1472 ac_prev=docdir ;; 1473 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1474 docdir=$ac_optarg ;; 1475 1476 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1477 ac_prev=dvidir ;; 1478 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1479 dvidir=$ac_optarg ;; 1480 1481 -enable-* | --enable-*) 1482 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1483 # Reject names that are not valid shell variable names. 1484 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1485 as_fn_error $? "invalid feature name: $ac_useropt" 1486 ac_useropt_orig=$ac_useropt 1487 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1488 case $ac_user_opts in 1489 *" 1490 "enable_$ac_useropt" 1491 "*) ;; 1492 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1493 ac_unrecognized_sep=', ';; 1494 esac 1495 eval enable_$ac_useropt=\$ac_optarg ;; 1496 1497 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1498 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1499 | --exec | --exe | --ex) 1500 ac_prev=exec_prefix ;; 1501 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1502 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1503 | --exec=* | --exe=* | --ex=*) 1504 exec_prefix=$ac_optarg ;; 1505 1506 -gas | --gas | --ga | --g) 1507 # Obsolete; use --with-gas. 1508 with_gas=yes ;; 1509 1510 -help | --help | --hel | --he | -h) 1511 ac_init_help=long ;; 1512 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1513 ac_init_help=recursive ;; 1514 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1515 ac_init_help=short ;; 1516 1517 -host | --host | --hos | --ho) 1518 ac_prev=host_alias ;; 1519 -host=* | --host=* | --hos=* | --ho=*) 1520 host_alias=$ac_optarg ;; 1521 1522 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1523 ac_prev=htmldir ;; 1524 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1525 | --ht=*) 1526 htmldir=$ac_optarg ;; 1527 1528 -includedir | --includedir | --includedi | --included | --include \ 1529 | --includ | --inclu | --incl | --inc) 1530 ac_prev=includedir ;; 1531 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1532 | --includ=* | --inclu=* | --incl=* | --inc=*) 1533 includedir=$ac_optarg ;; 1534 1535 -infodir | --infodir | --infodi | --infod | --info | --inf) 1536 ac_prev=infodir ;; 1537 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1538 infodir=$ac_optarg ;; 1539 1540 -libdir | --libdir | --libdi | --libd) 1541 ac_prev=libdir ;; 1542 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1543 libdir=$ac_optarg ;; 1544 1545 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1546 | --libexe | --libex | --libe) 1547 ac_prev=libexecdir ;; 1548 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1549 | --libexe=* | --libex=* | --libe=*) 1550 libexecdir=$ac_optarg ;; 1551 1552 -localedir | --localedir | --localedi | --localed | --locale) 1553 ac_prev=localedir ;; 1554 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1555 localedir=$ac_optarg ;; 1556 1557 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1558 | --localstate | --localstat | --localsta | --localst | --locals) 1559 ac_prev=localstatedir ;; 1560 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1561 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1562 localstatedir=$ac_optarg ;; 1563 1564 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1565 ac_prev=mandir ;; 1566 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1567 mandir=$ac_optarg ;; 1568 1569 -nfp | --nfp | --nf) 1570 # Obsolete; use --without-fp. 1571 with_fp=no ;; 1572 1573 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1574 | --no-cr | --no-c | -n) 1575 no_create=yes ;; 1576 1577 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1578 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1579 no_recursion=yes ;; 1580 1581 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1582 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1583 | --oldin | --oldi | --old | --ol | --o) 1584 ac_prev=oldincludedir ;; 1585 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1586 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1587 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1588 oldincludedir=$ac_optarg ;; 1589 1590 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1591 ac_prev=prefix ;; 1592 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1593 prefix=$ac_optarg ;; 1594 1595 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1596 | --program-pre | --program-pr | --program-p) 1597 ac_prev=program_prefix ;; 1598 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1599 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1600 program_prefix=$ac_optarg ;; 1601 1602 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1603 | --program-suf | --program-su | --program-s) 1604 ac_prev=program_suffix ;; 1605 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1606 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1607 program_suffix=$ac_optarg ;; 1608 1609 -program-transform-name | --program-transform-name \ 1610 | --program-transform-nam | --program-transform-na \ 1611 | --program-transform-n | --program-transform- \ 1612 | --program-transform | --program-transfor \ 1613 | --program-transfo | --program-transf \ 1614 | --program-trans | --program-tran \ 1615 | --progr-tra | --program-tr | --program-t) 1616 ac_prev=program_transform_name ;; 1617 -program-transform-name=* | --program-transform-name=* \ 1618 | --program-transform-nam=* | --program-transform-na=* \ 1619 | --program-transform-n=* | --program-transform-=* \ 1620 | --program-transform=* | --program-transfor=* \ 1621 | --program-transfo=* | --program-transf=* \ 1622 | --program-trans=* | --program-tran=* \ 1623 | --progr-tra=* | --program-tr=* | --program-t=*) 1624 program_transform_name=$ac_optarg ;; 1625 1626 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1627 ac_prev=pdfdir ;; 1628 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1629 pdfdir=$ac_optarg ;; 1630 1631 -psdir | --psdir | --psdi | --psd | --ps) 1632 ac_prev=psdir ;; 1633 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1634 psdir=$ac_optarg ;; 1635 1636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1637 | -silent | --silent | --silen | --sile | --sil) 1638 silent=yes ;; 1639 1640 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1641 ac_prev=sbindir ;; 1642 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1643 | --sbi=* | --sb=*) 1644 sbindir=$ac_optarg ;; 1645 1646 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1647 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1648 | --sharedst | --shareds | --shared | --share | --shar \ 1649 | --sha | --sh) 1650 ac_prev=sharedstatedir ;; 1651 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1652 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1653 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1654 | --sha=* | --sh=*) 1655 sharedstatedir=$ac_optarg ;; 1656 1657 -site | --site | --sit) 1658 ac_prev=site ;; 1659 -site=* | --site=* | --sit=*) 1660 site=$ac_optarg ;; 1661 1662 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1663 ac_prev=srcdir ;; 1664 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1665 srcdir=$ac_optarg ;; 1666 1667 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1668 | --syscon | --sysco | --sysc | --sys | --sy) 1669 ac_prev=sysconfdir ;; 1670 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1671 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1672 sysconfdir=$ac_optarg ;; 1673 1674 -target | --target | --targe | --targ | --tar | --ta | --t) 1675 ac_prev=target_alias ;; 1676 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1677 target_alias=$ac_optarg ;; 1678 1679 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1680 verbose=yes ;; 1681 1682 -version | --version | --versio | --versi | --vers | -V) 1683 ac_init_version=: ;; 1684 1685 -with-* | --with-*) 1686 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1687 # Reject names that are not valid shell variable names. 1688 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1689 as_fn_error $? "invalid package name: $ac_useropt" 1690 ac_useropt_orig=$ac_useropt 1691 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1692 case $ac_user_opts in 1693 *" 1694 "with_$ac_useropt" 1695 "*) ;; 1696 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1697 ac_unrecognized_sep=', ';; 1698 esac 1699 eval with_$ac_useropt=\$ac_optarg ;; 1700 1701 -without-* | --without-*) 1702 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1703 # Reject names that are not valid shell variable names. 1704 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1705 as_fn_error $? "invalid package name: $ac_useropt" 1706 ac_useropt_orig=$ac_useropt 1707 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1708 case $ac_user_opts in 1709 *" 1710 "with_$ac_useropt" 1711 "*) ;; 1712 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1713 ac_unrecognized_sep=', ';; 1714 esac 1715 eval with_$ac_useropt=no ;; 1716 1717 --x) 1718 # Obsolete; use --with-x. 1719 with_x=yes ;; 1720 1721 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1722 | --x-incl | --x-inc | --x-in | --x-i) 1723 ac_prev=x_includes ;; 1724 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1725 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1726 x_includes=$ac_optarg ;; 1727 1728 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1729 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1730 ac_prev=x_libraries ;; 1731 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1732 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1733 x_libraries=$ac_optarg ;; 1734 1735 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1736 Try \`$0 --help' for more information" 1737 ;; 1738 1739 *=*) 1740 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1741 # Reject names that are not valid shell variable names. 1742 case $ac_envvar in #( 1743 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1744 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1745 esac 1746 eval $ac_envvar=\$ac_optarg 1747 export $ac_envvar ;; 1748 1749 *) 1750 # FIXME: should be removed in autoconf 3.0. 1751 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1752 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1753 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1754 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1755 ;; 1756 1757 esac 1758 done 1759 1760 if test -n "$ac_prev"; then 1761 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1762 as_fn_error $? "missing argument to $ac_option" 1763 fi 1764 1765 if test -n "$ac_unrecognized_opts"; then 1766 case $enable_option_checking in 1767 no) ;; 1768 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1769 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1770 esac 1771 fi 1772 1773 # Check all directory arguments for consistency. 1774 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1775 datadir sysconfdir sharedstatedir localstatedir includedir \ 1776 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1777 libdir localedir mandir 1778 do 1779 eval ac_val=\$$ac_var 1780 # Remove trailing slashes. 1781 case $ac_val in 1782 */ ) 1783 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1784 eval $ac_var=\$ac_val;; 1785 esac 1786 # Be sure to have absolute directory names. 1787 case $ac_val in 1788 [\\/$]* | ?:[\\/]* ) continue;; 1789 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1790 esac 1791 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1792 done 1793 1794 # There might be people who depend on the old broken behavior: `$host' 1795 # used to hold the argument of --host etc. 1796 # FIXME: To remove some day. 1797 build=$build_alias 1798 host=$host_alias 1799 target=$target_alias 1800 1801 # FIXME: To remove some day. 1802 if test "x$host_alias" != x; then 1803 if test "x$build_alias" = x; then 1804 cross_compiling=maybe 1805 elif test "x$build_alias" != "x$host_alias"; then 1806 cross_compiling=yes 1807 fi 1808 fi 1809 1810 ac_tool_prefix= 1811 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1812 1813 test "$silent" = yes && exec 6>/dev/null 1814 1815 1816 ac_pwd=`pwd` && test -n "$ac_pwd" && 1817 ac_ls_di=`ls -di .` && 1818 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1819 as_fn_error $? "working directory cannot be determined" 1820 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1821 as_fn_error $? "pwd does not report name of working directory" 1822 1823 1824 # Find the source files, if location was not specified. 1825 if test -z "$srcdir"; then 1826 ac_srcdir_defaulted=yes 1827 # Try the directory containing this script, then the parent directory. 1828 ac_confdir=`$as_dirname -- "$as_myself" || 1829 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1830 X"$as_myself" : 'X\(//\)[^/]' \| \ 1831 X"$as_myself" : 'X\(//\)$' \| \ 1832 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1833 $as_echo X"$as_myself" | 1834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1835 s//\1/ 1836 q 1837 } 1838 /^X\(\/\/\)[^/].*/{ 1839 s//\1/ 1840 q 1841 } 1842 /^X\(\/\/\)$/{ 1843 s//\1/ 1844 q 1845 } 1846 /^X\(\/\).*/{ 1847 s//\1/ 1848 q 1849 } 1850 s/.*/./; q'` 1851 srcdir=$ac_confdir 1852 if test ! -r "$srcdir/$ac_unique_file"; then 1853 srcdir=.. 1854 fi 1855 else 1856 ac_srcdir_defaulted=no 1857 fi 1858 if test ! -r "$srcdir/$ac_unique_file"; then 1859 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1860 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1861 fi 1862 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1863 ac_abs_confdir=`( 1864 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1865 pwd)` 1866 # When building in place, set srcdir=. 1867 if test "$ac_abs_confdir" = "$ac_pwd"; then 1868 srcdir=. 1869 fi 1870 # Remove unnecessary trailing slashes from srcdir. 1871 # Double slashes in file names in object file debugging info 1872 # mess up M-x gdb in Emacs. 1873 case $srcdir in 1874 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1875 esac 1876 for ac_var in $ac_precious_vars; do 1877 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1878 eval ac_env_${ac_var}_value=\$${ac_var} 1879 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1880 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1881 done 1882 1883 # 1884 # Report the --help message. 1885 # 1886 if test "$ac_init_help" = "long"; then 1887 # Omit some internal or obsolete options to make the list less imposing. 1888 # This message is too long to be a string in the A/UX 3.1 sh. 1889 cat <<_ACEOF 1890 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1891 1892 Usage: $0 [OPTION]... [VAR=VALUE]... 1893 1894 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1895 VAR=VALUE. See below for descriptions of some of the useful variables. 1896 1897 Defaults for the options are specified in brackets. 1898 1899 Configuration: 1900 -h, --help display this help and exit 1901 --help=short display options specific to this package 1902 --help=recursive display the short help of all the included packages 1903 -V, --version display version information and exit 1904 -q, --quiet, --silent do not print \`checking ...' messages 1905 --cache-file=FILE cache test results in FILE [disabled] 1906 -C, --config-cache alias for \`--cache-file=config.cache' 1907 -n, --no-create do not create output files 1908 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1909 1910 Installation directories: 1911 --prefix=PREFIX install architecture-independent files in PREFIX 1912 [$ac_default_prefix] 1913 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1914 [PREFIX] 1915 1916 By default, \`make install' will install all the files in 1917 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1918 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1919 for instance \`--prefix=\$HOME'. 1920 1921 For better control, use the options below. 1922 1923 Fine tuning of the installation directories: 1924 --bindir=DIR user executables [EPREFIX/bin] 1925 --sbindir=DIR system admin executables [EPREFIX/sbin] 1926 --libexecdir=DIR program executables [EPREFIX/libexec] 1927 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1928 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1929 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1930 --libdir=DIR object code libraries [EPREFIX/lib] 1931 --includedir=DIR C header files [PREFIX/include] 1932 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1933 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1934 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1935 --infodir=DIR info documentation [DATAROOTDIR/info] 1936 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1937 --mandir=DIR man documentation [DATAROOTDIR/man] 1938 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1939 --htmldir=DIR html documentation [DOCDIR] 1940 --dvidir=DIR dvi documentation [DOCDIR] 1941 --pdfdir=DIR pdf documentation [DOCDIR] 1942 --psdir=DIR ps documentation [DOCDIR] 1943 _ACEOF 1944 1945 cat <<\_ACEOF 1946 1947 X features: 1948 --x-includes=DIR X include files are in DIR 1949 --x-libraries=DIR X library files are in DIR 1950 1951 System types: 1952 --build=BUILD configure for building on BUILD [guessed] 1953 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1954 --target=TARGET configure for building compilers for TARGET [HOST] 1955 _ACEOF 1956 fi 1957 1958 if test -n "$ac_init_help"; then 1959 case $ac_init_help in 1960 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1961 esac 1962 cat <<\_ACEOF 1963 1964 Optional Features: 1965 --disable-option-checking ignore unrecognized --enable/--with options 1966 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1967 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1968 --enable-openjdk-only suppress building custom source even if present 1969 [disabled] 1970 --enable-debug set the debug level to fastdebug (shorthand for 1971 --with-debug-level=fastdebug) [disabled] 1972 --enable-headless-only only build headless (no GUI) support [disabled] 1973 --disable-unlimited-crypto 1974 Disable unlimited crypto policy [enabled] 1975 --disable-keep-packaged-modules 1976 Do not keep packaged modules in jdk image [enable] 1977 --enable-static-build enable static library build [disabled] 1978 --disable-warnings-as-errors 1979 do not consider native warnings to be an error 1980 [enabled] 1981 --enable-debug-symbols Deprecated. Option is kept for backwards 1982 compatibility and is ignored 1983 --enable-zip-debug-info Deprecated. Option is kept for backwards 1984 compatibility and is ignored 1985 --enable-native-coverage 1986 enable native compilation with code coverage 1987 data[disabled] 1988 --enable-dtrace[=yes/no/auto] 1989 enable dtrace. Default is auto, where dtrace is 1990 enabled if all dependencies are present. 1991 --enable-aot[=yes/no/auto] 1992 enable ahead of time compilation feature. Default is 1993 auto, where aot is enabled if all dependencies are 1994 present. 1995 --disable-hotspot-gtest Disables building of the Hotspot unit tests 1996 --disable-freetype-bundling 1997 disable bundling of the freetype library with the 1998 build result [enabled on Windows or when using 1999 --with-freetype, disabled otherwise] 2000 --enable-libffi-bundling 2001 enable bundling of libffi.so to make the built JDK 2002 runnable on more systems 2003 --enable-jtreg-failure-handler 2004 forces build of the jtreg failure handler to be 2005 enabled, missing dependencies become fatal errors. 2006 Default is auto, where the failure handler is built 2007 if all dependencies are present and otherwise just 2008 disabled. 2009 --disable-generate-classlist 2010 forces enabling or disabling of the generation of a 2011 CDS classlist at build time. Default is to generate 2012 it when either the server or client JVMs are built. 2013 --enable-sjavac use sjavac to do fast incremental compiles 2014 [disabled] 2015 --disable-javac-server disable javac server [enabled] 2016 --enable-icecc enable distribted compilation of native code using 2017 icecc/icecream [disabled] 2018 --disable-precompiled-headers 2019 disable using precompiled headers when compiling C++ 2020 [enabled] 2021 --enable-ccache enable using ccache to speed up recompilations 2022 [disabled] 2023 2024 Optional Packages: 2025 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2026 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2027 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2028 support it), e.g. --with-target-bits=32 [guessed] 2029 --with-custom-make-dir Deprecated. Option is kept for backwards 2030 compatibility and is ignored 2031 --with-jdk-variant JDK variant to build (normal) [normal] 2032 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2033 optimized) [release] 2034 --with-jvm-variants JVM variants (separated by commas) to build 2035 (server,client,minimal,core,zero,zeroshark,custom) 2036 [server] 2037 --with-cpu-port specify sources to use for Hotspot 64-bit ARM port 2038 (arm64,aarch64) [aarch64] 2039 --with-devkit use this devkit for compilers, tools and resources 2040 --with-sys-root alias for --with-sysroot for backwards compatability 2041 --with-sysroot use this directory as sysroot 2042 --with-tools-dir alias for --with-toolchain-path for backwards 2043 compatibility 2044 --with-toolchain-path prepend these directories when searching for 2045 toolchain binaries (compilers etc) 2046 --with-extra-path prepend these directories to the default path 2047 --with-sdk-name use the platform SDK of the given name. [macosx] 2048 --with-conf-name use this as the name of the configuration [generated 2049 from important configuration options] 2050 --with-output-sync set make output sync type if supported by make. 2051 [recurse] 2052 --with-default-make-target 2053 set the default make target [exploded-image] 2054 --with-cacerts-file specify alternative cacerts file 2055 --with-copyright-year Set copyright year value for build [current year] 2056 --with-milestone Deprecated. Option is kept for backwards 2057 compatibility and is ignored 2058 --with-update-version Deprecated. Option is kept for backwards 2059 compatibility and is ignored 2060 --with-user-release-suffix 2061 Deprecated. Option is kept for backwards 2062 compatibility and is ignored 2063 --with-build-number Deprecated. Option is kept for backwards 2064 compatibility and is ignored 2065 --with-version-string Set version string [calculated] 2066 --with-version-pre Set the base part of the version 'PRE' field 2067 (pre-release identifier) ['internal'] 2068 --with-version-opt Set version 'OPT' field (build metadata) 2069 [<timestamp>.<user>.<dirname>] 2070 --with-version-build Set version 'BUILD' field (build number) [not 2071 specified] 2072 --with-version-major Set version 'MAJOR' field (first number) [current 2073 source value] 2074 --with-version-minor Set version 'MINOR' field (second number) [current 2075 source value] 2076 --with-version-security Set version 'SECURITY' field (third number) [current 2077 source value] 2078 --with-version-patch Set version 'PATCH' field (fourth number) [not 2079 specified] 2080 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2081 --with-build-jdk path to JDK of same version as is being built[the 2082 newly built JDK] 2083 --with-add-source-root Deprecated. Option is kept for backwards 2084 compatibility and is ignored 2085 --with-override-source-root 2086 Deprecated. Option is kept for backwards 2087 compatibility and is ignored 2088 --with-adds-and-overrides 2089 Deprecated. Option is kept for backwards 2090 compatibility and is ignored 2091 --with-override-langtools 2092 Deprecated. Option is kept for backwards 2093 compatibility and is ignored 2094 --with-override-corba Deprecated. Option is kept for backwards 2095 compatibility and is ignored 2096 --with-override-jaxp Deprecated. Option is kept for backwards 2097 compatibility and is ignored 2098 --with-override-jaxws Deprecated. Option is kept for backwards 2099 compatibility and is ignored 2100 --with-override-hotspot Deprecated. Option is kept for backwards 2101 compatibility and is ignored 2102 --with-override-nashorn Deprecated. Option is kept for backwards 2103 compatibility and is ignored 2104 --with-override-jdk Deprecated. Option is kept for backwards 2105 compatibility and is ignored 2106 --with-import_hotspot Deprecated. Option is kept for backwards 2107 compatibility and is ignored 2108 --with-import-modules import a set of prebuilt modules either as a zip 2109 file or an exploded directory 2110 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2111 to show possible values [platform dependent] 2112 --with-extra-cflags extra flags to be used when compiling jdk c-files 2113 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2114 --with-extra-ldflags extra flags to be used when linking jdk 2115 --with-toolchain-version 2116 the version of the toolchain to look for, use 2117 '--help' to show possible values [platform 2118 dependent] 2119 --with-build-devkit Devkit to use for the build platform toolchain 2120 --with-jtreg Regression Test Harness [probed] 2121 --with-abi-profile specify ABI profile for ARM builds 2122 (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, 2123 armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64) 2124 [toolchain dependent] 2125 --with-native-debug-symbols 2126 set the native debug symbol configuration (none, 2127 internal, external, zipped) [varying] 2128 --with-stdc++lib=<static>,<dynamic>,<default> 2129 force linking of the C++ runtime on Linux to either 2130 static or dynamic, default is static with dynamic as 2131 fallback 2132 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2133 (Windows only) [probed] 2134 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2135 (Windows only) [probed] 2136 --with-x use the X Window System 2137 --with-cups specify prefix directory for the cups package 2138 (expecting the headers under PATH/include) 2139 --with-cups-include specify directory for the cups include files 2140 --with-freetype specify prefix directory for the freetype package 2141 (expecting the libraries under PATH/lib and the 2142 headers under PATH/include) 2143 --with-freetype-include specify directory for the freetype include files 2144 --with-freetype-lib specify directory for the freetype library 2145 --with-freetype-src specify directory with freetype sources to 2146 automatically build the library (experimental, 2147 Windows-only) 2148 --with-alsa specify prefix directory for the alsa package 2149 (expecting the libraries under PATH/lib and the 2150 headers under PATH/include) 2151 --with-alsa-include specify directory for the alsa include files 2152 --with-alsa-lib specify directory for the alsa library 2153 --with-libffi specify prefix directory for the libffi package 2154 (expecting the libraries under PATH/lib and the 2155 headers under PATH/include) 2156 --with-libffi-include specify directory for the libffi include files 2157 --with-libffi-lib specify directory for the libffi library 2158 --with-libjpeg use libjpeg from build system or OpenJDK source 2159 (system, bundled) [bundled] 2160 --with-giflib use giflib from build system or OpenJDK source 2161 (system, bundled) [bundled] 2162 --with-libpng use libpng from build system or OpenJDK source 2163 (system, bundled) [bundled] 2164 --with-zlib use zlib from build system or OpenJDK source 2165 (system, bundled) [bundled] 2166 --with-lcms use lcms2 from build system or OpenJDK source 2167 (system, bundled) [bundled] 2168 --with-dxsdk Deprecated. Option is kept for backwards 2169 compatibility and is ignored 2170 --with-dxsdk-lib Deprecated. Option is kept for backwards 2171 compatibility and is ignored 2172 --with-dxsdk-include Deprecated. Option is kept for backwards 2173 compatibility and is ignored 2174 --with-libelf specify prefix directory for the libelf package 2175 (expecting the libraries under PATH/lib and the 2176 headers under PATH/include) 2177 --with-libelf-include specify directory for the libelf include files 2178 --with-libelf-lib specify directory for the libelf library 2179 --with-jvm-features additional JVM features to enable (separated by 2180 comma), use '--help' to show possible values [none] 2181 --with-jvm-interpreter Deprecated. Option is kept for backwards 2182 compatibility and is ignored 2183 --with-num-cores number of cores in the build system, e.g. 2184 --with-num-cores=8 [probed] 2185 --with-memory-size memory (in MB) available in the build system, e.g. 2186 --with-memory-size=1024 [probed] 2187 --with-jobs number of parallel jobs to let make run [calculated 2188 based on cores and memory] 2189 --with-test-jobs number of parallel tests jobs to run [based on build 2190 jobs] 2191 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2192 invocations of boot JDK, overriding the default 2193 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2194 -enableassertions" 2195 --with-sjavac-server-java 2196 use this java binary for running the sjavac 2197 background server [Boot JDK java] 2198 --with-ccache-dir where to store ccache files [~/.ccache] 2199 2200 Some influential environment variables: 2201 BASENAME Override default value for BASENAME 2202 BASH Override default value for BASH 2203 CAT Override default value for CAT 2204 CHMOD Override default value for CHMOD 2205 CMP Override default value for CMP 2206 COMM Override default value for COMM 2207 CP Override default value for CP 2208 CUT Override default value for CUT 2209 DATE Override default value for DATE 2210 DIFF Override default value for DIFF 2211 DIRNAME Override default value for DIRNAME 2212 ECHO Override default value for ECHO 2213 EXPR Override default value for EXPR 2214 FILE Override default value for FILE 2215 FIND Override default value for FIND 2216 HEAD Override default value for HEAD 2217 GUNZIP Override default value for GUNZIP 2218 GZIP Override default value for GZIP 2219 LN Override default value for LN 2220 LS Override default value for LS 2221 MKDIR Override default value for MKDIR 2222 MKTEMP Override default value for MKTEMP 2223 MV Override default value for MV 2224 NAWK Override default value for NAWK 2225 PRINTF Override default value for PRINTF 2226 RM Override default value for RM 2227 RMDIR Override default value for RMDIR 2228 SH Override default value for SH 2229 SORT Override default value for SORT 2230 TAIL Override default value for TAIL 2231 TAR Override default value for TAR 2232 TEE Override default value for TEE 2233 TOUCH Override default value for TOUCH 2234 TR Override default value for TR 2235 UNAME Override default value for UNAME 2236 UNIQ Override default value for UNIQ 2237 WC Override default value for WC 2238 WHICH Override default value for WHICH 2239 XARGS Override default value for XARGS 2240 AWK Override default value for AWK 2241 GREP Override default value for GREP 2242 EGREP Override default value for EGREP 2243 FGREP Override default value for FGREP 2244 SED Override default value for SED 2245 CYGPATH Override default value for CYGPATH 2246 READLINK Override default value for READLINK 2247 DF Override default value for DF 2248 CPIO Override default value for CPIO 2249 NICE Override default value for NICE 2250 PANDOC Override default value for PANDOC 2251 MAKE Override default value for MAKE 2252 UNZIP Override default value for UNZIP 2253 ZIPEXE Override default value for ZIPEXE 2254 LDD Override default value for LDD 2255 OTOOL Override default value for OTOOL 2256 READELF Override default value for READELF 2257 HG Override default value for HG 2258 STAT Override default value for STAT 2259 TIME Override default value for TIME 2260 DTRACE Override default value for DTRACE 2261 PATCH Override default value for PATCH 2262 DSYMUTIL Override default value for DSYMUTIL 2263 XATTR Override default value for XATTR 2264 CODESIGN Override default value for CODESIGN 2265 SETFILE Override default value for SETFILE 2266 PKG_CONFIG path to pkg-config utility 2267 JAVA Override default value for JAVA 2268 JAVAC Override default value for JAVAC 2269 JAVAH Override default value for JAVAH 2270 JAR Override default value for JAR 2271 JARSIGNER Override default value for JARSIGNER 2272 CC C compiler command 2273 CFLAGS C compiler flags 2274 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2275 nonstandard directory <lib dir> 2276 LIBS libraries to pass to the linker, e.g. -l<library> 2277 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2278 you have headers in a nonstandard directory <include dir> 2279 CXX C++ compiler command 2280 CXXFLAGS C++ compiler flags 2281 CPP C preprocessor 2282 CXXCPP C++ preprocessor 2283 AS Override default value for AS 2284 AR Override default value for AR 2285 LIPO Override default value for LIPO 2286 STRIP Override default value for STRIP 2287 NM Override default value for NM 2288 GNM Override default value for GNM 2289 OBJCOPY Override default value for OBJCOPY 2290 OBJDUMP Override default value for OBJDUMP 2291 BUILD_CC Override default value for BUILD_CC 2292 BUILD_CXX Override default value for BUILD_CXX 2293 BUILD_NM Override default value for BUILD_NM 2294 BUILD_AR Override default value for BUILD_AR 2295 BUILD_OBJCOPY 2296 Override default value for BUILD_OBJCOPY 2297 BUILD_STRIP Override default value for BUILD_STRIP 2298 JTREGEXE Override default value for JTREGEXE 2299 XMKMF Path to xmkmf, Makefile generator for X Window System 2300 FREETYPE_CFLAGS 2301 C compiler flags for FREETYPE, overriding pkg-config 2302 FREETYPE_LIBS 2303 linker flags for FREETYPE, overriding pkg-config 2304 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2305 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2306 LIBFFI_CFLAGS 2307 C compiler flags for LIBFFI, overriding pkg-config 2308 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2309 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2310 PNG_LIBS linker flags for PNG, overriding pkg-config 2311 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2312 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2313 ELF_CFLAGS C compiler flags for ELF, overriding pkg-config 2314 ELF_LIBS linker flags for ELF, overriding pkg-config 2315 ICECC_CMD Override default value for ICECC_CMD 2316 ICECC_CREATE_ENV 2317 Override default value for ICECC_CREATE_ENV 2318 ICECC_WRAPPER 2319 Override default value for ICECC_WRAPPER 2320 CCACHE Override default value for CCACHE 2321 2322 Use these variables to override the choices made by `configure' or to help 2323 it to find libraries and programs with nonstandard names/locations. 2324 2325 Report bugs to <build-dev@openjdk.java.net>. 2326 OpenJDK home page: <http://openjdk.java.net>. 2327 _ACEOF 2328 ac_status=$? 2329 fi 2330 2331 if test "$ac_init_help" = "recursive"; then 2332 # If there are subdirs, report their specific --help. 2333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2334 test -d "$ac_dir" || 2335 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2336 continue 2337 ac_builddir=. 2338 2339 case "$ac_dir" in 2340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2341 *) 2342 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2343 # A ".." for each directory in $ac_dir_suffix. 2344 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2345 case $ac_top_builddir_sub in 2346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2348 esac ;; 2349 esac 2350 ac_abs_top_builddir=$ac_pwd 2351 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2352 # for backward compatibility: 2353 ac_top_builddir=$ac_top_build_prefix 2354 2355 case $srcdir in 2356 .) # We are building in place. 2357 ac_srcdir=. 2358 ac_top_srcdir=$ac_top_builddir_sub 2359 ac_abs_top_srcdir=$ac_pwd ;; 2360 [\\/]* | ?:[\\/]* ) # Absolute name. 2361 ac_srcdir=$srcdir$ac_dir_suffix; 2362 ac_top_srcdir=$srcdir 2363 ac_abs_top_srcdir=$srcdir ;; 2364 *) # Relative name. 2365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2366 ac_top_srcdir=$ac_top_build_prefix$srcdir 2367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2368 esac 2369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2370 2371 cd "$ac_dir" || { ac_status=$?; continue; } 2372 # Check for guested configure. 2373 if test -f "$ac_srcdir/configure.gnu"; then 2374 echo && 2375 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2376 elif test -f "$ac_srcdir/configure"; then 2377 echo && 2378 $SHELL "$ac_srcdir/configure" --help=recursive 2379 else 2380 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2381 fi || ac_status=$? 2382 cd "$ac_pwd" || { ac_status=$?; break; } 2383 done 2384 fi 2385 2386 test -n "$ac_init_help" && exit $ac_status 2387 if $ac_init_version; then 2388 cat <<\_ACEOF 2389 OpenJDK configure jdk9 2390 generated by GNU Autoconf 2.69 2391 2392 Copyright (C) 2012 Free Software Foundation, Inc. 2393 This configure script is free software; the Free Software Foundation 2394 gives unlimited permission to copy, distribute and modify it. 2395 _ACEOF 2396 exit 2397 fi 2398 2399 ## ------------------------ ## 2400 ## Autoconf initialization. ## 2401 ## ------------------------ ## 2402 2403 # ac_fn_c_try_compile LINENO 2404 # -------------------------- 2405 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2406 ac_fn_c_try_compile () 2407 { 2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2409 rm -f conftest.$ac_objext 2410 if { { ac_try="$ac_compile" 2411 case "(($ac_try" in 2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2413 *) ac_try_echo=$ac_try;; 2414 esac 2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2416 $as_echo "$ac_try_echo"; } >&5 2417 (eval "$ac_compile") 2>conftest.err 2418 ac_status=$? 2419 if test -s conftest.err; then 2420 grep -v '^ *+' conftest.err >conftest.er1 2421 cat conftest.er1 >&5 2422 mv -f conftest.er1 conftest.err 2423 fi 2424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2425 test $ac_status = 0; } && { 2426 test -z "$ac_c_werror_flag" || 2427 test ! -s conftest.err 2428 } && test -s conftest.$ac_objext; then : 2429 ac_retval=0 2430 else 2431 $as_echo "$as_me: failed program was:" >&5 2432 sed 's/^/| /' conftest.$ac_ext >&5 2433 2434 ac_retval=1 2435 fi 2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2437 as_fn_set_status $ac_retval 2438 2439 } # ac_fn_c_try_compile 2440 2441 # ac_fn_cxx_try_compile LINENO 2442 # ---------------------------- 2443 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2444 ac_fn_cxx_try_compile () 2445 { 2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2447 rm -f conftest.$ac_objext 2448 if { { ac_try="$ac_compile" 2449 case "(($ac_try" in 2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2451 *) ac_try_echo=$ac_try;; 2452 esac 2453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2454 $as_echo "$ac_try_echo"; } >&5 2455 (eval "$ac_compile") 2>conftest.err 2456 ac_status=$? 2457 if test -s conftest.err; then 2458 grep -v '^ *+' conftest.err >conftest.er1 2459 cat conftest.er1 >&5 2460 mv -f conftest.er1 conftest.err 2461 fi 2462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2463 test $ac_status = 0; } && { 2464 test -z "$ac_cxx_werror_flag" || 2465 test ! -s conftest.err 2466 } && test -s conftest.$ac_objext; then : 2467 ac_retval=0 2468 else 2469 $as_echo "$as_me: failed program was:" >&5 2470 sed 's/^/| /' conftest.$ac_ext >&5 2471 2472 ac_retval=1 2473 fi 2474 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2475 as_fn_set_status $ac_retval 2476 2477 } # ac_fn_cxx_try_compile 2478 2479 # ac_fn_c_try_cpp LINENO 2480 # ---------------------- 2481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2482 ac_fn_c_try_cpp () 2483 { 2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2485 if { { ac_try="$ac_cpp conftest.$ac_ext" 2486 case "(($ac_try" in 2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2488 *) ac_try_echo=$ac_try;; 2489 esac 2490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2491 $as_echo "$ac_try_echo"; } >&5 2492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2493 ac_status=$? 2494 if test -s conftest.err; then 2495 grep -v '^ *+' conftest.err >conftest.er1 2496 cat conftest.er1 >&5 2497 mv -f conftest.er1 conftest.err 2498 fi 2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2500 test $ac_status = 0; } > conftest.i && { 2501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2502 test ! -s conftest.err 2503 }; then : 2504 ac_retval=0 2505 else 2506 $as_echo "$as_me: failed program was:" >&5 2507 sed 's/^/| /' conftest.$ac_ext >&5 2508 2509 ac_retval=1 2510 fi 2511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2512 as_fn_set_status $ac_retval 2513 2514 } # ac_fn_c_try_cpp 2515 2516 # ac_fn_cxx_try_cpp LINENO 2517 # ------------------------ 2518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2519 ac_fn_cxx_try_cpp () 2520 { 2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2522 if { { ac_try="$ac_cpp conftest.$ac_ext" 2523 case "(($ac_try" in 2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2525 *) ac_try_echo=$ac_try;; 2526 esac 2527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2528 $as_echo "$ac_try_echo"; } >&5 2529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2530 ac_status=$? 2531 if test -s conftest.err; then 2532 grep -v '^ *+' conftest.err >conftest.er1 2533 cat conftest.er1 >&5 2534 mv -f conftest.er1 conftest.err 2535 fi 2536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2537 test $ac_status = 0; } > conftest.i && { 2538 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2539 test ! -s conftest.err 2540 }; then : 2541 ac_retval=0 2542 else 2543 $as_echo "$as_me: failed program was:" >&5 2544 sed 's/^/| /' conftest.$ac_ext >&5 2545 2546 ac_retval=1 2547 fi 2548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2549 as_fn_set_status $ac_retval 2550 2551 } # ac_fn_cxx_try_cpp 2552 2553 # ac_fn_c_try_link LINENO 2554 # ----------------------- 2555 # Try to link conftest.$ac_ext, and return whether this succeeded. 2556 ac_fn_c_try_link () 2557 { 2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2559 rm -f conftest.$ac_objext conftest$ac_exeext 2560 if { { ac_try="$ac_link" 2561 case "(($ac_try" in 2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2563 *) ac_try_echo=$ac_try;; 2564 esac 2565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2566 $as_echo "$ac_try_echo"; } >&5 2567 (eval "$ac_link") 2>conftest.err 2568 ac_status=$? 2569 if test -s conftest.err; then 2570 grep -v '^ *+' conftest.err >conftest.er1 2571 cat conftest.er1 >&5 2572 mv -f conftest.er1 conftest.err 2573 fi 2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2575 test $ac_status = 0; } && { 2576 test -z "$ac_c_werror_flag" || 2577 test ! -s conftest.err 2578 } && test -s conftest$ac_exeext && { 2579 test "$cross_compiling" = yes || 2580 test -x conftest$ac_exeext 2581 }; then : 2582 ac_retval=0 2583 else 2584 $as_echo "$as_me: failed program was:" >&5 2585 sed 's/^/| /' conftest.$ac_ext >&5 2586 2587 ac_retval=1 2588 fi 2589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2591 # interfere with the next link command; also delete a directory that is 2592 # left behind by Apple's compiler. We do this before executing the actions. 2593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2595 as_fn_set_status $ac_retval 2596 2597 } # ac_fn_c_try_link 2598 2599 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2600 # --------------------------------------------------------- 2601 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2602 # the include files in INCLUDES and setting the cache variable VAR 2603 # accordingly. 2604 ac_fn_cxx_check_header_mongrel () 2605 { 2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2607 if eval \${$3+:} false; then : 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 fi 2613 eval ac_res=\$$3 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2615 $as_echo "$ac_res" >&6; } 2616 else 2617 # Is the header compilable? 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2619 $as_echo_n "checking $2 usability... " >&6; } 2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2621 /* end confdefs.h. */ 2622 $4 2623 #include <$2> 2624 _ACEOF 2625 if ac_fn_cxx_try_compile "$LINENO"; then : 2626 ac_header_compiler=yes 2627 else 2628 ac_header_compiler=no 2629 fi 2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2632 $as_echo "$ac_header_compiler" >&6; } 2633 2634 # Is the header present? 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2636 $as_echo_n "checking $2 presence... " >&6; } 2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2638 /* end confdefs.h. */ 2639 #include <$2> 2640 _ACEOF 2641 if ac_fn_cxx_try_cpp "$LINENO"; then : 2642 ac_header_preproc=yes 2643 else 2644 ac_header_preproc=no 2645 fi 2646 rm -f conftest.err conftest.i conftest.$ac_ext 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2648 $as_echo "$ac_header_preproc" >&6; } 2649 2650 # So? What about this header? 2651 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2652 yes:no: ) 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2654 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2657 ;; 2658 no:yes:* ) 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2660 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2662 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2664 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2666 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2668 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2669 ( $as_echo "## ----------------------------------------- ## 2670 ## Report this to build-dev@openjdk.java.net ## 2671 ## ----------------------------------------- ##" 2672 ) | sed "s/^/$as_me: WARNING: /" >&2 2673 ;; 2674 esac 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2676 $as_echo_n "checking for $2... " >&6; } 2677 if eval \${$3+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679 else 2680 eval "$3=\$ac_header_compiler" 2681 fi 2682 eval ac_res=\$$3 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2684 $as_echo "$ac_res" >&6; } 2685 fi 2686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2687 2688 } # ac_fn_cxx_check_header_mongrel 2689 2690 # ac_fn_cxx_try_run LINENO 2691 # ------------------------ 2692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2693 # that executables *can* be run. 2694 ac_fn_cxx_try_run () 2695 { 2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2697 if { { ac_try="$ac_link" 2698 case "(($ac_try" in 2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2700 *) ac_try_echo=$ac_try;; 2701 esac 2702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2703 $as_echo "$ac_try_echo"; } >&5 2704 (eval "$ac_link") 2>&5 2705 ac_status=$? 2706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2708 { { case "(($ac_try" in 2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2710 *) ac_try_echo=$ac_try;; 2711 esac 2712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2713 $as_echo "$ac_try_echo"; } >&5 2714 (eval "$ac_try") 2>&5 2715 ac_status=$? 2716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2717 test $ac_status = 0; }; }; then : 2718 ac_retval=0 2719 else 2720 $as_echo "$as_me: program exited with status $ac_status" >&5 2721 $as_echo "$as_me: failed program was:" >&5 2722 sed 's/^/| /' conftest.$ac_ext >&5 2723 2724 ac_retval=$ac_status 2725 fi 2726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2728 as_fn_set_status $ac_retval 2729 2730 } # ac_fn_cxx_try_run 2731 2732 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2733 # --------------------------------------------------------- 2734 # Tests whether HEADER exists and can be compiled using the include files in 2735 # INCLUDES, setting the cache variable VAR accordingly. 2736 ac_fn_cxx_check_header_compile () 2737 { 2738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2740 $as_echo_n "checking for $2... " >&6; } 2741 if eval \${$3+:} false; then : 2742 $as_echo_n "(cached) " >&6 2743 else 2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2745 /* end confdefs.h. */ 2746 $4 2747 #include <$2> 2748 _ACEOF 2749 if ac_fn_cxx_try_compile "$LINENO"; then : 2750 eval "$3=yes" 2751 else 2752 eval "$3=no" 2753 fi 2754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2755 fi 2756 eval ac_res=\$$3 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2758 $as_echo "$ac_res" >&6; } 2759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2760 2761 } # ac_fn_cxx_check_header_compile 2762 2763 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2764 # ---------------------------------------------- 2765 # Tries to find the compile-time value of EXPR in a program that includes 2766 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2767 # computed 2768 ac_fn_cxx_compute_int () 2769 { 2770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2771 if test "$cross_compiling" = yes; then 2772 # Depending upon the size, compute the lo and hi bounds. 2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2774 /* end confdefs.h. */ 2775 $4 2776 int 2777 main () 2778 { 2779 static int test_array [1 - 2 * !(($2) >= 0)]; 2780 test_array [0] = 0; 2781 return test_array [0]; 2782 2783 ; 2784 return 0; 2785 } 2786 _ACEOF 2787 if ac_fn_cxx_try_compile "$LINENO"; then : 2788 ac_lo=0 ac_mid=0 2789 while :; do 2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2791 /* end confdefs.h. */ 2792 $4 2793 int 2794 main () 2795 { 2796 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2797 test_array [0] = 0; 2798 return test_array [0]; 2799 2800 ; 2801 return 0; 2802 } 2803 _ACEOF 2804 if ac_fn_cxx_try_compile "$LINENO"; then : 2805 ac_hi=$ac_mid; break 2806 else 2807 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2808 if test $ac_lo -le $ac_mid; then 2809 ac_lo= ac_hi= 2810 break 2811 fi 2812 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2813 fi 2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2815 done 2816 else 2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2818 /* end confdefs.h. */ 2819 $4 2820 int 2821 main () 2822 { 2823 static int test_array [1 - 2 * !(($2) < 0)]; 2824 test_array [0] = 0; 2825 return test_array [0]; 2826 2827 ; 2828 return 0; 2829 } 2830 _ACEOF 2831 if ac_fn_cxx_try_compile "$LINENO"; then : 2832 ac_hi=-1 ac_mid=-1 2833 while :; do 2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2835 /* end confdefs.h. */ 2836 $4 2837 int 2838 main () 2839 { 2840 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2841 test_array [0] = 0; 2842 return test_array [0]; 2843 2844 ; 2845 return 0; 2846 } 2847 _ACEOF 2848 if ac_fn_cxx_try_compile "$LINENO"; then : 2849 ac_lo=$ac_mid; break 2850 else 2851 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2852 if test $ac_mid -le $ac_hi; then 2853 ac_lo= ac_hi= 2854 break 2855 fi 2856 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2857 fi 2858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2859 done 2860 else 2861 ac_lo= ac_hi= 2862 fi 2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2864 fi 2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2866 # Binary search between lo and hi bounds. 2867 while test "x$ac_lo" != "x$ac_hi"; do 2868 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2870 /* end confdefs.h. */ 2871 $4 2872 int 2873 main () 2874 { 2875 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2876 test_array [0] = 0; 2877 return test_array [0]; 2878 2879 ; 2880 return 0; 2881 } 2882 _ACEOF 2883 if ac_fn_cxx_try_compile "$LINENO"; then : 2884 ac_hi=$ac_mid 2885 else 2886 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2887 fi 2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2889 done 2890 case $ac_lo in #(( 2891 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2892 '') ac_retval=1 ;; 2893 esac 2894 else 2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2896 /* end confdefs.h. */ 2897 $4 2898 static long int longval () { return $2; } 2899 static unsigned long int ulongval () { return $2; } 2900 #include <stdio.h> 2901 #include <stdlib.h> 2902 int 2903 main () 2904 { 2905 2906 FILE *f = fopen ("conftest.val", "w"); 2907 if (! f) 2908 return 1; 2909 if (($2) < 0) 2910 { 2911 long int i = longval (); 2912 if (i != ($2)) 2913 return 1; 2914 fprintf (f, "%ld", i); 2915 } 2916 else 2917 { 2918 unsigned long int i = ulongval (); 2919 if (i != ($2)) 2920 return 1; 2921 fprintf (f, "%lu", i); 2922 } 2923 /* Do not output a trailing newline, as this causes \r\n confusion 2924 on some platforms. */ 2925 return ferror (f) || fclose (f) != 0; 2926 2927 ; 2928 return 0; 2929 } 2930 _ACEOF 2931 if ac_fn_cxx_try_run "$LINENO"; then : 2932 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2933 else 2934 ac_retval=1 2935 fi 2936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2937 conftest.$ac_objext conftest.beam conftest.$ac_ext 2938 rm -f conftest.val 2939 2940 fi 2941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2942 as_fn_set_status $ac_retval 2943 2944 } # ac_fn_cxx_compute_int 2945 2946 # ac_fn_cxx_try_link LINENO 2947 # ------------------------- 2948 # Try to link conftest.$ac_ext, and return whether this succeeded. 2949 ac_fn_cxx_try_link () 2950 { 2951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2952 rm -f conftest.$ac_objext conftest$ac_exeext 2953 if { { ac_try="$ac_link" 2954 case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957 esac 2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2959 $as_echo "$ac_try_echo"; } >&5 2960 (eval "$ac_link") 2>conftest.err 2961 ac_status=$? 2962 if test -s conftest.err; then 2963 grep -v '^ *+' conftest.err >conftest.er1 2964 cat conftest.er1 >&5 2965 mv -f conftest.er1 conftest.err 2966 fi 2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2968 test $ac_status = 0; } && { 2969 test -z "$ac_cxx_werror_flag" || 2970 test ! -s conftest.err 2971 } && test -s conftest$ac_exeext && { 2972 test "$cross_compiling" = yes || 2973 test -x conftest$ac_exeext 2974 }; then : 2975 ac_retval=0 2976 else 2977 $as_echo "$as_me: failed program was:" >&5 2978 sed 's/^/| /' conftest.$ac_ext >&5 2979 2980 ac_retval=1 2981 fi 2982 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2983 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2984 # interfere with the next link command; also delete a directory that is 2985 # left behind by Apple's compiler. We do this before executing the actions. 2986 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2988 as_fn_set_status $ac_retval 2989 2990 } # ac_fn_cxx_try_link 2991 2992 # ac_fn_cxx_check_func LINENO FUNC VAR 2993 # ------------------------------------ 2994 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2995 ac_fn_cxx_check_func () 2996 { 2997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2999 $as_echo_n "checking for $2... " >&6; } 3000 if eval \${$3+:} false; then : 3001 $as_echo_n "(cached) " >&6 3002 else 3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3004 /* end confdefs.h. */ 3005 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3006 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3007 #define $2 innocuous_$2 3008 3009 /* System header to define __stub macros and hopefully few prototypes, 3010 which can conflict with char $2 (); below. 3011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3012 <limits.h> exists even on freestanding compilers. */ 3013 3014 #ifdef __STDC__ 3015 # include <limits.h> 3016 #else 3017 # include <assert.h> 3018 #endif 3019 3020 #undef $2 3021 3022 /* Override any GCC internal prototype to avoid an error. 3023 Use char because int might match the return type of a GCC 3024 builtin and then its argument prototype would still apply. */ 3025 #ifdef __cplusplus 3026 extern "C" 3027 #endif 3028 char $2 (); 3029 /* The GNU C library defines this for functions which it implements 3030 to always fail with ENOSYS. Some functions are actually named 3031 something starting with __ and the normal name is an alias. */ 3032 #if defined __stub_$2 || defined __stub___$2 3033 choke me 3034 #endif 3035 3036 int 3037 main () 3038 { 3039 return $2 (); 3040 ; 3041 return 0; 3042 } 3043 _ACEOF 3044 if ac_fn_cxx_try_link "$LINENO"; then : 3045 eval "$3=yes" 3046 else 3047 eval "$3=no" 3048 fi 3049 rm -f core conftest.err conftest.$ac_objext \ 3050 conftest$ac_exeext conftest.$ac_ext 3051 fi 3052 eval ac_res=\$$3 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3054 $as_echo "$ac_res" >&6; } 3055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3056 3057 } # ac_fn_cxx_check_func 3058 3059 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3060 # ------------------------------------------------------- 3061 # Tests whether HEADER exists and can be compiled using the include files in 3062 # INCLUDES, setting the cache variable VAR accordingly. 3063 ac_fn_c_check_header_compile () 3064 { 3065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3067 $as_echo_n "checking for $2... " >&6; } 3068 if eval \${$3+:} false; then : 3069 $as_echo_n "(cached) " >&6 3070 else 3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3072 /* end confdefs.h. */ 3073 $4 3074 #include <$2> 3075 _ACEOF 3076 if ac_fn_c_try_compile "$LINENO"; then : 3077 eval "$3=yes" 3078 else 3079 eval "$3=no" 3080 fi 3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3082 fi 3083 eval ac_res=\$$3 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3085 $as_echo "$ac_res" >&6; } 3086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3087 3088 } # ac_fn_c_check_header_compile 3089 cat >config.log <<_ACEOF 3090 This file contains any messages produced by compilers while 3091 running configure, to aid debugging if configure makes a mistake. 3092 3093 It was created by OpenJDK $as_me jdk9, which was 3094 generated by GNU Autoconf 2.69. Invocation command line was 3095 3096 $ $0 $@ 3097 3098 _ACEOF 3099 exec 5>>config.log 3100 { 3101 cat <<_ASUNAME 3102 ## --------- ## 3103 ## Platform. ## 3104 ## --------- ## 3105 3106 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3107 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3108 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3109 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3110 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3111 3112 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3113 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3114 3115 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3116 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3117 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3118 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3119 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3120 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3121 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3122 3123 _ASUNAME 3124 3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3126 for as_dir in $PATH 3127 do 3128 IFS=$as_save_IFS 3129 test -z "$as_dir" && as_dir=. 3130 $as_echo "PATH: $as_dir" 3131 done 3132 IFS=$as_save_IFS 3133 3134 } >&5 3135 3136 cat >&5 <<_ACEOF 3137 3138 3139 ## ----------- ## 3140 ## Core tests. ## 3141 ## ----------- ## 3142 3143 _ACEOF 3144 3145 3146 # Keep a trace of the command line. 3147 # Strip out --no-create and --no-recursion so they do not pile up. 3148 # Strip out --silent because we don't want to record it for future runs. 3149 # Also quote any args containing shell meta-characters. 3150 # Make two passes to allow for proper duplicate-argument suppression. 3151 ac_configure_args= 3152 ac_configure_args0= 3153 ac_configure_args1= 3154 ac_must_keep_next=false 3155 for ac_pass in 1 2 3156 do 3157 for ac_arg 3158 do 3159 case $ac_arg in 3160 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3162 | -silent | --silent | --silen | --sile | --sil) 3163 continue ;; 3164 *\'*) 3165 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3166 esac 3167 case $ac_pass in 3168 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3169 2) 3170 as_fn_append ac_configure_args1 " '$ac_arg'" 3171 if test $ac_must_keep_next = true; then 3172 ac_must_keep_next=false # Got value, back to normal. 3173 else 3174 case $ac_arg in 3175 *=* | --config-cache | -C | -disable-* | --disable-* \ 3176 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3177 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3178 | -with-* | --with-* | -without-* | --without-* | --x) 3179 case "$ac_configure_args0 " in 3180 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3181 esac 3182 ;; 3183 -* ) ac_must_keep_next=true ;; 3184 esac 3185 fi 3186 as_fn_append ac_configure_args " '$ac_arg'" 3187 ;; 3188 esac 3189 done 3190 done 3191 { ac_configure_args0=; unset ac_configure_args0;} 3192 { ac_configure_args1=; unset ac_configure_args1;} 3193 3194 # When interrupted or exit'd, cleanup temporary files, and complete 3195 # config.log. We remove comments because anyway the quotes in there 3196 # would cause problems or look ugly. 3197 # WARNING: Use '\'' to represent an apostrophe within the trap. 3198 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3199 trap 'exit_status=$? 3200 # Save into config.log some information that might help in debugging. 3201 { 3202 echo 3203 3204 $as_echo "## ---------------- ## 3205 ## Cache variables. ## 3206 ## ---------------- ##" 3207 echo 3208 # The following way of writing the cache mishandles newlines in values, 3209 ( 3210 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3211 eval ac_val=\$$ac_var 3212 case $ac_val in #( 3213 *${as_nl}*) 3214 case $ac_var in #( 3215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3217 esac 3218 case $ac_var in #( 3219 _ | IFS | as_nl) ;; #( 3220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3221 *) { eval $ac_var=; unset $ac_var;} ;; 3222 esac ;; 3223 esac 3224 done 3225 (set) 2>&1 | 3226 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3227 *${as_nl}ac_space=\ *) 3228 sed -n \ 3229 "s/'\''/'\''\\\\'\'''\''/g; 3230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3231 ;; #( 3232 *) 3233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3234 ;; 3235 esac | 3236 sort 3237 ) 3238 echo 3239 3240 $as_echo "## ----------------- ## 3241 ## Output variables. ## 3242 ## ----------------- ##" 3243 echo 3244 for ac_var in $ac_subst_vars 3245 do 3246 eval ac_val=\$$ac_var 3247 case $ac_val in 3248 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3249 esac 3250 $as_echo "$ac_var='\''$ac_val'\''" 3251 done | sort 3252 echo 3253 3254 if test -n "$ac_subst_files"; then 3255 $as_echo "## ------------------- ## 3256 ## File substitutions. ## 3257 ## ------------------- ##" 3258 echo 3259 for ac_var in $ac_subst_files 3260 do 3261 eval ac_val=\$$ac_var 3262 case $ac_val in 3263 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3264 esac 3265 $as_echo "$ac_var='\''$ac_val'\''" 3266 done | sort 3267 echo 3268 fi 3269 3270 if test -s confdefs.h; then 3271 $as_echo "## ----------- ## 3272 ## confdefs.h. ## 3273 ## ----------- ##" 3274 echo 3275 cat confdefs.h 3276 echo 3277 fi 3278 test "$ac_signal" != 0 && 3279 $as_echo "$as_me: caught signal $ac_signal" 3280 $as_echo "$as_me: exit $exit_status" 3281 } >&5 3282 rm -f core *.core core.conftest.* && 3283 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3284 exit $exit_status 3285 ' 0 3286 for ac_signal in 1 2 13 15; do 3287 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3288 done 3289 ac_signal=0 3290 3291 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3292 rm -f -r conftest* confdefs.h 3293 3294 $as_echo "/* confdefs.h */" > confdefs.h 3295 3296 # Predefined preprocessor variables. 3297 3298 cat >>confdefs.h <<_ACEOF 3299 #define PACKAGE_NAME "$PACKAGE_NAME" 3300 _ACEOF 3301 3302 cat >>confdefs.h <<_ACEOF 3303 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3304 _ACEOF 3305 3306 cat >>confdefs.h <<_ACEOF 3307 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3308 _ACEOF 3309 3310 cat >>confdefs.h <<_ACEOF 3311 #define PACKAGE_STRING "$PACKAGE_STRING" 3312 _ACEOF 3313 3314 cat >>confdefs.h <<_ACEOF 3315 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3316 _ACEOF 3317 3318 cat >>confdefs.h <<_ACEOF 3319 #define PACKAGE_URL "$PACKAGE_URL" 3320 _ACEOF 3321 3322 3323 # Let the site file select an alternate cache file if it wants to. 3324 # Prefer an explicitly selected file to automatically selected ones. 3325 ac_site_file1=NONE 3326 ac_site_file2=NONE 3327 if test -n "$CONFIG_SITE"; then 3328 # We do not want a PATH search for config.site. 3329 case $CONFIG_SITE in #(( 3330 -*) ac_site_file1=./$CONFIG_SITE;; 3331 */*) ac_site_file1=$CONFIG_SITE;; 3332 *) ac_site_file1=./$CONFIG_SITE;; 3333 esac 3334 elif test "x$prefix" != xNONE; then 3335 ac_site_file1=$prefix/share/config.site 3336 ac_site_file2=$prefix/etc/config.site 3337 else 3338 ac_site_file1=$ac_default_prefix/share/config.site 3339 ac_site_file2=$ac_default_prefix/etc/config.site 3340 fi 3341 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3342 do 3343 test "x$ac_site_file" = xNONE && continue 3344 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3346 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3347 sed 's/^/| /' "$ac_site_file" >&5 3348 . "$ac_site_file" \ 3349 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3351 as_fn_error $? "failed to load site script $ac_site_file 3352 See \`config.log' for more details" "$LINENO" 5; } 3353 fi 3354 done 3355 3356 if test -r "$cache_file"; then 3357 # Some versions of bash will fail to source /dev/null (special files 3358 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3359 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3361 $as_echo "$as_me: loading cache $cache_file" >&6;} 3362 case $cache_file in 3363 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3364 *) . "./$cache_file";; 3365 esac 3366 fi 3367 else 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3369 $as_echo "$as_me: creating cache $cache_file" >&6;} 3370 >$cache_file 3371 fi 3372 3373 # Check that the precious variables saved in the cache have kept the same 3374 # value. 3375 ac_cache_corrupted=false 3376 for ac_var in $ac_precious_vars; do 3377 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3378 eval ac_new_set=\$ac_env_${ac_var}_set 3379 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3380 eval ac_new_val=\$ac_env_${ac_var}_value 3381 case $ac_old_set,$ac_new_set in 3382 set,) 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3385 ac_cache_corrupted=: ;; 3386 ,set) 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3389 ac_cache_corrupted=: ;; 3390 ,);; 3391 *) 3392 if test "x$ac_old_val" != "x$ac_new_val"; then 3393 # differences in whitespace do not lead to failure. 3394 ac_old_val_w=`echo x $ac_old_val` 3395 ac_new_val_w=`echo x $ac_new_val` 3396 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3399 ac_cache_corrupted=: 3400 else 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3403 eval $ac_var=\$ac_old_val 3404 fi 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3406 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3408 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3409 fi;; 3410 esac 3411 # Pass precious variables to config.status. 3412 if test "$ac_new_set" = set; then 3413 case $ac_new_val in 3414 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3415 *) ac_arg=$ac_var=$ac_new_val ;; 3416 esac 3417 case " $ac_configure_args " in 3418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3419 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3420 esac 3421 fi 3422 done 3423 if $ac_cache_corrupted; then 3424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3428 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3429 fi 3430 ## -------------------- ## 3431 ## Main body of script. ## 3432 ## -------------------- ## 3433 3434 ac_ext=c 3435 ac_cpp='$CPP $CPPFLAGS' 3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3439 3440 3441 3442 ac_aux_dir= 3443 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3444 if test -f "$ac_dir/install-sh"; then 3445 ac_aux_dir=$ac_dir 3446 ac_install_sh="$ac_aux_dir/install-sh -c" 3447 break 3448 elif test -f "$ac_dir/install.sh"; then 3449 ac_aux_dir=$ac_dir 3450 ac_install_sh="$ac_aux_dir/install.sh -c" 3451 break 3452 elif test -f "$ac_dir/shtool"; then 3453 ac_aux_dir=$ac_dir 3454 ac_install_sh="$ac_aux_dir/shtool install -c" 3455 break 3456 fi 3457 done 3458 if test -z "$ac_aux_dir"; then 3459 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 3460 fi 3461 3462 # These three variables are undocumented and unsupported, 3463 # and are intended to be withdrawn in a future Autoconf release. 3464 # They can cause serious problems if a builder's source tree is in a directory 3465 # whose full name contains unusual characters. 3466 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3467 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3468 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3469 3470 3471 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3472 3473 # 3474 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3475 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3476 # 3477 # This code is free software; you can redistribute it and/or modify it 3478 # under the terms of the GNU General Public License version 2 only, as 3479 # published by the Free Software Foundation. Oracle designates this 3480 # particular file as subject to the "Classpath" exception as provided 3481 # by Oracle in the LICENSE file that accompanied this code. 3482 # 3483 # This code is distributed in the hope that it will be useful, but WITHOUT 3484 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3485 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3486 # version 2 for more details (a copy is included in the LICENSE file that 3487 # accompanied this code). 3488 # 3489 # You should have received a copy of the GNU General Public License version 3490 # 2 along with this work; if not, write to the Free Software Foundation, 3491 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3492 # 3493 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3494 # or visit www.oracle.com if you need additional information or have any 3495 # questions. 3496 # 3497 3498 # 3499 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3500 # 3501 # This program is free software; you can redistribute it and/or modify 3502 # it under the terms of the GNU General Public License as published by 3503 # the Free Software Foundation; either version 2 of the License, or 3504 # (at your option) any later version. 3505 # 3506 # This program is distributed in the hope that it will be useful, but 3507 # WITHOUT ANY WARRANTY; without even the implied warranty of 3508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3509 # General Public License for more details. 3510 # 3511 # You should have received a copy of the GNU General Public License 3512 # along with this program; if not, write to the Free Software 3513 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3514 # 3515 # As a special exception to the GNU General Public License, if you 3516 # distribute this file as part of a program that contains a 3517 # configuration script generated by Autoconf, you may include it under 3518 # the same distribution terms that you use for the rest of that program. 3519 3520 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3521 # ---------------------------------- 3522 # PKG_PROG_PKG_CONFIG 3523 3524 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3525 # 3526 # Check to see whether a particular set of modules exists. Similar 3527 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3528 # 3529 # 3530 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3531 # this or PKG_CHECK_MODULES is called, or make sure to call 3532 # PKG_CHECK_EXISTS manually 3533 # -------------------------------------------------------------- 3534 3535 3536 3537 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3538 # --------------------------------------------- 3539 # _PKG_CONFIG 3540 3541 # _PKG_SHORT_ERRORS_SUPPORTED 3542 # ----------------------------- 3543 # _PKG_SHORT_ERRORS_SUPPORTED 3544 3545 3546 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3547 # [ACTION-IF-NOT-FOUND]) 3548 # 3549 # 3550 # Note that if there is a possibility the first call to 3551 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3552 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3553 # 3554 # 3555 # -------------------------------------------------------------- 3556 # PKG_CHECK_MODULES 3557 3558 3559 # Include these first... 3560 # 3561 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3562 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3563 # 3564 # This code is free software; you can redistribute it and/or modify it 3565 # under the terms of the GNU General Public License version 2 only, as 3566 # published by the Free Software Foundation. Oracle designates this 3567 # particular file as subject to the "Classpath" exception as provided 3568 # by Oracle in the LICENSE file that accompanied this code. 3569 # 3570 # This code is distributed in the hope that it will be useful, but WITHOUT 3571 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3572 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3573 # version 2 for more details (a copy is included in the LICENSE file that 3574 # accompanied this code). 3575 # 3576 # You should have received a copy of the GNU General Public License version 3577 # 2 along with this work; if not, write to the Free Software Foundation, 3578 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3579 # 3580 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3581 # or visit www.oracle.com if you need additional information or have any 3582 # questions. 3583 # 3584 3585 # Create a function/macro that takes a series of named arguments. The call is 3586 # similar to AC_DEFUN, but the setup of the function looks like this: 3587 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3588 # ... do something 3589 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3590 # ]) 3591 # A star (*) in front of a named argument means that it is required and it's 3592 # presence will be verified. To pass e.g. the first value as a normal indexed 3593 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3594 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3595 # "ARG_FOO". 3596 # 3597 # The generated function can be called like this: 3598 # MYFUNC(FOO: [foo-val], 3599 # BAR: [ 3600 # $ECHO hello world 3601 # ]) 3602 # Note that the argument value must start on the same line as the argument name. 3603 # 3604 # Argument 1: Name of the function to define 3605 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3606 # Argument 3: Argument array to treat as named, typically $@ 3607 # Argument 4: The main function body 3608 3609 3610 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3611 # If so, then append $1 to $2 \ 3612 # Also set JVM_ARG_OK to true/false depending on outcome. 3613 3614 3615 # Appends a string to a path variable, only adding the : when needed. 3616 3617 3618 # Prepends a string to a path variable, only adding the : when needed. 3619 3620 3621 # This will make sure the given variable points to a full and proper 3622 # path. This means: 3623 # 1) There will be no spaces in the path. On unix platforms, 3624 # spaces in the path will result in an error. On Windows, 3625 # the path will be rewritten using short-style to be space-free. 3626 # 2) The path will be absolute, and it will be in unix-style (on 3627 # cygwin). 3628 # $1: The name of the variable to fix 3629 3630 3631 # This will make sure the given variable points to a executable 3632 # with a full and proper path. This means: 3633 # 1) There will be no spaces in the path. On unix platforms, 3634 # spaces in the path will result in an error. On Windows, 3635 # the path will be rewritten using short-style to be space-free. 3636 # 2) The path will be absolute, and it will be in unix-style (on 3637 # cygwin). 3638 # Any arguments given to the executable is preserved. 3639 # If the input variable does not have a directory specification, then 3640 # it need to be in the PATH. 3641 # $1: The name of the variable to fix 3642 3643 3644 3645 3646 # Register a --with argument but mark it as deprecated 3647 # $1: The name of the with argument to deprecate, not including --with- 3648 3649 3650 # Register a --enable argument but mark it as deprecated 3651 # $1: The name of the with argument to deprecate, not including --enable- 3652 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3653 # $3: Messages to user. 3654 3655 3656 3657 3658 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3659 # $1: variable to check 3660 3661 3662 # Check that there are no unprocessed overridden variables left. 3663 # If so, they are an incorrect argument and we will exit with an error. 3664 3665 3666 # Setup a tool for the given variable. If correctly specified by the user, 3667 # use that value, otherwise search for the tool using the supplied code snippet. 3668 # $1: variable to set 3669 # $2: code snippet to call to look for the tool 3670 # $3: code snippet to call if variable was used to find tool 3671 3672 3673 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3674 # $1: variable to set 3675 # $2: executable name (or list of names) to look for 3676 # $3: [path] 3677 3678 3679 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3680 # $1: variable to set 3681 # $2: executable name (or list of names) to look for 3682 3683 3684 # Like BASIC_PATH_PROGS but fails if no tool was found. 3685 # $1: variable to set 3686 # $2: executable name (or list of names) to look for 3687 # $3: [path] 3688 3689 3690 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3691 # $1: variable to set 3692 # $2: autoconf macro to call to look for the special tool 3693 3694 3695 # Setup the most fundamental tools that relies on not much else to set up, 3696 # but is used by much of the early bootstrap code. 3697 3698 3699 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3700 3701 3702 # Evaluates platform specific overrides for devkit variables. 3703 # $1: Name of variable 3704 3705 3706 3707 3708 3709 3710 #%%% Simple tools %%% 3711 3712 # Check if we have found a usable version of make 3713 # $1: the path to a potential make binary (or empty) 3714 # $2: the description on how we found this 3715 3716 3717 3718 3719 # Goes looking for a usable version of GNU make. 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 # Check if build directory is on local disk. If not possible to determine, 3731 # we prefer to claim it's local. 3732 # Argument 1: directory to test 3733 # Argument 2: what to do if it is on local disk 3734 # Argument 3: what to do otherwise (remote disk or failure) 3735 3736 3737 # Check that source files have basic read permissions set. This might 3738 # not be the case in cygwin in certain conditions. 3739 3740 3741 3742 3743 # Check for support for specific options in bash 3744 3745 3746 ################################################################################ 3747 # 3748 # Default make target 3749 # 3750 3751 3752 # Code to run after AC_OUTPUT 3753 3754 3755 # 3756 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3757 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3758 # 3759 # This code is free software; you can redistribute it and/or modify it 3760 # under the terms of the GNU General Public License version 2 only, as 3761 # published by the Free Software Foundation. Oracle designates this 3762 # particular file as subject to the "Classpath" exception as provided 3763 # by Oracle in the LICENSE file that accompanied this code. 3764 # 3765 # This code is distributed in the hope that it will be useful, but WITHOUT 3766 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3767 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3768 # version 2 for more details (a copy is included in the LICENSE file that 3769 # accompanied this code). 3770 # 3771 # You should have received a copy of the GNU General Public License version 3772 # 2 along with this work; if not, write to the Free Software Foundation, 3773 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3774 # 3775 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3776 # or visit www.oracle.com if you need additional information or have any 3777 # questions. 3778 # 3779 3780 3781 3782 3783 3784 # Helper function which possibly converts a path using DOS-style short mode. 3785 # If so, the updated path is stored in $new_path. 3786 # $1: The path to check 3787 3788 3789 # Helper function which possibly converts a path using DOS-style short mode. 3790 # If so, the updated path is stored in $new_path. 3791 # $1: The path to check 3792 3793 3794 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3795 # and could probably be heavily simplified. However, all changes in this 3796 # area tend to need lot of testing in different scenarios, and in lack of 3797 # proper unit testing, cleaning this up has not been deemed worth the effort 3798 # at the moment. 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3809 3810 3811 3812 3813 # ... then the rest 3814 # 3815 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3816 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3817 # 3818 # This code is free software; you can redistribute it and/or modify it 3819 # under the terms of the GNU General Public License version 2 only, as 3820 # published by the Free Software Foundation. Oracle designates this 3821 # particular file as subject to the "Classpath" exception as provided 3822 # by Oracle in the LICENSE file that accompanied this code. 3823 # 3824 # This code is distributed in the hope that it will be useful, but WITHOUT 3825 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3826 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3827 # version 2 for more details (a copy is included in the LICENSE file that 3828 # accompanied this code). 3829 # 3830 # You should have received a copy of the GNU General Public License version 3831 # 2 along with this work; if not, write to the Free Software Foundation, 3832 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3833 # 3834 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3835 # or visit www.oracle.com if you need additional information or have any 3836 # questions. 3837 # 3838 3839 ######################################################################## 3840 # This file handles detection of the Boot JDK. The Boot JDK detection 3841 # process has been developed as a response to solve a complex real-world 3842 # problem. Initially, it was simple, but it has grown as platform after 3843 # platform, idiosyncracy after idiosyncracy has been supported. 3844 # 3845 # The basic idea is this: 3846 # 1) You need an acceptable *) JDK to use as a Boot JDK 3847 # 2) There are several ways to locate a JDK, that are mostly platform 3848 # dependent **) 3849 # 3) You can have multiple JDKs installed 3850 # 4) If possible, configure should try to dig out an acceptable JDK 3851 # automatically, without having to resort to command-line options 3852 # 3853 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3854 # javac) and not a JRE, etc. 3855 # 3856 # **) On Windows we typically use a well-known path. 3857 # On MacOSX we typically use the tool java_home. 3858 # On Linux we typically find javac in the $PATH, and then follow a 3859 # chain of symlinks that often ends up in a real JDK. 3860 # 3861 # This leads to the code where we check in different ways to locate a 3862 # JDK, and if one is found, check if it is acceptable. If not, we print 3863 # our reasons for rejecting it (useful when debugging non-working 3864 # configure situations) and continue checking the next one. 3865 ######################################################################## 3866 3867 # Execute the check given as argument, and verify the result 3868 # If the Boot JDK was previously found, do nothing 3869 # $1 A command line (typically autoconf macro) to execute 3870 3871 3872 # Test: Is bootjdk explicitly set by command line arguments? 3873 3874 3875 # Test: Is $JAVA_HOME set? 3876 3877 3878 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3879 3880 3881 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3882 # $1: Argument to the java_home binary (optional) 3883 3884 3885 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3886 3887 3888 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3889 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3890 # $1 = Path to directory containing jdk installations. 3891 # $2 = String to append to the found JDK directory to get the proper JDK home 3892 3893 3894 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3895 # environmental variable as base for where to look. 3896 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3897 3898 3899 # Test: Is there a JDK installed in default, well-known locations? 3900 3901 3902 # Check that a command-line tool in the Boot JDK is correct 3903 # $1 = name of variable to assign 3904 # $2 = name of binary 3905 3906 3907 ############################################################################### 3908 # 3909 # We need a Boot JDK to bootstrap the build. 3910 # 3911 3912 3913 3914 3915 3916 # BUILD_JDK: the location of the latest JDK that can run 3917 # on the host system and supports the target class file version 3918 # generated in this JDK build. This variable should only be 3919 # used after the launchers are built. 3920 # 3921 3922 # Execute the check given as argument, and verify the result. 3923 # If the JDK was previously found, do nothing. 3924 # $1 A command line (typically autoconf macro) to execute 3925 3926 3927 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3928 # is different than the host system doing the build (e.g. cross-compilation), 3929 # a special BUILD_JDK is built as part of the build process. An external 3930 # prebuilt BUILD_JDK can also be supplied. 3931 3932 3933 # 3934 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3935 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3936 # 3937 # This code is free software; you can redistribute it and/or modify it 3938 # under the terms of the GNU General Public License version 2 only, as 3939 # published by the Free Software Foundation. Oracle designates this 3940 # particular file as subject to the "Classpath" exception as provided 3941 # by Oracle in the LICENSE file that accompanied this code. 3942 # 3943 # This code is distributed in the hope that it will be useful, but WITHOUT 3944 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3945 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3946 # version 2 for more details (a copy is included in the LICENSE file that 3947 # accompanied this code). 3948 # 3949 # You should have received a copy of the GNU General Public License version 3950 # 2 along with this work; if not, write to the Free Software Foundation, 3951 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3952 # 3953 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3954 # or visit www.oracle.com if you need additional information or have any 3955 # questions. 3956 # 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 ################################################################################ 3975 # 3976 # Runs icecc-create-env once and prints the error if it fails 3977 # 3978 # $1: arguments to icecc-create-env 3979 # $2: log file 3980 # 3981 3982 3983 ################################################################################ 3984 # 3985 # Optionally enable distributed compilation of native code using icecc/icecream 3986 # 3987 3988 3989 3990 3991 3992 3993 3994 # 3995 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3996 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3997 # 3998 # This code is free software; you can redistribute it and/or modify it 3999 # under the terms of the GNU General Public License version 2 only, as 4000 # published by the Free Software Foundation. Oracle designates this 4001 # particular file as subject to the "Classpath" exception as provided 4002 # by Oracle in the LICENSE file that accompanied this code. 4003 # 4004 # This code is distributed in the hope that it will be useful, but WITHOUT 4005 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4006 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4007 # version 2 for more details (a copy is included in the LICENSE file that 4008 # accompanied this code). 4009 # 4010 # You should have received a copy of the GNU General Public License version 4011 # 2 along with this work; if not, write to the Free Software Foundation, 4012 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4013 # 4014 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4015 # or visit www.oracle.com if you need additional information or have any 4016 # questions. 4017 # 4018 4019 ################################################################################ 4020 # 4021 # Setup ABI profile (for arm) 4022 # 4023 4024 4025 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4026 # corresponding configure arguments instead 4027 4028 4029 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4030 # that configure can use them while detecting compilers. 4031 # TOOLCHAIN_TYPE is available here. 4032 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4033 4034 4035 4036 4037 4038 4039 # Documentation on common flags used for solstudio in HIGHEST. 4040 # 4041 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4042 # done with care, there are some assumptions below that need to 4043 # be understood about the use of pointers, and IEEE behavior. 4044 # 4045 # -fns: Use non-standard floating point mode (not IEEE 754) 4046 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4047 # -fsingle: Use single precision floating point with 'float' 4048 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4049 # (Source with excessing pointer casting and data access with mixed 4050 # pointer types are not recommended) 4051 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4052 # (If you expect perfect errno behavior, do not use this) 4053 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4054 # -xrestrict: Pointer parameters to functions do not overlap 4055 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4056 # If you pass in multiple pointers to the same data, do not use this) 4057 # -xlibmil: Inline some library routines 4058 # (If you expect perfect errno behavior, do not use this) 4059 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4060 # (If you expect perfect errno behavior, do not use this) 4061 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4062 4063 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4064 # Bug? 4065 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4066 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4067 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4068 #fi 4069 4070 4071 4072 4073 4074 4075 ################################################################################ 4076 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4077 # conditionals against. 4078 # $2 - Optional prefix for each variable defined. 4079 4080 4081 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4082 # IF_FALSE: [RUN-IF-FALSE]) 4083 # ------------------------------------------------------------ 4084 # Check that the C compiler supports an argument 4085 4086 4087 4088 4089 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4090 # IF_FALSE: [RUN-IF-FALSE]) 4091 # ------------------------------------------------------------ 4092 # Check that the C++ compiler supports an argument 4093 4094 4095 4096 4097 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4098 # IF_FALSE: [RUN-IF-FALSE]) 4099 # ------------------------------------------------------------ 4100 # Check that the C and C++ compilers support an argument 4101 4102 4103 4104 4105 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4106 # IF_FALSE: [RUN-IF-FALSE]) 4107 # ------------------------------------------------------------ 4108 # Check that the linker support an argument 4109 4110 4111 4112 4113 4114 4115 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4116 # Arguments: 4117 # $1 - Optional prefix for each variable defined. 4118 4119 4120 # 4121 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4122 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4123 # 4124 # This code is free software; you can redistribute it and/or modify it 4125 # under the terms of the GNU General Public License version 2 only, as 4126 # published by the Free Software Foundation. Oracle designates this 4127 # particular file as subject to the "Classpath" exception as provided 4128 # by Oracle in the LICENSE file that accompanied this code. 4129 # 4130 # This code is distributed in the hope that it will be useful, but WITHOUT 4131 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4132 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4133 # version 2 for more details (a copy is included in the LICENSE file that 4134 # accompanied this code). 4135 # 4136 # You should have received a copy of the GNU General Public License version 4137 # 2 along with this work; if not, write to the Free Software Foundation, 4138 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4139 # 4140 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4141 # or visit www.oracle.com if you need additional information or have any 4142 # questions. 4143 # 4144 4145 4146 4147 4148 4149 cygwin_help() { 4150 case $1 in 4151 unzip) 4152 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4153 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4154 ;; 4155 zip) 4156 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4157 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4158 ;; 4159 make) 4160 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4161 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4162 ;; 4163 freetype) 4164 HELP_MSG=" 4165 The freetype library can now be build during the configure process. 4166 Download the freetype sources and unpack them into an arbitrary directory: 4167 4168 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4169 tar -xzf freetype-2.5.3.tar.gz 4170 4171 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4172 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4173 builds or into '<freetype_src>/lib32' for 32-bit builds. 4174 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4175 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4176 4177 Alternatively you can unpack the sources like this to use the default directory: 4178 4179 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4180 ;; 4181 esac 4182 } 4183 4184 msys_help() { 4185 PKGHANDLER_COMMAND="" 4186 } 4187 4188 apt_help() { 4189 case $1 in 4190 reduced) 4191 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4192 devkit) 4193 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4194 openjdk) 4195 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4196 alsa) 4197 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4198 cups) 4199 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4200 freetype) 4201 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4202 ffi) 4203 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4204 x11) 4205 PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4206 ccache) 4207 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4208 dtrace) 4209 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4210 elf) 4211 PKGHANDLER_COMMAND="sudo apt-get install libelf-dev" ;; 4212 esac 4213 } 4214 4215 yum_help() { 4216 case $1 in 4217 devkit) 4218 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4219 openjdk) 4220 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4221 alsa) 4222 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4223 cups) 4224 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4225 freetype) 4226 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4227 x11) 4228 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4229 ccache) 4230 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4231 elf) 4232 PKGHANDLER_COMMAND="sudo yum install elfutils-libelf-devel" ;; 4233 esac 4234 } 4235 4236 brew_help() { 4237 case $1 in 4238 openjdk) 4239 PKGHANDLER_COMMAND="brew cask install java" ;; 4240 freetype) 4241 PKGHANDLER_COMMAND="brew install freetype" ;; 4242 ccache) 4243 PKGHANDLER_COMMAND="brew install ccache" ;; 4244 esac 4245 } 4246 4247 port_help() { 4248 PKGHANDLER_COMMAND="" 4249 } 4250 4251 pkgutil_help() { 4252 PKGHANDLER_COMMAND="" 4253 } 4254 4255 pkgadd_help() { 4256 PKGHANDLER_COMMAND="" 4257 } 4258 4259 # This function will check if we're called from the "configure" wrapper while 4260 # printing --help. If so, we will print out additional information that can 4261 # only be extracted within the autoconf script, and then exit. This must be 4262 # called at the very beginning in configure.ac. 4263 4264 4265 4266 4267 4268 4269 # 4270 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4271 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4272 # 4273 # This code is free software; you can redistribute it and/or modify it 4274 # under the terms of the GNU General Public License version 2 only, as 4275 # published by the Free Software Foundation. Oracle designates this 4276 # particular file as subject to the "Classpath" exception as provided 4277 # by Oracle in the LICENSE file that accompanied this code. 4278 # 4279 # This code is distributed in the hope that it will be useful, but WITHOUT 4280 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4281 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4282 # version 2 for more details (a copy is included in the LICENSE file that 4283 # accompanied this code). 4284 # 4285 # You should have received a copy of the GNU General Public License version 4286 # 2 along with this work; if not, write to the Free Software Foundation, 4287 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4288 # 4289 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4290 # or visit www.oracle.com if you need additional information or have any 4291 # questions. 4292 # 4293 4294 # All valid JVM features, regardless of platform 4295 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \ 4296 graal fprof vm-structs jni-check services management all-gcs nmt cds \ 4297 static-build link-time-opt aot" 4298 4299 # All valid JVM variants 4300 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom" 4301 4302 ############################################################################### 4303 # Check if the specified JVM variant should be built. To be used in shell if 4304 # constructs, like this: 4305 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4306 # 4307 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4308 4309 # Definition kept in one line to allow inlining in if statements. 4310 # Additional [] needed to keep m4 from mangling shell constructs. 4311 4312 4313 ############################################################################### 4314 # Check if the specified JVM features are explicitly enabled. To be used in 4315 # shell if constructs, like this: 4316 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4317 # 4318 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4319 4320 # Definition kept in one line to allow inlining in if statements. 4321 # Additional [] needed to keep m4 from mangling shell constructs. 4322 4323 4324 ############################################################################### 4325 # Check which variants of the JVM that we want to build. Available variants are: 4326 # server: normal interpreter, and a tiered C1/C2 compiler 4327 # client: normal interpreter, and C1 (no C2 compiler) 4328 # minimal: reduced form of client with optional features stripped out 4329 # core: normal interpreter only, no compiler 4330 # zero: C++ based interpreter only, no compiler 4331 # zeroshark: C++ based interpreter, and a llvm-based compiler 4332 # custom: baseline JVM with no default features 4333 # 4334 4335 4336 ############################################################################### 4337 # Check if dtrace should be enabled and has all prerequisites present. 4338 # 4339 4340 4341 ################################################################################ 4342 # Check if AOT should be enabled 4343 # 4344 4345 4346 ############################################################################### 4347 # Set up all JVM features for each JVM variant. 4348 # 4349 4350 4351 ############################################################################### 4352 # Validate JVM features once all setup is complete, including custom setup. 4353 # 4354 4355 4356 ################################################################################ 4357 # 4358 # Specify which sources will be used to build the 64-bit ARM port 4359 # 4360 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm 4361 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64 4362 # 4363 4364 4365 4366 ################################################################################ 4367 # Check if gtest should be built 4368 # 4369 4370 4371 # 4372 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4373 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4374 # 4375 # This code is free software; you can redistribute it and/or modify it 4376 # under the terms of the GNU General Public License version 2 only, as 4377 # published by the Free Software Foundation. Oracle designates this 4378 # particular file as subject to the "Classpath" exception as provided 4379 # by Oracle in the LICENSE file that accompanied this code. 4380 # 4381 # This code is distributed in the hope that it will be useful, but WITHOUT 4382 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4383 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4384 # version 2 for more details (a copy is included in the LICENSE file that 4385 # accompanied this code). 4386 # 4387 # You should have received a copy of the GNU General Public License version 4388 # 2 along with this work; if not, write to the Free Software Foundation, 4389 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4390 # 4391 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4392 # or visit www.oracle.com if you need additional information or have any 4393 # questions. 4394 # 4395 4396 ############################################################################### 4397 # Check which variant of the JDK that we want to build. 4398 # Currently we have: 4399 # normal: standard edition 4400 # but the custom make system may add other variants 4401 # 4402 # Effectively the JDK variant gives a name to a specific set of 4403 # modules to compile into the JDK. 4404 4405 4406 ############################################################################### 4407 # Set the debug level 4408 # release: no debug information, all optimizations, no asserts. 4409 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4410 # fastdebug: debug information (-g), all optimizations, all asserts 4411 # slowdebug: debug information (-g), no optimizations, all asserts 4412 4413 4414 ############################################################################### 4415 # 4416 # Should we build only OpenJDK even if closed sources are present? 4417 # 4418 4419 4420 4421 4422 ############################################################################### 4423 # 4424 # Enable or disable the elliptic curve crypto implementation 4425 # 4426 4427 4428 4429 4430 ################################################################################ 4431 # 4432 # Gcov coverage data for hotspot 4433 # 4434 4435 4436 ################################################################################ 4437 # 4438 # Static build support. When enabled will generate static 4439 # libraries instead of shared libraries for all JDK libs. 4440 # 4441 4442 4443 ################################################################################ 4444 # 4445 # jlink options. 4446 # We always keep packaged modules in JDK image. 4447 # 4448 4449 4450 ################################################################################ 4451 # 4452 # Check if building of the jtreg failure handler should be enabled. 4453 # 4454 4455 4456 ################################################################################ 4457 # 4458 # Enable or disable generation of the classlist at build time 4459 # 4460 4461 4462 # 4463 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 4464 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4465 # 4466 # This code is free software; you can redistribute it and/or modify it 4467 # under the terms of the GNU General Public License version 2 only, as 4468 # published by the Free Software Foundation. Oracle designates this 4469 # particular file as subject to the "Classpath" exception as provided 4470 # by Oracle in the LICENSE file that accompanied this code. 4471 # 4472 # This code is distributed in the hope that it will be useful, but WITHOUT 4473 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4474 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4475 # version 2 for more details (a copy is included in the LICENSE file that 4476 # accompanied this code). 4477 # 4478 # You should have received a copy of the GNU General Public License version 4479 # 2 along with this work; if not, write to the Free Software Foundation, 4480 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4481 # 4482 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4483 # or visit www.oracle.com if you need additional information or have any 4484 # questions. 4485 # 4486 4487 ############################################################################### 4488 # 4489 # Setup version numbers 4490 # 4491 4492 # Verify that a given string represents a valid version number, and assign it 4493 # to a variable. 4494 4495 # Argument 1: the variable to assign to 4496 # Argument 2: the value given by the user 4497 4498 4499 4500 4501 # 4502 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4503 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4504 # 4505 # This code is free software; you can redistribute it and/or modify it 4506 # under the terms of the GNU General Public License version 2 only, as 4507 # published by the Free Software Foundation. Oracle designates this 4508 # particular file as subject to the "Classpath" exception as provided 4509 # by Oracle in the LICENSE file that accompanied this code. 4510 # 4511 # This code is distributed in the hope that it will be useful, but WITHOUT 4512 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4513 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4514 # version 2 for more details (a copy is included in the LICENSE file that 4515 # accompanied this code). 4516 # 4517 # You should have received a copy of the GNU General Public License version 4518 # 2 along with this work; if not, write to the Free Software Foundation, 4519 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4520 # 4521 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4522 # or visit www.oracle.com if you need additional information or have any 4523 # questions. 4524 # 4525 4526 # Major library component reside in separate files. 4527 # 4528 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4529 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4530 # 4531 # This code is free software; you can redistribute it and/or modify it 4532 # under the terms of the GNU General Public License version 2 only, as 4533 # published by the Free Software Foundation. Oracle designates this 4534 # particular file as subject to the "Classpath" exception as provided 4535 # by Oracle in the LICENSE file that accompanied this code. 4536 # 4537 # This code is distributed in the hope that it will be useful, but WITHOUT 4538 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4539 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4540 # version 2 for more details (a copy is included in the LICENSE file that 4541 # accompanied this code). 4542 # 4543 # You should have received a copy of the GNU General Public License version 4544 # 2 along with this work; if not, write to the Free Software Foundation, 4545 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4546 # 4547 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4548 # or visit www.oracle.com if you need additional information or have any 4549 # questions. 4550 # 4551 4552 ################################################################################ 4553 # Setup alsa (Advanced Linux Sound Architecture) 4554 ################################################################################ 4555 4556 4557 # 4558 # Copyright (c) 2011, 2017, 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 # Setup bundled libraries. 4584 # 4585 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4586 # OpenJDK repository. Default is to use these libraries as bundled, but they 4587 # might be replaced by en external version by the user. 4588 ################################################################################ 4589 4590 4591 ################################################################################ 4592 # Setup libjpeg 4593 ################################################################################ 4594 4595 4596 ################################################################################ 4597 # Setup giflib 4598 ################################################################################ 4599 4600 4601 ################################################################################ 4602 # Setup libpng 4603 ################################################################################ 4604 4605 4606 ################################################################################ 4607 # Setup zlib 4608 ################################################################################ 4609 4610 4611 ################################################################################ 4612 # Setup lcms (Little CMS) 4613 ################################################################################ 4614 4615 4616 # 4617 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4618 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4619 # 4620 # This code is free software; you can redistribute it and/or modify it 4621 # under the terms of the GNU General Public License version 2 only, as 4622 # published by the Free Software Foundation. Oracle designates this 4623 # particular file as subject to the "Classpath" exception as provided 4624 # by Oracle in the LICENSE file that accompanied this code. 4625 # 4626 # This code is distributed in the hope that it will be useful, but WITHOUT 4627 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4628 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4629 # version 2 for more details (a copy is included in the LICENSE file that 4630 # accompanied this code). 4631 # 4632 # You should have received a copy of the GNU General Public License version 4633 # 2 along with this work; if not, write to the Free Software Foundation, 4634 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4635 # 4636 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4637 # or visit www.oracle.com if you need additional information or have any 4638 # questions. 4639 # 4640 4641 ################################################################################ 4642 # Setup cups (Common Unix Printing System) 4643 ################################################################################ 4644 4645 4646 # 4647 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4648 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4649 # 4650 # This code is free software; you can redistribute it and/or modify it 4651 # under the terms of the GNU General Public License version 2 only, as 4652 # published by the Free Software Foundation. Oracle designates this 4653 # particular file as subject to the "Classpath" exception as provided 4654 # by Oracle in the LICENSE file that accompanied this code. 4655 # 4656 # This code is distributed in the hope that it will be useful, but WITHOUT 4657 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4658 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4659 # version 2 for more details (a copy is included in the LICENSE file that 4660 # accompanied this code). 4661 # 4662 # You should have received a copy of the GNU General Public License version 4663 # 2 along with this work; if not, write to the Free Software Foundation, 4664 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4665 # 4666 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4667 # or visit www.oracle.com if you need additional information or have any 4668 # questions. 4669 # 4670 4671 ################################################################################ 4672 # Setup libffi (Foreign Function Interface) 4673 ################################################################################ 4674 4675 4676 # 4677 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4678 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4679 # 4680 # This code is free software; you can redistribute it and/or modify it 4681 # under the terms of the GNU General Public License version 2 only, as 4682 # published by the Free Software Foundation. Oracle designates this 4683 # particular file as subject to the "Classpath" exception as provided 4684 # by Oracle in the LICENSE file that accompanied this code. 4685 # 4686 # This code is distributed in the hope that it will be useful, but WITHOUT 4687 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4688 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4689 # version 2 for more details (a copy is included in the LICENSE file that 4690 # accompanied this code). 4691 # 4692 # You should have received a copy of the GNU General Public License version 4693 # 2 along with this work; if not, write to the Free Software Foundation, 4694 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4695 # 4696 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4697 # or visit www.oracle.com if you need additional information or have any 4698 # questions. 4699 # 4700 4701 ################################################################################ 4702 # Build the freetype lib from source 4703 ################################################################################ 4704 4705 4706 ################################################################################ 4707 # Check if a potential freeype library match is correct and usable 4708 ################################################################################ 4709 4710 4711 ################################################################################ 4712 # Setup freetype (The FreeType2 font rendering library) 4713 ################################################################################ 4714 4715 4716 # 4717 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4718 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4719 # 4720 # This code is free software; you can redistribute it and/or modify it 4721 # under the terms of the GNU General Public License version 2 only, as 4722 # published by the Free Software Foundation. Oracle designates this 4723 # particular file as subject to the "Classpath" exception as provided 4724 # by Oracle in the LICENSE file that accompanied this code. 4725 # 4726 # This code is distributed in the hope that it will be useful, but WITHOUT 4727 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4728 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4729 # version 2 for more details (a copy is included in the LICENSE file that 4730 # accompanied this code). 4731 # 4732 # You should have received a copy of the GNU General Public License version 4733 # 2 along with this work; if not, write to the Free Software Foundation, 4734 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4735 # 4736 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4737 # or visit www.oracle.com if you need additional information or have any 4738 # questions. 4739 # 4740 4741 ################################################################################ 4742 # Setup the standard C/C++ runtime libraries. 4743 # 4744 # Most importantly, determine if stdc++ should be linked statically or 4745 # dynamically. 4746 ################################################################################ 4747 4748 4749 # 4750 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4751 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4752 # 4753 # This code is free software; you can redistribute it and/or modify it 4754 # under the terms of the GNU General Public License version 2 only, as 4755 # published by the Free Software Foundation. Oracle designates this 4756 # particular file as subject to the "Classpath" exception as provided 4757 # by Oracle in the LICENSE file that accompanied this code. 4758 # 4759 # This code is distributed in the hope that it will be useful, but WITHOUT 4760 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4761 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4762 # version 2 for more details (a copy is included in the LICENSE file that 4763 # accompanied this code). 4764 # 4765 # You should have received a copy of the GNU General Public License version 4766 # 2 along with this work; if not, write to the Free Software Foundation, 4767 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4768 # 4769 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4770 # or visit www.oracle.com if you need additional information or have any 4771 # questions. 4772 # 4773 4774 ################################################################################ 4775 # Setup X11 Windows system 4776 ################################################################################ 4777 4778 4779 # 4780 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4781 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4782 # 4783 # This code is free software; you can redistribute it and/or modify it 4784 # under the terms of the GNU General Public License version 2 only, as 4785 # published by the Free Software Foundation. Oracle designates this 4786 # particular file as subject to the "Classpath" exception as provided 4787 # by Oracle in the LICENSE file that accompanied this code. 4788 # 4789 # This code is distributed in the hope that it will be useful, but WITHOUT 4790 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4791 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4792 # version 2 for more details (a copy is included in the LICENSE file that 4793 # accompanied this code). 4794 # 4795 # You should have received a copy of the GNU General Public License version 4796 # 2 along with this work; if not, write to the Free Software Foundation, 4797 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4798 # 4799 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4800 # or visit www.oracle.com if you need additional information or have any 4801 # questions. 4802 # 4803 4804 ################################################################################ 4805 # Setup libelf (ELF library) 4806 ################################################################################ 4807 4808 4809 4810 ################################################################################ 4811 # Determine which libraries are needed for this configuration 4812 ################################################################################ 4813 4814 4815 ################################################################################ 4816 # Parse library options, and setup needed libraries 4817 ################################################################################ 4818 4819 4820 ################################################################################ 4821 # Setup llvm (Low-Level VM) 4822 ################################################################################ 4823 4824 4825 ################################################################################ 4826 # Setup various libraries, typically small system libraries 4827 ################################################################################ 4828 4829 4830 ################################################################################ 4831 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4832 # redistribute it in the test image. 4833 ################################################################################ 4834 4835 4836 4837 # 4838 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4839 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4840 # 4841 # This code is free software; you can redistribute it and/or modify it 4842 # under the terms of the GNU General Public License version 2 only, as 4843 # published by the Free Software Foundation. Oracle designates this 4844 # particular file as subject to the "Classpath" exception as provided 4845 # by Oracle in the LICENSE file that accompanied this code. 4846 # 4847 # This code is distributed in the hope that it will be useful, but WITHOUT 4848 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4849 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4850 # version 2 for more details (a copy is included in the LICENSE file that 4851 # accompanied this code). 4852 # 4853 # You should have received a copy of the GNU General Public License version 4854 # 2 along with this work; if not, write to the Free Software Foundation, 4855 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4856 # 4857 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4858 # or visit www.oracle.com if you need additional information or have any 4859 # questions. 4860 # 4861 4862 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4863 # Converts autoconf style CPU name to OpenJDK style, into 4864 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4865 4866 4867 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4868 # Converts autoconf style OS name to OpenJDK style, into 4869 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4870 4871 4872 # Expects $host_os $host_cpu $build_os and $build_cpu 4873 # and $with_target_bits to have been setup! 4874 # 4875 # Translate the standard triplet(quadruplet) definition 4876 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4877 # OPENJDK_BUILD_OS, etc. 4878 4879 4880 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4881 # accordingly. Must be done after setting up build and target system, but before 4882 # doing anything else with these values. 4883 4884 4885 # Setup the legacy variables, for controlling the old makefiles. 4886 # 4887 4888 4889 # $1 - Either TARGET or BUILD to setup the variables for. 4890 4891 4892 4893 4894 #%%% Build and target systems %%% 4895 4896 4897 4898 4899 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4900 # Add -mX to various FLAGS variables. 4901 4902 4903 4904 4905 4906 4907 # 4908 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4909 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4910 # 4911 # This code is free software; you can redistribute it and/or modify it 4912 # under the terms of the GNU General Public License version 2 only, as 4913 # published by the Free Software Foundation. Oracle designates this 4914 # particular file as subject to the "Classpath" exception as provided 4915 # by Oracle in the LICENSE file that accompanied this code. 4916 # 4917 # This code is distributed in the hope that it will be useful, but WITHOUT 4918 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4919 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4920 # version 2 for more details (a copy is included in the LICENSE file that 4921 # accompanied this code). 4922 # 4923 # You should have received a copy of the GNU General Public License version 4924 # 2 along with this work; if not, write to the Free Software Foundation, 4925 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4926 # 4927 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4928 # or visit www.oracle.com if you need additional information or have any 4929 # questions. 4930 # 4931 4932 4933 4934 4935 4936 4937 4938 ################################################################################ 4939 # Define a mechanism for importing extra prebuilt modules 4940 # 4941 4942 4943 4944 # 4945 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4946 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4947 # 4948 # This code is free software; you can redistribute it and/or modify it 4949 # under the terms of the GNU General Public License version 2 only, as 4950 # published by the Free Software Foundation. Oracle designates this 4951 # particular file as subject to the "Classpath" exception as provided 4952 # by Oracle in the LICENSE file that accompanied this code. 4953 # 4954 # This code is distributed in the hope that it will be useful, but WITHOUT 4955 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4956 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4957 # version 2 for more details (a copy is included in the LICENSE file that 4958 # accompanied this code). 4959 # 4960 # You should have received a copy of the GNU General Public License version 4961 # 2 along with this work; if not, write to the Free Software Foundation, 4962 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4963 # 4964 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4965 # or visit www.oracle.com if you need additional information or have any 4966 # questions. 4967 # 4968 4969 ######################################################################## 4970 # This file is responsible for detecting, verifying and setting up the 4971 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4972 # proper paths to the binaries, but it will not setup any flags. 4973 # 4974 # The binaries used is determined by the toolchain type, which is the family of 4975 # compilers and related tools that are used. 4976 ######################################################################## 4977 4978 4979 # All valid toolchains, regardless of platform (used by help.m4) 4980 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4981 4982 # These toolchains are valid on different platforms 4983 VALID_TOOLCHAINS_linux="gcc clang" 4984 VALID_TOOLCHAINS_solaris="solstudio" 4985 VALID_TOOLCHAINS_macosx="gcc clang" 4986 VALID_TOOLCHAINS_aix="xlc" 4987 VALID_TOOLCHAINS_windows="microsoft" 4988 4989 # Toolchain descriptions 4990 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4991 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4992 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4993 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4994 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4995 4996 # Minimum supported versions, empty means unspecified 4997 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4998 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3" 4999 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010 5000 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 5001 TOOLCHAIN_MINIMUM_VERSION_xlc="" 5002 5003 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 5004 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 5005 # $1 - optional variable prefix for compiler and version variables (BUILD_) 5006 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 5007 5008 5009 # Check if the configured compiler (C and C++) is of a specific version or 5010 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 5011 # 5012 # Arguments: 5013 # VERSION: The version string to check against the found version 5014 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 5015 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 5016 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 5017 5018 5019 5020 5021 # Setup a number of variables describing how native output files are 5022 # named on this platform/toolchain. 5023 5024 5025 # Determine which toolchain type to use, and make sure it is valid for this 5026 # platform. Setup various information about the selected toolchain. 5027 5028 5029 # Before we start detecting the toolchain executables, we might need some 5030 # special setup, e.g. additional paths etc. 5031 5032 5033 # Restore path, etc 5034 5035 5036 # Check if a compiler is of the toolchain type we expect, and save the version 5037 # information from it. If the compiler does not match the expected type, 5038 # this function will abort using AC_MSG_ERROR. If it matches, the version will 5039 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 5040 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 5041 # 5042 # $1 = compiler to test (CC or CXX) 5043 # $2 = human readable name of compiler (C or C++) 5044 5045 5046 # Try to locate the given C or C++ compiler in the path, or otherwise. 5047 # 5048 # $1 = compiler to test (CC or CXX) 5049 # $2 = human readable name of compiler (C or C++) 5050 # $3 = compiler name to search for 5051 5052 5053 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 5054 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 5055 # archiver (AR). Verify that the compilers are correct according to the 5056 # toolchain type. 5057 5058 5059 # Setup additional tools that is considered a part of the toolchain, but not the 5060 # core part. Many of these are highly platform-specific and do not exist, 5061 # and/or are not needed on all platforms. 5062 5063 5064 # Setup the build tools (i.e, the compiler and linker used to build programs 5065 # that should be run on the build platform, not the target platform, as a build 5066 # helper). Since the non-cross-compile case uses the normal, target compilers 5067 # for this, we can only do this after these have been setup. 5068 5069 5070 # Do some additional checks on the detected tools. 5071 5072 5073 # Setup the JTReg Regression Test Harness. 5074 5075 5076 # 5077 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5078 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5079 # 5080 # This code is free software; you can redistribute it and/or modify it 5081 # under the terms of the GNU General Public License version 2 only, as 5082 # published by the Free Software Foundation. Oracle designates this 5083 # particular file as subject to the "Classpath" exception as provided 5084 # by Oracle in the LICENSE file that accompanied this code. 5085 # 5086 # This code is distributed in the hope that it will be useful, but WITHOUT 5087 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5088 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5089 # version 2 for more details (a copy is included in the LICENSE file that 5090 # accompanied this code). 5091 # 5092 # You should have received a copy of the GNU General Public License version 5093 # 2 along with this work; if not, write to the Free Software Foundation, 5094 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5095 # 5096 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5097 # or visit www.oracle.com if you need additional information or have any 5098 # questions. 5099 # 5100 5101 ################################################################################ 5102 # The order of these defines the priority by which we try to find them. 5103 VALID_VS_VERSIONS="2013 2012 2010" 5104 5105 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5106 VS_VERSION_INTERNAL_2010=100 5107 VS_MSVCR_2010=msvcr100.dll 5108 # We don't use msvcp on Visual Studio 2010 5109 #VS_MSVCP_2010=msvcp100.dll 5110 VS_ENVVAR_2010="VS100COMNTOOLS" 5111 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5112 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5113 VS_VS_PLATFORM_NAME_2010="v100" 5114 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5115 5116 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5117 VS_VERSION_INTERNAL_2012=110 5118 VS_MSVCR_2012=msvcr110.dll 5119 VS_MSVCP_2012=msvcp110.dll 5120 VS_ENVVAR_2012="VS110COMNTOOLS" 5121 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5122 VS_SDK_INSTALLDIR_2012= 5123 VS_VS_PLATFORM_NAME_2012="v110" 5124 VS_SDK_PLATFORM_NAME_2012= 5125 5126 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5127 VS_VERSION_INTERNAL_2013=120 5128 VS_MSVCR_2013=msvcr120.dll 5129 VS_MSVCP_2013=msvcp120.dll 5130 VS_ENVVAR_2013="VS120COMNTOOLS" 5131 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5132 VS_SDK_INSTALLDIR_2013= 5133 VS_VS_PLATFORM_NAME_2013="v120" 5134 VS_SDK_PLATFORM_NAME_2013= 5135 5136 ################################################################################ 5137 5138 5139 5140 ################################################################################ 5141 5142 5143 5144 ################################################################################ 5145 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5146 # build environment and assigns it to VS_ENV_CMD 5147 5148 5149 ################################################################################ 5150 5151 5152 5153 ################################################################################ 5154 # Check if the VS env variables were setup prior to running configure. 5155 # If not, then find vcvarsall.bat and run it automatically, and integrate 5156 # the set env variables into the spec file. 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 # This line needs to be here, verbatim, after all includes and the dummy hook 5172 # definitions. It is replaced with custom functionality when building 5173 # custom sources. 5174 #CUSTOM_AUTOCONF_INCLUDE 5175 5176 # Do not change or remove the following line, it is needed for consistency checks: 5177 DATE_WHEN_GENERATED=1490856742 5178 5179 ############################################################################### 5180 # 5181 # Initialization / Boot-strapping 5182 # 5183 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5184 # thus it jumps back and forth, each time gaining something needed later on. 5185 # 5186 ############################################################################### 5187 5188 # If we are requested to print additional help, do that and then exit. 5189 # This must be the very first call. 5190 5191 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5192 5193 # Print available toolchains 5194 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5195 $PRINTF "Which are valid to use depends on the build platform.\n" 5196 for toolchain in $VALID_TOOLCHAINS_all; do 5197 # Use indirect variable referencing 5198 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5199 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5200 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5201 done 5202 $PRINTF "\n" 5203 5204 # Print available jvm features 5205 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5206 $PRINTF "Which are valid to use depends on the target platform.\n " 5207 $PRINTF "%s " $VALID_JVM_FEATURES 5208 $PRINTF "\n" 5209 5210 # And now exit directly 5211 exit 0 5212 fi 5213 5214 5215 # Basic initialization that must happen first of all in the normal process. 5216 5217 # Save the original command line. This is passed to us by the wrapper configure script. 5218 5219 # Save the path variable before it gets changed 5220 ORIGINAL_PATH="$PATH" 5221 5222 DATE_WHEN_CONFIGURED=`LANG=C date` 5223 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5225 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5227 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5228 5229 5230 # Start with tools that do not need have cross compilation support 5231 # and can be expected to be found in the default PATH. These tools are 5232 # used by configure. 5233 5234 # First are all the simple required tools. 5235 5236 5237 5238 # Publish this variable in the help. 5239 5240 5241 if [ -z "${BASENAME+x}" ]; then 5242 # The variable is not set by user, try to locate tool using the code snippet 5243 for ac_prog in basename 5244 do 5245 # Extract the first word of "$ac_prog", so it can be a program name with args. 5246 set dummy $ac_prog; ac_word=$2 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5248 $as_echo_n "checking for $ac_word... " >&6; } 5249 if ${ac_cv_path_BASENAME+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251 else 5252 case $BASENAME in 5253 [\\/]* | ?:[\\/]*) 5254 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5255 ;; 5256 *) 5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5258 for as_dir in $PATH 5259 do 5260 IFS=$as_save_IFS 5261 test -z "$as_dir" && as_dir=. 5262 for ac_exec_ext in '' $ac_executable_extensions; do 5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5264 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5266 break 2 5267 fi 5268 done 5269 done 5270 IFS=$as_save_IFS 5271 5272 ;; 5273 esac 5274 fi 5275 BASENAME=$ac_cv_path_BASENAME 5276 if test -n "$BASENAME"; then 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5278 $as_echo "$BASENAME" >&6; } 5279 else 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5281 $as_echo "no" >&6; } 5282 fi 5283 5284 5285 test -n "$BASENAME" && break 5286 done 5287 5288 else 5289 # The variable is set, but is it from the command line or the environment? 5290 5291 # Try to remove the string !BASENAME! from our list. 5292 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5293 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5294 # If it failed, the variable was not from the command line. Ignore it, 5295 # but warn the user (except for BASH, which is always set by the calling BASH). 5296 if test "xBASENAME" != xBASH; then 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5298 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5299 fi 5300 # Try to locate tool using the code snippet 5301 for ac_prog in basename 5302 do 5303 # Extract the first word of "$ac_prog", so it can be a program name with args. 5304 set dummy $ac_prog; ac_word=$2 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5306 $as_echo_n "checking for $ac_word... " >&6; } 5307 if ${ac_cv_path_BASENAME+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309 else 5310 case $BASENAME in 5311 [\\/]* | ?:[\\/]*) 5312 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5313 ;; 5314 *) 5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5316 for as_dir in $PATH 5317 do 5318 IFS=$as_save_IFS 5319 test -z "$as_dir" && as_dir=. 5320 for ac_exec_ext in '' $ac_executable_extensions; do 5321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5322 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5324 break 2 5325 fi 5326 done 5327 done 5328 IFS=$as_save_IFS 5329 5330 ;; 5331 esac 5332 fi 5333 BASENAME=$ac_cv_path_BASENAME 5334 if test -n "$BASENAME"; then 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5336 $as_echo "$BASENAME" >&6; } 5337 else 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5339 $as_echo "no" >&6; } 5340 fi 5341 5342 5343 test -n "$BASENAME" && break 5344 done 5345 5346 else 5347 # If it succeeded, then it was overridden by the user. We will use it 5348 # for the tool. 5349 5350 # First remove it from the list of overridden variables, so we can test 5351 # for unknown variables in the end. 5352 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5353 5354 # Check if we try to supply an empty value 5355 if test "x$BASENAME" = x; then 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5357 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5359 $as_echo_n "checking for BASENAME... " >&6; } 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5361 $as_echo "disabled" >&6; } 5362 else 5363 # Check if the provided tool contains a complete path. 5364 tool_specified="$BASENAME" 5365 tool_basename="${tool_specified##*/}" 5366 if test "x$tool_basename" = "x$tool_specified"; then 5367 # A command without a complete path is provided, search $PATH. 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5369 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5370 # Extract the first word of "$tool_basename", so it can be a program name with args. 5371 set dummy $tool_basename; ac_word=$2 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5373 $as_echo_n "checking for $ac_word... " >&6; } 5374 if ${ac_cv_path_BASENAME+:} false; then : 5375 $as_echo_n "(cached) " >&6 5376 else 5377 case $BASENAME in 5378 [\\/]* | ?:[\\/]*) 5379 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5380 ;; 5381 *) 5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5383 for as_dir in $PATH 5384 do 5385 IFS=$as_save_IFS 5386 test -z "$as_dir" && as_dir=. 5387 for ac_exec_ext in '' $ac_executable_extensions; do 5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5389 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5391 break 2 5392 fi 5393 done 5394 done 5395 IFS=$as_save_IFS 5396 5397 ;; 5398 esac 5399 fi 5400 BASENAME=$ac_cv_path_BASENAME 5401 if test -n "$BASENAME"; then 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5403 $as_echo "$BASENAME" >&6; } 5404 else 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5406 $as_echo "no" >&6; } 5407 fi 5408 5409 5410 if test "x$BASENAME" = x; then 5411 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5412 fi 5413 else 5414 # Otherwise we believe it is a complete path. Use it as it is. 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5416 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5418 $as_echo_n "checking for BASENAME... " >&6; } 5419 if test ! -x "$tool_specified"; then 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5421 $as_echo "not found" >&6; } 5422 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5423 fi 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5425 $as_echo "$tool_specified" >&6; } 5426 fi 5427 fi 5428 fi 5429 5430 fi 5431 5432 5433 5434 if test "x$BASENAME" = x; then 5435 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5436 fi 5437 5438 5439 5440 5441 5442 # Publish this variable in the help. 5443 5444 5445 if [ -z "${BASH+x}" ]; then 5446 # The variable is not set by user, try to locate tool using the code snippet 5447 for ac_prog in bash 5448 do 5449 # Extract the first word of "$ac_prog", so it can be a program name with args. 5450 set dummy $ac_prog; ac_word=$2 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5452 $as_echo_n "checking for $ac_word... " >&6; } 5453 if ${ac_cv_path_BASH+:} false; then : 5454 $as_echo_n "(cached) " >&6 5455 else 5456 case $BASH in 5457 [\\/]* | ?:[\\/]*) 5458 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5459 ;; 5460 *) 5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5462 for as_dir in $PATH 5463 do 5464 IFS=$as_save_IFS 5465 test -z "$as_dir" && as_dir=. 5466 for ac_exec_ext in '' $ac_executable_extensions; do 5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5468 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5470 break 2 5471 fi 5472 done 5473 done 5474 IFS=$as_save_IFS 5475 5476 ;; 5477 esac 5478 fi 5479 BASH=$ac_cv_path_BASH 5480 if test -n "$BASH"; then 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5482 $as_echo "$BASH" >&6; } 5483 else 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5485 $as_echo "no" >&6; } 5486 fi 5487 5488 5489 test -n "$BASH" && break 5490 done 5491 5492 else 5493 # The variable is set, but is it from the command line or the environment? 5494 5495 # Try to remove the string !BASH! from our list. 5496 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5497 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5498 # If it failed, the variable was not from the command line. Ignore it, 5499 # but warn the user (except for BASH, which is always set by the calling BASH). 5500 if test "xBASH" != xBASH; then 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5502 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5503 fi 5504 # Try to locate tool using the code snippet 5505 for ac_prog in bash 5506 do 5507 # Extract the first word of "$ac_prog", so it can be a program name with args. 5508 set dummy $ac_prog; ac_word=$2 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5510 $as_echo_n "checking for $ac_word... " >&6; } 5511 if ${ac_cv_path_BASH+:} false; then : 5512 $as_echo_n "(cached) " >&6 5513 else 5514 case $BASH in 5515 [\\/]* | ?:[\\/]*) 5516 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5517 ;; 5518 *) 5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5520 for as_dir in $PATH 5521 do 5522 IFS=$as_save_IFS 5523 test -z "$as_dir" && as_dir=. 5524 for ac_exec_ext in '' $ac_executable_extensions; do 5525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5526 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5528 break 2 5529 fi 5530 done 5531 done 5532 IFS=$as_save_IFS 5533 5534 ;; 5535 esac 5536 fi 5537 BASH=$ac_cv_path_BASH 5538 if test -n "$BASH"; then 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5540 $as_echo "$BASH" >&6; } 5541 else 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5543 $as_echo "no" >&6; } 5544 fi 5545 5546 5547 test -n "$BASH" && break 5548 done 5549 5550 else 5551 # If it succeeded, then it was overridden by the user. We will use it 5552 # for the tool. 5553 5554 # First remove it from the list of overridden variables, so we can test 5555 # for unknown variables in the end. 5556 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5557 5558 # Check if we try to supply an empty value 5559 if test "x$BASH" = x; then 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5561 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5563 $as_echo_n "checking for BASH... " >&6; } 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5565 $as_echo "disabled" >&6; } 5566 else 5567 # Check if the provided tool contains a complete path. 5568 tool_specified="$BASH" 5569 tool_basename="${tool_specified##*/}" 5570 if test "x$tool_basename" = "x$tool_specified"; then 5571 # A command without a complete path is provided, search $PATH. 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5573 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5574 # Extract the first word of "$tool_basename", so it can be a program name with args. 5575 set dummy $tool_basename; ac_word=$2 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5577 $as_echo_n "checking for $ac_word... " >&6; } 5578 if ${ac_cv_path_BASH+:} false; then : 5579 $as_echo_n "(cached) " >&6 5580 else 5581 case $BASH in 5582 [\\/]* | ?:[\\/]*) 5583 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5584 ;; 5585 *) 5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5587 for as_dir in $PATH 5588 do 5589 IFS=$as_save_IFS 5590 test -z "$as_dir" && as_dir=. 5591 for ac_exec_ext in '' $ac_executable_extensions; do 5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5593 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5595 break 2 5596 fi 5597 done 5598 done 5599 IFS=$as_save_IFS 5600 5601 ;; 5602 esac 5603 fi 5604 BASH=$ac_cv_path_BASH 5605 if test -n "$BASH"; then 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5607 $as_echo "$BASH" >&6; } 5608 else 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5610 $as_echo "no" >&6; } 5611 fi 5612 5613 5614 if test "x$BASH" = x; then 5615 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5616 fi 5617 else 5618 # Otherwise we believe it is a complete path. Use it as it is. 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5620 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5622 $as_echo_n "checking for BASH... " >&6; } 5623 if test ! -x "$tool_specified"; then 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5625 $as_echo "not found" >&6; } 5626 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5627 fi 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5629 $as_echo "$tool_specified" >&6; } 5630 fi 5631 fi 5632 fi 5633 5634 fi 5635 5636 5637 5638 if test "x$BASH" = x; then 5639 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5640 fi 5641 5642 5643 5644 5645 5646 # Publish this variable in the help. 5647 5648 5649 if [ -z "${CAT+x}" ]; then 5650 # The variable is not set by user, try to locate tool using the code snippet 5651 for ac_prog in cat 5652 do 5653 # Extract the first word of "$ac_prog", so it can be a program name with args. 5654 set dummy $ac_prog; ac_word=$2 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5656 $as_echo_n "checking for $ac_word... " >&6; } 5657 if ${ac_cv_path_CAT+:} false; then : 5658 $as_echo_n "(cached) " >&6 5659 else 5660 case $CAT in 5661 [\\/]* | ?:[\\/]*) 5662 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5663 ;; 5664 *) 5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5666 for as_dir in $PATH 5667 do 5668 IFS=$as_save_IFS 5669 test -z "$as_dir" && as_dir=. 5670 for ac_exec_ext in '' $ac_executable_extensions; do 5671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5672 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5674 break 2 5675 fi 5676 done 5677 done 5678 IFS=$as_save_IFS 5679 5680 ;; 5681 esac 5682 fi 5683 CAT=$ac_cv_path_CAT 5684 if test -n "$CAT"; then 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5686 $as_echo "$CAT" >&6; } 5687 else 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5689 $as_echo "no" >&6; } 5690 fi 5691 5692 5693 test -n "$CAT" && break 5694 done 5695 5696 else 5697 # The variable is set, but is it from the command line or the environment? 5698 5699 # Try to remove the string !CAT! from our list. 5700 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5701 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5702 # If it failed, the variable was not from the command line. Ignore it, 5703 # but warn the user (except for BASH, which is always set by the calling BASH). 5704 if test "xCAT" != xBASH; then 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5706 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5707 fi 5708 # Try to locate tool using the code snippet 5709 for ac_prog in cat 5710 do 5711 # Extract the first word of "$ac_prog", so it can be a program name with args. 5712 set dummy $ac_prog; ac_word=$2 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5714 $as_echo_n "checking for $ac_word... " >&6; } 5715 if ${ac_cv_path_CAT+:} false; then : 5716 $as_echo_n "(cached) " >&6 5717 else 5718 case $CAT in 5719 [\\/]* | ?:[\\/]*) 5720 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5721 ;; 5722 *) 5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5724 for as_dir in $PATH 5725 do 5726 IFS=$as_save_IFS 5727 test -z "$as_dir" && as_dir=. 5728 for ac_exec_ext in '' $ac_executable_extensions; do 5729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5730 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5732 break 2 5733 fi 5734 done 5735 done 5736 IFS=$as_save_IFS 5737 5738 ;; 5739 esac 5740 fi 5741 CAT=$ac_cv_path_CAT 5742 if test -n "$CAT"; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5744 $as_echo "$CAT" >&6; } 5745 else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5747 $as_echo "no" >&6; } 5748 fi 5749 5750 5751 test -n "$CAT" && break 5752 done 5753 5754 else 5755 # If it succeeded, then it was overridden by the user. We will use it 5756 # for the tool. 5757 5758 # First remove it from the list of overridden variables, so we can test 5759 # for unknown variables in the end. 5760 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5761 5762 # Check if we try to supply an empty value 5763 if test "x$CAT" = x; then 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5765 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5767 $as_echo_n "checking for CAT... " >&6; } 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5769 $as_echo "disabled" >&6; } 5770 else 5771 # Check if the provided tool contains a complete path. 5772 tool_specified="$CAT" 5773 tool_basename="${tool_specified##*/}" 5774 if test "x$tool_basename" = "x$tool_specified"; then 5775 # A command without a complete path is provided, search $PATH. 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5777 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5778 # Extract the first word of "$tool_basename", so it can be a program name with args. 5779 set dummy $tool_basename; ac_word=$2 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5781 $as_echo_n "checking for $ac_word... " >&6; } 5782 if ${ac_cv_path_CAT+:} false; then : 5783 $as_echo_n "(cached) " >&6 5784 else 5785 case $CAT in 5786 [\\/]* | ?:[\\/]*) 5787 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5788 ;; 5789 *) 5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5791 for as_dir in $PATH 5792 do 5793 IFS=$as_save_IFS 5794 test -z "$as_dir" && as_dir=. 5795 for ac_exec_ext in '' $ac_executable_extensions; do 5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5797 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5799 break 2 5800 fi 5801 done 5802 done 5803 IFS=$as_save_IFS 5804 5805 ;; 5806 esac 5807 fi 5808 CAT=$ac_cv_path_CAT 5809 if test -n "$CAT"; then 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5811 $as_echo "$CAT" >&6; } 5812 else 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5814 $as_echo "no" >&6; } 5815 fi 5816 5817 5818 if test "x$CAT" = x; then 5819 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5820 fi 5821 else 5822 # Otherwise we believe it is a complete path. Use it as it is. 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5824 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5826 $as_echo_n "checking for CAT... " >&6; } 5827 if test ! -x "$tool_specified"; then 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5829 $as_echo "not found" >&6; } 5830 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5831 fi 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5833 $as_echo "$tool_specified" >&6; } 5834 fi 5835 fi 5836 fi 5837 5838 fi 5839 5840 5841 5842 if test "x$CAT" = x; then 5843 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5844 fi 5845 5846 5847 5848 5849 5850 # Publish this variable in the help. 5851 5852 5853 if [ -z "${CHMOD+x}" ]; then 5854 # The variable is not set by user, try to locate tool using the code snippet 5855 for ac_prog in chmod 5856 do 5857 # Extract the first word of "$ac_prog", so it can be a program name with args. 5858 set dummy $ac_prog; ac_word=$2 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5860 $as_echo_n "checking for $ac_word... " >&6; } 5861 if ${ac_cv_path_CHMOD+:} false; then : 5862 $as_echo_n "(cached) " >&6 5863 else 5864 case $CHMOD in 5865 [\\/]* | ?:[\\/]*) 5866 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5867 ;; 5868 *) 5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5870 for as_dir in $PATH 5871 do 5872 IFS=$as_save_IFS 5873 test -z "$as_dir" && as_dir=. 5874 for ac_exec_ext in '' $ac_executable_extensions; do 5875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5876 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5878 break 2 5879 fi 5880 done 5881 done 5882 IFS=$as_save_IFS 5883 5884 ;; 5885 esac 5886 fi 5887 CHMOD=$ac_cv_path_CHMOD 5888 if test -n "$CHMOD"; then 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5890 $as_echo "$CHMOD" >&6; } 5891 else 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5893 $as_echo "no" >&6; } 5894 fi 5895 5896 5897 test -n "$CHMOD" && break 5898 done 5899 5900 else 5901 # The variable is set, but is it from the command line or the environment? 5902 5903 # Try to remove the string !CHMOD! from our list. 5904 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5905 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5906 # If it failed, the variable was not from the command line. Ignore it, 5907 # but warn the user (except for BASH, which is always set by the calling BASH). 5908 if test "xCHMOD" != xBASH; then 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5910 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5911 fi 5912 # Try to locate tool using the code snippet 5913 for ac_prog in chmod 5914 do 5915 # Extract the first word of "$ac_prog", so it can be a program name with args. 5916 set dummy $ac_prog; ac_word=$2 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5918 $as_echo_n "checking for $ac_word... " >&6; } 5919 if ${ac_cv_path_CHMOD+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921 else 5922 case $CHMOD in 5923 [\\/]* | ?:[\\/]*) 5924 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5925 ;; 5926 *) 5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5928 for as_dir in $PATH 5929 do 5930 IFS=$as_save_IFS 5931 test -z "$as_dir" && as_dir=. 5932 for ac_exec_ext in '' $ac_executable_extensions; do 5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5934 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5936 break 2 5937 fi 5938 done 5939 done 5940 IFS=$as_save_IFS 5941 5942 ;; 5943 esac 5944 fi 5945 CHMOD=$ac_cv_path_CHMOD 5946 if test -n "$CHMOD"; then 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5948 $as_echo "$CHMOD" >&6; } 5949 else 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5951 $as_echo "no" >&6; } 5952 fi 5953 5954 5955 test -n "$CHMOD" && break 5956 done 5957 5958 else 5959 # If it succeeded, then it was overridden by the user. We will use it 5960 # for the tool. 5961 5962 # First remove it from the list of overridden variables, so we can test 5963 # for unknown variables in the end. 5964 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5965 5966 # Check if we try to supply an empty value 5967 if test "x$CHMOD" = x; then 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5969 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5971 $as_echo_n "checking for CHMOD... " >&6; } 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5973 $as_echo "disabled" >&6; } 5974 else 5975 # Check if the provided tool contains a complete path. 5976 tool_specified="$CHMOD" 5977 tool_basename="${tool_specified##*/}" 5978 if test "x$tool_basename" = "x$tool_specified"; then 5979 # A command without a complete path is provided, search $PATH. 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5981 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5982 # Extract the first word of "$tool_basename", so it can be a program name with args. 5983 set dummy $tool_basename; ac_word=$2 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5985 $as_echo_n "checking for $ac_word... " >&6; } 5986 if ${ac_cv_path_CHMOD+:} false; then : 5987 $as_echo_n "(cached) " >&6 5988 else 5989 case $CHMOD in 5990 [\\/]* | ?:[\\/]*) 5991 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5992 ;; 5993 *) 5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995 for as_dir in $PATH 5996 do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_exec_ext in '' $ac_executable_extensions; do 6000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6001 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6003 break 2 6004 fi 6005 done 6006 done 6007 IFS=$as_save_IFS 6008 6009 ;; 6010 esac 6011 fi 6012 CHMOD=$ac_cv_path_CHMOD 6013 if test -n "$CHMOD"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 6015 $as_echo "$CHMOD" >&6; } 6016 else 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018 $as_echo "no" >&6; } 6019 fi 6020 6021 6022 if test "x$CHMOD" = x; then 6023 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6024 fi 6025 else 6026 # Otherwise we believe it is a complete path. Use it as it is. 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 6028 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 6030 $as_echo_n "checking for CHMOD... " >&6; } 6031 if test ! -x "$tool_specified"; then 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6033 $as_echo "not found" >&6; } 6034 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 6035 fi 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6037 $as_echo "$tool_specified" >&6; } 6038 fi 6039 fi 6040 fi 6041 6042 fi 6043 6044 6045 6046 if test "x$CHMOD" = x; then 6047 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 6048 fi 6049 6050 6051 6052 6053 6054 # Publish this variable in the help. 6055 6056 6057 if [ -z "${CMP+x}" ]; then 6058 # The variable is not set by user, try to locate tool using the code snippet 6059 for ac_prog in cmp 6060 do 6061 # Extract the first word of "$ac_prog", so it can be a program name with args. 6062 set dummy $ac_prog; ac_word=$2 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6064 $as_echo_n "checking for $ac_word... " >&6; } 6065 if ${ac_cv_path_CMP+:} false; then : 6066 $as_echo_n "(cached) " >&6 6067 else 6068 case $CMP in 6069 [\\/]* | ?:[\\/]*) 6070 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6071 ;; 6072 *) 6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6074 for as_dir in $PATH 6075 do 6076 IFS=$as_save_IFS 6077 test -z "$as_dir" && as_dir=. 6078 for ac_exec_ext in '' $ac_executable_extensions; do 6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6080 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6082 break 2 6083 fi 6084 done 6085 done 6086 IFS=$as_save_IFS 6087 6088 ;; 6089 esac 6090 fi 6091 CMP=$ac_cv_path_CMP 6092 if test -n "$CMP"; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6094 $as_echo "$CMP" >&6; } 6095 else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6097 $as_echo "no" >&6; } 6098 fi 6099 6100 6101 test -n "$CMP" && break 6102 done 6103 6104 else 6105 # The variable is set, but is it from the command line or the environment? 6106 6107 # Try to remove the string !CMP! from our list. 6108 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6109 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6110 # If it failed, the variable was not from the command line. Ignore it, 6111 # but warn the user (except for BASH, which is always set by the calling BASH). 6112 if test "xCMP" != xBASH; then 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6114 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6115 fi 6116 # Try to locate tool using the code snippet 6117 for ac_prog in cmp 6118 do 6119 # Extract the first word of "$ac_prog", so it can be a program name with args. 6120 set dummy $ac_prog; ac_word=$2 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6122 $as_echo_n "checking for $ac_word... " >&6; } 6123 if ${ac_cv_path_CMP+:} false; then : 6124 $as_echo_n "(cached) " >&6 6125 else 6126 case $CMP in 6127 [\\/]* | ?:[\\/]*) 6128 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6129 ;; 6130 *) 6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6132 for as_dir in $PATH 6133 do 6134 IFS=$as_save_IFS 6135 test -z "$as_dir" && as_dir=. 6136 for ac_exec_ext in '' $ac_executable_extensions; do 6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6138 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6140 break 2 6141 fi 6142 done 6143 done 6144 IFS=$as_save_IFS 6145 6146 ;; 6147 esac 6148 fi 6149 CMP=$ac_cv_path_CMP 6150 if test -n "$CMP"; then 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6152 $as_echo "$CMP" >&6; } 6153 else 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6155 $as_echo "no" >&6; } 6156 fi 6157 6158 6159 test -n "$CMP" && break 6160 done 6161 6162 else 6163 # If it succeeded, then it was overridden by the user. We will use it 6164 # for the tool. 6165 6166 # First remove it from the list of overridden variables, so we can test 6167 # for unknown variables in the end. 6168 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6169 6170 # Check if we try to supply an empty value 6171 if test "x$CMP" = x; then 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6173 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6175 $as_echo_n "checking for CMP... " >&6; } 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6177 $as_echo "disabled" >&6; } 6178 else 6179 # Check if the provided tool contains a complete path. 6180 tool_specified="$CMP" 6181 tool_basename="${tool_specified##*/}" 6182 if test "x$tool_basename" = "x$tool_specified"; then 6183 # A command without a complete path is provided, search $PATH. 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6185 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6186 # Extract the first word of "$tool_basename", so it can be a program name with args. 6187 set dummy $tool_basename; ac_word=$2 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6189 $as_echo_n "checking for $ac_word... " >&6; } 6190 if ${ac_cv_path_CMP+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192 else 6193 case $CMP in 6194 [\\/]* | ?:[\\/]*) 6195 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6196 ;; 6197 *) 6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6199 for as_dir in $PATH 6200 do 6201 IFS=$as_save_IFS 6202 test -z "$as_dir" && as_dir=. 6203 for ac_exec_ext in '' $ac_executable_extensions; do 6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6205 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6207 break 2 6208 fi 6209 done 6210 done 6211 IFS=$as_save_IFS 6212 6213 ;; 6214 esac 6215 fi 6216 CMP=$ac_cv_path_CMP 6217 if test -n "$CMP"; then 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6219 $as_echo "$CMP" >&6; } 6220 else 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6222 $as_echo "no" >&6; } 6223 fi 6224 6225 6226 if test "x$CMP" = x; then 6227 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6228 fi 6229 else 6230 # Otherwise we believe it is a complete path. Use it as it is. 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6232 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6234 $as_echo_n "checking for CMP... " >&6; } 6235 if test ! -x "$tool_specified"; then 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6237 $as_echo "not found" >&6; } 6238 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6239 fi 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6241 $as_echo "$tool_specified" >&6; } 6242 fi 6243 fi 6244 fi 6245 6246 fi 6247 6248 6249 6250 if test "x$CMP" = x; then 6251 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6252 fi 6253 6254 6255 6256 6257 6258 # Publish this variable in the help. 6259 6260 6261 if [ -z "${COMM+x}" ]; then 6262 # The variable is not set by user, try to locate tool using the code snippet 6263 for ac_prog in comm 6264 do 6265 # Extract the first word of "$ac_prog", so it can be a program name with args. 6266 set dummy $ac_prog; ac_word=$2 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6268 $as_echo_n "checking for $ac_word... " >&6; } 6269 if ${ac_cv_path_COMM+:} false; then : 6270 $as_echo_n "(cached) " >&6 6271 else 6272 case $COMM in 6273 [\\/]* | ?:[\\/]*) 6274 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6275 ;; 6276 *) 6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278 for as_dir in $PATH 6279 do 6280 IFS=$as_save_IFS 6281 test -z "$as_dir" && as_dir=. 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6284 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288 done 6289 done 6290 IFS=$as_save_IFS 6291 6292 ;; 6293 esac 6294 fi 6295 COMM=$ac_cv_path_COMM 6296 if test -n "$COMM"; then 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6298 $as_echo "$COMM" >&6; } 6299 else 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6301 $as_echo "no" >&6; } 6302 fi 6303 6304 6305 test -n "$COMM" && break 6306 done 6307 6308 else 6309 # The variable is set, but is it from the command line or the environment? 6310 6311 # Try to remove the string !COMM! from our list. 6312 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6313 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6314 # If it failed, the variable was not from the command line. Ignore it, 6315 # but warn the user (except for BASH, which is always set by the calling BASH). 6316 if test "xCOMM" != xBASH; then 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6318 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6319 fi 6320 # Try to locate tool using the code snippet 6321 for ac_prog in comm 6322 do 6323 # Extract the first word of "$ac_prog", so it can be a program name with args. 6324 set dummy $ac_prog; ac_word=$2 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6326 $as_echo_n "checking for $ac_word... " >&6; } 6327 if ${ac_cv_path_COMM+:} false; then : 6328 $as_echo_n "(cached) " >&6 6329 else 6330 case $COMM in 6331 [\\/]* | ?:[\\/]*) 6332 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6333 ;; 6334 *) 6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6336 for as_dir in $PATH 6337 do 6338 IFS=$as_save_IFS 6339 test -z "$as_dir" && as_dir=. 6340 for ac_exec_ext in '' $ac_executable_extensions; do 6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6342 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6344 break 2 6345 fi 6346 done 6347 done 6348 IFS=$as_save_IFS 6349 6350 ;; 6351 esac 6352 fi 6353 COMM=$ac_cv_path_COMM 6354 if test -n "$COMM"; then 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6356 $as_echo "$COMM" >&6; } 6357 else 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6359 $as_echo "no" >&6; } 6360 fi 6361 6362 6363 test -n "$COMM" && break 6364 done 6365 6366 else 6367 # If it succeeded, then it was overridden by the user. We will use it 6368 # for the tool. 6369 6370 # First remove it from the list of overridden variables, so we can test 6371 # for unknown variables in the end. 6372 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6373 6374 # Check if we try to supply an empty value 6375 if test "x$COMM" = x; then 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6377 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6379 $as_echo_n "checking for COMM... " >&6; } 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6381 $as_echo "disabled" >&6; } 6382 else 6383 # Check if the provided tool contains a complete path. 6384 tool_specified="$COMM" 6385 tool_basename="${tool_specified##*/}" 6386 if test "x$tool_basename" = "x$tool_specified"; then 6387 # A command without a complete path is provided, search $PATH. 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6389 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6390 # Extract the first word of "$tool_basename", so it can be a program name with args. 6391 set dummy $tool_basename; ac_word=$2 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6393 $as_echo_n "checking for $ac_word... " >&6; } 6394 if ${ac_cv_path_COMM+:} false; then : 6395 $as_echo_n "(cached) " >&6 6396 else 6397 case $COMM in 6398 [\\/]* | ?:[\\/]*) 6399 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6400 ;; 6401 *) 6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403 for as_dir in $PATH 6404 do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6409 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413 done 6414 done 6415 IFS=$as_save_IFS 6416 6417 ;; 6418 esac 6419 fi 6420 COMM=$ac_cv_path_COMM 6421 if test -n "$COMM"; then 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6423 $as_echo "$COMM" >&6; } 6424 else 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6426 $as_echo "no" >&6; } 6427 fi 6428 6429 6430 if test "x$COMM" = x; then 6431 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6432 fi 6433 else 6434 # Otherwise we believe it is a complete path. Use it as it is. 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6436 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6438 $as_echo_n "checking for COMM... " >&6; } 6439 if test ! -x "$tool_specified"; then 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6441 $as_echo "not found" >&6; } 6442 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6443 fi 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6445 $as_echo "$tool_specified" >&6; } 6446 fi 6447 fi 6448 fi 6449 6450 fi 6451 6452 6453 6454 if test "x$COMM" = x; then 6455 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6456 fi 6457 6458 6459 6460 6461 6462 # Publish this variable in the help. 6463 6464 6465 if [ -z "${CP+x}" ]; then 6466 # The variable is not set by user, try to locate tool using the code snippet 6467 for ac_prog in cp 6468 do 6469 # Extract the first word of "$ac_prog", so it can be a program name with args. 6470 set dummy $ac_prog; ac_word=$2 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6472 $as_echo_n "checking for $ac_word... " >&6; } 6473 if ${ac_cv_path_CP+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475 else 6476 case $CP in 6477 [\\/]* | ?:[\\/]*) 6478 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6479 ;; 6480 *) 6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482 for as_dir in $PATH 6483 do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6488 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6490 break 2 6491 fi 6492 done 6493 done 6494 IFS=$as_save_IFS 6495 6496 ;; 6497 esac 6498 fi 6499 CP=$ac_cv_path_CP 6500 if test -n "$CP"; then 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6502 $as_echo "$CP" >&6; } 6503 else 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6505 $as_echo "no" >&6; } 6506 fi 6507 6508 6509 test -n "$CP" && break 6510 done 6511 6512 else 6513 # The variable is set, but is it from the command line or the environment? 6514 6515 # Try to remove the string !CP! from our list. 6516 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6517 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6518 # If it failed, the variable was not from the command line. Ignore it, 6519 # but warn the user (except for BASH, which is always set by the calling BASH). 6520 if test "xCP" != xBASH; then 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6522 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6523 fi 6524 # Try to locate tool using the code snippet 6525 for ac_prog in cp 6526 do 6527 # Extract the first word of "$ac_prog", so it can be a program name with args. 6528 set dummy $ac_prog; ac_word=$2 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6530 $as_echo_n "checking for $ac_word... " >&6; } 6531 if ${ac_cv_path_CP+:} false; then : 6532 $as_echo_n "(cached) " >&6 6533 else 6534 case $CP in 6535 [\\/]* | ?:[\\/]*) 6536 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6537 ;; 6538 *) 6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6540 for as_dir in $PATH 6541 do 6542 IFS=$as_save_IFS 6543 test -z "$as_dir" && as_dir=. 6544 for ac_exec_ext in '' $ac_executable_extensions; do 6545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6546 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6548 break 2 6549 fi 6550 done 6551 done 6552 IFS=$as_save_IFS 6553 6554 ;; 6555 esac 6556 fi 6557 CP=$ac_cv_path_CP 6558 if test -n "$CP"; then 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6560 $as_echo "$CP" >&6; } 6561 else 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6563 $as_echo "no" >&6; } 6564 fi 6565 6566 6567 test -n "$CP" && break 6568 done 6569 6570 else 6571 # If it succeeded, then it was overridden by the user. We will use it 6572 # for the tool. 6573 6574 # First remove it from the list of overridden variables, so we can test 6575 # for unknown variables in the end. 6576 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6577 6578 # Check if we try to supply an empty value 6579 if test "x$CP" = x; then 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6581 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6583 $as_echo_n "checking for CP... " >&6; } 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6585 $as_echo "disabled" >&6; } 6586 else 6587 # Check if the provided tool contains a complete path. 6588 tool_specified="$CP" 6589 tool_basename="${tool_specified##*/}" 6590 if test "x$tool_basename" = "x$tool_specified"; then 6591 # A command without a complete path is provided, search $PATH. 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6593 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6594 # Extract the first word of "$tool_basename", so it can be a program name with args. 6595 set dummy $tool_basename; ac_word=$2 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6597 $as_echo_n "checking for $ac_word... " >&6; } 6598 if ${ac_cv_path_CP+:} false; then : 6599 $as_echo_n "(cached) " >&6 6600 else 6601 case $CP in 6602 [\\/]* | ?:[\\/]*) 6603 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6604 ;; 6605 *) 6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6607 for as_dir in $PATH 6608 do 6609 IFS=$as_save_IFS 6610 test -z "$as_dir" && as_dir=. 6611 for ac_exec_ext in '' $ac_executable_extensions; do 6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6613 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6615 break 2 6616 fi 6617 done 6618 done 6619 IFS=$as_save_IFS 6620 6621 ;; 6622 esac 6623 fi 6624 CP=$ac_cv_path_CP 6625 if test -n "$CP"; then 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6627 $as_echo "$CP" >&6; } 6628 else 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6630 $as_echo "no" >&6; } 6631 fi 6632 6633 6634 if test "x$CP" = x; then 6635 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6636 fi 6637 else 6638 # Otherwise we believe it is a complete path. Use it as it is. 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6640 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6642 $as_echo_n "checking for CP... " >&6; } 6643 if test ! -x "$tool_specified"; then 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6645 $as_echo "not found" >&6; } 6646 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6647 fi 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6649 $as_echo "$tool_specified" >&6; } 6650 fi 6651 fi 6652 fi 6653 6654 fi 6655 6656 6657 6658 if test "x$CP" = x; then 6659 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6660 fi 6661 6662 6663 6664 6665 6666 # Publish this variable in the help. 6667 6668 6669 if [ -z "${CUT+x}" ]; then 6670 # The variable is not set by user, try to locate tool using the code snippet 6671 for ac_prog in cut 6672 do 6673 # Extract the first word of "$ac_prog", so it can be a program name with args. 6674 set dummy $ac_prog; ac_word=$2 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6676 $as_echo_n "checking for $ac_word... " >&6; } 6677 if ${ac_cv_path_CUT+:} false; then : 6678 $as_echo_n "(cached) " >&6 6679 else 6680 case $CUT in 6681 [\\/]* | ?:[\\/]*) 6682 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6683 ;; 6684 *) 6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6686 for as_dir in $PATH 6687 do 6688 IFS=$as_save_IFS 6689 test -z "$as_dir" && as_dir=. 6690 for ac_exec_ext in '' $ac_executable_extensions; do 6691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6692 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6694 break 2 6695 fi 6696 done 6697 done 6698 IFS=$as_save_IFS 6699 6700 ;; 6701 esac 6702 fi 6703 CUT=$ac_cv_path_CUT 6704 if test -n "$CUT"; then 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6706 $as_echo "$CUT" >&6; } 6707 else 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709 $as_echo "no" >&6; } 6710 fi 6711 6712 6713 test -n "$CUT" && break 6714 done 6715 6716 else 6717 # The variable is set, but is it from the command line or the environment? 6718 6719 # Try to remove the string !CUT! from our list. 6720 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6721 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6722 # If it failed, the variable was not from the command line. Ignore it, 6723 # but warn the user (except for BASH, which is always set by the calling BASH). 6724 if test "xCUT" != xBASH; then 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6726 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6727 fi 6728 # Try to locate tool using the code snippet 6729 for ac_prog in cut 6730 do 6731 # Extract the first word of "$ac_prog", so it can be a program name with args. 6732 set dummy $ac_prog; ac_word=$2 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6734 $as_echo_n "checking for $ac_word... " >&6; } 6735 if ${ac_cv_path_CUT+:} false; then : 6736 $as_echo_n "(cached) " >&6 6737 else 6738 case $CUT in 6739 [\\/]* | ?:[\\/]*) 6740 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6741 ;; 6742 *) 6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6744 for as_dir in $PATH 6745 do 6746 IFS=$as_save_IFS 6747 test -z "$as_dir" && as_dir=. 6748 for ac_exec_ext in '' $ac_executable_extensions; do 6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6750 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6752 break 2 6753 fi 6754 done 6755 done 6756 IFS=$as_save_IFS 6757 6758 ;; 6759 esac 6760 fi 6761 CUT=$ac_cv_path_CUT 6762 if test -n "$CUT"; then 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6764 $as_echo "$CUT" >&6; } 6765 else 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6767 $as_echo "no" >&6; } 6768 fi 6769 6770 6771 test -n "$CUT" && break 6772 done 6773 6774 else 6775 # If it succeeded, then it was overridden by the user. We will use it 6776 # for the tool. 6777 6778 # First remove it from the list of overridden variables, so we can test 6779 # for unknown variables in the end. 6780 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6781 6782 # Check if we try to supply an empty value 6783 if test "x$CUT" = x; then 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6785 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6787 $as_echo_n "checking for CUT... " >&6; } 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6789 $as_echo "disabled" >&6; } 6790 else 6791 # Check if the provided tool contains a complete path. 6792 tool_specified="$CUT" 6793 tool_basename="${tool_specified##*/}" 6794 if test "x$tool_basename" = "x$tool_specified"; then 6795 # A command without a complete path is provided, search $PATH. 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6797 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6798 # Extract the first word of "$tool_basename", so it can be a program name with args. 6799 set dummy $tool_basename; ac_word=$2 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801 $as_echo_n "checking for $ac_word... " >&6; } 6802 if ${ac_cv_path_CUT+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804 else 6805 case $CUT in 6806 [\\/]* | ?:[\\/]*) 6807 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6808 ;; 6809 *) 6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6811 for as_dir in $PATH 6812 do 6813 IFS=$as_save_IFS 6814 test -z "$as_dir" && as_dir=. 6815 for ac_exec_ext in '' $ac_executable_extensions; do 6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6817 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6819 break 2 6820 fi 6821 done 6822 done 6823 IFS=$as_save_IFS 6824 6825 ;; 6826 esac 6827 fi 6828 CUT=$ac_cv_path_CUT 6829 if test -n "$CUT"; then 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6831 $as_echo "$CUT" >&6; } 6832 else 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6834 $as_echo "no" >&6; } 6835 fi 6836 6837 6838 if test "x$CUT" = x; then 6839 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6840 fi 6841 else 6842 # Otherwise we believe it is a complete path. Use it as it is. 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6844 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6846 $as_echo_n "checking for CUT... " >&6; } 6847 if test ! -x "$tool_specified"; then 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6849 $as_echo "not found" >&6; } 6850 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6851 fi 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6853 $as_echo "$tool_specified" >&6; } 6854 fi 6855 fi 6856 fi 6857 6858 fi 6859 6860 6861 6862 if test "x$CUT" = x; then 6863 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6864 fi 6865 6866 6867 6868 6869 6870 # Publish this variable in the help. 6871 6872 6873 if [ -z "${DATE+x}" ]; then 6874 # The variable is not set by user, try to locate tool using the code snippet 6875 for ac_prog in date 6876 do 6877 # Extract the first word of "$ac_prog", so it can be a program name with args. 6878 set dummy $ac_prog; ac_word=$2 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6880 $as_echo_n "checking for $ac_word... " >&6; } 6881 if ${ac_cv_path_DATE+:} false; then : 6882 $as_echo_n "(cached) " >&6 6883 else 6884 case $DATE in 6885 [\\/]* | ?:[\\/]*) 6886 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6887 ;; 6888 *) 6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6890 for as_dir in $PATH 6891 do 6892 IFS=$as_save_IFS 6893 test -z "$as_dir" && as_dir=. 6894 for ac_exec_ext in '' $ac_executable_extensions; do 6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6896 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6898 break 2 6899 fi 6900 done 6901 done 6902 IFS=$as_save_IFS 6903 6904 ;; 6905 esac 6906 fi 6907 DATE=$ac_cv_path_DATE 6908 if test -n "$DATE"; then 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6910 $as_echo "$DATE" >&6; } 6911 else 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6913 $as_echo "no" >&6; } 6914 fi 6915 6916 6917 test -n "$DATE" && break 6918 done 6919 6920 else 6921 # The variable is set, but is it from the command line or the environment? 6922 6923 # Try to remove the string !DATE! from our list. 6924 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6925 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6926 # If it failed, the variable was not from the command line. Ignore it, 6927 # but warn the user (except for BASH, which is always set by the calling BASH). 6928 if test "xDATE" != xBASH; then 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6930 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6931 fi 6932 # Try to locate tool using the code snippet 6933 for ac_prog in date 6934 do 6935 # Extract the first word of "$ac_prog", so it can be a program name with args. 6936 set dummy $ac_prog; ac_word=$2 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6938 $as_echo_n "checking for $ac_word... " >&6; } 6939 if ${ac_cv_path_DATE+:} false; then : 6940 $as_echo_n "(cached) " >&6 6941 else 6942 case $DATE in 6943 [\\/]* | ?:[\\/]*) 6944 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6945 ;; 6946 *) 6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6948 for as_dir in $PATH 6949 do 6950 IFS=$as_save_IFS 6951 test -z "$as_dir" && as_dir=. 6952 for ac_exec_ext in '' $ac_executable_extensions; do 6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6954 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6956 break 2 6957 fi 6958 done 6959 done 6960 IFS=$as_save_IFS 6961 6962 ;; 6963 esac 6964 fi 6965 DATE=$ac_cv_path_DATE 6966 if test -n "$DATE"; then 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6968 $as_echo "$DATE" >&6; } 6969 else 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6971 $as_echo "no" >&6; } 6972 fi 6973 6974 6975 test -n "$DATE" && break 6976 done 6977 6978 else 6979 # If it succeeded, then it was overridden by the user. We will use it 6980 # for the tool. 6981 6982 # First remove it from the list of overridden variables, so we can test 6983 # for unknown variables in the end. 6984 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6985 6986 # Check if we try to supply an empty value 6987 if test "x$DATE" = x; then 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6989 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6991 $as_echo_n "checking for DATE... " >&6; } 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6993 $as_echo "disabled" >&6; } 6994 else 6995 # Check if the provided tool contains a complete path. 6996 tool_specified="$DATE" 6997 tool_basename="${tool_specified##*/}" 6998 if test "x$tool_basename" = "x$tool_specified"; then 6999 # A command without a complete path is provided, search $PATH. 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 7001 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 7002 # Extract the first word of "$tool_basename", so it can be a program name with args. 7003 set dummy $tool_basename; ac_word=$2 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7005 $as_echo_n "checking for $ac_word... " >&6; } 7006 if ${ac_cv_path_DATE+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008 else 7009 case $DATE in 7010 [\\/]* | ?:[\\/]*) 7011 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 7012 ;; 7013 *) 7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7015 for as_dir in $PATH 7016 do 7017 IFS=$as_save_IFS 7018 test -z "$as_dir" && as_dir=. 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7021 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7023 break 2 7024 fi 7025 done 7026 done 7027 IFS=$as_save_IFS 7028 7029 ;; 7030 esac 7031 fi 7032 DATE=$ac_cv_path_DATE 7033 if test -n "$DATE"; then 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 7035 $as_echo "$DATE" >&6; } 7036 else 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7038 $as_echo "no" >&6; } 7039 fi 7040 7041 7042 if test "x$DATE" = x; then 7043 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7044 fi 7045 else 7046 # Otherwise we believe it is a complete path. Use it as it is. 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 7048 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7050 $as_echo_n "checking for DATE... " >&6; } 7051 if test ! -x "$tool_specified"; then 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7053 $as_echo "not found" >&6; } 7054 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 7055 fi 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7057 $as_echo "$tool_specified" >&6; } 7058 fi 7059 fi 7060 fi 7061 7062 fi 7063 7064 7065 7066 if test "x$DATE" = x; then 7067 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 7068 fi 7069 7070 7071 7072 7073 7074 # Publish this variable in the help. 7075 7076 7077 if [ -z "${DIFF+x}" ]; then 7078 # The variable is not set by user, try to locate tool using the code snippet 7079 for ac_prog in gdiff diff 7080 do 7081 # Extract the first word of "$ac_prog", so it can be a program name with args. 7082 set dummy $ac_prog; ac_word=$2 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7084 $as_echo_n "checking for $ac_word... " >&6; } 7085 if ${ac_cv_path_DIFF+:} false; then : 7086 $as_echo_n "(cached) " >&6 7087 else 7088 case $DIFF in 7089 [\\/]* | ?:[\\/]*) 7090 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7091 ;; 7092 *) 7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7094 for as_dir in $PATH 7095 do 7096 IFS=$as_save_IFS 7097 test -z "$as_dir" && as_dir=. 7098 for ac_exec_ext in '' $ac_executable_extensions; do 7099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7100 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7102 break 2 7103 fi 7104 done 7105 done 7106 IFS=$as_save_IFS 7107 7108 ;; 7109 esac 7110 fi 7111 DIFF=$ac_cv_path_DIFF 7112 if test -n "$DIFF"; then 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7114 $as_echo "$DIFF" >&6; } 7115 else 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7117 $as_echo "no" >&6; } 7118 fi 7119 7120 7121 test -n "$DIFF" && break 7122 done 7123 7124 else 7125 # The variable is set, but is it from the command line or the environment? 7126 7127 # Try to remove the string !DIFF! from our list. 7128 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7129 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7130 # If it failed, the variable was not from the command line. Ignore it, 7131 # but warn the user (except for BASH, which is always set by the calling BASH). 7132 if test "xDIFF" != xBASH; then 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7134 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7135 fi 7136 # Try to locate tool using the code snippet 7137 for ac_prog in gdiff diff 7138 do 7139 # Extract the first word of "$ac_prog", so it can be a program name with args. 7140 set dummy $ac_prog; ac_word=$2 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7142 $as_echo_n "checking for $ac_word... " >&6; } 7143 if ${ac_cv_path_DIFF+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145 else 7146 case $DIFF in 7147 [\\/]* | ?:[\\/]*) 7148 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7149 ;; 7150 *) 7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7152 for as_dir in $PATH 7153 do 7154 IFS=$as_save_IFS 7155 test -z "$as_dir" && as_dir=. 7156 for ac_exec_ext in '' $ac_executable_extensions; do 7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7158 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7160 break 2 7161 fi 7162 done 7163 done 7164 IFS=$as_save_IFS 7165 7166 ;; 7167 esac 7168 fi 7169 DIFF=$ac_cv_path_DIFF 7170 if test -n "$DIFF"; then 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7172 $as_echo "$DIFF" >&6; } 7173 else 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7175 $as_echo "no" >&6; } 7176 fi 7177 7178 7179 test -n "$DIFF" && break 7180 done 7181 7182 else 7183 # If it succeeded, then it was overridden by the user. We will use it 7184 # for the tool. 7185 7186 # First remove it from the list of overridden variables, so we can test 7187 # for unknown variables in the end. 7188 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7189 7190 # Check if we try to supply an empty value 7191 if test "x$DIFF" = x; then 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7193 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7195 $as_echo_n "checking for DIFF... " >&6; } 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7197 $as_echo "disabled" >&6; } 7198 else 7199 # Check if the provided tool contains a complete path. 7200 tool_specified="$DIFF" 7201 tool_basename="${tool_specified##*/}" 7202 if test "x$tool_basename" = "x$tool_specified"; then 7203 # A command without a complete path is provided, search $PATH. 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7205 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7206 # Extract the first word of "$tool_basename", so it can be a program name with args. 7207 set dummy $tool_basename; ac_word=$2 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7209 $as_echo_n "checking for $ac_word... " >&6; } 7210 if ${ac_cv_path_DIFF+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212 else 7213 case $DIFF in 7214 [\\/]* | ?:[\\/]*) 7215 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7216 ;; 7217 *) 7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7219 for as_dir in $PATH 7220 do 7221 IFS=$as_save_IFS 7222 test -z "$as_dir" && as_dir=. 7223 for ac_exec_ext in '' $ac_executable_extensions; do 7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7225 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7227 break 2 7228 fi 7229 done 7230 done 7231 IFS=$as_save_IFS 7232 7233 ;; 7234 esac 7235 fi 7236 DIFF=$ac_cv_path_DIFF 7237 if test -n "$DIFF"; then 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7239 $as_echo "$DIFF" >&6; } 7240 else 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7242 $as_echo "no" >&6; } 7243 fi 7244 7245 7246 if test "x$DIFF" = x; then 7247 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7248 fi 7249 else 7250 # Otherwise we believe it is a complete path. Use it as it is. 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7252 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7254 $as_echo_n "checking for DIFF... " >&6; } 7255 if test ! -x "$tool_specified"; then 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7257 $as_echo "not found" >&6; } 7258 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7259 fi 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7261 $as_echo "$tool_specified" >&6; } 7262 fi 7263 fi 7264 fi 7265 7266 fi 7267 7268 7269 7270 if test "x$DIFF" = x; then 7271 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7272 fi 7273 7274 7275 7276 7277 7278 # Publish this variable in the help. 7279 7280 7281 if [ -z "${DIRNAME+x}" ]; then 7282 # The variable is not set by user, try to locate tool using the code snippet 7283 for ac_prog in dirname 7284 do 7285 # Extract the first word of "$ac_prog", so it can be a program name with args. 7286 set dummy $ac_prog; ac_word=$2 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7288 $as_echo_n "checking for $ac_word... " >&6; } 7289 if ${ac_cv_path_DIRNAME+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291 else 7292 case $DIRNAME in 7293 [\\/]* | ?:[\\/]*) 7294 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7295 ;; 7296 *) 7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7298 for as_dir in $PATH 7299 do 7300 IFS=$as_save_IFS 7301 test -z "$as_dir" && as_dir=. 7302 for ac_exec_ext in '' $ac_executable_extensions; do 7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7304 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7306 break 2 7307 fi 7308 done 7309 done 7310 IFS=$as_save_IFS 7311 7312 ;; 7313 esac 7314 fi 7315 DIRNAME=$ac_cv_path_DIRNAME 7316 if test -n "$DIRNAME"; then 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7318 $as_echo "$DIRNAME" >&6; } 7319 else 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7321 $as_echo "no" >&6; } 7322 fi 7323 7324 7325 test -n "$DIRNAME" && break 7326 done 7327 7328 else 7329 # The variable is set, but is it from the command line or the environment? 7330 7331 # Try to remove the string !DIRNAME! from our list. 7332 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7333 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7334 # If it failed, the variable was not from the command line. Ignore it, 7335 # but warn the user (except for BASH, which is always set by the calling BASH). 7336 if test "xDIRNAME" != xBASH; then 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7338 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7339 fi 7340 # Try to locate tool using the code snippet 7341 for ac_prog in dirname 7342 do 7343 # Extract the first word of "$ac_prog", so it can be a program name with args. 7344 set dummy $ac_prog; ac_word=$2 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7346 $as_echo_n "checking for $ac_word... " >&6; } 7347 if ${ac_cv_path_DIRNAME+:} false; then : 7348 $as_echo_n "(cached) " >&6 7349 else 7350 case $DIRNAME in 7351 [\\/]* | ?:[\\/]*) 7352 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7353 ;; 7354 *) 7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356 for as_dir in $PATH 7357 do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7362 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366 done 7367 done 7368 IFS=$as_save_IFS 7369 7370 ;; 7371 esac 7372 fi 7373 DIRNAME=$ac_cv_path_DIRNAME 7374 if test -n "$DIRNAME"; then 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7376 $as_echo "$DIRNAME" >&6; } 7377 else 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7379 $as_echo "no" >&6; } 7380 fi 7381 7382 7383 test -n "$DIRNAME" && break 7384 done 7385 7386 else 7387 # If it succeeded, then it was overridden by the user. We will use it 7388 # for the tool. 7389 7390 # First remove it from the list of overridden variables, so we can test 7391 # for unknown variables in the end. 7392 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7393 7394 # Check if we try to supply an empty value 7395 if test "x$DIRNAME" = x; then 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7397 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7399 $as_echo_n "checking for DIRNAME... " >&6; } 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7401 $as_echo "disabled" >&6; } 7402 else 7403 # Check if the provided tool contains a complete path. 7404 tool_specified="$DIRNAME" 7405 tool_basename="${tool_specified##*/}" 7406 if test "x$tool_basename" = "x$tool_specified"; then 7407 # A command without a complete path is provided, search $PATH. 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7409 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7410 # Extract the first word of "$tool_basename", so it can be a program name with args. 7411 set dummy $tool_basename; ac_word=$2 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7413 $as_echo_n "checking for $ac_word... " >&6; } 7414 if ${ac_cv_path_DIRNAME+:} false; then : 7415 $as_echo_n "(cached) " >&6 7416 else 7417 case $DIRNAME in 7418 [\\/]* | ?:[\\/]*) 7419 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7420 ;; 7421 *) 7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7423 for as_dir in $PATH 7424 do 7425 IFS=$as_save_IFS 7426 test -z "$as_dir" && as_dir=. 7427 for ac_exec_ext in '' $ac_executable_extensions; do 7428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7429 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7431 break 2 7432 fi 7433 done 7434 done 7435 IFS=$as_save_IFS 7436 7437 ;; 7438 esac 7439 fi 7440 DIRNAME=$ac_cv_path_DIRNAME 7441 if test -n "$DIRNAME"; then 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7443 $as_echo "$DIRNAME" >&6; } 7444 else 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7446 $as_echo "no" >&6; } 7447 fi 7448 7449 7450 if test "x$DIRNAME" = x; then 7451 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7452 fi 7453 else 7454 # Otherwise we believe it is a complete path. Use it as it is. 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7456 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7458 $as_echo_n "checking for DIRNAME... " >&6; } 7459 if test ! -x "$tool_specified"; then 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7461 $as_echo "not found" >&6; } 7462 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7463 fi 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7465 $as_echo "$tool_specified" >&6; } 7466 fi 7467 fi 7468 fi 7469 7470 fi 7471 7472 7473 7474 if test "x$DIRNAME" = x; then 7475 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7476 fi 7477 7478 7479 7480 7481 7482 # Publish this variable in the help. 7483 7484 7485 if [ -z "${ECHO+x}" ]; then 7486 # The variable is not set by user, try to locate tool using the code snippet 7487 for ac_prog in echo 7488 do 7489 # Extract the first word of "$ac_prog", so it can be a program name with args. 7490 set dummy $ac_prog; ac_word=$2 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7492 $as_echo_n "checking for $ac_word... " >&6; } 7493 if ${ac_cv_path_ECHO+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495 else 7496 case $ECHO in 7497 [\\/]* | ?:[\\/]*) 7498 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7499 ;; 7500 *) 7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7502 for as_dir in $PATH 7503 do 7504 IFS=$as_save_IFS 7505 test -z "$as_dir" && as_dir=. 7506 for ac_exec_ext in '' $ac_executable_extensions; do 7507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7508 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7510 break 2 7511 fi 7512 done 7513 done 7514 IFS=$as_save_IFS 7515 7516 ;; 7517 esac 7518 fi 7519 ECHO=$ac_cv_path_ECHO 7520 if test -n "$ECHO"; then 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7522 $as_echo "$ECHO" >&6; } 7523 else 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7525 $as_echo "no" >&6; } 7526 fi 7527 7528 7529 test -n "$ECHO" && break 7530 done 7531 7532 else 7533 # The variable is set, but is it from the command line or the environment? 7534 7535 # Try to remove the string !ECHO! from our list. 7536 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7537 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7538 # If it failed, the variable was not from the command line. Ignore it, 7539 # but warn the user (except for BASH, which is always set by the calling BASH). 7540 if test "xECHO" != xBASH; then 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7542 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7543 fi 7544 # Try to locate tool using the code snippet 7545 for ac_prog in echo 7546 do 7547 # Extract the first word of "$ac_prog", so it can be a program name with args. 7548 set dummy $ac_prog; ac_word=$2 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7550 $as_echo_n "checking for $ac_word... " >&6; } 7551 if ${ac_cv_path_ECHO+:} false; then : 7552 $as_echo_n "(cached) " >&6 7553 else 7554 case $ECHO in 7555 [\\/]* | ?:[\\/]*) 7556 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7557 ;; 7558 *) 7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7560 for as_dir in $PATH 7561 do 7562 IFS=$as_save_IFS 7563 test -z "$as_dir" && as_dir=. 7564 for ac_exec_ext in '' $ac_executable_extensions; do 7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7566 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7568 break 2 7569 fi 7570 done 7571 done 7572 IFS=$as_save_IFS 7573 7574 ;; 7575 esac 7576 fi 7577 ECHO=$ac_cv_path_ECHO 7578 if test -n "$ECHO"; then 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7580 $as_echo "$ECHO" >&6; } 7581 else 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7583 $as_echo "no" >&6; } 7584 fi 7585 7586 7587 test -n "$ECHO" && break 7588 done 7589 7590 else 7591 # If it succeeded, then it was overridden by the user. We will use it 7592 # for the tool. 7593 7594 # First remove it from the list of overridden variables, so we can test 7595 # for unknown variables in the end. 7596 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7597 7598 # Check if we try to supply an empty value 7599 if test "x$ECHO" = x; then 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7601 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7603 $as_echo_n "checking for ECHO... " >&6; } 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7605 $as_echo "disabled" >&6; } 7606 else 7607 # Check if the provided tool contains a complete path. 7608 tool_specified="$ECHO" 7609 tool_basename="${tool_specified##*/}" 7610 if test "x$tool_basename" = "x$tool_specified"; then 7611 # A command without a complete path is provided, search $PATH. 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7613 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7614 # Extract the first word of "$tool_basename", so it can be a program name with args. 7615 set dummy $tool_basename; ac_word=$2 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7617 $as_echo_n "checking for $ac_word... " >&6; } 7618 if ${ac_cv_path_ECHO+:} false; then : 7619 $as_echo_n "(cached) " >&6 7620 else 7621 case $ECHO in 7622 [\\/]* | ?:[\\/]*) 7623 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7624 ;; 7625 *) 7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7627 for as_dir in $PATH 7628 do 7629 IFS=$as_save_IFS 7630 test -z "$as_dir" && as_dir=. 7631 for ac_exec_ext in '' $ac_executable_extensions; do 7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7633 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7635 break 2 7636 fi 7637 done 7638 done 7639 IFS=$as_save_IFS 7640 7641 ;; 7642 esac 7643 fi 7644 ECHO=$ac_cv_path_ECHO 7645 if test -n "$ECHO"; then 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7647 $as_echo "$ECHO" >&6; } 7648 else 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7650 $as_echo "no" >&6; } 7651 fi 7652 7653 7654 if test "x$ECHO" = x; then 7655 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7656 fi 7657 else 7658 # Otherwise we believe it is a complete path. Use it as it is. 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7660 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7662 $as_echo_n "checking for ECHO... " >&6; } 7663 if test ! -x "$tool_specified"; then 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7665 $as_echo "not found" >&6; } 7666 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7667 fi 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7669 $as_echo "$tool_specified" >&6; } 7670 fi 7671 fi 7672 fi 7673 7674 fi 7675 7676 7677 7678 if test "x$ECHO" = x; then 7679 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7680 fi 7681 7682 7683 7684 7685 7686 # Publish this variable in the help. 7687 7688 7689 if [ -z "${EXPR+x}" ]; then 7690 # The variable is not set by user, try to locate tool using the code snippet 7691 for ac_prog in expr 7692 do 7693 # Extract the first word of "$ac_prog", so it can be a program name with args. 7694 set dummy $ac_prog; ac_word=$2 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7696 $as_echo_n "checking for $ac_word... " >&6; } 7697 if ${ac_cv_path_EXPR+:} false; then : 7698 $as_echo_n "(cached) " >&6 7699 else 7700 case $EXPR in 7701 [\\/]* | ?:[\\/]*) 7702 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7703 ;; 7704 *) 7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7706 for as_dir in $PATH 7707 do 7708 IFS=$as_save_IFS 7709 test -z "$as_dir" && as_dir=. 7710 for ac_exec_ext in '' $ac_executable_extensions; do 7711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7712 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7714 break 2 7715 fi 7716 done 7717 done 7718 IFS=$as_save_IFS 7719 7720 ;; 7721 esac 7722 fi 7723 EXPR=$ac_cv_path_EXPR 7724 if test -n "$EXPR"; then 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7726 $as_echo "$EXPR" >&6; } 7727 else 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7729 $as_echo "no" >&6; } 7730 fi 7731 7732 7733 test -n "$EXPR" && break 7734 done 7735 7736 else 7737 # The variable is set, but is it from the command line or the environment? 7738 7739 # Try to remove the string !EXPR! from our list. 7740 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7741 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7742 # If it failed, the variable was not from the command line. Ignore it, 7743 # but warn the user (except for BASH, which is always set by the calling BASH). 7744 if test "xEXPR" != xBASH; then 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7746 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7747 fi 7748 # Try to locate tool using the code snippet 7749 for ac_prog in expr 7750 do 7751 # Extract the first word of "$ac_prog", so it can be a program name with args. 7752 set dummy $ac_prog; ac_word=$2 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7754 $as_echo_n "checking for $ac_word... " >&6; } 7755 if ${ac_cv_path_EXPR+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757 else 7758 case $EXPR in 7759 [\\/]* | ?:[\\/]*) 7760 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7761 ;; 7762 *) 7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7764 for as_dir in $PATH 7765 do 7766 IFS=$as_save_IFS 7767 test -z "$as_dir" && as_dir=. 7768 for ac_exec_ext in '' $ac_executable_extensions; do 7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7770 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7772 break 2 7773 fi 7774 done 7775 done 7776 IFS=$as_save_IFS 7777 7778 ;; 7779 esac 7780 fi 7781 EXPR=$ac_cv_path_EXPR 7782 if test -n "$EXPR"; then 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7784 $as_echo "$EXPR" >&6; } 7785 else 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7787 $as_echo "no" >&6; } 7788 fi 7789 7790 7791 test -n "$EXPR" && break 7792 done 7793 7794 else 7795 # If it succeeded, then it was overridden by the user. We will use it 7796 # for the tool. 7797 7798 # First remove it from the list of overridden variables, so we can test 7799 # for unknown variables in the end. 7800 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7801 7802 # Check if we try to supply an empty value 7803 if test "x$EXPR" = x; then 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7805 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7807 $as_echo_n "checking for EXPR... " >&6; } 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7809 $as_echo "disabled" >&6; } 7810 else 7811 # Check if the provided tool contains a complete path. 7812 tool_specified="$EXPR" 7813 tool_basename="${tool_specified##*/}" 7814 if test "x$tool_basename" = "x$tool_specified"; then 7815 # A command without a complete path is provided, search $PATH. 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7817 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7818 # Extract the first word of "$tool_basename", so it can be a program name with args. 7819 set dummy $tool_basename; ac_word=$2 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7821 $as_echo_n "checking for $ac_word... " >&6; } 7822 if ${ac_cv_path_EXPR+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824 else 7825 case $EXPR in 7826 [\\/]* | ?:[\\/]*) 7827 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7828 ;; 7829 *) 7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7831 for as_dir in $PATH 7832 do 7833 IFS=$as_save_IFS 7834 test -z "$as_dir" && as_dir=. 7835 for ac_exec_ext in '' $ac_executable_extensions; do 7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7837 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7839 break 2 7840 fi 7841 done 7842 done 7843 IFS=$as_save_IFS 7844 7845 ;; 7846 esac 7847 fi 7848 EXPR=$ac_cv_path_EXPR 7849 if test -n "$EXPR"; then 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7851 $as_echo "$EXPR" >&6; } 7852 else 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7854 $as_echo "no" >&6; } 7855 fi 7856 7857 7858 if test "x$EXPR" = x; then 7859 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7860 fi 7861 else 7862 # Otherwise we believe it is a complete path. Use it as it is. 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7864 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7866 $as_echo_n "checking for EXPR... " >&6; } 7867 if test ! -x "$tool_specified"; then 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7869 $as_echo "not found" >&6; } 7870 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7871 fi 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7873 $as_echo "$tool_specified" >&6; } 7874 fi 7875 fi 7876 fi 7877 7878 fi 7879 7880 7881 7882 if test "x$EXPR" = x; then 7883 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7884 fi 7885 7886 7887 7888 7889 7890 # Publish this variable in the help. 7891 7892 7893 if [ -z "${FILE+x}" ]; then 7894 # The variable is not set by user, try to locate tool using the code snippet 7895 for ac_prog in file 7896 do 7897 # Extract the first word of "$ac_prog", so it can be a program name with args. 7898 set dummy $ac_prog; ac_word=$2 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7900 $as_echo_n "checking for $ac_word... " >&6; } 7901 if ${ac_cv_path_FILE+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903 else 7904 case $FILE in 7905 [\\/]* | ?:[\\/]*) 7906 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7907 ;; 7908 *) 7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7910 for as_dir in $PATH 7911 do 7912 IFS=$as_save_IFS 7913 test -z "$as_dir" && as_dir=. 7914 for ac_exec_ext in '' $ac_executable_extensions; do 7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7916 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7918 break 2 7919 fi 7920 done 7921 done 7922 IFS=$as_save_IFS 7923 7924 ;; 7925 esac 7926 fi 7927 FILE=$ac_cv_path_FILE 7928 if test -n "$FILE"; then 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7930 $as_echo "$FILE" >&6; } 7931 else 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7933 $as_echo "no" >&6; } 7934 fi 7935 7936 7937 test -n "$FILE" && break 7938 done 7939 7940 else 7941 # The variable is set, but is it from the command line or the environment? 7942 7943 # Try to remove the string !FILE! from our list. 7944 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7945 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7946 # If it failed, the variable was not from the command line. Ignore it, 7947 # but warn the user (except for BASH, which is always set by the calling BASH). 7948 if test "xFILE" != xBASH; then 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7950 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7951 fi 7952 # Try to locate tool using the code snippet 7953 for ac_prog in file 7954 do 7955 # Extract the first word of "$ac_prog", so it can be a program name with args. 7956 set dummy $ac_prog; ac_word=$2 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7958 $as_echo_n "checking for $ac_word... " >&6; } 7959 if ${ac_cv_path_FILE+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961 else 7962 case $FILE in 7963 [\\/]* | ?:[\\/]*) 7964 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7965 ;; 7966 *) 7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7968 for as_dir in $PATH 7969 do 7970 IFS=$as_save_IFS 7971 test -z "$as_dir" && as_dir=. 7972 for ac_exec_ext in '' $ac_executable_extensions; do 7973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7974 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7976 break 2 7977 fi 7978 done 7979 done 7980 IFS=$as_save_IFS 7981 7982 ;; 7983 esac 7984 fi 7985 FILE=$ac_cv_path_FILE 7986 if test -n "$FILE"; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7988 $as_echo "$FILE" >&6; } 7989 else 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7991 $as_echo "no" >&6; } 7992 fi 7993 7994 7995 test -n "$FILE" && break 7996 done 7997 7998 else 7999 # If it succeeded, then it was overridden by the user. We will use it 8000 # for the tool. 8001 8002 # First remove it from the list of overridden variables, so we can test 8003 # for unknown variables in the end. 8004 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8005 8006 # Check if we try to supply an empty value 8007 if test "x$FILE" = x; then 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 8009 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8011 $as_echo_n "checking for FILE... " >&6; } 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8013 $as_echo "disabled" >&6; } 8014 else 8015 # Check if the provided tool contains a complete path. 8016 tool_specified="$FILE" 8017 tool_basename="${tool_specified##*/}" 8018 if test "x$tool_basename" = "x$tool_specified"; then 8019 # A command without a complete path is provided, search $PATH. 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 8021 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 8022 # Extract the first word of "$tool_basename", so it can be a program name with args. 8023 set dummy $tool_basename; ac_word=$2 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8025 $as_echo_n "checking for $ac_word... " >&6; } 8026 if ${ac_cv_path_FILE+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028 else 8029 case $FILE in 8030 [\\/]* | ?:[\\/]*) 8031 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 8032 ;; 8033 *) 8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8035 for as_dir in $PATH 8036 do 8037 IFS=$as_save_IFS 8038 test -z "$as_dir" && as_dir=. 8039 for ac_exec_ext in '' $ac_executable_extensions; do 8040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8041 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8043 break 2 8044 fi 8045 done 8046 done 8047 IFS=$as_save_IFS 8048 8049 ;; 8050 esac 8051 fi 8052 FILE=$ac_cv_path_FILE 8053 if test -n "$FILE"; then 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8055 $as_echo "$FILE" >&6; } 8056 else 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8058 $as_echo "no" >&6; } 8059 fi 8060 8061 8062 if test "x$FILE" = x; then 8063 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8064 fi 8065 else 8066 # Otherwise we believe it is a complete path. Use it as it is. 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 8068 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8070 $as_echo_n "checking for FILE... " >&6; } 8071 if test ! -x "$tool_specified"; then 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8073 $as_echo "not found" >&6; } 8074 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8075 fi 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8077 $as_echo "$tool_specified" >&6; } 8078 fi 8079 fi 8080 fi 8081 8082 fi 8083 8084 8085 8086 if test "x$FILE" = x; then 8087 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8088 fi 8089 8090 8091 8092 8093 8094 # Publish this variable in the help. 8095 8096 8097 if [ -z "${FIND+x}" ]; then 8098 # The variable is not set by user, try to locate tool using the code snippet 8099 for ac_prog in find 8100 do 8101 # Extract the first word of "$ac_prog", so it can be a program name with args. 8102 set dummy $ac_prog; ac_word=$2 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8104 $as_echo_n "checking for $ac_word... " >&6; } 8105 if ${ac_cv_path_FIND+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107 else 8108 case $FIND in 8109 [\\/]* | ?:[\\/]*) 8110 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8111 ;; 8112 *) 8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8114 for as_dir in $PATH 8115 do 8116 IFS=$as_save_IFS 8117 test -z "$as_dir" && as_dir=. 8118 for ac_exec_ext in '' $ac_executable_extensions; do 8119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8120 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8122 break 2 8123 fi 8124 done 8125 done 8126 IFS=$as_save_IFS 8127 8128 ;; 8129 esac 8130 fi 8131 FIND=$ac_cv_path_FIND 8132 if test -n "$FIND"; then 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8134 $as_echo "$FIND" >&6; } 8135 else 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8137 $as_echo "no" >&6; } 8138 fi 8139 8140 8141 test -n "$FIND" && break 8142 done 8143 8144 else 8145 # The variable is set, but is it from the command line or the environment? 8146 8147 # Try to remove the string !FIND! from our list. 8148 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8149 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8150 # If it failed, the variable was not from the command line. Ignore it, 8151 # but warn the user (except for BASH, which is always set by the calling BASH). 8152 if test "xFIND" != xBASH; then 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8154 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8155 fi 8156 # Try to locate tool using the code snippet 8157 for ac_prog in find 8158 do 8159 # Extract the first word of "$ac_prog", so it can be a program name with args. 8160 set dummy $ac_prog; ac_word=$2 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8162 $as_echo_n "checking for $ac_word... " >&6; } 8163 if ${ac_cv_path_FIND+:} false; then : 8164 $as_echo_n "(cached) " >&6 8165 else 8166 case $FIND in 8167 [\\/]* | ?:[\\/]*) 8168 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8169 ;; 8170 *) 8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8172 for as_dir in $PATH 8173 do 8174 IFS=$as_save_IFS 8175 test -z "$as_dir" && as_dir=. 8176 for ac_exec_ext in '' $ac_executable_extensions; do 8177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8178 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8180 break 2 8181 fi 8182 done 8183 done 8184 IFS=$as_save_IFS 8185 8186 ;; 8187 esac 8188 fi 8189 FIND=$ac_cv_path_FIND 8190 if test -n "$FIND"; then 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8192 $as_echo "$FIND" >&6; } 8193 else 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8195 $as_echo "no" >&6; } 8196 fi 8197 8198 8199 test -n "$FIND" && break 8200 done 8201 8202 else 8203 # If it succeeded, then it was overridden by the user. We will use it 8204 # for the tool. 8205 8206 # First remove it from the list of overridden variables, so we can test 8207 # for unknown variables in the end. 8208 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8209 8210 # Check if we try to supply an empty value 8211 if test "x$FIND" = x; then 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8213 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8215 $as_echo_n "checking for FIND... " >&6; } 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8217 $as_echo "disabled" >&6; } 8218 else 8219 # Check if the provided tool contains a complete path. 8220 tool_specified="$FIND" 8221 tool_basename="${tool_specified##*/}" 8222 if test "x$tool_basename" = "x$tool_specified"; then 8223 # A command without a complete path is provided, search $PATH. 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8225 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8226 # Extract the first word of "$tool_basename", so it can be a program name with args. 8227 set dummy $tool_basename; ac_word=$2 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8229 $as_echo_n "checking for $ac_word... " >&6; } 8230 if ${ac_cv_path_FIND+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232 else 8233 case $FIND in 8234 [\\/]* | ?:[\\/]*) 8235 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8236 ;; 8237 *) 8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8239 for as_dir in $PATH 8240 do 8241 IFS=$as_save_IFS 8242 test -z "$as_dir" && as_dir=. 8243 for ac_exec_ext in '' $ac_executable_extensions; do 8244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8245 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8247 break 2 8248 fi 8249 done 8250 done 8251 IFS=$as_save_IFS 8252 8253 ;; 8254 esac 8255 fi 8256 FIND=$ac_cv_path_FIND 8257 if test -n "$FIND"; then 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8259 $as_echo "$FIND" >&6; } 8260 else 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8262 $as_echo "no" >&6; } 8263 fi 8264 8265 8266 if test "x$FIND" = x; then 8267 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8268 fi 8269 else 8270 # Otherwise we believe it is a complete path. Use it as it is. 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8272 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8274 $as_echo_n "checking for FIND... " >&6; } 8275 if test ! -x "$tool_specified"; then 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8277 $as_echo "not found" >&6; } 8278 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8279 fi 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8281 $as_echo "$tool_specified" >&6; } 8282 fi 8283 fi 8284 fi 8285 8286 fi 8287 8288 8289 8290 if test "x$FIND" = x; then 8291 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8292 fi 8293 8294 8295 8296 8297 8298 # Publish this variable in the help. 8299 8300 8301 if [ -z "${HEAD+x}" ]; then 8302 # The variable is not set by user, try to locate tool using the code snippet 8303 for ac_prog in head 8304 do 8305 # Extract the first word of "$ac_prog", so it can be a program name with args. 8306 set dummy $ac_prog; ac_word=$2 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8308 $as_echo_n "checking for $ac_word... " >&6; } 8309 if ${ac_cv_path_HEAD+:} false; then : 8310 $as_echo_n "(cached) " >&6 8311 else 8312 case $HEAD in 8313 [\\/]* | ?:[\\/]*) 8314 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8315 ;; 8316 *) 8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8318 for as_dir in $PATH 8319 do 8320 IFS=$as_save_IFS 8321 test -z "$as_dir" && as_dir=. 8322 for ac_exec_ext in '' $ac_executable_extensions; do 8323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8324 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8326 break 2 8327 fi 8328 done 8329 done 8330 IFS=$as_save_IFS 8331 8332 ;; 8333 esac 8334 fi 8335 HEAD=$ac_cv_path_HEAD 8336 if test -n "$HEAD"; then 8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8338 $as_echo "$HEAD" >&6; } 8339 else 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8341 $as_echo "no" >&6; } 8342 fi 8343 8344 8345 test -n "$HEAD" && break 8346 done 8347 8348 else 8349 # The variable is set, but is it from the command line or the environment? 8350 8351 # Try to remove the string !HEAD! from our list. 8352 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8353 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8354 # If it failed, the variable was not from the command line. Ignore it, 8355 # but warn the user (except for BASH, which is always set by the calling BASH). 8356 if test "xHEAD" != xBASH; then 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8358 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8359 fi 8360 # Try to locate tool using the code snippet 8361 for ac_prog in head 8362 do 8363 # Extract the first word of "$ac_prog", so it can be a program name with args. 8364 set dummy $ac_prog; ac_word=$2 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8366 $as_echo_n "checking for $ac_word... " >&6; } 8367 if ${ac_cv_path_HEAD+:} false; then : 8368 $as_echo_n "(cached) " >&6 8369 else 8370 case $HEAD in 8371 [\\/]* | ?:[\\/]*) 8372 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8373 ;; 8374 *) 8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8376 for as_dir in $PATH 8377 do 8378 IFS=$as_save_IFS 8379 test -z "$as_dir" && as_dir=. 8380 for ac_exec_ext in '' $ac_executable_extensions; do 8381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8382 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8384 break 2 8385 fi 8386 done 8387 done 8388 IFS=$as_save_IFS 8389 8390 ;; 8391 esac 8392 fi 8393 HEAD=$ac_cv_path_HEAD 8394 if test -n "$HEAD"; then 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8396 $as_echo "$HEAD" >&6; } 8397 else 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8399 $as_echo "no" >&6; } 8400 fi 8401 8402 8403 test -n "$HEAD" && break 8404 done 8405 8406 else 8407 # If it succeeded, then it was overridden by the user. We will use it 8408 # for the tool. 8409 8410 # First remove it from the list of overridden variables, so we can test 8411 # for unknown variables in the end. 8412 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8413 8414 # Check if we try to supply an empty value 8415 if test "x$HEAD" = x; then 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8417 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8419 $as_echo_n "checking for HEAD... " >&6; } 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8421 $as_echo "disabled" >&6; } 8422 else 8423 # Check if the provided tool contains a complete path. 8424 tool_specified="$HEAD" 8425 tool_basename="${tool_specified##*/}" 8426 if test "x$tool_basename" = "x$tool_specified"; then 8427 # A command without a complete path is provided, search $PATH. 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8429 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8430 # Extract the first word of "$tool_basename", so it can be a program name with args. 8431 set dummy $tool_basename; ac_word=$2 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8433 $as_echo_n "checking for $ac_word... " >&6; } 8434 if ${ac_cv_path_HEAD+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436 else 8437 case $HEAD in 8438 [\\/]* | ?:[\\/]*) 8439 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8440 ;; 8441 *) 8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8443 for as_dir in $PATH 8444 do 8445 IFS=$as_save_IFS 8446 test -z "$as_dir" && as_dir=. 8447 for ac_exec_ext in '' $ac_executable_extensions; do 8448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8449 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8451 break 2 8452 fi 8453 done 8454 done 8455 IFS=$as_save_IFS 8456 8457 ;; 8458 esac 8459 fi 8460 HEAD=$ac_cv_path_HEAD 8461 if test -n "$HEAD"; then 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8463 $as_echo "$HEAD" >&6; } 8464 else 8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8466 $as_echo "no" >&6; } 8467 fi 8468 8469 8470 if test "x$HEAD" = x; then 8471 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8472 fi 8473 else 8474 # Otherwise we believe it is a complete path. Use it as it is. 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8476 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8478 $as_echo_n "checking for HEAD... " >&6; } 8479 if test ! -x "$tool_specified"; then 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8481 $as_echo "not found" >&6; } 8482 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8483 fi 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8485 $as_echo "$tool_specified" >&6; } 8486 fi 8487 fi 8488 fi 8489 8490 fi 8491 8492 8493 8494 if test "x$HEAD" = x; then 8495 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8496 fi 8497 8498 8499 8500 8501 8502 # Publish this variable in the help. 8503 8504 8505 if [ -z "${GUNZIP+x}" ]; then 8506 # The variable is not set by user, try to locate tool using the code snippet 8507 for ac_prog in gunzip 8508 do 8509 # Extract the first word of "$ac_prog", so it can be a program name with args. 8510 set dummy $ac_prog; ac_word=$2 8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8512 $as_echo_n "checking for $ac_word... " >&6; } 8513 if ${ac_cv_path_GUNZIP+:} false; then : 8514 $as_echo_n "(cached) " >&6 8515 else 8516 case $GUNZIP in 8517 [\\/]* | ?:[\\/]*) 8518 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8519 ;; 8520 *) 8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8522 for as_dir in $PATH 8523 do 8524 IFS=$as_save_IFS 8525 test -z "$as_dir" && as_dir=. 8526 for ac_exec_ext in '' $ac_executable_extensions; do 8527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8528 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8530 break 2 8531 fi 8532 done 8533 done 8534 IFS=$as_save_IFS 8535 8536 ;; 8537 esac 8538 fi 8539 GUNZIP=$ac_cv_path_GUNZIP 8540 if test -n "$GUNZIP"; then 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8542 $as_echo "$GUNZIP" >&6; } 8543 else 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8545 $as_echo "no" >&6; } 8546 fi 8547 8548 8549 test -n "$GUNZIP" && break 8550 done 8551 8552 else 8553 # The variable is set, but is it from the command line or the environment? 8554 8555 # Try to remove the string !GUNZIP! from our list. 8556 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8557 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8558 # If it failed, the variable was not from the command line. Ignore it, 8559 # but warn the user (except for BASH, which is always set by the calling BASH). 8560 if test "xGUNZIP" != xBASH; then 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8562 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8563 fi 8564 # Try to locate tool using the code snippet 8565 for ac_prog in gunzip 8566 do 8567 # Extract the first word of "$ac_prog", so it can be a program name with args. 8568 set dummy $ac_prog; ac_word=$2 8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8570 $as_echo_n "checking for $ac_word... " >&6; } 8571 if ${ac_cv_path_GUNZIP+:} false; then : 8572 $as_echo_n "(cached) " >&6 8573 else 8574 case $GUNZIP in 8575 [\\/]* | ?:[\\/]*) 8576 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8577 ;; 8578 *) 8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8580 for as_dir in $PATH 8581 do 8582 IFS=$as_save_IFS 8583 test -z "$as_dir" && as_dir=. 8584 for ac_exec_ext in '' $ac_executable_extensions; do 8585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8586 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8588 break 2 8589 fi 8590 done 8591 done 8592 IFS=$as_save_IFS 8593 8594 ;; 8595 esac 8596 fi 8597 GUNZIP=$ac_cv_path_GUNZIP 8598 if test -n "$GUNZIP"; then 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8600 $as_echo "$GUNZIP" >&6; } 8601 else 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8603 $as_echo "no" >&6; } 8604 fi 8605 8606 8607 test -n "$GUNZIP" && break 8608 done 8609 8610 else 8611 # If it succeeded, then it was overridden by the user. We will use it 8612 # for the tool. 8613 8614 # First remove it from the list of overridden variables, so we can test 8615 # for unknown variables in the end. 8616 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8617 8618 # Check if we try to supply an empty value 8619 if test "x$GUNZIP" = x; then 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8621 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8623 $as_echo_n "checking for GUNZIP... " >&6; } 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8625 $as_echo "disabled" >&6; } 8626 else 8627 # Check if the provided tool contains a complete path. 8628 tool_specified="$GUNZIP" 8629 tool_basename="${tool_specified##*/}" 8630 if test "x$tool_basename" = "x$tool_specified"; then 8631 # A command without a complete path is provided, search $PATH. 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8633 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8634 # Extract the first word of "$tool_basename", so it can be a program name with args. 8635 set dummy $tool_basename; ac_word=$2 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8637 $as_echo_n "checking for $ac_word... " >&6; } 8638 if ${ac_cv_path_GUNZIP+:} false; then : 8639 $as_echo_n "(cached) " >&6 8640 else 8641 case $GUNZIP in 8642 [\\/]* | ?:[\\/]*) 8643 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8644 ;; 8645 *) 8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8647 for as_dir in $PATH 8648 do 8649 IFS=$as_save_IFS 8650 test -z "$as_dir" && as_dir=. 8651 for ac_exec_ext in '' $ac_executable_extensions; do 8652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8653 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8655 break 2 8656 fi 8657 done 8658 done 8659 IFS=$as_save_IFS 8660 8661 ;; 8662 esac 8663 fi 8664 GUNZIP=$ac_cv_path_GUNZIP 8665 if test -n "$GUNZIP"; then 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8667 $as_echo "$GUNZIP" >&6; } 8668 else 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8670 $as_echo "no" >&6; } 8671 fi 8672 8673 8674 if test "x$GUNZIP" = x; then 8675 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8676 fi 8677 else 8678 # Otherwise we believe it is a complete path. Use it as it is. 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8680 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8682 $as_echo_n "checking for GUNZIP... " >&6; } 8683 if test ! -x "$tool_specified"; then 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8685 $as_echo "not found" >&6; } 8686 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8687 fi 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8689 $as_echo "$tool_specified" >&6; } 8690 fi 8691 fi 8692 fi 8693 8694 fi 8695 8696 8697 8698 if test "x$GUNZIP" = x; then 8699 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8700 fi 8701 8702 8703 8704 8705 8706 # Publish this variable in the help. 8707 8708 8709 if [ -z "${GZIP+x}" ]; then 8710 # The variable is not set by user, try to locate tool using the code snippet 8711 for ac_prog in pigz gzip 8712 do 8713 # Extract the first word of "$ac_prog", so it can be a program name with args. 8714 set dummy $ac_prog; ac_word=$2 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8716 $as_echo_n "checking for $ac_word... " >&6; } 8717 if ${ac_cv_path_GZIP+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719 else 8720 case $GZIP in 8721 [\\/]* | ?:[\\/]*) 8722 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8723 ;; 8724 *) 8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8726 for as_dir in $PATH 8727 do 8728 IFS=$as_save_IFS 8729 test -z "$as_dir" && as_dir=. 8730 for ac_exec_ext in '' $ac_executable_extensions; do 8731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8732 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8734 break 2 8735 fi 8736 done 8737 done 8738 IFS=$as_save_IFS 8739 8740 ;; 8741 esac 8742 fi 8743 GZIP=$ac_cv_path_GZIP 8744 if test -n "$GZIP"; then 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8746 $as_echo "$GZIP" >&6; } 8747 else 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8749 $as_echo "no" >&6; } 8750 fi 8751 8752 8753 test -n "$GZIP" && break 8754 done 8755 8756 else 8757 # The variable is set, but is it from the command line or the environment? 8758 8759 # Try to remove the string !GZIP! from our list. 8760 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8761 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8762 # If it failed, the variable was not from the command line. Ignore it, 8763 # but warn the user (except for BASH, which is always set by the calling BASH). 8764 if test "xGZIP" != xBASH; then 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8766 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8767 fi 8768 # Try to locate tool using the code snippet 8769 for ac_prog in pigz gzip 8770 do 8771 # Extract the first word of "$ac_prog", so it can be a program name with args. 8772 set dummy $ac_prog; ac_word=$2 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8774 $as_echo_n "checking for $ac_word... " >&6; } 8775 if ${ac_cv_path_GZIP+:} false; then : 8776 $as_echo_n "(cached) " >&6 8777 else 8778 case $GZIP in 8779 [\\/]* | ?:[\\/]*) 8780 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8781 ;; 8782 *) 8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8784 for as_dir in $PATH 8785 do 8786 IFS=$as_save_IFS 8787 test -z "$as_dir" && as_dir=. 8788 for ac_exec_ext in '' $ac_executable_extensions; do 8789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8790 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8792 break 2 8793 fi 8794 done 8795 done 8796 IFS=$as_save_IFS 8797 8798 ;; 8799 esac 8800 fi 8801 GZIP=$ac_cv_path_GZIP 8802 if test -n "$GZIP"; then 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8804 $as_echo "$GZIP" >&6; } 8805 else 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8807 $as_echo "no" >&6; } 8808 fi 8809 8810 8811 test -n "$GZIP" && break 8812 done 8813 8814 else 8815 # If it succeeded, then it was overridden by the user. We will use it 8816 # for the tool. 8817 8818 # First remove it from the list of overridden variables, so we can test 8819 # for unknown variables in the end. 8820 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8821 8822 # Check if we try to supply an empty value 8823 if test "x$GZIP" = x; then 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8825 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8827 $as_echo_n "checking for GZIP... " >&6; } 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8829 $as_echo "disabled" >&6; } 8830 else 8831 # Check if the provided tool contains a complete path. 8832 tool_specified="$GZIP" 8833 tool_basename="${tool_specified##*/}" 8834 if test "x$tool_basename" = "x$tool_specified"; then 8835 # A command without a complete path is provided, search $PATH. 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8837 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8838 # Extract the first word of "$tool_basename", so it can be a program name with args. 8839 set dummy $tool_basename; ac_word=$2 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8841 $as_echo_n "checking for $ac_word... " >&6; } 8842 if ${ac_cv_path_GZIP+:} false; then : 8843 $as_echo_n "(cached) " >&6 8844 else 8845 case $GZIP in 8846 [\\/]* | ?:[\\/]*) 8847 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8848 ;; 8849 *) 8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8851 for as_dir in $PATH 8852 do 8853 IFS=$as_save_IFS 8854 test -z "$as_dir" && as_dir=. 8855 for ac_exec_ext in '' $ac_executable_extensions; do 8856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8857 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8859 break 2 8860 fi 8861 done 8862 done 8863 IFS=$as_save_IFS 8864 8865 ;; 8866 esac 8867 fi 8868 GZIP=$ac_cv_path_GZIP 8869 if test -n "$GZIP"; then 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8871 $as_echo "$GZIP" >&6; } 8872 else 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8874 $as_echo "no" >&6; } 8875 fi 8876 8877 8878 if test "x$GZIP" = x; then 8879 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8880 fi 8881 else 8882 # Otherwise we believe it is a complete path. Use it as it is. 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8884 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8886 $as_echo_n "checking for GZIP... " >&6; } 8887 if test ! -x "$tool_specified"; then 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8889 $as_echo "not found" >&6; } 8890 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8891 fi 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8893 $as_echo "$tool_specified" >&6; } 8894 fi 8895 fi 8896 fi 8897 8898 fi 8899 8900 8901 8902 if test "x$GZIP" = x; then 8903 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8904 fi 8905 8906 8907 8908 8909 8910 # Publish this variable in the help. 8911 8912 8913 if [ -z "${LN+x}" ]; then 8914 # The variable is not set by user, try to locate tool using the code snippet 8915 for ac_prog in ln 8916 do 8917 # Extract the first word of "$ac_prog", so it can be a program name with args. 8918 set dummy $ac_prog; ac_word=$2 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8920 $as_echo_n "checking for $ac_word... " >&6; } 8921 if ${ac_cv_path_LN+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923 else 8924 case $LN in 8925 [\\/]* | ?:[\\/]*) 8926 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8927 ;; 8928 *) 8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8930 for as_dir in $PATH 8931 do 8932 IFS=$as_save_IFS 8933 test -z "$as_dir" && as_dir=. 8934 for ac_exec_ext in '' $ac_executable_extensions; do 8935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8936 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8938 break 2 8939 fi 8940 done 8941 done 8942 IFS=$as_save_IFS 8943 8944 ;; 8945 esac 8946 fi 8947 LN=$ac_cv_path_LN 8948 if test -n "$LN"; then 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8950 $as_echo "$LN" >&6; } 8951 else 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8953 $as_echo "no" >&6; } 8954 fi 8955 8956 8957 test -n "$LN" && break 8958 done 8959 8960 else 8961 # The variable is set, but is it from the command line or the environment? 8962 8963 # Try to remove the string !LN! from our list. 8964 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8965 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8966 # If it failed, the variable was not from the command line. Ignore it, 8967 # but warn the user (except for BASH, which is always set by the calling BASH). 8968 if test "xLN" != xBASH; then 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8970 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8971 fi 8972 # Try to locate tool using the code snippet 8973 for ac_prog in ln 8974 do 8975 # Extract the first word of "$ac_prog", so it can be a program name with args. 8976 set dummy $ac_prog; ac_word=$2 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8978 $as_echo_n "checking for $ac_word... " >&6; } 8979 if ${ac_cv_path_LN+:} false; then : 8980 $as_echo_n "(cached) " >&6 8981 else 8982 case $LN in 8983 [\\/]* | ?:[\\/]*) 8984 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8985 ;; 8986 *) 8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8988 for as_dir in $PATH 8989 do 8990 IFS=$as_save_IFS 8991 test -z "$as_dir" && as_dir=. 8992 for ac_exec_ext in '' $ac_executable_extensions; do 8993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8994 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8996 break 2 8997 fi 8998 done 8999 done 9000 IFS=$as_save_IFS 9001 9002 ;; 9003 esac 9004 fi 9005 LN=$ac_cv_path_LN 9006 if test -n "$LN"; then 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9008 $as_echo "$LN" >&6; } 9009 else 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9011 $as_echo "no" >&6; } 9012 fi 9013 9014 9015 test -n "$LN" && break 9016 done 9017 9018 else 9019 # If it succeeded, then it was overridden by the user. We will use it 9020 # for the tool. 9021 9022 # First remove it from the list of overridden variables, so we can test 9023 # for unknown variables in the end. 9024 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9025 9026 # Check if we try to supply an empty value 9027 if test "x$LN" = x; then 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 9029 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9031 $as_echo_n "checking for LN... " >&6; } 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9033 $as_echo "disabled" >&6; } 9034 else 9035 # Check if the provided tool contains a complete path. 9036 tool_specified="$LN" 9037 tool_basename="${tool_specified##*/}" 9038 if test "x$tool_basename" = "x$tool_specified"; then 9039 # A command without a complete path is provided, search $PATH. 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 9041 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 9042 # Extract the first word of "$tool_basename", so it can be a program name with args. 9043 set dummy $tool_basename; ac_word=$2 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9045 $as_echo_n "checking for $ac_word... " >&6; } 9046 if ${ac_cv_path_LN+:} false; then : 9047 $as_echo_n "(cached) " >&6 9048 else 9049 case $LN in 9050 [\\/]* | ?:[\\/]*) 9051 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9052 ;; 9053 *) 9054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9055 for as_dir in $PATH 9056 do 9057 IFS=$as_save_IFS 9058 test -z "$as_dir" && as_dir=. 9059 for ac_exec_ext in '' $ac_executable_extensions; do 9060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9061 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9063 break 2 9064 fi 9065 done 9066 done 9067 IFS=$as_save_IFS 9068 9069 ;; 9070 esac 9071 fi 9072 LN=$ac_cv_path_LN 9073 if test -n "$LN"; then 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9075 $as_echo "$LN" >&6; } 9076 else 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9078 $as_echo "no" >&6; } 9079 fi 9080 9081 9082 if test "x$LN" = x; then 9083 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9084 fi 9085 else 9086 # Otherwise we believe it is a complete path. Use it as it is. 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9088 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9090 $as_echo_n "checking for LN... " >&6; } 9091 if test ! -x "$tool_specified"; then 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9093 $as_echo "not found" >&6; } 9094 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9095 fi 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9097 $as_echo "$tool_specified" >&6; } 9098 fi 9099 fi 9100 fi 9101 9102 fi 9103 9104 9105 9106 if test "x$LN" = x; then 9107 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9108 fi 9109 9110 9111 9112 9113 9114 # Publish this variable in the help. 9115 9116 9117 if [ -z "${LS+x}" ]; then 9118 # The variable is not set by user, try to locate tool using the code snippet 9119 for ac_prog in ls 9120 do 9121 # Extract the first word of "$ac_prog", so it can be a program name with args. 9122 set dummy $ac_prog; ac_word=$2 9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9124 $as_echo_n "checking for $ac_word... " >&6; } 9125 if ${ac_cv_path_LS+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127 else 9128 case $LS in 9129 [\\/]* | ?:[\\/]*) 9130 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9131 ;; 9132 *) 9133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9134 for as_dir in $PATH 9135 do 9136 IFS=$as_save_IFS 9137 test -z "$as_dir" && as_dir=. 9138 for ac_exec_ext in '' $ac_executable_extensions; do 9139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9140 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9142 break 2 9143 fi 9144 done 9145 done 9146 IFS=$as_save_IFS 9147 9148 ;; 9149 esac 9150 fi 9151 LS=$ac_cv_path_LS 9152 if test -n "$LS"; then 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9154 $as_echo "$LS" >&6; } 9155 else 9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9157 $as_echo "no" >&6; } 9158 fi 9159 9160 9161 test -n "$LS" && break 9162 done 9163 9164 else 9165 # The variable is set, but is it from the command line or the environment? 9166 9167 # Try to remove the string !LS! from our list. 9168 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9169 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9170 # If it failed, the variable was not from the command line. Ignore it, 9171 # but warn the user (except for BASH, which is always set by the calling BASH). 9172 if test "xLS" != xBASH; then 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9174 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9175 fi 9176 # Try to locate tool using the code snippet 9177 for ac_prog in ls 9178 do 9179 # Extract the first word of "$ac_prog", so it can be a program name with args. 9180 set dummy $ac_prog; ac_word=$2 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9182 $as_echo_n "checking for $ac_word... " >&6; } 9183 if ${ac_cv_path_LS+:} false; then : 9184 $as_echo_n "(cached) " >&6 9185 else 9186 case $LS in 9187 [\\/]* | ?:[\\/]*) 9188 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9189 ;; 9190 *) 9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9192 for as_dir in $PATH 9193 do 9194 IFS=$as_save_IFS 9195 test -z "$as_dir" && as_dir=. 9196 for ac_exec_ext in '' $ac_executable_extensions; do 9197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9198 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9200 break 2 9201 fi 9202 done 9203 done 9204 IFS=$as_save_IFS 9205 9206 ;; 9207 esac 9208 fi 9209 LS=$ac_cv_path_LS 9210 if test -n "$LS"; then 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9212 $as_echo "$LS" >&6; } 9213 else 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9215 $as_echo "no" >&6; } 9216 fi 9217 9218 9219 test -n "$LS" && break 9220 done 9221 9222 else 9223 # If it succeeded, then it was overridden by the user. We will use it 9224 # for the tool. 9225 9226 # First remove it from the list of overridden variables, so we can test 9227 # for unknown variables in the end. 9228 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9229 9230 # Check if we try to supply an empty value 9231 if test "x$LS" = x; then 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9233 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9235 $as_echo_n "checking for LS... " >&6; } 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9237 $as_echo "disabled" >&6; } 9238 else 9239 # Check if the provided tool contains a complete path. 9240 tool_specified="$LS" 9241 tool_basename="${tool_specified##*/}" 9242 if test "x$tool_basename" = "x$tool_specified"; then 9243 # A command without a complete path is provided, search $PATH. 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9245 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9246 # Extract the first word of "$tool_basename", so it can be a program name with args. 9247 set dummy $tool_basename; ac_word=$2 9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9249 $as_echo_n "checking for $ac_word... " >&6; } 9250 if ${ac_cv_path_LS+:} false; then : 9251 $as_echo_n "(cached) " >&6 9252 else 9253 case $LS in 9254 [\\/]* | ?:[\\/]*) 9255 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9256 ;; 9257 *) 9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9259 for as_dir in $PATH 9260 do 9261 IFS=$as_save_IFS 9262 test -z "$as_dir" && as_dir=. 9263 for ac_exec_ext in '' $ac_executable_extensions; do 9264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9265 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9267 break 2 9268 fi 9269 done 9270 done 9271 IFS=$as_save_IFS 9272 9273 ;; 9274 esac 9275 fi 9276 LS=$ac_cv_path_LS 9277 if test -n "$LS"; then 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9279 $as_echo "$LS" >&6; } 9280 else 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9282 $as_echo "no" >&6; } 9283 fi 9284 9285 9286 if test "x$LS" = x; then 9287 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9288 fi 9289 else 9290 # Otherwise we believe it is a complete path. Use it as it is. 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9292 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9294 $as_echo_n "checking for LS... " >&6; } 9295 if test ! -x "$tool_specified"; then 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9297 $as_echo "not found" >&6; } 9298 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9299 fi 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9301 $as_echo "$tool_specified" >&6; } 9302 fi 9303 fi 9304 fi 9305 9306 fi 9307 9308 9309 9310 if test "x$LS" = x; then 9311 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9312 fi 9313 9314 9315 9316 9317 9318 # Publish this variable in the help. 9319 9320 9321 if [ -z "${MKDIR+x}" ]; then 9322 # The variable is not set by user, try to locate tool using the code snippet 9323 for ac_prog in mkdir 9324 do 9325 # Extract the first word of "$ac_prog", so it can be a program name with args. 9326 set dummy $ac_prog; ac_word=$2 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9328 $as_echo_n "checking for $ac_word... " >&6; } 9329 if ${ac_cv_path_MKDIR+:} false; then : 9330 $as_echo_n "(cached) " >&6 9331 else 9332 case $MKDIR in 9333 [\\/]* | ?:[\\/]*) 9334 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9335 ;; 9336 *) 9337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9338 for as_dir in $PATH 9339 do 9340 IFS=$as_save_IFS 9341 test -z "$as_dir" && as_dir=. 9342 for ac_exec_ext in '' $ac_executable_extensions; do 9343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9344 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9346 break 2 9347 fi 9348 done 9349 done 9350 IFS=$as_save_IFS 9351 9352 ;; 9353 esac 9354 fi 9355 MKDIR=$ac_cv_path_MKDIR 9356 if test -n "$MKDIR"; then 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9358 $as_echo "$MKDIR" >&6; } 9359 else 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9361 $as_echo "no" >&6; } 9362 fi 9363 9364 9365 test -n "$MKDIR" && break 9366 done 9367 9368 else 9369 # The variable is set, but is it from the command line or the environment? 9370 9371 # Try to remove the string !MKDIR! from our list. 9372 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9373 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9374 # If it failed, the variable was not from the command line. Ignore it, 9375 # but warn the user (except for BASH, which is always set by the calling BASH). 9376 if test "xMKDIR" != xBASH; then 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9378 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9379 fi 9380 # Try to locate tool using the code snippet 9381 for ac_prog in mkdir 9382 do 9383 # Extract the first word of "$ac_prog", so it can be a program name with args. 9384 set dummy $ac_prog; ac_word=$2 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9386 $as_echo_n "checking for $ac_word... " >&6; } 9387 if ${ac_cv_path_MKDIR+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389 else 9390 case $MKDIR in 9391 [\\/]* | ?:[\\/]*) 9392 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9393 ;; 9394 *) 9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9396 for as_dir in $PATH 9397 do 9398 IFS=$as_save_IFS 9399 test -z "$as_dir" && as_dir=. 9400 for ac_exec_ext in '' $ac_executable_extensions; do 9401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9402 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9404 break 2 9405 fi 9406 done 9407 done 9408 IFS=$as_save_IFS 9409 9410 ;; 9411 esac 9412 fi 9413 MKDIR=$ac_cv_path_MKDIR 9414 if test -n "$MKDIR"; then 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9416 $as_echo "$MKDIR" >&6; } 9417 else 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9419 $as_echo "no" >&6; } 9420 fi 9421 9422 9423 test -n "$MKDIR" && break 9424 done 9425 9426 else 9427 # If it succeeded, then it was overridden by the user. We will use it 9428 # for the tool. 9429 9430 # First remove it from the list of overridden variables, so we can test 9431 # for unknown variables in the end. 9432 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9433 9434 # Check if we try to supply an empty value 9435 if test "x$MKDIR" = x; then 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9437 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9439 $as_echo_n "checking for MKDIR... " >&6; } 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9441 $as_echo "disabled" >&6; } 9442 else 9443 # Check if the provided tool contains a complete path. 9444 tool_specified="$MKDIR" 9445 tool_basename="${tool_specified##*/}" 9446 if test "x$tool_basename" = "x$tool_specified"; then 9447 # A command without a complete path is provided, search $PATH. 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9449 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9450 # Extract the first word of "$tool_basename", so it can be a program name with args. 9451 set dummy $tool_basename; ac_word=$2 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9453 $as_echo_n "checking for $ac_word... " >&6; } 9454 if ${ac_cv_path_MKDIR+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456 else 9457 case $MKDIR in 9458 [\\/]* | ?:[\\/]*) 9459 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9460 ;; 9461 *) 9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9463 for as_dir in $PATH 9464 do 9465 IFS=$as_save_IFS 9466 test -z "$as_dir" && as_dir=. 9467 for ac_exec_ext in '' $ac_executable_extensions; do 9468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9469 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9471 break 2 9472 fi 9473 done 9474 done 9475 IFS=$as_save_IFS 9476 9477 ;; 9478 esac 9479 fi 9480 MKDIR=$ac_cv_path_MKDIR 9481 if test -n "$MKDIR"; then 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9483 $as_echo "$MKDIR" >&6; } 9484 else 9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9486 $as_echo "no" >&6; } 9487 fi 9488 9489 9490 if test "x$MKDIR" = x; then 9491 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9492 fi 9493 else 9494 # Otherwise we believe it is a complete path. Use it as it is. 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9496 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9498 $as_echo_n "checking for MKDIR... " >&6; } 9499 if test ! -x "$tool_specified"; then 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9501 $as_echo "not found" >&6; } 9502 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9503 fi 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9505 $as_echo "$tool_specified" >&6; } 9506 fi 9507 fi 9508 fi 9509 9510 fi 9511 9512 9513 9514 if test "x$MKDIR" = x; then 9515 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9516 fi 9517 9518 9519 9520 9521 9522 # Publish this variable in the help. 9523 9524 9525 if [ -z "${MKTEMP+x}" ]; then 9526 # The variable is not set by user, try to locate tool using the code snippet 9527 for ac_prog in mktemp 9528 do 9529 # Extract the first word of "$ac_prog", so it can be a program name with args. 9530 set dummy $ac_prog; ac_word=$2 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9532 $as_echo_n "checking for $ac_word... " >&6; } 9533 if ${ac_cv_path_MKTEMP+:} false; then : 9534 $as_echo_n "(cached) " >&6 9535 else 9536 case $MKTEMP in 9537 [\\/]* | ?:[\\/]*) 9538 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9539 ;; 9540 *) 9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9542 for as_dir in $PATH 9543 do 9544 IFS=$as_save_IFS 9545 test -z "$as_dir" && as_dir=. 9546 for ac_exec_ext in '' $ac_executable_extensions; do 9547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9548 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9550 break 2 9551 fi 9552 done 9553 done 9554 IFS=$as_save_IFS 9555 9556 ;; 9557 esac 9558 fi 9559 MKTEMP=$ac_cv_path_MKTEMP 9560 if test -n "$MKTEMP"; then 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9562 $as_echo "$MKTEMP" >&6; } 9563 else 9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9565 $as_echo "no" >&6; } 9566 fi 9567 9568 9569 test -n "$MKTEMP" && break 9570 done 9571 9572 else 9573 # The variable is set, but is it from the command line or the environment? 9574 9575 # Try to remove the string !MKTEMP! from our list. 9576 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9577 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9578 # If it failed, the variable was not from the command line. Ignore it, 9579 # but warn the user (except for BASH, which is always set by the calling BASH). 9580 if test "xMKTEMP" != xBASH; then 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9582 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9583 fi 9584 # Try to locate tool using the code snippet 9585 for ac_prog in mktemp 9586 do 9587 # Extract the first word of "$ac_prog", so it can be a program name with args. 9588 set dummy $ac_prog; ac_word=$2 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9590 $as_echo_n "checking for $ac_word... " >&6; } 9591 if ${ac_cv_path_MKTEMP+:} false; then : 9592 $as_echo_n "(cached) " >&6 9593 else 9594 case $MKTEMP in 9595 [\\/]* | ?:[\\/]*) 9596 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9597 ;; 9598 *) 9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9600 for as_dir in $PATH 9601 do 9602 IFS=$as_save_IFS 9603 test -z "$as_dir" && as_dir=. 9604 for ac_exec_ext in '' $ac_executable_extensions; do 9605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9606 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9608 break 2 9609 fi 9610 done 9611 done 9612 IFS=$as_save_IFS 9613 9614 ;; 9615 esac 9616 fi 9617 MKTEMP=$ac_cv_path_MKTEMP 9618 if test -n "$MKTEMP"; then 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9620 $as_echo "$MKTEMP" >&6; } 9621 else 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9623 $as_echo "no" >&6; } 9624 fi 9625 9626 9627 test -n "$MKTEMP" && break 9628 done 9629 9630 else 9631 # If it succeeded, then it was overridden by the user. We will use it 9632 # for the tool. 9633 9634 # First remove it from the list of overridden variables, so we can test 9635 # for unknown variables in the end. 9636 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9637 9638 # Check if we try to supply an empty value 9639 if test "x$MKTEMP" = x; then 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9641 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9643 $as_echo_n "checking for MKTEMP... " >&6; } 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9645 $as_echo "disabled" >&6; } 9646 else 9647 # Check if the provided tool contains a complete path. 9648 tool_specified="$MKTEMP" 9649 tool_basename="${tool_specified##*/}" 9650 if test "x$tool_basename" = "x$tool_specified"; then 9651 # A command without a complete path is provided, search $PATH. 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9653 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9654 # Extract the first word of "$tool_basename", so it can be a program name with args. 9655 set dummy $tool_basename; ac_word=$2 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9657 $as_echo_n "checking for $ac_word... " >&6; } 9658 if ${ac_cv_path_MKTEMP+:} false; then : 9659 $as_echo_n "(cached) " >&6 9660 else 9661 case $MKTEMP in 9662 [\\/]* | ?:[\\/]*) 9663 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9664 ;; 9665 *) 9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9667 for as_dir in $PATH 9668 do 9669 IFS=$as_save_IFS 9670 test -z "$as_dir" && as_dir=. 9671 for ac_exec_ext in '' $ac_executable_extensions; do 9672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9673 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9675 break 2 9676 fi 9677 done 9678 done 9679 IFS=$as_save_IFS 9680 9681 ;; 9682 esac 9683 fi 9684 MKTEMP=$ac_cv_path_MKTEMP 9685 if test -n "$MKTEMP"; then 9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9687 $as_echo "$MKTEMP" >&6; } 9688 else 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9690 $as_echo "no" >&6; } 9691 fi 9692 9693 9694 if test "x$MKTEMP" = x; then 9695 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9696 fi 9697 else 9698 # Otherwise we believe it is a complete path. Use it as it is. 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9700 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9702 $as_echo_n "checking for MKTEMP... " >&6; } 9703 if test ! -x "$tool_specified"; then 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9705 $as_echo "not found" >&6; } 9706 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9707 fi 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9709 $as_echo "$tool_specified" >&6; } 9710 fi 9711 fi 9712 fi 9713 9714 fi 9715 9716 9717 9718 if test "x$MKTEMP" = x; then 9719 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9720 fi 9721 9722 9723 9724 9725 9726 # Publish this variable in the help. 9727 9728 9729 if [ -z "${MV+x}" ]; then 9730 # The variable is not set by user, try to locate tool using the code snippet 9731 for ac_prog in mv 9732 do 9733 # Extract the first word of "$ac_prog", so it can be a program name with args. 9734 set dummy $ac_prog; ac_word=$2 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9736 $as_echo_n "checking for $ac_word... " >&6; } 9737 if ${ac_cv_path_MV+:} false; then : 9738 $as_echo_n "(cached) " >&6 9739 else 9740 case $MV in 9741 [\\/]* | ?:[\\/]*) 9742 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9743 ;; 9744 *) 9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9746 for as_dir in $PATH 9747 do 9748 IFS=$as_save_IFS 9749 test -z "$as_dir" && as_dir=. 9750 for ac_exec_ext in '' $ac_executable_extensions; do 9751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9752 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9754 break 2 9755 fi 9756 done 9757 done 9758 IFS=$as_save_IFS 9759 9760 ;; 9761 esac 9762 fi 9763 MV=$ac_cv_path_MV 9764 if test -n "$MV"; then 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9766 $as_echo "$MV" >&6; } 9767 else 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9769 $as_echo "no" >&6; } 9770 fi 9771 9772 9773 test -n "$MV" && break 9774 done 9775 9776 else 9777 # The variable is set, but is it from the command line or the environment? 9778 9779 # Try to remove the string !MV! from our list. 9780 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9781 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9782 # If it failed, the variable was not from the command line. Ignore it, 9783 # but warn the user (except for BASH, which is always set by the calling BASH). 9784 if test "xMV" != xBASH; then 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9786 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9787 fi 9788 # Try to locate tool using the code snippet 9789 for ac_prog in mv 9790 do 9791 # Extract the first word of "$ac_prog", so it can be a program name with args. 9792 set dummy $ac_prog; ac_word=$2 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9794 $as_echo_n "checking for $ac_word... " >&6; } 9795 if ${ac_cv_path_MV+:} false; then : 9796 $as_echo_n "(cached) " >&6 9797 else 9798 case $MV in 9799 [\\/]* | ?:[\\/]*) 9800 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9801 ;; 9802 *) 9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9804 for as_dir in $PATH 9805 do 9806 IFS=$as_save_IFS 9807 test -z "$as_dir" && as_dir=. 9808 for ac_exec_ext in '' $ac_executable_extensions; do 9809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9810 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9812 break 2 9813 fi 9814 done 9815 done 9816 IFS=$as_save_IFS 9817 9818 ;; 9819 esac 9820 fi 9821 MV=$ac_cv_path_MV 9822 if test -n "$MV"; then 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9824 $as_echo "$MV" >&6; } 9825 else 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9827 $as_echo "no" >&6; } 9828 fi 9829 9830 9831 test -n "$MV" && break 9832 done 9833 9834 else 9835 # If it succeeded, then it was overridden by the user. We will use it 9836 # for the tool. 9837 9838 # First remove it from the list of overridden variables, so we can test 9839 # for unknown variables in the end. 9840 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9841 9842 # Check if we try to supply an empty value 9843 if test "x$MV" = x; then 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9845 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9847 $as_echo_n "checking for MV... " >&6; } 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9849 $as_echo "disabled" >&6; } 9850 else 9851 # Check if the provided tool contains a complete path. 9852 tool_specified="$MV" 9853 tool_basename="${tool_specified##*/}" 9854 if test "x$tool_basename" = "x$tool_specified"; then 9855 # A command without a complete path is provided, search $PATH. 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9857 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9858 # Extract the first word of "$tool_basename", so it can be a program name with args. 9859 set dummy $tool_basename; ac_word=$2 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9861 $as_echo_n "checking for $ac_word... " >&6; } 9862 if ${ac_cv_path_MV+:} false; then : 9863 $as_echo_n "(cached) " >&6 9864 else 9865 case $MV in 9866 [\\/]* | ?:[\\/]*) 9867 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9868 ;; 9869 *) 9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9871 for as_dir in $PATH 9872 do 9873 IFS=$as_save_IFS 9874 test -z "$as_dir" && as_dir=. 9875 for ac_exec_ext in '' $ac_executable_extensions; do 9876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9877 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9879 break 2 9880 fi 9881 done 9882 done 9883 IFS=$as_save_IFS 9884 9885 ;; 9886 esac 9887 fi 9888 MV=$ac_cv_path_MV 9889 if test -n "$MV"; then 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9891 $as_echo "$MV" >&6; } 9892 else 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9894 $as_echo "no" >&6; } 9895 fi 9896 9897 9898 if test "x$MV" = x; then 9899 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9900 fi 9901 else 9902 # Otherwise we believe it is a complete path. Use it as it is. 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9904 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9906 $as_echo_n "checking for MV... " >&6; } 9907 if test ! -x "$tool_specified"; then 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9909 $as_echo "not found" >&6; } 9910 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9911 fi 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9913 $as_echo "$tool_specified" >&6; } 9914 fi 9915 fi 9916 fi 9917 9918 fi 9919 9920 9921 9922 if test "x$MV" = x; then 9923 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9924 fi 9925 9926 9927 9928 9929 9930 # Publish this variable in the help. 9931 9932 9933 if [ -z "${NAWK+x}" ]; then 9934 # The variable is not set by user, try to locate tool using the code snippet 9935 for ac_prog in nawk gawk awk 9936 do 9937 # Extract the first word of "$ac_prog", so it can be a program name with args. 9938 set dummy $ac_prog; ac_word=$2 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9940 $as_echo_n "checking for $ac_word... " >&6; } 9941 if ${ac_cv_path_NAWK+:} false; then : 9942 $as_echo_n "(cached) " >&6 9943 else 9944 case $NAWK in 9945 [\\/]* | ?:[\\/]*) 9946 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9947 ;; 9948 *) 9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9950 for as_dir in $PATH 9951 do 9952 IFS=$as_save_IFS 9953 test -z "$as_dir" && as_dir=. 9954 for ac_exec_ext in '' $ac_executable_extensions; do 9955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9956 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9958 break 2 9959 fi 9960 done 9961 done 9962 IFS=$as_save_IFS 9963 9964 ;; 9965 esac 9966 fi 9967 NAWK=$ac_cv_path_NAWK 9968 if test -n "$NAWK"; then 9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9970 $as_echo "$NAWK" >&6; } 9971 else 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9973 $as_echo "no" >&6; } 9974 fi 9975 9976 9977 test -n "$NAWK" && break 9978 done 9979 9980 else 9981 # The variable is set, but is it from the command line or the environment? 9982 9983 # Try to remove the string !NAWK! from our list. 9984 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9985 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9986 # If it failed, the variable was not from the command line. Ignore it, 9987 # but warn the user (except for BASH, which is always set by the calling BASH). 9988 if test "xNAWK" != xBASH; then 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9990 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9991 fi 9992 # Try to locate tool using the code snippet 9993 for ac_prog in nawk gawk awk 9994 do 9995 # Extract the first word of "$ac_prog", so it can be a program name with args. 9996 set dummy $ac_prog; ac_word=$2 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9998 $as_echo_n "checking for $ac_word... " >&6; } 9999 if ${ac_cv_path_NAWK+:} false; then : 10000 $as_echo_n "(cached) " >&6 10001 else 10002 case $NAWK in 10003 [\\/]* | ?:[\\/]*) 10004 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10005 ;; 10006 *) 10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10008 for as_dir in $PATH 10009 do 10010 IFS=$as_save_IFS 10011 test -z "$as_dir" && as_dir=. 10012 for ac_exec_ext in '' $ac_executable_extensions; do 10013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10014 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10016 break 2 10017 fi 10018 done 10019 done 10020 IFS=$as_save_IFS 10021 10022 ;; 10023 esac 10024 fi 10025 NAWK=$ac_cv_path_NAWK 10026 if test -n "$NAWK"; then 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10028 $as_echo "$NAWK" >&6; } 10029 else 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10031 $as_echo "no" >&6; } 10032 fi 10033 10034 10035 test -n "$NAWK" && break 10036 done 10037 10038 else 10039 # If it succeeded, then it was overridden by the user. We will use it 10040 # for the tool. 10041 10042 # First remove it from the list of overridden variables, so we can test 10043 # for unknown variables in the end. 10044 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10045 10046 # Check if we try to supply an empty value 10047 if test "x$NAWK" = x; then 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 10049 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10051 $as_echo_n "checking for NAWK... " >&6; } 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10053 $as_echo "disabled" >&6; } 10054 else 10055 # Check if the provided tool contains a complete path. 10056 tool_specified="$NAWK" 10057 tool_basename="${tool_specified##*/}" 10058 if test "x$tool_basename" = "x$tool_specified"; then 10059 # A command without a complete path is provided, search $PATH. 10060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 10061 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 10062 # Extract the first word of "$tool_basename", so it can be a program name with args. 10063 set dummy $tool_basename; ac_word=$2 10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10065 $as_echo_n "checking for $ac_word... " >&6; } 10066 if ${ac_cv_path_NAWK+:} false; then : 10067 $as_echo_n "(cached) " >&6 10068 else 10069 case $NAWK in 10070 [\\/]* | ?:[\\/]*) 10071 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10072 ;; 10073 *) 10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10075 for as_dir in $PATH 10076 do 10077 IFS=$as_save_IFS 10078 test -z "$as_dir" && as_dir=. 10079 for ac_exec_ext in '' $ac_executable_extensions; do 10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10081 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10083 break 2 10084 fi 10085 done 10086 done 10087 IFS=$as_save_IFS 10088 10089 ;; 10090 esac 10091 fi 10092 NAWK=$ac_cv_path_NAWK 10093 if test -n "$NAWK"; then 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10095 $as_echo "$NAWK" >&6; } 10096 else 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10098 $as_echo "no" >&6; } 10099 fi 10100 10101 10102 if test "x$NAWK" = x; then 10103 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10104 fi 10105 else 10106 # Otherwise we believe it is a complete path. Use it as it is. 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10108 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10110 $as_echo_n "checking for NAWK... " >&6; } 10111 if test ! -x "$tool_specified"; then 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10113 $as_echo "not found" >&6; } 10114 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10115 fi 10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10117 $as_echo "$tool_specified" >&6; } 10118 fi 10119 fi 10120 fi 10121 10122 fi 10123 10124 10125 10126 if test "x$NAWK" = x; then 10127 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10128 fi 10129 10130 10131 10132 10133 10134 # Publish this variable in the help. 10135 10136 10137 if [ -z "${PRINTF+x}" ]; then 10138 # The variable is not set by user, try to locate tool using the code snippet 10139 for ac_prog in printf 10140 do 10141 # Extract the first word of "$ac_prog", so it can be a program name with args. 10142 set dummy $ac_prog; ac_word=$2 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10144 $as_echo_n "checking for $ac_word... " >&6; } 10145 if ${ac_cv_path_PRINTF+:} false; then : 10146 $as_echo_n "(cached) " >&6 10147 else 10148 case $PRINTF in 10149 [\\/]* | ?:[\\/]*) 10150 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10151 ;; 10152 *) 10153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10154 for as_dir in $PATH 10155 do 10156 IFS=$as_save_IFS 10157 test -z "$as_dir" && as_dir=. 10158 for ac_exec_ext in '' $ac_executable_extensions; do 10159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10160 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10162 break 2 10163 fi 10164 done 10165 done 10166 IFS=$as_save_IFS 10167 10168 ;; 10169 esac 10170 fi 10171 PRINTF=$ac_cv_path_PRINTF 10172 if test -n "$PRINTF"; then 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10174 $as_echo "$PRINTF" >&6; } 10175 else 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10177 $as_echo "no" >&6; } 10178 fi 10179 10180 10181 test -n "$PRINTF" && break 10182 done 10183 10184 else 10185 # The variable is set, but is it from the command line or the environment? 10186 10187 # Try to remove the string !PRINTF! from our list. 10188 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10189 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10190 # If it failed, the variable was not from the command line. Ignore it, 10191 # but warn the user (except for BASH, which is always set by the calling BASH). 10192 if test "xPRINTF" != xBASH; then 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10194 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10195 fi 10196 # Try to locate tool using the code snippet 10197 for ac_prog in printf 10198 do 10199 # Extract the first word of "$ac_prog", so it can be a program name with args. 10200 set dummy $ac_prog; ac_word=$2 10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10202 $as_echo_n "checking for $ac_word... " >&6; } 10203 if ${ac_cv_path_PRINTF+:} false; then : 10204 $as_echo_n "(cached) " >&6 10205 else 10206 case $PRINTF in 10207 [\\/]* | ?:[\\/]*) 10208 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10209 ;; 10210 *) 10211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10212 for as_dir in $PATH 10213 do 10214 IFS=$as_save_IFS 10215 test -z "$as_dir" && as_dir=. 10216 for ac_exec_ext in '' $ac_executable_extensions; do 10217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10218 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10220 break 2 10221 fi 10222 done 10223 done 10224 IFS=$as_save_IFS 10225 10226 ;; 10227 esac 10228 fi 10229 PRINTF=$ac_cv_path_PRINTF 10230 if test -n "$PRINTF"; then 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10232 $as_echo "$PRINTF" >&6; } 10233 else 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10235 $as_echo "no" >&6; } 10236 fi 10237 10238 10239 test -n "$PRINTF" && break 10240 done 10241 10242 else 10243 # If it succeeded, then it was overridden by the user. We will use it 10244 # for the tool. 10245 10246 # First remove it from the list of overridden variables, so we can test 10247 # for unknown variables in the end. 10248 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10249 10250 # Check if we try to supply an empty value 10251 if test "x$PRINTF" = x; then 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10253 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10255 $as_echo_n "checking for PRINTF... " >&6; } 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10257 $as_echo "disabled" >&6; } 10258 else 10259 # Check if the provided tool contains a complete path. 10260 tool_specified="$PRINTF" 10261 tool_basename="${tool_specified##*/}" 10262 if test "x$tool_basename" = "x$tool_specified"; then 10263 # A command without a complete path is provided, search $PATH. 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10265 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10266 # Extract the first word of "$tool_basename", so it can be a program name with args. 10267 set dummy $tool_basename; ac_word=$2 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10269 $as_echo_n "checking for $ac_word... " >&6; } 10270 if ${ac_cv_path_PRINTF+:} false; then : 10271 $as_echo_n "(cached) " >&6 10272 else 10273 case $PRINTF in 10274 [\\/]* | ?:[\\/]*) 10275 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10276 ;; 10277 *) 10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10279 for as_dir in $PATH 10280 do 10281 IFS=$as_save_IFS 10282 test -z "$as_dir" && as_dir=. 10283 for ac_exec_ext in '' $ac_executable_extensions; do 10284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10285 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10287 break 2 10288 fi 10289 done 10290 done 10291 IFS=$as_save_IFS 10292 10293 ;; 10294 esac 10295 fi 10296 PRINTF=$ac_cv_path_PRINTF 10297 if test -n "$PRINTF"; then 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10299 $as_echo "$PRINTF" >&6; } 10300 else 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10302 $as_echo "no" >&6; } 10303 fi 10304 10305 10306 if test "x$PRINTF" = x; then 10307 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10308 fi 10309 else 10310 # Otherwise we believe it is a complete path. Use it as it is. 10311 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10312 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10314 $as_echo_n "checking for PRINTF... " >&6; } 10315 if test ! -x "$tool_specified"; then 10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10317 $as_echo "not found" >&6; } 10318 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10319 fi 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10321 $as_echo "$tool_specified" >&6; } 10322 fi 10323 fi 10324 fi 10325 10326 fi 10327 10328 10329 10330 if test "x$PRINTF" = x; then 10331 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10332 fi 10333 10334 10335 10336 10337 10338 # Publish this variable in the help. 10339 10340 10341 if [ -z "${RM+x}" ]; then 10342 # The variable is not set by user, try to locate tool using the code snippet 10343 for ac_prog in rm 10344 do 10345 # Extract the first word of "$ac_prog", so it can be a program name with args. 10346 set dummy $ac_prog; ac_word=$2 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10348 $as_echo_n "checking for $ac_word... " >&6; } 10349 if ${ac_cv_path_RM+:} false; then : 10350 $as_echo_n "(cached) " >&6 10351 else 10352 case $RM in 10353 [\\/]* | ?:[\\/]*) 10354 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10355 ;; 10356 *) 10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10358 for as_dir in $PATH 10359 do 10360 IFS=$as_save_IFS 10361 test -z "$as_dir" && as_dir=. 10362 for ac_exec_ext in '' $ac_executable_extensions; do 10363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10364 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10366 break 2 10367 fi 10368 done 10369 done 10370 IFS=$as_save_IFS 10371 10372 ;; 10373 esac 10374 fi 10375 RM=$ac_cv_path_RM 10376 if test -n "$RM"; then 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10378 $as_echo "$RM" >&6; } 10379 else 10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10381 $as_echo "no" >&6; } 10382 fi 10383 10384 10385 test -n "$RM" && break 10386 done 10387 10388 else 10389 # The variable is set, but is it from the command line or the environment? 10390 10391 # Try to remove the string !RM! from our list. 10392 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10393 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10394 # If it failed, the variable was not from the command line. Ignore it, 10395 # but warn the user (except for BASH, which is always set by the calling BASH). 10396 if test "xRM" != xBASH; then 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10398 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10399 fi 10400 # Try to locate tool using the code snippet 10401 for ac_prog in rm 10402 do 10403 # Extract the first word of "$ac_prog", so it can be a program name with args. 10404 set dummy $ac_prog; ac_word=$2 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10406 $as_echo_n "checking for $ac_word... " >&6; } 10407 if ${ac_cv_path_RM+:} false; then : 10408 $as_echo_n "(cached) " >&6 10409 else 10410 case $RM in 10411 [\\/]* | ?:[\\/]*) 10412 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10413 ;; 10414 *) 10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10416 for as_dir in $PATH 10417 do 10418 IFS=$as_save_IFS 10419 test -z "$as_dir" && as_dir=. 10420 for ac_exec_ext in '' $ac_executable_extensions; do 10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10422 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10424 break 2 10425 fi 10426 done 10427 done 10428 IFS=$as_save_IFS 10429 10430 ;; 10431 esac 10432 fi 10433 RM=$ac_cv_path_RM 10434 if test -n "$RM"; then 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10436 $as_echo "$RM" >&6; } 10437 else 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10439 $as_echo "no" >&6; } 10440 fi 10441 10442 10443 test -n "$RM" && break 10444 done 10445 10446 else 10447 # If it succeeded, then it was overridden by the user. We will use it 10448 # for the tool. 10449 10450 # First remove it from the list of overridden variables, so we can test 10451 # for unknown variables in the end. 10452 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10453 10454 # Check if we try to supply an empty value 10455 if test "x$RM" = x; then 10456 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10457 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10459 $as_echo_n "checking for RM... " >&6; } 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10461 $as_echo "disabled" >&6; } 10462 else 10463 # Check if the provided tool contains a complete path. 10464 tool_specified="$RM" 10465 tool_basename="${tool_specified##*/}" 10466 if test "x$tool_basename" = "x$tool_specified"; then 10467 # A command without a complete path is provided, search $PATH. 10468 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10469 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10470 # Extract the first word of "$tool_basename", so it can be a program name with args. 10471 set dummy $tool_basename; ac_word=$2 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10473 $as_echo_n "checking for $ac_word... " >&6; } 10474 if ${ac_cv_path_RM+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476 else 10477 case $RM in 10478 [\\/]* | ?:[\\/]*) 10479 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10480 ;; 10481 *) 10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10483 for as_dir in $PATH 10484 do 10485 IFS=$as_save_IFS 10486 test -z "$as_dir" && as_dir=. 10487 for ac_exec_ext in '' $ac_executable_extensions; do 10488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10489 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10491 break 2 10492 fi 10493 done 10494 done 10495 IFS=$as_save_IFS 10496 10497 ;; 10498 esac 10499 fi 10500 RM=$ac_cv_path_RM 10501 if test -n "$RM"; then 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10503 $as_echo "$RM" >&6; } 10504 else 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10506 $as_echo "no" >&6; } 10507 fi 10508 10509 10510 if test "x$RM" = x; then 10511 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10512 fi 10513 else 10514 # Otherwise we believe it is a complete path. Use it as it is. 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10516 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10518 $as_echo_n "checking for RM... " >&6; } 10519 if test ! -x "$tool_specified"; then 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10521 $as_echo "not found" >&6; } 10522 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10523 fi 10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10525 $as_echo "$tool_specified" >&6; } 10526 fi 10527 fi 10528 fi 10529 10530 fi 10531 10532 10533 10534 if test "x$RM" = x; then 10535 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10536 fi 10537 10538 10539 10540 10541 10542 # Publish this variable in the help. 10543 10544 10545 if [ -z "${RMDIR+x}" ]; then 10546 # The variable is not set by user, try to locate tool using the code snippet 10547 for ac_prog in rmdir 10548 do 10549 # Extract the first word of "$ac_prog", so it can be a program name with args. 10550 set dummy $ac_prog; ac_word=$2 10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10552 $as_echo_n "checking for $ac_word... " >&6; } 10553 if ${ac_cv_path_RMDIR+:} false; then : 10554 $as_echo_n "(cached) " >&6 10555 else 10556 case $RMDIR in 10557 [\\/]* | ?:[\\/]*) 10558 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10559 ;; 10560 *) 10561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10562 for as_dir in $PATH 10563 do 10564 IFS=$as_save_IFS 10565 test -z "$as_dir" && as_dir=. 10566 for ac_exec_ext in '' $ac_executable_extensions; do 10567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10568 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10570 break 2 10571 fi 10572 done 10573 done 10574 IFS=$as_save_IFS 10575 10576 ;; 10577 esac 10578 fi 10579 RMDIR=$ac_cv_path_RMDIR 10580 if test -n "$RMDIR"; then 10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10582 $as_echo "$RMDIR" >&6; } 10583 else 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10585 $as_echo "no" >&6; } 10586 fi 10587 10588 10589 test -n "$RMDIR" && break 10590 done 10591 10592 else 10593 # The variable is set, but is it from the command line or the environment? 10594 10595 # Try to remove the string !RMDIR! from our list. 10596 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10597 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10598 # If it failed, the variable was not from the command line. Ignore it, 10599 # but warn the user (except for BASH, which is always set by the calling BASH). 10600 if test "xRMDIR" != xBASH; then 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10602 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10603 fi 10604 # Try to locate tool using the code snippet 10605 for ac_prog in rmdir 10606 do 10607 # Extract the first word of "$ac_prog", so it can be a program name with args. 10608 set dummy $ac_prog; ac_word=$2 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10610 $as_echo_n "checking for $ac_word... " >&6; } 10611 if ${ac_cv_path_RMDIR+:} false; then : 10612 $as_echo_n "(cached) " >&6 10613 else 10614 case $RMDIR in 10615 [\\/]* | ?:[\\/]*) 10616 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10617 ;; 10618 *) 10619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10620 for as_dir in $PATH 10621 do 10622 IFS=$as_save_IFS 10623 test -z "$as_dir" && as_dir=. 10624 for ac_exec_ext in '' $ac_executable_extensions; do 10625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10626 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10628 break 2 10629 fi 10630 done 10631 done 10632 IFS=$as_save_IFS 10633 10634 ;; 10635 esac 10636 fi 10637 RMDIR=$ac_cv_path_RMDIR 10638 if test -n "$RMDIR"; then 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10640 $as_echo "$RMDIR" >&6; } 10641 else 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10643 $as_echo "no" >&6; } 10644 fi 10645 10646 10647 test -n "$RMDIR" && break 10648 done 10649 10650 else 10651 # If it succeeded, then it was overridden by the user. We will use it 10652 # for the tool. 10653 10654 # First remove it from the list of overridden variables, so we can test 10655 # for unknown variables in the end. 10656 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10657 10658 # Check if we try to supply an empty value 10659 if test "x$RMDIR" = x; then 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10661 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10663 $as_echo_n "checking for RMDIR... " >&6; } 10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10665 $as_echo "disabled" >&6; } 10666 else 10667 # Check if the provided tool contains a complete path. 10668 tool_specified="$RMDIR" 10669 tool_basename="${tool_specified##*/}" 10670 if test "x$tool_basename" = "x$tool_specified"; then 10671 # A command without a complete path is provided, search $PATH. 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10673 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10674 # Extract the first word of "$tool_basename", so it can be a program name with args. 10675 set dummy $tool_basename; ac_word=$2 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10677 $as_echo_n "checking for $ac_word... " >&6; } 10678 if ${ac_cv_path_RMDIR+:} false; then : 10679 $as_echo_n "(cached) " >&6 10680 else 10681 case $RMDIR in 10682 [\\/]* | ?:[\\/]*) 10683 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10684 ;; 10685 *) 10686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10687 for as_dir in $PATH 10688 do 10689 IFS=$as_save_IFS 10690 test -z "$as_dir" && as_dir=. 10691 for ac_exec_ext in '' $ac_executable_extensions; do 10692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10693 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10695 break 2 10696 fi 10697 done 10698 done 10699 IFS=$as_save_IFS 10700 10701 ;; 10702 esac 10703 fi 10704 RMDIR=$ac_cv_path_RMDIR 10705 if test -n "$RMDIR"; then 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10707 $as_echo "$RMDIR" >&6; } 10708 else 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10710 $as_echo "no" >&6; } 10711 fi 10712 10713 10714 if test "x$RMDIR" = x; then 10715 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10716 fi 10717 else 10718 # Otherwise we believe it is a complete path. Use it as it is. 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10720 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10722 $as_echo_n "checking for RMDIR... " >&6; } 10723 if test ! -x "$tool_specified"; then 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10725 $as_echo "not found" >&6; } 10726 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10727 fi 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10729 $as_echo "$tool_specified" >&6; } 10730 fi 10731 fi 10732 fi 10733 10734 fi 10735 10736 10737 10738 if test "x$RMDIR" = x; then 10739 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10740 fi 10741 10742 10743 10744 10745 10746 # Publish this variable in the help. 10747 10748 10749 if [ -z "${SH+x}" ]; then 10750 # The variable is not set by user, try to locate tool using the code snippet 10751 for ac_prog in sh 10752 do 10753 # Extract the first word of "$ac_prog", so it can be a program name with args. 10754 set dummy $ac_prog; ac_word=$2 10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10756 $as_echo_n "checking for $ac_word... " >&6; } 10757 if ${ac_cv_path_SH+:} false; then : 10758 $as_echo_n "(cached) " >&6 10759 else 10760 case $SH in 10761 [\\/]* | ?:[\\/]*) 10762 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10763 ;; 10764 *) 10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10766 for as_dir in $PATH 10767 do 10768 IFS=$as_save_IFS 10769 test -z "$as_dir" && as_dir=. 10770 for ac_exec_ext in '' $ac_executable_extensions; do 10771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10772 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10774 break 2 10775 fi 10776 done 10777 done 10778 IFS=$as_save_IFS 10779 10780 ;; 10781 esac 10782 fi 10783 SH=$ac_cv_path_SH 10784 if test -n "$SH"; then 10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10786 $as_echo "$SH" >&6; } 10787 else 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10789 $as_echo "no" >&6; } 10790 fi 10791 10792 10793 test -n "$SH" && break 10794 done 10795 10796 else 10797 # The variable is set, but is it from the command line or the environment? 10798 10799 # Try to remove the string !SH! from our list. 10800 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10801 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10802 # If it failed, the variable was not from the command line. Ignore it, 10803 # but warn the user (except for BASH, which is always set by the calling BASH). 10804 if test "xSH" != xBASH; then 10805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10806 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10807 fi 10808 # Try to locate tool using the code snippet 10809 for ac_prog in sh 10810 do 10811 # Extract the first word of "$ac_prog", so it can be a program name with args. 10812 set dummy $ac_prog; ac_word=$2 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10814 $as_echo_n "checking for $ac_word... " >&6; } 10815 if ${ac_cv_path_SH+:} false; then : 10816 $as_echo_n "(cached) " >&6 10817 else 10818 case $SH in 10819 [\\/]* | ?:[\\/]*) 10820 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10821 ;; 10822 *) 10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10824 for as_dir in $PATH 10825 do 10826 IFS=$as_save_IFS 10827 test -z "$as_dir" && as_dir=. 10828 for ac_exec_ext in '' $ac_executable_extensions; do 10829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10830 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10832 break 2 10833 fi 10834 done 10835 done 10836 IFS=$as_save_IFS 10837 10838 ;; 10839 esac 10840 fi 10841 SH=$ac_cv_path_SH 10842 if test -n "$SH"; then 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10844 $as_echo "$SH" >&6; } 10845 else 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10847 $as_echo "no" >&6; } 10848 fi 10849 10850 10851 test -n "$SH" && break 10852 done 10853 10854 else 10855 # If it succeeded, then it was overridden by the user. We will use it 10856 # for the tool. 10857 10858 # First remove it from the list of overridden variables, so we can test 10859 # for unknown variables in the end. 10860 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10861 10862 # Check if we try to supply an empty value 10863 if test "x$SH" = x; then 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10865 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10867 $as_echo_n "checking for SH... " >&6; } 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10869 $as_echo "disabled" >&6; } 10870 else 10871 # Check if the provided tool contains a complete path. 10872 tool_specified="$SH" 10873 tool_basename="${tool_specified##*/}" 10874 if test "x$tool_basename" = "x$tool_specified"; then 10875 # A command without a complete path is provided, search $PATH. 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10877 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10878 # Extract the first word of "$tool_basename", so it can be a program name with args. 10879 set dummy $tool_basename; ac_word=$2 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10881 $as_echo_n "checking for $ac_word... " >&6; } 10882 if ${ac_cv_path_SH+:} false; then : 10883 $as_echo_n "(cached) " >&6 10884 else 10885 case $SH in 10886 [\\/]* | ?:[\\/]*) 10887 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10888 ;; 10889 *) 10890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10891 for as_dir in $PATH 10892 do 10893 IFS=$as_save_IFS 10894 test -z "$as_dir" && as_dir=. 10895 for ac_exec_ext in '' $ac_executable_extensions; do 10896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10897 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10899 break 2 10900 fi 10901 done 10902 done 10903 IFS=$as_save_IFS 10904 10905 ;; 10906 esac 10907 fi 10908 SH=$ac_cv_path_SH 10909 if test -n "$SH"; then 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10911 $as_echo "$SH" >&6; } 10912 else 10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10914 $as_echo "no" >&6; } 10915 fi 10916 10917 10918 if test "x$SH" = x; then 10919 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10920 fi 10921 else 10922 # Otherwise we believe it is a complete path. Use it as it is. 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10924 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10926 $as_echo_n "checking for SH... " >&6; } 10927 if test ! -x "$tool_specified"; then 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10929 $as_echo "not found" >&6; } 10930 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10931 fi 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10933 $as_echo "$tool_specified" >&6; } 10934 fi 10935 fi 10936 fi 10937 10938 fi 10939 10940 10941 10942 if test "x$SH" = x; then 10943 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10944 fi 10945 10946 10947 10948 10949 10950 # Publish this variable in the help. 10951 10952 10953 if [ -z "${SORT+x}" ]; then 10954 # The variable is not set by user, try to locate tool using the code snippet 10955 for ac_prog in sort 10956 do 10957 # Extract the first word of "$ac_prog", so it can be a program name with args. 10958 set dummy $ac_prog; ac_word=$2 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10960 $as_echo_n "checking for $ac_word... " >&6; } 10961 if ${ac_cv_path_SORT+:} false; then : 10962 $as_echo_n "(cached) " >&6 10963 else 10964 case $SORT in 10965 [\\/]* | ?:[\\/]*) 10966 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10967 ;; 10968 *) 10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10970 for as_dir in $PATH 10971 do 10972 IFS=$as_save_IFS 10973 test -z "$as_dir" && as_dir=. 10974 for ac_exec_ext in '' $ac_executable_extensions; do 10975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10976 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10978 break 2 10979 fi 10980 done 10981 done 10982 IFS=$as_save_IFS 10983 10984 ;; 10985 esac 10986 fi 10987 SORT=$ac_cv_path_SORT 10988 if test -n "$SORT"; then 10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10990 $as_echo "$SORT" >&6; } 10991 else 10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10993 $as_echo "no" >&6; } 10994 fi 10995 10996 10997 test -n "$SORT" && break 10998 done 10999 11000 else 11001 # The variable is set, but is it from the command line or the environment? 11002 11003 # Try to remove the string !SORT! from our list. 11004 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 11005 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11006 # If it failed, the variable was not from the command line. Ignore it, 11007 # but warn the user (except for BASH, which is always set by the calling BASH). 11008 if test "xSORT" != xBASH; then 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 11010 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 11011 fi 11012 # Try to locate tool using the code snippet 11013 for ac_prog in sort 11014 do 11015 # Extract the first word of "$ac_prog", so it can be a program name with args. 11016 set dummy $ac_prog; ac_word=$2 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11018 $as_echo_n "checking for $ac_word... " >&6; } 11019 if ${ac_cv_path_SORT+:} false; then : 11020 $as_echo_n "(cached) " >&6 11021 else 11022 case $SORT in 11023 [\\/]* | ?:[\\/]*) 11024 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11025 ;; 11026 *) 11027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11028 for as_dir in $PATH 11029 do 11030 IFS=$as_save_IFS 11031 test -z "$as_dir" && as_dir=. 11032 for ac_exec_ext in '' $ac_executable_extensions; do 11033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11034 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11036 break 2 11037 fi 11038 done 11039 done 11040 IFS=$as_save_IFS 11041 11042 ;; 11043 esac 11044 fi 11045 SORT=$ac_cv_path_SORT 11046 if test -n "$SORT"; then 11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11048 $as_echo "$SORT" >&6; } 11049 else 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11051 $as_echo "no" >&6; } 11052 fi 11053 11054 11055 test -n "$SORT" && break 11056 done 11057 11058 else 11059 # If it succeeded, then it was overridden by the user. We will use it 11060 # for the tool. 11061 11062 # First remove it from the list of overridden variables, so we can test 11063 # for unknown variables in the end. 11064 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11065 11066 # Check if we try to supply an empty value 11067 if test "x$SORT" = x; then 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11069 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11071 $as_echo_n "checking for SORT... " >&6; } 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11073 $as_echo "disabled" >&6; } 11074 else 11075 # Check if the provided tool contains a complete path. 11076 tool_specified="$SORT" 11077 tool_basename="${tool_specified##*/}" 11078 if test "x$tool_basename" = "x$tool_specified"; then 11079 # A command without a complete path is provided, search $PATH. 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11081 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11082 # Extract the first word of "$tool_basename", so it can be a program name with args. 11083 set dummy $tool_basename; ac_word=$2 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11085 $as_echo_n "checking for $ac_word... " >&6; } 11086 if ${ac_cv_path_SORT+:} false; then : 11087 $as_echo_n "(cached) " >&6 11088 else 11089 case $SORT in 11090 [\\/]* | ?:[\\/]*) 11091 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11092 ;; 11093 *) 11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11095 for as_dir in $PATH 11096 do 11097 IFS=$as_save_IFS 11098 test -z "$as_dir" && as_dir=. 11099 for ac_exec_ext in '' $ac_executable_extensions; do 11100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11101 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11103 break 2 11104 fi 11105 done 11106 done 11107 IFS=$as_save_IFS 11108 11109 ;; 11110 esac 11111 fi 11112 SORT=$ac_cv_path_SORT 11113 if test -n "$SORT"; then 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11115 $as_echo "$SORT" >&6; } 11116 else 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11118 $as_echo "no" >&6; } 11119 fi 11120 11121 11122 if test "x$SORT" = x; then 11123 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11124 fi 11125 else 11126 # Otherwise we believe it is a complete path. Use it as it is. 11127 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11128 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11130 $as_echo_n "checking for SORT... " >&6; } 11131 if test ! -x "$tool_specified"; then 11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11133 $as_echo "not found" >&6; } 11134 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11135 fi 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11137 $as_echo "$tool_specified" >&6; } 11138 fi 11139 fi 11140 fi 11141 11142 fi 11143 11144 11145 11146 if test "x$SORT" = x; then 11147 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11148 fi 11149 11150 11151 11152 11153 11154 # Publish this variable in the help. 11155 11156 11157 if [ -z "${TAIL+x}" ]; then 11158 # The variable is not set by user, try to locate tool using the code snippet 11159 for ac_prog in tail 11160 do 11161 # Extract the first word of "$ac_prog", so it can be a program name with args. 11162 set dummy $ac_prog; ac_word=$2 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11164 $as_echo_n "checking for $ac_word... " >&6; } 11165 if ${ac_cv_path_TAIL+:} false; then : 11166 $as_echo_n "(cached) " >&6 11167 else 11168 case $TAIL in 11169 [\\/]* | ?:[\\/]*) 11170 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11171 ;; 11172 *) 11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11174 for as_dir in $PATH 11175 do 11176 IFS=$as_save_IFS 11177 test -z "$as_dir" && as_dir=. 11178 for ac_exec_ext in '' $ac_executable_extensions; do 11179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11180 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11182 break 2 11183 fi 11184 done 11185 done 11186 IFS=$as_save_IFS 11187 11188 ;; 11189 esac 11190 fi 11191 TAIL=$ac_cv_path_TAIL 11192 if test -n "$TAIL"; then 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11194 $as_echo "$TAIL" >&6; } 11195 else 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11197 $as_echo "no" >&6; } 11198 fi 11199 11200 11201 test -n "$TAIL" && break 11202 done 11203 11204 else 11205 # The variable is set, but is it from the command line or the environment? 11206 11207 # Try to remove the string !TAIL! from our list. 11208 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11209 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11210 # If it failed, the variable was not from the command line. Ignore it, 11211 # but warn the user (except for BASH, which is always set by the calling BASH). 11212 if test "xTAIL" != xBASH; then 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11214 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11215 fi 11216 # Try to locate tool using the code snippet 11217 for ac_prog in tail 11218 do 11219 # Extract the first word of "$ac_prog", so it can be a program name with args. 11220 set dummy $ac_prog; ac_word=$2 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11222 $as_echo_n "checking for $ac_word... " >&6; } 11223 if ${ac_cv_path_TAIL+:} false; then : 11224 $as_echo_n "(cached) " >&6 11225 else 11226 case $TAIL in 11227 [\\/]* | ?:[\\/]*) 11228 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11229 ;; 11230 *) 11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11232 for as_dir in $PATH 11233 do 11234 IFS=$as_save_IFS 11235 test -z "$as_dir" && as_dir=. 11236 for ac_exec_ext in '' $ac_executable_extensions; do 11237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11238 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11240 break 2 11241 fi 11242 done 11243 done 11244 IFS=$as_save_IFS 11245 11246 ;; 11247 esac 11248 fi 11249 TAIL=$ac_cv_path_TAIL 11250 if test -n "$TAIL"; then 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11252 $as_echo "$TAIL" >&6; } 11253 else 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11255 $as_echo "no" >&6; } 11256 fi 11257 11258 11259 test -n "$TAIL" && break 11260 done 11261 11262 else 11263 # If it succeeded, then it was overridden by the user. We will use it 11264 # for the tool. 11265 11266 # First remove it from the list of overridden variables, so we can test 11267 # for unknown variables in the end. 11268 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11269 11270 # Check if we try to supply an empty value 11271 if test "x$TAIL" = x; then 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11273 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11275 $as_echo_n "checking for TAIL... " >&6; } 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11277 $as_echo "disabled" >&6; } 11278 else 11279 # Check if the provided tool contains a complete path. 11280 tool_specified="$TAIL" 11281 tool_basename="${tool_specified##*/}" 11282 if test "x$tool_basename" = "x$tool_specified"; then 11283 # A command without a complete path is provided, search $PATH. 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11285 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11286 # Extract the first word of "$tool_basename", so it can be a program name with args. 11287 set dummy $tool_basename; ac_word=$2 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11289 $as_echo_n "checking for $ac_word... " >&6; } 11290 if ${ac_cv_path_TAIL+:} false; then : 11291 $as_echo_n "(cached) " >&6 11292 else 11293 case $TAIL in 11294 [\\/]* | ?:[\\/]*) 11295 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11296 ;; 11297 *) 11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11299 for as_dir in $PATH 11300 do 11301 IFS=$as_save_IFS 11302 test -z "$as_dir" && as_dir=. 11303 for ac_exec_ext in '' $ac_executable_extensions; do 11304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11305 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11307 break 2 11308 fi 11309 done 11310 done 11311 IFS=$as_save_IFS 11312 11313 ;; 11314 esac 11315 fi 11316 TAIL=$ac_cv_path_TAIL 11317 if test -n "$TAIL"; then 11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11319 $as_echo "$TAIL" >&6; } 11320 else 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11322 $as_echo "no" >&6; } 11323 fi 11324 11325 11326 if test "x$TAIL" = x; then 11327 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11328 fi 11329 else 11330 # Otherwise we believe it is a complete path. Use it as it is. 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11332 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11334 $as_echo_n "checking for TAIL... " >&6; } 11335 if test ! -x "$tool_specified"; then 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11337 $as_echo "not found" >&6; } 11338 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11339 fi 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11341 $as_echo "$tool_specified" >&6; } 11342 fi 11343 fi 11344 fi 11345 11346 fi 11347 11348 11349 11350 if test "x$TAIL" = x; then 11351 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11352 fi 11353 11354 11355 11356 11357 11358 # Publish this variable in the help. 11359 11360 11361 if [ -z "${TAR+x}" ]; then 11362 # The variable is not set by user, try to locate tool using the code snippet 11363 for ac_prog in gtar tar 11364 do 11365 # Extract the first word of "$ac_prog", so it can be a program name with args. 11366 set dummy $ac_prog; ac_word=$2 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11368 $as_echo_n "checking for $ac_word... " >&6; } 11369 if ${ac_cv_path_TAR+:} false; then : 11370 $as_echo_n "(cached) " >&6 11371 else 11372 case $TAR in 11373 [\\/]* | ?:[\\/]*) 11374 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11375 ;; 11376 *) 11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11378 for as_dir in $PATH 11379 do 11380 IFS=$as_save_IFS 11381 test -z "$as_dir" && as_dir=. 11382 for ac_exec_ext in '' $ac_executable_extensions; do 11383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11384 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11386 break 2 11387 fi 11388 done 11389 done 11390 IFS=$as_save_IFS 11391 11392 ;; 11393 esac 11394 fi 11395 TAR=$ac_cv_path_TAR 11396 if test -n "$TAR"; then 11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11398 $as_echo "$TAR" >&6; } 11399 else 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11401 $as_echo "no" >&6; } 11402 fi 11403 11404 11405 test -n "$TAR" && break 11406 done 11407 11408 else 11409 # The variable is set, but is it from the command line or the environment? 11410 11411 # Try to remove the string !TAR! from our list. 11412 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11413 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11414 # If it failed, the variable was not from the command line. Ignore it, 11415 # but warn the user (except for BASH, which is always set by the calling BASH). 11416 if test "xTAR" != xBASH; then 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11418 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11419 fi 11420 # Try to locate tool using the code snippet 11421 for ac_prog in gtar tar 11422 do 11423 # Extract the first word of "$ac_prog", so it can be a program name with args. 11424 set dummy $ac_prog; ac_word=$2 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11426 $as_echo_n "checking for $ac_word... " >&6; } 11427 if ${ac_cv_path_TAR+:} false; then : 11428 $as_echo_n "(cached) " >&6 11429 else 11430 case $TAR in 11431 [\\/]* | ?:[\\/]*) 11432 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11433 ;; 11434 *) 11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11436 for as_dir in $PATH 11437 do 11438 IFS=$as_save_IFS 11439 test -z "$as_dir" && as_dir=. 11440 for ac_exec_ext in '' $ac_executable_extensions; do 11441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11442 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11444 break 2 11445 fi 11446 done 11447 done 11448 IFS=$as_save_IFS 11449 11450 ;; 11451 esac 11452 fi 11453 TAR=$ac_cv_path_TAR 11454 if test -n "$TAR"; then 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11456 $as_echo "$TAR" >&6; } 11457 else 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11459 $as_echo "no" >&6; } 11460 fi 11461 11462 11463 test -n "$TAR" && break 11464 done 11465 11466 else 11467 # If it succeeded, then it was overridden by the user. We will use it 11468 # for the tool. 11469 11470 # First remove it from the list of overridden variables, so we can test 11471 # for unknown variables in the end. 11472 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11473 11474 # Check if we try to supply an empty value 11475 if test "x$TAR" = x; then 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11477 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11479 $as_echo_n "checking for TAR... " >&6; } 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11481 $as_echo "disabled" >&6; } 11482 else 11483 # Check if the provided tool contains a complete path. 11484 tool_specified="$TAR" 11485 tool_basename="${tool_specified##*/}" 11486 if test "x$tool_basename" = "x$tool_specified"; then 11487 # A command without a complete path is provided, search $PATH. 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11489 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11490 # Extract the first word of "$tool_basename", so it can be a program name with args. 11491 set dummy $tool_basename; ac_word=$2 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11493 $as_echo_n "checking for $ac_word... " >&6; } 11494 if ${ac_cv_path_TAR+:} false; then : 11495 $as_echo_n "(cached) " >&6 11496 else 11497 case $TAR in 11498 [\\/]* | ?:[\\/]*) 11499 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11500 ;; 11501 *) 11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11503 for as_dir in $PATH 11504 do 11505 IFS=$as_save_IFS 11506 test -z "$as_dir" && as_dir=. 11507 for ac_exec_ext in '' $ac_executable_extensions; do 11508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11509 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11511 break 2 11512 fi 11513 done 11514 done 11515 IFS=$as_save_IFS 11516 11517 ;; 11518 esac 11519 fi 11520 TAR=$ac_cv_path_TAR 11521 if test -n "$TAR"; then 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11523 $as_echo "$TAR" >&6; } 11524 else 11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11526 $as_echo "no" >&6; } 11527 fi 11528 11529 11530 if test "x$TAR" = x; then 11531 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11532 fi 11533 else 11534 # Otherwise we believe it is a complete path. Use it as it is. 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11536 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11538 $as_echo_n "checking for TAR... " >&6; } 11539 if test ! -x "$tool_specified"; then 11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11541 $as_echo "not found" >&6; } 11542 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11543 fi 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11545 $as_echo "$tool_specified" >&6; } 11546 fi 11547 fi 11548 fi 11549 11550 fi 11551 11552 11553 11554 if test "x$TAR" = x; then 11555 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11556 fi 11557 11558 11559 11560 11561 11562 # Publish this variable in the help. 11563 11564 11565 if [ -z "${TEE+x}" ]; then 11566 # The variable is not set by user, try to locate tool using the code snippet 11567 for ac_prog in tee 11568 do 11569 # Extract the first word of "$ac_prog", so it can be a program name with args. 11570 set dummy $ac_prog; ac_word=$2 11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11572 $as_echo_n "checking for $ac_word... " >&6; } 11573 if ${ac_cv_path_TEE+:} false; then : 11574 $as_echo_n "(cached) " >&6 11575 else 11576 case $TEE in 11577 [\\/]* | ?:[\\/]*) 11578 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11579 ;; 11580 *) 11581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11582 for as_dir in $PATH 11583 do 11584 IFS=$as_save_IFS 11585 test -z "$as_dir" && as_dir=. 11586 for ac_exec_ext in '' $ac_executable_extensions; do 11587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11588 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11590 break 2 11591 fi 11592 done 11593 done 11594 IFS=$as_save_IFS 11595 11596 ;; 11597 esac 11598 fi 11599 TEE=$ac_cv_path_TEE 11600 if test -n "$TEE"; then 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11602 $as_echo "$TEE" >&6; } 11603 else 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11605 $as_echo "no" >&6; } 11606 fi 11607 11608 11609 test -n "$TEE" && break 11610 done 11611 11612 else 11613 # The variable is set, but is it from the command line or the environment? 11614 11615 # Try to remove the string !TEE! from our list. 11616 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11617 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11618 # If it failed, the variable was not from the command line. Ignore it, 11619 # but warn the user (except for BASH, which is always set by the calling BASH). 11620 if test "xTEE" != xBASH; then 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11622 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11623 fi 11624 # Try to locate tool using the code snippet 11625 for ac_prog in tee 11626 do 11627 # Extract the first word of "$ac_prog", so it can be a program name with args. 11628 set dummy $ac_prog; ac_word=$2 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11630 $as_echo_n "checking for $ac_word... " >&6; } 11631 if ${ac_cv_path_TEE+:} false; then : 11632 $as_echo_n "(cached) " >&6 11633 else 11634 case $TEE in 11635 [\\/]* | ?:[\\/]*) 11636 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11637 ;; 11638 *) 11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11640 for as_dir in $PATH 11641 do 11642 IFS=$as_save_IFS 11643 test -z "$as_dir" && as_dir=. 11644 for ac_exec_ext in '' $ac_executable_extensions; do 11645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11646 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11648 break 2 11649 fi 11650 done 11651 done 11652 IFS=$as_save_IFS 11653 11654 ;; 11655 esac 11656 fi 11657 TEE=$ac_cv_path_TEE 11658 if test -n "$TEE"; then 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11660 $as_echo "$TEE" >&6; } 11661 else 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11663 $as_echo "no" >&6; } 11664 fi 11665 11666 11667 test -n "$TEE" && break 11668 done 11669 11670 else 11671 # If it succeeded, then it was overridden by the user. We will use it 11672 # for the tool. 11673 11674 # First remove it from the list of overridden variables, so we can test 11675 # for unknown variables in the end. 11676 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11677 11678 # Check if we try to supply an empty value 11679 if test "x$TEE" = x; then 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11681 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11683 $as_echo_n "checking for TEE... " >&6; } 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11685 $as_echo "disabled" >&6; } 11686 else 11687 # Check if the provided tool contains a complete path. 11688 tool_specified="$TEE" 11689 tool_basename="${tool_specified##*/}" 11690 if test "x$tool_basename" = "x$tool_specified"; then 11691 # A command without a complete path is provided, search $PATH. 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11693 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11694 # Extract the first word of "$tool_basename", so it can be a program name with args. 11695 set dummy $tool_basename; ac_word=$2 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11697 $as_echo_n "checking for $ac_word... " >&6; } 11698 if ${ac_cv_path_TEE+:} false; then : 11699 $as_echo_n "(cached) " >&6 11700 else 11701 case $TEE in 11702 [\\/]* | ?:[\\/]*) 11703 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11704 ;; 11705 *) 11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11707 for as_dir in $PATH 11708 do 11709 IFS=$as_save_IFS 11710 test -z "$as_dir" && as_dir=. 11711 for ac_exec_ext in '' $ac_executable_extensions; do 11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11713 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11715 break 2 11716 fi 11717 done 11718 done 11719 IFS=$as_save_IFS 11720 11721 ;; 11722 esac 11723 fi 11724 TEE=$ac_cv_path_TEE 11725 if test -n "$TEE"; then 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11727 $as_echo "$TEE" >&6; } 11728 else 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11730 $as_echo "no" >&6; } 11731 fi 11732 11733 11734 if test "x$TEE" = x; then 11735 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11736 fi 11737 else 11738 # Otherwise we believe it is a complete path. Use it as it is. 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11740 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11742 $as_echo_n "checking for TEE... " >&6; } 11743 if test ! -x "$tool_specified"; then 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11745 $as_echo "not found" >&6; } 11746 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11747 fi 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11749 $as_echo "$tool_specified" >&6; } 11750 fi 11751 fi 11752 fi 11753 11754 fi 11755 11756 11757 11758 if test "x$TEE" = x; then 11759 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11760 fi 11761 11762 11763 11764 11765 11766 # Publish this variable in the help. 11767 11768 11769 if [ -z "${TOUCH+x}" ]; then 11770 # The variable is not set by user, try to locate tool using the code snippet 11771 for ac_prog in touch 11772 do 11773 # Extract the first word of "$ac_prog", so it can be a program name with args. 11774 set dummy $ac_prog; ac_word=$2 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11776 $as_echo_n "checking for $ac_word... " >&6; } 11777 if ${ac_cv_path_TOUCH+:} false; then : 11778 $as_echo_n "(cached) " >&6 11779 else 11780 case $TOUCH in 11781 [\\/]* | ?:[\\/]*) 11782 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11783 ;; 11784 *) 11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11786 for as_dir in $PATH 11787 do 11788 IFS=$as_save_IFS 11789 test -z "$as_dir" && as_dir=. 11790 for ac_exec_ext in '' $ac_executable_extensions; do 11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11792 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11794 break 2 11795 fi 11796 done 11797 done 11798 IFS=$as_save_IFS 11799 11800 ;; 11801 esac 11802 fi 11803 TOUCH=$ac_cv_path_TOUCH 11804 if test -n "$TOUCH"; then 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11806 $as_echo "$TOUCH" >&6; } 11807 else 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11809 $as_echo "no" >&6; } 11810 fi 11811 11812 11813 test -n "$TOUCH" && break 11814 done 11815 11816 else 11817 # The variable is set, but is it from the command line or the environment? 11818 11819 # Try to remove the string !TOUCH! from our list. 11820 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11821 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11822 # If it failed, the variable was not from the command line. Ignore it, 11823 # but warn the user (except for BASH, which is always set by the calling BASH). 11824 if test "xTOUCH" != xBASH; then 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11826 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11827 fi 11828 # Try to locate tool using the code snippet 11829 for ac_prog in touch 11830 do 11831 # Extract the first word of "$ac_prog", so it can be a program name with args. 11832 set dummy $ac_prog; ac_word=$2 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11834 $as_echo_n "checking for $ac_word... " >&6; } 11835 if ${ac_cv_path_TOUCH+:} false; then : 11836 $as_echo_n "(cached) " >&6 11837 else 11838 case $TOUCH in 11839 [\\/]* | ?:[\\/]*) 11840 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11841 ;; 11842 *) 11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11844 for as_dir in $PATH 11845 do 11846 IFS=$as_save_IFS 11847 test -z "$as_dir" && as_dir=. 11848 for ac_exec_ext in '' $ac_executable_extensions; do 11849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11850 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11852 break 2 11853 fi 11854 done 11855 done 11856 IFS=$as_save_IFS 11857 11858 ;; 11859 esac 11860 fi 11861 TOUCH=$ac_cv_path_TOUCH 11862 if test -n "$TOUCH"; then 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11864 $as_echo "$TOUCH" >&6; } 11865 else 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11867 $as_echo "no" >&6; } 11868 fi 11869 11870 11871 test -n "$TOUCH" && break 11872 done 11873 11874 else 11875 # If it succeeded, then it was overridden by the user. We will use it 11876 # for the tool. 11877 11878 # First remove it from the list of overridden variables, so we can test 11879 # for unknown variables in the end. 11880 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11881 11882 # Check if we try to supply an empty value 11883 if test "x$TOUCH" = x; then 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11885 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11887 $as_echo_n "checking for TOUCH... " >&6; } 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11889 $as_echo "disabled" >&6; } 11890 else 11891 # Check if the provided tool contains a complete path. 11892 tool_specified="$TOUCH" 11893 tool_basename="${tool_specified##*/}" 11894 if test "x$tool_basename" = "x$tool_specified"; then 11895 # A command without a complete path is provided, search $PATH. 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11897 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11898 # Extract the first word of "$tool_basename", so it can be a program name with args. 11899 set dummy $tool_basename; ac_word=$2 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11901 $as_echo_n "checking for $ac_word... " >&6; } 11902 if ${ac_cv_path_TOUCH+:} false; then : 11903 $as_echo_n "(cached) " >&6 11904 else 11905 case $TOUCH in 11906 [\\/]* | ?:[\\/]*) 11907 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11908 ;; 11909 *) 11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11911 for as_dir in $PATH 11912 do 11913 IFS=$as_save_IFS 11914 test -z "$as_dir" && as_dir=. 11915 for ac_exec_ext in '' $ac_executable_extensions; do 11916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11917 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11919 break 2 11920 fi 11921 done 11922 done 11923 IFS=$as_save_IFS 11924 11925 ;; 11926 esac 11927 fi 11928 TOUCH=$ac_cv_path_TOUCH 11929 if test -n "$TOUCH"; then 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11931 $as_echo "$TOUCH" >&6; } 11932 else 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11934 $as_echo "no" >&6; } 11935 fi 11936 11937 11938 if test "x$TOUCH" = x; then 11939 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11940 fi 11941 else 11942 # Otherwise we believe it is a complete path. Use it as it is. 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11944 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11946 $as_echo_n "checking for TOUCH... " >&6; } 11947 if test ! -x "$tool_specified"; then 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11949 $as_echo "not found" >&6; } 11950 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11951 fi 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11953 $as_echo "$tool_specified" >&6; } 11954 fi 11955 fi 11956 fi 11957 11958 fi 11959 11960 11961 11962 if test "x$TOUCH" = x; then 11963 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11964 fi 11965 11966 11967 11968 11969 11970 # Publish this variable in the help. 11971 11972 11973 if [ -z "${TR+x}" ]; then 11974 # The variable is not set by user, try to locate tool using the code snippet 11975 for ac_prog in tr 11976 do 11977 # Extract the first word of "$ac_prog", so it can be a program name with args. 11978 set dummy $ac_prog; ac_word=$2 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11980 $as_echo_n "checking for $ac_word... " >&6; } 11981 if ${ac_cv_path_TR+:} false; then : 11982 $as_echo_n "(cached) " >&6 11983 else 11984 case $TR in 11985 [\\/]* | ?:[\\/]*) 11986 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11987 ;; 11988 *) 11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11990 for as_dir in $PATH 11991 do 11992 IFS=$as_save_IFS 11993 test -z "$as_dir" && as_dir=. 11994 for ac_exec_ext in '' $ac_executable_extensions; do 11995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11996 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11998 break 2 11999 fi 12000 done 12001 done 12002 IFS=$as_save_IFS 12003 12004 ;; 12005 esac 12006 fi 12007 TR=$ac_cv_path_TR 12008 if test -n "$TR"; then 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12010 $as_echo "$TR" >&6; } 12011 else 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12013 $as_echo "no" >&6; } 12014 fi 12015 12016 12017 test -n "$TR" && break 12018 done 12019 12020 else 12021 # The variable is set, but is it from the command line or the environment? 12022 12023 # Try to remove the string !TR! from our list. 12024 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 12025 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12026 # If it failed, the variable was not from the command line. Ignore it, 12027 # but warn the user (except for BASH, which is always set by the calling BASH). 12028 if test "xTR" != xBASH; then 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 12030 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 12031 fi 12032 # Try to locate tool using the code snippet 12033 for ac_prog in tr 12034 do 12035 # Extract the first word of "$ac_prog", so it can be a program name with args. 12036 set dummy $ac_prog; ac_word=$2 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12038 $as_echo_n "checking for $ac_word... " >&6; } 12039 if ${ac_cv_path_TR+:} false; then : 12040 $as_echo_n "(cached) " >&6 12041 else 12042 case $TR in 12043 [\\/]* | ?:[\\/]*) 12044 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12045 ;; 12046 *) 12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12048 for as_dir in $PATH 12049 do 12050 IFS=$as_save_IFS 12051 test -z "$as_dir" && as_dir=. 12052 for ac_exec_ext in '' $ac_executable_extensions; do 12053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12054 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12056 break 2 12057 fi 12058 done 12059 done 12060 IFS=$as_save_IFS 12061 12062 ;; 12063 esac 12064 fi 12065 TR=$ac_cv_path_TR 12066 if test -n "$TR"; then 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12068 $as_echo "$TR" >&6; } 12069 else 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12071 $as_echo "no" >&6; } 12072 fi 12073 12074 12075 test -n "$TR" && break 12076 done 12077 12078 else 12079 # If it succeeded, then it was overridden by the user. We will use it 12080 # for the tool. 12081 12082 # First remove it from the list of overridden variables, so we can test 12083 # for unknown variables in the end. 12084 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12085 12086 # Check if we try to supply an empty value 12087 if test "x$TR" = x; then 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12089 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12091 $as_echo_n "checking for TR... " >&6; } 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12093 $as_echo "disabled" >&6; } 12094 else 12095 # Check if the provided tool contains a complete path. 12096 tool_specified="$TR" 12097 tool_basename="${tool_specified##*/}" 12098 if test "x$tool_basename" = "x$tool_specified"; then 12099 # A command without a complete path is provided, search $PATH. 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12101 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12102 # Extract the first word of "$tool_basename", so it can be a program name with args. 12103 set dummy $tool_basename; ac_word=$2 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12105 $as_echo_n "checking for $ac_word... " >&6; } 12106 if ${ac_cv_path_TR+:} false; then : 12107 $as_echo_n "(cached) " >&6 12108 else 12109 case $TR in 12110 [\\/]* | ?:[\\/]*) 12111 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12112 ;; 12113 *) 12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12115 for as_dir in $PATH 12116 do 12117 IFS=$as_save_IFS 12118 test -z "$as_dir" && as_dir=. 12119 for ac_exec_ext in '' $ac_executable_extensions; do 12120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12121 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12123 break 2 12124 fi 12125 done 12126 done 12127 IFS=$as_save_IFS 12128 12129 ;; 12130 esac 12131 fi 12132 TR=$ac_cv_path_TR 12133 if test -n "$TR"; then 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12135 $as_echo "$TR" >&6; } 12136 else 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12138 $as_echo "no" >&6; } 12139 fi 12140 12141 12142 if test "x$TR" = x; then 12143 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12144 fi 12145 else 12146 # Otherwise we believe it is a complete path. Use it as it is. 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12148 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12150 $as_echo_n "checking for TR... " >&6; } 12151 if test ! -x "$tool_specified"; then 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12153 $as_echo "not found" >&6; } 12154 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12155 fi 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12157 $as_echo "$tool_specified" >&6; } 12158 fi 12159 fi 12160 fi 12161 12162 fi 12163 12164 12165 12166 if test "x$TR" = x; then 12167 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12168 fi 12169 12170 12171 12172 12173 12174 # Publish this variable in the help. 12175 12176 12177 if [ -z "${UNAME+x}" ]; then 12178 # The variable is not set by user, try to locate tool using the code snippet 12179 for ac_prog in uname 12180 do 12181 # Extract the first word of "$ac_prog", so it can be a program name with args. 12182 set dummy $ac_prog; ac_word=$2 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12184 $as_echo_n "checking for $ac_word... " >&6; } 12185 if ${ac_cv_path_UNAME+:} false; then : 12186 $as_echo_n "(cached) " >&6 12187 else 12188 case $UNAME in 12189 [\\/]* | ?:[\\/]*) 12190 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12191 ;; 12192 *) 12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12194 for as_dir in $PATH 12195 do 12196 IFS=$as_save_IFS 12197 test -z "$as_dir" && as_dir=. 12198 for ac_exec_ext in '' $ac_executable_extensions; do 12199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12200 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12202 break 2 12203 fi 12204 done 12205 done 12206 IFS=$as_save_IFS 12207 12208 ;; 12209 esac 12210 fi 12211 UNAME=$ac_cv_path_UNAME 12212 if test -n "$UNAME"; then 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12214 $as_echo "$UNAME" >&6; } 12215 else 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12217 $as_echo "no" >&6; } 12218 fi 12219 12220 12221 test -n "$UNAME" && break 12222 done 12223 12224 else 12225 # The variable is set, but is it from the command line or the environment? 12226 12227 # Try to remove the string !UNAME! from our list. 12228 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12229 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12230 # If it failed, the variable was not from the command line. Ignore it, 12231 # but warn the user (except for BASH, which is always set by the calling BASH). 12232 if test "xUNAME" != xBASH; then 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12234 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12235 fi 12236 # Try to locate tool using the code snippet 12237 for ac_prog in uname 12238 do 12239 # Extract the first word of "$ac_prog", so it can be a program name with args. 12240 set dummy $ac_prog; ac_word=$2 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12242 $as_echo_n "checking for $ac_word... " >&6; } 12243 if ${ac_cv_path_UNAME+:} false; then : 12244 $as_echo_n "(cached) " >&6 12245 else 12246 case $UNAME in 12247 [\\/]* | ?:[\\/]*) 12248 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12249 ;; 12250 *) 12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12252 for as_dir in $PATH 12253 do 12254 IFS=$as_save_IFS 12255 test -z "$as_dir" && as_dir=. 12256 for ac_exec_ext in '' $ac_executable_extensions; do 12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12258 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12260 break 2 12261 fi 12262 done 12263 done 12264 IFS=$as_save_IFS 12265 12266 ;; 12267 esac 12268 fi 12269 UNAME=$ac_cv_path_UNAME 12270 if test -n "$UNAME"; then 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12272 $as_echo "$UNAME" >&6; } 12273 else 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12275 $as_echo "no" >&6; } 12276 fi 12277 12278 12279 test -n "$UNAME" && break 12280 done 12281 12282 else 12283 # If it succeeded, then it was overridden by the user. We will use it 12284 # for the tool. 12285 12286 # First remove it from the list of overridden variables, so we can test 12287 # for unknown variables in the end. 12288 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12289 12290 # Check if we try to supply an empty value 12291 if test "x$UNAME" = x; then 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12293 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12295 $as_echo_n "checking for UNAME... " >&6; } 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12297 $as_echo "disabled" >&6; } 12298 else 12299 # Check if the provided tool contains a complete path. 12300 tool_specified="$UNAME" 12301 tool_basename="${tool_specified##*/}" 12302 if test "x$tool_basename" = "x$tool_specified"; then 12303 # A command without a complete path is provided, search $PATH. 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12305 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12306 # Extract the first word of "$tool_basename", so it can be a program name with args. 12307 set dummy $tool_basename; ac_word=$2 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12309 $as_echo_n "checking for $ac_word... " >&6; } 12310 if ${ac_cv_path_UNAME+:} false; then : 12311 $as_echo_n "(cached) " >&6 12312 else 12313 case $UNAME in 12314 [\\/]* | ?:[\\/]*) 12315 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12316 ;; 12317 *) 12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12319 for as_dir in $PATH 12320 do 12321 IFS=$as_save_IFS 12322 test -z "$as_dir" && as_dir=. 12323 for ac_exec_ext in '' $ac_executable_extensions; do 12324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12325 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12327 break 2 12328 fi 12329 done 12330 done 12331 IFS=$as_save_IFS 12332 12333 ;; 12334 esac 12335 fi 12336 UNAME=$ac_cv_path_UNAME 12337 if test -n "$UNAME"; then 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12339 $as_echo "$UNAME" >&6; } 12340 else 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12342 $as_echo "no" >&6; } 12343 fi 12344 12345 12346 if test "x$UNAME" = x; then 12347 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12348 fi 12349 else 12350 # Otherwise we believe it is a complete path. Use it as it is. 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12352 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12354 $as_echo_n "checking for UNAME... " >&6; } 12355 if test ! -x "$tool_specified"; then 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12357 $as_echo "not found" >&6; } 12358 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12359 fi 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12361 $as_echo "$tool_specified" >&6; } 12362 fi 12363 fi 12364 fi 12365 12366 fi 12367 12368 12369 12370 if test "x$UNAME" = x; then 12371 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12372 fi 12373 12374 12375 12376 12377 12378 # Publish this variable in the help. 12379 12380 12381 if [ -z "${UNIQ+x}" ]; then 12382 # The variable is not set by user, try to locate tool using the code snippet 12383 for ac_prog in uniq 12384 do 12385 # Extract the first word of "$ac_prog", so it can be a program name with args. 12386 set dummy $ac_prog; ac_word=$2 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12388 $as_echo_n "checking for $ac_word... " >&6; } 12389 if ${ac_cv_path_UNIQ+:} false; then : 12390 $as_echo_n "(cached) " >&6 12391 else 12392 case $UNIQ in 12393 [\\/]* | ?:[\\/]*) 12394 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12395 ;; 12396 *) 12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12398 for as_dir in $PATH 12399 do 12400 IFS=$as_save_IFS 12401 test -z "$as_dir" && as_dir=. 12402 for ac_exec_ext in '' $ac_executable_extensions; do 12403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12404 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12406 break 2 12407 fi 12408 done 12409 done 12410 IFS=$as_save_IFS 12411 12412 ;; 12413 esac 12414 fi 12415 UNIQ=$ac_cv_path_UNIQ 12416 if test -n "$UNIQ"; then 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12418 $as_echo "$UNIQ" >&6; } 12419 else 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12421 $as_echo "no" >&6; } 12422 fi 12423 12424 12425 test -n "$UNIQ" && break 12426 done 12427 12428 else 12429 # The variable is set, but is it from the command line or the environment? 12430 12431 # Try to remove the string !UNIQ! from our list. 12432 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12433 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12434 # If it failed, the variable was not from the command line. Ignore it, 12435 # but warn the user (except for BASH, which is always set by the calling BASH). 12436 if test "xUNIQ" != xBASH; then 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12438 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12439 fi 12440 # Try to locate tool using the code snippet 12441 for ac_prog in uniq 12442 do 12443 # Extract the first word of "$ac_prog", so it can be a program name with args. 12444 set dummy $ac_prog; ac_word=$2 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12446 $as_echo_n "checking for $ac_word... " >&6; } 12447 if ${ac_cv_path_UNIQ+:} false; then : 12448 $as_echo_n "(cached) " >&6 12449 else 12450 case $UNIQ in 12451 [\\/]* | ?:[\\/]*) 12452 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12453 ;; 12454 *) 12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12456 for as_dir in $PATH 12457 do 12458 IFS=$as_save_IFS 12459 test -z "$as_dir" && as_dir=. 12460 for ac_exec_ext in '' $ac_executable_extensions; do 12461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12462 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12464 break 2 12465 fi 12466 done 12467 done 12468 IFS=$as_save_IFS 12469 12470 ;; 12471 esac 12472 fi 12473 UNIQ=$ac_cv_path_UNIQ 12474 if test -n "$UNIQ"; then 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12476 $as_echo "$UNIQ" >&6; } 12477 else 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12479 $as_echo "no" >&6; } 12480 fi 12481 12482 12483 test -n "$UNIQ" && break 12484 done 12485 12486 else 12487 # If it succeeded, then it was overridden by the user. We will use it 12488 # for the tool. 12489 12490 # First remove it from the list of overridden variables, so we can test 12491 # for unknown variables in the end. 12492 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12493 12494 # Check if we try to supply an empty value 12495 if test "x$UNIQ" = x; then 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12497 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12499 $as_echo_n "checking for UNIQ... " >&6; } 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12501 $as_echo "disabled" >&6; } 12502 else 12503 # Check if the provided tool contains a complete path. 12504 tool_specified="$UNIQ" 12505 tool_basename="${tool_specified##*/}" 12506 if test "x$tool_basename" = "x$tool_specified"; then 12507 # A command without a complete path is provided, search $PATH. 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12509 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12510 # Extract the first word of "$tool_basename", so it can be a program name with args. 12511 set dummy $tool_basename; ac_word=$2 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12513 $as_echo_n "checking for $ac_word... " >&6; } 12514 if ${ac_cv_path_UNIQ+:} false; then : 12515 $as_echo_n "(cached) " >&6 12516 else 12517 case $UNIQ in 12518 [\\/]* | ?:[\\/]*) 12519 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12520 ;; 12521 *) 12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12523 for as_dir in $PATH 12524 do 12525 IFS=$as_save_IFS 12526 test -z "$as_dir" && as_dir=. 12527 for ac_exec_ext in '' $ac_executable_extensions; do 12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12529 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12531 break 2 12532 fi 12533 done 12534 done 12535 IFS=$as_save_IFS 12536 12537 ;; 12538 esac 12539 fi 12540 UNIQ=$ac_cv_path_UNIQ 12541 if test -n "$UNIQ"; then 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12543 $as_echo "$UNIQ" >&6; } 12544 else 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12546 $as_echo "no" >&6; } 12547 fi 12548 12549 12550 if test "x$UNIQ" = x; then 12551 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12552 fi 12553 else 12554 # Otherwise we believe it is a complete path. Use it as it is. 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12556 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12558 $as_echo_n "checking for UNIQ... " >&6; } 12559 if test ! -x "$tool_specified"; then 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12561 $as_echo "not found" >&6; } 12562 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12563 fi 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12565 $as_echo "$tool_specified" >&6; } 12566 fi 12567 fi 12568 fi 12569 12570 fi 12571 12572 12573 12574 if test "x$UNIQ" = x; then 12575 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12576 fi 12577 12578 12579 12580 12581 12582 # Publish this variable in the help. 12583 12584 12585 if [ -z "${WC+x}" ]; then 12586 # The variable is not set by user, try to locate tool using the code snippet 12587 for ac_prog in wc 12588 do 12589 # Extract the first word of "$ac_prog", so it can be a program name with args. 12590 set dummy $ac_prog; ac_word=$2 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12592 $as_echo_n "checking for $ac_word... " >&6; } 12593 if ${ac_cv_path_WC+:} false; then : 12594 $as_echo_n "(cached) " >&6 12595 else 12596 case $WC in 12597 [\\/]* | ?:[\\/]*) 12598 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12599 ;; 12600 *) 12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12602 for as_dir in $PATH 12603 do 12604 IFS=$as_save_IFS 12605 test -z "$as_dir" && as_dir=. 12606 for ac_exec_ext in '' $ac_executable_extensions; do 12607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12608 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12610 break 2 12611 fi 12612 done 12613 done 12614 IFS=$as_save_IFS 12615 12616 ;; 12617 esac 12618 fi 12619 WC=$ac_cv_path_WC 12620 if test -n "$WC"; then 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12622 $as_echo "$WC" >&6; } 12623 else 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12625 $as_echo "no" >&6; } 12626 fi 12627 12628 12629 test -n "$WC" && break 12630 done 12631 12632 else 12633 # The variable is set, but is it from the command line or the environment? 12634 12635 # Try to remove the string !WC! from our list. 12636 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12637 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12638 # If it failed, the variable was not from the command line. Ignore it, 12639 # but warn the user (except for BASH, which is always set by the calling BASH). 12640 if test "xWC" != xBASH; then 12641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12642 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12643 fi 12644 # Try to locate tool using the code snippet 12645 for ac_prog in wc 12646 do 12647 # Extract the first word of "$ac_prog", so it can be a program name with args. 12648 set dummy $ac_prog; ac_word=$2 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12650 $as_echo_n "checking for $ac_word... " >&6; } 12651 if ${ac_cv_path_WC+:} false; then : 12652 $as_echo_n "(cached) " >&6 12653 else 12654 case $WC in 12655 [\\/]* | ?:[\\/]*) 12656 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12657 ;; 12658 *) 12659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12660 for as_dir in $PATH 12661 do 12662 IFS=$as_save_IFS 12663 test -z "$as_dir" && as_dir=. 12664 for ac_exec_ext in '' $ac_executable_extensions; do 12665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12666 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12668 break 2 12669 fi 12670 done 12671 done 12672 IFS=$as_save_IFS 12673 12674 ;; 12675 esac 12676 fi 12677 WC=$ac_cv_path_WC 12678 if test -n "$WC"; then 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12680 $as_echo "$WC" >&6; } 12681 else 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12683 $as_echo "no" >&6; } 12684 fi 12685 12686 12687 test -n "$WC" && break 12688 done 12689 12690 else 12691 # If it succeeded, then it was overridden by the user. We will use it 12692 # for the tool. 12693 12694 # First remove it from the list of overridden variables, so we can test 12695 # for unknown variables in the end. 12696 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12697 12698 # Check if we try to supply an empty value 12699 if test "x$WC" = x; then 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12701 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12703 $as_echo_n "checking for WC... " >&6; } 12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12705 $as_echo "disabled" >&6; } 12706 else 12707 # Check if the provided tool contains a complete path. 12708 tool_specified="$WC" 12709 tool_basename="${tool_specified##*/}" 12710 if test "x$tool_basename" = "x$tool_specified"; then 12711 # A command without a complete path is provided, search $PATH. 12712 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12713 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12714 # Extract the first word of "$tool_basename", so it can be a program name with args. 12715 set dummy $tool_basename; ac_word=$2 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12717 $as_echo_n "checking for $ac_word... " >&6; } 12718 if ${ac_cv_path_WC+:} false; then : 12719 $as_echo_n "(cached) " >&6 12720 else 12721 case $WC in 12722 [\\/]* | ?:[\\/]*) 12723 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12724 ;; 12725 *) 12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12727 for as_dir in $PATH 12728 do 12729 IFS=$as_save_IFS 12730 test -z "$as_dir" && as_dir=. 12731 for ac_exec_ext in '' $ac_executable_extensions; do 12732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12733 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12735 break 2 12736 fi 12737 done 12738 done 12739 IFS=$as_save_IFS 12740 12741 ;; 12742 esac 12743 fi 12744 WC=$ac_cv_path_WC 12745 if test -n "$WC"; then 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12747 $as_echo "$WC" >&6; } 12748 else 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12750 $as_echo "no" >&6; } 12751 fi 12752 12753 12754 if test "x$WC" = x; then 12755 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12756 fi 12757 else 12758 # Otherwise we believe it is a complete path. Use it as it is. 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12760 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12762 $as_echo_n "checking for WC... " >&6; } 12763 if test ! -x "$tool_specified"; then 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12765 $as_echo "not found" >&6; } 12766 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12767 fi 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12769 $as_echo "$tool_specified" >&6; } 12770 fi 12771 fi 12772 fi 12773 12774 fi 12775 12776 12777 12778 if test "x$WC" = x; then 12779 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12780 fi 12781 12782 12783 12784 12785 12786 # Publish this variable in the help. 12787 12788 12789 if [ -z "${WHICH+x}" ]; then 12790 # The variable is not set by user, try to locate tool using the code snippet 12791 for ac_prog in which 12792 do 12793 # Extract the first word of "$ac_prog", so it can be a program name with args. 12794 set dummy $ac_prog; ac_word=$2 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12796 $as_echo_n "checking for $ac_word... " >&6; } 12797 if ${ac_cv_path_WHICH+:} false; then : 12798 $as_echo_n "(cached) " >&6 12799 else 12800 case $WHICH in 12801 [\\/]* | ?:[\\/]*) 12802 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12803 ;; 12804 *) 12805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12806 for as_dir in $PATH 12807 do 12808 IFS=$as_save_IFS 12809 test -z "$as_dir" && as_dir=. 12810 for ac_exec_ext in '' $ac_executable_extensions; do 12811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12812 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12814 break 2 12815 fi 12816 done 12817 done 12818 IFS=$as_save_IFS 12819 12820 ;; 12821 esac 12822 fi 12823 WHICH=$ac_cv_path_WHICH 12824 if test -n "$WHICH"; then 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12826 $as_echo "$WHICH" >&6; } 12827 else 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12829 $as_echo "no" >&6; } 12830 fi 12831 12832 12833 test -n "$WHICH" && break 12834 done 12835 12836 else 12837 # The variable is set, but is it from the command line or the environment? 12838 12839 # Try to remove the string !WHICH! from our list. 12840 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12841 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12842 # If it failed, the variable was not from the command line. Ignore it, 12843 # but warn the user (except for BASH, which is always set by the calling BASH). 12844 if test "xWHICH" != xBASH; then 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12846 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12847 fi 12848 # Try to locate tool using the code snippet 12849 for ac_prog in which 12850 do 12851 # Extract the first word of "$ac_prog", so it can be a program name with args. 12852 set dummy $ac_prog; ac_word=$2 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12854 $as_echo_n "checking for $ac_word... " >&6; } 12855 if ${ac_cv_path_WHICH+:} false; then : 12856 $as_echo_n "(cached) " >&6 12857 else 12858 case $WHICH in 12859 [\\/]* | ?:[\\/]*) 12860 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12861 ;; 12862 *) 12863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12864 for as_dir in $PATH 12865 do 12866 IFS=$as_save_IFS 12867 test -z "$as_dir" && as_dir=. 12868 for ac_exec_ext in '' $ac_executable_extensions; do 12869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12870 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12872 break 2 12873 fi 12874 done 12875 done 12876 IFS=$as_save_IFS 12877 12878 ;; 12879 esac 12880 fi 12881 WHICH=$ac_cv_path_WHICH 12882 if test -n "$WHICH"; then 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12884 $as_echo "$WHICH" >&6; } 12885 else 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12887 $as_echo "no" >&6; } 12888 fi 12889 12890 12891 test -n "$WHICH" && break 12892 done 12893 12894 else 12895 # If it succeeded, then it was overridden by the user. We will use it 12896 # for the tool. 12897 12898 # First remove it from the list of overridden variables, so we can test 12899 # for unknown variables in the end. 12900 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12901 12902 # Check if we try to supply an empty value 12903 if test "x$WHICH" = x; then 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12905 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12907 $as_echo_n "checking for WHICH... " >&6; } 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12909 $as_echo "disabled" >&6; } 12910 else 12911 # Check if the provided tool contains a complete path. 12912 tool_specified="$WHICH" 12913 tool_basename="${tool_specified##*/}" 12914 if test "x$tool_basename" = "x$tool_specified"; then 12915 # A command without a complete path is provided, search $PATH. 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12917 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12918 # Extract the first word of "$tool_basename", so it can be a program name with args. 12919 set dummy $tool_basename; ac_word=$2 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12921 $as_echo_n "checking for $ac_word... " >&6; } 12922 if ${ac_cv_path_WHICH+:} false; then : 12923 $as_echo_n "(cached) " >&6 12924 else 12925 case $WHICH in 12926 [\\/]* | ?:[\\/]*) 12927 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12928 ;; 12929 *) 12930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12931 for as_dir in $PATH 12932 do 12933 IFS=$as_save_IFS 12934 test -z "$as_dir" && as_dir=. 12935 for ac_exec_ext in '' $ac_executable_extensions; do 12936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12937 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12939 break 2 12940 fi 12941 done 12942 done 12943 IFS=$as_save_IFS 12944 12945 ;; 12946 esac 12947 fi 12948 WHICH=$ac_cv_path_WHICH 12949 if test -n "$WHICH"; then 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12951 $as_echo "$WHICH" >&6; } 12952 else 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12954 $as_echo "no" >&6; } 12955 fi 12956 12957 12958 if test "x$WHICH" = x; then 12959 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12960 fi 12961 else 12962 # Otherwise we believe it is a complete path. Use it as it is. 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12964 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12966 $as_echo_n "checking for WHICH... " >&6; } 12967 if test ! -x "$tool_specified"; then 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12969 $as_echo "not found" >&6; } 12970 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12971 fi 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12973 $as_echo "$tool_specified" >&6; } 12974 fi 12975 fi 12976 fi 12977 12978 fi 12979 12980 12981 12982 if test "x$WHICH" = x; then 12983 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12984 fi 12985 12986 12987 12988 12989 12990 # Publish this variable in the help. 12991 12992 12993 if [ -z "${XARGS+x}" ]; then 12994 # The variable is not set by user, try to locate tool using the code snippet 12995 for ac_prog in xargs 12996 do 12997 # Extract the first word of "$ac_prog", so it can be a program name with args. 12998 set dummy $ac_prog; ac_word=$2 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13000 $as_echo_n "checking for $ac_word... " >&6; } 13001 if ${ac_cv_path_XARGS+:} false; then : 13002 $as_echo_n "(cached) " >&6 13003 else 13004 case $XARGS in 13005 [\\/]* | ?:[\\/]*) 13006 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13007 ;; 13008 *) 13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13010 for as_dir in $PATH 13011 do 13012 IFS=$as_save_IFS 13013 test -z "$as_dir" && as_dir=. 13014 for ac_exec_ext in '' $ac_executable_extensions; do 13015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13016 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13018 break 2 13019 fi 13020 done 13021 done 13022 IFS=$as_save_IFS 13023 13024 ;; 13025 esac 13026 fi 13027 XARGS=$ac_cv_path_XARGS 13028 if test -n "$XARGS"; then 13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13030 $as_echo "$XARGS" >&6; } 13031 else 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13033 $as_echo "no" >&6; } 13034 fi 13035 13036 13037 test -n "$XARGS" && break 13038 done 13039 13040 else 13041 # The variable is set, but is it from the command line or the environment? 13042 13043 # Try to remove the string !XARGS! from our list. 13044 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 13045 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13046 # If it failed, the variable was not from the command line. Ignore it, 13047 # but warn the user (except for BASH, which is always set by the calling BASH). 13048 if test "xXARGS" != xBASH; then 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 13050 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 13051 fi 13052 # Try to locate tool using the code snippet 13053 for ac_prog in xargs 13054 do 13055 # Extract the first word of "$ac_prog", so it can be a program name with args. 13056 set dummy $ac_prog; ac_word=$2 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13058 $as_echo_n "checking for $ac_word... " >&6; } 13059 if ${ac_cv_path_XARGS+:} false; then : 13060 $as_echo_n "(cached) " >&6 13061 else 13062 case $XARGS in 13063 [\\/]* | ?:[\\/]*) 13064 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13065 ;; 13066 *) 13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13068 for as_dir in $PATH 13069 do 13070 IFS=$as_save_IFS 13071 test -z "$as_dir" && as_dir=. 13072 for ac_exec_ext in '' $ac_executable_extensions; do 13073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13074 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13076 break 2 13077 fi 13078 done 13079 done 13080 IFS=$as_save_IFS 13081 13082 ;; 13083 esac 13084 fi 13085 XARGS=$ac_cv_path_XARGS 13086 if test -n "$XARGS"; then 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13088 $as_echo "$XARGS" >&6; } 13089 else 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13091 $as_echo "no" >&6; } 13092 fi 13093 13094 13095 test -n "$XARGS" && break 13096 done 13097 13098 else 13099 # If it succeeded, then it was overridden by the user. We will use it 13100 # for the tool. 13101 13102 # First remove it from the list of overridden variables, so we can test 13103 # for unknown variables in the end. 13104 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13105 13106 # Check if we try to supply an empty value 13107 if test "x$XARGS" = x; then 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13109 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13111 $as_echo_n "checking for XARGS... " >&6; } 13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13113 $as_echo "disabled" >&6; } 13114 else 13115 # Check if the provided tool contains a complete path. 13116 tool_specified="$XARGS" 13117 tool_basename="${tool_specified##*/}" 13118 if test "x$tool_basename" = "x$tool_specified"; then 13119 # A command without a complete path is provided, search $PATH. 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13121 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13122 # Extract the first word of "$tool_basename", so it can be a program name with args. 13123 set dummy $tool_basename; ac_word=$2 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13125 $as_echo_n "checking for $ac_word... " >&6; } 13126 if ${ac_cv_path_XARGS+:} false; then : 13127 $as_echo_n "(cached) " >&6 13128 else 13129 case $XARGS in 13130 [\\/]* | ?:[\\/]*) 13131 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13132 ;; 13133 *) 13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13135 for as_dir in $PATH 13136 do 13137 IFS=$as_save_IFS 13138 test -z "$as_dir" && as_dir=. 13139 for ac_exec_ext in '' $ac_executable_extensions; do 13140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13141 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13143 break 2 13144 fi 13145 done 13146 done 13147 IFS=$as_save_IFS 13148 13149 ;; 13150 esac 13151 fi 13152 XARGS=$ac_cv_path_XARGS 13153 if test -n "$XARGS"; then 13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13155 $as_echo "$XARGS" >&6; } 13156 else 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13158 $as_echo "no" >&6; } 13159 fi 13160 13161 13162 if test "x$XARGS" = x; then 13163 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13164 fi 13165 else 13166 # Otherwise we believe it is a complete path. Use it as it is. 13167 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13168 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13170 $as_echo_n "checking for XARGS... " >&6; } 13171 if test ! -x "$tool_specified"; then 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13173 $as_echo "not found" >&6; } 13174 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13175 fi 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13177 $as_echo "$tool_specified" >&6; } 13178 fi 13179 fi 13180 fi 13181 13182 fi 13183 13184 13185 13186 if test "x$XARGS" = x; then 13187 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13188 fi 13189 13190 13191 13192 # Then required tools that require some special treatment. 13193 13194 13195 # Publish this variable in the help. 13196 13197 13198 if [ -z "${AWK+x}" ]; then 13199 # The variable is not set by user, try to locate tool using the code snippet 13200 for ac_prog in gawk mawk nawk awk 13201 do 13202 # Extract the first word of "$ac_prog", so it can be a program name with args. 13203 set dummy $ac_prog; ac_word=$2 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13205 $as_echo_n "checking for $ac_word... " >&6; } 13206 if ${ac_cv_prog_AWK+:} false; then : 13207 $as_echo_n "(cached) " >&6 13208 else 13209 if test -n "$AWK"; then 13210 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13211 else 13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13213 for as_dir in $PATH 13214 do 13215 IFS=$as_save_IFS 13216 test -z "$as_dir" && as_dir=. 13217 for ac_exec_ext in '' $ac_executable_extensions; do 13218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13219 ac_cv_prog_AWK="$ac_prog" 13220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13221 break 2 13222 fi 13223 done 13224 done 13225 IFS=$as_save_IFS 13226 13227 fi 13228 fi 13229 AWK=$ac_cv_prog_AWK 13230 if test -n "$AWK"; then 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13232 $as_echo "$AWK" >&6; } 13233 else 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13235 $as_echo "no" >&6; } 13236 fi 13237 13238 13239 test -n "$AWK" && break 13240 done 13241 13242 else 13243 # The variable is set, but is it from the command line or the environment? 13244 13245 # Try to remove the string !AWK! from our list. 13246 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13247 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13248 # If it failed, the variable was not from the command line. Ignore it, 13249 # but warn the user (except for BASH, which is always set by the calling BASH). 13250 if test "xAWK" != xBASH; then 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13252 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13253 fi 13254 # Try to locate tool using the code snippet 13255 for ac_prog in gawk mawk nawk awk 13256 do 13257 # Extract the first word of "$ac_prog", so it can be a program name with args. 13258 set dummy $ac_prog; 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_prog_AWK+:} false; then : 13262 $as_echo_n "(cached) " >&6 13263 else 13264 if test -n "$AWK"; then 13265 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13266 else 13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13268 for as_dir in $PATH 13269 do 13270 IFS=$as_save_IFS 13271 test -z "$as_dir" && as_dir=. 13272 for ac_exec_ext in '' $ac_executable_extensions; do 13273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13274 ac_cv_prog_AWK="$ac_prog" 13275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13276 break 2 13277 fi 13278 done 13279 done 13280 IFS=$as_save_IFS 13281 13282 fi 13283 fi 13284 AWK=$ac_cv_prog_AWK 13285 if test -n "$AWK"; then 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13287 $as_echo "$AWK" >&6; } 13288 else 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13290 $as_echo "no" >&6; } 13291 fi 13292 13293 13294 test -n "$AWK" && break 13295 done 13296 13297 else 13298 # If it succeeded, then it was overridden by the user. We will use it 13299 # for the tool. 13300 13301 # First remove it from the list of overridden variables, so we can test 13302 # for unknown variables in the end. 13303 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13304 13305 # Check if we try to supply an empty value 13306 if test "x$AWK" = x; then 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13308 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13310 $as_echo_n "checking for AWK... " >&6; } 13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13312 $as_echo "disabled" >&6; } 13313 else 13314 # Check if the provided tool contains a complete path. 13315 tool_specified="$AWK" 13316 tool_basename="${tool_specified##*/}" 13317 if test "x$tool_basename" = "x$tool_specified"; then 13318 # A command without a complete path is provided, search $PATH. 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13320 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13321 # Extract the first word of "$tool_basename", so it can be a program name with args. 13322 set dummy $tool_basename; ac_word=$2 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13324 $as_echo_n "checking for $ac_word... " >&6; } 13325 if ${ac_cv_path_AWK+:} false; then : 13326 $as_echo_n "(cached) " >&6 13327 else 13328 case $AWK in 13329 [\\/]* | ?:[\\/]*) 13330 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13331 ;; 13332 *) 13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13334 for as_dir in $PATH 13335 do 13336 IFS=$as_save_IFS 13337 test -z "$as_dir" && as_dir=. 13338 for ac_exec_ext in '' $ac_executable_extensions; do 13339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13340 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13342 break 2 13343 fi 13344 done 13345 done 13346 IFS=$as_save_IFS 13347 13348 ;; 13349 esac 13350 fi 13351 AWK=$ac_cv_path_AWK 13352 if test -n "$AWK"; then 13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13354 $as_echo "$AWK" >&6; } 13355 else 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13357 $as_echo "no" >&6; } 13358 fi 13359 13360 13361 if test "x$AWK" = x; then 13362 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13363 fi 13364 else 13365 # Otherwise we believe it is a complete path. Use it as it is. 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13367 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13369 $as_echo_n "checking for AWK... " >&6; } 13370 if test ! -x "$tool_specified"; then 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13372 $as_echo "not found" >&6; } 13373 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13374 fi 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13376 $as_echo "$tool_specified" >&6; } 13377 fi 13378 fi 13379 fi 13380 13381 fi 13382 13383 13384 if test "x$AWK" = x; then 13385 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13386 fi 13387 13388 13389 13390 13391 # Publish this variable in the help. 13392 13393 13394 if [ -z "${GREP+x}" ]; then 13395 # The variable is not set by user, try to locate tool using the code snippet 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13398 if ${ac_cv_path_GREP+:} false; then : 13399 $as_echo_n "(cached) " >&6 13400 else 13401 if test -z "$GREP"; then 13402 ac_path_GREP_found=false 13403 # Loop through the user's path and test for each of PROGNAME-LIST 13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13406 do 13407 IFS=$as_save_IFS 13408 test -z "$as_dir" && as_dir=. 13409 for ac_prog in grep ggrep; do 13410 for ac_exec_ext in '' $ac_executable_extensions; do 13411 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13412 as_fn_executable_p "$ac_path_GREP" || continue 13413 # Check for GNU ac_path_GREP and select it if it is found. 13414 # Check for GNU $ac_path_GREP 13415 case `"$ac_path_GREP" --version 2>&1` in 13416 *GNU*) 13417 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13418 *) 13419 ac_count=0 13420 $as_echo_n 0123456789 >"conftest.in" 13421 while : 13422 do 13423 cat "conftest.in" "conftest.in" >"conftest.tmp" 13424 mv "conftest.tmp" "conftest.in" 13425 cp "conftest.in" "conftest.nl" 13426 $as_echo 'GREP' >> "conftest.nl" 13427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13429 as_fn_arith $ac_count + 1 && ac_count=$as_val 13430 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13431 # Best one so far, save it but keep looking for a better one 13432 ac_cv_path_GREP="$ac_path_GREP" 13433 ac_path_GREP_max=$ac_count 13434 fi 13435 # 10*(2^10) chars as input seems more than enough 13436 test $ac_count -gt 10 && break 13437 done 13438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13439 esac 13440 13441 $ac_path_GREP_found && break 3 13442 done 13443 done 13444 done 13445 IFS=$as_save_IFS 13446 if test -z "$ac_cv_path_GREP"; then 13447 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13448 fi 13449 else 13450 ac_cv_path_GREP=$GREP 13451 fi 13452 13453 fi 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13455 $as_echo "$ac_cv_path_GREP" >&6; } 13456 GREP="$ac_cv_path_GREP" 13457 13458 13459 else 13460 # The variable is set, but is it from the command line or the environment? 13461 13462 # Try to remove the string !GREP! from our list. 13463 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13464 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13465 # If it failed, the variable was not from the command line. Ignore it, 13466 # but warn the user (except for BASH, which is always set by the calling BASH). 13467 if test "xGREP" != xBASH; then 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13469 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13470 fi 13471 # Try to locate tool using the code snippet 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13473 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13474 if ${ac_cv_path_GREP+:} false; then : 13475 $as_echo_n "(cached) " >&6 13476 else 13477 if test -z "$GREP"; then 13478 ac_path_GREP_found=false 13479 # Loop through the user's path and test for each of PROGNAME-LIST 13480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13482 do 13483 IFS=$as_save_IFS 13484 test -z "$as_dir" && as_dir=. 13485 for ac_prog in grep ggrep; do 13486 for ac_exec_ext in '' $ac_executable_extensions; do 13487 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13488 as_fn_executable_p "$ac_path_GREP" || continue 13489 # Check for GNU ac_path_GREP and select it if it is found. 13490 # Check for GNU $ac_path_GREP 13491 case `"$ac_path_GREP" --version 2>&1` in 13492 *GNU*) 13493 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13494 *) 13495 ac_count=0 13496 $as_echo_n 0123456789 >"conftest.in" 13497 while : 13498 do 13499 cat "conftest.in" "conftest.in" >"conftest.tmp" 13500 mv "conftest.tmp" "conftest.in" 13501 cp "conftest.in" "conftest.nl" 13502 $as_echo 'GREP' >> "conftest.nl" 13503 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13505 as_fn_arith $ac_count + 1 && ac_count=$as_val 13506 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13507 # Best one so far, save it but keep looking for a better one 13508 ac_cv_path_GREP="$ac_path_GREP" 13509 ac_path_GREP_max=$ac_count 13510 fi 13511 # 10*(2^10) chars as input seems more than enough 13512 test $ac_count -gt 10 && break 13513 done 13514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13515 esac 13516 13517 $ac_path_GREP_found && break 3 13518 done 13519 done 13520 done 13521 IFS=$as_save_IFS 13522 if test -z "$ac_cv_path_GREP"; then 13523 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13524 fi 13525 else 13526 ac_cv_path_GREP=$GREP 13527 fi 13528 13529 fi 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13531 $as_echo "$ac_cv_path_GREP" >&6; } 13532 GREP="$ac_cv_path_GREP" 13533 13534 13535 else 13536 # If it succeeded, then it was overridden by the user. We will use it 13537 # for the tool. 13538 13539 # First remove it from the list of overridden variables, so we can test 13540 # for unknown variables in the end. 13541 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13542 13543 # Check if we try to supply an empty value 13544 if test "x$GREP" = x; then 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13546 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13548 $as_echo_n "checking for GREP... " >&6; } 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13550 $as_echo "disabled" >&6; } 13551 else 13552 # Check if the provided tool contains a complete path. 13553 tool_specified="$GREP" 13554 tool_basename="${tool_specified##*/}" 13555 if test "x$tool_basename" = "x$tool_specified"; then 13556 # A command without a complete path is provided, search $PATH. 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13558 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13559 # Extract the first word of "$tool_basename", so it can be a program name with args. 13560 set dummy $tool_basename; ac_word=$2 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13562 $as_echo_n "checking for $ac_word... " >&6; } 13563 if ${ac_cv_path_GREP+:} false; then : 13564 $as_echo_n "(cached) " >&6 13565 else 13566 case $GREP in 13567 [\\/]* | ?:[\\/]*) 13568 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13569 ;; 13570 *) 13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13572 for as_dir in $PATH 13573 do 13574 IFS=$as_save_IFS 13575 test -z "$as_dir" && as_dir=. 13576 for ac_exec_ext in '' $ac_executable_extensions; do 13577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13578 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13580 break 2 13581 fi 13582 done 13583 done 13584 IFS=$as_save_IFS 13585 13586 ;; 13587 esac 13588 fi 13589 GREP=$ac_cv_path_GREP 13590 if test -n "$GREP"; then 13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13592 $as_echo "$GREP" >&6; } 13593 else 13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13595 $as_echo "no" >&6; } 13596 fi 13597 13598 13599 if test "x$GREP" = x; then 13600 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13601 fi 13602 else 13603 # Otherwise we believe it is a complete path. Use it as it is. 13604 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13605 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13607 $as_echo_n "checking for GREP... " >&6; } 13608 if test ! -x "$tool_specified"; then 13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13610 $as_echo "not found" >&6; } 13611 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13612 fi 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13614 $as_echo "$tool_specified" >&6; } 13615 fi 13616 fi 13617 fi 13618 13619 fi 13620 13621 13622 if test "x$GREP" = x; then 13623 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13624 fi 13625 13626 13627 13628 13629 # Publish this variable in the help. 13630 13631 13632 if [ -z "${EGREP+x}" ]; then 13633 # The variable is not set by user, try to locate tool using the code snippet 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13635 $as_echo_n "checking for egrep... " >&6; } 13636 if ${ac_cv_path_EGREP+:} false; then : 13637 $as_echo_n "(cached) " >&6 13638 else 13639 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13640 then ac_cv_path_EGREP="$GREP -E" 13641 else 13642 if test -z "$EGREP"; then 13643 ac_path_EGREP_found=false 13644 # Loop through the user's path and test for each of PROGNAME-LIST 13645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13647 do 13648 IFS=$as_save_IFS 13649 test -z "$as_dir" && as_dir=. 13650 for ac_prog in egrep; do 13651 for ac_exec_ext in '' $ac_executable_extensions; do 13652 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13653 as_fn_executable_p "$ac_path_EGREP" || continue 13654 # Check for GNU ac_path_EGREP and select it if it is found. 13655 # Check for GNU $ac_path_EGREP 13656 case `"$ac_path_EGREP" --version 2>&1` in 13657 *GNU*) 13658 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13659 *) 13660 ac_count=0 13661 $as_echo_n 0123456789 >"conftest.in" 13662 while : 13663 do 13664 cat "conftest.in" "conftest.in" >"conftest.tmp" 13665 mv "conftest.tmp" "conftest.in" 13666 cp "conftest.in" "conftest.nl" 13667 $as_echo 'EGREP' >> "conftest.nl" 13668 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13670 as_fn_arith $ac_count + 1 && ac_count=$as_val 13671 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13672 # Best one so far, save it but keep looking for a better one 13673 ac_cv_path_EGREP="$ac_path_EGREP" 13674 ac_path_EGREP_max=$ac_count 13675 fi 13676 # 10*(2^10) chars as input seems more than enough 13677 test $ac_count -gt 10 && break 13678 done 13679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13680 esac 13681 13682 $ac_path_EGREP_found && break 3 13683 done 13684 done 13685 done 13686 IFS=$as_save_IFS 13687 if test -z "$ac_cv_path_EGREP"; then 13688 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13689 fi 13690 else 13691 ac_cv_path_EGREP=$EGREP 13692 fi 13693 13694 fi 13695 fi 13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13697 $as_echo "$ac_cv_path_EGREP" >&6; } 13698 EGREP="$ac_cv_path_EGREP" 13699 13700 13701 else 13702 # The variable is set, but is it from the command line or the environment? 13703 13704 # Try to remove the string !EGREP! from our list. 13705 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13706 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13707 # If it failed, the variable was not from the command line. Ignore it, 13708 # but warn the user (except for BASH, which is always set by the calling BASH). 13709 if test "xEGREP" != xBASH; then 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13711 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13712 fi 13713 # Try to locate tool using the code snippet 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13715 $as_echo_n "checking for egrep... " >&6; } 13716 if ${ac_cv_path_EGREP+:} false; then : 13717 $as_echo_n "(cached) " >&6 13718 else 13719 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13720 then ac_cv_path_EGREP="$GREP -E" 13721 else 13722 if test -z "$EGREP"; then 13723 ac_path_EGREP_found=false 13724 # Loop through the user's path and test for each of PROGNAME-LIST 13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13727 do 13728 IFS=$as_save_IFS 13729 test -z "$as_dir" && as_dir=. 13730 for ac_prog in egrep; do 13731 for ac_exec_ext in '' $ac_executable_extensions; do 13732 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13733 as_fn_executable_p "$ac_path_EGREP" || continue 13734 # Check for GNU ac_path_EGREP and select it if it is found. 13735 # Check for GNU $ac_path_EGREP 13736 case `"$ac_path_EGREP" --version 2>&1` in 13737 *GNU*) 13738 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13739 *) 13740 ac_count=0 13741 $as_echo_n 0123456789 >"conftest.in" 13742 while : 13743 do 13744 cat "conftest.in" "conftest.in" >"conftest.tmp" 13745 mv "conftest.tmp" "conftest.in" 13746 cp "conftest.in" "conftest.nl" 13747 $as_echo 'EGREP' >> "conftest.nl" 13748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13750 as_fn_arith $ac_count + 1 && ac_count=$as_val 13751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13752 # Best one so far, save it but keep looking for a better one 13753 ac_cv_path_EGREP="$ac_path_EGREP" 13754 ac_path_EGREP_max=$ac_count 13755 fi 13756 # 10*(2^10) chars as input seems more than enough 13757 test $ac_count -gt 10 && break 13758 done 13759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13760 esac 13761 13762 $ac_path_EGREP_found && break 3 13763 done 13764 done 13765 done 13766 IFS=$as_save_IFS 13767 if test -z "$ac_cv_path_EGREP"; then 13768 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13769 fi 13770 else 13771 ac_cv_path_EGREP=$EGREP 13772 fi 13773 13774 fi 13775 fi 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13777 $as_echo "$ac_cv_path_EGREP" >&6; } 13778 EGREP="$ac_cv_path_EGREP" 13779 13780 13781 else 13782 # If it succeeded, then it was overridden by the user. We will use it 13783 # for the tool. 13784 13785 # First remove it from the list of overridden variables, so we can test 13786 # for unknown variables in the end. 13787 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13788 13789 # Check if we try to supply an empty value 13790 if test "x$EGREP" = x; then 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13792 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13794 $as_echo_n "checking for EGREP... " >&6; } 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13796 $as_echo "disabled" >&6; } 13797 else 13798 # Check if the provided tool contains a complete path. 13799 tool_specified="$EGREP" 13800 tool_basename="${tool_specified##*/}" 13801 if test "x$tool_basename" = "x$tool_specified"; then 13802 # A command without a complete path is provided, search $PATH. 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13804 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13805 # Extract the first word of "$tool_basename", so it can be a program name with args. 13806 set dummy $tool_basename; ac_word=$2 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13808 $as_echo_n "checking for $ac_word... " >&6; } 13809 if ${ac_cv_path_EGREP+:} false; then : 13810 $as_echo_n "(cached) " >&6 13811 else 13812 case $EGREP in 13813 [\\/]* | ?:[\\/]*) 13814 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13815 ;; 13816 *) 13817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13818 for as_dir in $PATH 13819 do 13820 IFS=$as_save_IFS 13821 test -z "$as_dir" && as_dir=. 13822 for ac_exec_ext in '' $ac_executable_extensions; do 13823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13824 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13826 break 2 13827 fi 13828 done 13829 done 13830 IFS=$as_save_IFS 13831 13832 ;; 13833 esac 13834 fi 13835 EGREP=$ac_cv_path_EGREP 13836 if test -n "$EGREP"; then 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13838 $as_echo "$EGREP" >&6; } 13839 else 13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13841 $as_echo "no" >&6; } 13842 fi 13843 13844 13845 if test "x$EGREP" = x; then 13846 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13847 fi 13848 else 13849 # Otherwise we believe it is a complete path. Use it as it is. 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13851 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13853 $as_echo_n "checking for EGREP... " >&6; } 13854 if test ! -x "$tool_specified"; then 13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13856 $as_echo "not found" >&6; } 13857 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13858 fi 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13860 $as_echo "$tool_specified" >&6; } 13861 fi 13862 fi 13863 fi 13864 13865 fi 13866 13867 13868 if test "x$EGREP" = x; then 13869 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13870 fi 13871 13872 13873 13874 13875 # Publish this variable in the help. 13876 13877 13878 if [ -z "${FGREP+x}" ]; then 13879 # The variable is not set by user, try to locate tool using the code snippet 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13881 $as_echo_n "checking for fgrep... " >&6; } 13882 if ${ac_cv_path_FGREP+:} false; then : 13883 $as_echo_n "(cached) " >&6 13884 else 13885 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13886 then ac_cv_path_FGREP="$GREP -F" 13887 else 13888 if test -z "$FGREP"; then 13889 ac_path_FGREP_found=false 13890 # Loop through the user's path and test for each of PROGNAME-LIST 13891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13893 do 13894 IFS=$as_save_IFS 13895 test -z "$as_dir" && as_dir=. 13896 for ac_prog in fgrep; do 13897 for ac_exec_ext in '' $ac_executable_extensions; do 13898 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13899 as_fn_executable_p "$ac_path_FGREP" || continue 13900 # Check for GNU ac_path_FGREP and select it if it is found. 13901 # Check for GNU $ac_path_FGREP 13902 case `"$ac_path_FGREP" --version 2>&1` in 13903 *GNU*) 13904 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13905 *) 13906 ac_count=0 13907 $as_echo_n 0123456789 >"conftest.in" 13908 while : 13909 do 13910 cat "conftest.in" "conftest.in" >"conftest.tmp" 13911 mv "conftest.tmp" "conftest.in" 13912 cp "conftest.in" "conftest.nl" 13913 $as_echo 'FGREP' >> "conftest.nl" 13914 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13916 as_fn_arith $ac_count + 1 && ac_count=$as_val 13917 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13918 # Best one so far, save it but keep looking for a better one 13919 ac_cv_path_FGREP="$ac_path_FGREP" 13920 ac_path_FGREP_max=$ac_count 13921 fi 13922 # 10*(2^10) chars as input seems more than enough 13923 test $ac_count -gt 10 && break 13924 done 13925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13926 esac 13927 13928 $ac_path_FGREP_found && break 3 13929 done 13930 done 13931 done 13932 IFS=$as_save_IFS 13933 if test -z "$ac_cv_path_FGREP"; then 13934 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13935 fi 13936 else 13937 ac_cv_path_FGREP=$FGREP 13938 fi 13939 13940 fi 13941 fi 13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13943 $as_echo "$ac_cv_path_FGREP" >&6; } 13944 FGREP="$ac_cv_path_FGREP" 13945 13946 13947 else 13948 # The variable is set, but is it from the command line or the environment? 13949 13950 # Try to remove the string !FGREP! from our list. 13951 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13952 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13953 # If it failed, the variable was not from the command line. Ignore it, 13954 # but warn the user (except for BASH, which is always set by the calling BASH). 13955 if test "xFGREP" != xBASH; then 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13957 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13958 fi 13959 # Try to locate tool using the code snippet 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13961 $as_echo_n "checking for fgrep... " >&6; } 13962 if ${ac_cv_path_FGREP+:} false; then : 13963 $as_echo_n "(cached) " >&6 13964 else 13965 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13966 then ac_cv_path_FGREP="$GREP -F" 13967 else 13968 if test -z "$FGREP"; then 13969 ac_path_FGREP_found=false 13970 # Loop through the user's path and test for each of PROGNAME-LIST 13971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13973 do 13974 IFS=$as_save_IFS 13975 test -z "$as_dir" && as_dir=. 13976 for ac_prog in fgrep; do 13977 for ac_exec_ext in '' $ac_executable_extensions; do 13978 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13979 as_fn_executable_p "$ac_path_FGREP" || continue 13980 # Check for GNU ac_path_FGREP and select it if it is found. 13981 # Check for GNU $ac_path_FGREP 13982 case `"$ac_path_FGREP" --version 2>&1` in 13983 *GNU*) 13984 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13985 *) 13986 ac_count=0 13987 $as_echo_n 0123456789 >"conftest.in" 13988 while : 13989 do 13990 cat "conftest.in" "conftest.in" >"conftest.tmp" 13991 mv "conftest.tmp" "conftest.in" 13992 cp "conftest.in" "conftest.nl" 13993 $as_echo 'FGREP' >> "conftest.nl" 13994 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13996 as_fn_arith $ac_count + 1 && ac_count=$as_val 13997 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13998 # Best one so far, save it but keep looking for a better one 13999 ac_cv_path_FGREP="$ac_path_FGREP" 14000 ac_path_FGREP_max=$ac_count 14001 fi 14002 # 10*(2^10) chars as input seems more than enough 14003 test $ac_count -gt 10 && break 14004 done 14005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14006 esac 14007 14008 $ac_path_FGREP_found && break 3 14009 done 14010 done 14011 done 14012 IFS=$as_save_IFS 14013 if test -z "$ac_cv_path_FGREP"; then 14014 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14015 fi 14016 else 14017 ac_cv_path_FGREP=$FGREP 14018 fi 14019 14020 fi 14021 fi 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14023 $as_echo "$ac_cv_path_FGREP" >&6; } 14024 FGREP="$ac_cv_path_FGREP" 14025 14026 14027 else 14028 # If it succeeded, then it was overridden by the user. We will use it 14029 # for the tool. 14030 14031 # First remove it from the list of overridden variables, so we can test 14032 # for unknown variables in the end. 14033 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14034 14035 # Check if we try to supply an empty value 14036 if test "x$FGREP" = x; then 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 14038 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14040 $as_echo_n "checking for FGREP... " >&6; } 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14042 $as_echo "disabled" >&6; } 14043 else 14044 # Check if the provided tool contains a complete path. 14045 tool_specified="$FGREP" 14046 tool_basename="${tool_specified##*/}" 14047 if test "x$tool_basename" = "x$tool_specified"; then 14048 # A command without a complete path is provided, search $PATH. 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 14050 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 14051 # Extract the first word of "$tool_basename", so it can be a program name with args. 14052 set dummy $tool_basename; ac_word=$2 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14054 $as_echo_n "checking for $ac_word... " >&6; } 14055 if ${ac_cv_path_FGREP+:} false; then : 14056 $as_echo_n "(cached) " >&6 14057 else 14058 case $FGREP in 14059 [\\/]* | ?:[\\/]*) 14060 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 14061 ;; 14062 *) 14063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14064 for as_dir in $PATH 14065 do 14066 IFS=$as_save_IFS 14067 test -z "$as_dir" && as_dir=. 14068 for ac_exec_ext in '' $ac_executable_extensions; do 14069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14070 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14072 break 2 14073 fi 14074 done 14075 done 14076 IFS=$as_save_IFS 14077 14078 ;; 14079 esac 14080 fi 14081 FGREP=$ac_cv_path_FGREP 14082 if test -n "$FGREP"; then 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14084 $as_echo "$FGREP" >&6; } 14085 else 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14087 $as_echo "no" >&6; } 14088 fi 14089 14090 14091 if test "x$FGREP" = x; then 14092 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14093 fi 14094 else 14095 # Otherwise we believe it is a complete path. Use it as it is. 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14097 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14099 $as_echo_n "checking for FGREP... " >&6; } 14100 if test ! -x "$tool_specified"; then 14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14102 $as_echo "not found" >&6; } 14103 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14104 fi 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14106 $as_echo "$tool_specified" >&6; } 14107 fi 14108 fi 14109 fi 14110 14111 fi 14112 14113 14114 if test "x$FGREP" = x; then 14115 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14116 fi 14117 14118 14119 14120 14121 # Publish this variable in the help. 14122 14123 14124 if [ -z "${SED+x}" ]; then 14125 # The variable is not set by user, try to locate tool using the code snippet 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14127 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14128 if ${ac_cv_path_SED+:} false; then : 14129 $as_echo_n "(cached) " >&6 14130 else 14131 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14132 for ac_i in 1 2 3 4 5 6 7; do 14133 ac_script="$ac_script$as_nl$ac_script" 14134 done 14135 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14136 { ac_script=; unset ac_script;} 14137 if test -z "$SED"; then 14138 ac_path_SED_found=false 14139 # Loop through the user's path and test for each of PROGNAME-LIST 14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14141 for as_dir in $PATH 14142 do 14143 IFS=$as_save_IFS 14144 test -z "$as_dir" && as_dir=. 14145 for ac_prog in sed gsed; do 14146 for ac_exec_ext in '' $ac_executable_extensions; do 14147 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14148 as_fn_executable_p "$ac_path_SED" || continue 14149 # Check for GNU ac_path_SED and select it if it is found. 14150 # Check for GNU $ac_path_SED 14151 case `"$ac_path_SED" --version 2>&1` in 14152 *GNU*) 14153 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14154 *) 14155 ac_count=0 14156 $as_echo_n 0123456789 >"conftest.in" 14157 while : 14158 do 14159 cat "conftest.in" "conftest.in" >"conftest.tmp" 14160 mv "conftest.tmp" "conftest.in" 14161 cp "conftest.in" "conftest.nl" 14162 $as_echo '' >> "conftest.nl" 14163 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14165 as_fn_arith $ac_count + 1 && ac_count=$as_val 14166 if test $ac_count -gt ${ac_path_SED_max-0}; then 14167 # Best one so far, save it but keep looking for a better one 14168 ac_cv_path_SED="$ac_path_SED" 14169 ac_path_SED_max=$ac_count 14170 fi 14171 # 10*(2^10) chars as input seems more than enough 14172 test $ac_count -gt 10 && break 14173 done 14174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14175 esac 14176 14177 $ac_path_SED_found && break 3 14178 done 14179 done 14180 done 14181 IFS=$as_save_IFS 14182 if test -z "$ac_cv_path_SED"; then 14183 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14184 fi 14185 else 14186 ac_cv_path_SED=$SED 14187 fi 14188 14189 fi 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14191 $as_echo "$ac_cv_path_SED" >&6; } 14192 SED="$ac_cv_path_SED" 14193 rm -f conftest.sed 14194 14195 else 14196 # The variable is set, but is it from the command line or the environment? 14197 14198 # Try to remove the string !SED! from our list. 14199 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14200 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14201 # If it failed, the variable was not from the command line. Ignore it, 14202 # but warn the user (except for BASH, which is always set by the calling BASH). 14203 if test "xSED" != xBASH; then 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14205 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14206 fi 14207 # Try to locate tool using the code snippet 14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14209 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14210 if ${ac_cv_path_SED+:} false; then : 14211 $as_echo_n "(cached) " >&6 14212 else 14213 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14214 for ac_i in 1 2 3 4 5 6 7; do 14215 ac_script="$ac_script$as_nl$ac_script" 14216 done 14217 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14218 { ac_script=; unset ac_script;} 14219 if test -z "$SED"; then 14220 ac_path_SED_found=false 14221 # Loop through the user's path and test for each of PROGNAME-LIST 14222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14223 for as_dir in $PATH 14224 do 14225 IFS=$as_save_IFS 14226 test -z "$as_dir" && as_dir=. 14227 for ac_prog in sed gsed; do 14228 for ac_exec_ext in '' $ac_executable_extensions; do 14229 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14230 as_fn_executable_p "$ac_path_SED" || continue 14231 # Check for GNU ac_path_SED and select it if it is found. 14232 # Check for GNU $ac_path_SED 14233 case `"$ac_path_SED" --version 2>&1` in 14234 *GNU*) 14235 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14236 *) 14237 ac_count=0 14238 $as_echo_n 0123456789 >"conftest.in" 14239 while : 14240 do 14241 cat "conftest.in" "conftest.in" >"conftest.tmp" 14242 mv "conftest.tmp" "conftest.in" 14243 cp "conftest.in" "conftest.nl" 14244 $as_echo '' >> "conftest.nl" 14245 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14247 as_fn_arith $ac_count + 1 && ac_count=$as_val 14248 if test $ac_count -gt ${ac_path_SED_max-0}; then 14249 # Best one so far, save it but keep looking for a better one 14250 ac_cv_path_SED="$ac_path_SED" 14251 ac_path_SED_max=$ac_count 14252 fi 14253 # 10*(2^10) chars as input seems more than enough 14254 test $ac_count -gt 10 && break 14255 done 14256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14257 esac 14258 14259 $ac_path_SED_found && break 3 14260 done 14261 done 14262 done 14263 IFS=$as_save_IFS 14264 if test -z "$ac_cv_path_SED"; then 14265 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14266 fi 14267 else 14268 ac_cv_path_SED=$SED 14269 fi 14270 14271 fi 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14273 $as_echo "$ac_cv_path_SED" >&6; } 14274 SED="$ac_cv_path_SED" 14275 rm -f conftest.sed 14276 14277 else 14278 # If it succeeded, then it was overridden by the user. We will use it 14279 # for the tool. 14280 14281 # First remove it from the list of overridden variables, so we can test 14282 # for unknown variables in the end. 14283 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14284 14285 # Check if we try to supply an empty value 14286 if test "x$SED" = x; then 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14288 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14290 $as_echo_n "checking for SED... " >&6; } 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14292 $as_echo "disabled" >&6; } 14293 else 14294 # Check if the provided tool contains a complete path. 14295 tool_specified="$SED" 14296 tool_basename="${tool_specified##*/}" 14297 if test "x$tool_basename" = "x$tool_specified"; then 14298 # A command without a complete path is provided, search $PATH. 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14300 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14301 # Extract the first word of "$tool_basename", so it can be a program name with args. 14302 set dummy $tool_basename; ac_word=$2 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14304 $as_echo_n "checking for $ac_word... " >&6; } 14305 if ${ac_cv_path_SED+:} false; then : 14306 $as_echo_n "(cached) " >&6 14307 else 14308 case $SED in 14309 [\\/]* | ?:[\\/]*) 14310 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14311 ;; 14312 *) 14313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14314 for as_dir in $PATH 14315 do 14316 IFS=$as_save_IFS 14317 test -z "$as_dir" && as_dir=. 14318 for ac_exec_ext in '' $ac_executable_extensions; do 14319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14320 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14322 break 2 14323 fi 14324 done 14325 done 14326 IFS=$as_save_IFS 14327 14328 ;; 14329 esac 14330 fi 14331 SED=$ac_cv_path_SED 14332 if test -n "$SED"; then 14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14334 $as_echo "$SED" >&6; } 14335 else 14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14337 $as_echo "no" >&6; } 14338 fi 14339 14340 14341 if test "x$SED" = x; then 14342 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14343 fi 14344 else 14345 # Otherwise we believe it is a complete path. Use it as it is. 14346 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14347 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14349 $as_echo_n "checking for SED... " >&6; } 14350 if test ! -x "$tool_specified"; then 14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14352 $as_echo "not found" >&6; } 14353 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14354 fi 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14356 $as_echo "$tool_specified" >&6; } 14357 fi 14358 fi 14359 fi 14360 14361 fi 14362 14363 14364 if test "x$SED" = x; then 14365 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14366 fi 14367 14368 14369 14370 # Always force rm. 14371 RM="$RM -f" 14372 14373 # pwd behaves differently on various platforms and some don't support the -L flag. 14374 # Always use the bash builtin pwd to get uniform behavior. 14375 THEPWDCMD=pwd 14376 14377 # These are not required on all platforms 14378 14379 14380 # Publish this variable in the help. 14381 14382 14383 if [ -z "${CYGPATH+x}" ]; then 14384 # The variable is not set by user, try to locate tool using the code snippet 14385 for ac_prog in cygpath 14386 do 14387 # Extract the first word of "$ac_prog", so it can be a program name with args. 14388 set dummy $ac_prog; ac_word=$2 14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14390 $as_echo_n "checking for $ac_word... " >&6; } 14391 if ${ac_cv_path_CYGPATH+:} false; then : 14392 $as_echo_n "(cached) " >&6 14393 else 14394 case $CYGPATH in 14395 [\\/]* | ?:[\\/]*) 14396 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14397 ;; 14398 *) 14399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14400 for as_dir in $PATH 14401 do 14402 IFS=$as_save_IFS 14403 test -z "$as_dir" && as_dir=. 14404 for ac_exec_ext in '' $ac_executable_extensions; do 14405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14406 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14408 break 2 14409 fi 14410 done 14411 done 14412 IFS=$as_save_IFS 14413 14414 ;; 14415 esac 14416 fi 14417 CYGPATH=$ac_cv_path_CYGPATH 14418 if test -n "$CYGPATH"; then 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14420 $as_echo "$CYGPATH" >&6; } 14421 else 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14423 $as_echo "no" >&6; } 14424 fi 14425 14426 14427 test -n "$CYGPATH" && break 14428 done 14429 14430 else 14431 # The variable is set, but is it from the command line or the environment? 14432 14433 # Try to remove the string !CYGPATH! from our list. 14434 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14435 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14436 # If it failed, the variable was not from the command line. Ignore it, 14437 # but warn the user (except for BASH, which is always set by the calling BASH). 14438 if test "xCYGPATH" != xBASH; then 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14440 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14441 fi 14442 # Try to locate tool using the code snippet 14443 for ac_prog in cygpath 14444 do 14445 # Extract the first word of "$ac_prog", so it can be a program name with args. 14446 set dummy $ac_prog; ac_word=$2 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14448 $as_echo_n "checking for $ac_word... " >&6; } 14449 if ${ac_cv_path_CYGPATH+:} false; then : 14450 $as_echo_n "(cached) " >&6 14451 else 14452 case $CYGPATH in 14453 [\\/]* | ?:[\\/]*) 14454 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14455 ;; 14456 *) 14457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14458 for as_dir in $PATH 14459 do 14460 IFS=$as_save_IFS 14461 test -z "$as_dir" && as_dir=. 14462 for ac_exec_ext in '' $ac_executable_extensions; do 14463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14464 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14466 break 2 14467 fi 14468 done 14469 done 14470 IFS=$as_save_IFS 14471 14472 ;; 14473 esac 14474 fi 14475 CYGPATH=$ac_cv_path_CYGPATH 14476 if test -n "$CYGPATH"; then 14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14478 $as_echo "$CYGPATH" >&6; } 14479 else 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14481 $as_echo "no" >&6; } 14482 fi 14483 14484 14485 test -n "$CYGPATH" && break 14486 done 14487 14488 else 14489 # If it succeeded, then it was overridden by the user. We will use it 14490 # for the tool. 14491 14492 # First remove it from the list of overridden variables, so we can test 14493 # for unknown variables in the end. 14494 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14495 14496 # Check if we try to supply an empty value 14497 if test "x$CYGPATH" = x; then 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14499 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14501 $as_echo_n "checking for CYGPATH... " >&6; } 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14503 $as_echo "disabled" >&6; } 14504 else 14505 # Check if the provided tool contains a complete path. 14506 tool_specified="$CYGPATH" 14507 tool_basename="${tool_specified##*/}" 14508 if test "x$tool_basename" = "x$tool_specified"; then 14509 # A command without a complete path is provided, search $PATH. 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14511 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14512 # Extract the first word of "$tool_basename", so it can be a program name with args. 14513 set dummy $tool_basename; ac_word=$2 14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14515 $as_echo_n "checking for $ac_word... " >&6; } 14516 if ${ac_cv_path_CYGPATH+:} false; then : 14517 $as_echo_n "(cached) " >&6 14518 else 14519 case $CYGPATH in 14520 [\\/]* | ?:[\\/]*) 14521 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14522 ;; 14523 *) 14524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14525 for as_dir in $PATH 14526 do 14527 IFS=$as_save_IFS 14528 test -z "$as_dir" && as_dir=. 14529 for ac_exec_ext in '' $ac_executable_extensions; do 14530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14531 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14533 break 2 14534 fi 14535 done 14536 done 14537 IFS=$as_save_IFS 14538 14539 ;; 14540 esac 14541 fi 14542 CYGPATH=$ac_cv_path_CYGPATH 14543 if test -n "$CYGPATH"; then 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14545 $as_echo "$CYGPATH" >&6; } 14546 else 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14548 $as_echo "no" >&6; } 14549 fi 14550 14551 14552 if test "x$CYGPATH" = x; then 14553 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14554 fi 14555 else 14556 # Otherwise we believe it is a complete path. Use it as it is. 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14558 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14560 $as_echo_n "checking for CYGPATH... " >&6; } 14561 if test ! -x "$tool_specified"; then 14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14563 $as_echo "not found" >&6; } 14564 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14565 fi 14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14567 $as_echo "$tool_specified" >&6; } 14568 fi 14569 fi 14570 fi 14571 14572 fi 14573 14574 14575 14576 14577 # Publish this variable in the help. 14578 14579 14580 if [ -z "${READLINK+x}" ]; then 14581 # The variable is not set by user, try to locate tool using the code snippet 14582 for ac_prog in greadlink readlink 14583 do 14584 # Extract the first word of "$ac_prog", so it can be a program name with args. 14585 set dummy $ac_prog; ac_word=$2 14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14587 $as_echo_n "checking for $ac_word... " >&6; } 14588 if ${ac_cv_path_READLINK+:} false; then : 14589 $as_echo_n "(cached) " >&6 14590 else 14591 case $READLINK in 14592 [\\/]* | ?:[\\/]*) 14593 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14594 ;; 14595 *) 14596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14597 for as_dir in $PATH 14598 do 14599 IFS=$as_save_IFS 14600 test -z "$as_dir" && as_dir=. 14601 for ac_exec_ext in '' $ac_executable_extensions; do 14602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14603 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14605 break 2 14606 fi 14607 done 14608 done 14609 IFS=$as_save_IFS 14610 14611 ;; 14612 esac 14613 fi 14614 READLINK=$ac_cv_path_READLINK 14615 if test -n "$READLINK"; then 14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14617 $as_echo "$READLINK" >&6; } 14618 else 14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14620 $as_echo "no" >&6; } 14621 fi 14622 14623 14624 test -n "$READLINK" && break 14625 done 14626 14627 else 14628 # The variable is set, but is it from the command line or the environment? 14629 14630 # Try to remove the string !READLINK! from our list. 14631 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14632 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14633 # If it failed, the variable was not from the command line. Ignore it, 14634 # but warn the user (except for BASH, which is always set by the calling BASH). 14635 if test "xREADLINK" != xBASH; then 14636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14637 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14638 fi 14639 # Try to locate tool using the code snippet 14640 for ac_prog in greadlink readlink 14641 do 14642 # Extract the first word of "$ac_prog", so it can be a program name with args. 14643 set dummy $ac_prog; ac_word=$2 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14645 $as_echo_n "checking for $ac_word... " >&6; } 14646 if ${ac_cv_path_READLINK+:} false; then : 14647 $as_echo_n "(cached) " >&6 14648 else 14649 case $READLINK in 14650 [\\/]* | ?:[\\/]*) 14651 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14652 ;; 14653 *) 14654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14655 for as_dir in $PATH 14656 do 14657 IFS=$as_save_IFS 14658 test -z "$as_dir" && as_dir=. 14659 for ac_exec_ext in '' $ac_executable_extensions; do 14660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14661 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14663 break 2 14664 fi 14665 done 14666 done 14667 IFS=$as_save_IFS 14668 14669 ;; 14670 esac 14671 fi 14672 READLINK=$ac_cv_path_READLINK 14673 if test -n "$READLINK"; then 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14675 $as_echo "$READLINK" >&6; } 14676 else 14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14678 $as_echo "no" >&6; } 14679 fi 14680 14681 14682 test -n "$READLINK" && break 14683 done 14684 14685 else 14686 # If it succeeded, then it was overridden by the user. We will use it 14687 # for the tool. 14688 14689 # First remove it from the list of overridden variables, so we can test 14690 # for unknown variables in the end. 14691 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14692 14693 # Check if we try to supply an empty value 14694 if test "x$READLINK" = x; then 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14696 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14698 $as_echo_n "checking for READLINK... " >&6; } 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14700 $as_echo "disabled" >&6; } 14701 else 14702 # Check if the provided tool contains a complete path. 14703 tool_specified="$READLINK" 14704 tool_basename="${tool_specified##*/}" 14705 if test "x$tool_basename" = "x$tool_specified"; then 14706 # A command without a complete path is provided, search $PATH. 14707 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14708 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14709 # Extract the first word of "$tool_basename", so it can be a program name with args. 14710 set dummy $tool_basename; ac_word=$2 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14712 $as_echo_n "checking for $ac_word... " >&6; } 14713 if ${ac_cv_path_READLINK+:} false; then : 14714 $as_echo_n "(cached) " >&6 14715 else 14716 case $READLINK in 14717 [\\/]* | ?:[\\/]*) 14718 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14719 ;; 14720 *) 14721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14722 for as_dir in $PATH 14723 do 14724 IFS=$as_save_IFS 14725 test -z "$as_dir" && as_dir=. 14726 for ac_exec_ext in '' $ac_executable_extensions; do 14727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14728 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14730 break 2 14731 fi 14732 done 14733 done 14734 IFS=$as_save_IFS 14735 14736 ;; 14737 esac 14738 fi 14739 READLINK=$ac_cv_path_READLINK 14740 if test -n "$READLINK"; then 14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14742 $as_echo "$READLINK" >&6; } 14743 else 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14745 $as_echo "no" >&6; } 14746 fi 14747 14748 14749 if test "x$READLINK" = x; then 14750 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14751 fi 14752 else 14753 # Otherwise we believe it is a complete path. Use it as it is. 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14755 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14757 $as_echo_n "checking for READLINK... " >&6; } 14758 if test ! -x "$tool_specified"; then 14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14760 $as_echo "not found" >&6; } 14761 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14762 fi 14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14764 $as_echo "$tool_specified" >&6; } 14765 fi 14766 fi 14767 fi 14768 14769 fi 14770 14771 14772 14773 14774 # Publish this variable in the help. 14775 14776 14777 if [ -z "${DF+x}" ]; then 14778 # The variable is not set by user, try to locate tool using the code snippet 14779 for ac_prog in df 14780 do 14781 # Extract the first word of "$ac_prog", so it can be a program name with args. 14782 set dummy $ac_prog; ac_word=$2 14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14784 $as_echo_n "checking for $ac_word... " >&6; } 14785 if ${ac_cv_path_DF+:} false; then : 14786 $as_echo_n "(cached) " >&6 14787 else 14788 case $DF in 14789 [\\/]* | ?:[\\/]*) 14790 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14791 ;; 14792 *) 14793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14794 for as_dir in $PATH 14795 do 14796 IFS=$as_save_IFS 14797 test -z "$as_dir" && as_dir=. 14798 for ac_exec_ext in '' $ac_executable_extensions; do 14799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14800 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14802 break 2 14803 fi 14804 done 14805 done 14806 IFS=$as_save_IFS 14807 14808 ;; 14809 esac 14810 fi 14811 DF=$ac_cv_path_DF 14812 if test -n "$DF"; then 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14814 $as_echo "$DF" >&6; } 14815 else 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14817 $as_echo "no" >&6; } 14818 fi 14819 14820 14821 test -n "$DF" && break 14822 done 14823 14824 else 14825 # The variable is set, but is it from the command line or the environment? 14826 14827 # Try to remove the string !DF! from our list. 14828 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14829 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14830 # If it failed, the variable was not from the command line. Ignore it, 14831 # but warn the user (except for BASH, which is always set by the calling BASH). 14832 if test "xDF" != xBASH; then 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14834 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14835 fi 14836 # Try to locate tool using the code snippet 14837 for ac_prog in df 14838 do 14839 # Extract the first word of "$ac_prog", so it can be a program name with args. 14840 set dummy $ac_prog; ac_word=$2 14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14842 $as_echo_n "checking for $ac_word... " >&6; } 14843 if ${ac_cv_path_DF+:} false; then : 14844 $as_echo_n "(cached) " >&6 14845 else 14846 case $DF in 14847 [\\/]* | ?:[\\/]*) 14848 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14849 ;; 14850 *) 14851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14852 for as_dir in $PATH 14853 do 14854 IFS=$as_save_IFS 14855 test -z "$as_dir" && as_dir=. 14856 for ac_exec_ext in '' $ac_executable_extensions; do 14857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14858 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14860 break 2 14861 fi 14862 done 14863 done 14864 IFS=$as_save_IFS 14865 14866 ;; 14867 esac 14868 fi 14869 DF=$ac_cv_path_DF 14870 if test -n "$DF"; then 14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14872 $as_echo "$DF" >&6; } 14873 else 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14875 $as_echo "no" >&6; } 14876 fi 14877 14878 14879 test -n "$DF" && break 14880 done 14881 14882 else 14883 # If it succeeded, then it was overridden by the user. We will use it 14884 # for the tool. 14885 14886 # First remove it from the list of overridden variables, so we can test 14887 # for unknown variables in the end. 14888 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14889 14890 # Check if we try to supply an empty value 14891 if test "x$DF" = x; then 14892 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14893 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14895 $as_echo_n "checking for DF... " >&6; } 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14897 $as_echo "disabled" >&6; } 14898 else 14899 # Check if the provided tool contains a complete path. 14900 tool_specified="$DF" 14901 tool_basename="${tool_specified##*/}" 14902 if test "x$tool_basename" = "x$tool_specified"; then 14903 # A command without a complete path is provided, search $PATH. 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14905 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14906 # Extract the first word of "$tool_basename", so it can be a program name with args. 14907 set dummy $tool_basename; ac_word=$2 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14909 $as_echo_n "checking for $ac_word... " >&6; } 14910 if ${ac_cv_path_DF+:} false; then : 14911 $as_echo_n "(cached) " >&6 14912 else 14913 case $DF in 14914 [\\/]* | ?:[\\/]*) 14915 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14916 ;; 14917 *) 14918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14919 for as_dir in $PATH 14920 do 14921 IFS=$as_save_IFS 14922 test -z "$as_dir" && as_dir=. 14923 for ac_exec_ext in '' $ac_executable_extensions; do 14924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14925 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14927 break 2 14928 fi 14929 done 14930 done 14931 IFS=$as_save_IFS 14932 14933 ;; 14934 esac 14935 fi 14936 DF=$ac_cv_path_DF 14937 if test -n "$DF"; then 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14939 $as_echo "$DF" >&6; } 14940 else 14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14942 $as_echo "no" >&6; } 14943 fi 14944 14945 14946 if test "x$DF" = x; then 14947 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14948 fi 14949 else 14950 # Otherwise we believe it is a complete path. Use it as it is. 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14952 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14954 $as_echo_n "checking for DF... " >&6; } 14955 if test ! -x "$tool_specified"; then 14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14957 $as_echo "not found" >&6; } 14958 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14959 fi 14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14961 $as_echo "$tool_specified" >&6; } 14962 fi 14963 fi 14964 fi 14965 14966 fi 14967 14968 14969 14970 14971 # Publish this variable in the help. 14972 14973 14974 if [ -z "${CPIO+x}" ]; then 14975 # The variable is not set by user, try to locate tool using the code snippet 14976 for ac_prog in cpio bsdcpio 14977 do 14978 # Extract the first word of "$ac_prog", so it can be a program name with args. 14979 set dummy $ac_prog; ac_word=$2 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14981 $as_echo_n "checking for $ac_word... " >&6; } 14982 if ${ac_cv_path_CPIO+:} false; then : 14983 $as_echo_n "(cached) " >&6 14984 else 14985 case $CPIO in 14986 [\\/]* | ?:[\\/]*) 14987 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14988 ;; 14989 *) 14990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14991 for as_dir in $PATH 14992 do 14993 IFS=$as_save_IFS 14994 test -z "$as_dir" && as_dir=. 14995 for ac_exec_ext in '' $ac_executable_extensions; do 14996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14997 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14999 break 2 15000 fi 15001 done 15002 done 15003 IFS=$as_save_IFS 15004 15005 ;; 15006 esac 15007 fi 15008 CPIO=$ac_cv_path_CPIO 15009 if test -n "$CPIO"; then 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15011 $as_echo "$CPIO" >&6; } 15012 else 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15014 $as_echo "no" >&6; } 15015 fi 15016 15017 15018 test -n "$CPIO" && break 15019 done 15020 15021 else 15022 # The variable is set, but is it from the command line or the environment? 15023 15024 # Try to remove the string !CPIO! from our list. 15025 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 15026 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15027 # If it failed, the variable was not from the command line. Ignore it, 15028 # but warn the user (except for BASH, which is always set by the calling BASH). 15029 if test "xCPIO" != xBASH; then 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 15031 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 15032 fi 15033 # Try to locate tool using the code snippet 15034 for ac_prog in cpio bsdcpio 15035 do 15036 # Extract the first word of "$ac_prog", so it can be a program name with args. 15037 set dummy $ac_prog; ac_word=$2 15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15039 $as_echo_n "checking for $ac_word... " >&6; } 15040 if ${ac_cv_path_CPIO+:} false; then : 15041 $as_echo_n "(cached) " >&6 15042 else 15043 case $CPIO in 15044 [\\/]* | ?:[\\/]*) 15045 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15046 ;; 15047 *) 15048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15049 for as_dir in $PATH 15050 do 15051 IFS=$as_save_IFS 15052 test -z "$as_dir" && as_dir=. 15053 for ac_exec_ext in '' $ac_executable_extensions; do 15054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15055 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15057 break 2 15058 fi 15059 done 15060 done 15061 IFS=$as_save_IFS 15062 15063 ;; 15064 esac 15065 fi 15066 CPIO=$ac_cv_path_CPIO 15067 if test -n "$CPIO"; then 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15069 $as_echo "$CPIO" >&6; } 15070 else 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15072 $as_echo "no" >&6; } 15073 fi 15074 15075 15076 test -n "$CPIO" && break 15077 done 15078 15079 else 15080 # If it succeeded, then it was overridden by the user. We will use it 15081 # for the tool. 15082 15083 # First remove it from the list of overridden variables, so we can test 15084 # for unknown variables in the end. 15085 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15086 15087 # Check if we try to supply an empty value 15088 if test "x$CPIO" = x; then 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15090 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15092 $as_echo_n "checking for CPIO... " >&6; } 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15094 $as_echo "disabled" >&6; } 15095 else 15096 # Check if the provided tool contains a complete path. 15097 tool_specified="$CPIO" 15098 tool_basename="${tool_specified##*/}" 15099 if test "x$tool_basename" = "x$tool_specified"; then 15100 # A command without a complete path is provided, search $PATH. 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15102 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15103 # Extract the first word of "$tool_basename", so it can be a program name with args. 15104 set dummy $tool_basename; ac_word=$2 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15106 $as_echo_n "checking for $ac_word... " >&6; } 15107 if ${ac_cv_path_CPIO+:} false; then : 15108 $as_echo_n "(cached) " >&6 15109 else 15110 case $CPIO in 15111 [\\/]* | ?:[\\/]*) 15112 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15113 ;; 15114 *) 15115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15116 for as_dir in $PATH 15117 do 15118 IFS=$as_save_IFS 15119 test -z "$as_dir" && as_dir=. 15120 for ac_exec_ext in '' $ac_executable_extensions; do 15121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15122 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15124 break 2 15125 fi 15126 done 15127 done 15128 IFS=$as_save_IFS 15129 15130 ;; 15131 esac 15132 fi 15133 CPIO=$ac_cv_path_CPIO 15134 if test -n "$CPIO"; then 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15136 $as_echo "$CPIO" >&6; } 15137 else 15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15139 $as_echo "no" >&6; } 15140 fi 15141 15142 15143 if test "x$CPIO" = x; then 15144 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15145 fi 15146 else 15147 # Otherwise we believe it is a complete path. Use it as it is. 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15149 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15151 $as_echo_n "checking for CPIO... " >&6; } 15152 if test ! -x "$tool_specified"; then 15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15154 $as_echo "not found" >&6; } 15155 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15156 fi 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15158 $as_echo "$tool_specified" >&6; } 15159 fi 15160 fi 15161 fi 15162 15163 fi 15164 15165 15166 15167 15168 # Publish this variable in the help. 15169 15170 15171 if [ -z "${NICE+x}" ]; then 15172 # The variable is not set by user, try to locate tool using the code snippet 15173 for ac_prog in nice 15174 do 15175 # Extract the first word of "$ac_prog", so it can be a program name with args. 15176 set dummy $ac_prog; ac_word=$2 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15178 $as_echo_n "checking for $ac_word... " >&6; } 15179 if ${ac_cv_path_NICE+:} false; then : 15180 $as_echo_n "(cached) " >&6 15181 else 15182 case $NICE in 15183 [\\/]* | ?:[\\/]*) 15184 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15185 ;; 15186 *) 15187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15188 for as_dir in $PATH 15189 do 15190 IFS=$as_save_IFS 15191 test -z "$as_dir" && as_dir=. 15192 for ac_exec_ext in '' $ac_executable_extensions; do 15193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15194 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15196 break 2 15197 fi 15198 done 15199 done 15200 IFS=$as_save_IFS 15201 15202 ;; 15203 esac 15204 fi 15205 NICE=$ac_cv_path_NICE 15206 if test -n "$NICE"; then 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15208 $as_echo "$NICE" >&6; } 15209 else 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15211 $as_echo "no" >&6; } 15212 fi 15213 15214 15215 test -n "$NICE" && break 15216 done 15217 15218 else 15219 # The variable is set, but is it from the command line or the environment? 15220 15221 # Try to remove the string !NICE! from our list. 15222 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15223 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15224 # If it failed, the variable was not from the command line. Ignore it, 15225 # but warn the user (except for BASH, which is always set by the calling BASH). 15226 if test "xNICE" != xBASH; then 15227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15228 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15229 fi 15230 # Try to locate tool using the code snippet 15231 for ac_prog in nice 15232 do 15233 # Extract the first word of "$ac_prog", so it can be a program name with args. 15234 set dummy $ac_prog; ac_word=$2 15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15236 $as_echo_n "checking for $ac_word... " >&6; } 15237 if ${ac_cv_path_NICE+:} false; then : 15238 $as_echo_n "(cached) " >&6 15239 else 15240 case $NICE in 15241 [\\/]* | ?:[\\/]*) 15242 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15243 ;; 15244 *) 15245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15246 for as_dir in $PATH 15247 do 15248 IFS=$as_save_IFS 15249 test -z "$as_dir" && as_dir=. 15250 for ac_exec_ext in '' $ac_executable_extensions; do 15251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15252 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15254 break 2 15255 fi 15256 done 15257 done 15258 IFS=$as_save_IFS 15259 15260 ;; 15261 esac 15262 fi 15263 NICE=$ac_cv_path_NICE 15264 if test -n "$NICE"; then 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15266 $as_echo "$NICE" >&6; } 15267 else 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15269 $as_echo "no" >&6; } 15270 fi 15271 15272 15273 test -n "$NICE" && break 15274 done 15275 15276 else 15277 # If it succeeded, then it was overridden by the user. We will use it 15278 # for the tool. 15279 15280 # First remove it from the list of overridden variables, so we can test 15281 # for unknown variables in the end. 15282 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15283 15284 # Check if we try to supply an empty value 15285 if test "x$NICE" = x; then 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15287 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15289 $as_echo_n "checking for NICE... " >&6; } 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15291 $as_echo "disabled" >&6; } 15292 else 15293 # Check if the provided tool contains a complete path. 15294 tool_specified="$NICE" 15295 tool_basename="${tool_specified##*/}" 15296 if test "x$tool_basename" = "x$tool_specified"; then 15297 # A command without a complete path is provided, search $PATH. 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15299 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15300 # Extract the first word of "$tool_basename", so it can be a program name with args. 15301 set dummy $tool_basename; ac_word=$2 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15303 $as_echo_n "checking for $ac_word... " >&6; } 15304 if ${ac_cv_path_NICE+:} false; then : 15305 $as_echo_n "(cached) " >&6 15306 else 15307 case $NICE in 15308 [\\/]* | ?:[\\/]*) 15309 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15310 ;; 15311 *) 15312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15313 for as_dir in $PATH 15314 do 15315 IFS=$as_save_IFS 15316 test -z "$as_dir" && as_dir=. 15317 for ac_exec_ext in '' $ac_executable_extensions; do 15318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15319 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15321 break 2 15322 fi 15323 done 15324 done 15325 IFS=$as_save_IFS 15326 15327 ;; 15328 esac 15329 fi 15330 NICE=$ac_cv_path_NICE 15331 if test -n "$NICE"; then 15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15333 $as_echo "$NICE" >&6; } 15334 else 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15336 $as_echo "no" >&6; } 15337 fi 15338 15339 15340 if test "x$NICE" = x; then 15341 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15342 fi 15343 else 15344 # Otherwise we believe it is a complete path. Use it as it is. 15345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15346 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15348 $as_echo_n "checking for NICE... " >&6; } 15349 if test ! -x "$tool_specified"; then 15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15351 $as_echo "not found" >&6; } 15352 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15353 fi 15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15355 $as_echo "$tool_specified" >&6; } 15356 fi 15357 fi 15358 fi 15359 15360 fi 15361 15362 15363 15364 15365 # Publish this variable in the help. 15366 15367 15368 if [ -z "${PANDOC+x}" ]; then 15369 # The variable is not set by user, try to locate tool using the code snippet 15370 for ac_prog in pandoc 15371 do 15372 # Extract the first word of "$ac_prog", so it can be a program name with args. 15373 set dummy $ac_prog; ac_word=$2 15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15375 $as_echo_n "checking for $ac_word... " >&6; } 15376 if ${ac_cv_path_PANDOC+:} false; then : 15377 $as_echo_n "(cached) " >&6 15378 else 15379 case $PANDOC in 15380 [\\/]* | ?:[\\/]*) 15381 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15382 ;; 15383 *) 15384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15385 for as_dir in $PATH 15386 do 15387 IFS=$as_save_IFS 15388 test -z "$as_dir" && as_dir=. 15389 for ac_exec_ext in '' $ac_executable_extensions; do 15390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15391 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15393 break 2 15394 fi 15395 done 15396 done 15397 IFS=$as_save_IFS 15398 15399 ;; 15400 esac 15401 fi 15402 PANDOC=$ac_cv_path_PANDOC 15403 if test -n "$PANDOC"; then 15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15405 $as_echo "$PANDOC" >&6; } 15406 else 15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15408 $as_echo "no" >&6; } 15409 fi 15410 15411 15412 test -n "$PANDOC" && break 15413 done 15414 15415 else 15416 # The variable is set, but is it from the command line or the environment? 15417 15418 # Try to remove the string !PANDOC! from our list. 15419 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/} 15420 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15421 # If it failed, the variable was not from the command line. Ignore it, 15422 # but warn the user (except for BASH, which is always set by the calling BASH). 15423 if test "xPANDOC" != xBASH; then 15424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5 15425 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;} 15426 fi 15427 # Try to locate tool using the code snippet 15428 for ac_prog in pandoc 15429 do 15430 # Extract the first word of "$ac_prog", so it can be a program name with args. 15431 set dummy $ac_prog; ac_word=$2 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15433 $as_echo_n "checking for $ac_word... " >&6; } 15434 if ${ac_cv_path_PANDOC+:} false; then : 15435 $as_echo_n "(cached) " >&6 15436 else 15437 case $PANDOC in 15438 [\\/]* | ?:[\\/]*) 15439 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15440 ;; 15441 *) 15442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15443 for as_dir in $PATH 15444 do 15445 IFS=$as_save_IFS 15446 test -z "$as_dir" && as_dir=. 15447 for ac_exec_ext in '' $ac_executable_extensions; do 15448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15449 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15451 break 2 15452 fi 15453 done 15454 done 15455 IFS=$as_save_IFS 15456 15457 ;; 15458 esac 15459 fi 15460 PANDOC=$ac_cv_path_PANDOC 15461 if test -n "$PANDOC"; then 15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15463 $as_echo "$PANDOC" >&6; } 15464 else 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15466 $as_echo "no" >&6; } 15467 fi 15468 15469 15470 test -n "$PANDOC" && break 15471 done 15472 15473 else 15474 # If it succeeded, then it was overridden by the user. We will use it 15475 # for the tool. 15476 15477 # First remove it from the list of overridden variables, so we can test 15478 # for unknown variables in the end. 15479 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15480 15481 # Check if we try to supply an empty value 15482 if test "x$PANDOC" = x; then 15483 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5 15484 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;} 15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15486 $as_echo_n "checking for PANDOC... " >&6; } 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15488 $as_echo "disabled" >&6; } 15489 else 15490 # Check if the provided tool contains a complete path. 15491 tool_specified="$PANDOC" 15492 tool_basename="${tool_specified##*/}" 15493 if test "x$tool_basename" = "x$tool_specified"; then 15494 # A command without a complete path is provided, search $PATH. 15495 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5 15496 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;} 15497 # Extract the first word of "$tool_basename", so it can be a program name with args. 15498 set dummy $tool_basename; ac_word=$2 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15500 $as_echo_n "checking for $ac_word... " >&6; } 15501 if ${ac_cv_path_PANDOC+:} false; then : 15502 $as_echo_n "(cached) " >&6 15503 else 15504 case $PANDOC in 15505 [\\/]* | ?:[\\/]*) 15506 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15507 ;; 15508 *) 15509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15510 for as_dir in $PATH 15511 do 15512 IFS=$as_save_IFS 15513 test -z "$as_dir" && as_dir=. 15514 for ac_exec_ext in '' $ac_executable_extensions; do 15515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15516 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15518 break 2 15519 fi 15520 done 15521 done 15522 IFS=$as_save_IFS 15523 15524 ;; 15525 esac 15526 fi 15527 PANDOC=$ac_cv_path_PANDOC 15528 if test -n "$PANDOC"; then 15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15530 $as_echo "$PANDOC" >&6; } 15531 else 15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15533 $as_echo "no" >&6; } 15534 fi 15535 15536 15537 if test "x$PANDOC" = x; then 15538 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15539 fi 15540 else 15541 # Otherwise we believe it is a complete path. Use it as it is. 15542 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5 15543 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;} 15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15545 $as_echo_n "checking for PANDOC... " >&6; } 15546 if test ! -x "$tool_specified"; then 15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15548 $as_echo "not found" >&6; } 15549 as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5 15550 fi 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15552 $as_echo "$tool_specified" >&6; } 15553 fi 15554 fi 15555 fi 15556 15557 fi 15558 15559 15560 15561 15562 # Now we can determine OpenJDK build and target platforms. This is required to 15563 # have early on. 15564 # Make sure we can run config.sub. 15565 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15566 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15567 15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15569 $as_echo_n "checking build system type... " >&6; } 15570 if ${ac_cv_build+:} false; then : 15571 $as_echo_n "(cached) " >&6 15572 else 15573 ac_build_alias=$build_alias 15574 test "x$ac_build_alias" = x && 15575 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15576 test "x$ac_build_alias" = x && 15577 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15578 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15579 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15580 15581 fi 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15583 $as_echo "$ac_cv_build" >&6; } 15584 case $ac_cv_build in 15585 *-*-*) ;; 15586 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15587 esac 15588 build=$ac_cv_build 15589 ac_save_IFS=$IFS; IFS='-' 15590 set x $ac_cv_build 15591 shift 15592 build_cpu=$1 15593 build_vendor=$2 15594 shift; shift 15595 # Remember, the first character of IFS is used to create $*, 15596 # except with old shells: 15597 build_os=$* 15598 IFS=$ac_save_IFS 15599 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15600 15601 15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15603 $as_echo_n "checking host system type... " >&6; } 15604 if ${ac_cv_host+:} false; then : 15605 $as_echo_n "(cached) " >&6 15606 else 15607 if test "x$host_alias" = x; then 15608 ac_cv_host=$ac_cv_build 15609 else 15610 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15611 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15612 fi 15613 15614 fi 15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15616 $as_echo "$ac_cv_host" >&6; } 15617 case $ac_cv_host in 15618 *-*-*) ;; 15619 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15620 esac 15621 host=$ac_cv_host 15622 ac_save_IFS=$IFS; IFS='-' 15623 set x $ac_cv_host 15624 shift 15625 host_cpu=$1 15626 host_vendor=$2 15627 shift; shift 15628 # Remember, the first character of IFS is used to create $*, 15629 # except with old shells: 15630 host_os=$* 15631 IFS=$ac_save_IFS 15632 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15633 15634 15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15636 $as_echo_n "checking target system type... " >&6; } 15637 if ${ac_cv_target+:} false; then : 15638 $as_echo_n "(cached) " >&6 15639 else 15640 if test "x$target_alias" = x; then 15641 ac_cv_target=$ac_cv_host 15642 else 15643 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15645 fi 15646 15647 fi 15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15649 $as_echo "$ac_cv_target" >&6; } 15650 case $ac_cv_target in 15651 *-*-*) ;; 15652 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15653 esac 15654 target=$ac_cv_target 15655 ac_save_IFS=$IFS; IFS='-' 15656 set x $ac_cv_target 15657 shift 15658 target_cpu=$1 15659 target_vendor=$2 15660 shift; shift 15661 # Remember, the first character of IFS is used to create $*, 15662 # except with old shells: 15663 target_os=$* 15664 IFS=$ac_save_IFS 15665 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15666 15667 15668 # The aliases save the names the user supplied, while $host etc. 15669 # will get canonicalized. 15670 test -n "$target_alias" && 15671 test "$program_prefix$program_suffix$program_transform_name" = \ 15672 NONENONEs,x,x, && 15673 program_prefix=${target_alias}- 15674 15675 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15676 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15677 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15678 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15679 # to use the configure naming style. 15680 15681 15682 15683 15684 15685 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15686 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15687 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15688 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15689 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15690 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15691 15692 15693 15694 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15695 15696 case "$build_os" in 15697 *linux*) 15698 VAR_OS=linux 15699 VAR_OS_TYPE=unix 15700 ;; 15701 *solaris*) 15702 VAR_OS=solaris 15703 VAR_OS_TYPE=unix 15704 ;; 15705 *darwin*) 15706 VAR_OS=macosx 15707 VAR_OS_TYPE=unix 15708 ;; 15709 *bsd*) 15710 VAR_OS=bsd 15711 VAR_OS_TYPE=unix 15712 ;; 15713 *cygwin*) 15714 VAR_OS=windows 15715 VAR_OS_ENV=windows.cygwin 15716 ;; 15717 *mingw*) 15718 VAR_OS=windows 15719 VAR_OS_ENV=windows.msys 15720 ;; 15721 *aix*) 15722 VAR_OS=aix 15723 VAR_OS_TYPE=unix 15724 ;; 15725 *) 15726 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15727 ;; 15728 esac 15729 15730 15731 # First argument is the cpu name from the trip/quad 15732 case "$build_cpu" in 15733 x86_64) 15734 VAR_CPU=x86_64 15735 VAR_CPU_ARCH=x86 15736 VAR_CPU_BITS=64 15737 VAR_CPU_ENDIAN=little 15738 ;; 15739 i?86) 15740 VAR_CPU=x86 15741 VAR_CPU_ARCH=x86 15742 VAR_CPU_BITS=32 15743 VAR_CPU_ENDIAN=little 15744 ;; 15745 arm*) 15746 VAR_CPU=arm 15747 VAR_CPU_ARCH=arm 15748 VAR_CPU_BITS=32 15749 VAR_CPU_ENDIAN=little 15750 ;; 15751 aarch64) 15752 VAR_CPU=aarch64 15753 VAR_CPU_ARCH=aarch64 15754 VAR_CPU_BITS=64 15755 VAR_CPU_ENDIAN=little 15756 ;; 15757 powerpc) 15758 VAR_CPU=ppc 15759 VAR_CPU_ARCH=ppc 15760 VAR_CPU_BITS=32 15761 VAR_CPU_ENDIAN=big 15762 ;; 15763 powerpc64) 15764 VAR_CPU=ppc64 15765 VAR_CPU_ARCH=ppc 15766 VAR_CPU_BITS=64 15767 VAR_CPU_ENDIAN=big 15768 ;; 15769 powerpc64le) 15770 VAR_CPU=ppc64le 15771 VAR_CPU_ARCH=ppc 15772 VAR_CPU_BITS=64 15773 VAR_CPU_ENDIAN=little 15774 ;; 15775 s390) 15776 VAR_CPU=s390 15777 VAR_CPU_ARCH=s390 15778 VAR_CPU_BITS=32 15779 VAR_CPU_ENDIAN=big 15780 ;; 15781 s390x) 15782 VAR_CPU=s390x 15783 VAR_CPU_ARCH=s390 15784 VAR_CPU_BITS=64 15785 VAR_CPU_ENDIAN=big 15786 ;; 15787 sparc) 15788 VAR_CPU=sparc 15789 VAR_CPU_ARCH=sparc 15790 VAR_CPU_BITS=32 15791 VAR_CPU_ENDIAN=big 15792 ;; 15793 sparcv9|sparc64) 15794 VAR_CPU=sparcv9 15795 VAR_CPU_ARCH=sparc 15796 VAR_CPU_BITS=64 15797 VAR_CPU_ENDIAN=big 15798 ;; 15799 *) 15800 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15801 ;; 15802 esac 15803 15804 # ..and setup our own variables. (Do this explicitly to facilitate searching) 15805 OPENJDK_BUILD_OS="$VAR_OS" 15806 if test "x$VAR_OS_TYPE" != x; then 15807 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15808 else 15809 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15810 fi 15811 if test "x$VAR_OS_ENV" != x; then 15812 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15813 else 15814 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15815 fi 15816 OPENJDK_BUILD_CPU="$VAR_CPU" 15817 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15818 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15819 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15820 15821 15822 15823 15824 15825 15826 15827 15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15829 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15831 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15832 15833 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15834 15835 case "$host_os" in 15836 *linux*) 15837 VAR_OS=linux 15838 VAR_OS_TYPE=unix 15839 ;; 15840 *solaris*) 15841 VAR_OS=solaris 15842 VAR_OS_TYPE=unix 15843 ;; 15844 *darwin*) 15845 VAR_OS=macosx 15846 VAR_OS_TYPE=unix 15847 ;; 15848 *bsd*) 15849 VAR_OS=bsd 15850 VAR_OS_TYPE=unix 15851 ;; 15852 *cygwin*) 15853 VAR_OS=windows 15854 VAR_OS_ENV=windows.cygwin 15855 ;; 15856 *mingw*) 15857 VAR_OS=windows 15858 VAR_OS_ENV=windows.msys 15859 ;; 15860 *aix*) 15861 VAR_OS=aix 15862 VAR_OS_TYPE=unix 15863 ;; 15864 *) 15865 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15866 ;; 15867 esac 15868 15869 15870 # First argument is the cpu name from the trip/quad 15871 case "$host_cpu" in 15872 x86_64) 15873 VAR_CPU=x86_64 15874 VAR_CPU_ARCH=x86 15875 VAR_CPU_BITS=64 15876 VAR_CPU_ENDIAN=little 15877 ;; 15878 i?86) 15879 VAR_CPU=x86 15880 VAR_CPU_ARCH=x86 15881 VAR_CPU_BITS=32 15882 VAR_CPU_ENDIAN=little 15883 ;; 15884 arm*) 15885 VAR_CPU=arm 15886 VAR_CPU_ARCH=arm 15887 VAR_CPU_BITS=32 15888 VAR_CPU_ENDIAN=little 15889 ;; 15890 aarch64) 15891 VAR_CPU=aarch64 15892 VAR_CPU_ARCH=aarch64 15893 VAR_CPU_BITS=64 15894 VAR_CPU_ENDIAN=little 15895 ;; 15896 powerpc) 15897 VAR_CPU=ppc 15898 VAR_CPU_ARCH=ppc 15899 VAR_CPU_BITS=32 15900 VAR_CPU_ENDIAN=big 15901 ;; 15902 powerpc64) 15903 VAR_CPU=ppc64 15904 VAR_CPU_ARCH=ppc 15905 VAR_CPU_BITS=64 15906 VAR_CPU_ENDIAN=big 15907 ;; 15908 powerpc64le) 15909 VAR_CPU=ppc64le 15910 VAR_CPU_ARCH=ppc 15911 VAR_CPU_BITS=64 15912 VAR_CPU_ENDIAN=little 15913 ;; 15914 s390) 15915 VAR_CPU=s390 15916 VAR_CPU_ARCH=s390 15917 VAR_CPU_BITS=32 15918 VAR_CPU_ENDIAN=big 15919 ;; 15920 s390x) 15921 VAR_CPU=s390x 15922 VAR_CPU_ARCH=s390 15923 VAR_CPU_BITS=64 15924 VAR_CPU_ENDIAN=big 15925 ;; 15926 sparc) 15927 VAR_CPU=sparc 15928 VAR_CPU_ARCH=sparc 15929 VAR_CPU_BITS=32 15930 VAR_CPU_ENDIAN=big 15931 ;; 15932 sparcv9|sparc64) 15933 VAR_CPU=sparcv9 15934 VAR_CPU_ARCH=sparc 15935 VAR_CPU_BITS=64 15936 VAR_CPU_ENDIAN=big 15937 ;; 15938 *) 15939 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 15940 ;; 15941 esac 15942 15943 # ... and setup our own variables. (Do this explicitly to facilitate searching) 15944 OPENJDK_TARGET_OS="$VAR_OS" 15945 if test "x$VAR_OS_TYPE" != x; then 15946 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 15947 else 15948 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 15949 fi 15950 if test "x$VAR_OS_ENV" != x; then 15951 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 15952 else 15953 OPENJDK_TARGET_OS_ENV="$VAR_OS" 15954 fi 15955 OPENJDK_TARGET_CPU="$VAR_CPU" 15956 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 15957 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 15958 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15959 15960 15961 15962 15963 15964 15965 15966 15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 15968 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 15970 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 15971 15972 15973 15974 # Check whether --with-target-bits was given. 15975 if test "${with_target_bits+set}" = set; then : 15976 withval=$with_target_bits; 15977 fi 15978 15979 15980 # We have three types of compiles: 15981 # native == normal compilation, target system == build system 15982 # cross == traditional cross compilation, target system != build system; special toolchain needed 15983 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 15984 # 15985 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 15986 # We're doing a proper cross-compilation 15987 COMPILE_TYPE="cross" 15988 else 15989 COMPILE_TYPE="native" 15990 fi 15991 15992 if test "x$with_target_bits" != x; then 15993 if test "x$COMPILE_TYPE" = "xcross"; then 15994 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 15995 fi 15996 15997 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15998 # A reduced build is requested 15999 COMPILE_TYPE="reduced" 16000 OPENJDK_TARGET_CPU_BITS=32 16001 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 16002 OPENJDK_TARGET_CPU=x86 16003 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 16004 OPENJDK_TARGET_CPU=sparc 16005 else 16006 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 16007 fi 16008 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16009 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 16010 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 16011 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 16012 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 16013 else 16014 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 16015 fi 16016 fi 16017 16018 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 16020 $as_echo_n "checking compilation type... " >&6; } 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 16022 $as_echo "$COMPILE_TYPE" >&6; } 16023 16024 16025 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 16026 REQUIRED_OS_NAME=SunOS 16027 REQUIRED_OS_VERSION=5.10 16028 fi 16029 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 16030 REQUIRED_OS_NAME=Linux 16031 REQUIRED_OS_VERSION=2.6 16032 fi 16033 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16034 REQUIRED_OS_NAME=Windows 16035 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 16036 REQUIRED_OS_VERSION=5.2 16037 else 16038 REQUIRED_OS_VERSION=5.1 16039 fi 16040 fi 16041 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 16042 REQUIRED_OS_NAME="Mac OS X" 16043 REQUIRED_OS_VERSION=11.2 16044 fi 16045 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 16046 REQUIRED_OS_NAME=AIX 16047 REQUIRED_OS_VERSION=7.1 16048 fi 16049 REQUIRED_OS_ARCH=${OPENJDK_TARGET_CPU} 16050 16051 16052 16053 16054 16055 16056 16057 # Also store the legacy naming of the cpu. 16058 # Ie i586 and amd64 instead of x86 and x86_64 16059 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 16060 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16061 OPENJDK_TARGET_CPU_LEGACY="i586" 16062 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16063 # On all platforms except MacOSX replace x86_64 with amd64. 16064 OPENJDK_TARGET_CPU_LEGACY="amd64" 16065 fi 16066 16067 16068 # And the second legacy naming of the cpu. 16069 # Ie i386 and amd64 instead of x86 and x86_64. 16070 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 16071 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16072 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 16073 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16074 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 16075 fi 16076 16077 16078 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16079 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16080 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 16081 OPENJDK_TARGET_CPU_ISADIR="" 16082 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 16083 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16084 OPENJDK_TARGET_CPU_ISADIR="/amd64" 16085 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16086 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 16087 fi 16088 fi 16089 16090 16091 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 16092 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 16093 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 16094 # On linux only, we replace x86 with i386. 16095 OPENJDK_TARGET_CPU_OSARCH="i386" 16096 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16097 # On all platforms except macosx, we replace x86_64 with amd64. 16098 OPENJDK_TARGET_CPU_OSARCH="amd64" 16099 fi 16100 16101 16102 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 16103 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16104 OPENJDK_TARGET_CPU_JLI="i386" 16105 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16106 # On all platforms except macosx, we replace x86_64 with amd64. 16107 OPENJDK_TARGET_CPU_JLI="amd64" 16108 fi 16109 16110 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16111 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 16112 else 16113 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 16114 fi 16115 16116 16117 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16118 # Macosx is osx and x86_64 is x64 16119 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16120 OPENJDK_TARGET_OS_BUNDLE="osx" 16121 else 16122 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 16123 fi 16124 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16125 OPENJDK_TARGET_CPU_BUNDLE="x64" 16126 else 16127 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 16128 fi 16129 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 16130 16131 16132 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16133 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16134 # unpack200.exe. This variable is used in 16135 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16136 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 16137 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 16138 fi 16139 fi 16140 16141 if test "x$COMPILE_TYPE" = "xcross"; then 16142 # FIXME: ... or should this include reduced builds..? 16143 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 16144 else 16145 DEFINE_CROSS_COMPILE_ARCH="" 16146 fi 16147 16148 16149 # Convert openjdk platform names to hotspot names 16150 16151 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 16152 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16153 HOTSPOT_TARGET_OS=bsd 16154 fi 16155 16156 16157 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 16158 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 16159 HOTSPOT_TARGET_OS_TYPE=posix 16160 fi 16161 16162 16163 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 16164 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16165 HOTSPOT_TARGET_CPU=x86_32 16166 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16167 HOTSPOT_TARGET_CPU=sparc 16168 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16169 HOTSPOT_TARGET_CPU=ppc_64 16170 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16171 HOTSPOT_TARGET_CPU=ppc_64 16172 fi 16173 16174 16175 # This is identical with OPENJDK_*, but define anyway for consistency. 16176 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 16177 16178 16179 # Setup HOTSPOT_TARGET_CPU_DEFINE 16180 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16181 HOTSPOT_TARGET_CPU_DEFINE=IA32 16182 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16183 HOTSPOT_TARGET_CPU_DEFINE=AMD64 16184 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16185 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16186 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 16187 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 16188 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16189 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16190 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16191 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16192 16193 # The cpu defines below are for zero, we don't support them directly. 16194 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 16195 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16196 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 16197 HOTSPOT_TARGET_CPU_DEFINE=PPC32 16198 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 16199 HOTSPOT_TARGET_CPU_DEFINE=S390 16200 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 16201 HOTSPOT_TARGET_CPU_DEFINE=S390 16202 elif test "x$OPENJDK_TARGET_CPU" != x; then 16203 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 16204 fi 16205 16206 16207 16208 16209 # Also store the legacy naming of the cpu. 16210 # Ie i586 and amd64 instead of x86 and x86_64 16211 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 16212 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16213 OPENJDK_BUILD_CPU_LEGACY="i586" 16214 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16215 # On all platforms except MacOSX replace x86_64 with amd64. 16216 OPENJDK_BUILD_CPU_LEGACY="amd64" 16217 fi 16218 16219 16220 # And the second legacy naming of the cpu. 16221 # Ie i386 and amd64 instead of x86 and x86_64. 16222 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16223 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16224 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16225 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16226 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16227 fi 16228 16229 16230 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16231 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16232 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16233 OPENJDK_BUILD_CPU_ISADIR="" 16234 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16235 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16236 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16237 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16238 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16239 fi 16240 fi 16241 16242 16243 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16244 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16245 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16246 # On linux only, we replace x86 with i386. 16247 OPENJDK_BUILD_CPU_OSARCH="i386" 16248 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16249 # On all platforms except macosx, we replace x86_64 with amd64. 16250 OPENJDK_BUILD_CPU_OSARCH="amd64" 16251 fi 16252 16253 16254 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16255 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16256 OPENJDK_BUILD_CPU_JLI="i386" 16257 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16258 # On all platforms except macosx, we replace x86_64 with amd64. 16259 OPENJDK_BUILD_CPU_JLI="amd64" 16260 fi 16261 16262 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16263 OPENJDK_BUILD_OS_EXPORT_DIR=macosx 16264 else 16265 OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE} 16266 fi 16267 16268 16269 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16270 # Macosx is osx and x86_64 is x64 16271 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16272 OPENJDK_BUILD_OS_BUNDLE="osx" 16273 else 16274 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16275 fi 16276 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16277 OPENJDK_BUILD_CPU_BUNDLE="x64" 16278 else 16279 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16280 fi 16281 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16282 16283 16284 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16285 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16286 # unpack200.exe. This variable is used in 16287 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16288 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16289 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16290 fi 16291 fi 16292 16293 if test "x$COMPILE_TYPE" = "xcross"; then 16294 # FIXME: ... or should this include reduced builds..? 16295 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16296 else 16297 DEFINE_CROSS_COMPILE_ARCH="" 16298 fi 16299 16300 16301 # Convert openjdk platform names to hotspot names 16302 16303 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16304 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16305 HOTSPOT_BUILD_OS=bsd 16306 fi 16307 16308 16309 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16310 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16311 HOTSPOT_BUILD_OS_TYPE=posix 16312 fi 16313 16314 16315 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16316 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16317 HOTSPOT_BUILD_CPU=x86_32 16318 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16319 HOTSPOT_BUILD_CPU=sparc 16320 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16321 HOTSPOT_BUILD_CPU=ppc_64 16322 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16323 HOTSPOT_BUILD_CPU=ppc_64 16324 fi 16325 16326 16327 # This is identical with OPENJDK_*, but define anyway for consistency. 16328 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16329 16330 16331 # Setup HOTSPOT_BUILD_CPU_DEFINE 16332 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16333 HOTSPOT_BUILD_CPU_DEFINE=IA32 16334 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16335 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16336 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16337 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16338 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16339 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16340 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16341 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16342 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16343 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16344 16345 # The cpu defines below are for zero, we don't support them directly. 16346 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16347 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16348 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16349 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16350 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16351 HOTSPOT_BUILD_CPU_DEFINE=S390 16352 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16353 HOTSPOT_BUILD_CPU_DEFINE=S390 16354 elif test "x$OPENJDK_BUILD_CPU" != x; then 16355 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16356 fi 16357 16358 16359 16360 16361 16362 16363 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16364 16365 # Save the current directory this script was started from 16366 CURDIR="$PWD" 16367 16368 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16369 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16370 # was not available at that time. 16371 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16372 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16373 ORIGINAL_PATH="$REWRITTEN_PATH" 16374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16375 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16376 fi 16377 16378 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16379 PATH_SEP=";" 16380 16381 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16382 if test $SRC_ROOT_LENGTH -gt 100; then 16383 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16384 fi 16385 16386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16388 $as_echo_n "checking cygwin release... " >&6; } 16389 CYGWIN_VERSION=`$UNAME -r` 16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16391 $as_echo "$CYGWIN_VERSION" >&6; } 16392 WINDOWS_ENV_VENDOR='cygwin' 16393 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16394 16395 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16396 if test "x$CYGWIN_VERSION_OLD" != x; then 16397 { $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 16398 $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;} 16399 as_fn_error $? "Cannot continue" "$LINENO" 5 16400 fi 16401 if test "x$CYGPATH" = x; then 16402 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16403 fi 16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16405 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16406 # The cmd output ends with Windows line endings (CR/LF) 16407 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 16408 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16409 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16411 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16412 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16413 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16414 if test "x$test_cygdrive_prefix" = x; then 16415 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16416 fi 16417 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16419 $as_echo_n "checking msys release... " >&6; } 16420 MSYS_VERSION=`$UNAME -r` 16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16422 $as_echo "$MSYS_VERSION" >&6; } 16423 16424 WINDOWS_ENV_VENDOR='msys' 16425 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16426 16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16428 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16429 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16430 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16431 16432 windows_path="$MSYS_ROOT_PATH" 16433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16434 unix_path=`$CYGPATH -u "$windows_path"` 16435 MSYS_ROOT_PATH="$unix_path" 16436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16437 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16438 MSYS_ROOT_PATH="$unix_path" 16439 fi 16440 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16442 $as_echo "$MSYS_ROOT_PATH" >&6; } 16443 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16444 else 16445 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16446 fi 16447 16448 # Test if windows or unix (cygwin/msys) find is first in path. 16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16450 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16451 FIND_BINARY_OUTPUT=`find --version 2>&1` 16452 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16454 $as_echo "unix style" >&6; } 16455 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16457 $as_echo "Windows" >&6; } 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16459 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16460 { $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 16461 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16462 as_fn_error $? "Cannot continue" "$LINENO" 5 16463 else 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16465 $as_echo "unknown" >&6; } 16466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16467 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16468 fi 16469 16470 else 16471 PATH_SEP=":" 16472 fi 16473 16474 16475 # We get the top-level directory from the supporting wrappers. 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16477 $as_echo_n "checking for top-level directory... " >&6; } 16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16479 $as_echo "$TOPDIR" >&6; } 16480 16481 16482 # Save the original version of TOPDIR for string comparisons 16483 ORIGINAL_TOPDIR="$TOPDIR" 16484 16485 16486 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16487 16488 # Only process if variable expands to non-empty 16489 16490 if test "x$CURDIR" != x; then 16491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16492 16493 # Input might be given as Windows format, start by converting to 16494 # unix format. 16495 path="$CURDIR" 16496 new_path=`$CYGPATH -u "$path"` 16497 16498 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16499 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16500 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16501 # "foo.exe" is OK but "foo" is an error. 16502 # 16503 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16504 # It is also a way to make sure we got the proper file name for the real test later on. 16505 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16506 if test "x$test_shortpath" = x; then 16507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16508 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16509 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16510 fi 16511 16512 # Call helper function which possibly converts this using DOS-style short mode. 16513 # If so, the updated path is stored in $new_path. 16514 16515 input_path="$new_path" 16516 # Check if we need to convert this using DOS-style short mode. If the path 16517 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16518 # take no chances and rewrite it. 16519 # Note: m4 eats our [], so we need to use [ and ] instead. 16520 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16521 if test "x$has_forbidden_chars" != x; then 16522 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16523 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16524 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16525 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16526 # Going to short mode and back again did indeed matter. Since short mode is 16527 # case insensitive, let's make it lowercase to improve readability. 16528 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16529 # Now convert it back to Unix-style (cygpath) 16530 input_path=`$CYGPATH -u "$shortmode_path"` 16531 new_path="$input_path" 16532 fi 16533 fi 16534 16535 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16536 if test "x$test_cygdrive_prefix" = x; then 16537 # As a simple fix, exclude /usr/bin since it's not a real path. 16538 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16539 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16540 # a path prefixed by /cygdrive for fixpath to work. 16541 new_path="$CYGWIN_ROOT_PATH$input_path" 16542 fi 16543 fi 16544 16545 16546 if test "x$path" != "x$new_path"; then 16547 CURDIR="$new_path" 16548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16549 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16550 fi 16551 16552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16553 16554 path="$CURDIR" 16555 has_colon=`$ECHO $path | $GREP ^.:` 16556 new_path="$path" 16557 if test "x$has_colon" = x; then 16558 # Not in mixed or Windows style, start by that. 16559 new_path=`cmd //c echo $path` 16560 fi 16561 16562 16563 input_path="$new_path" 16564 # Check if we need to convert this using DOS-style short mode. If the path 16565 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16566 # take no chances and rewrite it. 16567 # Note: m4 eats our [], so we need to use [ and ] instead. 16568 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16569 if test "x$has_forbidden_chars" != x; then 16570 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16571 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16572 fi 16573 16574 16575 windows_path="$new_path" 16576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16577 unix_path=`$CYGPATH -u "$windows_path"` 16578 new_path="$unix_path" 16579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16580 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16581 new_path="$unix_path" 16582 fi 16583 16584 if test "x$path" != "x$new_path"; then 16585 CURDIR="$new_path" 16586 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16587 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16588 fi 16589 16590 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16591 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16592 16593 else 16594 # We're on a unix platform. Hooray! :) 16595 path="$CURDIR" 16596 has_space=`$ECHO "$path" | $GREP " "` 16597 if test "x$has_space" != x; then 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16599 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16600 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16601 fi 16602 16603 # Use eval to expand a potential ~ 16604 eval path="$path" 16605 if test ! -f "$path" && test ! -d "$path"; then 16606 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16607 fi 16608 16609 if test -d "$path"; then 16610 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16611 else 16612 dir="`$DIRNAME "$path"`" 16613 base="`$BASENAME "$path"`" 16614 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16615 fi 16616 fi 16617 fi 16618 16619 16620 # Only process if variable expands to non-empty 16621 16622 if test "x$TOPDIR" != x; then 16623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16624 16625 # Input might be given as Windows format, start by converting to 16626 # unix format. 16627 path="$TOPDIR" 16628 new_path=`$CYGPATH -u "$path"` 16629 16630 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16631 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16632 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16633 # "foo.exe" is OK but "foo" is an error. 16634 # 16635 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16636 # It is also a way to make sure we got the proper file name for the real test later on. 16637 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16638 if test "x$test_shortpath" = x; then 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16640 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16641 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16642 fi 16643 16644 # Call helper function which possibly converts this using DOS-style short mode. 16645 # If so, the updated path is stored in $new_path. 16646 16647 input_path="$new_path" 16648 # Check if we need to convert this using DOS-style short mode. If the path 16649 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16650 # take no chances and rewrite it. 16651 # Note: m4 eats our [], so we need to use [ and ] instead. 16652 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16653 if test "x$has_forbidden_chars" != x; then 16654 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16655 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16656 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16657 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16658 # Going to short mode and back again did indeed matter. Since short mode is 16659 # case insensitive, let's make it lowercase to improve readability. 16660 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16661 # Now convert it back to Unix-style (cygpath) 16662 input_path=`$CYGPATH -u "$shortmode_path"` 16663 new_path="$input_path" 16664 fi 16665 fi 16666 16667 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16668 if test "x$test_cygdrive_prefix" = x; then 16669 # As a simple fix, exclude /usr/bin since it's not a real path. 16670 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16671 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16672 # a path prefixed by /cygdrive for fixpath to work. 16673 new_path="$CYGWIN_ROOT_PATH$input_path" 16674 fi 16675 fi 16676 16677 16678 if test "x$path" != "x$new_path"; then 16679 TOPDIR="$new_path" 16680 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16681 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16682 fi 16683 16684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16685 16686 path="$TOPDIR" 16687 has_colon=`$ECHO $path | $GREP ^.:` 16688 new_path="$path" 16689 if test "x$has_colon" = x; then 16690 # Not in mixed or Windows style, start by that. 16691 new_path=`cmd //c echo $path` 16692 fi 16693 16694 16695 input_path="$new_path" 16696 # Check if we need to convert this using DOS-style short mode. If the path 16697 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16698 # take no chances and rewrite it. 16699 # Note: m4 eats our [], so we need to use [ and ] instead. 16700 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16701 if test "x$has_forbidden_chars" != x; then 16702 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16703 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16704 fi 16705 16706 16707 windows_path="$new_path" 16708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16709 unix_path=`$CYGPATH -u "$windows_path"` 16710 new_path="$unix_path" 16711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16712 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16713 new_path="$unix_path" 16714 fi 16715 16716 if test "x$path" != "x$new_path"; then 16717 TOPDIR="$new_path" 16718 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16719 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16720 fi 16721 16722 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16723 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16724 16725 else 16726 # We're on a unix platform. Hooray! :) 16727 path="$TOPDIR" 16728 has_space=`$ECHO "$path" | $GREP " "` 16729 if test "x$has_space" != x; then 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16731 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16732 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16733 fi 16734 16735 # Use eval to expand a potential ~ 16736 eval path="$path" 16737 if test ! -f "$path" && test ! -d "$path"; then 16738 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16739 fi 16740 16741 if test -d "$path"; then 16742 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16743 else 16744 dir="`$DIRNAME "$path"`" 16745 base="`$BASENAME "$path"`" 16746 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16747 fi 16748 fi 16749 fi 16750 16751 # SRC_ROOT is a traditional alias for TOPDIR. 16752 SRC_ROOT=$TOPDIR 16753 16754 # Calculate a canonical version of TOPDIR for string comparisons 16755 CANONICAL_TOPDIR=$TOPDIR 16756 16757 if test "x$OPENJDK_BUILD_OS" != xwindows; then 16758 # Follow a chain of symbolic links. Use readlink 16759 # where it exists, else fall back to horribly 16760 # complicated shell code. 16761 if test "x$READLINK_TESTED" != yes; then 16762 # On MacOSX there is a readlink tool with a different 16763 # purpose than the GNU readlink tool. Check the found readlink. 16764 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 16765 if test "x$ISGNU" = x; then 16766 # A readlink that we do not know how to use. 16767 # Are there other non-GNU readlinks out there? 16768 READLINK_TESTED=yes 16769 READLINK= 16770 fi 16771 fi 16772 16773 if test "x$READLINK" != x; then 16774 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 16775 else 16776 # Save the current directory for restoring afterwards 16777 STARTDIR=$PWD 16778 COUNTER=0 16779 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 16780 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 16781 cd $sym_link_dir 16782 # Use -P flag to resolve symlinks in directories. 16783 cd `$THEPWDCMD -P` 16784 sym_link_dir=`$THEPWDCMD -P` 16785 # Resolve file symlinks 16786 while test $COUNTER -lt 20; do 16787 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 16788 if test "x$ISLINK" == x; then 16789 # This is not a symbolic link! We are done! 16790 break 16791 fi 16792 # Again resolve directory symlinks since the target of the just found 16793 # link could be in a different directory 16794 cd `$DIRNAME $ISLINK` 16795 sym_link_dir=`$THEPWDCMD -P` 16796 sym_link_file=`$BASENAME $ISLINK` 16797 let COUNTER=COUNTER+1 16798 done 16799 cd $STARTDIR 16800 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 16801 fi 16802 fi 16803 16804 16805 16806 # Locate the directory of this script. 16807 AUTOCONF_DIR=$TOPDIR/common/autoconf 16808 16809 # Setup username (for use in adhoc version strings etc) 16810 # Outer [ ] to quote m4. 16811 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16812 16813 16814 16815 # Check if it's a pure open build or if custom sources are to be used. 16816 16817 # Check whether --enable-openjdk-only was given. 16818 if test "${enable_openjdk_only+set}" = set; then : 16819 enableval=$enable_openjdk_only; 16820 else 16821 enable_openjdk_only="no" 16822 fi 16823 16824 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16826 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16828 $as_echo "$enable_openjdk_only" >&6; } 16829 if test "x$enable_openjdk_only" = "xyes"; then 16830 SUPPRESS_CUSTOM_EXTENSIONS="true" 16831 elif test "x$enable_openjdk_only" = "xno"; then 16832 SUPPRESS_CUSTOM_EXTENSIONS="false" 16833 else 16834 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16835 fi 16836 16837 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16838 # the IncludeCustomExtension macro. 16839 16840 16841 # Check whether --with-custom-make-dir was given. 16842 if test "${with_custom_make_dir+set}" = set; then : 16843 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 16844 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16845 fi 16846 16847 16848 16849 16850 # These are needed to be able to create a configuration name (and thus the output directory) 16851 16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16853 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16854 16855 # Check whether --with-jdk-variant was given. 16856 if test "${with_jdk_variant+set}" = set; then : 16857 withval=$with_jdk_variant; 16858 fi 16859 16860 16861 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16862 JDK_VARIANT="normal" 16863 else 16864 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16865 fi 16866 16867 16868 16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16870 $as_echo "$JDK_VARIANT" >&6; } 16871 16872 16873 DEBUG_LEVEL="release" 16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16875 $as_echo_n "checking which debug level to use... " >&6; } 16876 # Check whether --enable-debug was given. 16877 if test "${enable_debug+set}" = set; then : 16878 enableval=$enable_debug; 16879 ENABLE_DEBUG="${enableval}" 16880 DEBUG_LEVEL="fastdebug" 16881 16882 else 16883 ENABLE_DEBUG="no" 16884 fi 16885 16886 16887 16888 # Check whether --with-debug-level was given. 16889 if test "${with_debug_level+set}" = set; then : 16890 withval=$with_debug_level; 16891 DEBUG_LEVEL="${withval}" 16892 if test "x$ENABLE_DEBUG" = xyes; then 16893 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16894 fi 16895 16896 fi 16897 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16899 $as_echo "$DEBUG_LEVEL" >&6; } 16900 16901 if test "x$DEBUG_LEVEL" != xrelease && \ 16902 test "x$DEBUG_LEVEL" != xoptimized && \ 16903 test "x$DEBUG_LEVEL" != xfastdebug && \ 16904 test "x$DEBUG_LEVEL" != xslowdebug; then 16905 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16906 fi 16907 16908 # Translate DEBUG_LEVEL to debug level used by Hotspot 16909 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16910 if test "x$DEBUG_LEVEL" = xrelease; then 16911 HOTSPOT_DEBUG_LEVEL="product" 16912 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16913 HOTSPOT_DEBUG_LEVEL="debug" 16914 fi 16915 16916 if test "x$DEBUG_LEVEL" = xoptimized; then 16917 # The debug level 'optimized' is a little special because it is currently only 16918 # applicable to the HotSpot build where it means to build a completely 16919 # optimized version of the VM without any debugging code (like for the 16920 # 'release' debug level which is called 'product' in the HotSpot build) but 16921 # with the exception that it can contain additional code which is otherwise 16922 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16923 # test new and/or experimental features which are not intended for customer 16924 # shipment. Because these new features need to be tested and benchmarked in 16925 # real world scenarios, we want to build the containing JDK at the 'release' 16926 # debug level. 16927 DEBUG_LEVEL="release" 16928 fi 16929 16930 16931 16932 16933 16934 16935 # Check whether --with-jvm-variants was given. 16936 if test "${with_jvm_variants+set}" = set; then : 16937 withval=$with_jvm_variants; 16938 fi 16939 16940 16941 16942 16943 # Check whether --with-cpu-port was given. 16944 if test "${with_cpu_port+set}" = set; then : 16945 withval=$with_cpu_port; 16946 fi 16947 16948 16949 if test "x$with_cpu_port" != x; then 16950 if test "x$OPENJDK_TARGET_CPU" != xaarch64; then 16951 as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5 16952 fi 16953 if test "x$with_cpu_port" != xarm64 && \ 16954 test "x$with_cpu_port" != xaarch64; then 16955 as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5 16956 fi 16957 HOTSPOT_TARGET_CPU_PORT="$with_cpu_port" 16958 fi 16959 16960 16961 if test "x$with_jvm_variants" = x; then 16962 with_jvm_variants="server" 16963 fi 16964 JVM_VARIANTS_OPT="$with_jvm_variants" 16965 16966 # Has the user listed more than one variant? 16967 # Additional [] needed to keep m4 from mangling shell constructs. 16968 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 16969 BUILDING_MULTIPLE_JVM_VARIANTS=true 16970 else 16971 BUILDING_MULTIPLE_JVM_VARIANTS=false 16972 fi 16973 # Replace the commas with AND for use in the build directory name. 16974 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 16975 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 16977 $as_echo_n "checking which variants of the JVM to build... " >&6; } 16978 # JVM_VARIANTS is a space-separated list. 16979 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 16980 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 16982 $as_echo "$JVM_VARIANTS" >&6; } 16983 16984 # Check that the selected variants are valid 16985 16986 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 16987 # Notice that the original variant failes on SLES 10 and 11 16988 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 16989 STACK=${JVM_VARIANTS// /$'\n'} 16990 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16991 if test "x$INVALID_VARIANTS" != x; then 16992 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 16993 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 16994 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 16995 fi 16996 16997 # All "special" variants share the same output directory ("server") 16998 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 16999 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 17000 STACK=${JVM_VARIANTS// /$'\n'} 17001 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17002 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 17003 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 17004 fi 17005 17006 # The "main" variant is the one used by other libs to link against during the 17007 # build. 17008 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 17009 MAIN_VARIANT_PRIO_ORDER="server client minimal" 17010 for variant in $MAIN_VARIANT_PRIO_ORDER; do 17011 if [[ " $JVM_VARIANTS " =~ " $variant " ]] ; then 17012 JVM_VARIANT_MAIN="$variant" 17013 break 17014 fi 17015 done 17016 else 17017 JVM_VARIANT_MAIN="$JVM_VARIANTS" 17018 fi 17019 17020 17021 17022 17023 17024 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 17025 # zero behaves as a platform and rewrites these values. This is really weird. :( 17026 # We are guaranteed that we do not build any other variants when building zero. 17027 HOTSPOT_TARGET_CPU=zero 17028 HOTSPOT_TARGET_CPU_ARCH=zero 17029 fi 17030 17031 17032 # With basic setup done, call the custom early hook. 17033 17034 17035 # Check if we have devkits, extra paths or sysroot set. 17036 17037 17038 # Check whether --with-devkit was given. 17039 if test "${with_devkit+set}" = set; then : 17040 withval=$with_devkit; 17041 17042 # Only process if variable expands to non-empty 17043 17044 if test "x$with_devkit" != x; then 17045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17046 17047 # Input might be given as Windows format, start by converting to 17048 # unix format. 17049 path="$with_devkit" 17050 new_path=`$CYGPATH -u "$path"` 17051 17052 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17053 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17054 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17055 # "foo.exe" is OK but "foo" is an error. 17056 # 17057 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17058 # It is also a way to make sure we got the proper file name for the real test later on. 17059 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17060 if test "x$test_shortpath" = x; then 17061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17062 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17063 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 17064 fi 17065 17066 # Call helper function which possibly converts this using DOS-style short mode. 17067 # If so, the updated path is stored in $new_path. 17068 17069 input_path="$new_path" 17070 # Check if we need to convert this using DOS-style short mode. If the path 17071 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17072 # take no chances and rewrite it. 17073 # Note: m4 eats our [], so we need to use [ and ] instead. 17074 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17075 if test "x$has_forbidden_chars" != x; then 17076 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17077 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17078 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17079 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17080 # Going to short mode and back again did indeed matter. Since short mode is 17081 # case insensitive, let's make it lowercase to improve readability. 17082 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17083 # Now convert it back to Unix-style (cygpath) 17084 input_path=`$CYGPATH -u "$shortmode_path"` 17085 new_path="$input_path" 17086 fi 17087 fi 17088 17089 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17090 if test "x$test_cygdrive_prefix" = x; then 17091 # As a simple fix, exclude /usr/bin since it's not a real path. 17092 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17093 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17094 # a path prefixed by /cygdrive for fixpath to work. 17095 new_path="$CYGWIN_ROOT_PATH$input_path" 17096 fi 17097 fi 17098 17099 17100 if test "x$path" != "x$new_path"; then 17101 with_devkit="$new_path" 17102 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17103 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17104 fi 17105 17106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17107 17108 path="$with_devkit" 17109 has_colon=`$ECHO $path | $GREP ^.:` 17110 new_path="$path" 17111 if test "x$has_colon" = x; then 17112 # Not in mixed or Windows style, start by that. 17113 new_path=`cmd //c echo $path` 17114 fi 17115 17116 17117 input_path="$new_path" 17118 # Check if we need to convert this using DOS-style short mode. If the path 17119 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17120 # take no chances and rewrite it. 17121 # Note: m4 eats our [], so we need to use [ and ] instead. 17122 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17123 if test "x$has_forbidden_chars" != x; then 17124 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17125 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17126 fi 17127 17128 17129 windows_path="$new_path" 17130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17131 unix_path=`$CYGPATH -u "$windows_path"` 17132 new_path="$unix_path" 17133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17134 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17135 new_path="$unix_path" 17136 fi 17137 17138 if test "x$path" != "x$new_path"; then 17139 with_devkit="$new_path" 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17141 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17142 fi 17143 17144 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17145 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17146 17147 else 17148 # We're on a unix platform. Hooray! :) 17149 path="$with_devkit" 17150 has_space=`$ECHO "$path" | $GREP " "` 17151 if test "x$has_space" != x; then 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17153 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17154 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17155 fi 17156 17157 # Use eval to expand a potential ~ 17158 eval path="$path" 17159 if test ! -f "$path" && test ! -d "$path"; then 17160 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 17161 fi 17162 17163 if test -d "$path"; then 17164 with_devkit="`cd "$path"; $THEPWDCMD -L`" 17165 else 17166 dir="`$DIRNAME "$path"`" 17167 base="`$BASENAME "$path"`" 17168 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 17169 fi 17170 fi 17171 fi 17172 17173 DEVKIT_ROOT="$with_devkit" 17174 # Check for a meta data info file in the root of the devkit 17175 if test -f "$DEVKIT_ROOT/devkit.info"; then 17176 . $DEVKIT_ROOT/devkit.info 17177 # This potentially sets the following: 17178 # A descriptive name of the devkit 17179 17180 if test "x$DEVKIT_NAME" = x; then 17181 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 17182 fi 17183 17184 # Corresponds to --with-extra-path 17185 17186 if test "x$DEVKIT_EXTRA_PATH" = x; then 17187 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 17188 fi 17189 17190 # Corresponds to --with-toolchain-path 17191 17192 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17193 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 17194 fi 17195 17196 # Corresponds to --with-sysroot 17197 17198 if test "x$DEVKIT_SYSROOT" = x; then 17199 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 17200 fi 17201 17202 17203 # Identifies the Visual Studio version in the devkit 17204 17205 if test "x$DEVKIT_VS_VERSION" = x; then 17206 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 17207 fi 17208 17209 # The Visual Studio include environment variable 17210 17211 if test "x$DEVKIT_VS_INCLUDE" = x; then 17212 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 17213 fi 17214 17215 # The Visual Studio lib environment variable 17216 17217 if test "x$DEVKIT_VS_LIB" = x; then 17218 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17219 fi 17220 17221 # Corresponds to --with-msvcr-dll 17222 17223 if test "x$DEVKIT_MSVCR_DLL" = x; then 17224 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17225 fi 17226 17227 # Corresponds to --with-msvcp-dll 17228 17229 if test "x$DEVKIT_MSVCP_DLL" = x; then 17230 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17231 fi 17232 17233 fi 17234 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17236 $as_echo_n "checking for devkit... " >&6; } 17237 if test "x$DEVKIT_NAME" != x; then 17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17239 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17240 else 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17242 $as_echo "$DEVKIT_ROOT" >&6; } 17243 fi 17244 17245 17246 if test "x$DEVKIT_EXTRA_PATH" != x; then 17247 if test "x$EXTRA_PATH" = x; then 17248 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17249 else 17250 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17251 fi 17252 fi 17253 17254 17255 # Fallback default of just /bin if DEVKIT_PATH is not defined 17256 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17257 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17258 fi 17259 17260 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17261 if test "x$TOOLCHAIN_PATH" = x; then 17262 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17263 else 17264 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17265 fi 17266 fi 17267 17268 17269 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17270 # places for backwards compatiblity. 17271 if test "x$DEVKIT_SYSROOT" != x; then 17272 SYSROOT="$DEVKIT_SYSROOT" 17273 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17274 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17275 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17276 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17277 fi 17278 17279 17280 fi 17281 17282 17283 # You can force the sysroot if the sysroot encoded into the compiler tools 17284 # is not correct. 17285 17286 # Check whether --with-sys-root was given. 17287 if test "${with_sys_root+set}" = set; then : 17288 withval=$with_sys_root; SYSROOT=$with_sys_root 17289 17290 fi 17291 17292 17293 17294 # Check whether --with-sysroot was given. 17295 if test "${with_sysroot+set}" = set; then : 17296 withval=$with_sysroot; SYSROOT=$with_sysroot 17297 17298 fi 17299 17300 17301 17302 # Check whether --with-tools-dir was given. 17303 if test "${with_tools_dir+set}" = set; then : 17304 withval=$with_tools_dir; 17305 if test "x$with_tools_dir" != x; then 17306 if test "x$TOOLCHAIN_PATH" = x; then 17307 TOOLCHAIN_PATH="$with_tools_dir" 17308 else 17309 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17310 fi 17311 fi 17312 17313 17314 fi 17315 17316 17317 17318 # Check whether --with-toolchain-path was given. 17319 if test "${with_toolchain_path+set}" = set; then : 17320 withval=$with_toolchain_path; 17321 if test "x$with_toolchain_path" != x; then 17322 if test "x$TOOLCHAIN_PATH" = x; then 17323 TOOLCHAIN_PATH="$with_toolchain_path" 17324 else 17325 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17326 fi 17327 fi 17328 17329 17330 fi 17331 17332 17333 17334 # Check whether --with-extra-path was given. 17335 if test "${with_extra_path+set}" = set; then : 17336 withval=$with_extra_path; 17337 if test "x$with_extra_path" != x; then 17338 if test "x$EXTRA_PATH" = x; then 17339 EXTRA_PATH="$with_extra_path" 17340 else 17341 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17342 fi 17343 fi 17344 17345 17346 fi 17347 17348 17349 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17350 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17351 # If not, detect if Xcode is installed by running xcodebuild -version 17352 # if no Xcode installed, xcodebuild exits with 1 17353 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17354 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17355 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17356 # fall back on the stub binary in /usr/bin/xcodebuild 17357 # Extract the first word of "xcodebuild", so it can be a program name with args. 17358 set dummy xcodebuild; ac_word=$2 17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17360 $as_echo_n "checking for $ac_word... " >&6; } 17361 if ${ac_cv_path_XCODEBUILD+:} false; then : 17362 $as_echo_n "(cached) " >&6 17363 else 17364 case $XCODEBUILD in 17365 [\\/]* | ?:[\\/]*) 17366 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17367 ;; 17368 *) 17369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17370 for as_dir in $TOOLCHAIN_PATH 17371 do 17372 IFS=$as_save_IFS 17373 test -z "$as_dir" && as_dir=. 17374 for ac_exec_ext in '' $ac_executable_extensions; do 17375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17376 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17378 break 2 17379 fi 17380 done 17381 done 17382 IFS=$as_save_IFS 17383 17384 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17385 ;; 17386 esac 17387 fi 17388 XCODEBUILD=$ac_cv_path_XCODEBUILD 17389 if test -n "$XCODEBUILD"; then 17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17391 $as_echo "$XCODEBUILD" >&6; } 17392 else 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17394 $as_echo "no" >&6; } 17395 fi 17396 17397 17398 else 17399 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17400 # when only the command line tools are installed there are no SDKs, so headers 17401 # are copied into the system frameworks 17402 XCODEBUILD= 17403 17404 fi 17405 17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17407 $as_echo_n "checking for sdk name... " >&6; } 17408 17409 # Check whether --with-sdk-name was given. 17410 if test "${with_sdk_name+set}" = set; then : 17411 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17412 17413 fi 17414 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17416 $as_echo "$SDKNAME" >&6; } 17417 17418 # if toolchain path is specified then don't rely on system headers, they may not compile 17419 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17420 test -z "$TOOLCHAIN_PATH" && \ 17421 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17422 17423 if test -z "$SYSROOT"; then 17424 if test -n "$XCODEBUILD"; then 17425 # if we don't have system headers, use default SDK name (last resort) 17426 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17427 SDKNAME=${SDKNAME:-macosx} 17428 fi 17429 17430 if test -n "$SDKNAME"; then 17431 # Call xcodebuild to determine SYSROOT 17432 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17433 fi 17434 else 17435 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17436 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 17437 fi 17438 fi 17439 else 17440 # warn user if --with-sdk-name was also set 17441 if test -n "$with_sdk_name"; then 17442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17443 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17444 fi 17445 fi 17446 17447 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17448 # If no system framework headers, then SYSROOT must be set, or we won't build 17449 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 17450 fi 17451 17452 # Perform a basic sanity test 17453 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17454 if test -z "$SYSROOT"; then 17455 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 17456 else 17457 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17458 fi 17459 fi 17460 17461 # set SDKROOT too, Xcode tools will pick it up 17462 SDKROOT="$SYSROOT" 17463 17464 fi 17465 17466 # Prepend the extra path to the global path 17467 17468 if test "x$EXTRA_PATH" != x; then 17469 if test "x$PATH" = x; then 17470 PATH="$EXTRA_PATH" 17471 else 17472 PATH="$EXTRA_PATH:$PATH" 17473 fi 17474 fi 17475 17476 17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17478 $as_echo_n "checking for sysroot... " >&6; } 17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17480 $as_echo "$SYSROOT" >&6; } 17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17482 $as_echo_n "checking for toolchain path... " >&6; } 17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17484 $as_echo "$TOOLCHAIN_PATH" >&6; } 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17486 $as_echo_n "checking for extra path... " >&6; } 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17488 $as_echo "$EXTRA_PATH" >&6; } 17489 17490 17491 # To properly create a configuration name, we need to have the OpenJDK target 17492 # and options (variants and debug level) parsed. 17493 17494 17495 17496 # Check whether --with-conf-name was given. 17497 if test "${with_conf_name+set}" = set; then : 17498 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17499 fi 17500 17501 17502 # Test from where we are running configure, in or outside of src root. 17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17504 $as_echo_n "checking where to store configuration... " >&6; } 17505 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 17506 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 17507 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 17508 # We are running configure from the src root. 17509 # Create a default ./build/target-variant-debuglevel output root. 17510 if test "x${CONF_NAME}" = x; then 17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17512 $as_echo "in default location" >&6; } 17513 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17514 else 17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17516 $as_echo "in build directory with custom name" >&6; } 17517 fi 17518 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 17519 $MKDIR -p "$OUTPUT_ROOT" 17520 if test ! -d "$OUTPUT_ROOT"; then 17521 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 17522 fi 17523 else 17524 # We are running configure from outside of the src dir. 17525 # Then use the current directory as output dir! 17526 # If configuration is situated in normal build directory, just use the build 17527 # directory name as configuration name, otherwise use the complete path. 17528 if test "x${CONF_NAME}" = x; then 17529 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 17530 fi 17531 OUTPUT_ROOT="$CURDIR" 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17533 $as_echo "in current directory" >&6; } 17534 17535 # WARNING: This might be a bad thing to do. You need to be sure you want to 17536 # have a configuration in this directory. Do some sanity checks! 17537 17538 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 17539 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17540 # other files 17541 files_present=`$LS $OUTPUT_ROOT` 17542 # Configure has already touched config.log and confdefs.h in the current dir when this check 17543 # is performed. 17544 filtered_files=`$ECHO "$files_present" \ 17545 | $SED -e 's/config.log//g' \ 17546 -e 's/configure.log//g' \ 17547 -e 's/confdefs.h//g' \ 17548 -e 's/ //g' \ 17549 | $TR -d '\n'` 17550 if test "x$filtered_files" != x; then 17551 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17552 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17553 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17554 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17555 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17556 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17557 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17558 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17559 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17560 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17561 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 17562 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17564 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17565 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17566 fi 17567 fi 17568 fi 17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17570 $as_echo_n "checking what configuration name to use... " >&6; } 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17572 $as_echo "$CONF_NAME" >&6; } 17573 17574 17575 # Only process if variable expands to non-empty 17576 17577 if test "x$OUTPUT_ROOT" != x; then 17578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17579 17580 # Input might be given as Windows format, start by converting to 17581 # unix format. 17582 path="$OUTPUT_ROOT" 17583 new_path=`$CYGPATH -u "$path"` 17584 17585 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17586 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17587 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17588 # "foo.exe" is OK but "foo" is an error. 17589 # 17590 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17591 # It is also a way to make sure we got the proper file name for the real test later on. 17592 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17593 if test "x$test_shortpath" = x; then 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17595 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17596 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 17597 fi 17598 17599 # Call helper function which possibly converts this using DOS-style short mode. 17600 # If so, the updated path is stored in $new_path. 17601 17602 input_path="$new_path" 17603 # Check if we need to convert this using DOS-style short mode. If the path 17604 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17605 # take no chances and rewrite it. 17606 # Note: m4 eats our [], so we need to use [ and ] instead. 17607 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17608 if test "x$has_forbidden_chars" != x; then 17609 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17610 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17611 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17612 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17613 # Going to short mode and back again did indeed matter. Since short mode is 17614 # case insensitive, let's make it lowercase to improve readability. 17615 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17616 # Now convert it back to Unix-style (cygpath) 17617 input_path=`$CYGPATH -u "$shortmode_path"` 17618 new_path="$input_path" 17619 fi 17620 fi 17621 17622 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17623 if test "x$test_cygdrive_prefix" = x; then 17624 # As a simple fix, exclude /usr/bin since it's not a real path. 17625 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17626 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17627 # a path prefixed by /cygdrive for fixpath to work. 17628 new_path="$CYGWIN_ROOT_PATH$input_path" 17629 fi 17630 fi 17631 17632 17633 if test "x$path" != "x$new_path"; then 17634 OUTPUT_ROOT="$new_path" 17635 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17636 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17637 fi 17638 17639 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17640 17641 path="$OUTPUT_ROOT" 17642 has_colon=`$ECHO $path | $GREP ^.:` 17643 new_path="$path" 17644 if test "x$has_colon" = x; then 17645 # Not in mixed or Windows style, start by that. 17646 new_path=`cmd //c echo $path` 17647 fi 17648 17649 17650 input_path="$new_path" 17651 # Check if we need to convert this using DOS-style short mode. If the path 17652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17653 # take no chances and rewrite it. 17654 # Note: m4 eats our [], so we need to use [ and ] instead. 17655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17656 if test "x$has_forbidden_chars" != x; then 17657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17658 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17659 fi 17660 17661 17662 windows_path="$new_path" 17663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17664 unix_path=`$CYGPATH -u "$windows_path"` 17665 new_path="$unix_path" 17666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17667 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17668 new_path="$unix_path" 17669 fi 17670 17671 if test "x$path" != "x$new_path"; then 17672 OUTPUT_ROOT="$new_path" 17673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17674 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17675 fi 17676 17677 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17678 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17679 17680 else 17681 # We're on a unix platform. Hooray! :) 17682 path="$OUTPUT_ROOT" 17683 has_space=`$ECHO "$path" | $GREP " "` 17684 if test "x$has_space" != x; then 17685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17686 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17687 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17688 fi 17689 17690 # Use eval to expand a potential ~ 17691 eval path="$path" 17692 if test ! -f "$path" && test ! -d "$path"; then 17693 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 17694 fi 17695 17696 if test -d "$path"; then 17697 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 17698 else 17699 dir="`$DIRNAME "$path"`" 17700 base="`$BASENAME "$path"`" 17701 OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base" 17702 fi 17703 fi 17704 fi 17705 17706 17707 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 17708 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17709 17710 SPEC="$OUTPUT_ROOT/spec.gmk" 17711 17712 17713 17714 17715 17716 # The spec.gmk file contains all variables for the make system. 17717 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17718 17719 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17720 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17721 17722 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17723 ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17724 17725 # The compare.sh is used to compare the build output to other builds. 17726 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17727 17728 # The generated Makefile knows where the spec.gmk is and where the source is. 17729 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 17730 # which will look for generated configurations 17731 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 17732 17733 17734 17735 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17736 17737 for ac_prog in apt-get yum brew port pkgutil pkgadd 17738 do 17739 # Extract the first word of "$ac_prog", so it can be a program name with args. 17740 set dummy $ac_prog; ac_word=$2 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17742 $as_echo_n "checking for $ac_word... " >&6; } 17743 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17744 $as_echo_n "(cached) " >&6 17745 else 17746 if test -n "$PKGHANDLER"; then 17747 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17748 else 17749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17750 for as_dir in $PATH 17751 do 17752 IFS=$as_save_IFS 17753 test -z "$as_dir" && as_dir=. 17754 for ac_exec_ext in '' $ac_executable_extensions; do 17755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17756 ac_cv_prog_PKGHANDLER="$ac_prog" 17757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17758 break 2 17759 fi 17760 done 17761 done 17762 IFS=$as_save_IFS 17763 17764 fi 17765 fi 17766 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17767 if test -n "$PKGHANDLER"; then 17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17769 $as_echo "$PKGHANDLER" >&6; } 17770 else 17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17772 $as_echo "no" >&6; } 17773 fi 17774 17775 17776 test -n "$PKGHANDLER" && break 17777 done 17778 17779 17780 17781 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17782 17783 17784 17785 # Publish this variable in the help. 17786 17787 17788 if [ -z "${MAKE+x}" ]; then 17789 # The variable is not set by user, try to locate tool using the code snippet 17790 17791 # Try our hardest to locate a correct version of GNU make 17792 for ac_prog in gmake 17793 do 17794 # Extract the first word of "$ac_prog", so it can be a program name with args. 17795 set dummy $ac_prog; ac_word=$2 17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17797 $as_echo_n "checking for $ac_word... " >&6; } 17798 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17799 $as_echo_n "(cached) " >&6 17800 else 17801 case $CHECK_GMAKE in 17802 [\\/]* | ?:[\\/]*) 17803 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17804 ;; 17805 *) 17806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17807 for as_dir in $PATH 17808 do 17809 IFS=$as_save_IFS 17810 test -z "$as_dir" && as_dir=. 17811 for ac_exec_ext in '' $ac_executable_extensions; do 17812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17813 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17815 break 2 17816 fi 17817 done 17818 done 17819 IFS=$as_save_IFS 17820 17821 ;; 17822 esac 17823 fi 17824 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17825 if test -n "$CHECK_GMAKE"; then 17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17827 $as_echo "$CHECK_GMAKE" >&6; } 17828 else 17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17830 $as_echo "no" >&6; } 17831 fi 17832 17833 17834 test -n "$CHECK_GMAKE" && break 17835 done 17836 17837 17838 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17839 DESCRIPTION="gmake in PATH" 17840 17841 # On Cygwin, we require a newer version of make than on other platforms 17842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17843 MAKE_VERSION_EXPR="-e 4\." 17844 MAKE_REQUIRED_VERSION="4.0" 17845 else 17846 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17847 MAKE_REQUIRED_VERSION="3.81" 17848 fi 17849 17850 if test "x$MAKE_CANDIDATE" != x; then 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17852 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17853 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17854 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17855 if test "x$IS_GNU_MAKE" = x; then 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17857 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17858 else 17859 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17860 if test "x$IS_MODERN_MAKE" = x; then 17861 { $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 17862 $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;} 17863 else 17864 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17866 MAKE_EXPECTED_ENV='cygwin' 17867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17868 MAKE_EXPECTED_ENV='msys' 17869 else 17870 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17871 fi 17872 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17873 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17874 else 17875 # Not relevant for non-Windows 17876 IS_MAKE_CORRECT_ENV=true 17877 fi 17878 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17879 { $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 17880 $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;} 17881 else 17882 FOUND_MAKE=$MAKE_CANDIDATE 17883 17884 # Only process if variable expands to non-empty 17885 17886 if test "x$FOUND_MAKE" != x; then 17887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17888 17889 # First separate the path from the arguments. This will split at the first 17890 # space. 17891 complete="$FOUND_MAKE" 17892 path="${complete%% *}" 17893 tmp="$complete EOL" 17894 arguments="${tmp#* }" 17895 17896 # Input might be given as Windows format, start by converting to 17897 # unix format. 17898 new_path=`$CYGPATH -u "$path"` 17899 17900 # Now try to locate executable using which 17901 new_path=`$WHICH "$new_path" 2> /dev/null` 17902 # bat and cmd files are not always considered executable in cygwin causing which 17903 # to not find them 17904 if test "x$new_path" = x \ 17905 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17906 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17907 new_path=`$CYGPATH -u "$path"` 17908 fi 17909 if test "x$new_path" = x; then 17910 # Oops. Which didn't find the executable. 17911 # The splitting of arguments from the executable at a space might have been incorrect, 17912 # since paths with space are more likely in Windows. Give it another try with the whole 17913 # argument. 17914 path="$complete" 17915 arguments="EOL" 17916 new_path=`$CYGPATH -u "$path"` 17917 new_path=`$WHICH "$new_path" 2> /dev/null` 17918 # bat and cmd files are not always considered executable in cygwin causing which 17919 # to not find them 17920 if test "x$new_path" = x \ 17921 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17922 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17923 new_path=`$CYGPATH -u "$path"` 17924 fi 17925 if test "x$new_path" = x; then 17926 # It's still not found. Now this is an unrecoverable error. 17927 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17928 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17929 has_space=`$ECHO "$complete" | $GREP " "` 17930 if test "x$has_space" != x; then 17931 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17932 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17933 fi 17934 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17935 fi 17936 fi 17937 17938 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17939 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17940 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17941 # "foo.exe" is OK but "foo" is an error. 17942 # 17943 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17944 # It is also a way to make sure we got the proper file name for the real test later on. 17945 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17946 if test "x$test_shortpath" = x; then 17947 # Short path failed, file does not exist as specified. 17948 # Try adding .exe or .cmd 17949 if test -f "${new_path}.exe"; then 17950 input_to_shortpath="${new_path}.exe" 17951 elif test -f "${new_path}.cmd"; then 17952 input_to_shortpath="${new_path}.cmd" 17953 else 17954 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17955 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17957 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17958 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17959 fi 17960 else 17961 input_to_shortpath="$new_path" 17962 fi 17963 17964 # Call helper function which possibly converts this using DOS-style short mode. 17965 # If so, the updated path is stored in $new_path. 17966 new_path="$input_to_shortpath" 17967 17968 input_path="$input_to_shortpath" 17969 # Check if we need to convert this using DOS-style short mode. If the path 17970 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17971 # take no chances and rewrite it. 17972 # Note: m4 eats our [], so we need to use [ and ] instead. 17973 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17974 if test "x$has_forbidden_chars" != x; then 17975 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17976 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17977 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17978 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17979 # Going to short mode and back again did indeed matter. Since short mode is 17980 # case insensitive, let's make it lowercase to improve readability. 17981 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17982 # Now convert it back to Unix-style (cygpath) 17983 input_path=`$CYGPATH -u "$shortmode_path"` 17984 new_path="$input_path" 17985 fi 17986 fi 17987 17988 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17989 if test "x$test_cygdrive_prefix" = x; then 17990 # As a simple fix, exclude /usr/bin since it's not a real path. 17991 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17992 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17993 # a path prefixed by /cygdrive for fixpath to work. 17994 new_path="$CYGWIN_ROOT_PATH$input_path" 17995 fi 17996 fi 17997 17998 # remove trailing .exe if any 17999 new_path="${new_path/%.exe/}" 18000 18001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18002 18003 # First separate the path from the arguments. This will split at the first 18004 # space. 18005 complete="$FOUND_MAKE" 18006 path="${complete%% *}" 18007 tmp="$complete EOL" 18008 arguments="${tmp#* }" 18009 18010 # Input might be given as Windows format, start by converting to 18011 # unix format. 18012 new_path="$path" 18013 18014 windows_path="$new_path" 18015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18016 unix_path=`$CYGPATH -u "$windows_path"` 18017 new_path="$unix_path" 18018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18020 new_path="$unix_path" 18021 fi 18022 18023 18024 # Now try to locate executable using which 18025 new_path=`$WHICH "$new_path" 2> /dev/null` 18026 18027 if test "x$new_path" = x; then 18028 # Oops. Which didn't find the executable. 18029 # The splitting of arguments from the executable at a space might have been incorrect, 18030 # since paths with space are more likely in Windows. Give it another try with the whole 18031 # argument. 18032 path="$complete" 18033 arguments="EOL" 18034 new_path="$path" 18035 18036 windows_path="$new_path" 18037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18038 unix_path=`$CYGPATH -u "$windows_path"` 18039 new_path="$unix_path" 18040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18041 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18042 new_path="$unix_path" 18043 fi 18044 18045 18046 new_path=`$WHICH "$new_path" 2> /dev/null` 18047 # bat and cmd files are not always considered executable in MSYS causing which 18048 # to not find them 18049 if test "x$new_path" = x \ 18050 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18051 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18052 new_path="$path" 18053 18054 windows_path="$new_path" 18055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18056 unix_path=`$CYGPATH -u "$windows_path"` 18057 new_path="$unix_path" 18058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18059 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18060 new_path="$unix_path" 18061 fi 18062 18063 fi 18064 18065 if test "x$new_path" = x; then 18066 # It's still not found. Now this is an unrecoverable error. 18067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18068 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18069 has_space=`$ECHO "$complete" | $GREP " "` 18070 if test "x$has_space" != x; then 18071 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18072 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18073 fi 18074 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18075 fi 18076 fi 18077 18078 # Now new_path has a complete unix path to the binary 18079 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18080 # Keep paths in /bin as-is, but remove trailing .exe if any 18081 new_path="${new_path/%.exe/}" 18082 # Do not save /bin paths to all_fixpath_prefixes! 18083 else 18084 # Not in mixed or Windows style, start by that. 18085 new_path=`cmd //c echo $new_path` 18086 18087 input_path="$new_path" 18088 # Check if we need to convert this using DOS-style short mode. If the path 18089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18090 # take no chances and rewrite it. 18091 # Note: m4 eats our [], so we need to use [ and ] instead. 18092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18093 if test "x$has_forbidden_chars" != x; then 18094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18095 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18096 fi 18097 18098 # Output is in $new_path 18099 18100 windows_path="$new_path" 18101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18102 unix_path=`$CYGPATH -u "$windows_path"` 18103 new_path="$unix_path" 18104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18106 new_path="$unix_path" 18107 fi 18108 18109 # remove trailing .exe if any 18110 new_path="${new_path/%.exe/}" 18111 18112 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18113 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18114 fi 18115 18116 else 18117 # We're on a unix platform. Hooray! :) 18118 # First separate the path from the arguments. This will split at the first 18119 # space. 18120 complete="$FOUND_MAKE" 18121 path="${complete%% *}" 18122 tmp="$complete EOL" 18123 arguments="${tmp#* }" 18124 18125 # Cannot rely on the command "which" here since it doesn't always work. 18126 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18127 if test -z "$is_absolute_path"; then 18128 # Path to executable is not absolute. Find it. 18129 IFS_save="$IFS" 18130 IFS=: 18131 for p in $PATH; do 18132 if test -f "$p/$path" && test -x "$p/$path"; then 18133 new_path="$p/$path" 18134 break 18135 fi 18136 done 18137 IFS="$IFS_save" 18138 else 18139 # This is an absolute path, we can use it without further modifications. 18140 new_path="$path" 18141 fi 18142 18143 if test "x$new_path" = x; then 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18145 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18146 has_space=`$ECHO "$complete" | $GREP " "` 18147 if test "x$has_space" != x; then 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18149 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18150 fi 18151 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18152 fi 18153 fi 18154 18155 # Now join together the path and the arguments once again 18156 if test "x$arguments" != xEOL; then 18157 new_complete="$new_path ${arguments% *}" 18158 else 18159 new_complete="$new_path" 18160 fi 18161 18162 if test "x$complete" != "x$new_complete"; then 18163 FOUND_MAKE="$new_complete" 18164 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18165 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18166 fi 18167 fi 18168 18169 fi 18170 fi 18171 fi 18172 fi 18173 18174 18175 if test "x$FOUND_MAKE" = x; then 18176 for ac_prog in make 18177 do 18178 # Extract the first word of "$ac_prog", so it can be a program name with args. 18179 set dummy $ac_prog; ac_word=$2 18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18181 $as_echo_n "checking for $ac_word... " >&6; } 18182 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18183 $as_echo_n "(cached) " >&6 18184 else 18185 case $CHECK_MAKE in 18186 [\\/]* | ?:[\\/]*) 18187 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18188 ;; 18189 *) 18190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18191 for as_dir in $PATH 18192 do 18193 IFS=$as_save_IFS 18194 test -z "$as_dir" && as_dir=. 18195 for ac_exec_ext in '' $ac_executable_extensions; do 18196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18197 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18199 break 2 18200 fi 18201 done 18202 done 18203 IFS=$as_save_IFS 18204 18205 ;; 18206 esac 18207 fi 18208 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18209 if test -n "$CHECK_MAKE"; then 18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18211 $as_echo "$CHECK_MAKE" >&6; } 18212 else 18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18214 $as_echo "no" >&6; } 18215 fi 18216 18217 18218 test -n "$CHECK_MAKE" && break 18219 done 18220 18221 18222 MAKE_CANDIDATE=""$CHECK_MAKE"" 18223 DESCRIPTION="make in PATH" 18224 18225 # On Cygwin, we require a newer version of make than on other platforms 18226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18227 MAKE_VERSION_EXPR="-e 4\." 18228 MAKE_REQUIRED_VERSION="4.0" 18229 else 18230 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18231 MAKE_REQUIRED_VERSION="3.81" 18232 fi 18233 18234 if test "x$MAKE_CANDIDATE" != x; then 18235 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18236 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18237 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18238 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18239 if test "x$IS_GNU_MAKE" = x; then 18240 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18241 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18242 else 18243 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18244 if test "x$IS_MODERN_MAKE" = x; then 18245 { $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 18246 $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;} 18247 else 18248 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18250 MAKE_EXPECTED_ENV='cygwin' 18251 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18252 MAKE_EXPECTED_ENV='msys' 18253 else 18254 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18255 fi 18256 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18257 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18258 else 18259 # Not relevant for non-Windows 18260 IS_MAKE_CORRECT_ENV=true 18261 fi 18262 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18263 { $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 18264 $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;} 18265 else 18266 FOUND_MAKE=$MAKE_CANDIDATE 18267 18268 # Only process if variable expands to non-empty 18269 18270 if test "x$FOUND_MAKE" != x; then 18271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18272 18273 # First separate the path from the arguments. This will split at the first 18274 # space. 18275 complete="$FOUND_MAKE" 18276 path="${complete%% *}" 18277 tmp="$complete EOL" 18278 arguments="${tmp#* }" 18279 18280 # Input might be given as Windows format, start by converting to 18281 # unix format. 18282 new_path=`$CYGPATH -u "$path"` 18283 18284 # Now try to locate executable using which 18285 new_path=`$WHICH "$new_path" 2> /dev/null` 18286 # bat and cmd files are not always considered executable in cygwin causing which 18287 # to not find them 18288 if test "x$new_path" = x \ 18289 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18290 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18291 new_path=`$CYGPATH -u "$path"` 18292 fi 18293 if test "x$new_path" = x; then 18294 # Oops. Which didn't find the executable. 18295 # The splitting of arguments from the executable at a space might have been incorrect, 18296 # since paths with space are more likely in Windows. Give it another try with the whole 18297 # argument. 18298 path="$complete" 18299 arguments="EOL" 18300 new_path=`$CYGPATH -u "$path"` 18301 new_path=`$WHICH "$new_path" 2> /dev/null` 18302 # bat and cmd files are not always considered executable in cygwin causing which 18303 # to not find them 18304 if test "x$new_path" = x \ 18305 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18306 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18307 new_path=`$CYGPATH -u "$path"` 18308 fi 18309 if test "x$new_path" = x; then 18310 # It's still not found. Now this is an unrecoverable error. 18311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18312 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18313 has_space=`$ECHO "$complete" | $GREP " "` 18314 if test "x$has_space" != x; then 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18316 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18317 fi 18318 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18319 fi 18320 fi 18321 18322 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18323 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18324 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18325 # "foo.exe" is OK but "foo" is an error. 18326 # 18327 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18328 # It is also a way to make sure we got the proper file name for the real test later on. 18329 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18330 if test "x$test_shortpath" = x; then 18331 # Short path failed, file does not exist as specified. 18332 # Try adding .exe or .cmd 18333 if test -f "${new_path}.exe"; then 18334 input_to_shortpath="${new_path}.exe" 18335 elif test -f "${new_path}.cmd"; then 18336 input_to_shortpath="${new_path}.cmd" 18337 else 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18339 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18340 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18341 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18342 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18343 fi 18344 else 18345 input_to_shortpath="$new_path" 18346 fi 18347 18348 # Call helper function which possibly converts this using DOS-style short mode. 18349 # If so, the updated path is stored in $new_path. 18350 new_path="$input_to_shortpath" 18351 18352 input_path="$input_to_shortpath" 18353 # Check if we need to convert this using DOS-style short mode. If the path 18354 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18355 # take no chances and rewrite it. 18356 # Note: m4 eats our [], so we need to use [ and ] instead. 18357 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18358 if test "x$has_forbidden_chars" != x; then 18359 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18360 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18361 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18362 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18363 # Going to short mode and back again did indeed matter. Since short mode is 18364 # case insensitive, let's make it lowercase to improve readability. 18365 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18366 # Now convert it back to Unix-style (cygpath) 18367 input_path=`$CYGPATH -u "$shortmode_path"` 18368 new_path="$input_path" 18369 fi 18370 fi 18371 18372 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18373 if test "x$test_cygdrive_prefix" = x; then 18374 # As a simple fix, exclude /usr/bin since it's not a real path. 18375 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18376 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18377 # a path prefixed by /cygdrive for fixpath to work. 18378 new_path="$CYGWIN_ROOT_PATH$input_path" 18379 fi 18380 fi 18381 18382 # remove trailing .exe if any 18383 new_path="${new_path/%.exe/}" 18384 18385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18386 18387 # First separate the path from the arguments. This will split at the first 18388 # space. 18389 complete="$FOUND_MAKE" 18390 path="${complete%% *}" 18391 tmp="$complete EOL" 18392 arguments="${tmp#* }" 18393 18394 # Input might be given as Windows format, start by converting to 18395 # unix format. 18396 new_path="$path" 18397 18398 windows_path="$new_path" 18399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18400 unix_path=`$CYGPATH -u "$windows_path"` 18401 new_path="$unix_path" 18402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18404 new_path="$unix_path" 18405 fi 18406 18407 18408 # Now try to locate executable using which 18409 new_path=`$WHICH "$new_path" 2> /dev/null` 18410 18411 if test "x$new_path" = x; then 18412 # Oops. Which didn't find the executable. 18413 # The splitting of arguments from the executable at a space might have been incorrect, 18414 # since paths with space are more likely in Windows. Give it another try with the whole 18415 # argument. 18416 path="$complete" 18417 arguments="EOL" 18418 new_path="$path" 18419 18420 windows_path="$new_path" 18421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18422 unix_path=`$CYGPATH -u "$windows_path"` 18423 new_path="$unix_path" 18424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18425 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18426 new_path="$unix_path" 18427 fi 18428 18429 18430 new_path=`$WHICH "$new_path" 2> /dev/null` 18431 # bat and cmd files are not always considered executable in MSYS causing which 18432 # to not find them 18433 if test "x$new_path" = x \ 18434 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18435 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18436 new_path="$path" 18437 18438 windows_path="$new_path" 18439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18440 unix_path=`$CYGPATH -u "$windows_path"` 18441 new_path="$unix_path" 18442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18444 new_path="$unix_path" 18445 fi 18446 18447 fi 18448 18449 if test "x$new_path" = x; then 18450 # It's still not found. Now this is an unrecoverable error. 18451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18452 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18453 has_space=`$ECHO "$complete" | $GREP " "` 18454 if test "x$has_space" != x; then 18455 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18456 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18457 fi 18458 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18459 fi 18460 fi 18461 18462 # Now new_path has a complete unix path to the binary 18463 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18464 # Keep paths in /bin as-is, but remove trailing .exe if any 18465 new_path="${new_path/%.exe/}" 18466 # Do not save /bin paths to all_fixpath_prefixes! 18467 else 18468 # Not in mixed or Windows style, start by that. 18469 new_path=`cmd //c echo $new_path` 18470 18471 input_path="$new_path" 18472 # Check if we need to convert this using DOS-style short mode. If the path 18473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18474 # take no chances and rewrite it. 18475 # Note: m4 eats our [], so we need to use [ and ] instead. 18476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18477 if test "x$has_forbidden_chars" != x; then 18478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18479 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18480 fi 18481 18482 # Output is in $new_path 18483 18484 windows_path="$new_path" 18485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18486 unix_path=`$CYGPATH -u "$windows_path"` 18487 new_path="$unix_path" 18488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18489 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18490 new_path="$unix_path" 18491 fi 18492 18493 # remove trailing .exe if any 18494 new_path="${new_path/%.exe/}" 18495 18496 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18497 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18498 fi 18499 18500 else 18501 # We're on a unix platform. Hooray! :) 18502 # First separate the path from the arguments. This will split at the first 18503 # space. 18504 complete="$FOUND_MAKE" 18505 path="${complete%% *}" 18506 tmp="$complete EOL" 18507 arguments="${tmp#* }" 18508 18509 # Cannot rely on the command "which" here since it doesn't always work. 18510 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18511 if test -z "$is_absolute_path"; then 18512 # Path to executable is not absolute. Find it. 18513 IFS_save="$IFS" 18514 IFS=: 18515 for p in $PATH; do 18516 if test -f "$p/$path" && test -x "$p/$path"; then 18517 new_path="$p/$path" 18518 break 18519 fi 18520 done 18521 IFS="$IFS_save" 18522 else 18523 # This is an absolute path, we can use it without further modifications. 18524 new_path="$path" 18525 fi 18526 18527 if test "x$new_path" = x; then 18528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18529 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18530 has_space=`$ECHO "$complete" | $GREP " "` 18531 if test "x$has_space" != x; then 18532 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18533 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18534 fi 18535 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18536 fi 18537 fi 18538 18539 # Now join together the path and the arguments once again 18540 if test "x$arguments" != xEOL; then 18541 new_complete="$new_path ${arguments% *}" 18542 else 18543 new_complete="$new_path" 18544 fi 18545 18546 if test "x$complete" != "x$new_complete"; then 18547 FOUND_MAKE="$new_complete" 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18549 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18550 fi 18551 fi 18552 18553 fi 18554 fi 18555 fi 18556 fi 18557 18558 fi 18559 18560 if test "x$FOUND_MAKE" = x; then 18561 if test "x$TOOLCHAIN_PATH" != x; then 18562 # We have a toolchain path, check that as well before giving up. 18563 OLD_PATH=$PATH 18564 PATH=$TOOLCHAIN_PATH:$PATH 18565 for ac_prog in gmake 18566 do 18567 # Extract the first word of "$ac_prog", so it can be a program name with args. 18568 set dummy $ac_prog; ac_word=$2 18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18570 $as_echo_n "checking for $ac_word... " >&6; } 18571 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18572 $as_echo_n "(cached) " >&6 18573 else 18574 case $CHECK_TOOLSDIR_GMAKE in 18575 [\\/]* | ?:[\\/]*) 18576 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18577 ;; 18578 *) 18579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18580 for as_dir in $PATH 18581 do 18582 IFS=$as_save_IFS 18583 test -z "$as_dir" && as_dir=. 18584 for ac_exec_ext in '' $ac_executable_extensions; do 18585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18586 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18588 break 2 18589 fi 18590 done 18591 done 18592 IFS=$as_save_IFS 18593 18594 ;; 18595 esac 18596 fi 18597 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18598 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18600 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18601 else 18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18603 $as_echo "no" >&6; } 18604 fi 18605 18606 18607 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18608 done 18609 18610 18611 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18612 DESCRIPTION="gmake in tools-dir" 18613 18614 # On Cygwin, we require a newer version of make than on other platforms 18615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18616 MAKE_VERSION_EXPR="-e 4\." 18617 MAKE_REQUIRED_VERSION="4.0" 18618 else 18619 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18620 MAKE_REQUIRED_VERSION="3.81" 18621 fi 18622 18623 if test "x$MAKE_CANDIDATE" != x; then 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18625 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18626 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18627 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18628 if test "x$IS_GNU_MAKE" = x; then 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18630 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18631 else 18632 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18633 if test "x$IS_MODERN_MAKE" = x; then 18634 { $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 18635 $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;} 18636 else 18637 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18639 MAKE_EXPECTED_ENV='cygwin' 18640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18641 MAKE_EXPECTED_ENV='msys' 18642 else 18643 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18644 fi 18645 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18646 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18647 else 18648 # Not relevant for non-Windows 18649 IS_MAKE_CORRECT_ENV=true 18650 fi 18651 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18652 { $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 18653 $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;} 18654 else 18655 FOUND_MAKE=$MAKE_CANDIDATE 18656 18657 # Only process if variable expands to non-empty 18658 18659 if test "x$FOUND_MAKE" != x; then 18660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18661 18662 # First separate the path from the arguments. This will split at the first 18663 # space. 18664 complete="$FOUND_MAKE" 18665 path="${complete%% *}" 18666 tmp="$complete EOL" 18667 arguments="${tmp#* }" 18668 18669 # Input might be given as Windows format, start by converting to 18670 # unix format. 18671 new_path=`$CYGPATH -u "$path"` 18672 18673 # Now try to locate executable using which 18674 new_path=`$WHICH "$new_path" 2> /dev/null` 18675 # bat and cmd files are not always considered executable in cygwin causing which 18676 # to not find them 18677 if test "x$new_path" = x \ 18678 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18679 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18680 new_path=`$CYGPATH -u "$path"` 18681 fi 18682 if test "x$new_path" = x; then 18683 # Oops. Which didn't find the executable. 18684 # The splitting of arguments from the executable at a space might have been incorrect, 18685 # since paths with space are more likely in Windows. Give it another try with the whole 18686 # argument. 18687 path="$complete" 18688 arguments="EOL" 18689 new_path=`$CYGPATH -u "$path"` 18690 new_path=`$WHICH "$new_path" 2> /dev/null` 18691 # bat and cmd files are not always considered executable in cygwin causing which 18692 # to not find them 18693 if test "x$new_path" = x \ 18694 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18695 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18696 new_path=`$CYGPATH -u "$path"` 18697 fi 18698 if test "x$new_path" = x; then 18699 # It's still not found. Now this is an unrecoverable error. 18700 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18701 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18702 has_space=`$ECHO "$complete" | $GREP " "` 18703 if test "x$has_space" != x; then 18704 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18705 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18706 fi 18707 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18708 fi 18709 fi 18710 18711 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18712 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18713 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18714 # "foo.exe" is OK but "foo" is an error. 18715 # 18716 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18717 # It is also a way to make sure we got the proper file name for the real test later on. 18718 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18719 if test "x$test_shortpath" = x; then 18720 # Short path failed, file does not exist as specified. 18721 # Try adding .exe or .cmd 18722 if test -f "${new_path}.exe"; then 18723 input_to_shortpath="${new_path}.exe" 18724 elif test -f "${new_path}.cmd"; then 18725 input_to_shortpath="${new_path}.cmd" 18726 else 18727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18728 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18729 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18730 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18731 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18732 fi 18733 else 18734 input_to_shortpath="$new_path" 18735 fi 18736 18737 # Call helper function which possibly converts this using DOS-style short mode. 18738 # If so, the updated path is stored in $new_path. 18739 new_path="$input_to_shortpath" 18740 18741 input_path="$input_to_shortpath" 18742 # Check if we need to convert this using DOS-style short mode. If the path 18743 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18744 # take no chances and rewrite it. 18745 # Note: m4 eats our [], so we need to use [ and ] instead. 18746 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18747 if test "x$has_forbidden_chars" != x; then 18748 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18749 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18750 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18751 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18752 # Going to short mode and back again did indeed matter. Since short mode is 18753 # case insensitive, let's make it lowercase to improve readability. 18754 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18755 # Now convert it back to Unix-style (cygpath) 18756 input_path=`$CYGPATH -u "$shortmode_path"` 18757 new_path="$input_path" 18758 fi 18759 fi 18760 18761 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18762 if test "x$test_cygdrive_prefix" = x; then 18763 # As a simple fix, exclude /usr/bin since it's not a real path. 18764 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18765 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18766 # a path prefixed by /cygdrive for fixpath to work. 18767 new_path="$CYGWIN_ROOT_PATH$input_path" 18768 fi 18769 fi 18770 18771 # remove trailing .exe if any 18772 new_path="${new_path/%.exe/}" 18773 18774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18775 18776 # First separate the path from the arguments. This will split at the first 18777 # space. 18778 complete="$FOUND_MAKE" 18779 path="${complete%% *}" 18780 tmp="$complete EOL" 18781 arguments="${tmp#* }" 18782 18783 # Input might be given as Windows format, start by converting to 18784 # unix format. 18785 new_path="$path" 18786 18787 windows_path="$new_path" 18788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18789 unix_path=`$CYGPATH -u "$windows_path"` 18790 new_path="$unix_path" 18791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18792 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18793 new_path="$unix_path" 18794 fi 18795 18796 18797 # Now try to locate executable using which 18798 new_path=`$WHICH "$new_path" 2> /dev/null` 18799 18800 if test "x$new_path" = x; then 18801 # Oops. Which didn't find the executable. 18802 # The splitting of arguments from the executable at a space might have been incorrect, 18803 # since paths with space are more likely in Windows. Give it another try with the whole 18804 # argument. 18805 path="$complete" 18806 arguments="EOL" 18807 new_path="$path" 18808 18809 windows_path="$new_path" 18810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18811 unix_path=`$CYGPATH -u "$windows_path"` 18812 new_path="$unix_path" 18813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18814 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18815 new_path="$unix_path" 18816 fi 18817 18818 18819 new_path=`$WHICH "$new_path" 2> /dev/null` 18820 # bat and cmd files are not always considered executable in MSYS causing which 18821 # to not find them 18822 if test "x$new_path" = x \ 18823 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18824 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18825 new_path="$path" 18826 18827 windows_path="$new_path" 18828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18829 unix_path=`$CYGPATH -u "$windows_path"` 18830 new_path="$unix_path" 18831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18832 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18833 new_path="$unix_path" 18834 fi 18835 18836 fi 18837 18838 if test "x$new_path" = x; then 18839 # It's still not found. Now this is an unrecoverable error. 18840 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18841 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18842 has_space=`$ECHO "$complete" | $GREP " "` 18843 if test "x$has_space" != x; then 18844 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18845 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18846 fi 18847 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18848 fi 18849 fi 18850 18851 # Now new_path has a complete unix path to the binary 18852 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18853 # Keep paths in /bin as-is, but remove trailing .exe if any 18854 new_path="${new_path/%.exe/}" 18855 # Do not save /bin paths to all_fixpath_prefixes! 18856 else 18857 # Not in mixed or Windows style, start by that. 18858 new_path=`cmd //c echo $new_path` 18859 18860 input_path="$new_path" 18861 # Check if we need to convert this using DOS-style short mode. If the path 18862 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18863 # take no chances and rewrite it. 18864 # Note: m4 eats our [], so we need to use [ and ] instead. 18865 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18866 if test "x$has_forbidden_chars" != x; then 18867 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18868 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18869 fi 18870 18871 # Output is in $new_path 18872 18873 windows_path="$new_path" 18874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18875 unix_path=`$CYGPATH -u "$windows_path"` 18876 new_path="$unix_path" 18877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18879 new_path="$unix_path" 18880 fi 18881 18882 # remove trailing .exe if any 18883 new_path="${new_path/%.exe/}" 18884 18885 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18886 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18887 fi 18888 18889 else 18890 # We're on a unix platform. Hooray! :) 18891 # First separate the path from the arguments. This will split at the first 18892 # space. 18893 complete="$FOUND_MAKE" 18894 path="${complete%% *}" 18895 tmp="$complete EOL" 18896 arguments="${tmp#* }" 18897 18898 # Cannot rely on the command "which" here since it doesn't always work. 18899 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18900 if test -z "$is_absolute_path"; then 18901 # Path to executable is not absolute. Find it. 18902 IFS_save="$IFS" 18903 IFS=: 18904 for p in $PATH; do 18905 if test -f "$p/$path" && test -x "$p/$path"; then 18906 new_path="$p/$path" 18907 break 18908 fi 18909 done 18910 IFS="$IFS_save" 18911 else 18912 # This is an absolute path, we can use it without further modifications. 18913 new_path="$path" 18914 fi 18915 18916 if test "x$new_path" = x; then 18917 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18918 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18919 has_space=`$ECHO "$complete" | $GREP " "` 18920 if test "x$has_space" != x; then 18921 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18922 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18923 fi 18924 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18925 fi 18926 fi 18927 18928 # Now join together the path and the arguments once again 18929 if test "x$arguments" != xEOL; then 18930 new_complete="$new_path ${arguments% *}" 18931 else 18932 new_complete="$new_path" 18933 fi 18934 18935 if test "x$complete" != "x$new_complete"; then 18936 FOUND_MAKE="$new_complete" 18937 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18938 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18939 fi 18940 fi 18941 18942 fi 18943 fi 18944 fi 18945 fi 18946 18947 if test "x$FOUND_MAKE" = x; then 18948 for ac_prog in make 18949 do 18950 # Extract the first word of "$ac_prog", so it can be a program name with args. 18951 set dummy $ac_prog; ac_word=$2 18952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18953 $as_echo_n "checking for $ac_word... " >&6; } 18954 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 18955 $as_echo_n "(cached) " >&6 18956 else 18957 case $CHECK_TOOLSDIR_MAKE in 18958 [\\/]* | ?:[\\/]*) 18959 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 18960 ;; 18961 *) 18962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18963 for as_dir in $PATH 18964 do 18965 IFS=$as_save_IFS 18966 test -z "$as_dir" && as_dir=. 18967 for ac_exec_ext in '' $ac_executable_extensions; do 18968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18969 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 18970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18971 break 2 18972 fi 18973 done 18974 done 18975 IFS=$as_save_IFS 18976 18977 ;; 18978 esac 18979 fi 18980 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 18981 if test -n "$CHECK_TOOLSDIR_MAKE"; then 18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 18983 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 18984 else 18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18986 $as_echo "no" >&6; } 18987 fi 18988 18989 18990 test -n "$CHECK_TOOLSDIR_MAKE" && break 18991 done 18992 18993 18994 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 18995 DESCRIPTION="make in tools-dir" 18996 18997 # On Cygwin, we require a newer version of make than on other platforms 18998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18999 MAKE_VERSION_EXPR="-e 4\." 19000 MAKE_REQUIRED_VERSION="4.0" 19001 else 19002 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19003 MAKE_REQUIRED_VERSION="3.81" 19004 fi 19005 19006 if test "x$MAKE_CANDIDATE" != x; then 19007 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19008 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19009 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19010 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19011 if test "x$IS_GNU_MAKE" = x; then 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19013 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19014 else 19015 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19016 if test "x$IS_MODERN_MAKE" = x; then 19017 { $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 19018 $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;} 19019 else 19020 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19022 MAKE_EXPECTED_ENV='cygwin' 19023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19024 MAKE_EXPECTED_ENV='msys' 19025 else 19026 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19027 fi 19028 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19029 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19030 else 19031 # Not relevant for non-Windows 19032 IS_MAKE_CORRECT_ENV=true 19033 fi 19034 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19035 { $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 19036 $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;} 19037 else 19038 FOUND_MAKE=$MAKE_CANDIDATE 19039 19040 # Only process if variable expands to non-empty 19041 19042 if test "x$FOUND_MAKE" != x; then 19043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19044 19045 # First separate the path from the arguments. This will split at the first 19046 # space. 19047 complete="$FOUND_MAKE" 19048 path="${complete%% *}" 19049 tmp="$complete EOL" 19050 arguments="${tmp#* }" 19051 19052 # Input might be given as Windows format, start by converting to 19053 # unix format. 19054 new_path=`$CYGPATH -u "$path"` 19055 19056 # Now try to locate executable using which 19057 new_path=`$WHICH "$new_path" 2> /dev/null` 19058 # bat and cmd files are not always considered executable in cygwin causing which 19059 # to not find them 19060 if test "x$new_path" = x \ 19061 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19062 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19063 new_path=`$CYGPATH -u "$path"` 19064 fi 19065 if test "x$new_path" = x; then 19066 # Oops. Which didn't find the executable. 19067 # The splitting of arguments from the executable at a space might have been incorrect, 19068 # since paths with space are more likely in Windows. Give it another try with the whole 19069 # argument. 19070 path="$complete" 19071 arguments="EOL" 19072 new_path=`$CYGPATH -u "$path"` 19073 new_path=`$WHICH "$new_path" 2> /dev/null` 19074 # bat and cmd files are not always considered executable in cygwin causing which 19075 # to not find them 19076 if test "x$new_path" = x \ 19077 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19078 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19079 new_path=`$CYGPATH -u "$path"` 19080 fi 19081 if test "x$new_path" = x; then 19082 # It's still not found. Now this is an unrecoverable error. 19083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19084 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19085 has_space=`$ECHO "$complete" | $GREP " "` 19086 if test "x$has_space" != x; then 19087 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19088 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19089 fi 19090 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19091 fi 19092 fi 19093 19094 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19095 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19096 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19097 # "foo.exe" is OK but "foo" is an error. 19098 # 19099 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19100 # It is also a way to make sure we got the proper file name for the real test later on. 19101 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19102 if test "x$test_shortpath" = x; then 19103 # Short path failed, file does not exist as specified. 19104 # Try adding .exe or .cmd 19105 if test -f "${new_path}.exe"; then 19106 input_to_shortpath="${new_path}.exe" 19107 elif test -f "${new_path}.cmd"; then 19108 input_to_shortpath="${new_path}.cmd" 19109 else 19110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19111 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19112 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19113 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19114 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19115 fi 19116 else 19117 input_to_shortpath="$new_path" 19118 fi 19119 19120 # Call helper function which possibly converts this using DOS-style short mode. 19121 # If so, the updated path is stored in $new_path. 19122 new_path="$input_to_shortpath" 19123 19124 input_path="$input_to_shortpath" 19125 # Check if we need to convert this using DOS-style short mode. If the path 19126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19127 # take no chances and rewrite it. 19128 # Note: m4 eats our [], so we need to use [ and ] instead. 19129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19130 if test "x$has_forbidden_chars" != x; then 19131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19132 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19133 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19134 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19135 # Going to short mode and back again did indeed matter. Since short mode is 19136 # case insensitive, let's make it lowercase to improve readability. 19137 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19138 # Now convert it back to Unix-style (cygpath) 19139 input_path=`$CYGPATH -u "$shortmode_path"` 19140 new_path="$input_path" 19141 fi 19142 fi 19143 19144 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19145 if test "x$test_cygdrive_prefix" = x; then 19146 # As a simple fix, exclude /usr/bin since it's not a real path. 19147 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19148 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19149 # a path prefixed by /cygdrive for fixpath to work. 19150 new_path="$CYGWIN_ROOT_PATH$input_path" 19151 fi 19152 fi 19153 19154 # remove trailing .exe if any 19155 new_path="${new_path/%.exe/}" 19156 19157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19158 19159 # First separate the path from the arguments. This will split at the first 19160 # space. 19161 complete="$FOUND_MAKE" 19162 path="${complete%% *}" 19163 tmp="$complete EOL" 19164 arguments="${tmp#* }" 19165 19166 # Input might be given as Windows format, start by converting to 19167 # unix format. 19168 new_path="$path" 19169 19170 windows_path="$new_path" 19171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19172 unix_path=`$CYGPATH -u "$windows_path"` 19173 new_path="$unix_path" 19174 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19175 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19176 new_path="$unix_path" 19177 fi 19178 19179 19180 # Now try to locate executable using which 19181 new_path=`$WHICH "$new_path" 2> /dev/null` 19182 19183 if test "x$new_path" = x; then 19184 # Oops. Which didn't find the executable. 19185 # The splitting of arguments from the executable at a space might have been incorrect, 19186 # since paths with space are more likely in Windows. Give it another try with the whole 19187 # argument. 19188 path="$complete" 19189 arguments="EOL" 19190 new_path="$path" 19191 19192 windows_path="$new_path" 19193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19194 unix_path=`$CYGPATH -u "$windows_path"` 19195 new_path="$unix_path" 19196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19198 new_path="$unix_path" 19199 fi 19200 19201 19202 new_path=`$WHICH "$new_path" 2> /dev/null` 19203 # bat and cmd files are not always considered executable in MSYS causing which 19204 # to not find them 19205 if test "x$new_path" = x \ 19206 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19207 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19208 new_path="$path" 19209 19210 windows_path="$new_path" 19211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19212 unix_path=`$CYGPATH -u "$windows_path"` 19213 new_path="$unix_path" 19214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19216 new_path="$unix_path" 19217 fi 19218 19219 fi 19220 19221 if test "x$new_path" = x; then 19222 # It's still not found. Now this is an unrecoverable error. 19223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19224 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19225 has_space=`$ECHO "$complete" | $GREP " "` 19226 if test "x$has_space" != x; then 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19229 fi 19230 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19231 fi 19232 fi 19233 19234 # Now new_path has a complete unix path to the binary 19235 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19236 # Keep paths in /bin as-is, but remove trailing .exe if any 19237 new_path="${new_path/%.exe/}" 19238 # Do not save /bin paths to all_fixpath_prefixes! 19239 else 19240 # Not in mixed or Windows style, start by that. 19241 new_path=`cmd //c echo $new_path` 19242 19243 input_path="$new_path" 19244 # Check if we need to convert this using DOS-style short mode. If the path 19245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19246 # take no chances and rewrite it. 19247 # Note: m4 eats our [], so we need to use [ and ] instead. 19248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19249 if test "x$has_forbidden_chars" != x; then 19250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19251 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19252 fi 19253 19254 # Output is in $new_path 19255 19256 windows_path="$new_path" 19257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19258 unix_path=`$CYGPATH -u "$windows_path"` 19259 new_path="$unix_path" 19260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19262 new_path="$unix_path" 19263 fi 19264 19265 # remove trailing .exe if any 19266 new_path="${new_path/%.exe/}" 19267 19268 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19269 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19270 fi 19271 19272 else 19273 # We're on a unix platform. Hooray! :) 19274 # First separate the path from the arguments. This will split at the first 19275 # space. 19276 complete="$FOUND_MAKE" 19277 path="${complete%% *}" 19278 tmp="$complete EOL" 19279 arguments="${tmp#* }" 19280 19281 # Cannot rely on the command "which" here since it doesn't always work. 19282 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19283 if test -z "$is_absolute_path"; then 19284 # Path to executable is not absolute. Find it. 19285 IFS_save="$IFS" 19286 IFS=: 19287 for p in $PATH; do 19288 if test -f "$p/$path" && test -x "$p/$path"; then 19289 new_path="$p/$path" 19290 break 19291 fi 19292 done 19293 IFS="$IFS_save" 19294 else 19295 # This is an absolute path, we can use it without further modifications. 19296 new_path="$path" 19297 fi 19298 19299 if test "x$new_path" = x; then 19300 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19301 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19302 has_space=`$ECHO "$complete" | $GREP " "` 19303 if test "x$has_space" != x; then 19304 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19305 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19306 fi 19307 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19308 fi 19309 fi 19310 19311 # Now join together the path and the arguments once again 19312 if test "x$arguments" != xEOL; then 19313 new_complete="$new_path ${arguments% *}" 19314 else 19315 new_complete="$new_path" 19316 fi 19317 19318 if test "x$complete" != "x$new_complete"; then 19319 FOUND_MAKE="$new_complete" 19320 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19321 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19322 fi 19323 fi 19324 19325 fi 19326 fi 19327 fi 19328 fi 19329 19330 fi 19331 PATH=$OLD_PATH 19332 fi 19333 fi 19334 19335 if test "x$FOUND_MAKE" = x; then 19336 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 19337 fi 19338 19339 else 19340 # The variable is set, but is it from the command line or the environment? 19341 19342 # Try to remove the string !MAKE! from our list. 19343 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19344 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19345 # If it failed, the variable was not from the command line. Ignore it, 19346 # but warn the user (except for BASH, which is always set by the calling BASH). 19347 if test "xMAKE" != xBASH; then 19348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19349 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19350 fi 19351 # Try to locate tool using the code snippet 19352 19353 # Try our hardest to locate a correct version of GNU make 19354 for ac_prog in gmake 19355 do 19356 # Extract the first word of "$ac_prog", so it can be a program name with args. 19357 set dummy $ac_prog; ac_word=$2 19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19359 $as_echo_n "checking for $ac_word... " >&6; } 19360 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19361 $as_echo_n "(cached) " >&6 19362 else 19363 case $CHECK_GMAKE in 19364 [\\/]* | ?:[\\/]*) 19365 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19366 ;; 19367 *) 19368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19369 for as_dir in $PATH 19370 do 19371 IFS=$as_save_IFS 19372 test -z "$as_dir" && as_dir=. 19373 for ac_exec_ext in '' $ac_executable_extensions; do 19374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19375 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19377 break 2 19378 fi 19379 done 19380 done 19381 IFS=$as_save_IFS 19382 19383 ;; 19384 esac 19385 fi 19386 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19387 if test -n "$CHECK_GMAKE"; then 19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19389 $as_echo "$CHECK_GMAKE" >&6; } 19390 else 19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19392 $as_echo "no" >&6; } 19393 fi 19394 19395 19396 test -n "$CHECK_GMAKE" && break 19397 done 19398 19399 19400 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19401 DESCRIPTION="gmake in PATH" 19402 19403 # On Cygwin, we require a newer version of make than on other platforms 19404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19405 MAKE_VERSION_EXPR="-e 4\." 19406 MAKE_REQUIRED_VERSION="4.0" 19407 else 19408 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19409 MAKE_REQUIRED_VERSION="3.81" 19410 fi 19411 19412 if test "x$MAKE_CANDIDATE" != x; then 19413 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19414 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19415 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19416 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19417 if test "x$IS_GNU_MAKE" = x; then 19418 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19419 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19420 else 19421 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19422 if test "x$IS_MODERN_MAKE" = x; then 19423 { $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 19424 $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;} 19425 else 19426 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19428 MAKE_EXPECTED_ENV='cygwin' 19429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19430 MAKE_EXPECTED_ENV='msys' 19431 else 19432 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19433 fi 19434 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19435 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19436 else 19437 # Not relevant for non-Windows 19438 IS_MAKE_CORRECT_ENV=true 19439 fi 19440 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19441 { $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 19442 $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;} 19443 else 19444 FOUND_MAKE=$MAKE_CANDIDATE 19445 19446 # Only process if variable expands to non-empty 19447 19448 if test "x$FOUND_MAKE" != x; then 19449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19450 19451 # First separate the path from the arguments. This will split at the first 19452 # space. 19453 complete="$FOUND_MAKE" 19454 path="${complete%% *}" 19455 tmp="$complete EOL" 19456 arguments="${tmp#* }" 19457 19458 # Input might be given as Windows format, start by converting to 19459 # unix format. 19460 new_path=`$CYGPATH -u "$path"` 19461 19462 # Now try to locate executable using which 19463 new_path=`$WHICH "$new_path" 2> /dev/null` 19464 # bat and cmd files are not always considered executable in cygwin causing which 19465 # to not find them 19466 if test "x$new_path" = x \ 19467 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19468 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19469 new_path=`$CYGPATH -u "$path"` 19470 fi 19471 if test "x$new_path" = x; then 19472 # Oops. Which didn't find the executable. 19473 # The splitting of arguments from the executable at a space might have been incorrect, 19474 # since paths with space are more likely in Windows. Give it another try with the whole 19475 # argument. 19476 path="$complete" 19477 arguments="EOL" 19478 new_path=`$CYGPATH -u "$path"` 19479 new_path=`$WHICH "$new_path" 2> /dev/null` 19480 # bat and cmd files are not always considered executable in cygwin causing which 19481 # to not find them 19482 if test "x$new_path" = x \ 19483 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19484 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19485 new_path=`$CYGPATH -u "$path"` 19486 fi 19487 if test "x$new_path" = x; then 19488 # It's still not found. Now this is an unrecoverable error. 19489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19490 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19491 has_space=`$ECHO "$complete" | $GREP " "` 19492 if test "x$has_space" != x; then 19493 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19494 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19495 fi 19496 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19497 fi 19498 fi 19499 19500 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19501 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19502 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19503 # "foo.exe" is OK but "foo" is an error. 19504 # 19505 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19506 # It is also a way to make sure we got the proper file name for the real test later on. 19507 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19508 if test "x$test_shortpath" = x; then 19509 # Short path failed, file does not exist as specified. 19510 # Try adding .exe or .cmd 19511 if test -f "${new_path}.exe"; then 19512 input_to_shortpath="${new_path}.exe" 19513 elif test -f "${new_path}.cmd"; then 19514 input_to_shortpath="${new_path}.cmd" 19515 else 19516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19517 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19518 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19519 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19520 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19521 fi 19522 else 19523 input_to_shortpath="$new_path" 19524 fi 19525 19526 # Call helper function which possibly converts this using DOS-style short mode. 19527 # If so, the updated path is stored in $new_path. 19528 new_path="$input_to_shortpath" 19529 19530 input_path="$input_to_shortpath" 19531 # Check if we need to convert this using DOS-style short mode. If the path 19532 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19533 # take no chances and rewrite it. 19534 # Note: m4 eats our [], so we need to use [ and ] instead. 19535 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19536 if test "x$has_forbidden_chars" != x; then 19537 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19538 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19539 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19540 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19541 # Going to short mode and back again did indeed matter. Since short mode is 19542 # case insensitive, let's make it lowercase to improve readability. 19543 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19544 # Now convert it back to Unix-style (cygpath) 19545 input_path=`$CYGPATH -u "$shortmode_path"` 19546 new_path="$input_path" 19547 fi 19548 fi 19549 19550 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19551 if test "x$test_cygdrive_prefix" = x; then 19552 # As a simple fix, exclude /usr/bin since it's not a real path. 19553 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19554 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19555 # a path prefixed by /cygdrive for fixpath to work. 19556 new_path="$CYGWIN_ROOT_PATH$input_path" 19557 fi 19558 fi 19559 19560 # remove trailing .exe if any 19561 new_path="${new_path/%.exe/}" 19562 19563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19564 19565 # First separate the path from the arguments. This will split at the first 19566 # space. 19567 complete="$FOUND_MAKE" 19568 path="${complete%% *}" 19569 tmp="$complete EOL" 19570 arguments="${tmp#* }" 19571 19572 # Input might be given as Windows format, start by converting to 19573 # unix format. 19574 new_path="$path" 19575 19576 windows_path="$new_path" 19577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19578 unix_path=`$CYGPATH -u "$windows_path"` 19579 new_path="$unix_path" 19580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19581 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19582 new_path="$unix_path" 19583 fi 19584 19585 19586 # Now try to locate executable using which 19587 new_path=`$WHICH "$new_path" 2> /dev/null` 19588 19589 if test "x$new_path" = x; then 19590 # Oops. Which didn't find the executable. 19591 # The splitting of arguments from the executable at a space might have been incorrect, 19592 # since paths with space are more likely in Windows. Give it another try with the whole 19593 # argument. 19594 path="$complete" 19595 arguments="EOL" 19596 new_path="$path" 19597 19598 windows_path="$new_path" 19599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19600 unix_path=`$CYGPATH -u "$windows_path"` 19601 new_path="$unix_path" 19602 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19603 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19604 new_path="$unix_path" 19605 fi 19606 19607 19608 new_path=`$WHICH "$new_path" 2> /dev/null` 19609 # bat and cmd files are not always considered executable in MSYS causing which 19610 # to not find them 19611 if test "x$new_path" = x \ 19612 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19613 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19614 new_path="$path" 19615 19616 windows_path="$new_path" 19617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19618 unix_path=`$CYGPATH -u "$windows_path"` 19619 new_path="$unix_path" 19620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19622 new_path="$unix_path" 19623 fi 19624 19625 fi 19626 19627 if test "x$new_path" = x; then 19628 # It's still not found. Now this is an unrecoverable error. 19629 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19630 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19631 has_space=`$ECHO "$complete" | $GREP " "` 19632 if test "x$has_space" != x; then 19633 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19634 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19635 fi 19636 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19637 fi 19638 fi 19639 19640 # Now new_path has a complete unix path to the binary 19641 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19642 # Keep paths in /bin as-is, but remove trailing .exe if any 19643 new_path="${new_path/%.exe/}" 19644 # Do not save /bin paths to all_fixpath_prefixes! 19645 else 19646 # Not in mixed or Windows style, start by that. 19647 new_path=`cmd //c echo $new_path` 19648 19649 input_path="$new_path" 19650 # Check if we need to convert this using DOS-style short mode. If the path 19651 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19652 # take no chances and rewrite it. 19653 # Note: m4 eats our [], so we need to use [ and ] instead. 19654 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19655 if test "x$has_forbidden_chars" != x; then 19656 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19657 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19658 fi 19659 19660 # Output is in $new_path 19661 19662 windows_path="$new_path" 19663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19664 unix_path=`$CYGPATH -u "$windows_path"` 19665 new_path="$unix_path" 19666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19667 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19668 new_path="$unix_path" 19669 fi 19670 19671 # remove trailing .exe if any 19672 new_path="${new_path/%.exe/}" 19673 19674 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19675 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19676 fi 19677 19678 else 19679 # We're on a unix platform. Hooray! :) 19680 # First separate the path from the arguments. This will split at the first 19681 # space. 19682 complete="$FOUND_MAKE" 19683 path="${complete%% *}" 19684 tmp="$complete EOL" 19685 arguments="${tmp#* }" 19686 19687 # Cannot rely on the command "which" here since it doesn't always work. 19688 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19689 if test -z "$is_absolute_path"; then 19690 # Path to executable is not absolute. Find it. 19691 IFS_save="$IFS" 19692 IFS=: 19693 for p in $PATH; do 19694 if test -f "$p/$path" && test -x "$p/$path"; then 19695 new_path="$p/$path" 19696 break 19697 fi 19698 done 19699 IFS="$IFS_save" 19700 else 19701 # This is an absolute path, we can use it without further modifications. 19702 new_path="$path" 19703 fi 19704 19705 if test "x$new_path" = x; then 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19707 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19708 has_space=`$ECHO "$complete" | $GREP " "` 19709 if test "x$has_space" != x; then 19710 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19711 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19712 fi 19713 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19714 fi 19715 fi 19716 19717 # Now join together the path and the arguments once again 19718 if test "x$arguments" != xEOL; then 19719 new_complete="$new_path ${arguments% *}" 19720 else 19721 new_complete="$new_path" 19722 fi 19723 19724 if test "x$complete" != "x$new_complete"; then 19725 FOUND_MAKE="$new_complete" 19726 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19727 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19728 fi 19729 fi 19730 19731 fi 19732 fi 19733 fi 19734 fi 19735 19736 19737 if test "x$FOUND_MAKE" = x; then 19738 for ac_prog in make 19739 do 19740 # Extract the first word of "$ac_prog", so it can be a program name with args. 19741 set dummy $ac_prog; ac_word=$2 19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19743 $as_echo_n "checking for $ac_word... " >&6; } 19744 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19745 $as_echo_n "(cached) " >&6 19746 else 19747 case $CHECK_MAKE in 19748 [\\/]* | ?:[\\/]*) 19749 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19750 ;; 19751 *) 19752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19753 for as_dir in $PATH 19754 do 19755 IFS=$as_save_IFS 19756 test -z "$as_dir" && as_dir=. 19757 for ac_exec_ext in '' $ac_executable_extensions; do 19758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19759 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19761 break 2 19762 fi 19763 done 19764 done 19765 IFS=$as_save_IFS 19766 19767 ;; 19768 esac 19769 fi 19770 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19771 if test -n "$CHECK_MAKE"; then 19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19773 $as_echo "$CHECK_MAKE" >&6; } 19774 else 19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19776 $as_echo "no" >&6; } 19777 fi 19778 19779 19780 test -n "$CHECK_MAKE" && break 19781 done 19782 19783 19784 MAKE_CANDIDATE=""$CHECK_MAKE"" 19785 DESCRIPTION="make in PATH" 19786 19787 # On Cygwin, we require a newer version of make than on other platforms 19788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19789 MAKE_VERSION_EXPR="-e 4\." 19790 MAKE_REQUIRED_VERSION="4.0" 19791 else 19792 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19793 MAKE_REQUIRED_VERSION="3.81" 19794 fi 19795 19796 if test "x$MAKE_CANDIDATE" != x; then 19797 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19798 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19799 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19800 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19801 if test "x$IS_GNU_MAKE" = x; then 19802 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19803 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19804 else 19805 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19806 if test "x$IS_MODERN_MAKE" = x; then 19807 { $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 19808 $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;} 19809 else 19810 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19811 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19812 MAKE_EXPECTED_ENV='cygwin' 19813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19814 MAKE_EXPECTED_ENV='msys' 19815 else 19816 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19817 fi 19818 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19819 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19820 else 19821 # Not relevant for non-Windows 19822 IS_MAKE_CORRECT_ENV=true 19823 fi 19824 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19825 { $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 19826 $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;} 19827 else 19828 FOUND_MAKE=$MAKE_CANDIDATE 19829 19830 # Only process if variable expands to non-empty 19831 19832 if test "x$FOUND_MAKE" != x; then 19833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19834 19835 # First separate the path from the arguments. This will split at the first 19836 # space. 19837 complete="$FOUND_MAKE" 19838 path="${complete%% *}" 19839 tmp="$complete EOL" 19840 arguments="${tmp#* }" 19841 19842 # Input might be given as Windows format, start by converting to 19843 # unix format. 19844 new_path=`$CYGPATH -u "$path"` 19845 19846 # Now try to locate executable using which 19847 new_path=`$WHICH "$new_path" 2> /dev/null` 19848 # bat and cmd files are not always considered executable in cygwin causing which 19849 # to not find them 19850 if test "x$new_path" = x \ 19851 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19852 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19853 new_path=`$CYGPATH -u "$path"` 19854 fi 19855 if test "x$new_path" = x; then 19856 # Oops. Which didn't find the executable. 19857 # The splitting of arguments from the executable at a space might have been incorrect, 19858 # since paths with space are more likely in Windows. Give it another try with the whole 19859 # argument. 19860 path="$complete" 19861 arguments="EOL" 19862 new_path=`$CYGPATH -u "$path"` 19863 new_path=`$WHICH "$new_path" 2> /dev/null` 19864 # bat and cmd files are not always considered executable in cygwin causing which 19865 # to not find them 19866 if test "x$new_path" = x \ 19867 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19868 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19869 new_path=`$CYGPATH -u "$path"` 19870 fi 19871 if test "x$new_path" = x; then 19872 # It's still not found. Now this is an unrecoverable error. 19873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19874 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19875 has_space=`$ECHO "$complete" | $GREP " "` 19876 if test "x$has_space" != x; then 19877 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19878 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19879 fi 19880 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19881 fi 19882 fi 19883 19884 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19885 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19886 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19887 # "foo.exe" is OK but "foo" is an error. 19888 # 19889 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19890 # It is also a way to make sure we got the proper file name for the real test later on. 19891 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19892 if test "x$test_shortpath" = x; then 19893 # Short path failed, file does not exist as specified. 19894 # Try adding .exe or .cmd 19895 if test -f "${new_path}.exe"; then 19896 input_to_shortpath="${new_path}.exe" 19897 elif test -f "${new_path}.cmd"; then 19898 input_to_shortpath="${new_path}.cmd" 19899 else 19900 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19901 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19902 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19903 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19904 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19905 fi 19906 else 19907 input_to_shortpath="$new_path" 19908 fi 19909 19910 # Call helper function which possibly converts this using DOS-style short mode. 19911 # If so, the updated path is stored in $new_path. 19912 new_path="$input_to_shortpath" 19913 19914 input_path="$input_to_shortpath" 19915 # Check if we need to convert this using DOS-style short mode. If the path 19916 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19917 # take no chances and rewrite it. 19918 # Note: m4 eats our [], so we need to use [ and ] instead. 19919 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19920 if test "x$has_forbidden_chars" != x; then 19921 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19922 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19923 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19924 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19925 # Going to short mode and back again did indeed matter. Since short mode is 19926 # case insensitive, let's make it lowercase to improve readability. 19927 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19928 # Now convert it back to Unix-style (cygpath) 19929 input_path=`$CYGPATH -u "$shortmode_path"` 19930 new_path="$input_path" 19931 fi 19932 fi 19933 19934 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19935 if test "x$test_cygdrive_prefix" = x; then 19936 # As a simple fix, exclude /usr/bin since it's not a real path. 19937 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19938 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19939 # a path prefixed by /cygdrive for fixpath to work. 19940 new_path="$CYGWIN_ROOT_PATH$input_path" 19941 fi 19942 fi 19943 19944 # remove trailing .exe if any 19945 new_path="${new_path/%.exe/}" 19946 19947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19948 19949 # First separate the path from the arguments. This will split at the first 19950 # space. 19951 complete="$FOUND_MAKE" 19952 path="${complete%% *}" 19953 tmp="$complete EOL" 19954 arguments="${tmp#* }" 19955 19956 # Input might be given as Windows format, start by converting to 19957 # unix format. 19958 new_path="$path" 19959 19960 windows_path="$new_path" 19961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19962 unix_path=`$CYGPATH -u "$windows_path"` 19963 new_path="$unix_path" 19964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19965 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19966 new_path="$unix_path" 19967 fi 19968 19969 19970 # Now try to locate executable using which 19971 new_path=`$WHICH "$new_path" 2> /dev/null` 19972 19973 if test "x$new_path" = x; then 19974 # Oops. Which didn't find the executable. 19975 # The splitting of arguments from the executable at a space might have been incorrect, 19976 # since paths with space are more likely in Windows. Give it another try with the whole 19977 # argument. 19978 path="$complete" 19979 arguments="EOL" 19980 new_path="$path" 19981 19982 windows_path="$new_path" 19983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19984 unix_path=`$CYGPATH -u "$windows_path"` 19985 new_path="$unix_path" 19986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19987 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19988 new_path="$unix_path" 19989 fi 19990 19991 19992 new_path=`$WHICH "$new_path" 2> /dev/null` 19993 # bat and cmd files are not always considered executable in MSYS causing which 19994 # to not find them 19995 if test "x$new_path" = x \ 19996 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19997 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19998 new_path="$path" 19999 20000 windows_path="$new_path" 20001 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20002 unix_path=`$CYGPATH -u "$windows_path"` 20003 new_path="$unix_path" 20004 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20005 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20006 new_path="$unix_path" 20007 fi 20008 20009 fi 20010 20011 if test "x$new_path" = x; then 20012 # It's still not found. Now this is an unrecoverable error. 20013 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20014 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20015 has_space=`$ECHO "$complete" | $GREP " "` 20016 if test "x$has_space" != x; then 20017 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20018 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20019 fi 20020 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20021 fi 20022 fi 20023 20024 # Now new_path has a complete unix path to the binary 20025 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20026 # Keep paths in /bin as-is, but remove trailing .exe if any 20027 new_path="${new_path/%.exe/}" 20028 # Do not save /bin paths to all_fixpath_prefixes! 20029 else 20030 # Not in mixed or Windows style, start by that. 20031 new_path=`cmd //c echo $new_path` 20032 20033 input_path="$new_path" 20034 # Check if we need to convert this using DOS-style short mode. If the path 20035 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20036 # take no chances and rewrite it. 20037 # Note: m4 eats our [], so we need to use [ and ] instead. 20038 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20039 if test "x$has_forbidden_chars" != x; then 20040 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20041 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20042 fi 20043 20044 # Output is in $new_path 20045 20046 windows_path="$new_path" 20047 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20048 unix_path=`$CYGPATH -u "$windows_path"` 20049 new_path="$unix_path" 20050 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20051 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20052 new_path="$unix_path" 20053 fi 20054 20055 # remove trailing .exe if any 20056 new_path="${new_path/%.exe/}" 20057 20058 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20059 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20060 fi 20061 20062 else 20063 # We're on a unix platform. Hooray! :) 20064 # First separate the path from the arguments. This will split at the first 20065 # space. 20066 complete="$FOUND_MAKE" 20067 path="${complete%% *}" 20068 tmp="$complete EOL" 20069 arguments="${tmp#* }" 20070 20071 # Cannot rely on the command "which" here since it doesn't always work. 20072 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20073 if test -z "$is_absolute_path"; then 20074 # Path to executable is not absolute. Find it. 20075 IFS_save="$IFS" 20076 IFS=: 20077 for p in $PATH; do 20078 if test -f "$p/$path" && test -x "$p/$path"; then 20079 new_path="$p/$path" 20080 break 20081 fi 20082 done 20083 IFS="$IFS_save" 20084 else 20085 # This is an absolute path, we can use it without further modifications. 20086 new_path="$path" 20087 fi 20088 20089 if test "x$new_path" = x; then 20090 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20091 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20092 has_space=`$ECHO "$complete" | $GREP " "` 20093 if test "x$has_space" != x; then 20094 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20095 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20096 fi 20097 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20098 fi 20099 fi 20100 20101 # Now join together the path and the arguments once again 20102 if test "x$arguments" != xEOL; then 20103 new_complete="$new_path ${arguments% *}" 20104 else 20105 new_complete="$new_path" 20106 fi 20107 20108 if test "x$complete" != "x$new_complete"; then 20109 FOUND_MAKE="$new_complete" 20110 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20111 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20112 fi 20113 fi 20114 20115 fi 20116 fi 20117 fi 20118 fi 20119 20120 fi 20121 20122 if test "x$FOUND_MAKE" = x; then 20123 if test "x$TOOLCHAIN_PATH" != x; then 20124 # We have a toolchain path, check that as well before giving up. 20125 OLD_PATH=$PATH 20126 PATH=$TOOLCHAIN_PATH:$PATH 20127 for ac_prog in gmake 20128 do 20129 # Extract the first word of "$ac_prog", so it can be a program name with args. 20130 set dummy $ac_prog; ac_word=$2 20131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20132 $as_echo_n "checking for $ac_word... " >&6; } 20133 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 20134 $as_echo_n "(cached) " >&6 20135 else 20136 case $CHECK_TOOLSDIR_GMAKE in 20137 [\\/]* | ?:[\\/]*) 20138 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 20139 ;; 20140 *) 20141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20142 for as_dir in $PATH 20143 do 20144 IFS=$as_save_IFS 20145 test -z "$as_dir" && as_dir=. 20146 for ac_exec_ext in '' $ac_executable_extensions; do 20147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20148 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 20149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20150 break 2 20151 fi 20152 done 20153 done 20154 IFS=$as_save_IFS 20155 20156 ;; 20157 esac 20158 fi 20159 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 20160 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 20162 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 20163 else 20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20165 $as_echo "no" >&6; } 20166 fi 20167 20168 20169 test -n "$CHECK_TOOLSDIR_GMAKE" && break 20170 done 20171 20172 20173 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 20174 DESCRIPTION="gmake in tools-dir" 20175 20176 # On Cygwin, we require a newer version of make than on other platforms 20177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20178 MAKE_VERSION_EXPR="-e 4\." 20179 MAKE_REQUIRED_VERSION="4.0" 20180 else 20181 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20182 MAKE_REQUIRED_VERSION="3.81" 20183 fi 20184 20185 if test "x$MAKE_CANDIDATE" != x; then 20186 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20187 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20188 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20189 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20190 if test "x$IS_GNU_MAKE" = x; then 20191 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20192 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20193 else 20194 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20195 if test "x$IS_MODERN_MAKE" = x; then 20196 { $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 20197 $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;} 20198 else 20199 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20201 MAKE_EXPECTED_ENV='cygwin' 20202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20203 MAKE_EXPECTED_ENV='msys' 20204 else 20205 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20206 fi 20207 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20208 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20209 else 20210 # Not relevant for non-Windows 20211 IS_MAKE_CORRECT_ENV=true 20212 fi 20213 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20214 { $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 20215 $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;} 20216 else 20217 FOUND_MAKE=$MAKE_CANDIDATE 20218 20219 # Only process if variable expands to non-empty 20220 20221 if test "x$FOUND_MAKE" != x; then 20222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20223 20224 # First separate the path from the arguments. This will split at the first 20225 # space. 20226 complete="$FOUND_MAKE" 20227 path="${complete%% *}" 20228 tmp="$complete EOL" 20229 arguments="${tmp#* }" 20230 20231 # Input might be given as Windows format, start by converting to 20232 # unix format. 20233 new_path=`$CYGPATH -u "$path"` 20234 20235 # Now try to locate executable using which 20236 new_path=`$WHICH "$new_path" 2> /dev/null` 20237 # bat and cmd files are not always considered executable in cygwin causing which 20238 # to not find them 20239 if test "x$new_path" = x \ 20240 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20241 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20242 new_path=`$CYGPATH -u "$path"` 20243 fi 20244 if test "x$new_path" = x; then 20245 # Oops. Which didn't find the executable. 20246 # The splitting of arguments from the executable at a space might have been incorrect, 20247 # since paths with space are more likely in Windows. Give it another try with the whole 20248 # argument. 20249 path="$complete" 20250 arguments="EOL" 20251 new_path=`$CYGPATH -u "$path"` 20252 new_path=`$WHICH "$new_path" 2> /dev/null` 20253 # bat and cmd files are not always considered executable in cygwin causing which 20254 # to not find them 20255 if test "x$new_path" = x \ 20256 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20257 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20258 new_path=`$CYGPATH -u "$path"` 20259 fi 20260 if test "x$new_path" = x; then 20261 # It's still not found. Now this is an unrecoverable error. 20262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20263 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20264 has_space=`$ECHO "$complete" | $GREP " "` 20265 if test "x$has_space" != x; then 20266 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20267 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20268 fi 20269 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20270 fi 20271 fi 20272 20273 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20274 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20275 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20276 # "foo.exe" is OK but "foo" is an error. 20277 # 20278 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20279 # It is also a way to make sure we got the proper file name for the real test later on. 20280 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20281 if test "x$test_shortpath" = x; then 20282 # Short path failed, file does not exist as specified. 20283 # Try adding .exe or .cmd 20284 if test -f "${new_path}.exe"; then 20285 input_to_shortpath="${new_path}.exe" 20286 elif test -f "${new_path}.cmd"; then 20287 input_to_shortpath="${new_path}.cmd" 20288 else 20289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20290 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20291 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20292 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20293 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20294 fi 20295 else 20296 input_to_shortpath="$new_path" 20297 fi 20298 20299 # Call helper function which possibly converts this using DOS-style short mode. 20300 # If so, the updated path is stored in $new_path. 20301 new_path="$input_to_shortpath" 20302 20303 input_path="$input_to_shortpath" 20304 # Check if we need to convert this using DOS-style short mode. If the path 20305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20306 # take no chances and rewrite it. 20307 # Note: m4 eats our [], so we need to use [ and ] instead. 20308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20309 if test "x$has_forbidden_chars" != x; then 20310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20311 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20312 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20313 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20314 # Going to short mode and back again did indeed matter. Since short mode is 20315 # case insensitive, let's make it lowercase to improve readability. 20316 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20317 # Now convert it back to Unix-style (cygpath) 20318 input_path=`$CYGPATH -u "$shortmode_path"` 20319 new_path="$input_path" 20320 fi 20321 fi 20322 20323 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20324 if test "x$test_cygdrive_prefix" = x; then 20325 # As a simple fix, exclude /usr/bin since it's not a real path. 20326 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20327 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20328 # a path prefixed by /cygdrive for fixpath to work. 20329 new_path="$CYGWIN_ROOT_PATH$input_path" 20330 fi 20331 fi 20332 20333 # remove trailing .exe if any 20334 new_path="${new_path/%.exe/}" 20335 20336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20337 20338 # First separate the path from the arguments. This will split at the first 20339 # space. 20340 complete="$FOUND_MAKE" 20341 path="${complete%% *}" 20342 tmp="$complete EOL" 20343 arguments="${tmp#* }" 20344 20345 # Input might be given as Windows format, start by converting to 20346 # unix format. 20347 new_path="$path" 20348 20349 windows_path="$new_path" 20350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20351 unix_path=`$CYGPATH -u "$windows_path"` 20352 new_path="$unix_path" 20353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20354 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20355 new_path="$unix_path" 20356 fi 20357 20358 20359 # Now try to locate executable using which 20360 new_path=`$WHICH "$new_path" 2> /dev/null` 20361 20362 if test "x$new_path" = x; then 20363 # Oops. Which didn't find the executable. 20364 # The splitting of arguments from the executable at a space might have been incorrect, 20365 # since paths with space are more likely in Windows. Give it another try with the whole 20366 # argument. 20367 path="$complete" 20368 arguments="EOL" 20369 new_path="$path" 20370 20371 windows_path="$new_path" 20372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20373 unix_path=`$CYGPATH -u "$windows_path"` 20374 new_path="$unix_path" 20375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20376 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20377 new_path="$unix_path" 20378 fi 20379 20380 20381 new_path=`$WHICH "$new_path" 2> /dev/null` 20382 # bat and cmd files are not always considered executable in MSYS causing which 20383 # to not find them 20384 if test "x$new_path" = x \ 20385 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20386 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20387 new_path="$path" 20388 20389 windows_path="$new_path" 20390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20391 unix_path=`$CYGPATH -u "$windows_path"` 20392 new_path="$unix_path" 20393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20395 new_path="$unix_path" 20396 fi 20397 20398 fi 20399 20400 if test "x$new_path" = x; then 20401 # It's still not found. Now this is an unrecoverable error. 20402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20403 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20404 has_space=`$ECHO "$complete" | $GREP " "` 20405 if test "x$has_space" != x; then 20406 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20407 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20408 fi 20409 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20410 fi 20411 fi 20412 20413 # Now new_path has a complete unix path to the binary 20414 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20415 # Keep paths in /bin as-is, but remove trailing .exe if any 20416 new_path="${new_path/%.exe/}" 20417 # Do not save /bin paths to all_fixpath_prefixes! 20418 else 20419 # Not in mixed or Windows style, start by that. 20420 new_path=`cmd //c echo $new_path` 20421 20422 input_path="$new_path" 20423 # Check if we need to convert this using DOS-style short mode. If the path 20424 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20425 # take no chances and rewrite it. 20426 # Note: m4 eats our [], so we need to use [ and ] instead. 20427 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20428 if test "x$has_forbidden_chars" != x; then 20429 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20430 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20431 fi 20432 20433 # Output is in $new_path 20434 20435 windows_path="$new_path" 20436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20437 unix_path=`$CYGPATH -u "$windows_path"` 20438 new_path="$unix_path" 20439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20441 new_path="$unix_path" 20442 fi 20443 20444 # remove trailing .exe if any 20445 new_path="${new_path/%.exe/}" 20446 20447 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20448 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20449 fi 20450 20451 else 20452 # We're on a unix platform. Hooray! :) 20453 # First separate the path from the arguments. This will split at the first 20454 # space. 20455 complete="$FOUND_MAKE" 20456 path="${complete%% *}" 20457 tmp="$complete EOL" 20458 arguments="${tmp#* }" 20459 20460 # Cannot rely on the command "which" here since it doesn't always work. 20461 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20462 if test -z "$is_absolute_path"; then 20463 # Path to executable is not absolute. Find it. 20464 IFS_save="$IFS" 20465 IFS=: 20466 for p in $PATH; do 20467 if test -f "$p/$path" && test -x "$p/$path"; then 20468 new_path="$p/$path" 20469 break 20470 fi 20471 done 20472 IFS="$IFS_save" 20473 else 20474 # This is an absolute path, we can use it without further modifications. 20475 new_path="$path" 20476 fi 20477 20478 if test "x$new_path" = x; then 20479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20480 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20481 has_space=`$ECHO "$complete" | $GREP " "` 20482 if test "x$has_space" != x; then 20483 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20484 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20485 fi 20486 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20487 fi 20488 fi 20489 20490 # Now join together the path and the arguments once again 20491 if test "x$arguments" != xEOL; then 20492 new_complete="$new_path ${arguments% *}" 20493 else 20494 new_complete="$new_path" 20495 fi 20496 20497 if test "x$complete" != "x$new_complete"; then 20498 FOUND_MAKE="$new_complete" 20499 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20500 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20501 fi 20502 fi 20503 20504 fi 20505 fi 20506 fi 20507 fi 20508 20509 if test "x$FOUND_MAKE" = x; then 20510 for ac_prog in make 20511 do 20512 # Extract the first word of "$ac_prog", so it can be a program name with args. 20513 set dummy $ac_prog; ac_word=$2 20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20515 $as_echo_n "checking for $ac_word... " >&6; } 20516 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20517 $as_echo_n "(cached) " >&6 20518 else 20519 case $CHECK_TOOLSDIR_MAKE in 20520 [\\/]* | ?:[\\/]*) 20521 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20522 ;; 20523 *) 20524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20525 for as_dir in $PATH 20526 do 20527 IFS=$as_save_IFS 20528 test -z "$as_dir" && as_dir=. 20529 for ac_exec_ext in '' $ac_executable_extensions; do 20530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20531 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20533 break 2 20534 fi 20535 done 20536 done 20537 IFS=$as_save_IFS 20538 20539 ;; 20540 esac 20541 fi 20542 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20543 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20545 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20546 else 20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20548 $as_echo "no" >&6; } 20549 fi 20550 20551 20552 test -n "$CHECK_TOOLSDIR_MAKE" && break 20553 done 20554 20555 20556 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20557 DESCRIPTION="make in tools-dir" 20558 20559 # On Cygwin, we require a newer version of make than on other platforms 20560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20561 MAKE_VERSION_EXPR="-e 4\." 20562 MAKE_REQUIRED_VERSION="4.0" 20563 else 20564 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20565 MAKE_REQUIRED_VERSION="3.81" 20566 fi 20567 20568 if test "x$MAKE_CANDIDATE" != x; then 20569 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20570 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20571 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20572 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20573 if test "x$IS_GNU_MAKE" = x; then 20574 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20575 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20576 else 20577 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20578 if test "x$IS_MODERN_MAKE" = x; then 20579 { $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 20580 $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;} 20581 else 20582 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20584 MAKE_EXPECTED_ENV='cygwin' 20585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20586 MAKE_EXPECTED_ENV='msys' 20587 else 20588 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20589 fi 20590 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20591 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20592 else 20593 # Not relevant for non-Windows 20594 IS_MAKE_CORRECT_ENV=true 20595 fi 20596 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20597 { $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 20598 $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;} 20599 else 20600 FOUND_MAKE=$MAKE_CANDIDATE 20601 20602 # Only process if variable expands to non-empty 20603 20604 if test "x$FOUND_MAKE" != x; then 20605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20606 20607 # First separate the path from the arguments. This will split at the first 20608 # space. 20609 complete="$FOUND_MAKE" 20610 path="${complete%% *}" 20611 tmp="$complete EOL" 20612 arguments="${tmp#* }" 20613 20614 # Input might be given as Windows format, start by converting to 20615 # unix format. 20616 new_path=`$CYGPATH -u "$path"` 20617 20618 # Now try to locate executable using which 20619 new_path=`$WHICH "$new_path" 2> /dev/null` 20620 # bat and cmd files are not always considered executable in cygwin causing which 20621 # to not find them 20622 if test "x$new_path" = x \ 20623 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20624 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20625 new_path=`$CYGPATH -u "$path"` 20626 fi 20627 if test "x$new_path" = x; then 20628 # Oops. Which didn't find the executable. 20629 # The splitting of arguments from the executable at a space might have been incorrect, 20630 # since paths with space are more likely in Windows. Give it another try with the whole 20631 # argument. 20632 path="$complete" 20633 arguments="EOL" 20634 new_path=`$CYGPATH -u "$path"` 20635 new_path=`$WHICH "$new_path" 2> /dev/null` 20636 # bat and cmd files are not always considered executable in cygwin causing which 20637 # to not find them 20638 if test "x$new_path" = x \ 20639 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20640 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20641 new_path=`$CYGPATH -u "$path"` 20642 fi 20643 if test "x$new_path" = x; then 20644 # It's still not found. Now this is an unrecoverable error. 20645 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20646 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20647 has_space=`$ECHO "$complete" | $GREP " "` 20648 if test "x$has_space" != x; then 20649 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20650 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20651 fi 20652 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20653 fi 20654 fi 20655 20656 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20657 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20658 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20659 # "foo.exe" is OK but "foo" is an error. 20660 # 20661 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20662 # It is also a way to make sure we got the proper file name for the real test later on. 20663 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20664 if test "x$test_shortpath" = x; then 20665 # Short path failed, file does not exist as specified. 20666 # Try adding .exe or .cmd 20667 if test -f "${new_path}.exe"; then 20668 input_to_shortpath="${new_path}.exe" 20669 elif test -f "${new_path}.cmd"; then 20670 input_to_shortpath="${new_path}.cmd" 20671 else 20672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20673 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20674 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20675 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20676 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20677 fi 20678 else 20679 input_to_shortpath="$new_path" 20680 fi 20681 20682 # Call helper function which possibly converts this using DOS-style short mode. 20683 # If so, the updated path is stored in $new_path. 20684 new_path="$input_to_shortpath" 20685 20686 input_path="$input_to_shortpath" 20687 # Check if we need to convert this using DOS-style short mode. If the path 20688 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20689 # take no chances and rewrite it. 20690 # Note: m4 eats our [], so we need to use [ and ] instead. 20691 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20692 if test "x$has_forbidden_chars" != x; then 20693 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20694 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20695 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20696 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20697 # Going to short mode and back again did indeed matter. Since short mode is 20698 # case insensitive, let's make it lowercase to improve readability. 20699 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20700 # Now convert it back to Unix-style (cygpath) 20701 input_path=`$CYGPATH -u "$shortmode_path"` 20702 new_path="$input_path" 20703 fi 20704 fi 20705 20706 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20707 if test "x$test_cygdrive_prefix" = x; then 20708 # As a simple fix, exclude /usr/bin since it's not a real path. 20709 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20710 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20711 # a path prefixed by /cygdrive for fixpath to work. 20712 new_path="$CYGWIN_ROOT_PATH$input_path" 20713 fi 20714 fi 20715 20716 # remove trailing .exe if any 20717 new_path="${new_path/%.exe/}" 20718 20719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20720 20721 # First separate the path from the arguments. This will split at the first 20722 # space. 20723 complete="$FOUND_MAKE" 20724 path="${complete%% *}" 20725 tmp="$complete EOL" 20726 arguments="${tmp#* }" 20727 20728 # Input might be given as Windows format, start by converting to 20729 # unix format. 20730 new_path="$path" 20731 20732 windows_path="$new_path" 20733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20734 unix_path=`$CYGPATH -u "$windows_path"` 20735 new_path="$unix_path" 20736 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20737 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20738 new_path="$unix_path" 20739 fi 20740 20741 20742 # Now try to locate executable using which 20743 new_path=`$WHICH "$new_path" 2> /dev/null` 20744 20745 if test "x$new_path" = x; then 20746 # Oops. Which didn't find the executable. 20747 # The splitting of arguments from the executable at a space might have been incorrect, 20748 # since paths with space are more likely in Windows. Give it another try with the whole 20749 # argument. 20750 path="$complete" 20751 arguments="EOL" 20752 new_path="$path" 20753 20754 windows_path="$new_path" 20755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20756 unix_path=`$CYGPATH -u "$windows_path"` 20757 new_path="$unix_path" 20758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20759 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20760 new_path="$unix_path" 20761 fi 20762 20763 20764 new_path=`$WHICH "$new_path" 2> /dev/null` 20765 # bat and cmd files are not always considered executable in MSYS causing which 20766 # to not find them 20767 if test "x$new_path" = x \ 20768 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20769 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20770 new_path="$path" 20771 20772 windows_path="$new_path" 20773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20774 unix_path=`$CYGPATH -u "$windows_path"` 20775 new_path="$unix_path" 20776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20778 new_path="$unix_path" 20779 fi 20780 20781 fi 20782 20783 if test "x$new_path" = x; then 20784 # It's still not found. Now this is an unrecoverable error. 20785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20786 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20787 has_space=`$ECHO "$complete" | $GREP " "` 20788 if test "x$has_space" != x; then 20789 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20790 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20791 fi 20792 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20793 fi 20794 fi 20795 20796 # Now new_path has a complete unix path to the binary 20797 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20798 # Keep paths in /bin as-is, but remove trailing .exe if any 20799 new_path="${new_path/%.exe/}" 20800 # Do not save /bin paths to all_fixpath_prefixes! 20801 else 20802 # Not in mixed or Windows style, start by that. 20803 new_path=`cmd //c echo $new_path` 20804 20805 input_path="$new_path" 20806 # Check if we need to convert this using DOS-style short mode. If the path 20807 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20808 # take no chances and rewrite it. 20809 # Note: m4 eats our [], so we need to use [ and ] instead. 20810 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20811 if test "x$has_forbidden_chars" != x; then 20812 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20813 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20814 fi 20815 20816 # Output is in $new_path 20817 20818 windows_path="$new_path" 20819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20820 unix_path=`$CYGPATH -u "$windows_path"` 20821 new_path="$unix_path" 20822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20823 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20824 new_path="$unix_path" 20825 fi 20826 20827 # remove trailing .exe if any 20828 new_path="${new_path/%.exe/}" 20829 20830 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20831 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20832 fi 20833 20834 else 20835 # We're on a unix platform. Hooray! :) 20836 # First separate the path from the arguments. This will split at the first 20837 # space. 20838 complete="$FOUND_MAKE" 20839 path="${complete%% *}" 20840 tmp="$complete EOL" 20841 arguments="${tmp#* }" 20842 20843 # Cannot rely on the command "which" here since it doesn't always work. 20844 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20845 if test -z "$is_absolute_path"; then 20846 # Path to executable is not absolute. Find it. 20847 IFS_save="$IFS" 20848 IFS=: 20849 for p in $PATH; do 20850 if test -f "$p/$path" && test -x "$p/$path"; then 20851 new_path="$p/$path" 20852 break 20853 fi 20854 done 20855 IFS="$IFS_save" 20856 else 20857 # This is an absolute path, we can use it without further modifications. 20858 new_path="$path" 20859 fi 20860 20861 if test "x$new_path" = x; then 20862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20863 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20864 has_space=`$ECHO "$complete" | $GREP " "` 20865 if test "x$has_space" != x; then 20866 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20867 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20868 fi 20869 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20870 fi 20871 fi 20872 20873 # Now join together the path and the arguments once again 20874 if test "x$arguments" != xEOL; then 20875 new_complete="$new_path ${arguments% *}" 20876 else 20877 new_complete="$new_path" 20878 fi 20879 20880 if test "x$complete" != "x$new_complete"; then 20881 FOUND_MAKE="$new_complete" 20882 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20883 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20884 fi 20885 fi 20886 20887 fi 20888 fi 20889 fi 20890 fi 20891 20892 fi 20893 PATH=$OLD_PATH 20894 fi 20895 fi 20896 20897 if test "x$FOUND_MAKE" = x; then 20898 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 20899 fi 20900 20901 else 20902 # If it succeeded, then it was overridden by the user. We will use it 20903 # for the tool. 20904 20905 # First remove it from the list of overridden variables, so we can test 20906 # for unknown variables in the end. 20907 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20908 20909 # Check if we try to supply an empty value 20910 if test "x$MAKE" = x; then 20911 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 20912 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20914 $as_echo_n "checking for MAKE... " >&6; } 20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20916 $as_echo "disabled" >&6; } 20917 else 20918 # Check if the provided tool contains a complete path. 20919 tool_specified="$MAKE" 20920 tool_basename="${tool_specified##*/}" 20921 if test "x$tool_basename" = "x$tool_specified"; then 20922 # A command without a complete path is provided, search $PATH. 20923 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 20924 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 20925 # Extract the first word of "$tool_basename", so it can be a program name with args. 20926 set dummy $tool_basename; ac_word=$2 20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20928 $as_echo_n "checking for $ac_word... " >&6; } 20929 if ${ac_cv_path_MAKE+:} false; then : 20930 $as_echo_n "(cached) " >&6 20931 else 20932 case $MAKE in 20933 [\\/]* | ?:[\\/]*) 20934 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 20935 ;; 20936 *) 20937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20938 for as_dir in $PATH 20939 do 20940 IFS=$as_save_IFS 20941 test -z "$as_dir" && as_dir=. 20942 for ac_exec_ext in '' $ac_executable_extensions; do 20943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20944 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 20945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20946 break 2 20947 fi 20948 done 20949 done 20950 IFS=$as_save_IFS 20951 20952 ;; 20953 esac 20954 fi 20955 MAKE=$ac_cv_path_MAKE 20956 if test -n "$MAKE"; then 20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 20958 $as_echo "$MAKE" >&6; } 20959 else 20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20961 $as_echo "no" >&6; } 20962 fi 20963 20964 20965 if test "x$MAKE" = x; then 20966 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20967 fi 20968 else 20969 # Otherwise we believe it is a complete path. Use it as it is. 20970 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 20971 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20973 $as_echo_n "checking for MAKE... " >&6; } 20974 if test ! -x "$tool_specified"; then 20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20976 $as_echo "not found" >&6; } 20977 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 20978 fi 20979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20980 $as_echo "$tool_specified" >&6; } 20981 fi 20982 fi 20983 fi 20984 20985 # If MAKE was set by user, verify the version 20986 20987 MAKE_CANDIDATE=""$MAKE"" 20988 DESCRIPTION="user supplied MAKE=$MAKE" 20989 20990 # On Cygwin, we require a newer version of make than on other platforms 20991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20992 MAKE_VERSION_EXPR="-e 4\." 20993 MAKE_REQUIRED_VERSION="4.0" 20994 else 20995 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20996 MAKE_REQUIRED_VERSION="3.81" 20997 fi 20998 20999 if test "x$MAKE_CANDIDATE" != x; then 21000 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 21001 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 21002 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 21003 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 21004 if test "x$IS_GNU_MAKE" = x; then 21005 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 21006 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 21007 else 21008 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 21009 if test "x$IS_MODERN_MAKE" = x; then 21010 { $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 21011 $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;} 21012 else 21013 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 21014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21015 MAKE_EXPECTED_ENV='cygwin' 21016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21017 MAKE_EXPECTED_ENV='msys' 21018 else 21019 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 21020 fi 21021 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 21022 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 21023 else 21024 # Not relevant for non-Windows 21025 IS_MAKE_CORRECT_ENV=true 21026 fi 21027 if test "x$IS_MAKE_CORRECT_ENV" = x; then 21028 { $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 21029 $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;} 21030 else 21031 FOUND_MAKE=$MAKE_CANDIDATE 21032 21033 # Only process if variable expands to non-empty 21034 21035 if test "x$FOUND_MAKE" != x; then 21036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21037 21038 # First separate the path from the arguments. This will split at the first 21039 # space. 21040 complete="$FOUND_MAKE" 21041 path="${complete%% *}" 21042 tmp="$complete EOL" 21043 arguments="${tmp#* }" 21044 21045 # Input might be given as Windows format, start by converting to 21046 # unix format. 21047 new_path=`$CYGPATH -u "$path"` 21048 21049 # Now try to locate executable using which 21050 new_path=`$WHICH "$new_path" 2> /dev/null` 21051 # bat and cmd files are not always considered executable in cygwin causing which 21052 # to not find them 21053 if test "x$new_path" = x \ 21054 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21055 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21056 new_path=`$CYGPATH -u "$path"` 21057 fi 21058 if test "x$new_path" = x; then 21059 # Oops. Which didn't find the executable. 21060 # The splitting of arguments from the executable at a space might have been incorrect, 21061 # since paths with space are more likely in Windows. Give it another try with the whole 21062 # argument. 21063 path="$complete" 21064 arguments="EOL" 21065 new_path=`$CYGPATH -u "$path"` 21066 new_path=`$WHICH "$new_path" 2> /dev/null` 21067 # bat and cmd files are not always considered executable in cygwin causing which 21068 # to not find them 21069 if test "x$new_path" = x \ 21070 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21071 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21072 new_path=`$CYGPATH -u "$path"` 21073 fi 21074 if test "x$new_path" = x; then 21075 # It's still not found. Now this is an unrecoverable error. 21076 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21077 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21078 has_space=`$ECHO "$complete" | $GREP " "` 21079 if test "x$has_space" != x; then 21080 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21081 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21082 fi 21083 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21084 fi 21085 fi 21086 21087 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21088 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21089 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21090 # "foo.exe" is OK but "foo" is an error. 21091 # 21092 # This test is therefore slightly more accurate than "test -f" to check for file presence. 21093 # It is also a way to make sure we got the proper file name for the real test later on. 21094 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21095 if test "x$test_shortpath" = x; then 21096 # Short path failed, file does not exist as specified. 21097 # Try adding .exe or .cmd 21098 if test -f "${new_path}.exe"; then 21099 input_to_shortpath="${new_path}.exe" 21100 elif test -f "${new_path}.cmd"; then 21101 input_to_shortpath="${new_path}.cmd" 21102 else 21103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 21104 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 21105 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21106 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21107 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21108 fi 21109 else 21110 input_to_shortpath="$new_path" 21111 fi 21112 21113 # Call helper function which possibly converts this using DOS-style short mode. 21114 # If so, the updated path is stored in $new_path. 21115 new_path="$input_to_shortpath" 21116 21117 input_path="$input_to_shortpath" 21118 # Check if we need to convert this using DOS-style short mode. If the path 21119 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21120 # take no chances and rewrite it. 21121 # Note: m4 eats our [], so we need to use [ and ] instead. 21122 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21123 if test "x$has_forbidden_chars" != x; then 21124 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21125 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21126 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21127 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21128 # Going to short mode and back again did indeed matter. Since short mode is 21129 # case insensitive, let's make it lowercase to improve readability. 21130 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21131 # Now convert it back to Unix-style (cygpath) 21132 input_path=`$CYGPATH -u "$shortmode_path"` 21133 new_path="$input_path" 21134 fi 21135 fi 21136 21137 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21138 if test "x$test_cygdrive_prefix" = x; then 21139 # As a simple fix, exclude /usr/bin since it's not a real path. 21140 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21141 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21142 # a path prefixed by /cygdrive for fixpath to work. 21143 new_path="$CYGWIN_ROOT_PATH$input_path" 21144 fi 21145 fi 21146 21147 # remove trailing .exe if any 21148 new_path="${new_path/%.exe/}" 21149 21150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21151 21152 # First separate the path from the arguments. This will split at the first 21153 # space. 21154 complete="$FOUND_MAKE" 21155 path="${complete%% *}" 21156 tmp="$complete EOL" 21157 arguments="${tmp#* }" 21158 21159 # Input might be given as Windows format, start by converting to 21160 # unix format. 21161 new_path="$path" 21162 21163 windows_path="$new_path" 21164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21165 unix_path=`$CYGPATH -u "$windows_path"` 21166 new_path="$unix_path" 21167 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21168 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21169 new_path="$unix_path" 21170 fi 21171 21172 21173 # Now try to locate executable using which 21174 new_path=`$WHICH "$new_path" 2> /dev/null` 21175 21176 if test "x$new_path" = x; then 21177 # Oops. Which didn't find the executable. 21178 # The splitting of arguments from the executable at a space might have been incorrect, 21179 # since paths with space are more likely in Windows. Give it another try with the whole 21180 # argument. 21181 path="$complete" 21182 arguments="EOL" 21183 new_path="$path" 21184 21185 windows_path="$new_path" 21186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21187 unix_path=`$CYGPATH -u "$windows_path"` 21188 new_path="$unix_path" 21189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21191 new_path="$unix_path" 21192 fi 21193 21194 21195 new_path=`$WHICH "$new_path" 2> /dev/null` 21196 # bat and cmd files are not always considered executable in MSYS causing which 21197 # to not find them 21198 if test "x$new_path" = x \ 21199 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21200 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21201 new_path="$path" 21202 21203 windows_path="$new_path" 21204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21205 unix_path=`$CYGPATH -u "$windows_path"` 21206 new_path="$unix_path" 21207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21208 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21209 new_path="$unix_path" 21210 fi 21211 21212 fi 21213 21214 if test "x$new_path" = x; then 21215 # It's still not found. Now this is an unrecoverable error. 21216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21217 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21218 has_space=`$ECHO "$complete" | $GREP " "` 21219 if test "x$has_space" != x; then 21220 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21221 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21222 fi 21223 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21224 fi 21225 fi 21226 21227 # Now new_path has a complete unix path to the binary 21228 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21229 # Keep paths in /bin as-is, but remove trailing .exe if any 21230 new_path="${new_path/%.exe/}" 21231 # Do not save /bin paths to all_fixpath_prefixes! 21232 else 21233 # Not in mixed or Windows style, start by that. 21234 new_path=`cmd //c echo $new_path` 21235 21236 input_path="$new_path" 21237 # Check if we need to convert this using DOS-style short mode. If the path 21238 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21239 # take no chances and rewrite it. 21240 # Note: m4 eats our [], so we need to use [ and ] instead. 21241 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21242 if test "x$has_forbidden_chars" != x; then 21243 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21244 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21245 fi 21246 21247 # Output is in $new_path 21248 21249 windows_path="$new_path" 21250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21251 unix_path=`$CYGPATH -u "$windows_path"` 21252 new_path="$unix_path" 21253 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21254 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21255 new_path="$unix_path" 21256 fi 21257 21258 # remove trailing .exe if any 21259 new_path="${new_path/%.exe/}" 21260 21261 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21262 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21263 fi 21264 21265 else 21266 # We're on a unix platform. Hooray! :) 21267 # First separate the path from the arguments. This will split at the first 21268 # space. 21269 complete="$FOUND_MAKE" 21270 path="${complete%% *}" 21271 tmp="$complete EOL" 21272 arguments="${tmp#* }" 21273 21274 # Cannot rely on the command "which" here since it doesn't always work. 21275 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21276 if test -z "$is_absolute_path"; then 21277 # Path to executable is not absolute. Find it. 21278 IFS_save="$IFS" 21279 IFS=: 21280 for p in $PATH; do 21281 if test -f "$p/$path" && test -x "$p/$path"; then 21282 new_path="$p/$path" 21283 break 21284 fi 21285 done 21286 IFS="$IFS_save" 21287 else 21288 # This is an absolute path, we can use it without further modifications. 21289 new_path="$path" 21290 fi 21291 21292 if test "x$new_path" = x; then 21293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21294 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21295 has_space=`$ECHO "$complete" | $GREP " "` 21296 if test "x$has_space" != x; then 21297 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21298 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21299 fi 21300 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21301 fi 21302 fi 21303 21304 # Now join together the path and the arguments once again 21305 if test "x$arguments" != xEOL; then 21306 new_complete="$new_path ${arguments% *}" 21307 else 21308 new_complete="$new_path" 21309 fi 21310 21311 if test "x$complete" != "x$new_complete"; then 21312 FOUND_MAKE="$new_complete" 21313 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21314 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21315 fi 21316 fi 21317 21318 fi 21319 fi 21320 fi 21321 fi 21322 21323 if test "x$FOUND_MAKE" = x; then 21324 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21325 fi 21326 21327 fi 21328 21329 21330 MAKE=$FOUND_MAKE 21331 21332 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21333 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21334 21335 21336 # Check if make supports the output sync option and if so, setup using it. 21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21338 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21339 if $MAKE --version -O > /dev/null 2>&1; then 21340 OUTPUT_SYNC_SUPPORTED=true 21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21342 $as_echo "yes" >&6; } 21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21344 $as_echo_n "checking for output-sync value... " >&6; } 21345 21346 # Check whether --with-output-sync was given. 21347 if test "${with_output_sync+set}" = set; then : 21348 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21349 fi 21350 21351 if test "x$OUTPUT_SYNC" = "x"; then 21352 OUTPUT_SYNC=none 21353 fi 21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21355 $as_echo "$OUTPUT_SYNC" >&6; } 21356 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21357 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21358 fi 21359 else 21360 OUTPUT_SYNC_SUPPORTED=false 21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21362 $as_echo "no" >&6; } 21363 fi 21364 21365 21366 21367 21368 21369 21370 # Test if find supports -delete 21371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21372 $as_echo_n "checking if find supports -delete... " >&6; } 21373 FIND_DELETE="-delete" 21374 21375 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21376 21377 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21378 21379 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21380 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21381 # No, it does not. 21382 $RM $DELETEDIR/TestIfFindSupportsDelete 21383 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21384 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21385 FIND_DELETE="-print | $XARGS $RM" 21386 else 21387 FIND_DELETE="-exec $RM \{\} \+" 21388 fi 21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21390 $as_echo "no" >&6; } 21391 else 21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21393 $as_echo "yes" >&6; } 21394 fi 21395 $RMDIR $DELETEDIR 21396 21397 21398 21399 # Test which kind of tar was found 21400 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21401 TAR_TYPE="gnu" 21402 elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then 21403 TAR_TYPE="bsd" 21404 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21405 TAR_TYPE="bsd" 21406 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21407 TAR_TYPE="solaris" 21408 fi 21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21410 $as_echo_n "checking what type of tar was found... " >&6; } 21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21412 $as_echo "$TAR_TYPE" >&6; } 21413 21414 TAR_CREATE_FILE_PARAM="" 21415 21416 if test "x$TAR_TYPE" = "xgnu"; then 21417 TAR_INCLUDE_PARAM="T" 21418 TAR_SUPPORTS_TRANSFORM="true" 21419 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21420 # When using gnu tar for Solaris targets, need to use compatibility mode 21421 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21422 fi 21423 else 21424 TAR_INCLUDE_PARAM="I" 21425 TAR_SUPPORTS_TRANSFORM="false" 21426 fi 21427 21428 21429 21430 21431 21432 21433 # Test that grep supports -Fx with a list of pattern which includes null pattern. 21434 # This is a problem for the grep resident on AIX. 21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5 21436 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; } 21437 # Multiple subsequent spaces.. 21438 STACK_SPACES='aaa bbb ccc' 21439 # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty 21440 # patterns in it. 21441 STACK_LIST=${STACK_SPACES// /$'\n'} 21442 NEEDLE_SPACES='ccc bbb aaa' 21443 NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'} 21444 RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")" 21445 if test "x$RESULT" == "x"; then 21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21447 $as_echo "yes" >&6; } 21448 else 21449 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21450 ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin." 21451 fi 21452 as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5 21453 fi 21454 21455 21456 # These tools might not be installed by default, 21457 # need hint on how to install them. 21458 21459 21460 21461 # Publish this variable in the help. 21462 21463 21464 if [ -z "${UNZIP+x}" ]; then 21465 # The variable is not set by user, try to locate tool using the code snippet 21466 for ac_prog in unzip 21467 do 21468 # Extract the first word of "$ac_prog", so it can be a program name with args. 21469 set dummy $ac_prog; ac_word=$2 21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21471 $as_echo_n "checking for $ac_word... " >&6; } 21472 if ${ac_cv_path_UNZIP+:} false; then : 21473 $as_echo_n "(cached) " >&6 21474 else 21475 case $UNZIP in 21476 [\\/]* | ?:[\\/]*) 21477 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21478 ;; 21479 *) 21480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21481 for as_dir in $PATH 21482 do 21483 IFS=$as_save_IFS 21484 test -z "$as_dir" && as_dir=. 21485 for ac_exec_ext in '' $ac_executable_extensions; do 21486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21487 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21489 break 2 21490 fi 21491 done 21492 done 21493 IFS=$as_save_IFS 21494 21495 ;; 21496 esac 21497 fi 21498 UNZIP=$ac_cv_path_UNZIP 21499 if test -n "$UNZIP"; then 21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21501 $as_echo "$UNZIP" >&6; } 21502 else 21503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21504 $as_echo "no" >&6; } 21505 fi 21506 21507 21508 test -n "$UNZIP" && break 21509 done 21510 21511 else 21512 # The variable is set, but is it from the command line or the environment? 21513 21514 # Try to remove the string !UNZIP! from our list. 21515 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21516 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21517 # If it failed, the variable was not from the command line. Ignore it, 21518 # but warn the user (except for BASH, which is always set by the calling BASH). 21519 if test "xUNZIP" != xBASH; then 21520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21521 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21522 fi 21523 # Try to locate tool using the code snippet 21524 for ac_prog in unzip 21525 do 21526 # Extract the first word of "$ac_prog", so it can be a program name with args. 21527 set dummy $ac_prog; ac_word=$2 21528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21529 $as_echo_n "checking for $ac_word... " >&6; } 21530 if ${ac_cv_path_UNZIP+:} false; then : 21531 $as_echo_n "(cached) " >&6 21532 else 21533 case $UNZIP in 21534 [\\/]* | ?:[\\/]*) 21535 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21536 ;; 21537 *) 21538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21539 for as_dir in $PATH 21540 do 21541 IFS=$as_save_IFS 21542 test -z "$as_dir" && as_dir=. 21543 for ac_exec_ext in '' $ac_executable_extensions; do 21544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21545 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21547 break 2 21548 fi 21549 done 21550 done 21551 IFS=$as_save_IFS 21552 21553 ;; 21554 esac 21555 fi 21556 UNZIP=$ac_cv_path_UNZIP 21557 if test -n "$UNZIP"; then 21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21559 $as_echo "$UNZIP" >&6; } 21560 else 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21562 $as_echo "no" >&6; } 21563 fi 21564 21565 21566 test -n "$UNZIP" && break 21567 done 21568 21569 else 21570 # If it succeeded, then it was overridden by the user. We will use it 21571 # for the tool. 21572 21573 # First remove it from the list of overridden variables, so we can test 21574 # for unknown variables in the end. 21575 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21576 21577 # Check if we try to supply an empty value 21578 if test "x$UNZIP" = x; then 21579 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21580 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21582 $as_echo_n "checking for UNZIP... " >&6; } 21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21584 $as_echo "disabled" >&6; } 21585 else 21586 # Check if the provided tool contains a complete path. 21587 tool_specified="$UNZIP" 21588 tool_basename="${tool_specified##*/}" 21589 if test "x$tool_basename" = "x$tool_specified"; then 21590 # A command without a complete path is provided, search $PATH. 21591 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21592 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21593 # Extract the first word of "$tool_basename", so it can be a program name with args. 21594 set dummy $tool_basename; ac_word=$2 21595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21596 $as_echo_n "checking for $ac_word... " >&6; } 21597 if ${ac_cv_path_UNZIP+:} false; then : 21598 $as_echo_n "(cached) " >&6 21599 else 21600 case $UNZIP in 21601 [\\/]* | ?:[\\/]*) 21602 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21603 ;; 21604 *) 21605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21606 for as_dir in $PATH 21607 do 21608 IFS=$as_save_IFS 21609 test -z "$as_dir" && as_dir=. 21610 for ac_exec_ext in '' $ac_executable_extensions; do 21611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21612 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21614 break 2 21615 fi 21616 done 21617 done 21618 IFS=$as_save_IFS 21619 21620 ;; 21621 esac 21622 fi 21623 UNZIP=$ac_cv_path_UNZIP 21624 if test -n "$UNZIP"; then 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21626 $as_echo "$UNZIP" >&6; } 21627 else 21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21629 $as_echo "no" >&6; } 21630 fi 21631 21632 21633 if test "x$UNZIP" = x; then 21634 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21635 fi 21636 else 21637 # Otherwise we believe it is a complete path. Use it as it is. 21638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21639 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21641 $as_echo_n "checking for UNZIP... " >&6; } 21642 if test ! -x "$tool_specified"; then 21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21644 $as_echo "not found" >&6; } 21645 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21646 fi 21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21648 $as_echo "$tool_specified" >&6; } 21649 fi 21650 fi 21651 fi 21652 21653 fi 21654 21655 21656 21657 if test "x$UNZIP" = x; then 21658 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21659 fi 21660 21661 21662 # Since zip uses "ZIP" as a environment variable for passing options, we need 21663 # to name our variable differently, hence ZIPEXE. 21664 21665 21666 21667 # Publish this variable in the help. 21668 21669 21670 if [ -z "${ZIPEXE+x}" ]; then 21671 # The variable is not set by user, try to locate tool using the code snippet 21672 for ac_prog in zip 21673 do 21674 # Extract the first word of "$ac_prog", so it can be a program name with args. 21675 set dummy $ac_prog; ac_word=$2 21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21677 $as_echo_n "checking for $ac_word... " >&6; } 21678 if ${ac_cv_path_ZIPEXE+:} false; then : 21679 $as_echo_n "(cached) " >&6 21680 else 21681 case $ZIPEXE in 21682 [\\/]* | ?:[\\/]*) 21683 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21684 ;; 21685 *) 21686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21687 for as_dir in $PATH 21688 do 21689 IFS=$as_save_IFS 21690 test -z "$as_dir" && as_dir=. 21691 for ac_exec_ext in '' $ac_executable_extensions; do 21692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21693 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21695 break 2 21696 fi 21697 done 21698 done 21699 IFS=$as_save_IFS 21700 21701 ;; 21702 esac 21703 fi 21704 ZIPEXE=$ac_cv_path_ZIPEXE 21705 if test -n "$ZIPEXE"; then 21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21707 $as_echo "$ZIPEXE" >&6; } 21708 else 21709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21710 $as_echo "no" >&6; } 21711 fi 21712 21713 21714 test -n "$ZIPEXE" && break 21715 done 21716 21717 else 21718 # The variable is set, but is it from the command line or the environment? 21719 21720 # Try to remove the string !ZIPEXE! from our list. 21721 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/} 21722 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21723 # If it failed, the variable was not from the command line. Ignore it, 21724 # but warn the user (except for BASH, which is always set by the calling BASH). 21725 if test "xZIPEXE" != xBASH; then 21726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5 21727 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;} 21728 fi 21729 # Try to locate tool using the code snippet 21730 for ac_prog in zip 21731 do 21732 # Extract the first word of "$ac_prog", so it can be a program name with args. 21733 set dummy $ac_prog; ac_word=$2 21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21735 $as_echo_n "checking for $ac_word... " >&6; } 21736 if ${ac_cv_path_ZIPEXE+:} false; then : 21737 $as_echo_n "(cached) " >&6 21738 else 21739 case $ZIPEXE in 21740 [\\/]* | ?:[\\/]*) 21741 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21742 ;; 21743 *) 21744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21745 for as_dir in $PATH 21746 do 21747 IFS=$as_save_IFS 21748 test -z "$as_dir" && as_dir=. 21749 for ac_exec_ext in '' $ac_executable_extensions; do 21750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21751 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21753 break 2 21754 fi 21755 done 21756 done 21757 IFS=$as_save_IFS 21758 21759 ;; 21760 esac 21761 fi 21762 ZIPEXE=$ac_cv_path_ZIPEXE 21763 if test -n "$ZIPEXE"; then 21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21765 $as_echo "$ZIPEXE" >&6; } 21766 else 21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21768 $as_echo "no" >&6; } 21769 fi 21770 21771 21772 test -n "$ZIPEXE" && break 21773 done 21774 21775 else 21776 # If it succeeded, then it was overridden by the user. We will use it 21777 # for the tool. 21778 21779 # First remove it from the list of overridden variables, so we can test 21780 # for unknown variables in the end. 21781 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21782 21783 # Check if we try to supply an empty value 21784 if test "x$ZIPEXE" = x; then 21785 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5 21786 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;} 21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21788 $as_echo_n "checking for ZIPEXE... " >&6; } 21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21790 $as_echo "disabled" >&6; } 21791 else 21792 # Check if the provided tool contains a complete path. 21793 tool_specified="$ZIPEXE" 21794 tool_basename="${tool_specified##*/}" 21795 if test "x$tool_basename" = "x$tool_specified"; then 21796 # A command without a complete path is provided, search $PATH. 21797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5 21798 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;} 21799 # Extract the first word of "$tool_basename", so it can be a program name with args. 21800 set dummy $tool_basename; ac_word=$2 21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21802 $as_echo_n "checking for $ac_word... " >&6; } 21803 if ${ac_cv_path_ZIPEXE+:} false; then : 21804 $as_echo_n "(cached) " >&6 21805 else 21806 case $ZIPEXE in 21807 [\\/]* | ?:[\\/]*) 21808 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21809 ;; 21810 *) 21811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21812 for as_dir in $PATH 21813 do 21814 IFS=$as_save_IFS 21815 test -z "$as_dir" && as_dir=. 21816 for ac_exec_ext in '' $ac_executable_extensions; do 21817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21818 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21820 break 2 21821 fi 21822 done 21823 done 21824 IFS=$as_save_IFS 21825 21826 ;; 21827 esac 21828 fi 21829 ZIPEXE=$ac_cv_path_ZIPEXE 21830 if test -n "$ZIPEXE"; then 21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21832 $as_echo "$ZIPEXE" >&6; } 21833 else 21834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21835 $as_echo "no" >&6; } 21836 fi 21837 21838 21839 if test "x$ZIPEXE" = x; then 21840 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21841 fi 21842 else 21843 # Otherwise we believe it is a complete path. Use it as it is. 21844 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5 21845 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;} 21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21847 $as_echo_n "checking for ZIPEXE... " >&6; } 21848 if test ! -x "$tool_specified"; then 21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21850 $as_echo "not found" >&6; } 21851 as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 21852 fi 21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21854 $as_echo "$tool_specified" >&6; } 21855 fi 21856 fi 21857 fi 21858 21859 fi 21860 21861 21862 21863 if test "x$ZIPEXE" = x; then 21864 as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5 21865 fi 21866 21867 21868 21869 # Non-required basic tools 21870 21871 21872 21873 # Publish this variable in the help. 21874 21875 21876 if [ -z "${LDD+x}" ]; then 21877 # The variable is not set by user, try to locate tool using the code snippet 21878 for ac_prog in ldd 21879 do 21880 # Extract the first word of "$ac_prog", so it can be a program name with args. 21881 set dummy $ac_prog; ac_word=$2 21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21883 $as_echo_n "checking for $ac_word... " >&6; } 21884 if ${ac_cv_path_LDD+:} false; then : 21885 $as_echo_n "(cached) " >&6 21886 else 21887 case $LDD in 21888 [\\/]* | ?:[\\/]*) 21889 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21890 ;; 21891 *) 21892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21893 for as_dir in $PATH 21894 do 21895 IFS=$as_save_IFS 21896 test -z "$as_dir" && as_dir=. 21897 for ac_exec_ext in '' $ac_executable_extensions; do 21898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21899 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21901 break 2 21902 fi 21903 done 21904 done 21905 IFS=$as_save_IFS 21906 21907 ;; 21908 esac 21909 fi 21910 LDD=$ac_cv_path_LDD 21911 if test -n "$LDD"; then 21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21913 $as_echo "$LDD" >&6; } 21914 else 21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21916 $as_echo "no" >&6; } 21917 fi 21918 21919 21920 test -n "$LDD" && break 21921 done 21922 21923 else 21924 # The variable is set, but is it from the command line or the environment? 21925 21926 # Try to remove the string !LDD! from our list. 21927 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 21928 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21929 # If it failed, the variable was not from the command line. Ignore it, 21930 # but warn the user (except for BASH, which is always set by the calling BASH). 21931 if test "xLDD" != xBASH; then 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 21933 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 21934 fi 21935 # Try to locate tool using the code snippet 21936 for ac_prog in ldd 21937 do 21938 # Extract the first word of "$ac_prog", so it can be a program name with args. 21939 set dummy $ac_prog; ac_word=$2 21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21941 $as_echo_n "checking for $ac_word... " >&6; } 21942 if ${ac_cv_path_LDD+:} false; then : 21943 $as_echo_n "(cached) " >&6 21944 else 21945 case $LDD in 21946 [\\/]* | ?:[\\/]*) 21947 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21948 ;; 21949 *) 21950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21951 for as_dir in $PATH 21952 do 21953 IFS=$as_save_IFS 21954 test -z "$as_dir" && as_dir=. 21955 for ac_exec_ext in '' $ac_executable_extensions; do 21956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21957 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21959 break 2 21960 fi 21961 done 21962 done 21963 IFS=$as_save_IFS 21964 21965 ;; 21966 esac 21967 fi 21968 LDD=$ac_cv_path_LDD 21969 if test -n "$LDD"; then 21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21971 $as_echo "$LDD" >&6; } 21972 else 21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21974 $as_echo "no" >&6; } 21975 fi 21976 21977 21978 test -n "$LDD" && break 21979 done 21980 21981 else 21982 # If it succeeded, then it was overridden by the user. We will use it 21983 # for the tool. 21984 21985 # First remove it from the list of overridden variables, so we can test 21986 # for unknown variables in the end. 21987 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21988 21989 # Check if we try to supply an empty value 21990 if test "x$LDD" = x; then 21991 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 21992 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21994 $as_echo_n "checking for LDD... " >&6; } 21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21996 $as_echo "disabled" >&6; } 21997 else 21998 # Check if the provided tool contains a complete path. 21999 tool_specified="$LDD" 22000 tool_basename="${tool_specified##*/}" 22001 if test "x$tool_basename" = "x$tool_specified"; then 22002 # A command without a complete path is provided, search $PATH. 22003 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 22004 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 22005 # Extract the first word of "$tool_basename", so it can be a program name with args. 22006 set dummy $tool_basename; ac_word=$2 22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22008 $as_echo_n "checking for $ac_word... " >&6; } 22009 if ${ac_cv_path_LDD+:} false; then : 22010 $as_echo_n "(cached) " >&6 22011 else 22012 case $LDD in 22013 [\\/]* | ?:[\\/]*) 22014 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22015 ;; 22016 *) 22017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22018 for as_dir in $PATH 22019 do 22020 IFS=$as_save_IFS 22021 test -z "$as_dir" && as_dir=. 22022 for ac_exec_ext in '' $ac_executable_extensions; do 22023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22024 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22026 break 2 22027 fi 22028 done 22029 done 22030 IFS=$as_save_IFS 22031 22032 ;; 22033 esac 22034 fi 22035 LDD=$ac_cv_path_LDD 22036 if test -n "$LDD"; then 22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22038 $as_echo "$LDD" >&6; } 22039 else 22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22041 $as_echo "no" >&6; } 22042 fi 22043 22044 22045 if test "x$LDD" = x; then 22046 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22047 fi 22048 else 22049 # Otherwise we believe it is a complete path. Use it as it is. 22050 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 22051 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22053 $as_echo_n "checking for LDD... " >&6; } 22054 if test ! -x "$tool_specified"; then 22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22056 $as_echo "not found" >&6; } 22057 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 22058 fi 22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22060 $as_echo "$tool_specified" >&6; } 22061 fi 22062 fi 22063 fi 22064 22065 fi 22066 22067 22068 if test "x$LDD" = "x"; then 22069 # List shared lib dependencies is used for 22070 # debug output and checking for forbidden dependencies. 22071 # We can build without it. 22072 LDD="true" 22073 fi 22074 22075 22076 # Publish this variable in the help. 22077 22078 22079 if [ -z "${OTOOL+x}" ]; then 22080 # The variable is not set by user, try to locate tool using the code snippet 22081 for ac_prog in otool 22082 do 22083 # Extract the first word of "$ac_prog", so it can be a program name with args. 22084 set dummy $ac_prog; ac_word=$2 22085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22086 $as_echo_n "checking for $ac_word... " >&6; } 22087 if ${ac_cv_path_OTOOL+:} false; then : 22088 $as_echo_n "(cached) " >&6 22089 else 22090 case $OTOOL in 22091 [\\/]* | ?:[\\/]*) 22092 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22093 ;; 22094 *) 22095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22096 for as_dir in $PATH 22097 do 22098 IFS=$as_save_IFS 22099 test -z "$as_dir" && as_dir=. 22100 for ac_exec_ext in '' $ac_executable_extensions; do 22101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22102 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22104 break 2 22105 fi 22106 done 22107 done 22108 IFS=$as_save_IFS 22109 22110 ;; 22111 esac 22112 fi 22113 OTOOL=$ac_cv_path_OTOOL 22114 if test -n "$OTOOL"; then 22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22116 $as_echo "$OTOOL" >&6; } 22117 else 22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22119 $as_echo "no" >&6; } 22120 fi 22121 22122 22123 test -n "$OTOOL" && break 22124 done 22125 22126 else 22127 # The variable is set, but is it from the command line or the environment? 22128 22129 # Try to remove the string !OTOOL! from our list. 22130 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 22131 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22132 # If it failed, the variable was not from the command line. Ignore it, 22133 # but warn the user (except for BASH, which is always set by the calling BASH). 22134 if test "xOTOOL" != xBASH; then 22135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 22136 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 22137 fi 22138 # Try to locate tool using the code snippet 22139 for ac_prog in otool 22140 do 22141 # Extract the first word of "$ac_prog", so it can be a program name with args. 22142 set dummy $ac_prog; ac_word=$2 22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22144 $as_echo_n "checking for $ac_word... " >&6; } 22145 if ${ac_cv_path_OTOOL+:} false; then : 22146 $as_echo_n "(cached) " >&6 22147 else 22148 case $OTOOL in 22149 [\\/]* | ?:[\\/]*) 22150 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22151 ;; 22152 *) 22153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22154 for as_dir in $PATH 22155 do 22156 IFS=$as_save_IFS 22157 test -z "$as_dir" && as_dir=. 22158 for ac_exec_ext in '' $ac_executable_extensions; do 22159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22160 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22162 break 2 22163 fi 22164 done 22165 done 22166 IFS=$as_save_IFS 22167 22168 ;; 22169 esac 22170 fi 22171 OTOOL=$ac_cv_path_OTOOL 22172 if test -n "$OTOOL"; then 22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22174 $as_echo "$OTOOL" >&6; } 22175 else 22176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22177 $as_echo "no" >&6; } 22178 fi 22179 22180 22181 test -n "$OTOOL" && break 22182 done 22183 22184 else 22185 # If it succeeded, then it was overridden by the user. We will use it 22186 # for the tool. 22187 22188 # First remove it from the list of overridden variables, so we can test 22189 # for unknown variables in the end. 22190 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22191 22192 # Check if we try to supply an empty value 22193 if test "x$OTOOL" = x; then 22194 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 22195 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22197 $as_echo_n "checking for OTOOL... " >&6; } 22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22199 $as_echo "disabled" >&6; } 22200 else 22201 # Check if the provided tool contains a complete path. 22202 tool_specified="$OTOOL" 22203 tool_basename="${tool_specified##*/}" 22204 if test "x$tool_basename" = "x$tool_specified"; then 22205 # A command without a complete path is provided, search $PATH. 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 22207 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 22208 # Extract the first word of "$tool_basename", so it can be a program name with args. 22209 set dummy $tool_basename; ac_word=$2 22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22211 $as_echo_n "checking for $ac_word... " >&6; } 22212 if ${ac_cv_path_OTOOL+:} false; then : 22213 $as_echo_n "(cached) " >&6 22214 else 22215 case $OTOOL in 22216 [\\/]* | ?:[\\/]*) 22217 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22218 ;; 22219 *) 22220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22221 for as_dir in $PATH 22222 do 22223 IFS=$as_save_IFS 22224 test -z "$as_dir" && as_dir=. 22225 for ac_exec_ext in '' $ac_executable_extensions; do 22226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22227 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22229 break 2 22230 fi 22231 done 22232 done 22233 IFS=$as_save_IFS 22234 22235 ;; 22236 esac 22237 fi 22238 OTOOL=$ac_cv_path_OTOOL 22239 if test -n "$OTOOL"; then 22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22241 $as_echo "$OTOOL" >&6; } 22242 else 22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22244 $as_echo "no" >&6; } 22245 fi 22246 22247 22248 if test "x$OTOOL" = x; then 22249 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22250 fi 22251 else 22252 # Otherwise we believe it is a complete path. Use it as it is. 22253 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 22254 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22256 $as_echo_n "checking for OTOOL... " >&6; } 22257 if test ! -x "$tool_specified"; then 22258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22259 $as_echo "not found" >&6; } 22260 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 22261 fi 22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22263 $as_echo "$tool_specified" >&6; } 22264 fi 22265 fi 22266 fi 22267 22268 fi 22269 22270 22271 if test "x$OTOOL" = "x"; then 22272 OTOOL="true" 22273 fi 22274 22275 22276 # Publish this variable in the help. 22277 22278 22279 if [ -z "${READELF+x}" ]; then 22280 # The variable is not set by user, try to locate tool using the code snippet 22281 for ac_prog in greadelf readelf 22282 do 22283 # Extract the first word of "$ac_prog", so it can be a program name with args. 22284 set dummy $ac_prog; ac_word=$2 22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22286 $as_echo_n "checking for $ac_word... " >&6; } 22287 if ${ac_cv_path_READELF+:} false; then : 22288 $as_echo_n "(cached) " >&6 22289 else 22290 case $READELF in 22291 [\\/]* | ?:[\\/]*) 22292 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22293 ;; 22294 *) 22295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22296 for as_dir in $PATH 22297 do 22298 IFS=$as_save_IFS 22299 test -z "$as_dir" && as_dir=. 22300 for ac_exec_ext in '' $ac_executable_extensions; do 22301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22302 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22304 break 2 22305 fi 22306 done 22307 done 22308 IFS=$as_save_IFS 22309 22310 ;; 22311 esac 22312 fi 22313 READELF=$ac_cv_path_READELF 22314 if test -n "$READELF"; then 22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22316 $as_echo "$READELF" >&6; } 22317 else 22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22319 $as_echo "no" >&6; } 22320 fi 22321 22322 22323 test -n "$READELF" && break 22324 done 22325 22326 else 22327 # The variable is set, but is it from the command line or the environment? 22328 22329 # Try to remove the string !READELF! from our list. 22330 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22331 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22332 # If it failed, the variable was not from the command line. Ignore it, 22333 # but warn the user (except for BASH, which is always set by the calling BASH). 22334 if test "xREADELF" != xBASH; then 22335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22336 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22337 fi 22338 # Try to locate tool using the code snippet 22339 for ac_prog in greadelf readelf 22340 do 22341 # Extract the first word of "$ac_prog", so it can be a program name with args. 22342 set dummy $ac_prog; ac_word=$2 22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22344 $as_echo_n "checking for $ac_word... " >&6; } 22345 if ${ac_cv_path_READELF+:} false; then : 22346 $as_echo_n "(cached) " >&6 22347 else 22348 case $READELF in 22349 [\\/]* | ?:[\\/]*) 22350 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22351 ;; 22352 *) 22353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22354 for as_dir in $PATH 22355 do 22356 IFS=$as_save_IFS 22357 test -z "$as_dir" && as_dir=. 22358 for ac_exec_ext in '' $ac_executable_extensions; do 22359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22360 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22362 break 2 22363 fi 22364 done 22365 done 22366 IFS=$as_save_IFS 22367 22368 ;; 22369 esac 22370 fi 22371 READELF=$ac_cv_path_READELF 22372 if test -n "$READELF"; then 22373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22374 $as_echo "$READELF" >&6; } 22375 else 22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22377 $as_echo "no" >&6; } 22378 fi 22379 22380 22381 test -n "$READELF" && break 22382 done 22383 22384 else 22385 # If it succeeded, then it was overridden by the user. We will use it 22386 # for the tool. 22387 22388 # First remove it from the list of overridden variables, so we can test 22389 # for unknown variables in the end. 22390 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22391 22392 # Check if we try to supply an empty value 22393 if test "x$READELF" = x; then 22394 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22395 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22397 $as_echo_n "checking for READELF... " >&6; } 22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22399 $as_echo "disabled" >&6; } 22400 else 22401 # Check if the provided tool contains a complete path. 22402 tool_specified="$READELF" 22403 tool_basename="${tool_specified##*/}" 22404 if test "x$tool_basename" = "x$tool_specified"; then 22405 # A command without a complete path is provided, search $PATH. 22406 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22407 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22408 # Extract the first word of "$tool_basename", so it can be a program name with args. 22409 set dummy $tool_basename; ac_word=$2 22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22411 $as_echo_n "checking for $ac_word... " >&6; } 22412 if ${ac_cv_path_READELF+:} false; then : 22413 $as_echo_n "(cached) " >&6 22414 else 22415 case $READELF in 22416 [\\/]* | ?:[\\/]*) 22417 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22418 ;; 22419 *) 22420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22421 for as_dir in $PATH 22422 do 22423 IFS=$as_save_IFS 22424 test -z "$as_dir" && as_dir=. 22425 for ac_exec_ext in '' $ac_executable_extensions; do 22426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22427 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22429 break 2 22430 fi 22431 done 22432 done 22433 IFS=$as_save_IFS 22434 22435 ;; 22436 esac 22437 fi 22438 READELF=$ac_cv_path_READELF 22439 if test -n "$READELF"; then 22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22441 $as_echo "$READELF" >&6; } 22442 else 22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22444 $as_echo "no" >&6; } 22445 fi 22446 22447 22448 if test "x$READELF" = x; then 22449 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22450 fi 22451 else 22452 # Otherwise we believe it is a complete path. Use it as it is. 22453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22454 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22456 $as_echo_n "checking for READELF... " >&6; } 22457 if test ! -x "$tool_specified"; then 22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22459 $as_echo "not found" >&6; } 22460 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22461 fi 22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22463 $as_echo "$tool_specified" >&6; } 22464 fi 22465 fi 22466 fi 22467 22468 fi 22469 22470 22471 22472 22473 # Publish this variable in the help. 22474 22475 22476 if [ -z "${HG+x}" ]; then 22477 # The variable is not set by user, try to locate tool using the code snippet 22478 for ac_prog in hg 22479 do 22480 # Extract the first word of "$ac_prog", so it can be a program name with args. 22481 set dummy $ac_prog; ac_word=$2 22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22483 $as_echo_n "checking for $ac_word... " >&6; } 22484 if ${ac_cv_path_HG+:} false; then : 22485 $as_echo_n "(cached) " >&6 22486 else 22487 case $HG in 22488 [\\/]* | ?:[\\/]*) 22489 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22490 ;; 22491 *) 22492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22493 for as_dir in $PATH 22494 do 22495 IFS=$as_save_IFS 22496 test -z "$as_dir" && as_dir=. 22497 for ac_exec_ext in '' $ac_executable_extensions; do 22498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22499 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22501 break 2 22502 fi 22503 done 22504 done 22505 IFS=$as_save_IFS 22506 22507 ;; 22508 esac 22509 fi 22510 HG=$ac_cv_path_HG 22511 if test -n "$HG"; then 22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22513 $as_echo "$HG" >&6; } 22514 else 22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22516 $as_echo "no" >&6; } 22517 fi 22518 22519 22520 test -n "$HG" && break 22521 done 22522 22523 else 22524 # The variable is set, but is it from the command line or the environment? 22525 22526 # Try to remove the string !HG! from our list. 22527 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22528 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22529 # If it failed, the variable was not from the command line. Ignore it, 22530 # but warn the user (except for BASH, which is always set by the calling BASH). 22531 if test "xHG" != xBASH; then 22532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22533 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22534 fi 22535 # Try to locate tool using the code snippet 22536 for ac_prog in hg 22537 do 22538 # Extract the first word of "$ac_prog", so it can be a program name with args. 22539 set dummy $ac_prog; ac_word=$2 22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22541 $as_echo_n "checking for $ac_word... " >&6; } 22542 if ${ac_cv_path_HG+:} false; then : 22543 $as_echo_n "(cached) " >&6 22544 else 22545 case $HG in 22546 [\\/]* | ?:[\\/]*) 22547 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22548 ;; 22549 *) 22550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22551 for as_dir in $PATH 22552 do 22553 IFS=$as_save_IFS 22554 test -z "$as_dir" && as_dir=. 22555 for ac_exec_ext in '' $ac_executable_extensions; do 22556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22557 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22559 break 2 22560 fi 22561 done 22562 done 22563 IFS=$as_save_IFS 22564 22565 ;; 22566 esac 22567 fi 22568 HG=$ac_cv_path_HG 22569 if test -n "$HG"; then 22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22571 $as_echo "$HG" >&6; } 22572 else 22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22574 $as_echo "no" >&6; } 22575 fi 22576 22577 22578 test -n "$HG" && break 22579 done 22580 22581 else 22582 # If it succeeded, then it was overridden by the user. We will use it 22583 # for the tool. 22584 22585 # First remove it from the list of overridden variables, so we can test 22586 # for unknown variables in the end. 22587 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22588 22589 # Check if we try to supply an empty value 22590 if test "x$HG" = x; then 22591 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22592 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22594 $as_echo_n "checking for HG... " >&6; } 22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22596 $as_echo "disabled" >&6; } 22597 else 22598 # Check if the provided tool contains a complete path. 22599 tool_specified="$HG" 22600 tool_basename="${tool_specified##*/}" 22601 if test "x$tool_basename" = "x$tool_specified"; then 22602 # A command without a complete path is provided, search $PATH. 22603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22604 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22605 # Extract the first word of "$tool_basename", so it can be a program name with args. 22606 set dummy $tool_basename; ac_word=$2 22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22608 $as_echo_n "checking for $ac_word... " >&6; } 22609 if ${ac_cv_path_HG+:} false; then : 22610 $as_echo_n "(cached) " >&6 22611 else 22612 case $HG in 22613 [\\/]* | ?:[\\/]*) 22614 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22615 ;; 22616 *) 22617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22618 for as_dir in $PATH 22619 do 22620 IFS=$as_save_IFS 22621 test -z "$as_dir" && as_dir=. 22622 for ac_exec_ext in '' $ac_executable_extensions; do 22623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22624 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22626 break 2 22627 fi 22628 done 22629 done 22630 IFS=$as_save_IFS 22631 22632 ;; 22633 esac 22634 fi 22635 HG=$ac_cv_path_HG 22636 if test -n "$HG"; then 22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22638 $as_echo "$HG" >&6; } 22639 else 22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22641 $as_echo "no" >&6; } 22642 fi 22643 22644 22645 if test "x$HG" = x; then 22646 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22647 fi 22648 else 22649 # Otherwise we believe it is a complete path. Use it as it is. 22650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22651 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22653 $as_echo_n "checking for HG... " >&6; } 22654 if test ! -x "$tool_specified"; then 22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22656 $as_echo "not found" >&6; } 22657 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22658 fi 22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22660 $as_echo "$tool_specified" >&6; } 22661 fi 22662 fi 22663 fi 22664 22665 fi 22666 22667 22668 22669 22670 # Publish this variable in the help. 22671 22672 22673 if [ -z "${STAT+x}" ]; then 22674 # The variable is not set by user, try to locate tool using the code snippet 22675 for ac_prog in stat 22676 do 22677 # Extract the first word of "$ac_prog", so it can be a program name with args. 22678 set dummy $ac_prog; ac_word=$2 22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22680 $as_echo_n "checking for $ac_word... " >&6; } 22681 if ${ac_cv_path_STAT+:} false; then : 22682 $as_echo_n "(cached) " >&6 22683 else 22684 case $STAT in 22685 [\\/]* | ?:[\\/]*) 22686 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22687 ;; 22688 *) 22689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22690 for as_dir in $PATH 22691 do 22692 IFS=$as_save_IFS 22693 test -z "$as_dir" && as_dir=. 22694 for ac_exec_ext in '' $ac_executable_extensions; do 22695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22696 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22698 break 2 22699 fi 22700 done 22701 done 22702 IFS=$as_save_IFS 22703 22704 ;; 22705 esac 22706 fi 22707 STAT=$ac_cv_path_STAT 22708 if test -n "$STAT"; then 22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22710 $as_echo "$STAT" >&6; } 22711 else 22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22713 $as_echo "no" >&6; } 22714 fi 22715 22716 22717 test -n "$STAT" && break 22718 done 22719 22720 else 22721 # The variable is set, but is it from the command line or the environment? 22722 22723 # Try to remove the string !STAT! from our list. 22724 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22725 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22726 # If it failed, the variable was not from the command line. Ignore it, 22727 # but warn the user (except for BASH, which is always set by the calling BASH). 22728 if test "xSTAT" != xBASH; then 22729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22730 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22731 fi 22732 # Try to locate tool using the code snippet 22733 for ac_prog in stat 22734 do 22735 # Extract the first word of "$ac_prog", so it can be a program name with args. 22736 set dummy $ac_prog; ac_word=$2 22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22738 $as_echo_n "checking for $ac_word... " >&6; } 22739 if ${ac_cv_path_STAT+:} false; then : 22740 $as_echo_n "(cached) " >&6 22741 else 22742 case $STAT in 22743 [\\/]* | ?:[\\/]*) 22744 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22745 ;; 22746 *) 22747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22748 for as_dir in $PATH 22749 do 22750 IFS=$as_save_IFS 22751 test -z "$as_dir" && as_dir=. 22752 for ac_exec_ext in '' $ac_executable_extensions; do 22753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22754 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22756 break 2 22757 fi 22758 done 22759 done 22760 IFS=$as_save_IFS 22761 22762 ;; 22763 esac 22764 fi 22765 STAT=$ac_cv_path_STAT 22766 if test -n "$STAT"; then 22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22768 $as_echo "$STAT" >&6; } 22769 else 22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22771 $as_echo "no" >&6; } 22772 fi 22773 22774 22775 test -n "$STAT" && break 22776 done 22777 22778 else 22779 # If it succeeded, then it was overridden by the user. We will use it 22780 # for the tool. 22781 22782 # First remove it from the list of overridden variables, so we can test 22783 # for unknown variables in the end. 22784 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22785 22786 # Check if we try to supply an empty value 22787 if test "x$STAT" = x; then 22788 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 22789 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 22790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22791 $as_echo_n "checking for STAT... " >&6; } 22792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22793 $as_echo "disabled" >&6; } 22794 else 22795 # Check if the provided tool contains a complete path. 22796 tool_specified="$STAT" 22797 tool_basename="${tool_specified##*/}" 22798 if test "x$tool_basename" = "x$tool_specified"; then 22799 # A command without a complete path is provided, search $PATH. 22800 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 22801 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 22802 # Extract the first word of "$tool_basename", so it can be a program name with args. 22803 set dummy $tool_basename; ac_word=$2 22804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22805 $as_echo_n "checking for $ac_word... " >&6; } 22806 if ${ac_cv_path_STAT+:} false; then : 22807 $as_echo_n "(cached) " >&6 22808 else 22809 case $STAT in 22810 [\\/]* | ?:[\\/]*) 22811 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22812 ;; 22813 *) 22814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22815 for as_dir in $PATH 22816 do 22817 IFS=$as_save_IFS 22818 test -z "$as_dir" && as_dir=. 22819 for ac_exec_ext in '' $ac_executable_extensions; do 22820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22821 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22823 break 2 22824 fi 22825 done 22826 done 22827 IFS=$as_save_IFS 22828 22829 ;; 22830 esac 22831 fi 22832 STAT=$ac_cv_path_STAT 22833 if test -n "$STAT"; then 22834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22835 $as_echo "$STAT" >&6; } 22836 else 22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22838 $as_echo "no" >&6; } 22839 fi 22840 22841 22842 if test "x$STAT" = x; then 22843 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22844 fi 22845 else 22846 # Otherwise we believe it is a complete path. Use it as it is. 22847 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 22848 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22850 $as_echo_n "checking for STAT... " >&6; } 22851 if test ! -x "$tool_specified"; then 22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22853 $as_echo "not found" >&6; } 22854 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 22855 fi 22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22857 $as_echo "$tool_specified" >&6; } 22858 fi 22859 fi 22860 fi 22861 22862 fi 22863 22864 22865 22866 22867 # Publish this variable in the help. 22868 22869 22870 if [ -z "${TIME+x}" ]; then 22871 # The variable is not set by user, try to locate tool using the code snippet 22872 for ac_prog in time 22873 do 22874 # Extract the first word of "$ac_prog", so it can be a program name with args. 22875 set dummy $ac_prog; ac_word=$2 22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22877 $as_echo_n "checking for $ac_word... " >&6; } 22878 if ${ac_cv_path_TIME+:} false; then : 22879 $as_echo_n "(cached) " >&6 22880 else 22881 case $TIME in 22882 [\\/]* | ?:[\\/]*) 22883 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22884 ;; 22885 *) 22886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22887 for as_dir in $PATH 22888 do 22889 IFS=$as_save_IFS 22890 test -z "$as_dir" && as_dir=. 22891 for ac_exec_ext in '' $ac_executable_extensions; do 22892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22893 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22895 break 2 22896 fi 22897 done 22898 done 22899 IFS=$as_save_IFS 22900 22901 ;; 22902 esac 22903 fi 22904 TIME=$ac_cv_path_TIME 22905 if test -n "$TIME"; then 22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22907 $as_echo "$TIME" >&6; } 22908 else 22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22910 $as_echo "no" >&6; } 22911 fi 22912 22913 22914 test -n "$TIME" && break 22915 done 22916 22917 else 22918 # The variable is set, but is it from the command line or the environment? 22919 22920 # Try to remove the string !TIME! from our list. 22921 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 22922 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22923 # If it failed, the variable was not from the command line. Ignore it, 22924 # but warn the user (except for BASH, which is always set by the calling BASH). 22925 if test "xTIME" != xBASH; then 22926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 22927 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 22928 fi 22929 # Try to locate tool using the code snippet 22930 for ac_prog in time 22931 do 22932 # Extract the first word of "$ac_prog", so it can be a program name with args. 22933 set dummy $ac_prog; ac_word=$2 22934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22935 $as_echo_n "checking for $ac_word... " >&6; } 22936 if ${ac_cv_path_TIME+:} false; then : 22937 $as_echo_n "(cached) " >&6 22938 else 22939 case $TIME in 22940 [\\/]* | ?:[\\/]*) 22941 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22942 ;; 22943 *) 22944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22945 for as_dir in $PATH 22946 do 22947 IFS=$as_save_IFS 22948 test -z "$as_dir" && as_dir=. 22949 for ac_exec_ext in '' $ac_executable_extensions; do 22950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22951 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22953 break 2 22954 fi 22955 done 22956 done 22957 IFS=$as_save_IFS 22958 22959 ;; 22960 esac 22961 fi 22962 TIME=$ac_cv_path_TIME 22963 if test -n "$TIME"; then 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22965 $as_echo "$TIME" >&6; } 22966 else 22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22968 $as_echo "no" >&6; } 22969 fi 22970 22971 22972 test -n "$TIME" && break 22973 done 22974 22975 else 22976 # If it succeeded, then it was overridden by the user. We will use it 22977 # for the tool. 22978 22979 # First remove it from the list of overridden variables, so we can test 22980 # for unknown variables in the end. 22981 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22982 22983 # Check if we try to supply an empty value 22984 if test "x$TIME" = x; then 22985 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 22986 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 22987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22988 $as_echo_n "checking for TIME... " >&6; } 22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22990 $as_echo "disabled" >&6; } 22991 else 22992 # Check if the provided tool contains a complete path. 22993 tool_specified="$TIME" 22994 tool_basename="${tool_specified##*/}" 22995 if test "x$tool_basename" = "x$tool_specified"; then 22996 # A command without a complete path is provided, search $PATH. 22997 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 22998 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 22999 # Extract the first word of "$tool_basename", so it can be a program name with args. 23000 set dummy $tool_basename; ac_word=$2 23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23002 $as_echo_n "checking for $ac_word... " >&6; } 23003 if ${ac_cv_path_TIME+:} false; then : 23004 $as_echo_n "(cached) " >&6 23005 else 23006 case $TIME in 23007 [\\/]* | ?:[\\/]*) 23008 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23009 ;; 23010 *) 23011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23012 for as_dir in $PATH 23013 do 23014 IFS=$as_save_IFS 23015 test -z "$as_dir" && as_dir=. 23016 for ac_exec_ext in '' $ac_executable_extensions; do 23017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23018 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23020 break 2 23021 fi 23022 done 23023 done 23024 IFS=$as_save_IFS 23025 23026 ;; 23027 esac 23028 fi 23029 TIME=$ac_cv_path_TIME 23030 if test -n "$TIME"; then 23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23032 $as_echo "$TIME" >&6; } 23033 else 23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23035 $as_echo "no" >&6; } 23036 fi 23037 23038 23039 if test "x$TIME" = x; then 23040 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23041 fi 23042 else 23043 # Otherwise we believe it is a complete path. Use it as it is. 23044 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 23045 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23047 $as_echo_n "checking for TIME... " >&6; } 23048 if test ! -x "$tool_specified"; then 23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23050 $as_echo "not found" >&6; } 23051 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 23052 fi 23053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23054 $as_echo "$tool_specified" >&6; } 23055 fi 23056 fi 23057 fi 23058 23059 fi 23060 23061 23062 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 23063 # be in the user path. 23064 23065 23066 # Publish this variable in the help. 23067 23068 23069 if [ -z "${DTRACE+x}" ]; then 23070 # The variable is not set by user, try to locate tool using the code snippet 23071 for ac_prog in dtrace 23072 do 23073 # Extract the first word of "$ac_prog", so it can be a program name with args. 23074 set dummy $ac_prog; ac_word=$2 23075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23076 $as_echo_n "checking for $ac_word... " >&6; } 23077 if ${ac_cv_path_DTRACE+:} false; then : 23078 $as_echo_n "(cached) " >&6 23079 else 23080 case $DTRACE in 23081 [\\/]* | ?:[\\/]*) 23082 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23083 ;; 23084 *) 23085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23086 as_dummy="$PATH:/usr/sbin" 23087 for as_dir in $as_dummy 23088 do 23089 IFS=$as_save_IFS 23090 test -z "$as_dir" && as_dir=. 23091 for ac_exec_ext in '' $ac_executable_extensions; do 23092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23093 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23095 break 2 23096 fi 23097 done 23098 done 23099 IFS=$as_save_IFS 23100 23101 ;; 23102 esac 23103 fi 23104 DTRACE=$ac_cv_path_DTRACE 23105 if test -n "$DTRACE"; then 23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23107 $as_echo "$DTRACE" >&6; } 23108 else 23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23110 $as_echo "no" >&6; } 23111 fi 23112 23113 23114 test -n "$DTRACE" && break 23115 done 23116 23117 else 23118 # The variable is set, but is it from the command line or the environment? 23119 23120 # Try to remove the string !DTRACE! from our list. 23121 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 23122 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23123 # If it failed, the variable was not from the command line. Ignore it, 23124 # but warn the user (except for BASH, which is always set by the calling BASH). 23125 if test "xDTRACE" != xBASH; then 23126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 23127 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 23128 fi 23129 # Try to locate tool using the code snippet 23130 for ac_prog in dtrace 23131 do 23132 # Extract the first word of "$ac_prog", so it can be a program name with args. 23133 set dummy $ac_prog; ac_word=$2 23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23135 $as_echo_n "checking for $ac_word... " >&6; } 23136 if ${ac_cv_path_DTRACE+:} false; then : 23137 $as_echo_n "(cached) " >&6 23138 else 23139 case $DTRACE in 23140 [\\/]* | ?:[\\/]*) 23141 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23142 ;; 23143 *) 23144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23145 as_dummy="$PATH:/usr/sbin" 23146 for as_dir in $as_dummy 23147 do 23148 IFS=$as_save_IFS 23149 test -z "$as_dir" && as_dir=. 23150 for ac_exec_ext in '' $ac_executable_extensions; do 23151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23152 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23154 break 2 23155 fi 23156 done 23157 done 23158 IFS=$as_save_IFS 23159 23160 ;; 23161 esac 23162 fi 23163 DTRACE=$ac_cv_path_DTRACE 23164 if test -n "$DTRACE"; then 23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23166 $as_echo "$DTRACE" >&6; } 23167 else 23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23169 $as_echo "no" >&6; } 23170 fi 23171 23172 23173 test -n "$DTRACE" && break 23174 done 23175 23176 else 23177 # If it succeeded, then it was overridden by the user. We will use it 23178 # for the tool. 23179 23180 # First remove it from the list of overridden variables, so we can test 23181 # for unknown variables in the end. 23182 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23183 23184 # Check if we try to supply an empty value 23185 if test "x$DTRACE" = x; then 23186 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 23187 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23189 $as_echo_n "checking for DTRACE... " >&6; } 23190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23191 $as_echo "disabled" >&6; } 23192 else 23193 # Check if the provided tool contains a complete path. 23194 tool_specified="$DTRACE" 23195 tool_basename="${tool_specified##*/}" 23196 if test "x$tool_basename" = "x$tool_specified"; then 23197 # A command without a complete path is provided, search $PATH. 23198 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 23199 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 23200 # Extract the first word of "$tool_basename", so it can be a program name with args. 23201 set dummy $tool_basename; ac_word=$2 23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23203 $as_echo_n "checking for $ac_word... " >&6; } 23204 if ${ac_cv_path_DTRACE+:} false; then : 23205 $as_echo_n "(cached) " >&6 23206 else 23207 case $DTRACE in 23208 [\\/]* | ?:[\\/]*) 23209 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23210 ;; 23211 *) 23212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23213 for as_dir in $PATH 23214 do 23215 IFS=$as_save_IFS 23216 test -z "$as_dir" && as_dir=. 23217 for ac_exec_ext in '' $ac_executable_extensions; do 23218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23219 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23221 break 2 23222 fi 23223 done 23224 done 23225 IFS=$as_save_IFS 23226 23227 ;; 23228 esac 23229 fi 23230 DTRACE=$ac_cv_path_DTRACE 23231 if test -n "$DTRACE"; then 23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23233 $as_echo "$DTRACE" >&6; } 23234 else 23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23236 $as_echo "no" >&6; } 23237 fi 23238 23239 23240 if test "x$DTRACE" = x; then 23241 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23242 fi 23243 else 23244 # Otherwise we believe it is a complete path. Use it as it is. 23245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23246 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23248 $as_echo_n "checking for DTRACE... " >&6; } 23249 if test ! -x "$tool_specified"; then 23250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23251 $as_echo "not found" >&6; } 23252 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23253 fi 23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23255 $as_echo "$tool_specified" >&6; } 23256 fi 23257 fi 23258 fi 23259 23260 fi 23261 23262 23263 23264 23265 # Publish this variable in the help. 23266 23267 23268 if [ -z "${PATCH+x}" ]; then 23269 # The variable is not set by user, try to locate tool using the code snippet 23270 for ac_prog in gpatch patch 23271 do 23272 # Extract the first word of "$ac_prog", so it can be a program name with args. 23273 set dummy $ac_prog; ac_word=$2 23274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23275 $as_echo_n "checking for $ac_word... " >&6; } 23276 if ${ac_cv_path_PATCH+:} false; then : 23277 $as_echo_n "(cached) " >&6 23278 else 23279 case $PATCH in 23280 [\\/]* | ?:[\\/]*) 23281 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23282 ;; 23283 *) 23284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23285 for as_dir in $PATH 23286 do 23287 IFS=$as_save_IFS 23288 test -z "$as_dir" && as_dir=. 23289 for ac_exec_ext in '' $ac_executable_extensions; do 23290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23291 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23293 break 2 23294 fi 23295 done 23296 done 23297 IFS=$as_save_IFS 23298 23299 ;; 23300 esac 23301 fi 23302 PATCH=$ac_cv_path_PATCH 23303 if test -n "$PATCH"; then 23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23305 $as_echo "$PATCH" >&6; } 23306 else 23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23308 $as_echo "no" >&6; } 23309 fi 23310 23311 23312 test -n "$PATCH" && break 23313 done 23314 23315 else 23316 # The variable is set, but is it from the command line or the environment? 23317 23318 # Try to remove the string !PATCH! from our list. 23319 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23320 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23321 # If it failed, the variable was not from the command line. Ignore it, 23322 # but warn the user (except for BASH, which is always set by the calling BASH). 23323 if test "xPATCH" != xBASH; then 23324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23325 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23326 fi 23327 # Try to locate tool using the code snippet 23328 for ac_prog in gpatch patch 23329 do 23330 # Extract the first word of "$ac_prog", so it can be a program name with args. 23331 set dummy $ac_prog; ac_word=$2 23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23333 $as_echo_n "checking for $ac_word... " >&6; } 23334 if ${ac_cv_path_PATCH+:} false; then : 23335 $as_echo_n "(cached) " >&6 23336 else 23337 case $PATCH in 23338 [\\/]* | ?:[\\/]*) 23339 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23340 ;; 23341 *) 23342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23343 for as_dir in $PATH 23344 do 23345 IFS=$as_save_IFS 23346 test -z "$as_dir" && as_dir=. 23347 for ac_exec_ext in '' $ac_executable_extensions; do 23348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23349 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23351 break 2 23352 fi 23353 done 23354 done 23355 IFS=$as_save_IFS 23356 23357 ;; 23358 esac 23359 fi 23360 PATCH=$ac_cv_path_PATCH 23361 if test -n "$PATCH"; then 23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23363 $as_echo "$PATCH" >&6; } 23364 else 23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23366 $as_echo "no" >&6; } 23367 fi 23368 23369 23370 test -n "$PATCH" && break 23371 done 23372 23373 else 23374 # If it succeeded, then it was overridden by the user. We will use it 23375 # for the tool. 23376 23377 # First remove it from the list of overridden variables, so we can test 23378 # for unknown variables in the end. 23379 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23380 23381 # Check if we try to supply an empty value 23382 if test "x$PATCH" = x; then 23383 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23384 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23386 $as_echo_n "checking for PATCH... " >&6; } 23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23388 $as_echo "disabled" >&6; } 23389 else 23390 # Check if the provided tool contains a complete path. 23391 tool_specified="$PATCH" 23392 tool_basename="${tool_specified##*/}" 23393 if test "x$tool_basename" = "x$tool_specified"; then 23394 # A command without a complete path is provided, search $PATH. 23395 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23396 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23397 # Extract the first word of "$tool_basename", so it can be a program name with args. 23398 set dummy $tool_basename; ac_word=$2 23399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23400 $as_echo_n "checking for $ac_word... " >&6; } 23401 if ${ac_cv_path_PATCH+:} false; then : 23402 $as_echo_n "(cached) " >&6 23403 else 23404 case $PATCH in 23405 [\\/]* | ?:[\\/]*) 23406 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23407 ;; 23408 *) 23409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23410 for as_dir in $PATH 23411 do 23412 IFS=$as_save_IFS 23413 test -z "$as_dir" && as_dir=. 23414 for ac_exec_ext in '' $ac_executable_extensions; do 23415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23416 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23418 break 2 23419 fi 23420 done 23421 done 23422 IFS=$as_save_IFS 23423 23424 ;; 23425 esac 23426 fi 23427 PATCH=$ac_cv_path_PATCH 23428 if test -n "$PATCH"; then 23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23430 $as_echo "$PATCH" >&6; } 23431 else 23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23433 $as_echo "no" >&6; } 23434 fi 23435 23436 23437 if test "x$PATCH" = x; then 23438 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23439 fi 23440 else 23441 # Otherwise we believe it is a complete path. Use it as it is. 23442 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23443 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23445 $as_echo_n "checking for PATCH... " >&6; } 23446 if test ! -x "$tool_specified"; then 23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23448 $as_echo "not found" >&6; } 23449 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23450 fi 23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23452 $as_echo "$tool_specified" >&6; } 23453 fi 23454 fi 23455 fi 23456 23457 fi 23458 23459 23460 # Check if it's GNU time 23461 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23462 if test "x$IS_GNU_TIME" != x; then 23463 IS_GNU_TIME=yes 23464 else 23465 IS_GNU_TIME=no 23466 fi 23467 23468 23469 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23470 23471 23472 23473 # Publish this variable in the help. 23474 23475 23476 if [ -z "${DSYMUTIL+x}" ]; then 23477 # The variable is not set by user, try to locate tool using the code snippet 23478 for ac_prog in dsymutil 23479 do 23480 # Extract the first word of "$ac_prog", so it can be a program name with args. 23481 set dummy $ac_prog; ac_word=$2 23482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23483 $as_echo_n "checking for $ac_word... " >&6; } 23484 if ${ac_cv_path_DSYMUTIL+:} false; then : 23485 $as_echo_n "(cached) " >&6 23486 else 23487 case $DSYMUTIL in 23488 [\\/]* | ?:[\\/]*) 23489 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23490 ;; 23491 *) 23492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23493 for as_dir in $PATH 23494 do 23495 IFS=$as_save_IFS 23496 test -z "$as_dir" && as_dir=. 23497 for ac_exec_ext in '' $ac_executable_extensions; do 23498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23499 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23501 break 2 23502 fi 23503 done 23504 done 23505 IFS=$as_save_IFS 23506 23507 ;; 23508 esac 23509 fi 23510 DSYMUTIL=$ac_cv_path_DSYMUTIL 23511 if test -n "$DSYMUTIL"; then 23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23513 $as_echo "$DSYMUTIL" >&6; } 23514 else 23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23516 $as_echo "no" >&6; } 23517 fi 23518 23519 23520 test -n "$DSYMUTIL" && break 23521 done 23522 23523 else 23524 # The variable is set, but is it from the command line or the environment? 23525 23526 # Try to remove the string !DSYMUTIL! from our list. 23527 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23528 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23529 # If it failed, the variable was not from the command line. Ignore it, 23530 # but warn the user (except for BASH, which is always set by the calling BASH). 23531 if test "xDSYMUTIL" != xBASH; then 23532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23533 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23534 fi 23535 # Try to locate tool using the code snippet 23536 for ac_prog in dsymutil 23537 do 23538 # Extract the first word of "$ac_prog", so it can be a program name with args. 23539 set dummy $ac_prog; ac_word=$2 23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23541 $as_echo_n "checking for $ac_word... " >&6; } 23542 if ${ac_cv_path_DSYMUTIL+:} false; then : 23543 $as_echo_n "(cached) " >&6 23544 else 23545 case $DSYMUTIL in 23546 [\\/]* | ?:[\\/]*) 23547 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23548 ;; 23549 *) 23550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23551 for as_dir in $PATH 23552 do 23553 IFS=$as_save_IFS 23554 test -z "$as_dir" && as_dir=. 23555 for ac_exec_ext in '' $ac_executable_extensions; do 23556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23557 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23559 break 2 23560 fi 23561 done 23562 done 23563 IFS=$as_save_IFS 23564 23565 ;; 23566 esac 23567 fi 23568 DSYMUTIL=$ac_cv_path_DSYMUTIL 23569 if test -n "$DSYMUTIL"; then 23570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23571 $as_echo "$DSYMUTIL" >&6; } 23572 else 23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23574 $as_echo "no" >&6; } 23575 fi 23576 23577 23578 test -n "$DSYMUTIL" && break 23579 done 23580 23581 else 23582 # If it succeeded, then it was overridden by the user. We will use it 23583 # for the tool. 23584 23585 # First remove it from the list of overridden variables, so we can test 23586 # for unknown variables in the end. 23587 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23588 23589 # Check if we try to supply an empty value 23590 if test "x$DSYMUTIL" = x; then 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 23592 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23594 $as_echo_n "checking for DSYMUTIL... " >&6; } 23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23596 $as_echo "disabled" >&6; } 23597 else 23598 # Check if the provided tool contains a complete path. 23599 tool_specified="$DSYMUTIL" 23600 tool_basename="${tool_specified##*/}" 23601 if test "x$tool_basename" = "x$tool_specified"; then 23602 # A command without a complete path is provided, search $PATH. 23603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 23604 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 23605 # Extract the first word of "$tool_basename", so it can be a program name with args. 23606 set dummy $tool_basename; ac_word=$2 23607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23608 $as_echo_n "checking for $ac_word... " >&6; } 23609 if ${ac_cv_path_DSYMUTIL+:} false; then : 23610 $as_echo_n "(cached) " >&6 23611 else 23612 case $DSYMUTIL in 23613 [\\/]* | ?:[\\/]*) 23614 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23615 ;; 23616 *) 23617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23618 for as_dir in $PATH 23619 do 23620 IFS=$as_save_IFS 23621 test -z "$as_dir" && as_dir=. 23622 for ac_exec_ext in '' $ac_executable_extensions; do 23623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23624 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23626 break 2 23627 fi 23628 done 23629 done 23630 IFS=$as_save_IFS 23631 23632 ;; 23633 esac 23634 fi 23635 DSYMUTIL=$ac_cv_path_DSYMUTIL 23636 if test -n "$DSYMUTIL"; then 23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23638 $as_echo "$DSYMUTIL" >&6; } 23639 else 23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23641 $as_echo "no" >&6; } 23642 fi 23643 23644 23645 if test "x$DSYMUTIL" = x; then 23646 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23647 fi 23648 else 23649 # Otherwise we believe it is a complete path. Use it as it is. 23650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 23651 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23653 $as_echo_n "checking for DSYMUTIL... " >&6; } 23654 if test ! -x "$tool_specified"; then 23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23656 $as_echo "not found" >&6; } 23657 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 23658 fi 23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23660 $as_echo "$tool_specified" >&6; } 23661 fi 23662 fi 23663 fi 23664 23665 fi 23666 23667 23668 23669 if test "x$DSYMUTIL" = x; then 23670 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 23671 fi 23672 23673 23674 23675 23676 23677 # Publish this variable in the help. 23678 23679 23680 if [ -z "${XATTR+x}" ]; then 23681 # The variable is not set by user, try to locate tool using the code snippet 23682 for ac_prog in xattr 23683 do 23684 # Extract the first word of "$ac_prog", so it can be a program name with args. 23685 set dummy $ac_prog; ac_word=$2 23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23687 $as_echo_n "checking for $ac_word... " >&6; } 23688 if ${ac_cv_path_XATTR+:} false; then : 23689 $as_echo_n "(cached) " >&6 23690 else 23691 case $XATTR in 23692 [\\/]* | ?:[\\/]*) 23693 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23694 ;; 23695 *) 23696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23697 for as_dir in $PATH 23698 do 23699 IFS=$as_save_IFS 23700 test -z "$as_dir" && as_dir=. 23701 for ac_exec_ext in '' $ac_executable_extensions; do 23702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23703 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23705 break 2 23706 fi 23707 done 23708 done 23709 IFS=$as_save_IFS 23710 23711 ;; 23712 esac 23713 fi 23714 XATTR=$ac_cv_path_XATTR 23715 if test -n "$XATTR"; then 23716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23717 $as_echo "$XATTR" >&6; } 23718 else 23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23720 $as_echo "no" >&6; } 23721 fi 23722 23723 23724 test -n "$XATTR" && break 23725 done 23726 23727 else 23728 # The variable is set, but is it from the command line or the environment? 23729 23730 # Try to remove the string !XATTR! from our list. 23731 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 23732 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23733 # If it failed, the variable was not from the command line. Ignore it, 23734 # but warn the user (except for BASH, which is always set by the calling BASH). 23735 if test "xXATTR" != xBASH; then 23736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 23737 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 23738 fi 23739 # Try to locate tool using the code snippet 23740 for ac_prog in xattr 23741 do 23742 # Extract the first word of "$ac_prog", so it can be a program name with args. 23743 set dummy $ac_prog; ac_word=$2 23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23745 $as_echo_n "checking for $ac_word... " >&6; } 23746 if ${ac_cv_path_XATTR+:} false; then : 23747 $as_echo_n "(cached) " >&6 23748 else 23749 case $XATTR in 23750 [\\/]* | ?:[\\/]*) 23751 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23752 ;; 23753 *) 23754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23755 for as_dir in $PATH 23756 do 23757 IFS=$as_save_IFS 23758 test -z "$as_dir" && as_dir=. 23759 for ac_exec_ext in '' $ac_executable_extensions; do 23760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23761 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23763 break 2 23764 fi 23765 done 23766 done 23767 IFS=$as_save_IFS 23768 23769 ;; 23770 esac 23771 fi 23772 XATTR=$ac_cv_path_XATTR 23773 if test -n "$XATTR"; then 23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23775 $as_echo "$XATTR" >&6; } 23776 else 23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23778 $as_echo "no" >&6; } 23779 fi 23780 23781 23782 test -n "$XATTR" && break 23783 done 23784 23785 else 23786 # If it succeeded, then it was overridden by the user. We will use it 23787 # for the tool. 23788 23789 # First remove it from the list of overridden variables, so we can test 23790 # for unknown variables in the end. 23791 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23792 23793 # Check if we try to supply an empty value 23794 if test "x$XATTR" = x; then 23795 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 23796 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23798 $as_echo_n "checking for XATTR... " >&6; } 23799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23800 $as_echo "disabled" >&6; } 23801 else 23802 # Check if the provided tool contains a complete path. 23803 tool_specified="$XATTR" 23804 tool_basename="${tool_specified##*/}" 23805 if test "x$tool_basename" = "x$tool_specified"; then 23806 # A command without a complete path is provided, search $PATH. 23807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 23808 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 23809 # Extract the first word of "$tool_basename", so it can be a program name with args. 23810 set dummy $tool_basename; ac_word=$2 23811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23812 $as_echo_n "checking for $ac_word... " >&6; } 23813 if ${ac_cv_path_XATTR+:} false; then : 23814 $as_echo_n "(cached) " >&6 23815 else 23816 case $XATTR in 23817 [\\/]* | ?:[\\/]*) 23818 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23819 ;; 23820 *) 23821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23822 for as_dir in $PATH 23823 do 23824 IFS=$as_save_IFS 23825 test -z "$as_dir" && as_dir=. 23826 for ac_exec_ext in '' $ac_executable_extensions; do 23827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23828 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23830 break 2 23831 fi 23832 done 23833 done 23834 IFS=$as_save_IFS 23835 23836 ;; 23837 esac 23838 fi 23839 XATTR=$ac_cv_path_XATTR 23840 if test -n "$XATTR"; then 23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23842 $as_echo "$XATTR" >&6; } 23843 else 23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23845 $as_echo "no" >&6; } 23846 fi 23847 23848 23849 if test "x$XATTR" = x; then 23850 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23851 fi 23852 else 23853 # Otherwise we believe it is a complete path. Use it as it is. 23854 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 23855 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23857 $as_echo_n "checking for XATTR... " >&6; } 23858 if test ! -x "$tool_specified"; then 23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23860 $as_echo "not found" >&6; } 23861 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 23862 fi 23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23864 $as_echo "$tool_specified" >&6; } 23865 fi 23866 fi 23867 fi 23868 23869 fi 23870 23871 23872 23873 if test "x$XATTR" = x; then 23874 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 23875 fi 23876 23877 23878 23879 23880 # Publish this variable in the help. 23881 23882 23883 if [ -z "${CODESIGN+x}" ]; then 23884 # The variable is not set by user, try to locate tool using the code snippet 23885 for ac_prog in codesign 23886 do 23887 # Extract the first word of "$ac_prog", so it can be a program name with args. 23888 set dummy $ac_prog; ac_word=$2 23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23890 $as_echo_n "checking for $ac_word... " >&6; } 23891 if ${ac_cv_path_CODESIGN+:} false; then : 23892 $as_echo_n "(cached) " >&6 23893 else 23894 case $CODESIGN in 23895 [\\/]* | ?:[\\/]*) 23896 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23897 ;; 23898 *) 23899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23900 for as_dir in $PATH 23901 do 23902 IFS=$as_save_IFS 23903 test -z "$as_dir" && as_dir=. 23904 for ac_exec_ext in '' $ac_executable_extensions; do 23905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23906 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23908 break 2 23909 fi 23910 done 23911 done 23912 IFS=$as_save_IFS 23913 23914 ;; 23915 esac 23916 fi 23917 CODESIGN=$ac_cv_path_CODESIGN 23918 if test -n "$CODESIGN"; then 23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23920 $as_echo "$CODESIGN" >&6; } 23921 else 23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23923 $as_echo "no" >&6; } 23924 fi 23925 23926 23927 test -n "$CODESIGN" && break 23928 done 23929 23930 else 23931 # The variable is set, but is it from the command line or the environment? 23932 23933 # Try to remove the string !CODESIGN! from our list. 23934 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 23935 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23936 # If it failed, the variable was not from the command line. Ignore it, 23937 # but warn the user (except for BASH, which is always set by the calling BASH). 23938 if test "xCODESIGN" != xBASH; then 23939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 23940 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 23941 fi 23942 # Try to locate tool using the code snippet 23943 for ac_prog in codesign 23944 do 23945 # Extract the first word of "$ac_prog", so it can be a program name with args. 23946 set dummy $ac_prog; ac_word=$2 23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23948 $as_echo_n "checking for $ac_word... " >&6; } 23949 if ${ac_cv_path_CODESIGN+:} false; then : 23950 $as_echo_n "(cached) " >&6 23951 else 23952 case $CODESIGN in 23953 [\\/]* | ?:[\\/]*) 23954 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23955 ;; 23956 *) 23957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23958 for as_dir in $PATH 23959 do 23960 IFS=$as_save_IFS 23961 test -z "$as_dir" && as_dir=. 23962 for ac_exec_ext in '' $ac_executable_extensions; do 23963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23964 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23966 break 2 23967 fi 23968 done 23969 done 23970 IFS=$as_save_IFS 23971 23972 ;; 23973 esac 23974 fi 23975 CODESIGN=$ac_cv_path_CODESIGN 23976 if test -n "$CODESIGN"; then 23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23978 $as_echo "$CODESIGN" >&6; } 23979 else 23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23981 $as_echo "no" >&6; } 23982 fi 23983 23984 23985 test -n "$CODESIGN" && break 23986 done 23987 23988 else 23989 # If it succeeded, then it was overridden by the user. We will use it 23990 # for the tool. 23991 23992 # First remove it from the list of overridden variables, so we can test 23993 # for unknown variables in the end. 23994 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23995 23996 # Check if we try to supply an empty value 23997 if test "x$CODESIGN" = x; then 23998 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 23999 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24001 $as_echo_n "checking for CODESIGN... " >&6; } 24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24003 $as_echo "disabled" >&6; } 24004 else 24005 # Check if the provided tool contains a complete path. 24006 tool_specified="$CODESIGN" 24007 tool_basename="${tool_specified##*/}" 24008 if test "x$tool_basename" = "x$tool_specified"; then 24009 # A command without a complete path is provided, search $PATH. 24010 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 24011 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 24012 # Extract the first word of "$tool_basename", so it can be a program name with args. 24013 set dummy $tool_basename; ac_word=$2 24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24015 $as_echo_n "checking for $ac_word... " >&6; } 24016 if ${ac_cv_path_CODESIGN+:} false; then : 24017 $as_echo_n "(cached) " >&6 24018 else 24019 case $CODESIGN in 24020 [\\/]* | ?:[\\/]*) 24021 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24022 ;; 24023 *) 24024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24025 for as_dir in $PATH 24026 do 24027 IFS=$as_save_IFS 24028 test -z "$as_dir" && as_dir=. 24029 for ac_exec_ext in '' $ac_executable_extensions; do 24030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24031 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24033 break 2 24034 fi 24035 done 24036 done 24037 IFS=$as_save_IFS 24038 24039 ;; 24040 esac 24041 fi 24042 CODESIGN=$ac_cv_path_CODESIGN 24043 if test -n "$CODESIGN"; then 24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24045 $as_echo "$CODESIGN" >&6; } 24046 else 24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24048 $as_echo "no" >&6; } 24049 fi 24050 24051 24052 if test "x$CODESIGN" = x; then 24053 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24054 fi 24055 else 24056 # Otherwise we believe it is a complete path. Use it as it is. 24057 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 24058 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24060 $as_echo_n "checking for CODESIGN... " >&6; } 24061 if test ! -x "$tool_specified"; then 24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24063 $as_echo "not found" >&6; } 24064 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 24065 fi 24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24067 $as_echo "$tool_specified" >&6; } 24068 fi 24069 fi 24070 fi 24071 24072 fi 24073 24074 24075 if test "x$CODESIGN" != "x"; then 24076 # Verify that the openjdk_codesign certificate is present 24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 24078 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 24079 $RM codesign-testfile 24080 $TOUCH codesign-testfile 24081 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 24082 $RM codesign-testfile 24083 if test "x$CODESIGN" = x; then 24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24085 $as_echo "no" >&6; } 24086 else 24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24088 $as_echo "yes" >&6; } 24089 fi 24090 fi 24091 24092 24093 24094 # Publish this variable in the help. 24095 24096 24097 if [ -z "${SETFILE+x}" ]; then 24098 # The variable is not set by user, try to locate tool using the code snippet 24099 for ac_prog in SetFile 24100 do 24101 # Extract the first word of "$ac_prog", so it can be a program name with args. 24102 set dummy $ac_prog; ac_word=$2 24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24104 $as_echo_n "checking for $ac_word... " >&6; } 24105 if ${ac_cv_path_SETFILE+:} false; then : 24106 $as_echo_n "(cached) " >&6 24107 else 24108 case $SETFILE in 24109 [\\/]* | ?:[\\/]*) 24110 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24111 ;; 24112 *) 24113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24114 for as_dir in $PATH 24115 do 24116 IFS=$as_save_IFS 24117 test -z "$as_dir" && as_dir=. 24118 for ac_exec_ext in '' $ac_executable_extensions; do 24119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24120 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24122 break 2 24123 fi 24124 done 24125 done 24126 IFS=$as_save_IFS 24127 24128 ;; 24129 esac 24130 fi 24131 SETFILE=$ac_cv_path_SETFILE 24132 if test -n "$SETFILE"; then 24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24134 $as_echo "$SETFILE" >&6; } 24135 else 24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24137 $as_echo "no" >&6; } 24138 fi 24139 24140 24141 test -n "$SETFILE" && break 24142 done 24143 24144 else 24145 # The variable is set, but is it from the command line or the environment? 24146 24147 # Try to remove the string !SETFILE! from our list. 24148 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 24149 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24150 # If it failed, the variable was not from the command line. Ignore it, 24151 # but warn the user (except for BASH, which is always set by the calling BASH). 24152 if test "xSETFILE" != xBASH; then 24153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 24154 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 24155 fi 24156 # Try to locate tool using the code snippet 24157 for ac_prog in SetFile 24158 do 24159 # Extract the first word of "$ac_prog", so it can be a program name with args. 24160 set dummy $ac_prog; ac_word=$2 24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24162 $as_echo_n "checking for $ac_word... " >&6; } 24163 if ${ac_cv_path_SETFILE+:} false; then : 24164 $as_echo_n "(cached) " >&6 24165 else 24166 case $SETFILE in 24167 [\\/]* | ?:[\\/]*) 24168 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24169 ;; 24170 *) 24171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24172 for as_dir in $PATH 24173 do 24174 IFS=$as_save_IFS 24175 test -z "$as_dir" && as_dir=. 24176 for ac_exec_ext in '' $ac_executable_extensions; do 24177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24178 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24180 break 2 24181 fi 24182 done 24183 done 24184 IFS=$as_save_IFS 24185 24186 ;; 24187 esac 24188 fi 24189 SETFILE=$ac_cv_path_SETFILE 24190 if test -n "$SETFILE"; then 24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24192 $as_echo "$SETFILE" >&6; } 24193 else 24194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24195 $as_echo "no" >&6; } 24196 fi 24197 24198 24199 test -n "$SETFILE" && break 24200 done 24201 24202 else 24203 # If it succeeded, then it was overridden by the user. We will use it 24204 # for the tool. 24205 24206 # First remove it from the list of overridden variables, so we can test 24207 # for unknown variables in the end. 24208 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24209 24210 # Check if we try to supply an empty value 24211 if test "x$SETFILE" = x; then 24212 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 24213 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 24214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24215 $as_echo_n "checking for SETFILE... " >&6; } 24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24217 $as_echo "disabled" >&6; } 24218 else 24219 # Check if the provided tool contains a complete path. 24220 tool_specified="$SETFILE" 24221 tool_basename="${tool_specified##*/}" 24222 if test "x$tool_basename" = "x$tool_specified"; then 24223 # A command without a complete path is provided, search $PATH. 24224 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 24225 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 24226 # Extract the first word of "$tool_basename", so it can be a program name with args. 24227 set dummy $tool_basename; ac_word=$2 24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24229 $as_echo_n "checking for $ac_word... " >&6; } 24230 if ${ac_cv_path_SETFILE+:} false; then : 24231 $as_echo_n "(cached) " >&6 24232 else 24233 case $SETFILE in 24234 [\\/]* | ?:[\\/]*) 24235 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24236 ;; 24237 *) 24238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24239 for as_dir in $PATH 24240 do 24241 IFS=$as_save_IFS 24242 test -z "$as_dir" && as_dir=. 24243 for ac_exec_ext in '' $ac_executable_extensions; do 24244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24245 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24247 break 2 24248 fi 24249 done 24250 done 24251 IFS=$as_save_IFS 24252 24253 ;; 24254 esac 24255 fi 24256 SETFILE=$ac_cv_path_SETFILE 24257 if test -n "$SETFILE"; then 24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24259 $as_echo "$SETFILE" >&6; } 24260 else 24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24262 $as_echo "no" >&6; } 24263 fi 24264 24265 24266 if test "x$SETFILE" = x; then 24267 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24268 fi 24269 else 24270 # Otherwise we believe it is a complete path. Use it as it is. 24271 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24272 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24274 $as_echo_n "checking for SETFILE... " >&6; } 24275 if test ! -x "$tool_specified"; then 24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24277 $as_echo "not found" >&6; } 24278 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24279 fi 24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24281 $as_echo "$tool_specified" >&6; } 24282 fi 24283 fi 24284 fi 24285 24286 fi 24287 24288 24289 24290 if test "x$SETFILE" = x; then 24291 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24292 fi 24293 24294 24295 fi 24296 24297 24298 # Check bash version 24299 # Extra [ ] to stop m4 mangling 24300 BASH_VER=`$BASH --version | $SED -n -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'` 24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5 24302 $as_echo_n "checking bash version... " >&6; } 24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5 24304 $as_echo "$BASH_VER" >&6; } 24305 24306 BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1` 24307 BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2` 24308 if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then 24309 as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5 24310 fi 24311 24312 # Test if bash supports pipefail. 24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24314 $as_echo_n "checking if bash supports pipefail... " >&6; } 24315 if ${BASH} -c 'set -o pipefail'; then 24316 BASH_ARGS="$BASH_ARGS -o pipefail" 24317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24318 $as_echo "yes" >&6; } 24319 else 24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24321 $as_echo "no" >&6; } 24322 fi 24323 24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24325 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24326 if ${BASH} -e -c 'true'; then 24327 BASH_ARGS="$BASH_ARGS -e" 24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24329 $as_echo "yes" >&6; } 24330 else 24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24332 $as_echo "no" >&6; } 24333 fi 24334 24335 24336 24337 24338 # Check if pkg-config is available. 24339 24340 24341 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24342 if test -n "$ac_tool_prefix"; then 24343 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24344 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24346 $as_echo_n "checking for $ac_word... " >&6; } 24347 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24348 $as_echo_n "(cached) " >&6 24349 else 24350 case $PKG_CONFIG in 24351 [\\/]* | ?:[\\/]*) 24352 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24353 ;; 24354 *) 24355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24356 for as_dir in $PATH 24357 do 24358 IFS=$as_save_IFS 24359 test -z "$as_dir" && as_dir=. 24360 for ac_exec_ext in '' $ac_executable_extensions; do 24361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24362 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24364 break 2 24365 fi 24366 done 24367 done 24368 IFS=$as_save_IFS 24369 24370 ;; 24371 esac 24372 fi 24373 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24374 if test -n "$PKG_CONFIG"; then 24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24376 $as_echo "$PKG_CONFIG" >&6; } 24377 else 24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24379 $as_echo "no" >&6; } 24380 fi 24381 24382 24383 fi 24384 if test -z "$ac_cv_path_PKG_CONFIG"; then 24385 ac_pt_PKG_CONFIG=$PKG_CONFIG 24386 # Extract the first word of "pkg-config", so it can be a program name with args. 24387 set dummy pkg-config; ac_word=$2 24388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24389 $as_echo_n "checking for $ac_word... " >&6; } 24390 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24391 $as_echo_n "(cached) " >&6 24392 else 24393 case $ac_pt_PKG_CONFIG in 24394 [\\/]* | ?:[\\/]*) 24395 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24396 ;; 24397 *) 24398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24399 for as_dir in $PATH 24400 do 24401 IFS=$as_save_IFS 24402 test -z "$as_dir" && as_dir=. 24403 for ac_exec_ext in '' $ac_executable_extensions; do 24404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24405 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24407 break 2 24408 fi 24409 done 24410 done 24411 IFS=$as_save_IFS 24412 24413 ;; 24414 esac 24415 fi 24416 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24417 if test -n "$ac_pt_PKG_CONFIG"; then 24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24419 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24420 else 24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24422 $as_echo "no" >&6; } 24423 fi 24424 24425 if test "x$ac_pt_PKG_CONFIG" = x; then 24426 PKG_CONFIG="" 24427 else 24428 case $cross_compiling:$ac_tool_warned in 24429 yes:) 24430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24432 ac_tool_warned=yes ;; 24433 esac 24434 PKG_CONFIG=$ac_pt_PKG_CONFIG 24435 fi 24436 else 24437 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24438 fi 24439 24440 fi 24441 if test -n "$PKG_CONFIG"; then 24442 _pkg_min_version=0.9.0 24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24444 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24445 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24447 $as_echo "yes" >&6; } 24448 else 24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24450 $as_echo "no" >&6; } 24451 PKG_CONFIG="" 24452 fi 24453 24454 fi 24455 24456 # After basic tools have been setup, we can check build os specific details. 24457 24458 ############################################################################### 24459 24460 # Note that this is the build platform OS version! 24461 24462 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24463 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24464 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24465 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24466 24467 24468 24469 24470 24471 # Misc basic settings 24472 24473 24474 # Check whether --with-default-make-target was given. 24475 if test "${with_default_make_target+set}" = set; then : 24476 withval=$with_default_make_target; 24477 fi 24478 24479 if test "x$with_default_make_target" = "x" \ 24480 || test "x$with_default_make_target" = "xyes"; then 24481 DEFAULT_MAKE_TARGET="exploded-image" 24482 elif test "x$with_default_make_target" = "xno"; then 24483 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24484 else 24485 DEFAULT_MAKE_TARGET="$with_default_make_target" 24486 fi 24487 24488 24489 24490 24491 ############################################################################### 24492 # 24493 # Determine OpenJDK variants, options and version numbers. 24494 # 24495 ############################################################################### 24496 24497 # We need build & target for this. 24498 24499 # Should we build a JDK without a graphical UI? 24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 24501 $as_echo_n "checking headless only... " >&6; } 24502 # Check whether --enable-headless-only was given. 24503 if test "${enable_headless_only+set}" = set; then : 24504 enableval=$enable_headless_only; 24505 fi 24506 24507 24508 if test "x$enable_headless_only" = "xyes"; then 24509 ENABLE_HEADLESS_ONLY="true" 24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24511 $as_echo "yes" >&6; } 24512 elif test "x$enable_headless_only" = "xno"; then 24513 ENABLE_HEADLESS_ONLY="false" 24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24515 $as_echo "no" >&6; } 24516 elif test "x$enable_headless_only" = "x"; then 24517 ENABLE_HEADLESS_ONLY="false" 24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24519 $as_echo "no" >&6; } 24520 else 24521 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 24522 fi 24523 24524 24525 24526 # Choose cacerts source file 24527 24528 # Check whether --with-cacerts-file was given. 24529 if test "${with_cacerts_file+set}" = set; then : 24530 withval=$with_cacerts_file; 24531 fi 24532 24533 if test "x$with_cacerts_file" != x; then 24534 CACERTS_FILE=$with_cacerts_file 24535 fi 24536 24537 24538 # Enable or disable unlimited crypto 24539 # Check whether --enable-unlimited-crypto was given. 24540 if test "${enable_unlimited_crypto+set}" = set; then : 24541 enableval=$enable_unlimited_crypto; 24542 else 24543 enable_unlimited_crypto=yes 24544 fi 24545 24546 if test "x$enable_unlimited_crypto" = "xyes"; then 24547 UNLIMITED_CRYPTO=true 24548 else 24549 UNLIMITED_CRYPTO=false 24550 fi 24551 24552 24553 # Should we build the serviceability agent (SA)? 24554 INCLUDE_SA=true 24555 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 24556 INCLUDE_SA=false 24557 fi 24558 if test "x$OPENJDK_TARGET_OS" = xaix ; then 24559 INCLUDE_SA=false 24560 fi 24561 24562 24563 # Compress jars 24564 COMPRESS_JARS=false 24565 24566 24567 24568 # Setup default copyright year. Mostly overridden when building close to a new year. 24569 24570 # Check whether --with-copyright-year was given. 24571 if test "${with_copyright_year+set}" = set; then : 24572 withval=$with_copyright_year; 24573 fi 24574 24575 if test "x$with_copyright_year" = xyes; then 24576 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 24577 elif test "x$with_copyright_year" != x; then 24578 COPYRIGHT_YEAR="$with_copyright_year" 24579 else 24580 COPYRIGHT_YEAR=`$DATE +'%Y'` 24581 fi 24582 24583 24584 24585 # Check whether --enable-keep-packaged-modules was given. 24586 if test "${enable_keep_packaged_modules+set}" = set; then : 24587 enableval=$enable_keep_packaged_modules; 24588 fi 24589 24590 24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24592 $as_echo_n "checking if packaged modules are kept... " >&6; } 24593 if test "x$enable_keep_packaged_modules" = "xyes"; then 24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24595 $as_echo "yes" >&6; } 24596 JLINK_KEEP_PACKAGED_MODULES=true 24597 elif test "x$enable_keep_packaged_modules" = "xno"; then 24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24599 $as_echo "no" >&6; } 24600 JLINK_KEEP_PACKAGED_MODULES=false 24601 elif test "x$enable_keep_packaged_modules" = "x"; then 24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 24603 $as_echo "yes (default)" >&6; } 24604 JLINK_KEEP_PACKAGED_MODULES=true 24605 else 24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 24607 $as_echo "error" >&6; } 24608 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 24609 fi 24610 24611 24612 24613 24614 # Warn user that old version arguments are deprecated. 24615 24616 24617 # Check whether --with-milestone was given. 24618 if test "${with_milestone+set}" = set; then : 24619 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 24620 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 24621 fi 24622 24623 24624 24625 24626 # Check whether --with-update-version was given. 24627 if test "${with_update_version+set}" = set; then : 24628 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 24629 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 24630 fi 24631 24632 24633 24634 24635 # Check whether --with-user-release-suffix was given. 24636 if test "${with_user_release_suffix+set}" = set; then : 24637 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 24638 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 24639 fi 24640 24641 24642 24643 24644 # Check whether --with-build-number was given. 24645 if test "${with_build_number+set}" = set; then : 24646 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 24647 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 24648 fi 24649 24650 24651 24652 # Source the version numbers file 24653 . $AUTOCONF_DIR/version-numbers 24654 24655 # Some non-version number information is set in that file 24656 24657 24658 24659 24660 24661 24662 24663 24664 24665 # Override version from arguments 24666 24667 # If --with-version-string is set, process it first. It is possible to 24668 # override parts with more specific flags, since these are processed later. 24669 24670 # Check whether --with-version-string was given. 24671 if test "${with_version_string+set}" = set; then : 24672 withval=$with_version_string; 24673 fi 24674 24675 if test "x$with_version_string" = xyes; then 24676 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 24677 elif test "x$with_version_string" != x; then 24678 # Additional [] needed to keep m4 from mangling shell constructs. 24679 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 24680 VERSION_MAJOR=${BASH_REMATCH[1]} 24681 VERSION_MINOR=${BASH_REMATCH[3]} 24682 VERSION_SECURITY=${BASH_REMATCH[5]} 24683 VERSION_PATCH=${BASH_REMATCH[7]} 24684 VERSION_PRE=${BASH_REMATCH[9]} 24685 version_plus_separator=${BASH_REMATCH[11]} 24686 VERSION_BUILD=${BASH_REMATCH[12]} 24687 VERSION_OPT=${BASH_REMATCH[14]} 24688 # Unspecified numerical fields are interpreted as 0. 24689 if test "x$VERSION_MINOR" = x; then 24690 VERSION_MINOR=0 24691 fi 24692 if test "x$VERSION_SECURITY" = x; then 24693 VERSION_SECURITY=0 24694 fi 24695 if test "x$VERSION_PATCH" = x; then 24696 VERSION_PATCH=0 24697 fi 24698 if test "x$version_plus_separator" != x \ 24699 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 24700 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 24701 fi 24702 # Stop the version part process from setting default values. 24703 # We still allow them to explicitly override though. 24704 NO_DEFAULT_VERSION_PARTS=true 24705 else 24706 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 24707 fi 24708 fi 24709 24710 24711 # Check whether --with-version-pre was given. 24712 if test "${with_version_pre+set}" = set; then : 24713 withval=$with_version_pre; with_version_pre_present=true 24714 else 24715 with_version_pre_present=false 24716 fi 24717 24718 24719 if test "x$with_version_pre_present" = xtrue; then 24720 if test "x$with_version_pre" = xyes; then 24721 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 24722 elif test "x$with_version_pre" = xno; then 24723 # Interpret --without-* as empty string instead of the literal "no" 24724 VERSION_PRE= 24725 else 24726 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 24727 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 24728 if test "x$VERSION_PRE" != "x$with_version_pre"; then 24729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 24730 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 24731 fi 24732 fi 24733 else 24734 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24735 # Default is to use "internal" as pre 24736 VERSION_PRE="internal" 24737 fi 24738 fi 24739 24740 24741 # Check whether --with-version-opt was given. 24742 if test "${with_version_opt+set}" = set; then : 24743 withval=$with_version_opt; with_version_opt_present=true 24744 else 24745 with_version_opt_present=false 24746 fi 24747 24748 24749 if test "x$with_version_opt_present" = xtrue; then 24750 if test "x$with_version_opt" = xyes; then 24751 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 24752 elif test "x$with_version_opt" = xno; then 24753 # Interpret --without-* as empty string instead of the literal "no" 24754 VERSION_OPT= 24755 else 24756 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 24757 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 24758 if test "x$VERSION_OPT" != "x$with_version_opt"; then 24759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 24760 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 24761 fi 24762 fi 24763 else 24764 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24765 # Default is to calculate a string like this 'adhoc.<username>.<base dir name>' 24766 # Outer [ ] to quote m4. 24767 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 24768 VERSION_OPT="adhoc.$USERNAME.$basedirname" 24769 fi 24770 fi 24771 24772 24773 # Check whether --with-version-build was given. 24774 if test "${with_version_build+set}" = set; then : 24775 withval=$with_version_build; with_version_build_present=true 24776 else 24777 with_version_build_present=false 24778 fi 24779 24780 24781 if test "x$with_version_build_present" = xtrue; then 24782 if test "x$with_version_build" = xyes; then 24783 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 24784 elif test "x$with_version_build" = xno; then 24785 # Interpret --without-* as empty string instead of the literal "no" 24786 VERSION_BUILD= 24787 elif test "x$with_version_build" = x; then 24788 VERSION_BUILD= 24789 else 24790 24791 # Additional [] needed to keep m4 from mangling shell constructs. 24792 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24793 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 24794 fi 24795 # Extract the version number without leading zeros. 24796 cleaned_value=${BASH_REMATCH[1]} 24797 if test "x$cleaned_value" = x; then 24798 # Special case for zero 24799 cleaned_value=${BASH_REMATCH[2]} 24800 fi 24801 24802 if test $cleaned_value -gt 255; then 24803 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 24804 fi 24805 if test "x$cleaned_value" != "x$with_version_build"; then 24806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 24807 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 24808 fi 24809 VERSION_BUILD=$cleaned_value 24810 24811 fi 24812 else 24813 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24814 # Default is to not have a build number. 24815 VERSION_BUILD="" 24816 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 24817 VERSION_BUILD=0 24818 fi 24819 fi 24820 24821 24822 # Check whether --with-version-major was given. 24823 if test "${with_version_major+set}" = set; then : 24824 withval=$with_version_major; with_version_major_present=true 24825 else 24826 with_version_major_present=false 24827 fi 24828 24829 24830 if test "x$with_version_major_present" = xtrue; then 24831 if test "x$with_version_major" = xyes; then 24832 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 24833 else 24834 24835 # Additional [] needed to keep m4 from mangling shell constructs. 24836 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24837 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 24838 fi 24839 # Extract the version number without leading zeros. 24840 cleaned_value=${BASH_REMATCH[1]} 24841 if test "x$cleaned_value" = x; then 24842 # Special case for zero 24843 cleaned_value=${BASH_REMATCH[2]} 24844 fi 24845 24846 if test $cleaned_value -gt 255; then 24847 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 24848 fi 24849 if test "x$cleaned_value" != "x$with_version_major"; then 24850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 24851 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 24852 fi 24853 VERSION_MAJOR=$cleaned_value 24854 24855 fi 24856 else 24857 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24858 # Default is to get value from version-numbers 24859 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 24860 fi 24861 fi 24862 24863 24864 # Check whether --with-version-minor was given. 24865 if test "${with_version_minor+set}" = set; then : 24866 withval=$with_version_minor; with_version_minor_present=true 24867 else 24868 with_version_minor_present=false 24869 fi 24870 24871 24872 if test "x$with_version_minor_present" = xtrue; then 24873 if test "x$with_version_minor" = xyes; then 24874 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 24875 elif test "x$with_version_minor" = xno; then 24876 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24877 VERSION_MINOR=0 24878 elif test "x$with_version_minor" = x; then 24879 VERSION_MINOR=0 24880 else 24881 24882 # Additional [] needed to keep m4 from mangling shell constructs. 24883 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24884 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 24885 fi 24886 # Extract the version number without leading zeros. 24887 cleaned_value=${BASH_REMATCH[1]} 24888 if test "x$cleaned_value" = x; then 24889 # Special case for zero 24890 cleaned_value=${BASH_REMATCH[2]} 24891 fi 24892 24893 if test $cleaned_value -gt 255; then 24894 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 24895 fi 24896 if test "x$cleaned_value" != "x$with_version_minor"; then 24897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 24898 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 24899 fi 24900 VERSION_MINOR=$cleaned_value 24901 24902 fi 24903 else 24904 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24905 # Default is 0, if unspecified 24906 VERSION_MINOR=$DEFAULT_VERSION_MINOR 24907 fi 24908 fi 24909 24910 24911 # Check whether --with-version-security was given. 24912 if test "${with_version_security+set}" = set; then : 24913 withval=$with_version_security; with_version_security_present=true 24914 else 24915 with_version_security_present=false 24916 fi 24917 24918 24919 if test "x$with_version_security_present" = xtrue; then 24920 if test "x$with_version_security" = xyes; then 24921 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 24922 elif test "x$with_version_security" = xno; then 24923 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24924 VERSION_SECURITY=0 24925 elif test "x$with_version_security" = x; then 24926 VERSION_SECURITY=0 24927 else 24928 24929 # Additional [] needed to keep m4 from mangling shell constructs. 24930 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24931 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 24932 fi 24933 # Extract the version number without leading zeros. 24934 cleaned_value=${BASH_REMATCH[1]} 24935 if test "x$cleaned_value" = x; then 24936 # Special case for zero 24937 cleaned_value=${BASH_REMATCH[2]} 24938 fi 24939 24940 if test $cleaned_value -gt 255; then 24941 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 24942 fi 24943 if test "x$cleaned_value" != "x$with_version_security"; then 24944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 24945 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 24946 fi 24947 VERSION_SECURITY=$cleaned_value 24948 24949 fi 24950 else 24951 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24952 # Default is 0, if unspecified 24953 VERSION_SECURITY=$DEFAULT_VERSION_SECURITY 24954 fi 24955 fi 24956 24957 24958 # Check whether --with-version-patch was given. 24959 if test "${with_version_patch+set}" = set; then : 24960 withval=$with_version_patch; with_version_patch_present=true 24961 else 24962 with_version_patch_present=false 24963 fi 24964 24965 24966 if test "x$with_version_patch_present" = xtrue; then 24967 if test "x$with_version_patch" = xyes; then 24968 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 24969 elif test "x$with_version_patch" = xno; then 24970 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24971 VERSION_PATCH=0 24972 elif test "x$with_version_patch" = x; then 24973 VERSION_PATCH=0 24974 else 24975 24976 # Additional [] needed to keep m4 from mangling shell constructs. 24977 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24978 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 24979 fi 24980 # Extract the version number without leading zeros. 24981 cleaned_value=${BASH_REMATCH[1]} 24982 if test "x$cleaned_value" = x; then 24983 # Special case for zero 24984 cleaned_value=${BASH_REMATCH[2]} 24985 fi 24986 24987 if test $cleaned_value -gt 255; then 24988 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 24989 fi 24990 if test "x$cleaned_value" != "x$with_version_patch"; then 24991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 24992 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 24993 fi 24994 VERSION_PATCH=$cleaned_value 24995 24996 fi 24997 else 24998 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24999 # Default is 0, if unspecified 25000 VERSION_PATCH=$DEFAULT_VERSION_PATCH 25001 fi 25002 fi 25003 25004 # Calculate derived version properties 25005 25006 # Set VERSION_IS_GA based on if VERSION_PRE has a value 25007 if test "x$VERSION_PRE" = x; then 25008 VERSION_IS_GA=true 25009 else 25010 VERSION_IS_GA=false 25011 fi 25012 25013 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 25014 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 25015 25016 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 25017 # Strip trailing zeroes from stripped_version_number 25018 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 25019 VERSION_NUMBER=$stripped_version_number 25020 25021 # The complete version string, with additional build information 25022 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 25023 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25024 else 25025 # If either build or opt is set, we need a + separator 25026 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 25027 fi 25028 25029 # The short version string, just VERSION_NUMBER and PRE, if present. 25030 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25031 25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 25033 $as_echo_n "checking for version string... " >&6; } 25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 25035 $as_echo "$VERSION_STRING" >&6; } 25036 25037 25038 25039 25040 25041 25042 25043 25044 25045 25046 25047 25048 25049 25050 25051 ############################################################################### 25052 # 25053 # Setup BootJDK, used to bootstrap the build. 25054 # 25055 ############################################################################### 25056 25057 25058 BOOT_JDK_FOUND=no 25059 25060 # Check whether --with-boot-jdk was given. 25061 if test "${with_boot_jdk+set}" = set; then : 25062 withval=$with_boot_jdk; 25063 fi 25064 25065 25066 # We look for the Boot JDK through various means, going from more certain to 25067 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 25068 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 25069 # must check if this is indeed valid; otherwise we'll continue looking. 25070 25071 # Test: Is bootjdk explicitly set by command line arguments? 25072 25073 if test "x$BOOT_JDK_FOUND" = xno; then 25074 # Now execute the test 25075 25076 if test "x$with_boot_jdk" != x; then 25077 BOOT_JDK=$with_boot_jdk 25078 BOOT_JDK_FOUND=maybe 25079 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 25080 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 25081 fi 25082 25083 25084 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25085 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25086 # Do we have a bin/java? 25087 if test ! -x "$BOOT_JDK/bin/java"; then 25088 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25089 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25090 BOOT_JDK_FOUND=no 25091 else 25092 # Do we have a bin/javac? 25093 if test ! -x "$BOOT_JDK/bin/javac"; then 25094 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25095 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25096 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25097 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25098 BOOT_JDK_FOUND=no 25099 else 25100 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25101 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25102 25103 # Extra M4 quote needed to protect [] in grep expression. 25104 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25105 if test "x$FOUND_CORRECT_VERSION" = x; then 25106 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25107 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25108 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25109 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25110 BOOT_JDK_FOUND=no 25111 else 25112 # We're done! :-) 25113 BOOT_JDK_FOUND=yes 25114 25115 # Only process if variable expands to non-empty 25116 25117 if test "x$BOOT_JDK" != x; then 25118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25119 25120 # Input might be given as Windows format, start by converting to 25121 # unix format. 25122 path="$BOOT_JDK" 25123 new_path=`$CYGPATH -u "$path"` 25124 25125 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25126 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25127 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25128 # "foo.exe" is OK but "foo" is an error. 25129 # 25130 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25131 # It is also a way to make sure we got the proper file name for the real test later on. 25132 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25133 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25137 fi 25138 25139 # Call helper function which possibly converts this using DOS-style short mode. 25140 # If so, the updated path is stored in $new_path. 25141 25142 input_path="$new_path" 25143 # Check if we need to convert this using DOS-style short mode. If the path 25144 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25145 # take no chances and rewrite it. 25146 # Note: m4 eats our [], so we need to use [ and ] instead. 25147 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25148 if test "x$has_forbidden_chars" != x; then 25149 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25150 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25151 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25152 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25153 # Going to short mode and back again did indeed matter. Since short mode is 25154 # case insensitive, let's make it lowercase to improve readability. 25155 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25156 # Now convert it back to Unix-style (cygpath) 25157 input_path=`$CYGPATH -u "$shortmode_path"` 25158 new_path="$input_path" 25159 fi 25160 fi 25161 25162 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25163 if test "x$test_cygdrive_prefix" = x; then 25164 # As a simple fix, exclude /usr/bin since it's not a real path. 25165 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25166 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25167 # a path prefixed by /cygdrive for fixpath to work. 25168 new_path="$CYGWIN_ROOT_PATH$input_path" 25169 fi 25170 fi 25171 25172 25173 if test "x$path" != "x$new_path"; then 25174 BOOT_JDK="$new_path" 25175 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25176 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25177 fi 25178 25179 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25180 25181 path="$BOOT_JDK" 25182 has_colon=`$ECHO $path | $GREP ^.:` 25183 new_path="$path" 25184 if test "x$has_colon" = x; then 25185 # Not in mixed or Windows style, start by that. 25186 new_path=`cmd //c echo $path` 25187 fi 25188 25189 25190 input_path="$new_path" 25191 # Check if we need to convert this using DOS-style short mode. If the path 25192 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25193 # take no chances and rewrite it. 25194 # Note: m4 eats our [], so we need to use [ and ] instead. 25195 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25196 if test "x$has_forbidden_chars" != x; then 25197 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25198 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25199 fi 25200 25201 25202 windows_path="$new_path" 25203 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25204 unix_path=`$CYGPATH -u "$windows_path"` 25205 new_path="$unix_path" 25206 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25207 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25208 new_path="$unix_path" 25209 fi 25210 25211 if test "x$path" != "x$new_path"; then 25212 BOOT_JDK="$new_path" 25213 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25214 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25215 fi 25216 25217 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25218 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25219 25220 else 25221 # We're on a unix platform. Hooray! :) 25222 path="$BOOT_JDK" 25223 has_space=`$ECHO "$path" | $GREP " "` 25224 if test "x$has_space" != x; then 25225 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25226 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25227 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25228 fi 25229 25230 # Use eval to expand a potential ~ 25231 eval path="$path" 25232 if test ! -f "$path" && test ! -d "$path"; then 25233 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25234 fi 25235 25236 if test -d "$path"; then 25237 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25238 else 25239 dir="`$DIRNAME "$path"`" 25240 base="`$BASENAME "$path"`" 25241 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25242 fi 25243 fi 25244 fi 25245 25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25247 $as_echo_n "checking for Boot JDK... " >&6; } 25248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25249 $as_echo "$BOOT_JDK" >&6; } 25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25251 $as_echo_n "checking Boot JDK version... " >&6; } 25252 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25254 $as_echo "$BOOT_JDK_VERSION" >&6; } 25255 fi # end check jdk version 25256 fi # end check javac 25257 fi # end check java 25258 fi # end check boot jdk found 25259 fi 25260 25261 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25262 # Having specified an argument which is incorrect will produce an instant failure; 25263 # we should not go on looking 25264 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25265 fi 25266 25267 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25268 25269 if test "x$BOOT_JDK_FOUND" = xno; then 25270 # Now execute the test 25271 25272 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25273 # First check at user selected default 25274 25275 if test "x$BOOT_JDK_FOUND" = xno; then 25276 # Now execute the test 25277 25278 if test -x /usr/libexec/java_home; then 25279 BOOT_JDK=`/usr/libexec/java_home ` 25280 BOOT_JDK_FOUND=maybe 25281 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25282 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25283 fi 25284 25285 25286 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25287 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25288 # Do we have a bin/java? 25289 if test ! -x "$BOOT_JDK/bin/java"; then 25290 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25291 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25292 BOOT_JDK_FOUND=no 25293 else 25294 # Do we have a bin/javac? 25295 if test ! -x "$BOOT_JDK/bin/javac"; then 25296 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25297 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25298 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25299 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25300 BOOT_JDK_FOUND=no 25301 else 25302 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25303 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25304 25305 # Extra M4 quote needed to protect [] in grep expression. 25306 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25307 if test "x$FOUND_CORRECT_VERSION" = x; then 25308 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25309 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25310 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25311 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25312 BOOT_JDK_FOUND=no 25313 else 25314 # We're done! :-) 25315 BOOT_JDK_FOUND=yes 25316 25317 # Only process if variable expands to non-empty 25318 25319 if test "x$BOOT_JDK" != x; then 25320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25321 25322 # Input might be given as Windows format, start by converting to 25323 # unix format. 25324 path="$BOOT_JDK" 25325 new_path=`$CYGPATH -u "$path"` 25326 25327 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25328 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25329 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25330 # "foo.exe" is OK but "foo" is an error. 25331 # 25332 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25333 # It is also a way to make sure we got the proper file name for the real test later on. 25334 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25335 if test "x$test_shortpath" = x; then 25336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25337 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25338 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25339 fi 25340 25341 # Call helper function which possibly converts this using DOS-style short mode. 25342 # If so, the updated path is stored in $new_path. 25343 25344 input_path="$new_path" 25345 # Check if we need to convert this using DOS-style short mode. If the path 25346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25347 # take no chances and rewrite it. 25348 # Note: m4 eats our [], so we need to use [ and ] instead. 25349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25350 if test "x$has_forbidden_chars" != x; then 25351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25352 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25353 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25354 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25355 # Going to short mode and back again did indeed matter. Since short mode is 25356 # case insensitive, let's make it lowercase to improve readability. 25357 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25358 # Now convert it back to Unix-style (cygpath) 25359 input_path=`$CYGPATH -u "$shortmode_path"` 25360 new_path="$input_path" 25361 fi 25362 fi 25363 25364 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25365 if test "x$test_cygdrive_prefix" = x; then 25366 # As a simple fix, exclude /usr/bin since it's not a real path. 25367 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25368 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25369 # a path prefixed by /cygdrive for fixpath to work. 25370 new_path="$CYGWIN_ROOT_PATH$input_path" 25371 fi 25372 fi 25373 25374 25375 if test "x$path" != "x$new_path"; then 25376 BOOT_JDK="$new_path" 25377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25378 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25379 fi 25380 25381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25382 25383 path="$BOOT_JDK" 25384 has_colon=`$ECHO $path | $GREP ^.:` 25385 new_path="$path" 25386 if test "x$has_colon" = x; then 25387 # Not in mixed or Windows style, start by that. 25388 new_path=`cmd //c echo $path` 25389 fi 25390 25391 25392 input_path="$new_path" 25393 # Check if we need to convert this using DOS-style short mode. If the path 25394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25395 # take no chances and rewrite it. 25396 # Note: m4 eats our [], so we need to use [ and ] instead. 25397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25398 if test "x$has_forbidden_chars" != x; then 25399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25400 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25401 fi 25402 25403 25404 windows_path="$new_path" 25405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25406 unix_path=`$CYGPATH -u "$windows_path"` 25407 new_path="$unix_path" 25408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25410 new_path="$unix_path" 25411 fi 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 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25420 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25421 25422 else 25423 # We're on a unix platform. Hooray! :) 25424 path="$BOOT_JDK" 25425 has_space=`$ECHO "$path" | $GREP " "` 25426 if test "x$has_space" != x; then 25427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25428 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25429 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25430 fi 25431 25432 # Use eval to expand a potential ~ 25433 eval path="$path" 25434 if test ! -f "$path" && test ! -d "$path"; then 25435 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25436 fi 25437 25438 if test -d "$path"; then 25439 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25440 else 25441 dir="`$DIRNAME "$path"`" 25442 base="`$BASENAME "$path"`" 25443 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25444 fi 25445 fi 25446 fi 25447 25448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25449 $as_echo_n "checking for Boot JDK... " >&6; } 25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25451 $as_echo "$BOOT_JDK" >&6; } 25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25453 $as_echo_n "checking Boot JDK version... " >&6; } 25454 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25456 $as_echo "$BOOT_JDK_VERSION" >&6; } 25457 fi # end check jdk version 25458 fi # end check javac 25459 fi # end check java 25460 fi # end check boot jdk found 25461 fi 25462 25463 # If that did not work out (e.g. too old), try explicit versions instead 25464 25465 if test "x$BOOT_JDK_FOUND" = xno; then 25466 # Now execute the test 25467 25468 if test -x /usr/libexec/java_home; then 25469 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 25470 BOOT_JDK_FOUND=maybe 25471 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 25472 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 25473 fi 25474 25475 25476 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25477 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25478 # Do we have a bin/java? 25479 if test ! -x "$BOOT_JDK/bin/java"; then 25480 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25481 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25482 BOOT_JDK_FOUND=no 25483 else 25484 # Do we have a bin/javac? 25485 if test ! -x "$BOOT_JDK/bin/javac"; then 25486 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25487 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25488 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25489 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25490 BOOT_JDK_FOUND=no 25491 else 25492 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25493 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25494 25495 # Extra M4 quote needed to protect [] in grep expression. 25496 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25497 if test "x$FOUND_CORRECT_VERSION" = x; then 25498 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25499 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25500 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25501 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25502 BOOT_JDK_FOUND=no 25503 else 25504 # We're done! :-) 25505 BOOT_JDK_FOUND=yes 25506 25507 # Only process if variable expands to non-empty 25508 25509 if test "x$BOOT_JDK" != x; then 25510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25511 25512 # Input might be given as Windows format, start by converting to 25513 # unix format. 25514 path="$BOOT_JDK" 25515 new_path=`$CYGPATH -u "$path"` 25516 25517 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25518 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25519 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25520 # "foo.exe" is OK but "foo" is an error. 25521 # 25522 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25523 # It is also a way to make sure we got the proper file name for the real test later on. 25524 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25525 if test "x$test_shortpath" = x; then 25526 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25527 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25528 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25529 fi 25530 25531 # Call helper function which possibly converts this using DOS-style short mode. 25532 # If so, the updated path is stored in $new_path. 25533 25534 input_path="$new_path" 25535 # Check if we need to convert this using DOS-style short mode. If the path 25536 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25537 # take no chances and rewrite it. 25538 # Note: m4 eats our [], so we need to use [ and ] instead. 25539 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25540 if test "x$has_forbidden_chars" != x; then 25541 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25542 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25543 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25544 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25545 # Going to short mode and back again did indeed matter. Since short mode is 25546 # case insensitive, let's make it lowercase to improve readability. 25547 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25548 # Now convert it back to Unix-style (cygpath) 25549 input_path=`$CYGPATH -u "$shortmode_path"` 25550 new_path="$input_path" 25551 fi 25552 fi 25553 25554 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25555 if test "x$test_cygdrive_prefix" = x; then 25556 # As a simple fix, exclude /usr/bin since it's not a real path. 25557 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25558 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25559 # a path prefixed by /cygdrive for fixpath to work. 25560 new_path="$CYGWIN_ROOT_PATH$input_path" 25561 fi 25562 fi 25563 25564 25565 if test "x$path" != "x$new_path"; then 25566 BOOT_JDK="$new_path" 25567 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25568 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25569 fi 25570 25571 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25572 25573 path="$BOOT_JDK" 25574 has_colon=`$ECHO $path | $GREP ^.:` 25575 new_path="$path" 25576 if test "x$has_colon" = x; then 25577 # Not in mixed or Windows style, start by that. 25578 new_path=`cmd //c echo $path` 25579 fi 25580 25581 25582 input_path="$new_path" 25583 # Check if we need to convert this using DOS-style short mode. If the path 25584 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25585 # take no chances and rewrite it. 25586 # Note: m4 eats our [], so we need to use [ and ] instead. 25587 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25588 if test "x$has_forbidden_chars" != x; then 25589 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25590 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25591 fi 25592 25593 25594 windows_path="$new_path" 25595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25596 unix_path=`$CYGPATH -u "$windows_path"` 25597 new_path="$unix_path" 25598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25600 new_path="$unix_path" 25601 fi 25602 25603 if test "x$path" != "x$new_path"; then 25604 BOOT_JDK="$new_path" 25605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25606 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25607 fi 25608 25609 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25610 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25611 25612 else 25613 # We're on a unix platform. Hooray! :) 25614 path="$BOOT_JDK" 25615 has_space=`$ECHO "$path" | $GREP " "` 25616 if test "x$has_space" != x; then 25617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25618 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25619 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25620 fi 25621 25622 # Use eval to expand a potential ~ 25623 eval path="$path" 25624 if test ! -f "$path" && test ! -d "$path"; then 25625 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25626 fi 25627 25628 if test -d "$path"; then 25629 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25630 else 25631 dir="`$DIRNAME "$path"`" 25632 base="`$BASENAME "$path"`" 25633 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25634 fi 25635 fi 25636 fi 25637 25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25639 $as_echo_n "checking for Boot JDK... " >&6; } 25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25641 $as_echo "$BOOT_JDK" >&6; } 25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25643 $as_echo_n "checking Boot JDK version... " >&6; } 25644 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25646 $as_echo "$BOOT_JDK_VERSION" >&6; } 25647 fi # end check jdk version 25648 fi # end check javac 25649 fi # end check java 25650 fi # end check boot jdk found 25651 fi 25652 25653 25654 if test "x$BOOT_JDK_FOUND" = xno; then 25655 # Now execute the test 25656 25657 if test -x /usr/libexec/java_home; then 25658 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 25659 BOOT_JDK_FOUND=maybe 25660 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 25661 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 25662 fi 25663 25664 25665 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25666 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25667 # Do we have a bin/java? 25668 if test ! -x "$BOOT_JDK/bin/java"; then 25669 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25670 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25671 BOOT_JDK_FOUND=no 25672 else 25673 # Do we have a bin/javac? 25674 if test ! -x "$BOOT_JDK/bin/javac"; then 25675 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25676 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25677 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25678 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25679 BOOT_JDK_FOUND=no 25680 else 25681 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25682 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25683 25684 # Extra M4 quote needed to protect [] in grep expression. 25685 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25686 if test "x$FOUND_CORRECT_VERSION" = x; then 25687 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25688 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25689 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25690 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25691 BOOT_JDK_FOUND=no 25692 else 25693 # We're done! :-) 25694 BOOT_JDK_FOUND=yes 25695 25696 # Only process if variable expands to non-empty 25697 25698 if test "x$BOOT_JDK" != x; then 25699 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25700 25701 # Input might be given as Windows format, start by converting to 25702 # unix format. 25703 path="$BOOT_JDK" 25704 new_path=`$CYGPATH -u "$path"` 25705 25706 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25707 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25708 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25709 # "foo.exe" is OK but "foo" is an error. 25710 # 25711 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25712 # It is also a way to make sure we got the proper file name for the real test later on. 25713 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25714 if test "x$test_shortpath" = x; then 25715 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25716 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25717 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25718 fi 25719 25720 # Call helper function which possibly converts this using DOS-style short mode. 25721 # If so, the updated path is stored in $new_path. 25722 25723 input_path="$new_path" 25724 # Check if we need to convert this using DOS-style short mode. If the path 25725 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25726 # take no chances and rewrite it. 25727 # Note: m4 eats our [], so we need to use [ and ] instead. 25728 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25729 if test "x$has_forbidden_chars" != x; then 25730 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25731 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25732 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25733 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25734 # Going to short mode and back again did indeed matter. Since short mode is 25735 # case insensitive, let's make it lowercase to improve readability. 25736 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25737 # Now convert it back to Unix-style (cygpath) 25738 input_path=`$CYGPATH -u "$shortmode_path"` 25739 new_path="$input_path" 25740 fi 25741 fi 25742 25743 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25744 if test "x$test_cygdrive_prefix" = x; then 25745 # As a simple fix, exclude /usr/bin since it's not a real path. 25746 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25747 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25748 # a path prefixed by /cygdrive for fixpath to work. 25749 new_path="$CYGWIN_ROOT_PATH$input_path" 25750 fi 25751 fi 25752 25753 25754 if test "x$path" != "x$new_path"; then 25755 BOOT_JDK="$new_path" 25756 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25757 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25758 fi 25759 25760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25761 25762 path="$BOOT_JDK" 25763 has_colon=`$ECHO $path | $GREP ^.:` 25764 new_path="$path" 25765 if test "x$has_colon" = x; then 25766 # Not in mixed or Windows style, start by that. 25767 new_path=`cmd //c echo $path` 25768 fi 25769 25770 25771 input_path="$new_path" 25772 # Check if we need to convert this using DOS-style short mode. If the path 25773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25774 # take no chances and rewrite it. 25775 # Note: m4 eats our [], so we need to use [ and ] instead. 25776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25777 if test "x$has_forbidden_chars" != x; then 25778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25779 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25780 fi 25781 25782 25783 windows_path="$new_path" 25784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25785 unix_path=`$CYGPATH -u "$windows_path"` 25786 new_path="$unix_path" 25787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25789 new_path="$unix_path" 25790 fi 25791 25792 if test "x$path" != "x$new_path"; then 25793 BOOT_JDK="$new_path" 25794 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25795 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25796 fi 25797 25798 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25799 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25800 25801 else 25802 # We're on a unix platform. Hooray! :) 25803 path="$BOOT_JDK" 25804 has_space=`$ECHO "$path" | $GREP " "` 25805 if test "x$has_space" != x; then 25806 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25807 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25808 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25809 fi 25810 25811 # Use eval to expand a potential ~ 25812 eval path="$path" 25813 if test ! -f "$path" && test ! -d "$path"; then 25814 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25815 fi 25816 25817 if test -d "$path"; then 25818 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25819 else 25820 dir="`$DIRNAME "$path"`" 25821 base="`$BASENAME "$path"`" 25822 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25823 fi 25824 fi 25825 fi 25826 25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25828 $as_echo_n "checking for Boot JDK... " >&6; } 25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25830 $as_echo "$BOOT_JDK" >&6; } 25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25832 $as_echo_n "checking Boot JDK version... " >&6; } 25833 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25835 $as_echo "$BOOT_JDK_VERSION" >&6; } 25836 fi # end check jdk version 25837 fi # end check javac 25838 fi # end check java 25839 fi # end check boot jdk found 25840 fi 25841 25842 25843 if test "x$BOOT_JDK_FOUND" = xno; then 25844 # Now execute the test 25845 25846 if test -x /usr/libexec/java_home; then 25847 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 25848 BOOT_JDK_FOUND=maybe 25849 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 25850 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 25851 fi 25852 25853 25854 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25855 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25856 # Do we have a bin/java? 25857 if test ! -x "$BOOT_JDK/bin/java"; then 25858 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25860 BOOT_JDK_FOUND=no 25861 else 25862 # Do we have a bin/javac? 25863 if test ! -x "$BOOT_JDK/bin/javac"; then 25864 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25866 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25867 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25868 BOOT_JDK_FOUND=no 25869 else 25870 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25871 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25872 25873 # Extra M4 quote needed to protect [] in grep expression. 25874 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25875 if test "x$FOUND_CORRECT_VERSION" = x; then 25876 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25877 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25878 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25879 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25880 BOOT_JDK_FOUND=no 25881 else 25882 # We're done! :-) 25883 BOOT_JDK_FOUND=yes 25884 25885 # Only process if variable expands to non-empty 25886 25887 if test "x$BOOT_JDK" != x; then 25888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25889 25890 # Input might be given as Windows format, start by converting to 25891 # unix format. 25892 path="$BOOT_JDK" 25893 new_path=`$CYGPATH -u "$path"` 25894 25895 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25896 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25897 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25898 # "foo.exe" is OK but "foo" is an error. 25899 # 25900 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25901 # It is also a way to make sure we got the proper file name for the real test later on. 25902 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25903 if test "x$test_shortpath" = x; then 25904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25905 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25906 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25907 fi 25908 25909 # Call helper function which possibly converts this using DOS-style short mode. 25910 # If so, the updated path is stored in $new_path. 25911 25912 input_path="$new_path" 25913 # Check if we need to convert this using DOS-style short mode. If the path 25914 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25915 # take no chances and rewrite it. 25916 # Note: m4 eats our [], so we need to use [ and ] instead. 25917 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25918 if test "x$has_forbidden_chars" != x; then 25919 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25920 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25921 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25922 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25923 # Going to short mode and back again did indeed matter. Since short mode is 25924 # case insensitive, let's make it lowercase to improve readability. 25925 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25926 # Now convert it back to Unix-style (cygpath) 25927 input_path=`$CYGPATH -u "$shortmode_path"` 25928 new_path="$input_path" 25929 fi 25930 fi 25931 25932 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25933 if test "x$test_cygdrive_prefix" = x; then 25934 # As a simple fix, exclude /usr/bin since it's not a real path. 25935 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25936 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25937 # a path prefixed by /cygdrive for fixpath to work. 25938 new_path="$CYGWIN_ROOT_PATH$input_path" 25939 fi 25940 fi 25941 25942 25943 if test "x$path" != "x$new_path"; then 25944 BOOT_JDK="$new_path" 25945 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25946 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25947 fi 25948 25949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25950 25951 path="$BOOT_JDK" 25952 has_colon=`$ECHO $path | $GREP ^.:` 25953 new_path="$path" 25954 if test "x$has_colon" = x; then 25955 # Not in mixed or Windows style, start by that. 25956 new_path=`cmd //c echo $path` 25957 fi 25958 25959 25960 input_path="$new_path" 25961 # Check if we need to convert this using DOS-style short mode. If the path 25962 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25963 # take no chances and rewrite it. 25964 # Note: m4 eats our [], so we need to use [ and ] instead. 25965 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25966 if test "x$has_forbidden_chars" != x; then 25967 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25968 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25969 fi 25970 25971 25972 windows_path="$new_path" 25973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25974 unix_path=`$CYGPATH -u "$windows_path"` 25975 new_path="$unix_path" 25976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25977 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25978 new_path="$unix_path" 25979 fi 25980 25981 if test "x$path" != "x$new_path"; then 25982 BOOT_JDK="$new_path" 25983 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25984 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25985 fi 25986 25987 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25988 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25989 25990 else 25991 # We're on a unix platform. Hooray! :) 25992 path="$BOOT_JDK" 25993 has_space=`$ECHO "$path" | $GREP " "` 25994 if test "x$has_space" != x; then 25995 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25996 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25997 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25998 fi 25999 26000 # Use eval to expand a potential ~ 26001 eval path="$path" 26002 if test ! -f "$path" && test ! -d "$path"; then 26003 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26004 fi 26005 26006 if test -d "$path"; then 26007 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26008 else 26009 dir="`$DIRNAME "$path"`" 26010 base="`$BASENAME "$path"`" 26011 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26012 fi 26013 fi 26014 fi 26015 26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26017 $as_echo_n "checking for Boot JDK... " >&6; } 26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26019 $as_echo "$BOOT_JDK" >&6; } 26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26021 $as_echo_n "checking Boot JDK version... " >&6; } 26022 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26024 $as_echo "$BOOT_JDK_VERSION" >&6; } 26025 fi # end check jdk version 26026 fi # end check javac 26027 fi # end check java 26028 fi # end check boot jdk found 26029 fi 26030 26031 fi 26032 26033 26034 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26035 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26036 # Do we have a bin/java? 26037 if test ! -x "$BOOT_JDK/bin/java"; then 26038 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26040 BOOT_JDK_FOUND=no 26041 else 26042 # Do we have a bin/javac? 26043 if test ! -x "$BOOT_JDK/bin/javac"; then 26044 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26045 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26046 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26047 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26048 BOOT_JDK_FOUND=no 26049 else 26050 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26051 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26052 26053 # Extra M4 quote needed to protect [] in grep expression. 26054 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26055 if test "x$FOUND_CORRECT_VERSION" = x; then 26056 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26057 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26058 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26059 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26060 BOOT_JDK_FOUND=no 26061 else 26062 # We're done! :-) 26063 BOOT_JDK_FOUND=yes 26064 26065 # Only process if variable expands to non-empty 26066 26067 if test "x$BOOT_JDK" != x; then 26068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26069 26070 # Input might be given as Windows format, start by converting to 26071 # unix format. 26072 path="$BOOT_JDK" 26073 new_path=`$CYGPATH -u "$path"` 26074 26075 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26076 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26077 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26078 # "foo.exe" is OK but "foo" is an error. 26079 # 26080 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26081 # It is also a way to make sure we got the proper file name for the real test later on. 26082 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26083 if test "x$test_shortpath" = x; then 26084 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26085 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26086 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26087 fi 26088 26089 # Call helper function which possibly converts this using DOS-style short mode. 26090 # If so, the updated path is stored in $new_path. 26091 26092 input_path="$new_path" 26093 # Check if we need to convert this using DOS-style short mode. If the path 26094 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26095 # take no chances and rewrite it. 26096 # Note: m4 eats our [], so we need to use [ and ] instead. 26097 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26098 if test "x$has_forbidden_chars" != x; then 26099 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26100 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26101 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26102 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26103 # Going to short mode and back again did indeed matter. Since short mode is 26104 # case insensitive, let's make it lowercase to improve readability. 26105 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26106 # Now convert it back to Unix-style (cygpath) 26107 input_path=`$CYGPATH -u "$shortmode_path"` 26108 new_path="$input_path" 26109 fi 26110 fi 26111 26112 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26113 if test "x$test_cygdrive_prefix" = x; then 26114 # As a simple fix, exclude /usr/bin since it's not a real path. 26115 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26116 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26117 # a path prefixed by /cygdrive for fixpath to work. 26118 new_path="$CYGWIN_ROOT_PATH$input_path" 26119 fi 26120 fi 26121 26122 26123 if test "x$path" != "x$new_path"; then 26124 BOOT_JDK="$new_path" 26125 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26126 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26127 fi 26128 26129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26130 26131 path="$BOOT_JDK" 26132 has_colon=`$ECHO $path | $GREP ^.:` 26133 new_path="$path" 26134 if test "x$has_colon" = x; then 26135 # Not in mixed or Windows style, start by that. 26136 new_path=`cmd //c echo $path` 26137 fi 26138 26139 26140 input_path="$new_path" 26141 # Check if we need to convert this using DOS-style short mode. If the path 26142 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26143 # take no chances and rewrite it. 26144 # Note: m4 eats our [], so we need to use [ and ] instead. 26145 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26146 if test "x$has_forbidden_chars" != x; then 26147 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26148 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26149 fi 26150 26151 26152 windows_path="$new_path" 26153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26154 unix_path=`$CYGPATH -u "$windows_path"` 26155 new_path="$unix_path" 26156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26158 new_path="$unix_path" 26159 fi 26160 26161 if test "x$path" != "x$new_path"; then 26162 BOOT_JDK="$new_path" 26163 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26164 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26165 fi 26166 26167 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26168 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26169 26170 else 26171 # We're on a unix platform. Hooray! :) 26172 path="$BOOT_JDK" 26173 has_space=`$ECHO "$path" | $GREP " "` 26174 if test "x$has_space" != x; then 26175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26176 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26177 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26178 fi 26179 26180 # Use eval to expand a potential ~ 26181 eval path="$path" 26182 if test ! -f "$path" && test ! -d "$path"; then 26183 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26184 fi 26185 26186 if test -d "$path"; then 26187 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26188 else 26189 dir="`$DIRNAME "$path"`" 26190 base="`$BASENAME "$path"`" 26191 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26192 fi 26193 fi 26194 fi 26195 26196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26197 $as_echo_n "checking for Boot JDK... " >&6; } 26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26199 $as_echo "$BOOT_JDK" >&6; } 26200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26201 $as_echo_n "checking Boot JDK version... " >&6; } 26202 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26204 $as_echo "$BOOT_JDK_VERSION" >&6; } 26205 fi # end check jdk version 26206 fi # end check javac 26207 fi # end check java 26208 fi # end check boot jdk found 26209 fi 26210 26211 26212 # Test: Is $JAVA_HOME set? 26213 26214 if test "x$BOOT_JDK_FOUND" = xno; then 26215 # Now execute the test 26216 26217 if test "x$JAVA_HOME" != x; then 26218 JAVA_HOME_PROCESSED="$JAVA_HOME" 26219 26220 # Only process if variable expands to non-empty 26221 26222 if test "x$JAVA_HOME_PROCESSED" != x; then 26223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26224 26225 # Input might be given as Windows format, start by converting to 26226 # unix format. 26227 path="$JAVA_HOME_PROCESSED" 26228 new_path=`$CYGPATH -u "$path"` 26229 26230 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26231 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26232 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26233 # "foo.exe" is OK but "foo" is an error. 26234 # 26235 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26236 # It is also a way to make sure we got the proper file name for the real test later on. 26237 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26238 if test "x$test_shortpath" = x; then 26239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26240 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26241 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26242 fi 26243 26244 # Call helper function which possibly converts this using DOS-style short mode. 26245 # If so, the updated path is stored in $new_path. 26246 26247 input_path="$new_path" 26248 # Check if we need to convert this using DOS-style short mode. If the path 26249 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26250 # take no chances and rewrite it. 26251 # Note: m4 eats our [], so we need to use [ and ] instead. 26252 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26253 if test "x$has_forbidden_chars" != x; then 26254 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26255 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26256 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26257 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26258 # Going to short mode and back again did indeed matter. Since short mode is 26259 # case insensitive, let's make it lowercase to improve readability. 26260 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26261 # Now convert it back to Unix-style (cygpath) 26262 input_path=`$CYGPATH -u "$shortmode_path"` 26263 new_path="$input_path" 26264 fi 26265 fi 26266 26267 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26268 if test "x$test_cygdrive_prefix" = x; then 26269 # As a simple fix, exclude /usr/bin since it's not a real path. 26270 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26271 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26272 # a path prefixed by /cygdrive for fixpath to work. 26273 new_path="$CYGWIN_ROOT_PATH$input_path" 26274 fi 26275 fi 26276 26277 26278 if test "x$path" != "x$new_path"; then 26279 JAVA_HOME_PROCESSED="$new_path" 26280 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26281 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26282 fi 26283 26284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26285 26286 path="$JAVA_HOME_PROCESSED" 26287 has_colon=`$ECHO $path | $GREP ^.:` 26288 new_path="$path" 26289 if test "x$has_colon" = x; then 26290 # Not in mixed or Windows style, start by that. 26291 new_path=`cmd //c echo $path` 26292 fi 26293 26294 26295 input_path="$new_path" 26296 # Check if we need to convert this using DOS-style short mode. If the path 26297 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26298 # take no chances and rewrite it. 26299 # Note: m4 eats our [], so we need to use [ and ] instead. 26300 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26301 if test "x$has_forbidden_chars" != x; then 26302 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26303 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26304 fi 26305 26306 26307 windows_path="$new_path" 26308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26309 unix_path=`$CYGPATH -u "$windows_path"` 26310 new_path="$unix_path" 26311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26313 new_path="$unix_path" 26314 fi 26315 26316 if test "x$path" != "x$new_path"; then 26317 JAVA_HOME_PROCESSED="$new_path" 26318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26319 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26320 fi 26321 26322 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26323 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26324 26325 else 26326 # We're on a unix platform. Hooray! :) 26327 path="$JAVA_HOME_PROCESSED" 26328 has_space=`$ECHO "$path" | $GREP " "` 26329 if test "x$has_space" != x; then 26330 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26331 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26332 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26333 fi 26334 26335 # Use eval to expand a potential ~ 26336 eval path="$path" 26337 if test ! -f "$path" && test ! -d "$path"; then 26338 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26339 fi 26340 26341 if test -d "$path"; then 26342 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26343 else 26344 dir="`$DIRNAME "$path"`" 26345 base="`$BASENAME "$path"`" 26346 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26347 fi 26348 fi 26349 fi 26350 26351 if test ! -d "$JAVA_HOME_PROCESSED"; then 26352 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26353 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26354 else 26355 # Aha, the user has set a JAVA_HOME 26356 # let us use that as the Boot JDK. 26357 BOOT_JDK="$JAVA_HOME_PROCESSED" 26358 BOOT_JDK_FOUND=maybe 26359 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26360 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26361 fi 26362 fi 26363 26364 26365 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26366 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26367 # Do we have a bin/java? 26368 if test ! -x "$BOOT_JDK/bin/java"; then 26369 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26370 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26371 BOOT_JDK_FOUND=no 26372 else 26373 # Do we have a bin/javac? 26374 if test ! -x "$BOOT_JDK/bin/javac"; then 26375 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26376 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26377 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26378 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26379 BOOT_JDK_FOUND=no 26380 else 26381 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26382 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26383 26384 # Extra M4 quote needed to protect [] in grep expression. 26385 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26386 if test "x$FOUND_CORRECT_VERSION" = x; then 26387 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26388 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26389 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26390 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26391 BOOT_JDK_FOUND=no 26392 else 26393 # We're done! :-) 26394 BOOT_JDK_FOUND=yes 26395 26396 # Only process if variable expands to non-empty 26397 26398 if test "x$BOOT_JDK" != x; then 26399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26400 26401 # Input might be given as Windows format, start by converting to 26402 # unix format. 26403 path="$BOOT_JDK" 26404 new_path=`$CYGPATH -u "$path"` 26405 26406 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26407 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26408 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26409 # "foo.exe" is OK but "foo" is an error. 26410 # 26411 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26412 # It is also a way to make sure we got the proper file name for the real test later on. 26413 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26414 if test "x$test_shortpath" = x; then 26415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26416 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26417 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26418 fi 26419 26420 # Call helper function which possibly converts this using DOS-style short mode. 26421 # If so, the updated path is stored in $new_path. 26422 26423 input_path="$new_path" 26424 # Check if we need to convert this using DOS-style short mode. If the path 26425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26426 # take no chances and rewrite it. 26427 # Note: m4 eats our [], so we need to use [ and ] instead. 26428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26429 if test "x$has_forbidden_chars" != x; then 26430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26431 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26432 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26433 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26434 # Going to short mode and back again did indeed matter. Since short mode is 26435 # case insensitive, let's make it lowercase to improve readability. 26436 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26437 # Now convert it back to Unix-style (cygpath) 26438 input_path=`$CYGPATH -u "$shortmode_path"` 26439 new_path="$input_path" 26440 fi 26441 fi 26442 26443 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26444 if test "x$test_cygdrive_prefix" = x; then 26445 # As a simple fix, exclude /usr/bin since it's not a real path. 26446 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26447 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26448 # a path prefixed by /cygdrive for fixpath to work. 26449 new_path="$CYGWIN_ROOT_PATH$input_path" 26450 fi 26451 fi 26452 26453 26454 if test "x$path" != "x$new_path"; then 26455 BOOT_JDK="$new_path" 26456 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26457 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26458 fi 26459 26460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26461 26462 path="$BOOT_JDK" 26463 has_colon=`$ECHO $path | $GREP ^.:` 26464 new_path="$path" 26465 if test "x$has_colon" = x; then 26466 # Not in mixed or Windows style, start by that. 26467 new_path=`cmd //c echo $path` 26468 fi 26469 26470 26471 input_path="$new_path" 26472 # Check if we need to convert this using DOS-style short mode. If the path 26473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26474 # take no chances and rewrite it. 26475 # Note: m4 eats our [], so we need to use [ and ] instead. 26476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26477 if test "x$has_forbidden_chars" != x; then 26478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26479 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26480 fi 26481 26482 26483 windows_path="$new_path" 26484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26485 unix_path=`$CYGPATH -u "$windows_path"` 26486 new_path="$unix_path" 26487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26489 new_path="$unix_path" 26490 fi 26491 26492 if test "x$path" != "x$new_path"; then 26493 BOOT_JDK="$new_path" 26494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26495 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26496 fi 26497 26498 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26499 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26500 26501 else 26502 # We're on a unix platform. Hooray! :) 26503 path="$BOOT_JDK" 26504 has_space=`$ECHO "$path" | $GREP " "` 26505 if test "x$has_space" != x; then 26506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26507 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26508 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26509 fi 26510 26511 # Use eval to expand a potential ~ 26512 eval path="$path" 26513 if test ! -f "$path" && test ! -d "$path"; then 26514 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26515 fi 26516 26517 if test -d "$path"; then 26518 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26519 else 26520 dir="`$DIRNAME "$path"`" 26521 base="`$BASENAME "$path"`" 26522 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26523 fi 26524 fi 26525 fi 26526 26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26528 $as_echo_n "checking for Boot JDK... " >&6; } 26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26530 $as_echo "$BOOT_JDK" >&6; } 26531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26532 $as_echo_n "checking Boot JDK version... " >&6; } 26533 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26535 $as_echo "$BOOT_JDK_VERSION" >&6; } 26536 fi # end check jdk version 26537 fi # end check javac 26538 fi # end check java 26539 fi # end check boot jdk found 26540 fi 26541 26542 26543 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 26544 26545 if test "x$BOOT_JDK_FOUND" = xno; then 26546 # Now execute the test 26547 26548 # Extract the first word of "javac", so it can be a program name with args. 26549 set dummy javac; ac_word=$2 26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26551 $as_echo_n "checking for $ac_word... " >&6; } 26552 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 26553 $as_echo_n "(cached) " >&6 26554 else 26555 case $JAVAC_CHECK in 26556 [\\/]* | ?:[\\/]*) 26557 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 26558 ;; 26559 *) 26560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26561 for as_dir in $PATH 26562 do 26563 IFS=$as_save_IFS 26564 test -z "$as_dir" && as_dir=. 26565 for ac_exec_ext in '' $ac_executable_extensions; do 26566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26567 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 26568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26569 break 2 26570 fi 26571 done 26572 done 26573 IFS=$as_save_IFS 26574 26575 ;; 26576 esac 26577 fi 26578 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 26579 if test -n "$JAVAC_CHECK"; then 26580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 26581 $as_echo "$JAVAC_CHECK" >&6; } 26582 else 26583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26584 $as_echo "no" >&6; } 26585 fi 26586 26587 26588 # Extract the first word of "java", so it can be a program name with args. 26589 set dummy java; ac_word=$2 26590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26591 $as_echo_n "checking for $ac_word... " >&6; } 26592 if ${ac_cv_path_JAVA_CHECK+:} false; then : 26593 $as_echo_n "(cached) " >&6 26594 else 26595 case $JAVA_CHECK in 26596 [\\/]* | ?:[\\/]*) 26597 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 26598 ;; 26599 *) 26600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26601 for as_dir in $PATH 26602 do 26603 IFS=$as_save_IFS 26604 test -z "$as_dir" && as_dir=. 26605 for ac_exec_ext in '' $ac_executable_extensions; do 26606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26607 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 26608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26609 break 2 26610 fi 26611 done 26612 done 26613 IFS=$as_save_IFS 26614 26615 ;; 26616 esac 26617 fi 26618 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 26619 if test -n "$JAVA_CHECK"; then 26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 26621 $as_echo "$JAVA_CHECK" >&6; } 26622 else 26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26624 $as_echo "no" >&6; } 26625 fi 26626 26627 26628 BINARY="$JAVAC_CHECK" 26629 if test "x$JAVAC_CHECK" = x; then 26630 BINARY="$JAVA_CHECK" 26631 fi 26632 if test "x$BINARY" != x; then 26633 # So there is a java(c) binary, it might be part of a JDK. 26634 # Lets find the JDK/JRE directory by following symbolic links. 26635 # Linux/GNU systems often have links from /usr/bin/java to 26636 # /etc/alternatives/java to the real JDK binary. 26637 26638 if test "x$OPENJDK_BUILD_OS" != xwindows; then 26639 # Follow a chain of symbolic links. Use readlink 26640 # where it exists, else fall back to horribly 26641 # complicated shell code. 26642 if test "x$READLINK_TESTED" != yes; then 26643 # On MacOSX there is a readlink tool with a different 26644 # purpose than the GNU readlink tool. Check the found readlink. 26645 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 26646 if test "x$ISGNU" = x; then 26647 # A readlink that we do not know how to use. 26648 # Are there other non-GNU readlinks out there? 26649 READLINK_TESTED=yes 26650 READLINK= 26651 fi 26652 fi 26653 26654 if test "x$READLINK" != x; then 26655 BINARY=`$READLINK -f $BINARY` 26656 else 26657 # Save the current directory for restoring afterwards 26658 STARTDIR=$PWD 26659 COUNTER=0 26660 sym_link_dir=`$DIRNAME $BINARY` 26661 sym_link_file=`$BASENAME $BINARY` 26662 cd $sym_link_dir 26663 # Use -P flag to resolve symlinks in directories. 26664 cd `$THEPWDCMD -P` 26665 sym_link_dir=`$THEPWDCMD -P` 26666 # Resolve file symlinks 26667 while test $COUNTER -lt 20; do 26668 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 26669 if test "x$ISLINK" == x; then 26670 # This is not a symbolic link! We are done! 26671 break 26672 fi 26673 # Again resolve directory symlinks since the target of the just found 26674 # link could be in a different directory 26675 cd `$DIRNAME $ISLINK` 26676 sym_link_dir=`$THEPWDCMD -P` 26677 sym_link_file=`$BASENAME $ISLINK` 26678 let COUNTER=COUNTER+1 26679 done 26680 cd $STARTDIR 26681 BINARY=$sym_link_dir/$sym_link_file 26682 fi 26683 fi 26684 26685 BOOT_JDK=`dirname "$BINARY"` 26686 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 26687 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 26688 # Looks like we found ourselves an JDK 26689 BOOT_JDK_FOUND=maybe 26690 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 26691 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 26692 fi 26693 fi 26694 26695 26696 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26697 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26698 # Do we have a bin/java? 26699 if test ! -x "$BOOT_JDK/bin/java"; then 26700 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26701 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26702 BOOT_JDK_FOUND=no 26703 else 26704 # Do we have a bin/javac? 26705 if test ! -x "$BOOT_JDK/bin/javac"; then 26706 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26707 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26708 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26709 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26710 BOOT_JDK_FOUND=no 26711 else 26712 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26713 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26714 26715 # Extra M4 quote needed to protect [] in grep expression. 26716 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26717 if test "x$FOUND_CORRECT_VERSION" = x; then 26718 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26719 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26720 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26721 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26722 BOOT_JDK_FOUND=no 26723 else 26724 # We're done! :-) 26725 BOOT_JDK_FOUND=yes 26726 26727 # Only process if variable expands to non-empty 26728 26729 if test "x$BOOT_JDK" != x; then 26730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26731 26732 # Input might be given as Windows format, start by converting to 26733 # unix format. 26734 path="$BOOT_JDK" 26735 new_path=`$CYGPATH -u "$path"` 26736 26737 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26738 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26739 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26740 # "foo.exe" is OK but "foo" is an error. 26741 # 26742 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26743 # It is also a way to make sure we got the proper file name for the real test later on. 26744 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26745 if test "x$test_shortpath" = x; then 26746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26747 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26748 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26749 fi 26750 26751 # Call helper function which possibly converts this using DOS-style short mode. 26752 # If so, the updated path is stored in $new_path. 26753 26754 input_path="$new_path" 26755 # Check if we need to convert this using DOS-style short mode. If the path 26756 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26757 # take no chances and rewrite it. 26758 # Note: m4 eats our [], so we need to use [ and ] instead. 26759 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26760 if test "x$has_forbidden_chars" != x; then 26761 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26762 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26763 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26764 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26765 # Going to short mode and back again did indeed matter. Since short mode is 26766 # case insensitive, let's make it lowercase to improve readability. 26767 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26768 # Now convert it back to Unix-style (cygpath) 26769 input_path=`$CYGPATH -u "$shortmode_path"` 26770 new_path="$input_path" 26771 fi 26772 fi 26773 26774 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26775 if test "x$test_cygdrive_prefix" = x; then 26776 # As a simple fix, exclude /usr/bin since it's not a real path. 26777 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26778 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26779 # a path prefixed by /cygdrive for fixpath to work. 26780 new_path="$CYGWIN_ROOT_PATH$input_path" 26781 fi 26782 fi 26783 26784 26785 if test "x$path" != "x$new_path"; then 26786 BOOT_JDK="$new_path" 26787 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26788 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26789 fi 26790 26791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26792 26793 path="$BOOT_JDK" 26794 has_colon=`$ECHO $path | $GREP ^.:` 26795 new_path="$path" 26796 if test "x$has_colon" = x; then 26797 # Not in mixed or Windows style, start by that. 26798 new_path=`cmd //c echo $path` 26799 fi 26800 26801 26802 input_path="$new_path" 26803 # Check if we need to convert this using DOS-style short mode. If the path 26804 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26805 # take no chances and rewrite it. 26806 # Note: m4 eats our [], so we need to use [ and ] instead. 26807 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26808 if test "x$has_forbidden_chars" != x; then 26809 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26810 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26811 fi 26812 26813 26814 windows_path="$new_path" 26815 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26816 unix_path=`$CYGPATH -u "$windows_path"` 26817 new_path="$unix_path" 26818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26819 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26820 new_path="$unix_path" 26821 fi 26822 26823 if test "x$path" != "x$new_path"; then 26824 BOOT_JDK="$new_path" 26825 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26826 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26827 fi 26828 26829 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26830 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26831 26832 else 26833 # We're on a unix platform. Hooray! :) 26834 path="$BOOT_JDK" 26835 has_space=`$ECHO "$path" | $GREP " "` 26836 if test "x$has_space" != x; then 26837 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26838 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26839 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26840 fi 26841 26842 # Use eval to expand a potential ~ 26843 eval path="$path" 26844 if test ! -f "$path" && test ! -d "$path"; then 26845 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26846 fi 26847 26848 if test -d "$path"; then 26849 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26850 else 26851 dir="`$DIRNAME "$path"`" 26852 base="`$BASENAME "$path"`" 26853 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26854 fi 26855 fi 26856 fi 26857 26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26859 $as_echo_n "checking for Boot JDK... " >&6; } 26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26861 $as_echo "$BOOT_JDK" >&6; } 26862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26863 $as_echo_n "checking Boot JDK version... " >&6; } 26864 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26866 $as_echo "$BOOT_JDK_VERSION" >&6; } 26867 fi # end check jdk version 26868 fi # end check javac 26869 fi # end check java 26870 fi # end check boot jdk found 26871 fi 26872 26873 26874 # Test: Is there a JDK installed in default, well-known locations? 26875 26876 if test "x$BOOT_JDK_FOUND" = xno; then 26877 # Now execute the test 26878 26879 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26880 26881 if test "x$BOOT_JDK_FOUND" = xno; then 26882 # Now execute the test 26883 26884 if test "x$ProgramW6432" != x; then 26885 VIRTUAL_DIR="$ProgramW6432/Java" 26886 26887 windows_path="$VIRTUAL_DIR" 26888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26889 unix_path=`$CYGPATH -u "$windows_path"` 26890 VIRTUAL_DIR="$unix_path" 26891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26892 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26893 VIRTUAL_DIR="$unix_path" 26894 fi 26895 26896 26897 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26898 BOOT_JDK_SUFFIX="" 26899 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26900 if test "x$ALL_JDKS_FOUND" != x; then 26901 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26902 26903 if test "x$BOOT_JDK_FOUND" = xno; then 26904 # Now execute the test 26905 26906 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26907 if test -d "$BOOT_JDK"; then 26908 BOOT_JDK_FOUND=maybe 26909 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26910 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26911 fi 26912 26913 26914 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26915 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26916 # Do we have a bin/java? 26917 if test ! -x "$BOOT_JDK/bin/java"; then 26918 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26919 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26920 BOOT_JDK_FOUND=no 26921 else 26922 # Do we have a bin/javac? 26923 if test ! -x "$BOOT_JDK/bin/javac"; then 26924 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26925 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26926 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26927 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26928 BOOT_JDK_FOUND=no 26929 else 26930 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26931 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26932 26933 # Extra M4 quote needed to protect [] in grep expression. 26934 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26935 if test "x$FOUND_CORRECT_VERSION" = x; then 26936 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26937 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26938 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26939 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26940 BOOT_JDK_FOUND=no 26941 else 26942 # We're done! :-) 26943 BOOT_JDK_FOUND=yes 26944 26945 # Only process if variable expands to non-empty 26946 26947 if test "x$BOOT_JDK" != x; then 26948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26949 26950 # Input might be given as Windows format, start by converting to 26951 # unix format. 26952 path="$BOOT_JDK" 26953 new_path=`$CYGPATH -u "$path"` 26954 26955 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26956 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26957 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26958 # "foo.exe" is OK but "foo" is an error. 26959 # 26960 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26961 # It is also a way to make sure we got the proper file name for the real test later on. 26962 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26963 if test "x$test_shortpath" = x; then 26964 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26965 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26966 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26967 fi 26968 26969 # Call helper function which possibly converts this using DOS-style short mode. 26970 # If so, the updated path is stored in $new_path. 26971 26972 input_path="$new_path" 26973 # Check if we need to convert this using DOS-style short mode. If the path 26974 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26975 # take no chances and rewrite it. 26976 # Note: m4 eats our [], so we need to use [ and ] instead. 26977 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26978 if test "x$has_forbidden_chars" != x; then 26979 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26980 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26981 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26982 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26983 # Going to short mode and back again did indeed matter. Since short mode is 26984 # case insensitive, let's make it lowercase to improve readability. 26985 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26986 # Now convert it back to Unix-style (cygpath) 26987 input_path=`$CYGPATH -u "$shortmode_path"` 26988 new_path="$input_path" 26989 fi 26990 fi 26991 26992 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26993 if test "x$test_cygdrive_prefix" = x; then 26994 # As a simple fix, exclude /usr/bin since it's not a real path. 26995 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26996 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26997 # a path prefixed by /cygdrive for fixpath to work. 26998 new_path="$CYGWIN_ROOT_PATH$input_path" 26999 fi 27000 fi 27001 27002 27003 if test "x$path" != "x$new_path"; then 27004 BOOT_JDK="$new_path" 27005 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27006 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27007 fi 27008 27009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27010 27011 path="$BOOT_JDK" 27012 has_colon=`$ECHO $path | $GREP ^.:` 27013 new_path="$path" 27014 if test "x$has_colon" = x; then 27015 # Not in mixed or Windows style, start by that. 27016 new_path=`cmd //c echo $path` 27017 fi 27018 27019 27020 input_path="$new_path" 27021 # Check if we need to convert this using DOS-style short mode. If the path 27022 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27023 # take no chances and rewrite it. 27024 # Note: m4 eats our [], so we need to use [ and ] instead. 27025 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27026 if test "x$has_forbidden_chars" != x; then 27027 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27028 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27029 fi 27030 27031 27032 windows_path="$new_path" 27033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27034 unix_path=`$CYGPATH -u "$windows_path"` 27035 new_path="$unix_path" 27036 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27037 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27038 new_path="$unix_path" 27039 fi 27040 27041 if test "x$path" != "x$new_path"; then 27042 BOOT_JDK="$new_path" 27043 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27044 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27045 fi 27046 27047 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27048 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27049 27050 else 27051 # We're on a unix platform. Hooray! :) 27052 path="$BOOT_JDK" 27053 has_space=`$ECHO "$path" | $GREP " "` 27054 if test "x$has_space" != x; then 27055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27056 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27057 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27058 fi 27059 27060 # Use eval to expand a potential ~ 27061 eval path="$path" 27062 if test ! -f "$path" && test ! -d "$path"; then 27063 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27064 fi 27065 27066 if test -d "$path"; then 27067 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27068 else 27069 dir="`$DIRNAME "$path"`" 27070 base="`$BASENAME "$path"`" 27071 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27072 fi 27073 fi 27074 fi 27075 27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27077 $as_echo_n "checking for Boot JDK... " >&6; } 27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27079 $as_echo "$BOOT_JDK" >&6; } 27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27081 $as_echo_n "checking Boot JDK version... " >&6; } 27082 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27084 $as_echo "$BOOT_JDK_VERSION" >&6; } 27085 fi # end check jdk version 27086 fi # end check javac 27087 fi # end check java 27088 fi # end check boot jdk found 27089 fi 27090 27091 done 27092 fi 27093 27094 fi 27095 27096 27097 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27098 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27099 # Do we have a bin/java? 27100 if test ! -x "$BOOT_JDK/bin/java"; then 27101 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27102 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27103 BOOT_JDK_FOUND=no 27104 else 27105 # Do we have a bin/javac? 27106 if test ! -x "$BOOT_JDK/bin/javac"; then 27107 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27109 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27110 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27111 BOOT_JDK_FOUND=no 27112 else 27113 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27114 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27115 27116 # Extra M4 quote needed to protect [] in grep expression. 27117 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27118 if test "x$FOUND_CORRECT_VERSION" = x; then 27119 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27120 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27121 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27122 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27123 BOOT_JDK_FOUND=no 27124 else 27125 # We're done! :-) 27126 BOOT_JDK_FOUND=yes 27127 27128 # Only process if variable expands to non-empty 27129 27130 if test "x$BOOT_JDK" != x; then 27131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27132 27133 # Input might be given as Windows format, start by converting to 27134 # unix format. 27135 path="$BOOT_JDK" 27136 new_path=`$CYGPATH -u "$path"` 27137 27138 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27139 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27140 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27141 # "foo.exe" is OK but "foo" is an error. 27142 # 27143 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27144 # It is also a way to make sure we got the proper file name for the real test later on. 27145 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27146 if test "x$test_shortpath" = x; then 27147 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27148 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27149 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27150 fi 27151 27152 # Call helper function which possibly converts this using DOS-style short mode. 27153 # If so, the updated path is stored in $new_path. 27154 27155 input_path="$new_path" 27156 # Check if we need to convert this using DOS-style short mode. If the path 27157 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27158 # take no chances and rewrite it. 27159 # Note: m4 eats our [], so we need to use [ and ] instead. 27160 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27161 if test "x$has_forbidden_chars" != x; then 27162 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27163 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27164 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27165 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27166 # Going to short mode and back again did indeed matter. Since short mode is 27167 # case insensitive, let's make it lowercase to improve readability. 27168 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27169 # Now convert it back to Unix-style (cygpath) 27170 input_path=`$CYGPATH -u "$shortmode_path"` 27171 new_path="$input_path" 27172 fi 27173 fi 27174 27175 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27176 if test "x$test_cygdrive_prefix" = x; then 27177 # As a simple fix, exclude /usr/bin since it's not a real path. 27178 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27179 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27180 # a path prefixed by /cygdrive for fixpath to work. 27181 new_path="$CYGWIN_ROOT_PATH$input_path" 27182 fi 27183 fi 27184 27185 27186 if test "x$path" != "x$new_path"; then 27187 BOOT_JDK="$new_path" 27188 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27189 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27190 fi 27191 27192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27193 27194 path="$BOOT_JDK" 27195 has_colon=`$ECHO $path | $GREP ^.:` 27196 new_path="$path" 27197 if test "x$has_colon" = x; then 27198 # Not in mixed or Windows style, start by that. 27199 new_path=`cmd //c echo $path` 27200 fi 27201 27202 27203 input_path="$new_path" 27204 # Check if we need to convert this using DOS-style short mode. If the path 27205 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27206 # take no chances and rewrite it. 27207 # Note: m4 eats our [], so we need to use [ and ] instead. 27208 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27209 if test "x$has_forbidden_chars" != x; then 27210 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27211 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27212 fi 27213 27214 27215 windows_path="$new_path" 27216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27217 unix_path=`$CYGPATH -u "$windows_path"` 27218 new_path="$unix_path" 27219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27220 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27221 new_path="$unix_path" 27222 fi 27223 27224 if test "x$path" != "x$new_path"; then 27225 BOOT_JDK="$new_path" 27226 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27227 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27228 fi 27229 27230 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27231 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27232 27233 else 27234 # We're on a unix platform. Hooray! :) 27235 path="$BOOT_JDK" 27236 has_space=`$ECHO "$path" | $GREP " "` 27237 if test "x$has_space" != x; then 27238 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27239 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27240 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27241 fi 27242 27243 # Use eval to expand a potential ~ 27244 eval path="$path" 27245 if test ! -f "$path" && test ! -d "$path"; then 27246 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27247 fi 27248 27249 if test -d "$path"; then 27250 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27251 else 27252 dir="`$DIRNAME "$path"`" 27253 base="`$BASENAME "$path"`" 27254 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27255 fi 27256 fi 27257 fi 27258 27259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27260 $as_echo_n "checking for Boot JDK... " >&6; } 27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27262 $as_echo "$BOOT_JDK" >&6; } 27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27264 $as_echo_n "checking Boot JDK version... " >&6; } 27265 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27267 $as_echo "$BOOT_JDK_VERSION" >&6; } 27268 fi # end check jdk version 27269 fi # end check javac 27270 fi # end check java 27271 fi # end check boot jdk found 27272 fi 27273 27274 27275 if test "x$BOOT_JDK_FOUND" = xno; then 27276 # Now execute the test 27277 27278 if test "x$PROGRAMW6432" != x; then 27279 VIRTUAL_DIR="$PROGRAMW6432/Java" 27280 27281 windows_path="$VIRTUAL_DIR" 27282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27283 unix_path=`$CYGPATH -u "$windows_path"` 27284 VIRTUAL_DIR="$unix_path" 27285 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27286 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27287 VIRTUAL_DIR="$unix_path" 27288 fi 27289 27290 27291 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27292 BOOT_JDK_SUFFIX="" 27293 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27294 if test "x$ALL_JDKS_FOUND" != x; then 27295 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27296 27297 if test "x$BOOT_JDK_FOUND" = xno; then 27298 # Now execute the test 27299 27300 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27301 if test -d "$BOOT_JDK"; then 27302 BOOT_JDK_FOUND=maybe 27303 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27304 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27305 fi 27306 27307 27308 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27309 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27310 # Do we have a bin/java? 27311 if test ! -x "$BOOT_JDK/bin/java"; then 27312 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27313 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27314 BOOT_JDK_FOUND=no 27315 else 27316 # Do we have a bin/javac? 27317 if test ! -x "$BOOT_JDK/bin/javac"; then 27318 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27319 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27320 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27321 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27322 BOOT_JDK_FOUND=no 27323 else 27324 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27325 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27326 27327 # Extra M4 quote needed to protect [] in grep expression. 27328 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27329 if test "x$FOUND_CORRECT_VERSION" = x; then 27330 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27331 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27332 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27333 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27334 BOOT_JDK_FOUND=no 27335 else 27336 # We're done! :-) 27337 BOOT_JDK_FOUND=yes 27338 27339 # Only process if variable expands to non-empty 27340 27341 if test "x$BOOT_JDK" != x; then 27342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27343 27344 # Input might be given as Windows format, start by converting to 27345 # unix format. 27346 path="$BOOT_JDK" 27347 new_path=`$CYGPATH -u "$path"` 27348 27349 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27350 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27351 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27352 # "foo.exe" is OK but "foo" is an error. 27353 # 27354 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27355 # It is also a way to make sure we got the proper file name for the real test later on. 27356 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27357 if test "x$test_shortpath" = x; then 27358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27359 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27360 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27361 fi 27362 27363 # Call helper function which possibly converts this using DOS-style short mode. 27364 # If so, the updated path is stored in $new_path. 27365 27366 input_path="$new_path" 27367 # Check if we need to convert this using DOS-style short mode. If the path 27368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27369 # take no chances and rewrite it. 27370 # Note: m4 eats our [], so we need to use [ and ] instead. 27371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27372 if test "x$has_forbidden_chars" != x; then 27373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27374 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27375 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27376 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27377 # Going to short mode and back again did indeed matter. Since short mode is 27378 # case insensitive, let's make it lowercase to improve readability. 27379 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27380 # Now convert it back to Unix-style (cygpath) 27381 input_path=`$CYGPATH -u "$shortmode_path"` 27382 new_path="$input_path" 27383 fi 27384 fi 27385 27386 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27387 if test "x$test_cygdrive_prefix" = x; then 27388 # As a simple fix, exclude /usr/bin since it's not a real path. 27389 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27390 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27391 # a path prefixed by /cygdrive for fixpath to work. 27392 new_path="$CYGWIN_ROOT_PATH$input_path" 27393 fi 27394 fi 27395 27396 27397 if test "x$path" != "x$new_path"; then 27398 BOOT_JDK="$new_path" 27399 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27400 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27401 fi 27402 27403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27404 27405 path="$BOOT_JDK" 27406 has_colon=`$ECHO $path | $GREP ^.:` 27407 new_path="$path" 27408 if test "x$has_colon" = x; then 27409 # Not in mixed or Windows style, start by that. 27410 new_path=`cmd //c echo $path` 27411 fi 27412 27413 27414 input_path="$new_path" 27415 # Check if we need to convert this using DOS-style short mode. If the path 27416 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27417 # take no chances and rewrite it. 27418 # Note: m4 eats our [], so we need to use [ and ] instead. 27419 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27420 if test "x$has_forbidden_chars" != x; then 27421 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27422 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27423 fi 27424 27425 27426 windows_path="$new_path" 27427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27428 unix_path=`$CYGPATH -u "$windows_path"` 27429 new_path="$unix_path" 27430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27431 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27432 new_path="$unix_path" 27433 fi 27434 27435 if test "x$path" != "x$new_path"; then 27436 BOOT_JDK="$new_path" 27437 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27438 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27439 fi 27440 27441 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27442 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27443 27444 else 27445 # We're on a unix platform. Hooray! :) 27446 path="$BOOT_JDK" 27447 has_space=`$ECHO "$path" | $GREP " "` 27448 if test "x$has_space" != x; then 27449 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27450 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27451 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27452 fi 27453 27454 # Use eval to expand a potential ~ 27455 eval path="$path" 27456 if test ! -f "$path" && test ! -d "$path"; then 27457 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27458 fi 27459 27460 if test -d "$path"; then 27461 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27462 else 27463 dir="`$DIRNAME "$path"`" 27464 base="`$BASENAME "$path"`" 27465 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27466 fi 27467 fi 27468 fi 27469 27470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27471 $as_echo_n "checking for Boot JDK... " >&6; } 27472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27473 $as_echo "$BOOT_JDK" >&6; } 27474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27475 $as_echo_n "checking Boot JDK version... " >&6; } 27476 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27478 $as_echo "$BOOT_JDK_VERSION" >&6; } 27479 fi # end check jdk version 27480 fi # end check javac 27481 fi # end check java 27482 fi # end check boot jdk found 27483 fi 27484 27485 done 27486 fi 27487 27488 fi 27489 27490 27491 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27492 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27493 # Do we have a bin/java? 27494 if test ! -x "$BOOT_JDK/bin/java"; then 27495 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27496 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27497 BOOT_JDK_FOUND=no 27498 else 27499 # Do we have a bin/javac? 27500 if test ! -x "$BOOT_JDK/bin/javac"; then 27501 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27502 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27503 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27504 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27505 BOOT_JDK_FOUND=no 27506 else 27507 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27508 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27509 27510 # Extra M4 quote needed to protect [] in grep expression. 27511 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27512 if test "x$FOUND_CORRECT_VERSION" = x; then 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27514 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27515 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27516 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27517 BOOT_JDK_FOUND=no 27518 else 27519 # We're done! :-) 27520 BOOT_JDK_FOUND=yes 27521 27522 # Only process if variable expands to non-empty 27523 27524 if test "x$BOOT_JDK" != x; then 27525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27526 27527 # Input might be given as Windows format, start by converting to 27528 # unix format. 27529 path="$BOOT_JDK" 27530 new_path=`$CYGPATH -u "$path"` 27531 27532 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27533 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27534 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27535 # "foo.exe" is OK but "foo" is an error. 27536 # 27537 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27538 # It is also a way to make sure we got the proper file name for the real test later on. 27539 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27540 if test "x$test_shortpath" = x; then 27541 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27542 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27543 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27544 fi 27545 27546 # Call helper function which possibly converts this using DOS-style short mode. 27547 # If so, the updated path is stored in $new_path. 27548 27549 input_path="$new_path" 27550 # Check if we need to convert this using DOS-style short mode. If the path 27551 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27552 # take no chances and rewrite it. 27553 # Note: m4 eats our [], so we need to use [ and ] instead. 27554 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27555 if test "x$has_forbidden_chars" != x; then 27556 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27557 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27558 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27559 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27560 # Going to short mode and back again did indeed matter. Since short mode is 27561 # case insensitive, let's make it lowercase to improve readability. 27562 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27563 # Now convert it back to Unix-style (cygpath) 27564 input_path=`$CYGPATH -u "$shortmode_path"` 27565 new_path="$input_path" 27566 fi 27567 fi 27568 27569 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27570 if test "x$test_cygdrive_prefix" = x; then 27571 # As a simple fix, exclude /usr/bin since it's not a real path. 27572 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27573 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27574 # a path prefixed by /cygdrive for fixpath to work. 27575 new_path="$CYGWIN_ROOT_PATH$input_path" 27576 fi 27577 fi 27578 27579 27580 if test "x$path" != "x$new_path"; then 27581 BOOT_JDK="$new_path" 27582 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27583 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27584 fi 27585 27586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27587 27588 path="$BOOT_JDK" 27589 has_colon=`$ECHO $path | $GREP ^.:` 27590 new_path="$path" 27591 if test "x$has_colon" = x; then 27592 # Not in mixed or Windows style, start by that. 27593 new_path=`cmd //c echo $path` 27594 fi 27595 27596 27597 input_path="$new_path" 27598 # Check if we need to convert this using DOS-style short mode. If the path 27599 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27600 # take no chances and rewrite it. 27601 # Note: m4 eats our [], so we need to use [ and ] instead. 27602 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27603 if test "x$has_forbidden_chars" != x; then 27604 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27605 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27606 fi 27607 27608 27609 windows_path="$new_path" 27610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27611 unix_path=`$CYGPATH -u "$windows_path"` 27612 new_path="$unix_path" 27613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27614 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27615 new_path="$unix_path" 27616 fi 27617 27618 if test "x$path" != "x$new_path"; then 27619 BOOT_JDK="$new_path" 27620 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27621 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27622 fi 27623 27624 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27625 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27626 27627 else 27628 # We're on a unix platform. Hooray! :) 27629 path="$BOOT_JDK" 27630 has_space=`$ECHO "$path" | $GREP " "` 27631 if test "x$has_space" != x; then 27632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27633 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27634 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27635 fi 27636 27637 # Use eval to expand a potential ~ 27638 eval path="$path" 27639 if test ! -f "$path" && test ! -d "$path"; then 27640 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27641 fi 27642 27643 if test -d "$path"; then 27644 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27645 else 27646 dir="`$DIRNAME "$path"`" 27647 base="`$BASENAME "$path"`" 27648 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27649 fi 27650 fi 27651 fi 27652 27653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27654 $as_echo_n "checking for Boot JDK... " >&6; } 27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27656 $as_echo "$BOOT_JDK" >&6; } 27657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27658 $as_echo_n "checking Boot JDK version... " >&6; } 27659 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27661 $as_echo "$BOOT_JDK_VERSION" >&6; } 27662 fi # end check jdk version 27663 fi # end check javac 27664 fi # end check java 27665 fi # end check boot jdk found 27666 fi 27667 27668 27669 if test "x$BOOT_JDK_FOUND" = xno; then 27670 # Now execute the test 27671 27672 if test "x$PROGRAMFILES" != x; then 27673 VIRTUAL_DIR="$PROGRAMFILES/Java" 27674 27675 windows_path="$VIRTUAL_DIR" 27676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27677 unix_path=`$CYGPATH -u "$windows_path"` 27678 VIRTUAL_DIR="$unix_path" 27679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27680 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27681 VIRTUAL_DIR="$unix_path" 27682 fi 27683 27684 27685 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27686 BOOT_JDK_SUFFIX="" 27687 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27688 if test "x$ALL_JDKS_FOUND" != x; then 27689 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27690 27691 if test "x$BOOT_JDK_FOUND" = xno; then 27692 # Now execute the test 27693 27694 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27695 if test -d "$BOOT_JDK"; then 27696 BOOT_JDK_FOUND=maybe 27697 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27698 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27699 fi 27700 27701 27702 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27703 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27704 # Do we have a bin/java? 27705 if test ! -x "$BOOT_JDK/bin/java"; then 27706 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27707 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27708 BOOT_JDK_FOUND=no 27709 else 27710 # Do we have a bin/javac? 27711 if test ! -x "$BOOT_JDK/bin/javac"; then 27712 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27713 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27714 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27715 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27716 BOOT_JDK_FOUND=no 27717 else 27718 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27719 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27720 27721 # Extra M4 quote needed to protect [] in grep expression. 27722 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27723 if test "x$FOUND_CORRECT_VERSION" = x; then 27724 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27725 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27726 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27727 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27728 BOOT_JDK_FOUND=no 27729 else 27730 # We're done! :-) 27731 BOOT_JDK_FOUND=yes 27732 27733 # Only process if variable expands to non-empty 27734 27735 if test "x$BOOT_JDK" != x; then 27736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27737 27738 # Input might be given as Windows format, start by converting to 27739 # unix format. 27740 path="$BOOT_JDK" 27741 new_path=`$CYGPATH -u "$path"` 27742 27743 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27744 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27745 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27746 # "foo.exe" is OK but "foo" is an error. 27747 # 27748 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27749 # It is also a way to make sure we got the proper file name for the real test later on. 27750 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27751 if test "x$test_shortpath" = x; then 27752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27753 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27754 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27755 fi 27756 27757 # Call helper function which possibly converts this using DOS-style short mode. 27758 # If so, the updated path is stored in $new_path. 27759 27760 input_path="$new_path" 27761 # Check if we need to convert this using DOS-style short mode. If the path 27762 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27763 # take no chances and rewrite it. 27764 # Note: m4 eats our [], so we need to use [ and ] instead. 27765 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27766 if test "x$has_forbidden_chars" != x; then 27767 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27768 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27769 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27770 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27771 # Going to short mode and back again did indeed matter. Since short mode is 27772 # case insensitive, let's make it lowercase to improve readability. 27773 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27774 # Now convert it back to Unix-style (cygpath) 27775 input_path=`$CYGPATH -u "$shortmode_path"` 27776 new_path="$input_path" 27777 fi 27778 fi 27779 27780 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27781 if test "x$test_cygdrive_prefix" = x; then 27782 # As a simple fix, exclude /usr/bin since it's not a real path. 27783 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27784 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27785 # a path prefixed by /cygdrive for fixpath to work. 27786 new_path="$CYGWIN_ROOT_PATH$input_path" 27787 fi 27788 fi 27789 27790 27791 if test "x$path" != "x$new_path"; then 27792 BOOT_JDK="$new_path" 27793 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27794 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27795 fi 27796 27797 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27798 27799 path="$BOOT_JDK" 27800 has_colon=`$ECHO $path | $GREP ^.:` 27801 new_path="$path" 27802 if test "x$has_colon" = x; then 27803 # Not in mixed or Windows style, start by that. 27804 new_path=`cmd //c echo $path` 27805 fi 27806 27807 27808 input_path="$new_path" 27809 # Check if we need to convert this using DOS-style short mode. If the path 27810 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27811 # take no chances and rewrite it. 27812 # Note: m4 eats our [], so we need to use [ and ] instead. 27813 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27814 if test "x$has_forbidden_chars" != x; then 27815 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27816 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27817 fi 27818 27819 27820 windows_path="$new_path" 27821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27822 unix_path=`$CYGPATH -u "$windows_path"` 27823 new_path="$unix_path" 27824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27826 new_path="$unix_path" 27827 fi 27828 27829 if test "x$path" != "x$new_path"; then 27830 BOOT_JDK="$new_path" 27831 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27832 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27833 fi 27834 27835 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27836 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27837 27838 else 27839 # We're on a unix platform. Hooray! :) 27840 path="$BOOT_JDK" 27841 has_space=`$ECHO "$path" | $GREP " "` 27842 if test "x$has_space" != x; then 27843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27844 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27845 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27846 fi 27847 27848 # Use eval to expand a potential ~ 27849 eval path="$path" 27850 if test ! -f "$path" && test ! -d "$path"; then 27851 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27852 fi 27853 27854 if test -d "$path"; then 27855 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27856 else 27857 dir="`$DIRNAME "$path"`" 27858 base="`$BASENAME "$path"`" 27859 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27860 fi 27861 fi 27862 fi 27863 27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27865 $as_echo_n "checking for Boot JDK... " >&6; } 27866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27867 $as_echo "$BOOT_JDK" >&6; } 27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27869 $as_echo_n "checking Boot JDK version... " >&6; } 27870 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27872 $as_echo "$BOOT_JDK_VERSION" >&6; } 27873 fi # end check jdk version 27874 fi # end check javac 27875 fi # end check java 27876 fi # end check boot jdk found 27877 fi 27878 27879 done 27880 fi 27881 27882 fi 27883 27884 27885 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27886 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27887 # Do we have a bin/java? 27888 if test ! -x "$BOOT_JDK/bin/java"; then 27889 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27890 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27891 BOOT_JDK_FOUND=no 27892 else 27893 # Do we have a bin/javac? 27894 if test ! -x "$BOOT_JDK/bin/javac"; then 27895 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27896 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27897 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27898 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27899 BOOT_JDK_FOUND=no 27900 else 27901 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27902 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27903 27904 # Extra M4 quote needed to protect [] in grep expression. 27905 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27906 if test "x$FOUND_CORRECT_VERSION" = x; then 27907 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27908 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27909 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27910 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27911 BOOT_JDK_FOUND=no 27912 else 27913 # We're done! :-) 27914 BOOT_JDK_FOUND=yes 27915 27916 # Only process if variable expands to non-empty 27917 27918 if test "x$BOOT_JDK" != x; then 27919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27920 27921 # Input might be given as Windows format, start by converting to 27922 # unix format. 27923 path="$BOOT_JDK" 27924 new_path=`$CYGPATH -u "$path"` 27925 27926 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27927 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27928 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27929 # "foo.exe" is OK but "foo" is an error. 27930 # 27931 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27932 # It is also a way to make sure we got the proper file name for the real test later on. 27933 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27934 if test "x$test_shortpath" = x; then 27935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27936 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27937 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27938 fi 27939 27940 # Call helper function which possibly converts this using DOS-style short mode. 27941 # If so, the updated path is stored in $new_path. 27942 27943 input_path="$new_path" 27944 # Check if we need to convert this using DOS-style short mode. If the path 27945 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27946 # take no chances and rewrite it. 27947 # Note: m4 eats our [], so we need to use [ and ] instead. 27948 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27949 if test "x$has_forbidden_chars" != x; then 27950 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27951 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27952 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27953 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27954 # Going to short mode and back again did indeed matter. Since short mode is 27955 # case insensitive, let's make it lowercase to improve readability. 27956 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27957 # Now convert it back to Unix-style (cygpath) 27958 input_path=`$CYGPATH -u "$shortmode_path"` 27959 new_path="$input_path" 27960 fi 27961 fi 27962 27963 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27964 if test "x$test_cygdrive_prefix" = x; then 27965 # As a simple fix, exclude /usr/bin since it's not a real path. 27966 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27967 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27968 # a path prefixed by /cygdrive for fixpath to work. 27969 new_path="$CYGWIN_ROOT_PATH$input_path" 27970 fi 27971 fi 27972 27973 27974 if test "x$path" != "x$new_path"; then 27975 BOOT_JDK="$new_path" 27976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27977 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27978 fi 27979 27980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27981 27982 path="$BOOT_JDK" 27983 has_colon=`$ECHO $path | $GREP ^.:` 27984 new_path="$path" 27985 if test "x$has_colon" = x; then 27986 # Not in mixed or Windows style, start by that. 27987 new_path=`cmd //c echo $path` 27988 fi 27989 27990 27991 input_path="$new_path" 27992 # Check if we need to convert this using DOS-style short mode. If the path 27993 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27994 # take no chances and rewrite it. 27995 # Note: m4 eats our [], so we need to use [ and ] instead. 27996 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27997 if test "x$has_forbidden_chars" != x; then 27998 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27999 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28000 fi 28001 28002 28003 windows_path="$new_path" 28004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28005 unix_path=`$CYGPATH -u "$windows_path"` 28006 new_path="$unix_path" 28007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28008 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28009 new_path="$unix_path" 28010 fi 28011 28012 if test "x$path" != "x$new_path"; then 28013 BOOT_JDK="$new_path" 28014 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28015 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28016 fi 28017 28018 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28019 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28020 28021 else 28022 # We're on a unix platform. Hooray! :) 28023 path="$BOOT_JDK" 28024 has_space=`$ECHO "$path" | $GREP " "` 28025 if test "x$has_space" != x; then 28026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28027 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28028 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28029 fi 28030 28031 # Use eval to expand a potential ~ 28032 eval path="$path" 28033 if test ! -f "$path" && test ! -d "$path"; then 28034 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28035 fi 28036 28037 if test -d "$path"; then 28038 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28039 else 28040 dir="`$DIRNAME "$path"`" 28041 base="`$BASENAME "$path"`" 28042 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28043 fi 28044 fi 28045 fi 28046 28047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28048 $as_echo_n "checking for Boot JDK... " >&6; } 28049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28050 $as_echo "$BOOT_JDK" >&6; } 28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28052 $as_echo_n "checking Boot JDK version... " >&6; } 28053 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28055 $as_echo "$BOOT_JDK_VERSION" >&6; } 28056 fi # end check jdk version 28057 fi # end check javac 28058 fi # end check java 28059 fi # end check boot jdk found 28060 fi 28061 28062 28063 if test "x$BOOT_JDK_FOUND" = xno; then 28064 # Now execute the test 28065 28066 if test "x$ProgramFiles" != x; then 28067 VIRTUAL_DIR="$ProgramFiles/Java" 28068 28069 windows_path="$VIRTUAL_DIR" 28070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28071 unix_path=`$CYGPATH -u "$windows_path"` 28072 VIRTUAL_DIR="$unix_path" 28073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28074 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28075 VIRTUAL_DIR="$unix_path" 28076 fi 28077 28078 28079 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28080 BOOT_JDK_SUFFIX="" 28081 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28082 if test "x$ALL_JDKS_FOUND" != x; then 28083 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28084 28085 if test "x$BOOT_JDK_FOUND" = xno; then 28086 # Now execute the test 28087 28088 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28089 if test -d "$BOOT_JDK"; then 28090 BOOT_JDK_FOUND=maybe 28091 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28092 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28093 fi 28094 28095 28096 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28097 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28098 # Do we have a bin/java? 28099 if test ! -x "$BOOT_JDK/bin/java"; then 28100 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28101 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28102 BOOT_JDK_FOUND=no 28103 else 28104 # Do we have a bin/javac? 28105 if test ! -x "$BOOT_JDK/bin/javac"; then 28106 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28107 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28108 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28109 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28110 BOOT_JDK_FOUND=no 28111 else 28112 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28113 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28114 28115 # Extra M4 quote needed to protect [] in grep expression. 28116 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28117 if test "x$FOUND_CORRECT_VERSION" = x; then 28118 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28119 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28120 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28121 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28122 BOOT_JDK_FOUND=no 28123 else 28124 # We're done! :-) 28125 BOOT_JDK_FOUND=yes 28126 28127 # Only process if variable expands to non-empty 28128 28129 if test "x$BOOT_JDK" != x; then 28130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28131 28132 # Input might be given as Windows format, start by converting to 28133 # unix format. 28134 path="$BOOT_JDK" 28135 new_path=`$CYGPATH -u "$path"` 28136 28137 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28138 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28139 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28140 # "foo.exe" is OK but "foo" is an error. 28141 # 28142 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28143 # It is also a way to make sure we got the proper file name for the real test later on. 28144 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28145 if test "x$test_shortpath" = x; then 28146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28147 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28148 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28149 fi 28150 28151 # Call helper function which possibly converts this using DOS-style short mode. 28152 # If so, the updated path is stored in $new_path. 28153 28154 input_path="$new_path" 28155 # Check if we need to convert this using DOS-style short mode. If the path 28156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28157 # take no chances and rewrite it. 28158 # Note: m4 eats our [], so we need to use [ and ] instead. 28159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28160 if test "x$has_forbidden_chars" != x; then 28161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28162 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28163 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28164 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28165 # Going to short mode and back again did indeed matter. Since short mode is 28166 # case insensitive, let's make it lowercase to improve readability. 28167 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28168 # Now convert it back to Unix-style (cygpath) 28169 input_path=`$CYGPATH -u "$shortmode_path"` 28170 new_path="$input_path" 28171 fi 28172 fi 28173 28174 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28175 if test "x$test_cygdrive_prefix" = x; then 28176 # As a simple fix, exclude /usr/bin since it's not a real path. 28177 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28178 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28179 # a path prefixed by /cygdrive for fixpath to work. 28180 new_path="$CYGWIN_ROOT_PATH$input_path" 28181 fi 28182 fi 28183 28184 28185 if test "x$path" != "x$new_path"; then 28186 BOOT_JDK="$new_path" 28187 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28188 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28189 fi 28190 28191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28192 28193 path="$BOOT_JDK" 28194 has_colon=`$ECHO $path | $GREP ^.:` 28195 new_path="$path" 28196 if test "x$has_colon" = x; then 28197 # Not in mixed or Windows style, start by that. 28198 new_path=`cmd //c echo $path` 28199 fi 28200 28201 28202 input_path="$new_path" 28203 # Check if we need to convert this using DOS-style short mode. If the path 28204 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28205 # take no chances and rewrite it. 28206 # Note: m4 eats our [], so we need to use [ and ] instead. 28207 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28208 if test "x$has_forbidden_chars" != x; then 28209 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28210 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28211 fi 28212 28213 28214 windows_path="$new_path" 28215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28216 unix_path=`$CYGPATH -u "$windows_path"` 28217 new_path="$unix_path" 28218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28219 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28220 new_path="$unix_path" 28221 fi 28222 28223 if test "x$path" != "x$new_path"; then 28224 BOOT_JDK="$new_path" 28225 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28226 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28227 fi 28228 28229 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28230 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28231 28232 else 28233 # We're on a unix platform. Hooray! :) 28234 path="$BOOT_JDK" 28235 has_space=`$ECHO "$path" | $GREP " "` 28236 if test "x$has_space" != x; then 28237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28238 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28239 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28240 fi 28241 28242 # Use eval to expand a potential ~ 28243 eval path="$path" 28244 if test ! -f "$path" && test ! -d "$path"; then 28245 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28246 fi 28247 28248 if test -d "$path"; then 28249 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28250 else 28251 dir="`$DIRNAME "$path"`" 28252 base="`$BASENAME "$path"`" 28253 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28254 fi 28255 fi 28256 fi 28257 28258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28259 $as_echo_n "checking for Boot JDK... " >&6; } 28260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28261 $as_echo "$BOOT_JDK" >&6; } 28262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28263 $as_echo_n "checking Boot JDK version... " >&6; } 28264 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28266 $as_echo "$BOOT_JDK_VERSION" >&6; } 28267 fi # end check jdk version 28268 fi # end check javac 28269 fi # end check java 28270 fi # end check boot jdk found 28271 fi 28272 28273 done 28274 fi 28275 28276 fi 28277 28278 28279 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28280 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28281 # Do we have a bin/java? 28282 if test ! -x "$BOOT_JDK/bin/java"; then 28283 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28284 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28285 BOOT_JDK_FOUND=no 28286 else 28287 # Do we have a bin/javac? 28288 if test ! -x "$BOOT_JDK/bin/javac"; then 28289 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28290 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28291 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28292 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28293 BOOT_JDK_FOUND=no 28294 else 28295 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28296 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28297 28298 # Extra M4 quote needed to protect [] in grep expression. 28299 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28300 if test "x$FOUND_CORRECT_VERSION" = x; then 28301 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28302 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28303 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28304 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28305 BOOT_JDK_FOUND=no 28306 else 28307 # We're done! :-) 28308 BOOT_JDK_FOUND=yes 28309 28310 # Only process if variable expands to non-empty 28311 28312 if test "x$BOOT_JDK" != x; then 28313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28314 28315 # Input might be given as Windows format, start by converting to 28316 # unix format. 28317 path="$BOOT_JDK" 28318 new_path=`$CYGPATH -u "$path"` 28319 28320 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28321 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28322 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28323 # "foo.exe" is OK but "foo" is an error. 28324 # 28325 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28326 # It is also a way to make sure we got the proper file name for the real test later on. 28327 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28328 if test "x$test_shortpath" = x; then 28329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28330 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28331 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28332 fi 28333 28334 # Call helper function which possibly converts this using DOS-style short mode. 28335 # If so, the updated path is stored in $new_path. 28336 28337 input_path="$new_path" 28338 # Check if we need to convert this using DOS-style short mode. If the path 28339 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28340 # take no chances and rewrite it. 28341 # Note: m4 eats our [], so we need to use [ and ] instead. 28342 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28343 if test "x$has_forbidden_chars" != x; then 28344 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28345 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28346 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28347 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28348 # Going to short mode and back again did indeed matter. Since short mode is 28349 # case insensitive, let's make it lowercase to improve readability. 28350 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28351 # Now convert it back to Unix-style (cygpath) 28352 input_path=`$CYGPATH -u "$shortmode_path"` 28353 new_path="$input_path" 28354 fi 28355 fi 28356 28357 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28358 if test "x$test_cygdrive_prefix" = x; then 28359 # As a simple fix, exclude /usr/bin since it's not a real path. 28360 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28361 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28362 # a path prefixed by /cygdrive for fixpath to work. 28363 new_path="$CYGWIN_ROOT_PATH$input_path" 28364 fi 28365 fi 28366 28367 28368 if test "x$path" != "x$new_path"; then 28369 BOOT_JDK="$new_path" 28370 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28371 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28372 fi 28373 28374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28375 28376 path="$BOOT_JDK" 28377 has_colon=`$ECHO $path | $GREP ^.:` 28378 new_path="$path" 28379 if test "x$has_colon" = x; then 28380 # Not in mixed or Windows style, start by that. 28381 new_path=`cmd //c echo $path` 28382 fi 28383 28384 28385 input_path="$new_path" 28386 # Check if we need to convert this using DOS-style short mode. If the path 28387 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28388 # take no chances and rewrite it. 28389 # Note: m4 eats our [], so we need to use [ and ] instead. 28390 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28391 if test "x$has_forbidden_chars" != x; then 28392 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28393 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28394 fi 28395 28396 28397 windows_path="$new_path" 28398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28399 unix_path=`$CYGPATH -u "$windows_path"` 28400 new_path="$unix_path" 28401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28402 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28403 new_path="$unix_path" 28404 fi 28405 28406 if test "x$path" != "x$new_path"; then 28407 BOOT_JDK="$new_path" 28408 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28409 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28410 fi 28411 28412 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28413 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28414 28415 else 28416 # We're on a unix platform. Hooray! :) 28417 path="$BOOT_JDK" 28418 has_space=`$ECHO "$path" | $GREP " "` 28419 if test "x$has_space" != x; then 28420 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28421 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28422 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28423 fi 28424 28425 # Use eval to expand a potential ~ 28426 eval path="$path" 28427 if test ! -f "$path" && test ! -d "$path"; then 28428 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28429 fi 28430 28431 if test -d "$path"; then 28432 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28433 else 28434 dir="`$DIRNAME "$path"`" 28435 base="`$BASENAME "$path"`" 28436 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28437 fi 28438 fi 28439 fi 28440 28441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28442 $as_echo_n "checking for Boot JDK... " >&6; } 28443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28444 $as_echo "$BOOT_JDK" >&6; } 28445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28446 $as_echo_n "checking Boot JDK version... " >&6; } 28447 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28449 $as_echo "$BOOT_JDK_VERSION" >&6; } 28450 fi # end check jdk version 28451 fi # end check javac 28452 fi # end check java 28453 fi # end check boot jdk found 28454 fi 28455 28456 28457 if test "x$BOOT_JDK_FOUND" = xno; then 28458 # Now execute the test 28459 28460 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 28461 BOOT_JDK_SUFFIX="" 28462 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28463 if test "x$ALL_JDKS_FOUND" != x; then 28464 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28465 28466 if test "x$BOOT_JDK_FOUND" = xno; then 28467 # Now execute the test 28468 28469 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28470 if test -d "$BOOT_JDK"; then 28471 BOOT_JDK_FOUND=maybe 28472 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28473 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28474 fi 28475 28476 28477 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28478 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28479 # Do we have a bin/java? 28480 if test ! -x "$BOOT_JDK/bin/java"; then 28481 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28482 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28483 BOOT_JDK_FOUND=no 28484 else 28485 # Do we have a bin/javac? 28486 if test ! -x "$BOOT_JDK/bin/javac"; then 28487 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28488 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28489 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28490 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28491 BOOT_JDK_FOUND=no 28492 else 28493 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28494 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28495 28496 # Extra M4 quote needed to protect [] in grep expression. 28497 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28498 if test "x$FOUND_CORRECT_VERSION" = x; then 28499 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28500 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28501 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28502 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28503 BOOT_JDK_FOUND=no 28504 else 28505 # We're done! :-) 28506 BOOT_JDK_FOUND=yes 28507 28508 # Only process if variable expands to non-empty 28509 28510 if test "x$BOOT_JDK" != x; then 28511 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28512 28513 # Input might be given as Windows format, start by converting to 28514 # unix format. 28515 path="$BOOT_JDK" 28516 new_path=`$CYGPATH -u "$path"` 28517 28518 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28519 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28520 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28521 # "foo.exe" is OK but "foo" is an error. 28522 # 28523 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28524 # It is also a way to make sure we got the proper file name for the real test later on. 28525 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28526 if test "x$test_shortpath" = x; then 28527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28528 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28529 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28530 fi 28531 28532 # Call helper function which possibly converts this using DOS-style short mode. 28533 # If so, the updated path is stored in $new_path. 28534 28535 input_path="$new_path" 28536 # Check if we need to convert this using DOS-style short mode. If the path 28537 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28538 # take no chances and rewrite it. 28539 # Note: m4 eats our [], so we need to use [ and ] instead. 28540 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28541 if test "x$has_forbidden_chars" != x; then 28542 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28543 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28544 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28545 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28546 # Going to short mode and back again did indeed matter. Since short mode is 28547 # case insensitive, let's make it lowercase to improve readability. 28548 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28549 # Now convert it back to Unix-style (cygpath) 28550 input_path=`$CYGPATH -u "$shortmode_path"` 28551 new_path="$input_path" 28552 fi 28553 fi 28554 28555 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28556 if test "x$test_cygdrive_prefix" = x; then 28557 # As a simple fix, exclude /usr/bin since it's not a real path. 28558 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28559 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28560 # a path prefixed by /cygdrive for fixpath to work. 28561 new_path="$CYGWIN_ROOT_PATH$input_path" 28562 fi 28563 fi 28564 28565 28566 if test "x$path" != "x$new_path"; then 28567 BOOT_JDK="$new_path" 28568 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28569 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28570 fi 28571 28572 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28573 28574 path="$BOOT_JDK" 28575 has_colon=`$ECHO $path | $GREP ^.:` 28576 new_path="$path" 28577 if test "x$has_colon" = x; then 28578 # Not in mixed or Windows style, start by that. 28579 new_path=`cmd //c echo $path` 28580 fi 28581 28582 28583 input_path="$new_path" 28584 # Check if we need to convert this using DOS-style short mode. If the path 28585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28586 # take no chances and rewrite it. 28587 # Note: m4 eats our [], so we need to use [ and ] instead. 28588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28589 if test "x$has_forbidden_chars" != x; then 28590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28591 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28592 fi 28593 28594 28595 windows_path="$new_path" 28596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28597 unix_path=`$CYGPATH -u "$windows_path"` 28598 new_path="$unix_path" 28599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28601 new_path="$unix_path" 28602 fi 28603 28604 if test "x$path" != "x$new_path"; then 28605 BOOT_JDK="$new_path" 28606 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28607 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28608 fi 28609 28610 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28611 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28612 28613 else 28614 # We're on a unix platform. Hooray! :) 28615 path="$BOOT_JDK" 28616 has_space=`$ECHO "$path" | $GREP " "` 28617 if test "x$has_space" != x; then 28618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28619 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28620 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28621 fi 28622 28623 # Use eval to expand a potential ~ 28624 eval path="$path" 28625 if test ! -f "$path" && test ! -d "$path"; then 28626 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28627 fi 28628 28629 if test -d "$path"; then 28630 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28631 else 28632 dir="`$DIRNAME "$path"`" 28633 base="`$BASENAME "$path"`" 28634 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28635 fi 28636 fi 28637 fi 28638 28639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28640 $as_echo_n "checking for Boot JDK... " >&6; } 28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28642 $as_echo "$BOOT_JDK" >&6; } 28643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28644 $as_echo_n "checking Boot JDK version... " >&6; } 28645 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28647 $as_echo "$BOOT_JDK_VERSION" >&6; } 28648 fi # end check jdk version 28649 fi # end check javac 28650 fi # end check java 28651 fi # end check boot jdk found 28652 fi 28653 28654 done 28655 fi 28656 28657 28658 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28659 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28660 # Do we have a bin/java? 28661 if test ! -x "$BOOT_JDK/bin/java"; then 28662 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28663 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28664 BOOT_JDK_FOUND=no 28665 else 28666 # Do we have a bin/javac? 28667 if test ! -x "$BOOT_JDK/bin/javac"; then 28668 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28669 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28670 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28671 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28672 BOOT_JDK_FOUND=no 28673 else 28674 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28675 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28676 28677 # Extra M4 quote needed to protect [] in grep expression. 28678 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28679 if test "x$FOUND_CORRECT_VERSION" = x; then 28680 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28681 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28682 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28683 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28684 BOOT_JDK_FOUND=no 28685 else 28686 # We're done! :-) 28687 BOOT_JDK_FOUND=yes 28688 28689 # Only process if variable expands to non-empty 28690 28691 if test "x$BOOT_JDK" != x; then 28692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28693 28694 # Input might be given as Windows format, start by converting to 28695 # unix format. 28696 path="$BOOT_JDK" 28697 new_path=`$CYGPATH -u "$path"` 28698 28699 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28700 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28701 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28702 # "foo.exe" is OK but "foo" is an error. 28703 # 28704 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28705 # It is also a way to make sure we got the proper file name for the real test later on. 28706 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28707 if test "x$test_shortpath" = x; then 28708 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28709 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28710 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28711 fi 28712 28713 # Call helper function which possibly converts this using DOS-style short mode. 28714 # If so, the updated path is stored in $new_path. 28715 28716 input_path="$new_path" 28717 # Check if we need to convert this using DOS-style short mode. If the path 28718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28719 # take no chances and rewrite it. 28720 # Note: m4 eats our [], so we need to use [ and ] instead. 28721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28722 if test "x$has_forbidden_chars" != x; then 28723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28724 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28725 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28726 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28727 # Going to short mode and back again did indeed matter. Since short mode is 28728 # case insensitive, let's make it lowercase to improve readability. 28729 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28730 # Now convert it back to Unix-style (cygpath) 28731 input_path=`$CYGPATH -u "$shortmode_path"` 28732 new_path="$input_path" 28733 fi 28734 fi 28735 28736 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28737 if test "x$test_cygdrive_prefix" = x; then 28738 # As a simple fix, exclude /usr/bin since it's not a real path. 28739 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28740 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28741 # a path prefixed by /cygdrive for fixpath to work. 28742 new_path="$CYGWIN_ROOT_PATH$input_path" 28743 fi 28744 fi 28745 28746 28747 if test "x$path" != "x$new_path"; then 28748 BOOT_JDK="$new_path" 28749 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28750 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28751 fi 28752 28753 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28754 28755 path="$BOOT_JDK" 28756 has_colon=`$ECHO $path | $GREP ^.:` 28757 new_path="$path" 28758 if test "x$has_colon" = x; then 28759 # Not in mixed or Windows style, start by that. 28760 new_path=`cmd //c echo $path` 28761 fi 28762 28763 28764 input_path="$new_path" 28765 # Check if we need to convert this using DOS-style short mode. If the path 28766 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28767 # take no chances and rewrite it. 28768 # Note: m4 eats our [], so we need to use [ and ] instead. 28769 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28770 if test "x$has_forbidden_chars" != x; then 28771 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28772 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28773 fi 28774 28775 28776 windows_path="$new_path" 28777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28778 unix_path=`$CYGPATH -u "$windows_path"` 28779 new_path="$unix_path" 28780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28781 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28782 new_path="$unix_path" 28783 fi 28784 28785 if test "x$path" != "x$new_path"; then 28786 BOOT_JDK="$new_path" 28787 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28788 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28789 fi 28790 28791 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28792 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28793 28794 else 28795 # We're on a unix platform. Hooray! :) 28796 path="$BOOT_JDK" 28797 has_space=`$ECHO "$path" | $GREP " "` 28798 if test "x$has_space" != x; then 28799 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28800 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28801 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28802 fi 28803 28804 # Use eval to expand a potential ~ 28805 eval path="$path" 28806 if test ! -f "$path" && test ! -d "$path"; then 28807 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28808 fi 28809 28810 if test -d "$path"; then 28811 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28812 else 28813 dir="`$DIRNAME "$path"`" 28814 base="`$BASENAME "$path"`" 28815 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28816 fi 28817 fi 28818 fi 28819 28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28821 $as_echo_n "checking for Boot JDK... " >&6; } 28822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28823 $as_echo "$BOOT_JDK" >&6; } 28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28825 $as_echo_n "checking Boot JDK version... " >&6; } 28826 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28828 $as_echo "$BOOT_JDK_VERSION" >&6; } 28829 fi # end check jdk version 28830 fi # end check javac 28831 fi # end check java 28832 fi # end check boot jdk found 28833 fi 28834 28835 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 28836 28837 if test "x$BOOT_JDK_FOUND" = xno; then 28838 # Now execute the test 28839 28840 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 28841 BOOT_JDK_SUFFIX="/Contents/Home" 28842 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28843 if test "x$ALL_JDKS_FOUND" != x; then 28844 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28845 28846 if test "x$BOOT_JDK_FOUND" = xno; then 28847 # Now execute the test 28848 28849 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28850 if test -d "$BOOT_JDK"; then 28851 BOOT_JDK_FOUND=maybe 28852 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28853 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28854 fi 28855 28856 28857 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28858 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28859 # Do we have a bin/java? 28860 if test ! -x "$BOOT_JDK/bin/java"; then 28861 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28862 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28863 BOOT_JDK_FOUND=no 28864 else 28865 # Do we have a bin/javac? 28866 if test ! -x "$BOOT_JDK/bin/javac"; then 28867 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28868 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28869 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28870 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28871 BOOT_JDK_FOUND=no 28872 else 28873 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28874 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28875 28876 # Extra M4 quote needed to protect [] in grep expression. 28877 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28878 if test "x$FOUND_CORRECT_VERSION" = x; then 28879 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28880 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28881 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28882 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28883 BOOT_JDK_FOUND=no 28884 else 28885 # We're done! :-) 28886 BOOT_JDK_FOUND=yes 28887 28888 # Only process if variable expands to non-empty 28889 28890 if test "x$BOOT_JDK" != x; then 28891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28892 28893 # Input might be given as Windows format, start by converting to 28894 # unix format. 28895 path="$BOOT_JDK" 28896 new_path=`$CYGPATH -u "$path"` 28897 28898 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28899 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28900 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28901 # "foo.exe" is OK but "foo" is an error. 28902 # 28903 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28904 # It is also a way to make sure we got the proper file name for the real test later on. 28905 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28906 if test "x$test_shortpath" = x; then 28907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28908 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28909 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28910 fi 28911 28912 # Call helper function which possibly converts this using DOS-style short mode. 28913 # If so, the updated path is stored in $new_path. 28914 28915 input_path="$new_path" 28916 # Check if we need to convert this using DOS-style short mode. If the path 28917 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28918 # take no chances and rewrite it. 28919 # Note: m4 eats our [], so we need to use [ and ] instead. 28920 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28921 if test "x$has_forbidden_chars" != x; then 28922 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28923 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28924 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28925 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28926 # Going to short mode and back again did indeed matter. Since short mode is 28927 # case insensitive, let's make it lowercase to improve readability. 28928 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28929 # Now convert it back to Unix-style (cygpath) 28930 input_path=`$CYGPATH -u "$shortmode_path"` 28931 new_path="$input_path" 28932 fi 28933 fi 28934 28935 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28936 if test "x$test_cygdrive_prefix" = x; then 28937 # As a simple fix, exclude /usr/bin since it's not a real path. 28938 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28939 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28940 # a path prefixed by /cygdrive for fixpath to work. 28941 new_path="$CYGWIN_ROOT_PATH$input_path" 28942 fi 28943 fi 28944 28945 28946 if test "x$path" != "x$new_path"; then 28947 BOOT_JDK="$new_path" 28948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28949 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28950 fi 28951 28952 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28953 28954 path="$BOOT_JDK" 28955 has_colon=`$ECHO $path | $GREP ^.:` 28956 new_path="$path" 28957 if test "x$has_colon" = x; then 28958 # Not in mixed or Windows style, start by that. 28959 new_path=`cmd //c echo $path` 28960 fi 28961 28962 28963 input_path="$new_path" 28964 # Check if we need to convert this using DOS-style short mode. If the path 28965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28966 # take no chances and rewrite it. 28967 # Note: m4 eats our [], so we need to use [ and ] instead. 28968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28969 if test "x$has_forbidden_chars" != x; then 28970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28971 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28972 fi 28973 28974 28975 windows_path="$new_path" 28976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28977 unix_path=`$CYGPATH -u "$windows_path"` 28978 new_path="$unix_path" 28979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28981 new_path="$unix_path" 28982 fi 28983 28984 if test "x$path" != "x$new_path"; then 28985 BOOT_JDK="$new_path" 28986 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28987 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28988 fi 28989 28990 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28991 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28992 28993 else 28994 # We're on a unix platform. Hooray! :) 28995 path="$BOOT_JDK" 28996 has_space=`$ECHO "$path" | $GREP " "` 28997 if test "x$has_space" != x; then 28998 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28999 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29000 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29001 fi 29002 29003 # Use eval to expand a potential ~ 29004 eval path="$path" 29005 if test ! -f "$path" && test ! -d "$path"; then 29006 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29007 fi 29008 29009 if test -d "$path"; then 29010 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29011 else 29012 dir="`$DIRNAME "$path"`" 29013 base="`$BASENAME "$path"`" 29014 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29015 fi 29016 fi 29017 fi 29018 29019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29020 $as_echo_n "checking for Boot JDK... " >&6; } 29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29022 $as_echo "$BOOT_JDK" >&6; } 29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29024 $as_echo_n "checking Boot JDK version... " >&6; } 29025 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29027 $as_echo "$BOOT_JDK_VERSION" >&6; } 29028 fi # end check jdk version 29029 fi # end check javac 29030 fi # end check java 29031 fi # end check boot jdk found 29032 fi 29033 29034 done 29035 fi 29036 29037 29038 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29039 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29040 # Do we have a bin/java? 29041 if test ! -x "$BOOT_JDK/bin/java"; then 29042 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29043 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29044 BOOT_JDK_FOUND=no 29045 else 29046 # Do we have a bin/javac? 29047 if test ! -x "$BOOT_JDK/bin/javac"; then 29048 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29049 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29050 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29051 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29052 BOOT_JDK_FOUND=no 29053 else 29054 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29055 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29056 29057 # Extra M4 quote needed to protect [] in grep expression. 29058 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29059 if test "x$FOUND_CORRECT_VERSION" = x; then 29060 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29061 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29062 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29063 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29064 BOOT_JDK_FOUND=no 29065 else 29066 # We're done! :-) 29067 BOOT_JDK_FOUND=yes 29068 29069 # Only process if variable expands to non-empty 29070 29071 if test "x$BOOT_JDK" != x; then 29072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29073 29074 # Input might be given as Windows format, start by converting to 29075 # unix format. 29076 path="$BOOT_JDK" 29077 new_path=`$CYGPATH -u "$path"` 29078 29079 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29080 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29081 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29082 # "foo.exe" is OK but "foo" is an error. 29083 # 29084 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29085 # It is also a way to make sure we got the proper file name for the real test later on. 29086 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29087 if test "x$test_shortpath" = x; then 29088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29089 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29090 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29091 fi 29092 29093 # Call helper function which possibly converts this using DOS-style short mode. 29094 # If so, the updated path is stored in $new_path. 29095 29096 input_path="$new_path" 29097 # Check if we need to convert this using DOS-style short mode. If the path 29098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29099 # take no chances and rewrite it. 29100 # Note: m4 eats our [], so we need to use [ and ] instead. 29101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29102 if test "x$has_forbidden_chars" != x; then 29103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29107 # Going to short mode and back again did indeed matter. Since short mode is 29108 # case insensitive, let's make it lowercase to improve readability. 29109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29110 # Now convert it back to Unix-style (cygpath) 29111 input_path=`$CYGPATH -u "$shortmode_path"` 29112 new_path="$input_path" 29113 fi 29114 fi 29115 29116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29117 if test "x$test_cygdrive_prefix" = x; then 29118 # As a simple fix, exclude /usr/bin since it's not a real path. 29119 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29121 # a path prefixed by /cygdrive for fixpath to work. 29122 new_path="$CYGWIN_ROOT_PATH$input_path" 29123 fi 29124 fi 29125 29126 29127 if test "x$path" != "x$new_path"; then 29128 BOOT_JDK="$new_path" 29129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29130 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29131 fi 29132 29133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29134 29135 path="$BOOT_JDK" 29136 has_colon=`$ECHO $path | $GREP ^.:` 29137 new_path="$path" 29138 if test "x$has_colon" = x; then 29139 # Not in mixed or Windows style, start by that. 29140 new_path=`cmd //c echo $path` 29141 fi 29142 29143 29144 input_path="$new_path" 29145 # Check if we need to convert this using DOS-style short mode. If the path 29146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29147 # take no chances and rewrite it. 29148 # Note: m4 eats our [], so we need to use [ and ] instead. 29149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29150 if test "x$has_forbidden_chars" != x; then 29151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29152 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29153 fi 29154 29155 29156 windows_path="$new_path" 29157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29158 unix_path=`$CYGPATH -u "$windows_path"` 29159 new_path="$unix_path" 29160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29162 new_path="$unix_path" 29163 fi 29164 29165 if test "x$path" != "x$new_path"; then 29166 BOOT_JDK="$new_path" 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29168 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29169 fi 29170 29171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29173 29174 else 29175 # We're on a unix platform. Hooray! :) 29176 path="$BOOT_JDK" 29177 has_space=`$ECHO "$path" | $GREP " "` 29178 if test "x$has_space" != x; then 29179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29180 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29181 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29182 fi 29183 29184 # Use eval to expand a potential ~ 29185 eval path="$path" 29186 if test ! -f "$path" && test ! -d "$path"; then 29187 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29188 fi 29189 29190 if test -d "$path"; then 29191 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29192 else 29193 dir="`$DIRNAME "$path"`" 29194 base="`$BASENAME "$path"`" 29195 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29196 fi 29197 fi 29198 fi 29199 29200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29201 $as_echo_n "checking for Boot JDK... " >&6; } 29202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29203 $as_echo "$BOOT_JDK" >&6; } 29204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29205 $as_echo_n "checking Boot JDK version... " >&6; } 29206 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29208 $as_echo "$BOOT_JDK_VERSION" >&6; } 29209 fi # end check jdk version 29210 fi # end check javac 29211 fi # end check java 29212 fi # end check boot jdk found 29213 fi 29214 29215 29216 if test "x$BOOT_JDK_FOUND" = xno; then 29217 # Now execute the test 29218 29219 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 29220 BOOT_JDK_SUFFIX="/Contents/Home" 29221 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29222 if test "x$ALL_JDKS_FOUND" != x; then 29223 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29224 29225 if test "x$BOOT_JDK_FOUND" = xno; then 29226 # Now execute the test 29227 29228 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29229 if test -d "$BOOT_JDK"; then 29230 BOOT_JDK_FOUND=maybe 29231 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29232 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29233 fi 29234 29235 29236 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29237 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29238 # Do we have a bin/java? 29239 if test ! -x "$BOOT_JDK/bin/java"; then 29240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29242 BOOT_JDK_FOUND=no 29243 else 29244 # Do we have a bin/javac? 29245 if test ! -x "$BOOT_JDK/bin/javac"; then 29246 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29248 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29249 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29250 BOOT_JDK_FOUND=no 29251 else 29252 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29253 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29254 29255 # Extra M4 quote needed to protect [] in grep expression. 29256 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29257 if test "x$FOUND_CORRECT_VERSION" = x; then 29258 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29259 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29260 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29261 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29262 BOOT_JDK_FOUND=no 29263 else 29264 # We're done! :-) 29265 BOOT_JDK_FOUND=yes 29266 29267 # Only process if variable expands to non-empty 29268 29269 if test "x$BOOT_JDK" != x; then 29270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29271 29272 # Input might be given as Windows format, start by converting to 29273 # unix format. 29274 path="$BOOT_JDK" 29275 new_path=`$CYGPATH -u "$path"` 29276 29277 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29278 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29279 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29280 # "foo.exe" is OK but "foo" is an error. 29281 # 29282 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29283 # It is also a way to make sure we got the proper file name for the real test later on. 29284 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29285 if test "x$test_shortpath" = x; then 29286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29287 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29288 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29289 fi 29290 29291 # Call helper function which possibly converts this using DOS-style short mode. 29292 # If so, the updated path is stored in $new_path. 29293 29294 input_path="$new_path" 29295 # Check if we need to convert this using DOS-style short mode. If the path 29296 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29297 # take no chances and rewrite it. 29298 # Note: m4 eats our [], so we need to use [ and ] instead. 29299 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29300 if test "x$has_forbidden_chars" != x; then 29301 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29302 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29303 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29304 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29305 # Going to short mode and back again did indeed matter. Since short mode is 29306 # case insensitive, let's make it lowercase to improve readability. 29307 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29308 # Now convert it back to Unix-style (cygpath) 29309 input_path=`$CYGPATH -u "$shortmode_path"` 29310 new_path="$input_path" 29311 fi 29312 fi 29313 29314 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29315 if test "x$test_cygdrive_prefix" = x; then 29316 # As a simple fix, exclude /usr/bin since it's not a real path. 29317 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29318 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29319 # a path prefixed by /cygdrive for fixpath to work. 29320 new_path="$CYGWIN_ROOT_PATH$input_path" 29321 fi 29322 fi 29323 29324 29325 if test "x$path" != "x$new_path"; then 29326 BOOT_JDK="$new_path" 29327 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29328 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29329 fi 29330 29331 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29332 29333 path="$BOOT_JDK" 29334 has_colon=`$ECHO $path | $GREP ^.:` 29335 new_path="$path" 29336 if test "x$has_colon" = x; then 29337 # Not in mixed or Windows style, start by that. 29338 new_path=`cmd //c echo $path` 29339 fi 29340 29341 29342 input_path="$new_path" 29343 # Check if we need to convert this using DOS-style short mode. If the path 29344 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29345 # take no chances and rewrite it. 29346 # Note: m4 eats our [], so we need to use [ and ] instead. 29347 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29348 if test "x$has_forbidden_chars" != x; then 29349 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29350 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29351 fi 29352 29353 29354 windows_path="$new_path" 29355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29356 unix_path=`$CYGPATH -u "$windows_path"` 29357 new_path="$unix_path" 29358 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29359 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29360 new_path="$unix_path" 29361 fi 29362 29363 if test "x$path" != "x$new_path"; then 29364 BOOT_JDK="$new_path" 29365 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29366 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29367 fi 29368 29369 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29370 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29371 29372 else 29373 # We're on a unix platform. Hooray! :) 29374 path="$BOOT_JDK" 29375 has_space=`$ECHO "$path" | $GREP " "` 29376 if test "x$has_space" != x; then 29377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29378 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29379 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29380 fi 29381 29382 # Use eval to expand a potential ~ 29383 eval path="$path" 29384 if test ! -f "$path" && test ! -d "$path"; then 29385 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29386 fi 29387 29388 if test -d "$path"; then 29389 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29390 else 29391 dir="`$DIRNAME "$path"`" 29392 base="`$BASENAME "$path"`" 29393 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29394 fi 29395 fi 29396 fi 29397 29398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29399 $as_echo_n "checking for Boot JDK... " >&6; } 29400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29401 $as_echo "$BOOT_JDK" >&6; } 29402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29403 $as_echo_n "checking Boot JDK version... " >&6; } 29404 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29406 $as_echo "$BOOT_JDK_VERSION" >&6; } 29407 fi # end check jdk version 29408 fi # end check javac 29409 fi # end check java 29410 fi # end check boot jdk found 29411 fi 29412 29413 done 29414 fi 29415 29416 29417 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29418 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29419 # Do we have a bin/java? 29420 if test ! -x "$BOOT_JDK/bin/java"; then 29421 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29422 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29423 BOOT_JDK_FOUND=no 29424 else 29425 # Do we have a bin/javac? 29426 if test ! -x "$BOOT_JDK/bin/javac"; then 29427 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29428 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29429 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29430 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29431 BOOT_JDK_FOUND=no 29432 else 29433 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29434 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29435 29436 # Extra M4 quote needed to protect [] in grep expression. 29437 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29438 if test "x$FOUND_CORRECT_VERSION" = x; then 29439 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29440 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29441 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29442 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29443 BOOT_JDK_FOUND=no 29444 else 29445 # We're done! :-) 29446 BOOT_JDK_FOUND=yes 29447 29448 # Only process if variable expands to non-empty 29449 29450 if test "x$BOOT_JDK" != x; then 29451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29452 29453 # Input might be given as Windows format, start by converting to 29454 # unix format. 29455 path="$BOOT_JDK" 29456 new_path=`$CYGPATH -u "$path"` 29457 29458 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29459 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29460 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29461 # "foo.exe" is OK but "foo" is an error. 29462 # 29463 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29464 # It is also a way to make sure we got the proper file name for the real test later on. 29465 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29466 if test "x$test_shortpath" = x; then 29467 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29468 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29469 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29470 fi 29471 29472 # Call helper function which possibly converts this using DOS-style short mode. 29473 # If so, the updated path is stored in $new_path. 29474 29475 input_path="$new_path" 29476 # Check if we need to convert this using DOS-style short mode. If the path 29477 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29478 # take no chances and rewrite it. 29479 # Note: m4 eats our [], so we need to use [ and ] instead. 29480 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29481 if test "x$has_forbidden_chars" != x; then 29482 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29483 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29484 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29485 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29486 # Going to short mode and back again did indeed matter. Since short mode is 29487 # case insensitive, let's make it lowercase to improve readability. 29488 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29489 # Now convert it back to Unix-style (cygpath) 29490 input_path=`$CYGPATH -u "$shortmode_path"` 29491 new_path="$input_path" 29492 fi 29493 fi 29494 29495 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29496 if test "x$test_cygdrive_prefix" = x; then 29497 # As a simple fix, exclude /usr/bin since it's not a real path. 29498 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29499 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29500 # a path prefixed by /cygdrive for fixpath to work. 29501 new_path="$CYGWIN_ROOT_PATH$input_path" 29502 fi 29503 fi 29504 29505 29506 if test "x$path" != "x$new_path"; then 29507 BOOT_JDK="$new_path" 29508 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29509 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29510 fi 29511 29512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29513 29514 path="$BOOT_JDK" 29515 has_colon=`$ECHO $path | $GREP ^.:` 29516 new_path="$path" 29517 if test "x$has_colon" = x; then 29518 # Not in mixed or Windows style, start by that. 29519 new_path=`cmd //c echo $path` 29520 fi 29521 29522 29523 input_path="$new_path" 29524 # Check if we need to convert this using DOS-style short mode. If the path 29525 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29526 # take no chances and rewrite it. 29527 # Note: m4 eats our [], so we need to use [ and ] instead. 29528 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29529 if test "x$has_forbidden_chars" != x; then 29530 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29531 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29532 fi 29533 29534 29535 windows_path="$new_path" 29536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29537 unix_path=`$CYGPATH -u "$windows_path"` 29538 new_path="$unix_path" 29539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29541 new_path="$unix_path" 29542 fi 29543 29544 if test "x$path" != "x$new_path"; then 29545 BOOT_JDK="$new_path" 29546 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29547 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29548 fi 29549 29550 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29551 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29552 29553 else 29554 # We're on a unix platform. Hooray! :) 29555 path="$BOOT_JDK" 29556 has_space=`$ECHO "$path" | $GREP " "` 29557 if test "x$has_space" != x; then 29558 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29559 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29560 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29561 fi 29562 29563 # Use eval to expand a potential ~ 29564 eval path="$path" 29565 if test ! -f "$path" && test ! -d "$path"; then 29566 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29567 fi 29568 29569 if test -d "$path"; then 29570 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29571 else 29572 dir="`$DIRNAME "$path"`" 29573 base="`$BASENAME "$path"`" 29574 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29575 fi 29576 fi 29577 fi 29578 29579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29580 $as_echo_n "checking for Boot JDK... " >&6; } 29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29582 $as_echo "$BOOT_JDK" >&6; } 29583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29584 $as_echo_n "checking Boot JDK version... " >&6; } 29585 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29587 $as_echo "$BOOT_JDK_VERSION" >&6; } 29588 fi # end check jdk version 29589 fi # end check javac 29590 fi # end check java 29591 fi # end check boot jdk found 29592 fi 29593 29594 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 29595 29596 if test "x$BOOT_JDK_FOUND" = xno; then 29597 # Now execute the test 29598 29599 BOOT_JDK_PREFIX="/usr/lib/jvm" 29600 BOOT_JDK_SUFFIX="" 29601 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29602 if test "x$ALL_JDKS_FOUND" != x; then 29603 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29604 29605 if test "x$BOOT_JDK_FOUND" = xno; then 29606 # Now execute the test 29607 29608 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29609 if test -d "$BOOT_JDK"; then 29610 BOOT_JDK_FOUND=maybe 29611 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29612 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29613 fi 29614 29615 29616 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29617 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29618 # Do we have a bin/java? 29619 if test ! -x "$BOOT_JDK/bin/java"; then 29620 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29621 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29622 BOOT_JDK_FOUND=no 29623 else 29624 # Do we have a bin/javac? 29625 if test ! -x "$BOOT_JDK/bin/javac"; then 29626 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29627 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29628 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29629 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29630 BOOT_JDK_FOUND=no 29631 else 29632 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29633 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29634 29635 # Extra M4 quote needed to protect [] in grep expression. 29636 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29637 if test "x$FOUND_CORRECT_VERSION" = x; then 29638 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29639 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29640 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29641 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29642 BOOT_JDK_FOUND=no 29643 else 29644 # We're done! :-) 29645 BOOT_JDK_FOUND=yes 29646 29647 # Only process if variable expands to non-empty 29648 29649 if test "x$BOOT_JDK" != x; then 29650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29651 29652 # Input might be given as Windows format, start by converting to 29653 # unix format. 29654 path="$BOOT_JDK" 29655 new_path=`$CYGPATH -u "$path"` 29656 29657 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29658 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29659 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29660 # "foo.exe" is OK but "foo" is an error. 29661 # 29662 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29663 # It is also a way to make sure we got the proper file name for the real test later on. 29664 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29665 if test "x$test_shortpath" = x; then 29666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29667 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29668 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29669 fi 29670 29671 # Call helper function which possibly converts this using DOS-style short mode. 29672 # If so, the updated path is stored in $new_path. 29673 29674 input_path="$new_path" 29675 # Check if we need to convert this using DOS-style short mode. If the path 29676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29677 # take no chances and rewrite it. 29678 # Note: m4 eats our [], so we need to use [ and ] instead. 29679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29680 if test "x$has_forbidden_chars" != x; then 29681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29682 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29683 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29684 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29685 # Going to short mode and back again did indeed matter. Since short mode is 29686 # case insensitive, let's make it lowercase to improve readability. 29687 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29688 # Now convert it back to Unix-style (cygpath) 29689 input_path=`$CYGPATH -u "$shortmode_path"` 29690 new_path="$input_path" 29691 fi 29692 fi 29693 29694 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29695 if test "x$test_cygdrive_prefix" = x; then 29696 # As a simple fix, exclude /usr/bin since it's not a real path. 29697 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29698 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29699 # a path prefixed by /cygdrive for fixpath to work. 29700 new_path="$CYGWIN_ROOT_PATH$input_path" 29701 fi 29702 fi 29703 29704 29705 if test "x$path" != "x$new_path"; then 29706 BOOT_JDK="$new_path" 29707 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29708 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29709 fi 29710 29711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29712 29713 path="$BOOT_JDK" 29714 has_colon=`$ECHO $path | $GREP ^.:` 29715 new_path="$path" 29716 if test "x$has_colon" = x; then 29717 # Not in mixed or Windows style, start by that. 29718 new_path=`cmd //c echo $path` 29719 fi 29720 29721 29722 input_path="$new_path" 29723 # Check if we need to convert this using DOS-style short mode. If the path 29724 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29725 # take no chances and rewrite it. 29726 # Note: m4 eats our [], so we need to use [ and ] instead. 29727 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29728 if test "x$has_forbidden_chars" != x; then 29729 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29730 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29731 fi 29732 29733 29734 windows_path="$new_path" 29735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29736 unix_path=`$CYGPATH -u "$windows_path"` 29737 new_path="$unix_path" 29738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29740 new_path="$unix_path" 29741 fi 29742 29743 if test "x$path" != "x$new_path"; then 29744 BOOT_JDK="$new_path" 29745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29746 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29747 fi 29748 29749 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29750 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29751 29752 else 29753 # We're on a unix platform. Hooray! :) 29754 path="$BOOT_JDK" 29755 has_space=`$ECHO "$path" | $GREP " "` 29756 if test "x$has_space" != x; then 29757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29758 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29759 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29760 fi 29761 29762 # Use eval to expand a potential ~ 29763 eval path="$path" 29764 if test ! -f "$path" && test ! -d "$path"; then 29765 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29766 fi 29767 29768 if test -d "$path"; then 29769 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29770 else 29771 dir="`$DIRNAME "$path"`" 29772 base="`$BASENAME "$path"`" 29773 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29774 fi 29775 fi 29776 fi 29777 29778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29779 $as_echo_n "checking for Boot JDK... " >&6; } 29780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29781 $as_echo "$BOOT_JDK" >&6; } 29782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29783 $as_echo_n "checking Boot JDK version... " >&6; } 29784 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29786 $as_echo "$BOOT_JDK_VERSION" >&6; } 29787 fi # end check jdk version 29788 fi # end check javac 29789 fi # end check java 29790 fi # end check boot jdk found 29791 fi 29792 29793 done 29794 fi 29795 29796 29797 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29798 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29799 # Do we have a bin/java? 29800 if test ! -x "$BOOT_JDK/bin/java"; then 29801 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29803 BOOT_JDK_FOUND=no 29804 else 29805 # Do we have a bin/javac? 29806 if test ! -x "$BOOT_JDK/bin/javac"; then 29807 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29808 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29809 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29810 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29811 BOOT_JDK_FOUND=no 29812 else 29813 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29814 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29815 29816 # Extra M4 quote needed to protect [] in grep expression. 29817 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29818 if test "x$FOUND_CORRECT_VERSION" = x; then 29819 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29821 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29822 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29823 BOOT_JDK_FOUND=no 29824 else 29825 # We're done! :-) 29826 BOOT_JDK_FOUND=yes 29827 29828 # Only process if variable expands to non-empty 29829 29830 if test "x$BOOT_JDK" != x; then 29831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29832 29833 # Input might be given as Windows format, start by converting to 29834 # unix format. 29835 path="$BOOT_JDK" 29836 new_path=`$CYGPATH -u "$path"` 29837 29838 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29839 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29840 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29841 # "foo.exe" is OK but "foo" is an error. 29842 # 29843 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29844 # It is also a way to make sure we got the proper file name for the real test later on. 29845 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29846 if test "x$test_shortpath" = x; then 29847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29848 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29849 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29850 fi 29851 29852 # Call helper function which possibly converts this using DOS-style short mode. 29853 # If so, the updated path is stored in $new_path. 29854 29855 input_path="$new_path" 29856 # Check if we need to convert this using DOS-style short mode. If the path 29857 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29858 # take no chances and rewrite it. 29859 # Note: m4 eats our [], so we need to use [ and ] instead. 29860 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29861 if test "x$has_forbidden_chars" != x; then 29862 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29863 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29864 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29865 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29866 # Going to short mode and back again did indeed matter. Since short mode is 29867 # case insensitive, let's make it lowercase to improve readability. 29868 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29869 # Now convert it back to Unix-style (cygpath) 29870 input_path=`$CYGPATH -u "$shortmode_path"` 29871 new_path="$input_path" 29872 fi 29873 fi 29874 29875 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29876 if test "x$test_cygdrive_prefix" = x; then 29877 # As a simple fix, exclude /usr/bin since it's not a real path. 29878 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29879 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29880 # a path prefixed by /cygdrive for fixpath to work. 29881 new_path="$CYGWIN_ROOT_PATH$input_path" 29882 fi 29883 fi 29884 29885 29886 if test "x$path" != "x$new_path"; then 29887 BOOT_JDK="$new_path" 29888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29889 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29890 fi 29891 29892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29893 29894 path="$BOOT_JDK" 29895 has_colon=`$ECHO $path | $GREP ^.:` 29896 new_path="$path" 29897 if test "x$has_colon" = x; then 29898 # Not in mixed or Windows style, start by that. 29899 new_path=`cmd //c echo $path` 29900 fi 29901 29902 29903 input_path="$new_path" 29904 # Check if we need to convert this using DOS-style short mode. If the path 29905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29906 # take no chances and rewrite it. 29907 # Note: m4 eats our [], so we need to use [ and ] instead. 29908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29909 if test "x$has_forbidden_chars" != x; then 29910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29911 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29912 fi 29913 29914 29915 windows_path="$new_path" 29916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29917 unix_path=`$CYGPATH -u "$windows_path"` 29918 new_path="$unix_path" 29919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29921 new_path="$unix_path" 29922 fi 29923 29924 if test "x$path" != "x$new_path"; then 29925 BOOT_JDK="$new_path" 29926 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29927 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29928 fi 29929 29930 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29931 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29932 29933 else 29934 # We're on a unix platform. Hooray! :) 29935 path="$BOOT_JDK" 29936 has_space=`$ECHO "$path" | $GREP " "` 29937 if test "x$has_space" != x; then 29938 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29939 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29940 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29941 fi 29942 29943 # Use eval to expand a potential ~ 29944 eval path="$path" 29945 if test ! -f "$path" && test ! -d "$path"; then 29946 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29947 fi 29948 29949 if test -d "$path"; then 29950 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29951 else 29952 dir="`$DIRNAME "$path"`" 29953 base="`$BASENAME "$path"`" 29954 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29955 fi 29956 fi 29957 fi 29958 29959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29960 $as_echo_n "checking for Boot JDK... " >&6; } 29961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29962 $as_echo "$BOOT_JDK" >&6; } 29963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29964 $as_echo_n "checking Boot JDK version... " >&6; } 29965 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29967 $as_echo "$BOOT_JDK_VERSION" >&6; } 29968 fi # end check jdk version 29969 fi # end check javac 29970 fi # end check java 29971 fi # end check boot jdk found 29972 fi 29973 29974 fi 29975 29976 29977 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29978 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29979 # Do we have a bin/java? 29980 if test ! -x "$BOOT_JDK/bin/java"; then 29981 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29982 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29983 BOOT_JDK_FOUND=no 29984 else 29985 # Do we have a bin/javac? 29986 if test ! -x "$BOOT_JDK/bin/javac"; then 29987 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29988 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29989 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29990 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29991 BOOT_JDK_FOUND=no 29992 else 29993 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29994 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29995 29996 # Extra M4 quote needed to protect [] in grep expression. 29997 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29998 if test "x$FOUND_CORRECT_VERSION" = x; then 29999 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30000 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30001 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 30002 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 30003 BOOT_JDK_FOUND=no 30004 else 30005 # We're done! :-) 30006 BOOT_JDK_FOUND=yes 30007 30008 # Only process if variable expands to non-empty 30009 30010 if test "x$BOOT_JDK" != x; then 30011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30012 30013 # Input might be given as Windows format, start by converting to 30014 # unix format. 30015 path="$BOOT_JDK" 30016 new_path=`$CYGPATH -u "$path"` 30017 30018 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30019 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30020 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30021 # "foo.exe" is OK but "foo" is an error. 30022 # 30023 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30024 # It is also a way to make sure we got the proper file name for the real test later on. 30025 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30026 if test "x$test_shortpath" = x; then 30027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30028 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30029 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30030 fi 30031 30032 # Call helper function which possibly converts this using DOS-style short mode. 30033 # If so, the updated path is stored in $new_path. 30034 30035 input_path="$new_path" 30036 # Check if we need to convert this using DOS-style short mode. If the path 30037 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30038 # take no chances and rewrite it. 30039 # Note: m4 eats our [], so we need to use [ and ] instead. 30040 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30041 if test "x$has_forbidden_chars" != x; then 30042 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30043 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30044 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30045 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30046 # Going to short mode and back again did indeed matter. Since short mode is 30047 # case insensitive, let's make it lowercase to improve readability. 30048 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30049 # Now convert it back to Unix-style (cygpath) 30050 input_path=`$CYGPATH -u "$shortmode_path"` 30051 new_path="$input_path" 30052 fi 30053 fi 30054 30055 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30056 if test "x$test_cygdrive_prefix" = x; then 30057 # As a simple fix, exclude /usr/bin since it's not a real path. 30058 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30059 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30060 # a path prefixed by /cygdrive for fixpath to work. 30061 new_path="$CYGWIN_ROOT_PATH$input_path" 30062 fi 30063 fi 30064 30065 30066 if test "x$path" != "x$new_path"; then 30067 BOOT_JDK="$new_path" 30068 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30069 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30070 fi 30071 30072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30073 30074 path="$BOOT_JDK" 30075 has_colon=`$ECHO $path | $GREP ^.:` 30076 new_path="$path" 30077 if test "x$has_colon" = x; then 30078 # Not in mixed or Windows style, start by that. 30079 new_path=`cmd //c echo $path` 30080 fi 30081 30082 30083 input_path="$new_path" 30084 # Check if we need to convert this using DOS-style short mode. If the path 30085 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30086 # take no chances and rewrite it. 30087 # Note: m4 eats our [], so we need to use [ and ] instead. 30088 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30089 if test "x$has_forbidden_chars" != x; then 30090 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30091 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30092 fi 30093 30094 30095 windows_path="$new_path" 30096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30097 unix_path=`$CYGPATH -u "$windows_path"` 30098 new_path="$unix_path" 30099 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30100 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30101 new_path="$unix_path" 30102 fi 30103 30104 if test "x$path" != "x$new_path"; then 30105 BOOT_JDK="$new_path" 30106 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30107 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30108 fi 30109 30110 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30111 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30112 30113 else 30114 # We're on a unix platform. Hooray! :) 30115 path="$BOOT_JDK" 30116 has_space=`$ECHO "$path" | $GREP " "` 30117 if test "x$has_space" != x; then 30118 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30119 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30120 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30121 fi 30122 30123 # Use eval to expand a potential ~ 30124 eval path="$path" 30125 if test ! -f "$path" && test ! -d "$path"; then 30126 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30127 fi 30128 30129 if test -d "$path"; then 30130 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30131 else 30132 dir="`$DIRNAME "$path"`" 30133 base="`$BASENAME "$path"`" 30134 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30135 fi 30136 fi 30137 fi 30138 30139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30140 $as_echo_n "checking for Boot JDK... " >&6; } 30141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30142 $as_echo "$BOOT_JDK" >&6; } 30143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30144 $as_echo_n "checking Boot JDK version... " >&6; } 30145 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30147 $as_echo "$BOOT_JDK_VERSION" >&6; } 30148 fi # end check jdk version 30149 fi # end check javac 30150 fi # end check java 30151 fi # end check boot jdk found 30152 fi 30153 30154 30155 # If we haven't found anything yet, we've truly lost. Give up. 30156 if test "x$BOOT_JDK_FOUND" = xno; then 30157 30158 # Print a helpful message on how to acquire the necessary build dependency. 30159 # openjdk is the help tag: freetype, cups, alsa etc 30160 MISSING_DEPENDENCY=openjdk 30161 30162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30163 cygwin_help $MISSING_DEPENDENCY 30164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30165 msys_help $MISSING_DEPENDENCY 30166 else 30167 PKGHANDLER_COMMAND= 30168 30169 case $PKGHANDLER in 30170 apt-get) 30171 apt_help $MISSING_DEPENDENCY ;; 30172 yum) 30173 yum_help $MISSING_DEPENDENCY ;; 30174 brew) 30175 brew_help $MISSING_DEPENDENCY ;; 30176 port) 30177 port_help $MISSING_DEPENDENCY ;; 30178 pkgutil) 30179 pkgutil_help $MISSING_DEPENDENCY ;; 30180 pkgadd) 30181 pkgadd_help $MISSING_DEPENDENCY ;; 30182 esac 30183 30184 if test "x$PKGHANDLER_COMMAND" != x; then 30185 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30186 fi 30187 fi 30188 30189 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 30190 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 30191 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitly setting --with-boot-jdk" >&5 30192 $as_echo "$as_me: This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30193 as_fn_error $? "Cannot continue" "$LINENO" 5 30194 fi 30195 30196 30197 30198 # Setup tools from the Boot JDK. 30199 30200 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30201 30202 # Publish this variable in the help. 30203 30204 30205 if [ -z "${JAVA+x}" ]; then 30206 # The variable is not set by user, try to locate tool using the code snippet 30207 30208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30209 $as_echo_n "checking for java in Boot JDK... " >&6; } 30210 JAVA=$BOOT_JDK/bin/java 30211 if test ! -x $JAVA; then 30212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30213 $as_echo "not found" >&6; } 30214 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30215 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30216 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30217 fi 30218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30219 $as_echo "ok" >&6; } 30220 30221 30222 else 30223 # The variable is set, but is it from the command line or the environment? 30224 30225 # Try to remove the string !JAVA! from our list. 30226 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 30227 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30228 # If it failed, the variable was not from the command line. Ignore it, 30229 # but warn the user (except for BASH, which is always set by the calling BASH). 30230 if test "xJAVA" != xBASH; then 30231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 30232 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 30233 fi 30234 # Try to locate tool using the code snippet 30235 30236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30237 $as_echo_n "checking for java in Boot JDK... " >&6; } 30238 JAVA=$BOOT_JDK/bin/java 30239 if test ! -x $JAVA; then 30240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30241 $as_echo "not found" >&6; } 30242 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30243 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30244 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30245 fi 30246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30247 $as_echo "ok" >&6; } 30248 30249 30250 else 30251 # If it succeeded, then it was overridden by the user. We will use it 30252 # for the tool. 30253 30254 # First remove it from the list of overridden variables, so we can test 30255 # for unknown variables in the end. 30256 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30257 30258 # Check if we try to supply an empty value 30259 if test "x$JAVA" = x; then 30260 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30261 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30263 $as_echo_n "checking for JAVA... " >&6; } 30264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30265 $as_echo "disabled" >&6; } 30266 else 30267 # Check if the provided tool contains a complete path. 30268 tool_specified="$JAVA" 30269 tool_basename="${tool_specified##*/}" 30270 if test "x$tool_basename" = "x$tool_specified"; then 30271 # A command without a complete path is provided, search $PATH. 30272 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30273 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30274 # Extract the first word of "$tool_basename", so it can be a program name with args. 30275 set dummy $tool_basename; ac_word=$2 30276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30277 $as_echo_n "checking for $ac_word... " >&6; } 30278 if ${ac_cv_path_JAVA+:} false; then : 30279 $as_echo_n "(cached) " >&6 30280 else 30281 case $JAVA in 30282 [\\/]* | ?:[\\/]*) 30283 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30284 ;; 30285 *) 30286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30287 for as_dir in $PATH 30288 do 30289 IFS=$as_save_IFS 30290 test -z "$as_dir" && as_dir=. 30291 for ac_exec_ext in '' $ac_executable_extensions; do 30292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30293 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30295 break 2 30296 fi 30297 done 30298 done 30299 IFS=$as_save_IFS 30300 30301 ;; 30302 esac 30303 fi 30304 JAVA=$ac_cv_path_JAVA 30305 if test -n "$JAVA"; then 30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30307 $as_echo "$JAVA" >&6; } 30308 else 30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30310 $as_echo "no" >&6; } 30311 fi 30312 30313 30314 if test "x$JAVA" = x; then 30315 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30316 fi 30317 else 30318 # Otherwise we believe it is a complete path. Use it as it is. 30319 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30320 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30322 $as_echo_n "checking for JAVA... " >&6; } 30323 if test ! -x "$tool_specified"; then 30324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30325 $as_echo "not found" >&6; } 30326 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30327 fi 30328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30329 $as_echo "$tool_specified" >&6; } 30330 fi 30331 fi 30332 fi 30333 30334 fi 30335 30336 30337 30338 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30339 30340 # Publish this variable in the help. 30341 30342 30343 if [ -z "${JAVAC+x}" ]; then 30344 # The variable is not set by user, try to locate tool using the code snippet 30345 30346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30347 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30348 JAVAC=$BOOT_JDK/bin/javac 30349 if test ! -x $JAVAC; then 30350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30351 $as_echo "not found" >&6; } 30352 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30353 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30354 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30355 fi 30356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30357 $as_echo "ok" >&6; } 30358 30359 30360 else 30361 # The variable is set, but is it from the command line or the environment? 30362 30363 # Try to remove the string !JAVAC! from our list. 30364 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30365 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30366 # If it failed, the variable was not from the command line. Ignore it, 30367 # but warn the user (except for BASH, which is always set by the calling BASH). 30368 if test "xJAVAC" != xBASH; then 30369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30370 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30371 fi 30372 # Try to locate tool using the code snippet 30373 30374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30375 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30376 JAVAC=$BOOT_JDK/bin/javac 30377 if test ! -x $JAVAC; then 30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30379 $as_echo "not found" >&6; } 30380 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30381 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30382 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30383 fi 30384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30385 $as_echo "ok" >&6; } 30386 30387 30388 else 30389 # If it succeeded, then it was overridden by the user. We will use it 30390 # for the tool. 30391 30392 # First remove it from the list of overridden variables, so we can test 30393 # for unknown variables in the end. 30394 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30395 30396 # Check if we try to supply an empty value 30397 if test "x$JAVAC" = x; then 30398 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30399 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30401 $as_echo_n "checking for JAVAC... " >&6; } 30402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30403 $as_echo "disabled" >&6; } 30404 else 30405 # Check if the provided tool contains a complete path. 30406 tool_specified="$JAVAC" 30407 tool_basename="${tool_specified##*/}" 30408 if test "x$tool_basename" = "x$tool_specified"; then 30409 # A command without a complete path is provided, search $PATH. 30410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30411 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30412 # Extract the first word of "$tool_basename", so it can be a program name with args. 30413 set dummy $tool_basename; ac_word=$2 30414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30415 $as_echo_n "checking for $ac_word... " >&6; } 30416 if ${ac_cv_path_JAVAC+:} false; then : 30417 $as_echo_n "(cached) " >&6 30418 else 30419 case $JAVAC in 30420 [\\/]* | ?:[\\/]*) 30421 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30422 ;; 30423 *) 30424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30425 for as_dir in $PATH 30426 do 30427 IFS=$as_save_IFS 30428 test -z "$as_dir" && as_dir=. 30429 for ac_exec_ext in '' $ac_executable_extensions; do 30430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30431 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30433 break 2 30434 fi 30435 done 30436 done 30437 IFS=$as_save_IFS 30438 30439 ;; 30440 esac 30441 fi 30442 JAVAC=$ac_cv_path_JAVAC 30443 if test -n "$JAVAC"; then 30444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30445 $as_echo "$JAVAC" >&6; } 30446 else 30447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30448 $as_echo "no" >&6; } 30449 fi 30450 30451 30452 if test "x$JAVAC" = x; then 30453 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30454 fi 30455 else 30456 # Otherwise we believe it is a complete path. Use it as it is. 30457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 30458 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 30459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30460 $as_echo_n "checking for JAVAC... " >&6; } 30461 if test ! -x "$tool_specified"; then 30462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30463 $as_echo "not found" >&6; } 30464 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 30465 fi 30466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30467 $as_echo "$tool_specified" >&6; } 30468 fi 30469 fi 30470 fi 30471 30472 fi 30473 30474 30475 30476 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30477 30478 # Publish this variable in the help. 30479 30480 30481 if [ -z "${JAVAH+x}" ]; then 30482 # The variable is not set by user, try to locate tool using the code snippet 30483 30484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30485 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30486 JAVAH=$BOOT_JDK/bin/javah 30487 if test ! -x $JAVAH; then 30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30489 $as_echo "not found" >&6; } 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30491 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30492 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30493 fi 30494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30495 $as_echo "ok" >&6; } 30496 30497 30498 else 30499 # The variable is set, but is it from the command line or the environment? 30500 30501 # Try to remove the string !JAVAH! from our list. 30502 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 30503 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30504 # If it failed, the variable was not from the command line. Ignore it, 30505 # but warn the user (except for BASH, which is always set by the calling BASH). 30506 if test "xJAVAH" != xBASH; then 30507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 30508 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 30509 fi 30510 # Try to locate tool using the code snippet 30511 30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30513 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30514 JAVAH=$BOOT_JDK/bin/javah 30515 if test ! -x $JAVAH; then 30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30517 $as_echo "not found" >&6; } 30518 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30519 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30520 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30521 fi 30522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30523 $as_echo "ok" >&6; } 30524 30525 30526 else 30527 # If it succeeded, then it was overridden by the user. We will use it 30528 # for the tool. 30529 30530 # First remove it from the list of overridden variables, so we can test 30531 # for unknown variables in the end. 30532 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30533 30534 # Check if we try to supply an empty value 30535 if test "x$JAVAH" = x; then 30536 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 30537 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 30538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30539 $as_echo_n "checking for JAVAH... " >&6; } 30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30541 $as_echo "disabled" >&6; } 30542 else 30543 # Check if the provided tool contains a complete path. 30544 tool_specified="$JAVAH" 30545 tool_basename="${tool_specified##*/}" 30546 if test "x$tool_basename" = "x$tool_specified"; then 30547 # A command without a complete path is provided, search $PATH. 30548 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 30549 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 30550 # Extract the first word of "$tool_basename", so it can be a program name with args. 30551 set dummy $tool_basename; ac_word=$2 30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30553 $as_echo_n "checking for $ac_word... " >&6; } 30554 if ${ac_cv_path_JAVAH+:} false; then : 30555 $as_echo_n "(cached) " >&6 30556 else 30557 case $JAVAH in 30558 [\\/]* | ?:[\\/]*) 30559 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 30560 ;; 30561 *) 30562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30563 for as_dir in $PATH 30564 do 30565 IFS=$as_save_IFS 30566 test -z "$as_dir" && as_dir=. 30567 for ac_exec_ext in '' $ac_executable_extensions; do 30568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30569 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 30570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30571 break 2 30572 fi 30573 done 30574 done 30575 IFS=$as_save_IFS 30576 30577 ;; 30578 esac 30579 fi 30580 JAVAH=$ac_cv_path_JAVAH 30581 if test -n "$JAVAH"; then 30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 30583 $as_echo "$JAVAH" >&6; } 30584 else 30585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30586 $as_echo "no" >&6; } 30587 fi 30588 30589 30590 if test "x$JAVAH" = x; then 30591 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30592 fi 30593 else 30594 # Otherwise we believe it is a complete path. Use it as it is. 30595 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 30596 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 30597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30598 $as_echo_n "checking for JAVAH... " >&6; } 30599 if test ! -x "$tool_specified"; then 30600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30601 $as_echo "not found" >&6; } 30602 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 30603 fi 30604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30605 $as_echo "$tool_specified" >&6; } 30606 fi 30607 fi 30608 fi 30609 30610 fi 30611 30612 30613 30614 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30615 30616 # Publish this variable in the help. 30617 30618 30619 if [ -z "${JAR+x}" ]; then 30620 # The variable is not set by user, try to locate tool using the code snippet 30621 30622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 30623 $as_echo_n "checking for jar in Boot JDK... " >&6; } 30624 JAR=$BOOT_JDK/bin/jar 30625 if test ! -x $JAR; then 30626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30627 $as_echo "not found" >&6; } 30628 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30629 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30630 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 30631 fi 30632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30633 $as_echo "ok" >&6; } 30634 30635 30636 else 30637 # The variable is set, but is it from the command line or the environment? 30638 30639 # Try to remove the string !JAR! from our list. 30640 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 30641 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30642 # If it failed, the variable was not from the command line. Ignore it, 30643 # but warn the user (except for BASH, which is always set by the calling BASH). 30644 if test "xJAR" != xBASH; then 30645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 30646 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 30647 fi 30648 # Try to locate tool using the code snippet 30649 30650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 30651 $as_echo_n "checking for jar in Boot JDK... " >&6; } 30652 JAR=$BOOT_JDK/bin/jar 30653 if test ! -x $JAR; then 30654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30655 $as_echo "not found" >&6; } 30656 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30657 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30658 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 30659 fi 30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30661 $as_echo "ok" >&6; } 30662 30663 30664 else 30665 # If it succeeded, then it was overridden by the user. We will use it 30666 # for the tool. 30667 30668 # First remove it from the list of overridden variables, so we can test 30669 # for unknown variables in the end. 30670 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30671 30672 # Check if we try to supply an empty value 30673 if test "x$JAR" = x; then 30674 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 30675 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 30676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 30677 $as_echo_n "checking for JAR... " >&6; } 30678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30679 $as_echo "disabled" >&6; } 30680 else 30681 # Check if the provided tool contains a complete path. 30682 tool_specified="$JAR" 30683 tool_basename="${tool_specified##*/}" 30684 if test "x$tool_basename" = "x$tool_specified"; then 30685 # A command without a complete path is provided, search $PATH. 30686 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 30687 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 30688 # Extract the first word of "$tool_basename", so it can be a program name with args. 30689 set dummy $tool_basename; ac_word=$2 30690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30691 $as_echo_n "checking for $ac_word... " >&6; } 30692 if ${ac_cv_path_JAR+:} false; then : 30693 $as_echo_n "(cached) " >&6 30694 else 30695 case $JAR in 30696 [\\/]* | ?:[\\/]*) 30697 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 30698 ;; 30699 *) 30700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30701 for as_dir in $PATH 30702 do 30703 IFS=$as_save_IFS 30704 test -z "$as_dir" && as_dir=. 30705 for ac_exec_ext in '' $ac_executable_extensions; do 30706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30707 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 30708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30709 break 2 30710 fi 30711 done 30712 done 30713 IFS=$as_save_IFS 30714 30715 ;; 30716 esac 30717 fi 30718 JAR=$ac_cv_path_JAR 30719 if test -n "$JAR"; then 30720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 30721 $as_echo "$JAR" >&6; } 30722 else 30723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30724 $as_echo "no" >&6; } 30725 fi 30726 30727 30728 if test "x$JAR" = x; then 30729 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30730 fi 30731 else 30732 # Otherwise we believe it is a complete path. Use it as it is. 30733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 30734 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 30735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 30736 $as_echo_n "checking for JAR... " >&6; } 30737 if test ! -x "$tool_specified"; then 30738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30739 $as_echo "not found" >&6; } 30740 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 30741 fi 30742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30743 $as_echo "$tool_specified" >&6; } 30744 fi 30745 fi 30746 fi 30747 30748 fi 30749 30750 30751 30752 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30753 30754 # Publish this variable in the help. 30755 30756 30757 if [ -z "${JARSIGNER+x}" ]; then 30758 # The variable is not set by user, try to locate tool using the code snippet 30759 30760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30761 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30762 JARSIGNER=$BOOT_JDK/bin/jarsigner 30763 if test ! -x $JARSIGNER; then 30764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30765 $as_echo "not found" >&6; } 30766 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30767 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30768 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30769 fi 30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30771 $as_echo "ok" >&6; } 30772 30773 30774 else 30775 # The variable is set, but is it from the command line or the environment? 30776 30777 # Try to remove the string !JARSIGNER! from our list. 30778 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 30779 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30780 # If it failed, the variable was not from the command line. Ignore it, 30781 # but warn the user (except for BASH, which is always set by the calling BASH). 30782 if test "xJARSIGNER" != xBASH; then 30783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 30784 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 30785 fi 30786 # Try to locate tool using the code snippet 30787 30788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30789 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30790 JARSIGNER=$BOOT_JDK/bin/jarsigner 30791 if test ! -x $JARSIGNER; then 30792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30793 $as_echo "not found" >&6; } 30794 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30795 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30796 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30797 fi 30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30799 $as_echo "ok" >&6; } 30800 30801 30802 else 30803 # If it succeeded, then it was overridden by the user. We will use it 30804 # for the tool. 30805 30806 # First remove it from the list of overridden variables, so we can test 30807 # for unknown variables in the end. 30808 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30809 30810 # Check if we try to supply an empty value 30811 if test "x$JARSIGNER" = x; then 30812 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 30813 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30815 $as_echo_n "checking for JARSIGNER... " >&6; } 30816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30817 $as_echo "disabled" >&6; } 30818 else 30819 # Check if the provided tool contains a complete path. 30820 tool_specified="$JARSIGNER" 30821 tool_basename="${tool_specified##*/}" 30822 if test "x$tool_basename" = "x$tool_specified"; then 30823 # A command without a complete path is provided, search $PATH. 30824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 30825 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 30826 # Extract the first word of "$tool_basename", so it can be a program name with args. 30827 set dummy $tool_basename; ac_word=$2 30828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30829 $as_echo_n "checking for $ac_word... " >&6; } 30830 if ${ac_cv_path_JARSIGNER+:} false; then : 30831 $as_echo_n "(cached) " >&6 30832 else 30833 case $JARSIGNER in 30834 [\\/]* | ?:[\\/]*) 30835 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 30836 ;; 30837 *) 30838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30839 for as_dir in $PATH 30840 do 30841 IFS=$as_save_IFS 30842 test -z "$as_dir" && as_dir=. 30843 for ac_exec_ext in '' $ac_executable_extensions; do 30844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30845 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 30846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30847 break 2 30848 fi 30849 done 30850 done 30851 IFS=$as_save_IFS 30852 30853 ;; 30854 esac 30855 fi 30856 JARSIGNER=$ac_cv_path_JARSIGNER 30857 if test -n "$JARSIGNER"; then 30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 30859 $as_echo "$JARSIGNER" >&6; } 30860 else 30861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30862 $as_echo "no" >&6; } 30863 fi 30864 30865 30866 if test "x$JARSIGNER" = x; then 30867 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30868 fi 30869 else 30870 # Otherwise we believe it is a complete path. Use it as it is. 30871 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 30872 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 30873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30874 $as_echo_n "checking for JARSIGNER... " >&6; } 30875 if test ! -x "$tool_specified"; then 30876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30877 $as_echo "not found" >&6; } 30878 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 30879 fi 30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30881 $as_echo "$tool_specified" >&6; } 30882 fi 30883 fi 30884 fi 30885 30886 fi 30887 30888 30889 30890 # Finally, set some other options... 30891 30892 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 30893 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 30894 30895 30896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK supports modules" >&5 30897 $as_echo_n "checking if Boot JDK supports modules... " >&6; } 30898 if "$JAVA" --list-modules > /dev/null 2>&1; then 30899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30900 $as_echo "yes" >&6; } 30901 BOOT_JDK_MODULAR="true" 30902 else 30903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30904 $as_echo "no" >&6; } 30905 BOOT_JDK_MODULAR="false" 30906 fi 30907 30908 30909 30910 30911 # Check if the boot jdk is 32 or 64 bit 30912 if "$JAVA" -d64 -version > /dev/null 2>&1; then 30913 BOOT_JDK_BITS="64" 30914 else 30915 BOOT_JDK_BITS="32" 30916 fi 30917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 30918 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 30919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 30920 $as_echo "$BOOT_JDK_BITS" >&6; } 30921 30922 30923 30924 # Check whether --with-build-jdk was given. 30925 if test "${with_build_jdk+set}" = set; then : 30926 withval=$with_build_jdk; 30927 fi 30928 30929 30930 CREATE_BUILDJDK=false 30931 EXTERNAL_BUILDJDK=false 30932 BUILD_JDK_FOUND="no" 30933 if test "x$with_build_jdk" != "x"; then 30934 30935 if test "x$BUILD_JDK_FOUND" = xno; then 30936 # Execute the test 30937 30938 if test "x$with_build_jdk" != x; then 30939 BUILD_JDK=$with_build_jdk 30940 BUILD_JDK_FOUND=maybe 30941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 30942 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 30943 fi 30944 30945 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30946 if test "x$BUILD_JDK_FOUND" = xmaybe; then 30947 # Do we have a bin/java? 30948 if test ! -x "$BUILD_JDK/bin/java"; then 30949 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 30950 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 30951 BUILD_JDK_FOUND=no 30952 elif test ! -x "$BUILD_JDK/bin/jlink"; then 30953 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 30954 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 30955 BUILD_JDK_FOUND=no 30956 elif test ! -x "$BUILD_JDK/bin/jmod"; then 30957 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 30958 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 30959 BUILD_JDK_FOUND=no 30960 elif test ! -x "$BUILD_JDK/bin/javac"; then 30961 # Do we have a bin/javac? 30962 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 30963 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 30964 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 30965 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 30966 BUILD_JDK_FOUND=no 30967 else 30968 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30969 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30970 30971 # Extra M4 quote needed to protect [] in grep expression. 30972 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"'` 30973 if test "x$FOUND_CORRECT_VERSION" = x; then 30974 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 30975 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 30976 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 9)" >&5 30977 $as_echo "$as_me: (Your Build JDK must be version 9)" >&6;} 30978 BUILD_JDK_FOUND=no 30979 else 30980 # We're done! 30981 BUILD_JDK_FOUND=yes 30982 30983 # Only process if variable expands to non-empty 30984 30985 if test "x$BUILD_JDK" != x; then 30986 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30987 30988 # Input might be given as Windows format, start by converting to 30989 # unix format. 30990 path="$BUILD_JDK" 30991 new_path=`$CYGPATH -u "$path"` 30992 30993 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30994 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30995 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30996 # "foo.exe" is OK but "foo" is an error. 30997 # 30998 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30999 # It is also a way to make sure we got the proper file name for the real test later on. 31000 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31001 if test "x$test_shortpath" = x; then 31002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31003 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31004 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 31005 fi 31006 31007 # Call helper function which possibly converts this using DOS-style short mode. 31008 # If so, the updated path is stored in $new_path. 31009 31010 input_path="$new_path" 31011 # Check if we need to convert this using DOS-style short mode. If the path 31012 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31013 # take no chances and rewrite it. 31014 # Note: m4 eats our [], so we need to use [ and ] instead. 31015 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31016 if test "x$has_forbidden_chars" != x; then 31017 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31018 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31019 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31020 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31021 # Going to short mode and back again did indeed matter. Since short mode is 31022 # case insensitive, let's make it lowercase to improve readability. 31023 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31024 # Now convert it back to Unix-style (cygpath) 31025 input_path=`$CYGPATH -u "$shortmode_path"` 31026 new_path="$input_path" 31027 fi 31028 fi 31029 31030 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31031 if test "x$test_cygdrive_prefix" = x; then 31032 # As a simple fix, exclude /usr/bin since it's not a real path. 31033 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31034 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31035 # a path prefixed by /cygdrive for fixpath to work. 31036 new_path="$CYGWIN_ROOT_PATH$input_path" 31037 fi 31038 fi 31039 31040 31041 if test "x$path" != "x$new_path"; then 31042 BUILD_JDK="$new_path" 31043 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31044 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31045 fi 31046 31047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31048 31049 path="$BUILD_JDK" 31050 has_colon=`$ECHO $path | $GREP ^.:` 31051 new_path="$path" 31052 if test "x$has_colon" = x; then 31053 # Not in mixed or Windows style, start by that. 31054 new_path=`cmd //c echo $path` 31055 fi 31056 31057 31058 input_path="$new_path" 31059 # Check if we need to convert this using DOS-style short mode. If the path 31060 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31061 # take no chances and rewrite it. 31062 # Note: m4 eats our [], so we need to use [ and ] instead. 31063 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31064 if test "x$has_forbidden_chars" != x; then 31065 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31066 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31067 fi 31068 31069 31070 windows_path="$new_path" 31071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31072 unix_path=`$CYGPATH -u "$windows_path"` 31073 new_path="$unix_path" 31074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31075 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31076 new_path="$unix_path" 31077 fi 31078 31079 if test "x$path" != "x$new_path"; then 31080 BUILD_JDK="$new_path" 31081 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31082 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31083 fi 31084 31085 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31086 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31087 31088 else 31089 # We're on a unix platform. Hooray! :) 31090 path="$BUILD_JDK" 31091 has_space=`$ECHO "$path" | $GREP " "` 31092 if test "x$has_space" != x; then 31093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31094 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31095 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31096 fi 31097 31098 # Use eval to expand a potential ~ 31099 eval path="$path" 31100 if test ! -f "$path" && test ! -d "$path"; then 31101 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 31102 fi 31103 31104 if test -d "$path"; then 31105 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 31106 else 31107 dir="`$DIRNAME "$path"`" 31108 base="`$BASENAME "$path"`" 31109 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 31110 fi 31111 fi 31112 fi 31113 31114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31115 $as_echo_n "checking for Build JDK... " >&6; } 31116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 31117 $as_echo "$BUILD_JDK" >&6; } 31118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 31119 $as_echo_n "checking Build JDK version... " >&6; } 31120 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 31121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 31122 $as_echo "$BUILD_JDK_VERSION" >&6; } 31123 fi # end check jdk version 31124 fi # end check java 31125 fi # end check build jdk found 31126 fi 31127 31128 EXTERNAL_BUILDJDK=true 31129 else 31130 if test "x$COMPILE_TYPE" = "xcross"; then 31131 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 31132 BUILD_JDK_FOUND=yes 31133 CREATE_BUILDJDK=true 31134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31135 $as_echo_n "checking for Build JDK... " >&6; } 31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 31137 $as_echo "yes, will build it for the host platform" >&6; } 31138 else 31139 BUILD_JDK="\$(JDK_OUTPUTDIR)" 31140 BUILD_JDK_FOUND=yes 31141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31142 $as_echo_n "checking for Build JDK... " >&6; } 31143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 31144 $as_echo "yes, will use output dir" >&6; } 31145 fi 31146 fi 31147 31148 JMOD="$BUILD_JDK/bin/jmod" 31149 JLINK="$BUILD_JDK/bin/jlink" 31150 31151 31152 31153 if test "x$BUILD_JDK_FOUND" != "xyes"; then 31154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31155 $as_echo_n "checking for Build JDK... " >&6; } 31156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31157 $as_echo "no" >&6; } 31158 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 31159 fi 31160 31161 31162 31163 31164 31165 31166 ############################################################################### 31167 # 31168 # Configure the sources to use. We can add or override individual directories. 31169 # 31170 ############################################################################### 31171 31172 31173 # Where are the sources. 31174 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 31175 CORBA_TOPDIR="$SRC_ROOT/corba" 31176 JAXP_TOPDIR="$SRC_ROOT/jaxp" 31177 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 31178 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 31179 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 31180 JDK_TOPDIR="$SRC_ROOT/jdk" 31181 31182 31183 31184 31185 31186 31187 31188 31189 31190 # This feature is no longer supported. 31191 31192 31193 31194 # Check whether --with-add-source-root was given. 31195 if test "${with_add_source_root+set}" = set; then : 31196 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 31197 $as_echo "$as_me: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&2;} 31198 fi 31199 31200 31201 31202 31203 # Check whether --with-override-source-root was given. 31204 if test "${with_override_source_root+set}" = set; then : 31205 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 31206 $as_echo "$as_me: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&2;} 31207 fi 31208 31209 31210 31211 31212 # Check whether --with-adds-and-overrides was given. 31213 if test "${with_adds_and_overrides+set}" = set; then : 31214 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 31215 $as_echo "$as_me: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&2;} 31216 fi 31217 31218 31219 31220 31221 # Check whether --with-override-langtools was given. 31222 if test "${with_override_langtools+set}" = set; then : 31223 withval=$with_override_langtools; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&5 31224 $as_echo "$as_me: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&2;} 31225 fi 31226 31227 31228 31229 31230 # Check whether --with-override-corba was given. 31231 if test "${with_override_corba+set}" = set; then : 31232 withval=$with_override_corba; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-corba is deprecated and will be ignored." >&5 31233 $as_echo "$as_me: WARNING: Option --with-override-corba is deprecated and will be ignored." >&2;} 31234 fi 31235 31236 31237 31238 31239 # Check whether --with-override-jaxp was given. 31240 if test "${with_override_jaxp+set}" = set; then : 31241 withval=$with_override_jaxp; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&5 31242 $as_echo "$as_me: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&2;} 31243 fi 31244 31245 31246 31247 31248 # Check whether --with-override-jaxws was given. 31249 if test "${with_override_jaxws+set}" = set; then : 31250 withval=$with_override_jaxws; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&5 31251 $as_echo "$as_me: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&2;} 31252 fi 31253 31254 31255 31256 31257 # Check whether --with-override-hotspot was given. 31258 if test "${with_override_hotspot+set}" = set; then : 31259 withval=$with_override_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&5 31260 $as_echo "$as_me: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&2;} 31261 fi 31262 31263 31264 31265 31266 # Check whether --with-override-nashorn was given. 31267 if test "${with_override_nashorn+set}" = set; then : 31268 withval=$with_override_nashorn; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&5 31269 $as_echo "$as_me: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&2;} 31270 fi 31271 31272 31273 31274 31275 # Check whether --with-override-jdk was given. 31276 if test "${with_override_jdk+set}" = set; then : 31277 withval=$with_override_jdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&5 31278 $as_echo "$as_me: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&2;} 31279 fi 31280 31281 31282 31283 31284 BUILD_OUTPUT="$OUTPUT_ROOT" 31285 31286 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 31287 31288 31289 31290 # Check whether --with-import_hotspot was given. 31291 if test "${with_import_hotspot+set}" = set; then : 31292 withval=$with_import_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-import_hotspot is deprecated and will be ignored." >&5 31293 $as_echo "$as_me: WARNING: Option --with-import_hotspot is deprecated and will be ignored." >&2;} 31294 fi 31295 31296 31297 31298 31299 31300 31301 # Check whether --with-import-modules was given. 31302 if test "${with_import_modules+set}" = set; then : 31303 withval=$with_import_modules; 31304 fi 31305 31306 31307 if test "x$with_import_modules" != x \ 31308 && test "x$with_import_modules" != "xno"; then 31309 if test -d "$with_import_modules"; then 31310 IMPORT_MODULES_TOPDIR="$with_import_modules" 31311 31312 # Only process if variable expands to non-empty 31313 31314 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31316 31317 # Input might be given as Windows format, start by converting to 31318 # unix format. 31319 path="$IMPORT_MODULES_TOPDIR" 31320 new_path=`$CYGPATH -u "$path"` 31321 31322 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31323 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31324 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31325 # "foo.exe" is OK but "foo" is an error. 31326 # 31327 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31328 # It is also a way to make sure we got the proper file name for the real test later on. 31329 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31330 if test "x$test_shortpath" = x; then 31331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31332 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31333 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31334 fi 31335 31336 # Call helper function which possibly converts this using DOS-style short mode. 31337 # If so, the updated path is stored in $new_path. 31338 31339 input_path="$new_path" 31340 # Check if we need to convert this using DOS-style short mode. If the path 31341 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31342 # take no chances and rewrite it. 31343 # Note: m4 eats our [], so we need to use [ and ] instead. 31344 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31345 if test "x$has_forbidden_chars" != x; then 31346 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31347 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31348 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31349 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31350 # Going to short mode and back again did indeed matter. Since short mode is 31351 # case insensitive, let's make it lowercase to improve readability. 31352 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31353 # Now convert it back to Unix-style (cygpath) 31354 input_path=`$CYGPATH -u "$shortmode_path"` 31355 new_path="$input_path" 31356 fi 31357 fi 31358 31359 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31360 if test "x$test_cygdrive_prefix" = x; then 31361 # As a simple fix, exclude /usr/bin since it's not a real path. 31362 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31363 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31364 # a path prefixed by /cygdrive for fixpath to work. 31365 new_path="$CYGWIN_ROOT_PATH$input_path" 31366 fi 31367 fi 31368 31369 31370 if test "x$path" != "x$new_path"; then 31371 IMPORT_MODULES_TOPDIR="$new_path" 31372 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31373 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31374 fi 31375 31376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31377 31378 path="$IMPORT_MODULES_TOPDIR" 31379 has_colon=`$ECHO $path | $GREP ^.:` 31380 new_path="$path" 31381 if test "x$has_colon" = x; then 31382 # Not in mixed or Windows style, start by that. 31383 new_path=`cmd //c echo $path` 31384 fi 31385 31386 31387 input_path="$new_path" 31388 # Check if we need to convert this using DOS-style short mode. If the path 31389 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31390 # take no chances and rewrite it. 31391 # Note: m4 eats our [], so we need to use [ and ] instead. 31392 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31393 if test "x$has_forbidden_chars" != x; then 31394 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31395 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31396 fi 31397 31398 31399 windows_path="$new_path" 31400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31401 unix_path=`$CYGPATH -u "$windows_path"` 31402 new_path="$unix_path" 31403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31404 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31405 new_path="$unix_path" 31406 fi 31407 31408 if test "x$path" != "x$new_path"; then 31409 IMPORT_MODULES_TOPDIR="$new_path" 31410 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31411 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31412 fi 31413 31414 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31415 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31416 31417 else 31418 # We're on a unix platform. Hooray! :) 31419 path="$IMPORT_MODULES_TOPDIR" 31420 has_space=`$ECHO "$path" | $GREP " "` 31421 if test "x$has_space" != x; then 31422 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31423 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31424 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31425 fi 31426 31427 # Use eval to expand a potential ~ 31428 eval path="$path" 31429 if test ! -f "$path" && test ! -d "$path"; then 31430 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31431 fi 31432 31433 if test -d "$path"; then 31434 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 31435 else 31436 dir="`$DIRNAME "$path"`" 31437 base="`$BASENAME "$path"`" 31438 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 31439 fi 31440 fi 31441 fi 31442 31443 elif test -e "$with_import_modules"; then 31444 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 31445 $RM -rf "$IMPORT_MODULES_TOPDIR" 31446 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 31447 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 31448 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31449 fi 31450 else 31451 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31452 fi 31453 fi 31454 31455 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 31456 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 31457 fi 31458 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 31459 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 31460 fi 31461 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 31462 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 31463 fi 31464 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 31465 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 31466 fi 31467 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then 31468 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal" 31469 fi 31470 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then 31471 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man" 31472 fi 31473 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 31474 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31475 fi 31476 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31477 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31478 fi 31479 31480 31481 31482 31483 31484 31485 31486 31487 31488 31489 31490 ############################################################################### 31491 # 31492 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31493 # native code. 31494 # 31495 ############################################################################### 31496 31497 # See if we are doing a complete static build or not 31498 31499 # Check whether --enable-static-build was given. 31500 if test "${enable_static_build+set}" = set; then : 31501 enableval=$enable_static_build; 31502 fi 31503 31504 STATIC_BUILD=false 31505 if test "x$enable_static_build" = "xyes"; then 31506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31507 $as_echo_n "checking if static build is enabled... " >&6; } 31508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31509 $as_echo "yes" >&6; } 31510 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 31511 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 31512 fi 31513 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31514 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31515 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31516 STATIC_BUILD=true 31517 elif test "x$enable_static_build" = "xno"; then 31518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31519 $as_echo_n "checking if static build is enabled... " >&6; } 31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31521 $as_echo "no" >&6; } 31522 elif test "x$enable_static_build" != "x"; then 31523 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 31524 fi 31525 31526 31527 31528 31529 # First determine the toolchain type (compiler family) 31530 31531 31532 # Check whether --with-toolchain-type was given. 31533 if test "${with_toolchain_type+set}" = set; then : 31534 withval=$with_toolchain_type; 31535 fi 31536 31537 31538 # Use indirect variable referencing 31539 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 31540 VALID_TOOLCHAINS=${!toolchain_var_name} 31541 31542 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31543 if test -n "$XCODEBUILD"; then 31544 # On Mac OS X, default toolchain to clang after Xcode 5 31545 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 31546 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 31547 if test $? -ne 0; then 31548 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 31549 fi 31550 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 31551 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 31552 $CUT -f 1 -d .` 31553 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 31554 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 31555 if test $XCODE_MAJOR_VERSION -ge 5; then 31556 DEFAULT_TOOLCHAIN="clang" 31557 else 31558 DEFAULT_TOOLCHAIN="gcc" 31559 fi 31560 else 31561 # If Xcode is not installed, but the command line tools are 31562 # then we can't run xcodebuild. On these systems we should 31563 # default to clang 31564 DEFAULT_TOOLCHAIN="clang" 31565 fi 31566 else 31567 # First toolchain type in the list is the default 31568 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 31569 fi 31570 31571 if test "x$with_toolchain_type" = xlist; then 31572 # List all toolchains 31573 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 31574 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 31575 for toolchain in $VALID_TOOLCHAINS; do 31576 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 31577 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31578 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 31579 done 31580 31581 exit 0 31582 elif test "x$with_toolchain_type" != x; then 31583 # User override; check that it is valid 31584 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 31585 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 31586 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 31587 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 31588 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 31589 as_fn_error $? "Cannot continue." "$LINENO" 5 31590 fi 31591 TOOLCHAIN_TYPE=$with_toolchain_type 31592 else 31593 # No flag given, use default 31594 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 31595 fi 31596 31597 31598 TOOLCHAIN_CC_BINARY_clang="clang" 31599 TOOLCHAIN_CC_BINARY_gcc="gcc" 31600 TOOLCHAIN_CC_BINARY_microsoft="cl" 31601 TOOLCHAIN_CC_BINARY_solstudio="cc" 31602 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 31603 31604 TOOLCHAIN_CXX_BINARY_clang="clang++" 31605 TOOLCHAIN_CXX_BINARY_gcc="g++" 31606 TOOLCHAIN_CXX_BINARY_microsoft="cl" 31607 TOOLCHAIN_CXX_BINARY_solstudio="CC" 31608 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 31609 31610 # Use indirect variable referencing 31611 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 31612 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31613 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 31614 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 31615 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 31616 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 31617 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 31618 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 31619 31620 31621 # Define filename patterns 31622 if test "x$OPENJDK_TARGET_OS" = xwindows; then 31623 LIBRARY_PREFIX= 31624 SHARED_LIBRARY_SUFFIX='.dll' 31625 STATIC_LIBRARY_SUFFIX='.lib' 31626 SHARED_LIBRARY='$1.dll' 31627 STATIC_LIBRARY='$1.lib' 31628 OBJ_SUFFIX='.obj' 31629 EXE_SUFFIX='.exe' 31630 else 31631 LIBRARY_PREFIX=lib 31632 SHARED_LIBRARY_SUFFIX='.so' 31633 STATIC_LIBRARY_SUFFIX='.a' 31634 SHARED_LIBRARY='lib$1.so' 31635 STATIC_LIBRARY='lib$1.a' 31636 OBJ_SUFFIX='.o' 31637 EXE_SUFFIX='' 31638 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31639 # For full static builds, we're overloading the SHARED_LIBRARY 31640 # variables in order to limit the amount of changes required. 31641 # It would be better to remove SHARED and just use LIBRARY and 31642 # LIBRARY_SUFFIX for libraries that can be built either 31643 # shared or static and use STATIC_* for libraries that are 31644 # always built statically. 31645 if test "x$STATIC_BUILD" = xtrue; then 31646 SHARED_LIBRARY='lib$1.a' 31647 SHARED_LIBRARY_SUFFIX='.a' 31648 else 31649 SHARED_LIBRARY='lib$1.dylib' 31650 SHARED_LIBRARY_SUFFIX='.dylib' 31651 fi 31652 fi 31653 fi 31654 31655 31656 31657 31658 31659 31660 31661 31662 31663 31664 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 31665 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 31666 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 31667 else 31668 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 31669 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 31670 fi 31671 31672 31673 # User supplied flags should be used when configure detects compilers 31674 31675 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 31676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 31677 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 31678 fi 31679 31680 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 31681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 31682 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 31683 fi 31684 31685 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 31686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 31687 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 31688 fi 31689 31690 31691 # Check whether --with-extra-cflags was given. 31692 if test "${with_extra_cflags+set}" = set; then : 31693 withval=$with_extra_cflags; 31694 fi 31695 31696 31697 31698 # Check whether --with-extra-cxxflags was given. 31699 if test "${with_extra_cxxflags+set}" = set; then : 31700 withval=$with_extra_cxxflags; 31701 fi 31702 31703 31704 31705 # Check whether --with-extra-ldflags was given. 31706 if test "${with_extra_ldflags+set}" = set; then : 31707 withval=$with_extra_ldflags; 31708 fi 31709 31710 31711 EXTRA_CFLAGS="$with_extra_cflags" 31712 EXTRA_CXXFLAGS="$with_extra_cxxflags" 31713 EXTRA_LDFLAGS="$with_extra_ldflags" 31714 31715 31716 31717 31718 31719 # The global CFLAGS and LDLAGS variables are used by configure tests and 31720 # should include the extra parameters 31721 CFLAGS="$EXTRA_CFLAGS" 31722 CXXFLAGS="$EXTRA_CXXFLAGS" 31723 LDFLAGS="$EXTRA_LDFLAGS" 31724 CPPFLAGS="" 31725 31726 # The sysroot cflags are needed for configure to be able to run the compilers 31727 31728 if test "x$SYSROOT" != "x"; then 31729 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 31730 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31731 # Solaris Studio does not have a concept of sysroot. Instead we must 31732 # make sure the default include and lib dirs are appended to each 31733 # compile and link command line. Must also add -I-xbuiltin to enable 31734 # inlining of system functions and intrinsics. 31735 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 31736 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 31737 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 31738 fi 31739 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 31740 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 31741 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 31742 elif test "x$TOOLCHAIN_TYPE" = xclang; then 31743 SYSROOT_CFLAGS="-isysroot $SYSROOT" 31744 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 31745 fi 31746 # The global CFLAGS and LDFLAGS variables need these for configure to function 31747 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 31748 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 31749 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 31750 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 31751 fi 31752 31753 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31754 # We also need -iframework<path>/System/Library/Frameworks 31755 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31756 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31757 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 31758 # set this here so it doesn't have to be peppered throughout the forest 31759 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31760 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31761 fi 31762 31763 31764 31765 31766 31767 # Then detect the actual binaries needed 31768 31769 # FIXME: Is this needed? 31770 ac_ext=cpp 31771 ac_cpp='$CXXCPP $CPPFLAGS' 31772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31775 31776 31777 # Store the CFLAGS etc passed to the configure script. 31778 ORG_CFLAGS="$CFLAGS" 31779 ORG_CXXFLAGS="$CXXFLAGS" 31780 31781 # autoconf magic only relies on PATH, so update it if tools dir is specified 31782 OLD_PATH="$PATH" 31783 31784 # On Windows, we need to detect the visual studio installation first. 31785 # This will change the PATH, but we need to keep that new PATH even 31786 # after toolchain detection is done, since the compiler (on x86) uses 31787 # it for DLL resolution in runtime. 31788 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 31789 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 31790 31791 # Store path to cygwin link.exe to help excluding it when searching for 31792 # VS linker. This must be done before changing the PATH when looking for VS. 31793 # Extract the first word of "link", so it can be a program name with args. 31794 set dummy link; ac_word=$2 31795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31796 $as_echo_n "checking for $ac_word... " >&6; } 31797 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 31798 $as_echo_n "(cached) " >&6 31799 else 31800 case $CYGWIN_LINK in 31801 [\\/]* | ?:[\\/]*) 31802 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 31803 ;; 31804 *) 31805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31806 for as_dir in $PATH 31807 do 31808 IFS=$as_save_IFS 31809 test -z "$as_dir" && as_dir=. 31810 for ac_exec_ext in '' $ac_executable_extensions; do 31811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31812 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 31813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31814 break 2 31815 fi 31816 done 31817 done 31818 IFS=$as_save_IFS 31819 31820 ;; 31821 esac 31822 fi 31823 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 31824 if test -n "$CYGWIN_LINK"; then 31825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 31826 $as_echo "$CYGWIN_LINK" >&6; } 31827 else 31828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31829 $as_echo "no" >&6; } 31830 fi 31831 31832 31833 if test "x$CYGWIN_LINK" != x; then 31834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 31835 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 31836 "$CYGWIN_LINK" --version > /dev/null 31837 if test $? -eq 0 ; then 31838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31839 $as_echo "yes" >&6; } 31840 else 31841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31842 $as_echo "no" >&6; } 31843 # This might be the VS linker. Don't exclude it later on. 31844 CYGWIN_LINK="" 31845 fi 31846 fi 31847 31848 # First-hand choice is to locate and run the vsvars bat file. 31849 31850 31851 # Check whether --with-toolchain-version was given. 31852 if test "${with_toolchain_version+set}" = set; then : 31853 withval=$with_toolchain_version; 31854 fi 31855 31856 31857 if test "x$with_toolchain_version" = xlist; then 31858 # List all toolchains 31859 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 31860 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 31861 for version in $VALID_VS_VERSIONS; do 31862 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 31863 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 31864 done 31865 31866 exit 0 31867 elif test "x$DEVKIT_VS_VERSION" != x; then 31868 VS_VERSION=$DEVKIT_VS_VERSION 31869 TOOLCHAIN_VERSION=$VS_VERSION 31870 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 31871 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 31872 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 31873 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 31874 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31875 VS_PATH="$TOOLCHAIN_PATH:$PATH" 31876 31877 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 31878 # can still be exported as INCLUDE for compiler invocations without 31879 # SYSROOT_CFLAGS 31880 OLDIFS="$IFS" 31881 IFS=";" 31882 for i in $DEVKIT_VS_INCLUDE; do 31883 ipath=$i 31884 31885 unix_path="$ipath" 31886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31887 windows_path=`$CYGPATH -m "$unix_path"` 31888 ipath="$windows_path" 31889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31890 windows_path=`cmd //c echo $unix_path` 31891 ipath="$windows_path" 31892 fi 31893 31894 VS_INCLUDE="$VS_INCLUDE;$ipath" 31895 done 31896 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 31897 # as LIB for compiler invocations without SYSROOT_LDFLAGS 31898 for i in $DEVKIT_VS_LIB; do 31899 libpath=$i 31900 31901 unix_path="$libpath" 31902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31903 windows_path=`$CYGPATH -m "$unix_path"` 31904 libpath="$windows_path" 31905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31906 windows_path=`cmd //c echo $unix_path` 31907 libpath="$windows_path" 31908 fi 31909 31910 VS_LIB="$VS_LIB;$libpath" 31911 done 31912 IFS="$OLDIFS" 31913 31914 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 31915 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 31916 31917 elif test "x$with_toolchain_version" != x; then 31918 # User override; check that it is valid 31919 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 31920 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 31921 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 31922 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 31923 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 31924 as_fn_error $? "Cannot continue." "$LINENO" 5 31925 fi 31926 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 31927 else 31928 # No flag given, use default 31929 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 31930 fi 31931 31932 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 31933 31934 VS_VERSION="$VS_VERSION" 31935 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 31936 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 31937 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 31938 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 31939 31940 # When using --with-tools-dir, assume it points to the correct and default 31941 # version of Visual Studio or that --with-toolchain-version was also set. 31942 if test "x$with_tools_dir" != x; then 31943 31944 if test "x$VS_ENV_CMD" = x; then 31945 VS_VERSION="${VS_VERSION}" 31946 VS_BASE="$with_tools_dir/../.." 31947 METHOD="--with-tools-dir" 31948 31949 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31950 VCVARSFILE="vc/bin/vcvars32.bat" 31951 else 31952 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31953 fi 31954 31955 31956 windows_path="$VS_BASE" 31957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31958 unix_path=`$CYGPATH -u "$windows_path"` 31959 VS_BASE="$unix_path" 31960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31962 VS_BASE="$unix_path" 31963 fi 31964 31965 if test -d "$VS_BASE"; then 31966 if test -f "$VS_BASE/$VCVARSFILE"; then 31967 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31968 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31969 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31970 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31971 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31972 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31973 else 31974 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31975 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31976 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31977 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31978 fi 31979 fi 31980 fi 31981 31982 31983 if test "x$VS_ENV_CMD" = x; then 31984 VS_VERSION="${VS_VERSION}" 31985 VS_BASE="$with_tools_dir/../../.." 31986 METHOD="--with-tools-dir" 31987 31988 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31989 VCVARSFILE="vc/bin/vcvars32.bat" 31990 else 31991 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31992 fi 31993 31994 31995 windows_path="$VS_BASE" 31996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31997 unix_path=`$CYGPATH -u "$windows_path"` 31998 VS_BASE="$unix_path" 31999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32000 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32001 VS_BASE="$unix_path" 32002 fi 32003 32004 if test -d "$VS_BASE"; then 32005 if test -f "$VS_BASE/$VCVARSFILE"; then 32006 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32007 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32008 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32009 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32010 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32011 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32012 else 32013 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32014 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32015 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32016 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32017 fi 32018 fi 32019 fi 32020 32021 if test "x$VS_ENV_CMD" = x; then 32022 # Having specified an argument which is incorrect will produce an instant failure; 32023 # we should not go on looking 32024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 32025 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 32026 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 32027 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 32028 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 32029 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 32030 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 32031 fi 32032 fi 32033 32034 VS_ENV_CMD="" 32035 VS_ENV_ARGS="" 32036 32037 if test "x$VS_COMNTOOLS" != x; then 32038 32039 if test "x$VS_ENV_CMD" = x; then 32040 VS_VERSION="${VS_VERSION}" 32041 VS_BASE="$VS_COMNTOOLS/../.." 32042 METHOD="$VS_COMNTOOLS_VAR variable" 32043 32044 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32045 VCVARSFILE="vc/bin/vcvars32.bat" 32046 else 32047 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32048 fi 32049 32050 32051 windows_path="$VS_BASE" 32052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32053 unix_path=`$CYGPATH -u "$windows_path"` 32054 VS_BASE="$unix_path" 32055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32056 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32057 VS_BASE="$unix_path" 32058 fi 32059 32060 if test -d "$VS_BASE"; then 32061 if test -f "$VS_BASE/$VCVARSFILE"; then 32062 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32063 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32064 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32065 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32066 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32067 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32068 else 32069 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32070 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32071 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32072 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32073 fi 32074 fi 32075 fi 32076 32077 fi 32078 if test "x$PROGRAMFILES" != x; then 32079 32080 if test "x$VS_ENV_CMD" = x; then 32081 VS_VERSION="${VS_VERSION}" 32082 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 32083 METHOD="well-known name" 32084 32085 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32086 VCVARSFILE="vc/bin/vcvars32.bat" 32087 else 32088 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32089 fi 32090 32091 32092 windows_path="$VS_BASE" 32093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32094 unix_path=`$CYGPATH -u "$windows_path"` 32095 VS_BASE="$unix_path" 32096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32098 VS_BASE="$unix_path" 32099 fi 32100 32101 if test -d "$VS_BASE"; then 32102 if test -f "$VS_BASE/$VCVARSFILE"; then 32103 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32104 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32105 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32106 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32107 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32108 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32109 else 32110 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32111 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32112 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32113 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32114 fi 32115 fi 32116 fi 32117 32118 fi 32119 # Work around the insanely named ProgramFiles(x86) env variable 32120 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 32121 if test "x$PROGRAMFILES_X86" != x; then 32122 32123 if test "x$VS_ENV_CMD" = x; then 32124 VS_VERSION="${VS_VERSION}" 32125 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 32126 METHOD="well-known name" 32127 32128 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32129 VCVARSFILE="vc/bin/vcvars32.bat" 32130 else 32131 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32132 fi 32133 32134 32135 windows_path="$VS_BASE" 32136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32137 unix_path=`$CYGPATH -u "$windows_path"` 32138 VS_BASE="$unix_path" 32139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32140 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32141 VS_BASE="$unix_path" 32142 fi 32143 32144 if test -d "$VS_BASE"; then 32145 if test -f "$VS_BASE/$VCVARSFILE"; then 32146 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32147 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32148 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32149 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32150 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32151 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32152 else 32153 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32154 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32155 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32156 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32157 fi 32158 fi 32159 fi 32160 32161 fi 32162 32163 if test "x$VS_ENV_CMD" = x; then 32164 VS_VERSION="${VS_VERSION}" 32165 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 32166 METHOD="well-known name" 32167 32168 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32169 VCVARSFILE="vc/bin/vcvars32.bat" 32170 else 32171 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32172 fi 32173 32174 32175 windows_path="$VS_BASE" 32176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32177 unix_path=`$CYGPATH -u "$windows_path"` 32178 VS_BASE="$unix_path" 32179 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32180 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32181 VS_BASE="$unix_path" 32182 fi 32183 32184 if test -d "$VS_BASE"; then 32185 if test -f "$VS_BASE/$VCVARSFILE"; then 32186 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32187 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32188 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32189 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32190 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32191 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32192 else 32193 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32194 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32195 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32196 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32197 fi 32198 fi 32199 fi 32200 32201 32202 if test "x$VS_ENV_CMD" = x; then 32203 VS_VERSION="${VS_VERSION}" 32204 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32205 METHOD="well-known name" 32206 32207 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32208 VCVARSFILE="vc/bin/vcvars32.bat" 32209 else 32210 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32211 fi 32212 32213 32214 windows_path="$VS_BASE" 32215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32216 unix_path=`$CYGPATH -u "$windows_path"` 32217 VS_BASE="$unix_path" 32218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32219 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32220 VS_BASE="$unix_path" 32221 fi 32222 32223 if test -d "$VS_BASE"; then 32224 if test -f "$VS_BASE/$VCVARSFILE"; then 32225 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32226 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32227 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32228 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32229 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32230 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32231 else 32232 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32233 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32234 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32235 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32236 fi 32237 fi 32238 fi 32239 32240 32241 if test "x$SDK_INSTALL_DIR" != x; then 32242 if test "x$ProgramW6432" != x; then 32243 32244 if test "x$VS_ENV_CMD" = x; then 32245 VS_VERSION="${VS_VERSION}" 32246 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32247 METHOD="well-known name" 32248 32249 windows_path="$WIN_SDK_BASE" 32250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32251 unix_path=`$CYGPATH -u "$windows_path"` 32252 WIN_SDK_BASE="$unix_path" 32253 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32254 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32255 WIN_SDK_BASE="$unix_path" 32256 fi 32257 32258 if test -d "$WIN_SDK_BASE"; then 32259 # There have been cases of partial or broken SDK installations. A missing 32260 # lib dir is not going to work. 32261 if test ! -d "$WIN_SDK_BASE/lib"; then 32262 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32263 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32264 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32265 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32266 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32267 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32268 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32269 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32270 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32271 VS_ENV_ARGS="/x86" 32272 else 32273 VS_ENV_ARGS="/x64" 32274 fi 32275 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32276 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32277 # TODO: improve detection for other versions of SDK 32278 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32279 else 32280 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32281 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32282 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32283 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32284 fi 32285 fi 32286 fi 32287 32288 fi 32289 if test "x$PROGRAMW6432" != x; then 32290 32291 if test "x$VS_ENV_CMD" = x; then 32292 VS_VERSION="${VS_VERSION}" 32293 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32294 METHOD="well-known name" 32295 32296 windows_path="$WIN_SDK_BASE" 32297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32298 unix_path=`$CYGPATH -u "$windows_path"` 32299 WIN_SDK_BASE="$unix_path" 32300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32301 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32302 WIN_SDK_BASE="$unix_path" 32303 fi 32304 32305 if test -d "$WIN_SDK_BASE"; then 32306 # There have been cases of partial or broken SDK installations. A missing 32307 # lib dir is not going to work. 32308 if test ! -d "$WIN_SDK_BASE/lib"; then 32309 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32310 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32311 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32312 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32313 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32314 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32315 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32316 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32317 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32318 VS_ENV_ARGS="/x86" 32319 else 32320 VS_ENV_ARGS="/x64" 32321 fi 32322 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32323 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32324 # TODO: improve detection for other versions of SDK 32325 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32326 else 32327 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32328 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32329 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32330 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32331 fi 32332 fi 32333 fi 32334 32335 fi 32336 if test "x$PROGRAMFILES" != x; then 32337 32338 if test "x$VS_ENV_CMD" = x; then 32339 VS_VERSION="${VS_VERSION}" 32340 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32341 METHOD="well-known name" 32342 32343 windows_path="$WIN_SDK_BASE" 32344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32345 unix_path=`$CYGPATH -u "$windows_path"` 32346 WIN_SDK_BASE="$unix_path" 32347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32349 WIN_SDK_BASE="$unix_path" 32350 fi 32351 32352 if test -d "$WIN_SDK_BASE"; then 32353 # There have been cases of partial or broken SDK installations. A missing 32354 # lib dir is not going to work. 32355 if test ! -d "$WIN_SDK_BASE/lib"; then 32356 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32357 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32358 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32359 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32360 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32361 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32362 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32363 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32364 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32365 VS_ENV_ARGS="/x86" 32366 else 32367 VS_ENV_ARGS="/x64" 32368 fi 32369 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32370 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32371 # TODO: improve detection for other versions of SDK 32372 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32373 else 32374 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32375 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32376 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32377 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32378 fi 32379 fi 32380 fi 32381 32382 fi 32383 32384 if test "x$VS_ENV_CMD" = x; then 32385 VS_VERSION="${VS_VERSION}" 32386 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32387 METHOD="well-known name" 32388 32389 windows_path="$WIN_SDK_BASE" 32390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32391 unix_path=`$CYGPATH -u "$windows_path"` 32392 WIN_SDK_BASE="$unix_path" 32393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32395 WIN_SDK_BASE="$unix_path" 32396 fi 32397 32398 if test -d "$WIN_SDK_BASE"; then 32399 # There have been cases of partial or broken SDK installations. A missing 32400 # lib dir is not going to work. 32401 if test ! -d "$WIN_SDK_BASE/lib"; then 32402 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32403 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32404 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32405 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32406 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32407 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32408 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32409 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32410 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32411 VS_ENV_ARGS="/x86" 32412 else 32413 VS_ENV_ARGS="/x64" 32414 fi 32415 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32416 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32417 # TODO: improve detection for other versions of SDK 32418 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32419 else 32420 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32421 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32422 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32423 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32424 fi 32425 fi 32426 fi 32427 32428 32429 if test "x$VS_ENV_CMD" = x; then 32430 VS_VERSION="${VS_VERSION}" 32431 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32432 METHOD="well-known name" 32433 32434 windows_path="$WIN_SDK_BASE" 32435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32436 unix_path=`$CYGPATH -u "$windows_path"` 32437 WIN_SDK_BASE="$unix_path" 32438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32440 WIN_SDK_BASE="$unix_path" 32441 fi 32442 32443 if test -d "$WIN_SDK_BASE"; then 32444 # There have been cases of partial or broken SDK installations. A missing 32445 # lib dir is not going to work. 32446 if test ! -d "$WIN_SDK_BASE/lib"; then 32447 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32448 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32449 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32450 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32451 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32452 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32453 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32454 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32455 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32456 VS_ENV_ARGS="/x86" 32457 else 32458 VS_ENV_ARGS="/x64" 32459 fi 32460 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32461 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32462 # TODO: improve detection for other versions of SDK 32463 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32464 else 32465 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32466 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32467 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32468 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32469 fi 32470 fi 32471 fi 32472 32473 fi 32474 32475 if test "x$VS_ENV_CMD" != x; then 32476 TOOLCHAIN_VERSION=$VS_VERSION 32477 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32478 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32479 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32480 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32481 # The rest of the variables are already evaled while probing 32482 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32483 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32484 break 32485 fi 32486 done 32487 32488 32489 # If we have a devkit, skip all of the below. 32490 if test "x$DEVKIT_VS_VERSION" = x; then 32491 if test "x$VS_ENV_CMD" != x; then 32492 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32493 32494 # Only process if variable expands to non-empty 32495 32496 if test "x$VS_ENV_CMD" != x; then 32497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32498 32499 # First separate the path from the arguments. This will split at the first 32500 # space. 32501 complete="$VS_ENV_CMD" 32502 path="${complete%% *}" 32503 tmp="$complete EOL" 32504 arguments="${tmp#* }" 32505 32506 # Input might be given as Windows format, start by converting to 32507 # unix format. 32508 new_path=`$CYGPATH -u "$path"` 32509 32510 # Now try to locate executable using which 32511 new_path=`$WHICH "$new_path" 2> /dev/null` 32512 # bat and cmd files are not always considered executable in cygwin causing which 32513 # to not find them 32514 if test "x$new_path" = x \ 32515 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32516 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32517 new_path=`$CYGPATH -u "$path"` 32518 fi 32519 if test "x$new_path" = x; then 32520 # Oops. Which didn't find the executable. 32521 # The splitting of arguments from the executable at a space might have been incorrect, 32522 # since paths with space are more likely in Windows. Give it another try with the whole 32523 # argument. 32524 path="$complete" 32525 arguments="EOL" 32526 new_path=`$CYGPATH -u "$path"` 32527 new_path=`$WHICH "$new_path" 2> /dev/null` 32528 # bat and cmd files are not always considered executable in cygwin causing which 32529 # to not find them 32530 if test "x$new_path" = x \ 32531 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32532 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32533 new_path=`$CYGPATH -u "$path"` 32534 fi 32535 if test "x$new_path" = x; then 32536 # It's still not found. Now this is an unrecoverable error. 32537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32538 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32539 has_space=`$ECHO "$complete" | $GREP " "` 32540 if test "x$has_space" != x; then 32541 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32542 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32543 fi 32544 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32545 fi 32546 fi 32547 32548 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32549 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32550 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32551 # "foo.exe" is OK but "foo" is an error. 32552 # 32553 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32554 # It is also a way to make sure we got the proper file name for the real test later on. 32555 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32556 if test "x$test_shortpath" = x; then 32557 # Short path failed, file does not exist as specified. 32558 # Try adding .exe or .cmd 32559 if test -f "${new_path}.exe"; then 32560 input_to_shortpath="${new_path}.exe" 32561 elif test -f "${new_path}.cmd"; then 32562 input_to_shortpath="${new_path}.cmd" 32563 else 32564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 32565 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 32566 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32567 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32568 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32569 fi 32570 else 32571 input_to_shortpath="$new_path" 32572 fi 32573 32574 # Call helper function which possibly converts this using DOS-style short mode. 32575 # If so, the updated path is stored in $new_path. 32576 new_path="$input_to_shortpath" 32577 32578 input_path="$input_to_shortpath" 32579 # Check if we need to convert this using DOS-style short mode. If the path 32580 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32581 # take no chances and rewrite it. 32582 # Note: m4 eats our [], so we need to use [ and ] instead. 32583 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32584 if test "x$has_forbidden_chars" != x; then 32585 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32586 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32587 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32588 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32589 # Going to short mode and back again did indeed matter. Since short mode is 32590 # case insensitive, let's make it lowercase to improve readability. 32591 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32592 # Now convert it back to Unix-style (cygpath) 32593 input_path=`$CYGPATH -u "$shortmode_path"` 32594 new_path="$input_path" 32595 fi 32596 fi 32597 32598 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32599 if test "x$test_cygdrive_prefix" = x; then 32600 # As a simple fix, exclude /usr/bin since it's not a real path. 32601 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32602 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32603 # a path prefixed by /cygdrive for fixpath to work. 32604 new_path="$CYGWIN_ROOT_PATH$input_path" 32605 fi 32606 fi 32607 32608 # remove trailing .exe if any 32609 new_path="${new_path/%.exe/}" 32610 32611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32612 32613 # First separate the path from the arguments. This will split at the first 32614 # space. 32615 complete="$VS_ENV_CMD" 32616 path="${complete%% *}" 32617 tmp="$complete EOL" 32618 arguments="${tmp#* }" 32619 32620 # Input might be given as Windows format, start by converting to 32621 # unix format. 32622 new_path="$path" 32623 32624 windows_path="$new_path" 32625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32626 unix_path=`$CYGPATH -u "$windows_path"` 32627 new_path="$unix_path" 32628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32629 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32630 new_path="$unix_path" 32631 fi 32632 32633 32634 # Now try to locate executable using which 32635 new_path=`$WHICH "$new_path" 2> /dev/null` 32636 32637 if test "x$new_path" = x; then 32638 # Oops. Which didn't find the executable. 32639 # The splitting of arguments from the executable at a space might have been incorrect, 32640 # since paths with space are more likely in Windows. Give it another try with the whole 32641 # argument. 32642 path="$complete" 32643 arguments="EOL" 32644 new_path="$path" 32645 32646 windows_path="$new_path" 32647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32648 unix_path=`$CYGPATH -u "$windows_path"` 32649 new_path="$unix_path" 32650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32651 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32652 new_path="$unix_path" 32653 fi 32654 32655 32656 new_path=`$WHICH "$new_path" 2> /dev/null` 32657 # bat and cmd files are not always considered executable in MSYS causing which 32658 # to not find them 32659 if test "x$new_path" = x \ 32660 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32661 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32662 new_path="$path" 32663 32664 windows_path="$new_path" 32665 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32666 unix_path=`$CYGPATH -u "$windows_path"` 32667 new_path="$unix_path" 32668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32669 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32670 new_path="$unix_path" 32671 fi 32672 32673 fi 32674 32675 if test "x$new_path" = x; then 32676 # It's still not found. Now this is an unrecoverable error. 32677 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32678 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32679 has_space=`$ECHO "$complete" | $GREP " "` 32680 if test "x$has_space" != x; then 32681 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32682 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32683 fi 32684 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32685 fi 32686 fi 32687 32688 # Now new_path has a complete unix path to the binary 32689 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32690 # Keep paths in /bin as-is, but remove trailing .exe if any 32691 new_path="${new_path/%.exe/}" 32692 # Do not save /bin paths to all_fixpath_prefixes! 32693 else 32694 # Not in mixed or Windows style, start by that. 32695 new_path=`cmd //c echo $new_path` 32696 32697 input_path="$new_path" 32698 # Check if we need to convert this using DOS-style short mode. If the path 32699 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32700 # take no chances and rewrite it. 32701 # Note: m4 eats our [], so we need to use [ and ] instead. 32702 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32703 if test "x$has_forbidden_chars" != x; then 32704 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32705 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32706 fi 32707 32708 # Output is in $new_path 32709 32710 windows_path="$new_path" 32711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32712 unix_path=`$CYGPATH -u "$windows_path"` 32713 new_path="$unix_path" 32714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32715 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32716 new_path="$unix_path" 32717 fi 32718 32719 # remove trailing .exe if any 32720 new_path="${new_path/%.exe/}" 32721 32722 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32723 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32724 fi 32725 32726 else 32727 # We're on a unix platform. Hooray! :) 32728 # First separate the path from the arguments. This will split at the first 32729 # space. 32730 complete="$VS_ENV_CMD" 32731 path="${complete%% *}" 32732 tmp="$complete EOL" 32733 arguments="${tmp#* }" 32734 32735 # Cannot rely on the command "which" here since it doesn't always work. 32736 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32737 if test -z "$is_absolute_path"; then 32738 # Path to executable is not absolute. Find it. 32739 IFS_save="$IFS" 32740 IFS=: 32741 for p in $PATH; do 32742 if test -f "$p/$path" && test -x "$p/$path"; then 32743 new_path="$p/$path" 32744 break 32745 fi 32746 done 32747 IFS="$IFS_save" 32748 else 32749 # This is an absolute path, we can use it without further modifications. 32750 new_path="$path" 32751 fi 32752 32753 if test "x$new_path" = x; then 32754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32755 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32756 has_space=`$ECHO "$complete" | $GREP " "` 32757 if test "x$has_space" != x; then 32758 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32759 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32760 fi 32761 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32762 fi 32763 fi 32764 32765 # Now join together the path and the arguments once again 32766 if test "x$arguments" != xEOL; then 32767 new_complete="$new_path ${arguments% *}" 32768 else 32769 new_complete="$new_path" 32770 fi 32771 32772 if test "x$complete" != "x$new_complete"; then 32773 VS_ENV_CMD="$new_complete" 32774 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 32775 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 32776 fi 32777 fi 32778 32779 32780 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 32781 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 32782 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 32783 32784 # We need to create a couple of temporary files. 32785 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 32786 $MKDIR -p $VS_ENV_TMP_DIR 32787 32788 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 32789 # Instead create a shell script which will set the relevant variables when run. 32790 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 32791 32792 unix_path="$WINPATH_VS_ENV_CMD" 32793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32794 windows_path=`$CYGPATH -m "$unix_path"` 32795 WINPATH_VS_ENV_CMD="$windows_path" 32796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32797 windows_path=`cmd //c echo $unix_path` 32798 WINPATH_VS_ENV_CMD="$windows_path" 32799 fi 32800 32801 WINPATH_BASH="$BASH" 32802 32803 unix_path="$WINPATH_BASH" 32804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32805 windows_path=`$CYGPATH -m "$unix_path"` 32806 WINPATH_BASH="$windows_path" 32807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32808 windows_path=`cmd //c echo $unix_path` 32809 WINPATH_BASH="$windows_path" 32810 fi 32811 32812 32813 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 32814 # script (executable by bash) that will setup the important variables. 32815 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 32816 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 32817 # This will end up something like: 32818 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 32819 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 32820 # These will end up something like: 32821 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 32822 # The trailing space for everyone except PATH is no typo, but is needed due 32823 # to trailing \ in the Windows paths. These will be stripped later. 32824 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 32825 >> $EXTRACT_VC_ENV_BAT_FILE 32826 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 32827 >> $EXTRACT_VC_ENV_BAT_FILE 32828 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 32829 >> $EXTRACT_VC_ENV_BAT_FILE 32830 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 32831 >> $EXTRACT_VC_ENV_BAT_FILE 32832 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 32833 >> $EXTRACT_VC_ENV_BAT_FILE 32834 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 32835 >> $EXTRACT_VC_ENV_BAT_FILE 32836 32837 # Now execute the newly created bat file. 32838 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 32839 # Change directory so we don't need to mess with Windows paths in redirects. 32840 cd $VS_ENV_TMP_DIR 32841 cmd /c extract-vs-env.bat | $CAT 32842 cd $CURDIR 32843 32844 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 32845 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 32846 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 32847 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32848 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32849 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32850 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32851 as_fn_error $? "Cannot continue" "$LINENO" 5 32852 fi 32853 32854 # Now set all paths and other env variables. This will allow the rest of 32855 # the configure script to find and run the compiler in the proper way. 32856 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 32857 $as_echo "$as_me: Setting extracted environment variables" >&6;} 32858 . $VS_ENV_TMP_DIR/set-vs-env.sh 32859 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 32860 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 32861 else 32862 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 32863 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 32864 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 32865 fi 32866 fi 32867 32868 # At this point, we should have correct variables in the environment, or we can't continue. 32869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 32870 $as_echo_n "checking for Visual Studio variables... " >&6; } 32871 32872 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 32873 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 32874 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 32875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 32876 $as_echo "present but broken" >&6; } 32877 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 32878 else 32879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 32880 $as_echo "ok" >&6; } 32881 # Remove any trailing "\" ";" and " " from the variables. 32882 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 32883 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 32884 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 32885 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 32886 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 32887 # Remove any paths containing # (typically F#) as that messes up make. This 32888 # is needed if visual studio was installed with F# support. 32889 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 32890 32891 32892 32893 32894 32895 # Convert VS_INCLUDE into SYSROOT_CFLAGS 32896 OLDIFS="$IFS" 32897 IFS=";" 32898 for i in $VS_INCLUDE; do 32899 ipath=$i 32900 # Only process non-empty elements 32901 if test "x$ipath" != x; then 32902 IFS="$OLDIFS" 32903 # Check that directory exists before calling fixup_path 32904 testpath=$ipath 32905 32906 windows_path="$testpath" 32907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32908 unix_path=`$CYGPATH -u "$windows_path"` 32909 testpath="$unix_path" 32910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32912 testpath="$unix_path" 32913 fi 32914 32915 if test -d "$testpath"; then 32916 32917 # Only process if variable expands to non-empty 32918 32919 if test "x$ipath" != x; then 32920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32921 32922 # Input might be given as Windows format, start by converting to 32923 # unix format. 32924 path="$ipath" 32925 new_path=`$CYGPATH -u "$path"` 32926 32927 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32928 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32929 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32930 # "foo.exe" is OK but "foo" is an error. 32931 # 32932 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32933 # It is also a way to make sure we got the proper file name for the real test later on. 32934 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32935 if test "x$test_shortpath" = x; then 32936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32937 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32938 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 32939 fi 32940 32941 # Call helper function which possibly converts this using DOS-style short mode. 32942 # If so, the updated path is stored in $new_path. 32943 32944 input_path="$new_path" 32945 # Check if we need to convert this using DOS-style short mode. If the path 32946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32947 # take no chances and rewrite it. 32948 # Note: m4 eats our [], so we need to use [ and ] instead. 32949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32950 if test "x$has_forbidden_chars" != x; then 32951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32952 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32953 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32954 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32955 # Going to short mode and back again did indeed matter. Since short mode is 32956 # case insensitive, let's make it lowercase to improve readability. 32957 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32958 # Now convert it back to Unix-style (cygpath) 32959 input_path=`$CYGPATH -u "$shortmode_path"` 32960 new_path="$input_path" 32961 fi 32962 fi 32963 32964 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32965 if test "x$test_cygdrive_prefix" = x; then 32966 # As a simple fix, exclude /usr/bin since it's not a real path. 32967 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32968 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32969 # a path prefixed by /cygdrive for fixpath to work. 32970 new_path="$CYGWIN_ROOT_PATH$input_path" 32971 fi 32972 fi 32973 32974 32975 if test "x$path" != "x$new_path"; then 32976 ipath="$new_path" 32977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32978 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32979 fi 32980 32981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32982 32983 path="$ipath" 32984 has_colon=`$ECHO $path | $GREP ^.:` 32985 new_path="$path" 32986 if test "x$has_colon" = x; then 32987 # Not in mixed or Windows style, start by that. 32988 new_path=`cmd //c echo $path` 32989 fi 32990 32991 32992 input_path="$new_path" 32993 # Check if we need to convert this using DOS-style short mode. If the path 32994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32995 # take no chances and rewrite it. 32996 # Note: m4 eats our [], so we need to use [ and ] instead. 32997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32998 if test "x$has_forbidden_chars" != x; then 32999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33000 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33001 fi 33002 33003 33004 windows_path="$new_path" 33005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33006 unix_path=`$CYGPATH -u "$windows_path"` 33007 new_path="$unix_path" 33008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33010 new_path="$unix_path" 33011 fi 33012 33013 if test "x$path" != "x$new_path"; then 33014 ipath="$new_path" 33015 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33016 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33017 fi 33018 33019 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33020 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33021 33022 else 33023 # We're on a unix platform. Hooray! :) 33024 path="$ipath" 33025 has_space=`$ECHO "$path" | $GREP " "` 33026 if test "x$has_space" != x; then 33027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33028 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33029 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33030 fi 33031 33032 # Use eval to expand a potential ~ 33033 eval path="$path" 33034 if test ! -f "$path" && test ! -d "$path"; then 33035 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 33036 fi 33037 33038 if test -d "$path"; then 33039 ipath="`cd "$path"; $THEPWDCMD -L`" 33040 else 33041 dir="`$DIRNAME "$path"`" 33042 base="`$BASENAME "$path"`" 33043 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 33044 fi 33045 fi 33046 fi 33047 33048 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 33049 fi 33050 IFS=";" 33051 fi 33052 done 33053 # Convert VS_LIB into SYSROOT_LDFLAGS 33054 for i in $VS_LIB; do 33055 libpath=$i 33056 # Only process non-empty elements 33057 if test "x$libpath" != x; then 33058 IFS="$OLDIFS" 33059 # Check that directory exists before calling fixup_path 33060 testpath=$libpath 33061 33062 windows_path="$testpath" 33063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33064 unix_path=`$CYGPATH -u "$windows_path"` 33065 testpath="$unix_path" 33066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33067 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33068 testpath="$unix_path" 33069 fi 33070 33071 if test -d "$testpath"; then 33072 33073 # Only process if variable expands to non-empty 33074 33075 if test "x$libpath" != x; then 33076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33077 33078 # Input might be given as Windows format, start by converting to 33079 # unix format. 33080 path="$libpath" 33081 new_path=`$CYGPATH -u "$path"` 33082 33083 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33084 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33085 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33086 # "foo.exe" is OK but "foo" is an error. 33087 # 33088 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33089 # It is also a way to make sure we got the proper file name for the real test later on. 33090 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33091 if test "x$test_shortpath" = x; then 33092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33093 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33094 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 33095 fi 33096 33097 # Call helper function which possibly converts this using DOS-style short mode. 33098 # If so, the updated path is stored in $new_path. 33099 33100 input_path="$new_path" 33101 # Check if we need to convert this using DOS-style short mode. If the path 33102 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33103 # take no chances and rewrite it. 33104 # Note: m4 eats our [], so we need to use [ and ] instead. 33105 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33106 if test "x$has_forbidden_chars" != x; then 33107 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33108 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33109 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33110 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33111 # Going to short mode and back again did indeed matter. Since short mode is 33112 # case insensitive, let's make it lowercase to improve readability. 33113 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33114 # Now convert it back to Unix-style (cygpath) 33115 input_path=`$CYGPATH -u "$shortmode_path"` 33116 new_path="$input_path" 33117 fi 33118 fi 33119 33120 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33121 if test "x$test_cygdrive_prefix" = x; then 33122 # As a simple fix, exclude /usr/bin since it's not a real path. 33123 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33124 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33125 # a path prefixed by /cygdrive for fixpath to work. 33126 new_path="$CYGWIN_ROOT_PATH$input_path" 33127 fi 33128 fi 33129 33130 33131 if test "x$path" != "x$new_path"; then 33132 libpath="$new_path" 33133 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33134 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33135 fi 33136 33137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33138 33139 path="$libpath" 33140 has_colon=`$ECHO $path | $GREP ^.:` 33141 new_path="$path" 33142 if test "x$has_colon" = x; then 33143 # Not in mixed or Windows style, start by that. 33144 new_path=`cmd //c echo $path` 33145 fi 33146 33147 33148 input_path="$new_path" 33149 # Check if we need to convert this using DOS-style short mode. If the path 33150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33151 # take no chances and rewrite it. 33152 # Note: m4 eats our [], so we need to use [ and ] instead. 33153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33154 if test "x$has_forbidden_chars" != x; then 33155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33156 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33157 fi 33158 33159 33160 windows_path="$new_path" 33161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33162 unix_path=`$CYGPATH -u "$windows_path"` 33163 new_path="$unix_path" 33164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33166 new_path="$unix_path" 33167 fi 33168 33169 if test "x$path" != "x$new_path"; then 33170 libpath="$new_path" 33171 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33172 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33173 fi 33174 33175 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33176 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33177 33178 else 33179 # We're on a unix platform. Hooray! :) 33180 path="$libpath" 33181 has_space=`$ECHO "$path" | $GREP " "` 33182 if test "x$has_space" != x; then 33183 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33184 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33185 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33186 fi 33187 33188 # Use eval to expand a potential ~ 33189 eval path="$path" 33190 if test ! -f "$path" && test ! -d "$path"; then 33191 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 33192 fi 33193 33194 if test -d "$path"; then 33195 libpath="`cd "$path"; $THEPWDCMD -L`" 33196 else 33197 dir="`$DIRNAME "$path"`" 33198 base="`$BASENAME "$path"`" 33199 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 33200 fi 33201 fi 33202 fi 33203 33204 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33205 fi 33206 IFS=";" 33207 fi 33208 done 33209 IFS="$OLDIFS" 33210 fi 33211 else 33212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33213 $as_echo "not found" >&6; } 33214 33215 if test "x$VS_ENV_CMD" = x; then 33216 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33217 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33218 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33219 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33220 else 33221 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33222 $as_echo "$as_me: Running the extraction script failed." >&6;} 33223 fi 33224 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33225 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33226 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33227 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33228 as_fn_error $? "Cannot continue" "$LINENO" 5 33229 fi 33230 33231 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33232 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33233 PATH="$VS_PATH" 33234 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33235 export INCLUDE="$VS_INCLUDE" 33236 export LIB="$VS_LIB" 33237 else 33238 if test "x$XCODE_VERSION_OUTPUT" != x; then 33239 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33240 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33241 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33242 else 33243 # Currently we do not define this for other toolchains. This might change as the need arise. 33244 TOOLCHAIN_VERSION= 33245 fi 33246 fi 33247 33248 33249 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33250 # override all other locations. 33251 if test "x$TOOLCHAIN_PATH" != x; then 33252 PATH=$TOOLCHAIN_PATH:$PATH 33253 fi 33254 33255 33256 # 33257 # Setup the compilers (CC and CXX) 33258 # 33259 33260 COMPILER_NAME=C 33261 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33262 33263 if test "x$CC" != x; then 33264 # User has supplied compiler name already, always let that override. 33265 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33266 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33267 if test "x`basename $CC`" = "x$CC"; then 33268 # A command without a complete path is provided, search $PATH. 33269 33270 for ac_prog in $CC 33271 do 33272 # Extract the first word of "$ac_prog", so it can be a program name with args. 33273 set dummy $ac_prog; ac_word=$2 33274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33275 $as_echo_n "checking for $ac_word... " >&6; } 33276 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33277 $as_echo_n "(cached) " >&6 33278 else 33279 case $POTENTIAL_CC in 33280 [\\/]* | ?:[\\/]*) 33281 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33282 ;; 33283 *) 33284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33285 for as_dir in $PATH 33286 do 33287 IFS=$as_save_IFS 33288 test -z "$as_dir" && as_dir=. 33289 for ac_exec_ext in '' $ac_executable_extensions; do 33290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33291 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33293 break 2 33294 fi 33295 done 33296 done 33297 IFS=$as_save_IFS 33298 33299 ;; 33300 esac 33301 fi 33302 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33303 if test -n "$POTENTIAL_CC"; then 33304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33305 $as_echo "$POTENTIAL_CC" >&6; } 33306 else 33307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33308 $as_echo "no" >&6; } 33309 fi 33310 33311 33312 test -n "$POTENTIAL_CC" && break 33313 done 33314 33315 if test "x$POTENTIAL_CC" != x; then 33316 CC=$POTENTIAL_CC 33317 else 33318 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33319 fi 33320 else 33321 # Otherwise it might already be a complete path 33322 if test ! -x "$CC"; then 33323 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33324 fi 33325 fi 33326 else 33327 # No user supplied value. Locate compiler ourselves. 33328 33329 # If we are cross compiling, assume cross compilation tools follows the 33330 # cross compilation standard where they are prefixed with the autoconf 33331 # standard name for the target. For example the binary 33332 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33333 # If we are not cross compiling, then the default compiler name will be 33334 # used. 33335 33336 CC= 33337 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33338 # before checking the rest of the PATH. 33339 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33340 # step, this should not be necessary. 33341 if test -n "$TOOLCHAIN_PATH"; then 33342 PATH_save="$PATH" 33343 PATH="$TOOLCHAIN_PATH" 33344 if test -n "$ac_tool_prefix"; then 33345 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33346 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33348 $as_echo_n "checking for $ac_word... " >&6; } 33349 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33350 $as_echo_n "(cached) " >&6 33351 else 33352 case $TOOLCHAIN_PATH_CC in 33353 [\\/]* | ?:[\\/]*) 33354 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33355 ;; 33356 *) 33357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33358 for as_dir in $PATH 33359 do 33360 IFS=$as_save_IFS 33361 test -z "$as_dir" && as_dir=. 33362 for ac_exec_ext in '' $ac_executable_extensions; do 33363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33364 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33366 break 2 33367 fi 33368 done 33369 done 33370 IFS=$as_save_IFS 33371 33372 ;; 33373 esac 33374 fi 33375 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33376 if test -n "$TOOLCHAIN_PATH_CC"; then 33377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33378 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33379 else 33380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33381 $as_echo "no" >&6; } 33382 fi 33383 33384 33385 fi 33386 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CC"; then 33387 ac_pt_TOOLCHAIN_PATH_CC=$TOOLCHAIN_PATH_CC 33388 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33389 set dummy $SEARCH_LIST; ac_word=$2 33390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33391 $as_echo_n "checking for $ac_word... " >&6; } 33392 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC+:} false; then : 33393 $as_echo_n "(cached) " >&6 33394 else 33395 case $ac_pt_TOOLCHAIN_PATH_CC in 33396 [\\/]* | ?:[\\/]*) 33397 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$ac_pt_TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33398 ;; 33399 *) 33400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33401 for as_dir in $PATH 33402 do 33403 IFS=$as_save_IFS 33404 test -z "$as_dir" && as_dir=. 33405 for ac_exec_ext in '' $ac_executable_extensions; do 33406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33407 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33409 break 2 33410 fi 33411 done 33412 done 33413 IFS=$as_save_IFS 33414 33415 ;; 33416 esac 33417 fi 33418 ac_pt_TOOLCHAIN_PATH_CC=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC 33419 if test -n "$ac_pt_TOOLCHAIN_PATH_CC"; then 33420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CC" >&5 33421 $as_echo "$ac_pt_TOOLCHAIN_PATH_CC" >&6; } 33422 else 33423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33424 $as_echo "no" >&6; } 33425 fi 33426 33427 if test "x$ac_pt_TOOLCHAIN_PATH_CC" = x; then 33428 TOOLCHAIN_PATH_CC="" 33429 else 33430 case $cross_compiling:$ac_tool_warned in 33431 yes:) 33432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33434 ac_tool_warned=yes ;; 33435 esac 33436 TOOLCHAIN_PATH_CC=$ac_pt_TOOLCHAIN_PATH_CC 33437 fi 33438 else 33439 TOOLCHAIN_PATH_CC="$ac_cv_path_TOOLCHAIN_PATH_CC" 33440 fi 33441 33442 CC=$TOOLCHAIN_PATH_CC 33443 PATH="$PATH_save" 33444 fi 33445 33446 # AC_PATH_TOOL can't be run multiple times with the same variable, 33447 # so create a new name for this run. 33448 if test "x$CC" = x; then 33449 if test -n "$ac_tool_prefix"; then 33450 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33451 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33453 $as_echo_n "checking for $ac_word... " >&6; } 33454 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33455 $as_echo_n "(cached) " >&6 33456 else 33457 case $POTENTIAL_CC in 33458 [\\/]* | ?:[\\/]*) 33459 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33460 ;; 33461 *) 33462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33463 for as_dir in $PATH 33464 do 33465 IFS=$as_save_IFS 33466 test -z "$as_dir" && as_dir=. 33467 for ac_exec_ext in '' $ac_executable_extensions; do 33468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33469 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33471 break 2 33472 fi 33473 done 33474 done 33475 IFS=$as_save_IFS 33476 33477 ;; 33478 esac 33479 fi 33480 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33481 if test -n "$POTENTIAL_CC"; then 33482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33483 $as_echo "$POTENTIAL_CC" >&6; } 33484 else 33485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33486 $as_echo "no" >&6; } 33487 fi 33488 33489 33490 fi 33491 if test -z "$ac_cv_path_POTENTIAL_CC"; then 33492 ac_pt_POTENTIAL_CC=$POTENTIAL_CC 33493 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33494 set dummy $SEARCH_LIST; ac_word=$2 33495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33496 $as_echo_n "checking for $ac_word... " >&6; } 33497 if ${ac_cv_path_ac_pt_POTENTIAL_CC+:} false; then : 33498 $as_echo_n "(cached) " >&6 33499 else 33500 case $ac_pt_POTENTIAL_CC in 33501 [\\/]* | ?:[\\/]*) 33502 ac_cv_path_ac_pt_POTENTIAL_CC="$ac_pt_POTENTIAL_CC" # Let the user override the test with a path. 33503 ;; 33504 *) 33505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33506 for as_dir in $PATH 33507 do 33508 IFS=$as_save_IFS 33509 test -z "$as_dir" && as_dir=. 33510 for ac_exec_ext in '' $ac_executable_extensions; do 33511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33512 ac_cv_path_ac_pt_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33514 break 2 33515 fi 33516 done 33517 done 33518 IFS=$as_save_IFS 33519 33520 ;; 33521 esac 33522 fi 33523 ac_pt_POTENTIAL_CC=$ac_cv_path_ac_pt_POTENTIAL_CC 33524 if test -n "$ac_pt_POTENTIAL_CC"; then 33525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CC" >&5 33526 $as_echo "$ac_pt_POTENTIAL_CC" >&6; } 33527 else 33528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33529 $as_echo "no" >&6; } 33530 fi 33531 33532 if test "x$ac_pt_POTENTIAL_CC" = x; then 33533 POTENTIAL_CC="" 33534 else 33535 case $cross_compiling:$ac_tool_warned in 33536 yes:) 33537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33539 ac_tool_warned=yes ;; 33540 esac 33541 POTENTIAL_CC=$ac_pt_POTENTIAL_CC 33542 fi 33543 else 33544 POTENTIAL_CC="$ac_cv_path_POTENTIAL_CC" 33545 fi 33546 33547 CC=$POTENTIAL_CC 33548 fi 33549 33550 if test "x$CC" = x; then 33551 33552 # Print a helpful message on how to acquire the necessary build dependency. 33553 # devkit is the help tag: freetype, cups, alsa etc 33554 MISSING_DEPENDENCY=devkit 33555 33556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33557 cygwin_help $MISSING_DEPENDENCY 33558 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33559 msys_help $MISSING_DEPENDENCY 33560 else 33561 PKGHANDLER_COMMAND= 33562 33563 case $PKGHANDLER in 33564 apt-get) 33565 apt_help $MISSING_DEPENDENCY ;; 33566 yum) 33567 yum_help $MISSING_DEPENDENCY ;; 33568 brew) 33569 brew_help $MISSING_DEPENDENCY ;; 33570 port) 33571 port_help $MISSING_DEPENDENCY ;; 33572 pkgutil) 33573 pkgutil_help $MISSING_DEPENDENCY ;; 33574 pkgadd) 33575 pkgadd_help $MISSING_DEPENDENCY ;; 33576 esac 33577 33578 if test "x$PKGHANDLER_COMMAND" != x; then 33579 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33580 fi 33581 fi 33582 33583 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 33584 fi 33585 fi 33586 33587 # Now we have a compiler binary in CC. Make sure it's okay. 33588 33589 # Only process if variable expands to non-empty 33590 33591 if test "x$CC" != x; then 33592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33593 33594 # First separate the path from the arguments. This will split at the first 33595 # space. 33596 complete="$CC" 33597 path="${complete%% *}" 33598 tmp="$complete EOL" 33599 arguments="${tmp#* }" 33600 33601 # Input might be given as Windows format, start by converting to 33602 # unix format. 33603 new_path=`$CYGPATH -u "$path"` 33604 33605 # Now try to locate executable using which 33606 new_path=`$WHICH "$new_path" 2> /dev/null` 33607 # bat and cmd files are not always considered executable in cygwin causing which 33608 # to not find them 33609 if test "x$new_path" = x \ 33610 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33611 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33612 new_path=`$CYGPATH -u "$path"` 33613 fi 33614 if test "x$new_path" = x; then 33615 # Oops. Which didn't find the executable. 33616 # The splitting of arguments from the executable at a space might have been incorrect, 33617 # since paths with space are more likely in Windows. Give it another try with the whole 33618 # argument. 33619 path="$complete" 33620 arguments="EOL" 33621 new_path=`$CYGPATH -u "$path"` 33622 new_path=`$WHICH "$new_path" 2> /dev/null` 33623 # bat and cmd files are not always considered executable in cygwin causing which 33624 # to not find them 33625 if test "x$new_path" = x \ 33626 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33627 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33628 new_path=`$CYGPATH -u "$path"` 33629 fi 33630 if test "x$new_path" = x; then 33631 # It's still not found. Now this is an unrecoverable error. 33632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33633 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33634 has_space=`$ECHO "$complete" | $GREP " "` 33635 if test "x$has_space" != x; then 33636 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33637 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33638 fi 33639 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33640 fi 33641 fi 33642 33643 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33644 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33645 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33646 # "foo.exe" is OK but "foo" is an error. 33647 # 33648 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33649 # It is also a way to make sure we got the proper file name for the real test later on. 33650 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33651 if test "x$test_shortpath" = x; then 33652 # Short path failed, file does not exist as specified. 33653 # Try adding .exe or .cmd 33654 if test -f "${new_path}.exe"; then 33655 input_to_shortpath="${new_path}.exe" 33656 elif test -f "${new_path}.cmd"; then 33657 input_to_shortpath="${new_path}.cmd" 33658 else 33659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 33660 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 33661 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33662 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33663 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33664 fi 33665 else 33666 input_to_shortpath="$new_path" 33667 fi 33668 33669 # Call helper function which possibly converts this using DOS-style short mode. 33670 # If so, the updated path is stored in $new_path. 33671 new_path="$input_to_shortpath" 33672 33673 input_path="$input_to_shortpath" 33674 # Check if we need to convert this using DOS-style short mode. If the path 33675 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33676 # take no chances and rewrite it. 33677 # Note: m4 eats our [], so we need to use [ and ] instead. 33678 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33679 if test "x$has_forbidden_chars" != x; then 33680 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33681 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33682 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33683 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33684 # Going to short mode and back again did indeed matter. Since short mode is 33685 # case insensitive, let's make it lowercase to improve readability. 33686 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33687 # Now convert it back to Unix-style (cygpath) 33688 input_path=`$CYGPATH -u "$shortmode_path"` 33689 new_path="$input_path" 33690 fi 33691 fi 33692 33693 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33694 if test "x$test_cygdrive_prefix" = x; then 33695 # As a simple fix, exclude /usr/bin since it's not a real path. 33696 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33697 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33698 # a path prefixed by /cygdrive for fixpath to work. 33699 new_path="$CYGWIN_ROOT_PATH$input_path" 33700 fi 33701 fi 33702 33703 # remove trailing .exe if any 33704 new_path="${new_path/%.exe/}" 33705 33706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33707 33708 # First separate the path from the arguments. This will split at the first 33709 # space. 33710 complete="$CC" 33711 path="${complete%% *}" 33712 tmp="$complete EOL" 33713 arguments="${tmp#* }" 33714 33715 # Input might be given as Windows format, start by converting to 33716 # unix format. 33717 new_path="$path" 33718 33719 windows_path="$new_path" 33720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33721 unix_path=`$CYGPATH -u "$windows_path"` 33722 new_path="$unix_path" 33723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33724 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33725 new_path="$unix_path" 33726 fi 33727 33728 33729 # Now try to locate executable using which 33730 new_path=`$WHICH "$new_path" 2> /dev/null` 33731 33732 if test "x$new_path" = x; then 33733 # Oops. Which didn't find the executable. 33734 # The splitting of arguments from the executable at a space might have been incorrect, 33735 # since paths with space are more likely in Windows. Give it another try with the whole 33736 # argument. 33737 path="$complete" 33738 arguments="EOL" 33739 new_path="$path" 33740 33741 windows_path="$new_path" 33742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33743 unix_path=`$CYGPATH -u "$windows_path"` 33744 new_path="$unix_path" 33745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33746 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33747 new_path="$unix_path" 33748 fi 33749 33750 33751 new_path=`$WHICH "$new_path" 2> /dev/null` 33752 # bat and cmd files are not always considered executable in MSYS causing which 33753 # to not find them 33754 if test "x$new_path" = x \ 33755 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33756 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33757 new_path="$path" 33758 33759 windows_path="$new_path" 33760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33761 unix_path=`$CYGPATH -u "$windows_path"` 33762 new_path="$unix_path" 33763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33764 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33765 new_path="$unix_path" 33766 fi 33767 33768 fi 33769 33770 if test "x$new_path" = x; then 33771 # It's still not found. Now this is an unrecoverable error. 33772 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33773 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33774 has_space=`$ECHO "$complete" | $GREP " "` 33775 if test "x$has_space" != x; then 33776 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33777 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33778 fi 33779 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33780 fi 33781 fi 33782 33783 # Now new_path has a complete unix path to the binary 33784 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33785 # Keep paths in /bin as-is, but remove trailing .exe if any 33786 new_path="${new_path/%.exe/}" 33787 # Do not save /bin paths to all_fixpath_prefixes! 33788 else 33789 # Not in mixed or Windows style, start by that. 33790 new_path=`cmd //c echo $new_path` 33791 33792 input_path="$new_path" 33793 # Check if we need to convert this using DOS-style short mode. If the path 33794 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33795 # take no chances and rewrite it. 33796 # Note: m4 eats our [], so we need to use [ and ] instead. 33797 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33798 if test "x$has_forbidden_chars" != x; then 33799 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33800 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33801 fi 33802 33803 # Output is in $new_path 33804 33805 windows_path="$new_path" 33806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33807 unix_path=`$CYGPATH -u "$windows_path"` 33808 new_path="$unix_path" 33809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33810 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33811 new_path="$unix_path" 33812 fi 33813 33814 # remove trailing .exe if any 33815 new_path="${new_path/%.exe/}" 33816 33817 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33818 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33819 fi 33820 33821 else 33822 # We're on a unix platform. Hooray! :) 33823 # First separate the path from the arguments. This will split at the first 33824 # space. 33825 complete="$CC" 33826 path="${complete%% *}" 33827 tmp="$complete EOL" 33828 arguments="${tmp#* }" 33829 33830 # Cannot rely on the command "which" here since it doesn't always work. 33831 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33832 if test -z "$is_absolute_path"; then 33833 # Path to executable is not absolute. Find it. 33834 IFS_save="$IFS" 33835 IFS=: 33836 for p in $PATH; do 33837 if test -f "$p/$path" && test -x "$p/$path"; then 33838 new_path="$p/$path" 33839 break 33840 fi 33841 done 33842 IFS="$IFS_save" 33843 else 33844 # This is an absolute path, we can use it without further modifications. 33845 new_path="$path" 33846 fi 33847 33848 if test "x$new_path" = x; then 33849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33850 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33851 has_space=`$ECHO "$complete" | $GREP " "` 33852 if test "x$has_space" != x; then 33853 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33854 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33855 fi 33856 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33857 fi 33858 fi 33859 33860 # Now join together the path and the arguments once again 33861 if test "x$arguments" != xEOL; then 33862 new_complete="$new_path ${arguments% *}" 33863 else 33864 new_complete="$new_path" 33865 fi 33866 33867 if test "x$complete" != "x$new_complete"; then 33868 CC="$new_complete" 33869 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 33870 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 33871 fi 33872 fi 33873 33874 TEST_COMPILER="$CC" 33875 33876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 33877 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 33878 SYMLINK_ORIGINAL="$TEST_COMPILER" 33879 33880 if test "x$OPENJDK_BUILD_OS" != xwindows; then 33881 # Follow a chain of symbolic links. Use readlink 33882 # where it exists, else fall back to horribly 33883 # complicated shell code. 33884 if test "x$READLINK_TESTED" != yes; then 33885 # On MacOSX there is a readlink tool with a different 33886 # purpose than the GNU readlink tool. Check the found readlink. 33887 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 33888 if test "x$ISGNU" = x; then 33889 # A readlink that we do not know how to use. 33890 # Are there other non-GNU readlinks out there? 33891 READLINK_TESTED=yes 33892 READLINK= 33893 fi 33894 fi 33895 33896 if test "x$READLINK" != x; then 33897 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 33898 else 33899 # Save the current directory for restoring afterwards 33900 STARTDIR=$PWD 33901 COUNTER=0 33902 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 33903 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 33904 cd $sym_link_dir 33905 # Use -P flag to resolve symlinks in directories. 33906 cd `$THEPWDCMD -P` 33907 sym_link_dir=`$THEPWDCMD -P` 33908 # Resolve file symlinks 33909 while test $COUNTER -lt 20; do 33910 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 33911 if test "x$ISLINK" == x; then 33912 # This is not a symbolic link! We are done! 33913 break 33914 fi 33915 # Again resolve directory symlinks since the target of the just found 33916 # link could be in a different directory 33917 cd `$DIRNAME $ISLINK` 33918 sym_link_dir=`$THEPWDCMD -P` 33919 sym_link_file=`$BASENAME $ISLINK` 33920 let COUNTER=COUNTER+1 33921 done 33922 cd $STARTDIR 33923 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 33924 fi 33925 fi 33926 33927 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 33928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 33929 $as_echo "no symlink" >&6; } 33930 else 33931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 33932 $as_echo "$SYMLINK_ORIGINAL" >&6; } 33933 33934 # We can't handle ccache by gcc wrappers, since we need to know if we're 33935 # using ccache. Instead ccache usage must be controlled by a configure option. 33936 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 33937 if test "x$COMPILER_BASENAME" = "xccache"; then 33938 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 33939 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 33940 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 33941 fi 33942 fi 33943 33944 33945 COMPILER=$CC 33946 COMPILER_NAME=$COMPILER_NAME 33947 33948 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 33949 # cc -V output typically looks like 33950 # cc: Sun C 5.12 Linux_i386 2011/11/16 33951 # or 33952 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 33953 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 33954 # Check that this is likely to be the Solaris Studio cc. 33955 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 33956 if test $? -ne 0; then 33957 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33958 { $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 33959 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33960 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33961 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33962 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33963 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33964 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33965 fi 33966 # Remove usage instructions (if present), and 33967 # collapse compiler output into a single line 33968 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33969 $SED -e 's/ *[Uu]sage:.*//'` 33970 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33971 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 33972 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 33973 # xlc -qversion output typically looks like 33974 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 33975 # Version: 11.01.0000.0015 33976 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 33977 # Check that this is likely to be the IBM XL C compiler. 33978 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 33979 if test $? -ne 0; then 33980 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33981 { $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 33982 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33983 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33984 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33985 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33986 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33987 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33988 fi 33989 # Collapse compiler output into a single line 33990 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33991 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33992 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 33993 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33994 # There is no specific version flag, but all output starts with a version string. 33995 # First line typically looks something like: 33996 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 33997 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 33998 # Check that this is likely to be Microsoft CL.EXE. 33999 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34000 if test $? -ne 0; then 34001 { $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 34002 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34003 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34004 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34005 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34006 fi 34007 # Collapse compiler output into a single line 34008 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34009 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34010 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34011 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34012 # gcc --version output typically looks like 34013 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34014 # Copyright (C) 2013 Free Software Foundation, Inc. 34015 # This is free software; see the source for copying conditions. There is NO 34016 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34017 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34018 # Check that this is likely to be GCC. 34019 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34020 if test $? -ne 0; then 34021 { $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 34022 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34023 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34024 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34025 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34026 fi 34027 # Remove Copyright and legalese from version string, and 34028 # collapse into a single line 34029 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34030 $SED -e 's/ *Copyright .*//'` 34031 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34032 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34033 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34034 # clang --version output typically looks like 34035 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34036 # clang version 3.3 (tags/RELEASE_33/final) 34037 # or 34038 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34039 # Target: x86_64-pc-linux-gnu 34040 # Thread model: posix 34041 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34042 # Check that this is likely to be clang 34043 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34044 if test $? -ne 0; then 34045 { $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 34046 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34047 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34048 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34049 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34050 fi 34051 # Collapse compiler output into a single line 34052 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34053 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34054 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34055 else 34056 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34057 fi 34058 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34059 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34060 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34061 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 34062 34063 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34064 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34065 34066 34067 # Now that we have resolved CC ourself, let autoconf have its go at it 34068 ac_ext=c 34069 ac_cpp='$CPP $CPPFLAGS' 34070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34072 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34073 if test -n "$ac_tool_prefix"; then 34074 for ac_prog in $CC 34075 do 34076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34079 $as_echo_n "checking for $ac_word... " >&6; } 34080 if ${ac_cv_prog_CC+:} false; then : 34081 $as_echo_n "(cached) " >&6 34082 else 34083 if test -n "$CC"; then 34084 ac_cv_prog_CC="$CC" # Let the user override the test. 34085 else 34086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34087 for as_dir in $PATH 34088 do 34089 IFS=$as_save_IFS 34090 test -z "$as_dir" && as_dir=. 34091 for ac_exec_ext in '' $ac_executable_extensions; do 34092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34095 break 2 34096 fi 34097 done 34098 done 34099 IFS=$as_save_IFS 34100 34101 fi 34102 fi 34103 CC=$ac_cv_prog_CC 34104 if test -n "$CC"; then 34105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34106 $as_echo "$CC" >&6; } 34107 else 34108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34109 $as_echo "no" >&6; } 34110 fi 34111 34112 34113 test -n "$CC" && break 34114 done 34115 fi 34116 if test -z "$CC"; then 34117 ac_ct_CC=$CC 34118 for ac_prog in $CC 34119 do 34120 # Extract the first word of "$ac_prog", so it can be a program name with args. 34121 set dummy $ac_prog; ac_word=$2 34122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34123 $as_echo_n "checking for $ac_word... " >&6; } 34124 if ${ac_cv_prog_ac_ct_CC+:} false; then : 34125 $as_echo_n "(cached) " >&6 34126 else 34127 if test -n "$ac_ct_CC"; then 34128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34129 else 34130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34131 for as_dir in $PATH 34132 do 34133 IFS=$as_save_IFS 34134 test -z "$as_dir" && as_dir=. 34135 for ac_exec_ext in '' $ac_executable_extensions; do 34136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34137 ac_cv_prog_ac_ct_CC="$ac_prog" 34138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34139 break 2 34140 fi 34141 done 34142 done 34143 IFS=$as_save_IFS 34144 34145 fi 34146 fi 34147 ac_ct_CC=$ac_cv_prog_ac_ct_CC 34148 if test -n "$ac_ct_CC"; then 34149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34150 $as_echo "$ac_ct_CC" >&6; } 34151 else 34152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34153 $as_echo "no" >&6; } 34154 fi 34155 34156 34157 test -n "$ac_ct_CC" && break 34158 done 34159 34160 if test "x$ac_ct_CC" = x; then 34161 CC="" 34162 else 34163 case $cross_compiling:$ac_tool_warned in 34164 yes:) 34165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34167 ac_tool_warned=yes ;; 34168 esac 34169 CC=$ac_ct_CC 34170 fi 34171 fi 34172 34173 34174 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34176 as_fn_error $? "no acceptable C compiler found in \$PATH 34177 See \`config.log' for more details" "$LINENO" 5; } 34178 34179 # Provide some information about the compiler. 34180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 34181 set X $ac_compile 34182 ac_compiler=$2 34183 for ac_option in --version -v -V -qversion; do 34184 { { ac_try="$ac_compiler $ac_option >&5" 34185 case "(($ac_try" in 34186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34187 *) ac_try_echo=$ac_try;; 34188 esac 34189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34190 $as_echo "$ac_try_echo"; } >&5 34191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34192 ac_status=$? 34193 if test -s conftest.err; then 34194 sed '10a\ 34195 ... rest of stderr output deleted ... 34196 10q' conftest.err >conftest.er1 34197 cat conftest.er1 >&5 34198 fi 34199 rm -f conftest.er1 conftest.err 34200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34201 test $ac_status = 0; } 34202 done 34203 34204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34205 /* end confdefs.h. */ 34206 34207 int 34208 main () 34209 { 34210 34211 ; 34212 return 0; 34213 } 34214 _ACEOF 34215 ac_clean_files_save=$ac_clean_files 34216 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 34217 # Try to create an executable without -o first, disregard a.out. 34218 # It will help us diagnose broken compilers, and finding out an intuition 34219 # of exeext. 34220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 34221 $as_echo_n "checking whether the C compiler works... " >&6; } 34222 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 34223 34224 # The possible output files: 34225 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 34226 34227 ac_rmfiles= 34228 for ac_file in $ac_files 34229 do 34230 case $ac_file in 34231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34232 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 34233 esac 34234 done 34235 rm -f $ac_rmfiles 34236 34237 if { { ac_try="$ac_link_default" 34238 case "(($ac_try" in 34239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34240 *) ac_try_echo=$ac_try;; 34241 esac 34242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34243 $as_echo "$ac_try_echo"; } >&5 34244 (eval "$ac_link_default") 2>&5 34245 ac_status=$? 34246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34247 test $ac_status = 0; }; then : 34248 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 34249 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 34250 # in a Makefile. We should not override ac_cv_exeext if it was cached, 34251 # so that the user can short-circuit this test for compilers unknown to 34252 # Autoconf. 34253 for ac_file in $ac_files '' 34254 do 34255 test -f "$ac_file" || continue 34256 case $ac_file in 34257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 34258 ;; 34259 [ab].out ) 34260 # We found the default executable, but exeext='' is most 34261 # certainly right. 34262 break;; 34263 *.* ) 34264 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 34265 then :; else 34266 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34267 fi 34268 # We set ac_cv_exeext here because the later test for it is not 34269 # safe: cross compilers may not add the suffix if given an `-o' 34270 # argument, so we may need to know it at that point already. 34271 # Even if this section looks crufty: it has the advantage of 34272 # actually working. 34273 break;; 34274 * ) 34275 break;; 34276 esac 34277 done 34278 test "$ac_cv_exeext" = no && ac_cv_exeext= 34279 34280 else 34281 ac_file='' 34282 fi 34283 if test -z "$ac_file"; then : 34284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34285 $as_echo "no" >&6; } 34286 $as_echo "$as_me: failed program was:" >&5 34287 sed 's/^/| /' conftest.$ac_ext >&5 34288 34289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34291 as_fn_error 77 "C compiler cannot create executables 34292 See \`config.log' for more details" "$LINENO" 5; } 34293 else 34294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34295 $as_echo "yes" >&6; } 34296 fi 34297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34298 $as_echo_n "checking for C compiler default output file name... " >&6; } 34299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34300 $as_echo "$ac_file" >&6; } 34301 ac_exeext=$ac_cv_exeext 34302 34303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34304 ac_clean_files=$ac_clean_files_save 34305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34306 $as_echo_n "checking for suffix of executables... " >&6; } 34307 if { { ac_try="$ac_link" 34308 case "(($ac_try" in 34309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34310 *) ac_try_echo=$ac_try;; 34311 esac 34312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34313 $as_echo "$ac_try_echo"; } >&5 34314 (eval "$ac_link") 2>&5 34315 ac_status=$? 34316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34317 test $ac_status = 0; }; then : 34318 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34319 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34320 # work properly (i.e., refer to `conftest.exe'), while it won't with 34321 # `rm'. 34322 for ac_file in conftest.exe conftest conftest.*; do 34323 test -f "$ac_file" || continue 34324 case $ac_file in 34325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34327 break;; 34328 * ) break;; 34329 esac 34330 done 34331 else 34332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34334 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34335 See \`config.log' for more details" "$LINENO" 5; } 34336 fi 34337 rm -f conftest conftest$ac_cv_exeext 34338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34339 $as_echo "$ac_cv_exeext" >&6; } 34340 34341 rm -f conftest.$ac_ext 34342 EXEEXT=$ac_cv_exeext 34343 ac_exeext=$EXEEXT 34344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34345 /* end confdefs.h. */ 34346 #include <stdio.h> 34347 int 34348 main () 34349 { 34350 FILE *f = fopen ("conftest.out", "w"); 34351 return ferror (f) || fclose (f) != 0; 34352 34353 ; 34354 return 0; 34355 } 34356 _ACEOF 34357 ac_clean_files="$ac_clean_files conftest.out" 34358 # Check that the compiler produces executables we can run. If not, either 34359 # the compiler is broken, or we cross compile. 34360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34361 $as_echo_n "checking whether we are cross compiling... " >&6; } 34362 if test "$cross_compiling" != yes; then 34363 { { ac_try="$ac_link" 34364 case "(($ac_try" in 34365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34366 *) ac_try_echo=$ac_try;; 34367 esac 34368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34369 $as_echo "$ac_try_echo"; } >&5 34370 (eval "$ac_link") 2>&5 34371 ac_status=$? 34372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34373 test $ac_status = 0; } 34374 if { ac_try='./conftest$ac_cv_exeext' 34375 { { case "(($ac_try" in 34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34377 *) ac_try_echo=$ac_try;; 34378 esac 34379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34380 $as_echo "$ac_try_echo"; } >&5 34381 (eval "$ac_try") 2>&5 34382 ac_status=$? 34383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34384 test $ac_status = 0; }; }; then 34385 cross_compiling=no 34386 else 34387 if test "$cross_compiling" = maybe; then 34388 cross_compiling=yes 34389 else 34390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34392 as_fn_error $? "cannot run C compiled programs. 34393 If you meant to cross compile, use \`--host'. 34394 See \`config.log' for more details" "$LINENO" 5; } 34395 fi 34396 fi 34397 fi 34398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34399 $as_echo "$cross_compiling" >&6; } 34400 34401 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34402 ac_clean_files=$ac_clean_files_save 34403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34404 $as_echo_n "checking for suffix of object files... " >&6; } 34405 if ${ac_cv_objext+:} false; then : 34406 $as_echo_n "(cached) " >&6 34407 else 34408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34409 /* end confdefs.h. */ 34410 34411 int 34412 main () 34413 { 34414 34415 ; 34416 return 0; 34417 } 34418 _ACEOF 34419 rm -f conftest.o conftest.obj 34420 if { { ac_try="$ac_compile" 34421 case "(($ac_try" in 34422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34423 *) ac_try_echo=$ac_try;; 34424 esac 34425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34426 $as_echo "$ac_try_echo"; } >&5 34427 (eval "$ac_compile") 2>&5 34428 ac_status=$? 34429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34430 test $ac_status = 0; }; then : 34431 for ac_file in conftest.o conftest.obj conftest.*; do 34432 test -f "$ac_file" || continue; 34433 case $ac_file in 34434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34435 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34436 break;; 34437 esac 34438 done 34439 else 34440 $as_echo "$as_me: failed program was:" >&5 34441 sed 's/^/| /' conftest.$ac_ext >&5 34442 34443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34445 as_fn_error $? "cannot compute suffix of object files: cannot compile 34446 See \`config.log' for more details" "$LINENO" 5; } 34447 fi 34448 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34449 fi 34450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34451 $as_echo "$ac_cv_objext" >&6; } 34452 OBJEXT=$ac_cv_objext 34453 ac_objext=$OBJEXT 34454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34455 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34456 if ${ac_cv_c_compiler_gnu+:} false; then : 34457 $as_echo_n "(cached) " >&6 34458 else 34459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34460 /* end confdefs.h. */ 34461 34462 int 34463 main () 34464 { 34465 #ifndef __GNUC__ 34466 choke me 34467 #endif 34468 34469 ; 34470 return 0; 34471 } 34472 _ACEOF 34473 if ac_fn_c_try_compile "$LINENO"; then : 34474 ac_compiler_gnu=yes 34475 else 34476 ac_compiler_gnu=no 34477 fi 34478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34479 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34480 34481 fi 34482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34483 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34484 if test $ac_compiler_gnu = yes; then 34485 GCC=yes 34486 else 34487 GCC= 34488 fi 34489 ac_test_CFLAGS=${CFLAGS+set} 34490 ac_save_CFLAGS=$CFLAGS 34491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34492 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34493 if ${ac_cv_prog_cc_g+:} false; then : 34494 $as_echo_n "(cached) " >&6 34495 else 34496 ac_save_c_werror_flag=$ac_c_werror_flag 34497 ac_c_werror_flag=yes 34498 ac_cv_prog_cc_g=no 34499 CFLAGS="-g" 34500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34501 /* end confdefs.h. */ 34502 34503 int 34504 main () 34505 { 34506 34507 ; 34508 return 0; 34509 } 34510 _ACEOF 34511 if ac_fn_c_try_compile "$LINENO"; then : 34512 ac_cv_prog_cc_g=yes 34513 else 34514 CFLAGS="" 34515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34516 /* end confdefs.h. */ 34517 34518 int 34519 main () 34520 { 34521 34522 ; 34523 return 0; 34524 } 34525 _ACEOF 34526 if ac_fn_c_try_compile "$LINENO"; then : 34527 34528 else 34529 ac_c_werror_flag=$ac_save_c_werror_flag 34530 CFLAGS="-g" 34531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34532 /* end confdefs.h. */ 34533 34534 int 34535 main () 34536 { 34537 34538 ; 34539 return 0; 34540 } 34541 _ACEOF 34542 if ac_fn_c_try_compile "$LINENO"; then : 34543 ac_cv_prog_cc_g=yes 34544 fi 34545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34546 fi 34547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34548 fi 34549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34550 ac_c_werror_flag=$ac_save_c_werror_flag 34551 fi 34552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34553 $as_echo "$ac_cv_prog_cc_g" >&6; } 34554 if test "$ac_test_CFLAGS" = set; then 34555 CFLAGS=$ac_save_CFLAGS 34556 elif test $ac_cv_prog_cc_g = yes; then 34557 if test "$GCC" = yes; then 34558 CFLAGS="-g -O2" 34559 else 34560 CFLAGS="-g" 34561 fi 34562 else 34563 if test "$GCC" = yes; then 34564 CFLAGS="-O2" 34565 else 34566 CFLAGS= 34567 fi 34568 fi 34569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 34570 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34571 if ${ac_cv_prog_cc_c89+:} false; then : 34572 $as_echo_n "(cached) " >&6 34573 else 34574 ac_cv_prog_cc_c89=no 34575 ac_save_CC=$CC 34576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34577 /* end confdefs.h. */ 34578 #include <stdarg.h> 34579 #include <stdio.h> 34580 struct stat; 34581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34582 struct buf { int x; }; 34583 FILE * (*rcsopen) (struct buf *, struct stat *, int); 34584 static char *e (p, i) 34585 char **p; 34586 int i; 34587 { 34588 return p[i]; 34589 } 34590 static char *f (char * (*g) (char **, int), char **p, ...) 34591 { 34592 char *s; 34593 va_list v; 34594 va_start (v,p); 34595 s = g (p, va_arg (v,int)); 34596 va_end (v); 34597 return s; 34598 } 34599 34600 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34601 function prototypes and stuff, but not '\xHH' hex character constants. 34602 These don't provoke an error unfortunately, instead are silently treated 34603 as 'x'. The following induces an error, until -std is added to get 34604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 34605 array size at least. It's necessary to write '\x00'==0 to get something 34606 that's true only with -std. */ 34607 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 34608 34609 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 34610 inside strings and character constants. */ 34611 #define FOO(x) 'x' 34612 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 34613 34614 int test (int i, double x); 34615 struct s1 {int (*f) (int a);}; 34616 struct s2 {int (*f) (double a);}; 34617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 34618 int argc; 34619 char **argv; 34620 int 34621 main () 34622 { 34623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 34624 ; 34625 return 0; 34626 } 34627 _ACEOF 34628 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 34629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 34630 do 34631 CC="$ac_save_CC $ac_arg" 34632 if ac_fn_c_try_compile "$LINENO"; then : 34633 ac_cv_prog_cc_c89=$ac_arg 34634 fi 34635 rm -f core conftest.err conftest.$ac_objext 34636 test "x$ac_cv_prog_cc_c89" != "xno" && break 34637 done 34638 rm -f conftest.$ac_ext 34639 CC=$ac_save_CC 34640 34641 fi 34642 # AC_CACHE_VAL 34643 case "x$ac_cv_prog_cc_c89" in 34644 x) 34645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 34646 $as_echo "none needed" >&6; } ;; 34647 xno) 34648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 34649 $as_echo "unsupported" >&6; } ;; 34650 *) 34651 CC="$CC $ac_cv_prog_cc_c89" 34652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 34653 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 34654 esac 34655 if test "x$ac_cv_prog_cc_c89" != xno; then : 34656 34657 fi 34658 34659 ac_ext=cpp 34660 ac_cpp='$CXXCPP $CPPFLAGS' 34661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34664 34665 34666 34667 COMPILER_NAME=C++ 34668 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 34669 34670 if test "x$CXX" != x; then 34671 # User has supplied compiler name already, always let that override. 34672 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 34673 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 34674 if test "x`basename $CXX`" = "x$CXX"; then 34675 # A command without a complete path is provided, search $PATH. 34676 34677 for ac_prog in $CXX 34678 do 34679 # Extract the first word of "$ac_prog", so it can be a program name with args. 34680 set dummy $ac_prog; ac_word=$2 34681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34682 $as_echo_n "checking for $ac_word... " >&6; } 34683 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34684 $as_echo_n "(cached) " >&6 34685 else 34686 case $POTENTIAL_CXX in 34687 [\\/]* | ?:[\\/]*) 34688 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34689 ;; 34690 *) 34691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34692 for as_dir in $PATH 34693 do 34694 IFS=$as_save_IFS 34695 test -z "$as_dir" && as_dir=. 34696 for ac_exec_ext in '' $ac_executable_extensions; do 34697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34698 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34700 break 2 34701 fi 34702 done 34703 done 34704 IFS=$as_save_IFS 34705 34706 ;; 34707 esac 34708 fi 34709 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34710 if test -n "$POTENTIAL_CXX"; then 34711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34712 $as_echo "$POTENTIAL_CXX" >&6; } 34713 else 34714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34715 $as_echo "no" >&6; } 34716 fi 34717 34718 34719 test -n "$POTENTIAL_CXX" && break 34720 done 34721 34722 if test "x$POTENTIAL_CXX" != x; then 34723 CXX=$POTENTIAL_CXX 34724 else 34725 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 34726 fi 34727 else 34728 # Otherwise it might already be a complete path 34729 if test ! -x "$CXX"; then 34730 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 34731 fi 34732 fi 34733 else 34734 # No user supplied value. Locate compiler ourselves. 34735 34736 # If we are cross compiling, assume cross compilation tools follows the 34737 # cross compilation standard where they are prefixed with the autoconf 34738 # standard name for the target. For example the binary 34739 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 34740 # If we are not cross compiling, then the default compiler name will be 34741 # used. 34742 34743 CXX= 34744 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 34745 # before checking the rest of the PATH. 34746 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 34747 # step, this should not be necessary. 34748 if test -n "$TOOLCHAIN_PATH"; then 34749 PATH_save="$PATH" 34750 PATH="$TOOLCHAIN_PATH" 34751 if test -n "$ac_tool_prefix"; then 34752 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 34753 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 34754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34755 $as_echo_n "checking for $ac_word... " >&6; } 34756 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 34757 $as_echo_n "(cached) " >&6 34758 else 34759 case $TOOLCHAIN_PATH_CXX in 34760 [\\/]* | ?:[\\/]*) 34761 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 34762 ;; 34763 *) 34764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34765 for as_dir in $PATH 34766 do 34767 IFS=$as_save_IFS 34768 test -z "$as_dir" && as_dir=. 34769 for ac_exec_ext in '' $ac_executable_extensions; do 34770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34771 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 34772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34773 break 2 34774 fi 34775 done 34776 done 34777 IFS=$as_save_IFS 34778 34779 ;; 34780 esac 34781 fi 34782 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 34783 if test -n "$TOOLCHAIN_PATH_CXX"; then 34784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 34785 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 34786 else 34787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34788 $as_echo "no" >&6; } 34789 fi 34790 34791 34792 fi 34793 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CXX"; then 34794 ac_pt_TOOLCHAIN_PATH_CXX=$TOOLCHAIN_PATH_CXX 34795 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 34796 set dummy $SEARCH_LIST; ac_word=$2 34797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34798 $as_echo_n "checking for $ac_word... " >&6; } 34799 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX+:} false; then : 34800 $as_echo_n "(cached) " >&6 34801 else 34802 case $ac_pt_TOOLCHAIN_PATH_CXX in 34803 [\\/]* | ?:[\\/]*) 34804 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$ac_pt_TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 34805 ;; 34806 *) 34807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34808 for as_dir in $PATH 34809 do 34810 IFS=$as_save_IFS 34811 test -z "$as_dir" && as_dir=. 34812 for ac_exec_ext in '' $ac_executable_extensions; do 34813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34814 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 34815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34816 break 2 34817 fi 34818 done 34819 done 34820 IFS=$as_save_IFS 34821 34822 ;; 34823 esac 34824 fi 34825 ac_pt_TOOLCHAIN_PATH_CXX=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX 34826 if test -n "$ac_pt_TOOLCHAIN_PATH_CXX"; then 34827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CXX" >&5 34828 $as_echo "$ac_pt_TOOLCHAIN_PATH_CXX" >&6; } 34829 else 34830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34831 $as_echo "no" >&6; } 34832 fi 34833 34834 if test "x$ac_pt_TOOLCHAIN_PATH_CXX" = x; then 34835 TOOLCHAIN_PATH_CXX="" 34836 else 34837 case $cross_compiling:$ac_tool_warned in 34838 yes:) 34839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34841 ac_tool_warned=yes ;; 34842 esac 34843 TOOLCHAIN_PATH_CXX=$ac_pt_TOOLCHAIN_PATH_CXX 34844 fi 34845 else 34846 TOOLCHAIN_PATH_CXX="$ac_cv_path_TOOLCHAIN_PATH_CXX" 34847 fi 34848 34849 CXX=$TOOLCHAIN_PATH_CXX 34850 PATH="$PATH_save" 34851 fi 34852 34853 # AC_PATH_TOOL can't be run multiple times with the same variable, 34854 # so create a new name for this run. 34855 if test "x$CXX" = x; then 34856 if test -n "$ac_tool_prefix"; then 34857 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 34858 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 34859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34860 $as_echo_n "checking for $ac_word... " >&6; } 34861 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34862 $as_echo_n "(cached) " >&6 34863 else 34864 case $POTENTIAL_CXX in 34865 [\\/]* | ?:[\\/]*) 34866 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34867 ;; 34868 *) 34869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34870 for as_dir in $PATH 34871 do 34872 IFS=$as_save_IFS 34873 test -z "$as_dir" && as_dir=. 34874 for ac_exec_ext in '' $ac_executable_extensions; do 34875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34876 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34878 break 2 34879 fi 34880 done 34881 done 34882 IFS=$as_save_IFS 34883 34884 ;; 34885 esac 34886 fi 34887 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34888 if test -n "$POTENTIAL_CXX"; then 34889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34890 $as_echo "$POTENTIAL_CXX" >&6; } 34891 else 34892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34893 $as_echo "no" >&6; } 34894 fi 34895 34896 34897 fi 34898 if test -z "$ac_cv_path_POTENTIAL_CXX"; then 34899 ac_pt_POTENTIAL_CXX=$POTENTIAL_CXX 34900 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 34901 set dummy $SEARCH_LIST; ac_word=$2 34902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34903 $as_echo_n "checking for $ac_word... " >&6; } 34904 if ${ac_cv_path_ac_pt_POTENTIAL_CXX+:} false; then : 34905 $as_echo_n "(cached) " >&6 34906 else 34907 case $ac_pt_POTENTIAL_CXX in 34908 [\\/]* | ?:[\\/]*) 34909 ac_cv_path_ac_pt_POTENTIAL_CXX="$ac_pt_POTENTIAL_CXX" # Let the user override the test with a path. 34910 ;; 34911 *) 34912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34913 for as_dir in $PATH 34914 do 34915 IFS=$as_save_IFS 34916 test -z "$as_dir" && as_dir=. 34917 for ac_exec_ext in '' $ac_executable_extensions; do 34918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34919 ac_cv_path_ac_pt_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34921 break 2 34922 fi 34923 done 34924 done 34925 IFS=$as_save_IFS 34926 34927 ;; 34928 esac 34929 fi 34930 ac_pt_POTENTIAL_CXX=$ac_cv_path_ac_pt_POTENTIAL_CXX 34931 if test -n "$ac_pt_POTENTIAL_CXX"; then 34932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CXX" >&5 34933 $as_echo "$ac_pt_POTENTIAL_CXX" >&6; } 34934 else 34935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34936 $as_echo "no" >&6; } 34937 fi 34938 34939 if test "x$ac_pt_POTENTIAL_CXX" = x; then 34940 POTENTIAL_CXX="" 34941 else 34942 case $cross_compiling:$ac_tool_warned in 34943 yes:) 34944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34946 ac_tool_warned=yes ;; 34947 esac 34948 POTENTIAL_CXX=$ac_pt_POTENTIAL_CXX 34949 fi 34950 else 34951 POTENTIAL_CXX="$ac_cv_path_POTENTIAL_CXX" 34952 fi 34953 34954 CXX=$POTENTIAL_CXX 34955 fi 34956 34957 if test "x$CXX" = x; then 34958 34959 # Print a helpful message on how to acquire the necessary build dependency. 34960 # devkit is the help tag: freetype, cups, alsa etc 34961 MISSING_DEPENDENCY=devkit 34962 34963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34964 cygwin_help $MISSING_DEPENDENCY 34965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34966 msys_help $MISSING_DEPENDENCY 34967 else 34968 PKGHANDLER_COMMAND= 34969 34970 case $PKGHANDLER in 34971 apt-get) 34972 apt_help $MISSING_DEPENDENCY ;; 34973 yum) 34974 yum_help $MISSING_DEPENDENCY ;; 34975 brew) 34976 brew_help $MISSING_DEPENDENCY ;; 34977 port) 34978 port_help $MISSING_DEPENDENCY ;; 34979 pkgutil) 34980 pkgutil_help $MISSING_DEPENDENCY ;; 34981 pkgadd) 34982 pkgadd_help $MISSING_DEPENDENCY ;; 34983 esac 34984 34985 if test "x$PKGHANDLER_COMMAND" != x; then 34986 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34987 fi 34988 fi 34989 34990 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34991 fi 34992 fi 34993 34994 # Now we have a compiler binary in CXX. Make sure it's okay. 34995 34996 # Only process if variable expands to non-empty 34997 34998 if test "x$CXX" != x; then 34999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35000 35001 # First separate the path from the arguments. This will split at the first 35002 # space. 35003 complete="$CXX" 35004 path="${complete%% *}" 35005 tmp="$complete EOL" 35006 arguments="${tmp#* }" 35007 35008 # Input might be given as Windows format, start by converting to 35009 # unix format. 35010 new_path=`$CYGPATH -u "$path"` 35011 35012 # Now try to locate executable using which 35013 new_path=`$WHICH "$new_path" 2> /dev/null` 35014 # bat and cmd files are not always considered executable in cygwin causing which 35015 # to not find them 35016 if test "x$new_path" = x \ 35017 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35018 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35019 new_path=`$CYGPATH -u "$path"` 35020 fi 35021 if test "x$new_path" = x; then 35022 # Oops. Which didn't find the executable. 35023 # The splitting of arguments from the executable at a space might have been incorrect, 35024 # since paths with space are more likely in Windows. Give it another try with the whole 35025 # argument. 35026 path="$complete" 35027 arguments="EOL" 35028 new_path=`$CYGPATH -u "$path"` 35029 new_path=`$WHICH "$new_path" 2> /dev/null` 35030 # bat and cmd files are not always considered executable in cygwin causing which 35031 # to not find them 35032 if test "x$new_path" = x \ 35033 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35034 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35035 new_path=`$CYGPATH -u "$path"` 35036 fi 35037 if test "x$new_path" = x; then 35038 # It's still not found. Now this is an unrecoverable error. 35039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35040 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35041 has_space=`$ECHO "$complete" | $GREP " "` 35042 if test "x$has_space" != x; then 35043 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35044 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35045 fi 35046 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35047 fi 35048 fi 35049 35050 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35051 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35052 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35053 # "foo.exe" is OK but "foo" is an error. 35054 # 35055 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35056 # It is also a way to make sure we got the proper file name for the real test later on. 35057 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35058 if test "x$test_shortpath" = x; then 35059 # Short path failed, file does not exist as specified. 35060 # Try adding .exe or .cmd 35061 if test -f "${new_path}.exe"; then 35062 input_to_shortpath="${new_path}.exe" 35063 elif test -f "${new_path}.cmd"; then 35064 input_to_shortpath="${new_path}.cmd" 35065 else 35066 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 35067 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 35068 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35069 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35070 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35071 fi 35072 else 35073 input_to_shortpath="$new_path" 35074 fi 35075 35076 # Call helper function which possibly converts this using DOS-style short mode. 35077 # If so, the updated path is stored in $new_path. 35078 new_path="$input_to_shortpath" 35079 35080 input_path="$input_to_shortpath" 35081 # Check if we need to convert this using DOS-style short mode. If the path 35082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35083 # take no chances and rewrite it. 35084 # Note: m4 eats our [], so we need to use [ and ] instead. 35085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35086 if test "x$has_forbidden_chars" != x; then 35087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35088 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35089 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35090 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35091 # Going to short mode and back again did indeed matter. Since short mode is 35092 # case insensitive, let's make it lowercase to improve readability. 35093 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35094 # Now convert it back to Unix-style (cygpath) 35095 input_path=`$CYGPATH -u "$shortmode_path"` 35096 new_path="$input_path" 35097 fi 35098 fi 35099 35100 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35101 if test "x$test_cygdrive_prefix" = x; then 35102 # As a simple fix, exclude /usr/bin since it's not a real path. 35103 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35104 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35105 # a path prefixed by /cygdrive for fixpath to work. 35106 new_path="$CYGWIN_ROOT_PATH$input_path" 35107 fi 35108 fi 35109 35110 # remove trailing .exe if any 35111 new_path="${new_path/%.exe/}" 35112 35113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35114 35115 # First separate the path from the arguments. This will split at the first 35116 # space. 35117 complete="$CXX" 35118 path="${complete%% *}" 35119 tmp="$complete EOL" 35120 arguments="${tmp#* }" 35121 35122 # Input might be given as Windows format, start by converting to 35123 # unix format. 35124 new_path="$path" 35125 35126 windows_path="$new_path" 35127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35128 unix_path=`$CYGPATH -u "$windows_path"` 35129 new_path="$unix_path" 35130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35132 new_path="$unix_path" 35133 fi 35134 35135 35136 # Now try to locate executable using which 35137 new_path=`$WHICH "$new_path" 2> /dev/null` 35138 35139 if test "x$new_path" = x; then 35140 # Oops. Which didn't find the executable. 35141 # The splitting of arguments from the executable at a space might have been incorrect, 35142 # since paths with space are more likely in Windows. Give it another try with the whole 35143 # argument. 35144 path="$complete" 35145 arguments="EOL" 35146 new_path="$path" 35147 35148 windows_path="$new_path" 35149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35150 unix_path=`$CYGPATH -u "$windows_path"` 35151 new_path="$unix_path" 35152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35153 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35154 new_path="$unix_path" 35155 fi 35156 35157 35158 new_path=`$WHICH "$new_path" 2> /dev/null` 35159 # bat and cmd files are not always considered executable in MSYS causing which 35160 # to not find them 35161 if test "x$new_path" = x \ 35162 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35163 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35164 new_path="$path" 35165 35166 windows_path="$new_path" 35167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35168 unix_path=`$CYGPATH -u "$windows_path"` 35169 new_path="$unix_path" 35170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35172 new_path="$unix_path" 35173 fi 35174 35175 fi 35176 35177 if test "x$new_path" = x; then 35178 # It's still not found. Now this is an unrecoverable error. 35179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35180 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35181 has_space=`$ECHO "$complete" | $GREP " "` 35182 if test "x$has_space" != x; then 35183 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35184 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35185 fi 35186 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35187 fi 35188 fi 35189 35190 # Now new_path has a complete unix path to the binary 35191 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35192 # Keep paths in /bin as-is, but remove trailing .exe if any 35193 new_path="${new_path/%.exe/}" 35194 # Do not save /bin paths to all_fixpath_prefixes! 35195 else 35196 # Not in mixed or Windows style, start by that. 35197 new_path=`cmd //c echo $new_path` 35198 35199 input_path="$new_path" 35200 # Check if we need to convert this using DOS-style short mode. If the path 35201 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35202 # take no chances and rewrite it. 35203 # Note: m4 eats our [], so we need to use [ and ] instead. 35204 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35205 if test "x$has_forbidden_chars" != x; then 35206 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35207 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35208 fi 35209 35210 # Output is in $new_path 35211 35212 windows_path="$new_path" 35213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35214 unix_path=`$CYGPATH -u "$windows_path"` 35215 new_path="$unix_path" 35216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35217 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35218 new_path="$unix_path" 35219 fi 35220 35221 # remove trailing .exe if any 35222 new_path="${new_path/%.exe/}" 35223 35224 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35225 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35226 fi 35227 35228 else 35229 # We're on a unix platform. Hooray! :) 35230 # First separate the path from the arguments. This will split at the first 35231 # space. 35232 complete="$CXX" 35233 path="${complete%% *}" 35234 tmp="$complete EOL" 35235 arguments="${tmp#* }" 35236 35237 # Cannot rely on the command "which" here since it doesn't always work. 35238 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35239 if test -z "$is_absolute_path"; then 35240 # Path to executable is not absolute. Find it. 35241 IFS_save="$IFS" 35242 IFS=: 35243 for p in $PATH; do 35244 if test -f "$p/$path" && test -x "$p/$path"; then 35245 new_path="$p/$path" 35246 break 35247 fi 35248 done 35249 IFS="$IFS_save" 35250 else 35251 # This is an absolute path, we can use it without further modifications. 35252 new_path="$path" 35253 fi 35254 35255 if test "x$new_path" = x; then 35256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35257 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35258 has_space=`$ECHO "$complete" | $GREP " "` 35259 if test "x$has_space" != x; then 35260 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35261 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35262 fi 35263 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35264 fi 35265 fi 35266 35267 # Now join together the path and the arguments once again 35268 if test "x$arguments" != xEOL; then 35269 new_complete="$new_path ${arguments% *}" 35270 else 35271 new_complete="$new_path" 35272 fi 35273 35274 if test "x$complete" != "x$new_complete"; then 35275 CXX="$new_complete" 35276 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 35277 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 35278 fi 35279 fi 35280 35281 TEST_COMPILER="$CXX" 35282 35283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 35284 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 35285 SYMLINK_ORIGINAL="$TEST_COMPILER" 35286 35287 if test "x$OPENJDK_BUILD_OS" != xwindows; then 35288 # Follow a chain of symbolic links. Use readlink 35289 # where it exists, else fall back to horribly 35290 # complicated shell code. 35291 if test "x$READLINK_TESTED" != yes; then 35292 # On MacOSX there is a readlink tool with a different 35293 # purpose than the GNU readlink tool. Check the found readlink. 35294 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 35295 if test "x$ISGNU" = x; then 35296 # A readlink that we do not know how to use. 35297 # Are there other non-GNU readlinks out there? 35298 READLINK_TESTED=yes 35299 READLINK= 35300 fi 35301 fi 35302 35303 if test "x$READLINK" != x; then 35304 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 35305 else 35306 # Save the current directory for restoring afterwards 35307 STARTDIR=$PWD 35308 COUNTER=0 35309 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 35310 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 35311 cd $sym_link_dir 35312 # Use -P flag to resolve symlinks in directories. 35313 cd `$THEPWDCMD -P` 35314 sym_link_dir=`$THEPWDCMD -P` 35315 # Resolve file symlinks 35316 while test $COUNTER -lt 20; do 35317 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 35318 if test "x$ISLINK" == x; then 35319 # This is not a symbolic link! We are done! 35320 break 35321 fi 35322 # Again resolve directory symlinks since the target of the just found 35323 # link could be in a different directory 35324 cd `$DIRNAME $ISLINK` 35325 sym_link_dir=`$THEPWDCMD -P` 35326 sym_link_file=`$BASENAME $ISLINK` 35327 let COUNTER=COUNTER+1 35328 done 35329 cd $STARTDIR 35330 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 35331 fi 35332 fi 35333 35334 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 35335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 35336 $as_echo "no symlink" >&6; } 35337 else 35338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 35339 $as_echo "$SYMLINK_ORIGINAL" >&6; } 35340 35341 # We can't handle ccache by gcc wrappers, since we need to know if we're 35342 # using ccache. Instead ccache usage must be controlled by a configure option. 35343 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 35344 if test "x$COMPILER_BASENAME" = "xccache"; then 35345 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 35346 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 35347 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 35348 fi 35349 fi 35350 35351 35352 COMPILER=$CXX 35353 COMPILER_NAME=$COMPILER_NAME 35354 35355 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 35356 # cc -V output typically looks like 35357 # cc: Sun C 5.12 Linux_i386 2011/11/16 35358 # or 35359 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 35360 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 35361 # Check that this is likely to be the Solaris Studio cc. 35362 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 35363 if test $? -ne 0; then 35364 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35365 { $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 35366 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35367 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35368 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35369 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35370 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35371 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35372 fi 35373 # Remove usage instructions (if present), and 35374 # collapse compiler output into a single line 35375 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35376 $SED -e 's/ *[Uu]sage:.*//'` 35377 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35378 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 35379 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 35380 # xlc -qversion output typically looks like 35381 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 35382 # Version: 11.01.0000.0015 35383 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 35384 # Check that this is likely to be the IBM XL C compiler. 35385 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 35386 if test $? -ne 0; then 35387 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35388 { $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 35389 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35390 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35391 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35392 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35393 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35394 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35395 fi 35396 # Collapse compiler output into a single line 35397 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35398 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35399 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 35400 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35401 # There is no specific version flag, but all output starts with a version string. 35402 # First line typically looks something like: 35403 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 35404 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 35405 # Check that this is likely to be Microsoft CL.EXE. 35406 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 35407 if test $? -ne 0; then 35408 { $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 35409 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35410 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35411 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35412 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35413 fi 35414 # Collapse compiler output into a single line 35415 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35416 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35417 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 35418 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 35419 # gcc --version output typically looks like 35420 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 35421 # Copyright (C) 2013 Free Software Foundation, Inc. 35422 # This is free software; see the source for copying conditions. There is NO 35423 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35424 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35425 # Check that this is likely to be GCC. 35426 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 35427 if test $? -ne 0; then 35428 { $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 35429 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35430 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 35431 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 35432 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35433 fi 35434 # Remove Copyright and legalese from version string, and 35435 # collapse into a single line 35436 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35437 $SED -e 's/ *Copyright .*//'` 35438 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35439 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 35440 elif test "x$TOOLCHAIN_TYPE" = xclang; then 35441 # clang --version output typically looks like 35442 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 35443 # clang version 3.3 (tags/RELEASE_33/final) 35444 # or 35445 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 35446 # Target: x86_64-pc-linux-gnu 35447 # Thread model: posix 35448 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35449 # Check that this is likely to be clang 35450 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 35451 if test $? -ne 0; then 35452 { $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 35453 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35454 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35455 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35456 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35457 fi 35458 # Collapse compiler output into a single line 35459 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35460 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35461 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 35462 else 35463 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 35464 fi 35465 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 35466 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 35467 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 35468 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 35469 35470 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 35471 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 35472 35473 35474 # Now that we have resolved CXX ourself, let autoconf have its go at it 35475 ac_ext=cpp 35476 ac_cpp='$CXXCPP $CPPFLAGS' 35477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35480 if test -z "$CXX"; then 35481 if test -n "$CCC"; then 35482 CXX=$CCC 35483 else 35484 if test -n "$ac_tool_prefix"; then 35485 for ac_prog in $CXX 35486 do 35487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35490 $as_echo_n "checking for $ac_word... " >&6; } 35491 if ${ac_cv_prog_CXX+:} false; then : 35492 $as_echo_n "(cached) " >&6 35493 else 35494 if test -n "$CXX"; then 35495 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35496 else 35497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35498 for as_dir in $PATH 35499 do 35500 IFS=$as_save_IFS 35501 test -z "$as_dir" && as_dir=. 35502 for ac_exec_ext in '' $ac_executable_extensions; do 35503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35504 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35506 break 2 35507 fi 35508 done 35509 done 35510 IFS=$as_save_IFS 35511 35512 fi 35513 fi 35514 CXX=$ac_cv_prog_CXX 35515 if test -n "$CXX"; then 35516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35517 $as_echo "$CXX" >&6; } 35518 else 35519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35520 $as_echo "no" >&6; } 35521 fi 35522 35523 35524 test -n "$CXX" && break 35525 done 35526 fi 35527 if test -z "$CXX"; then 35528 ac_ct_CXX=$CXX 35529 for ac_prog in $CXX 35530 do 35531 # Extract the first word of "$ac_prog", so it can be a program name with args. 35532 set dummy $ac_prog; ac_word=$2 35533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35534 $as_echo_n "checking for $ac_word... " >&6; } 35535 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 35536 $as_echo_n "(cached) " >&6 35537 else 35538 if test -n "$ac_ct_CXX"; then 35539 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 35540 else 35541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35542 for as_dir in $PATH 35543 do 35544 IFS=$as_save_IFS 35545 test -z "$as_dir" && as_dir=. 35546 for ac_exec_ext in '' $ac_executable_extensions; do 35547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35548 ac_cv_prog_ac_ct_CXX="$ac_prog" 35549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35550 break 2 35551 fi 35552 done 35553 done 35554 IFS=$as_save_IFS 35555 35556 fi 35557 fi 35558 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 35559 if test -n "$ac_ct_CXX"; then 35560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 35561 $as_echo "$ac_ct_CXX" >&6; } 35562 else 35563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35564 $as_echo "no" >&6; } 35565 fi 35566 35567 35568 test -n "$ac_ct_CXX" && break 35569 done 35570 35571 if test "x$ac_ct_CXX" = x; then 35572 CXX="g++" 35573 else 35574 case $cross_compiling:$ac_tool_warned in 35575 yes:) 35576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35578 ac_tool_warned=yes ;; 35579 esac 35580 CXX=$ac_ct_CXX 35581 fi 35582 fi 35583 35584 fi 35585 fi 35586 # Provide some information about the compiler. 35587 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 35588 set X $ac_compile 35589 ac_compiler=$2 35590 for ac_option in --version -v -V -qversion; do 35591 { { ac_try="$ac_compiler $ac_option >&5" 35592 case "(($ac_try" in 35593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35594 *) ac_try_echo=$ac_try;; 35595 esac 35596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35597 $as_echo "$ac_try_echo"; } >&5 35598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 35599 ac_status=$? 35600 if test -s conftest.err; then 35601 sed '10a\ 35602 ... rest of stderr output deleted ... 35603 10q' conftest.err >conftest.er1 35604 cat conftest.er1 >&5 35605 fi 35606 rm -f conftest.er1 conftest.err 35607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35608 test $ac_status = 0; } 35609 done 35610 35611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 35612 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 35613 if ${ac_cv_cxx_compiler_gnu+:} false; then : 35614 $as_echo_n "(cached) " >&6 35615 else 35616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35617 /* end confdefs.h. */ 35618 35619 int 35620 main () 35621 { 35622 #ifndef __GNUC__ 35623 choke me 35624 #endif 35625 35626 ; 35627 return 0; 35628 } 35629 _ACEOF 35630 if ac_fn_cxx_try_compile "$LINENO"; then : 35631 ac_compiler_gnu=yes 35632 else 35633 ac_compiler_gnu=no 35634 fi 35635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35636 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 35637 35638 fi 35639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 35640 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 35641 if test $ac_compiler_gnu = yes; then 35642 GXX=yes 35643 else 35644 GXX= 35645 fi 35646 ac_test_CXXFLAGS=${CXXFLAGS+set} 35647 ac_save_CXXFLAGS=$CXXFLAGS 35648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 35649 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 35650 if ${ac_cv_prog_cxx_g+:} false; then : 35651 $as_echo_n "(cached) " >&6 35652 else 35653 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 35654 ac_cxx_werror_flag=yes 35655 ac_cv_prog_cxx_g=no 35656 CXXFLAGS="-g" 35657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35658 /* end confdefs.h. */ 35659 35660 int 35661 main () 35662 { 35663 35664 ; 35665 return 0; 35666 } 35667 _ACEOF 35668 if ac_fn_cxx_try_compile "$LINENO"; then : 35669 ac_cv_prog_cxx_g=yes 35670 else 35671 CXXFLAGS="" 35672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35673 /* end confdefs.h. */ 35674 35675 int 35676 main () 35677 { 35678 35679 ; 35680 return 0; 35681 } 35682 _ACEOF 35683 if ac_fn_cxx_try_compile "$LINENO"; then : 35684 35685 else 35686 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35687 CXXFLAGS="-g" 35688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35689 /* end confdefs.h. */ 35690 35691 int 35692 main () 35693 { 35694 35695 ; 35696 return 0; 35697 } 35698 _ACEOF 35699 if ac_fn_cxx_try_compile "$LINENO"; then : 35700 ac_cv_prog_cxx_g=yes 35701 fi 35702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35703 fi 35704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35705 fi 35706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35707 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35708 fi 35709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 35710 $as_echo "$ac_cv_prog_cxx_g" >&6; } 35711 if test "$ac_test_CXXFLAGS" = set; then 35712 CXXFLAGS=$ac_save_CXXFLAGS 35713 elif test $ac_cv_prog_cxx_g = yes; then 35714 if test "$GXX" = yes; then 35715 CXXFLAGS="-g -O2" 35716 else 35717 CXXFLAGS="-g" 35718 fi 35719 else 35720 if test "$GXX" = yes; then 35721 CXXFLAGS="-O2" 35722 else 35723 CXXFLAGS= 35724 fi 35725 fi 35726 ac_ext=cpp 35727 ac_cpp='$CXXCPP $CPPFLAGS' 35728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35731 35732 35733 # This is the compiler version number on the form X.Y[.Z] 35734 35735 35736 35737 35738 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 35739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 35740 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 35741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 35742 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 35743 fi 35744 35745 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 35746 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 35747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 35748 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35749 fi 35750 35751 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 35752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 35753 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35754 fi 35755 35756 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 35757 35758 35759 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 35760 35761 35762 35763 35764 35765 35766 35767 35768 35769 35770 35771 35772 35773 35774 35775 35776 35777 35778 35779 35780 35781 35782 35783 35784 35785 35786 35787 35788 35789 35790 35791 35792 35793 35794 35795 35796 35797 35798 35799 35800 35801 35802 35803 35804 35805 35806 35807 35808 35809 # Execute function body 35810 35811 # Need to assign to a variable since m4 is blocked from modifying parts in []. 35812 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 35813 35814 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 35815 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 35816 fi 35817 35818 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 35819 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 35820 fi 35821 35822 # Version comparison method inspired by http://stackoverflow.com/a/24067243 35823 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 35824 35825 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 35826 : 35827 35828 else 35829 : 35830 35831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&5 35832 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 35833 35834 35835 fi 35836 35837 35838 35839 35840 35841 35842 35843 35844 35845 35846 35847 35848 35849 35850 fi 35851 35852 # 35853 # Setup the preprocessor (CPP and CXXCPP) 35854 # 35855 ac_ext=c 35856 ac_cpp='$CPP $CPPFLAGS' 35857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35859 ac_compiler_gnu=$ac_cv_c_compiler_gnu 35860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 35861 $as_echo_n "checking how to run the C preprocessor... " >&6; } 35862 # On Suns, sometimes $CPP names a directory. 35863 if test -n "$CPP" && test -d "$CPP"; then 35864 CPP= 35865 fi 35866 if test -z "$CPP"; then 35867 if ${ac_cv_prog_CPP+:} false; then : 35868 $as_echo_n "(cached) " >&6 35869 else 35870 # Double quotes because CPP needs to be expanded 35871 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 35872 do 35873 ac_preproc_ok=false 35874 for ac_c_preproc_warn_flag in '' yes 35875 do 35876 # Use a header file that comes with gcc, so configuring glibc 35877 # with a fresh cross-compiler works. 35878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35879 # <limits.h> exists even on freestanding compilers. 35880 # On the NeXT, cc -E runs the code through the compiler's parser, 35881 # not just through cpp. "Syntax error" is here to catch this case. 35882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35883 /* end confdefs.h. */ 35884 #ifdef __STDC__ 35885 # include <limits.h> 35886 #else 35887 # include <assert.h> 35888 #endif 35889 Syntax error 35890 _ACEOF 35891 if ac_fn_c_try_cpp "$LINENO"; then : 35892 35893 else 35894 # Broken: fails on valid input. 35895 continue 35896 fi 35897 rm -f conftest.err conftest.i conftest.$ac_ext 35898 35899 # OK, works on sane cases. Now check whether nonexistent headers 35900 # can be detected and how. 35901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35902 /* end confdefs.h. */ 35903 #include <ac_nonexistent.h> 35904 _ACEOF 35905 if ac_fn_c_try_cpp "$LINENO"; then : 35906 # Broken: success on invalid input. 35907 continue 35908 else 35909 # Passes both tests. 35910 ac_preproc_ok=: 35911 break 35912 fi 35913 rm -f conftest.err conftest.i conftest.$ac_ext 35914 35915 done 35916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35917 rm -f conftest.i conftest.err conftest.$ac_ext 35918 if $ac_preproc_ok; then : 35919 break 35920 fi 35921 35922 done 35923 ac_cv_prog_CPP=$CPP 35924 35925 fi 35926 CPP=$ac_cv_prog_CPP 35927 else 35928 ac_cv_prog_CPP=$CPP 35929 fi 35930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 35931 $as_echo "$CPP" >&6; } 35932 ac_preproc_ok=false 35933 for ac_c_preproc_warn_flag in '' yes 35934 do 35935 # Use a header file that comes with gcc, so configuring glibc 35936 # with a fresh cross-compiler works. 35937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35938 # <limits.h> exists even on freestanding compilers. 35939 # On the NeXT, cc -E runs the code through the compiler's parser, 35940 # not just through cpp. "Syntax error" is here to catch this case. 35941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35942 /* end confdefs.h. */ 35943 #ifdef __STDC__ 35944 # include <limits.h> 35945 #else 35946 # include <assert.h> 35947 #endif 35948 Syntax error 35949 _ACEOF 35950 if ac_fn_c_try_cpp "$LINENO"; then : 35951 35952 else 35953 # Broken: fails on valid input. 35954 continue 35955 fi 35956 rm -f conftest.err conftest.i conftest.$ac_ext 35957 35958 # OK, works on sane cases. Now check whether nonexistent headers 35959 # can be detected and how. 35960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35961 /* end confdefs.h. */ 35962 #include <ac_nonexistent.h> 35963 _ACEOF 35964 if ac_fn_c_try_cpp "$LINENO"; then : 35965 # Broken: success on invalid input. 35966 continue 35967 else 35968 # Passes both tests. 35969 ac_preproc_ok=: 35970 break 35971 fi 35972 rm -f conftest.err conftest.i conftest.$ac_ext 35973 35974 done 35975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35976 rm -f conftest.i conftest.err conftest.$ac_ext 35977 if $ac_preproc_ok; then : 35978 35979 else 35980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35982 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 35983 See \`config.log' for more details" "$LINENO" 5; } 35984 fi 35985 35986 ac_ext=cpp 35987 ac_cpp='$CXXCPP $CPPFLAGS' 35988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35991 35992 35993 # Only process if variable expands to non-empty 35994 35995 if test "x$CPP" != x; then 35996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35997 35998 # First separate the path from the arguments. This will split at the first 35999 # space. 36000 complete="$CPP" 36001 path="${complete%% *}" 36002 tmp="$complete EOL" 36003 arguments="${tmp#* }" 36004 36005 # Input might be given as Windows format, start by converting to 36006 # unix format. 36007 new_path=`$CYGPATH -u "$path"` 36008 36009 # Now try to locate executable using which 36010 new_path=`$WHICH "$new_path" 2> /dev/null` 36011 # bat and cmd files are not always considered executable in cygwin causing which 36012 # to not find them 36013 if test "x$new_path" = x \ 36014 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36015 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36016 new_path=`$CYGPATH -u "$path"` 36017 fi 36018 if test "x$new_path" = x; then 36019 # Oops. Which didn't find the executable. 36020 # The splitting of arguments from the executable at a space might have been incorrect, 36021 # since paths with space are more likely in Windows. Give it another try with the whole 36022 # argument. 36023 path="$complete" 36024 arguments="EOL" 36025 new_path=`$CYGPATH -u "$path"` 36026 new_path=`$WHICH "$new_path" 2> /dev/null` 36027 # bat and cmd files are not always considered executable in cygwin causing which 36028 # to not find them 36029 if test "x$new_path" = x \ 36030 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36031 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36032 new_path=`$CYGPATH -u "$path"` 36033 fi 36034 if test "x$new_path" = x; then 36035 # It's still not found. Now this is an unrecoverable error. 36036 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36037 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36038 has_space=`$ECHO "$complete" | $GREP " "` 36039 if test "x$has_space" != x; then 36040 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36041 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36042 fi 36043 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36044 fi 36045 fi 36046 36047 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36048 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36049 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36050 # "foo.exe" is OK but "foo" is an error. 36051 # 36052 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36053 # It is also a way to make sure we got the proper file name for the real test later on. 36054 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36055 if test "x$test_shortpath" = x; then 36056 # Short path failed, file does not exist as specified. 36057 # Try adding .exe or .cmd 36058 if test -f "${new_path}.exe"; then 36059 input_to_shortpath="${new_path}.exe" 36060 elif test -f "${new_path}.cmd"; then 36061 input_to_shortpath="${new_path}.cmd" 36062 else 36063 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 36064 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 36065 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36066 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36067 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36068 fi 36069 else 36070 input_to_shortpath="$new_path" 36071 fi 36072 36073 # Call helper function which possibly converts this using DOS-style short mode. 36074 # If so, the updated path is stored in $new_path. 36075 new_path="$input_to_shortpath" 36076 36077 input_path="$input_to_shortpath" 36078 # Check if we need to convert this using DOS-style short mode. If the path 36079 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36080 # take no chances and rewrite it. 36081 # Note: m4 eats our [], so we need to use [ and ] instead. 36082 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36083 if test "x$has_forbidden_chars" != x; then 36084 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36085 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36086 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36087 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36088 # Going to short mode and back again did indeed matter. Since short mode is 36089 # case insensitive, let's make it lowercase to improve readability. 36090 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36091 # Now convert it back to Unix-style (cygpath) 36092 input_path=`$CYGPATH -u "$shortmode_path"` 36093 new_path="$input_path" 36094 fi 36095 fi 36096 36097 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36098 if test "x$test_cygdrive_prefix" = x; then 36099 # As a simple fix, exclude /usr/bin since it's not a real path. 36100 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36101 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36102 # a path prefixed by /cygdrive for fixpath to work. 36103 new_path="$CYGWIN_ROOT_PATH$input_path" 36104 fi 36105 fi 36106 36107 # remove trailing .exe if any 36108 new_path="${new_path/%.exe/}" 36109 36110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36111 36112 # First separate the path from the arguments. This will split at the first 36113 # space. 36114 complete="$CPP" 36115 path="${complete%% *}" 36116 tmp="$complete EOL" 36117 arguments="${tmp#* }" 36118 36119 # Input might be given as Windows format, start by converting to 36120 # unix format. 36121 new_path="$path" 36122 36123 windows_path="$new_path" 36124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36125 unix_path=`$CYGPATH -u "$windows_path"` 36126 new_path="$unix_path" 36127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36129 new_path="$unix_path" 36130 fi 36131 36132 36133 # Now try to locate executable using which 36134 new_path=`$WHICH "$new_path" 2> /dev/null` 36135 36136 if test "x$new_path" = x; then 36137 # Oops. Which didn't find the executable. 36138 # The splitting of arguments from the executable at a space might have been incorrect, 36139 # since paths with space are more likely in Windows. Give it another try with the whole 36140 # argument. 36141 path="$complete" 36142 arguments="EOL" 36143 new_path="$path" 36144 36145 windows_path="$new_path" 36146 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36147 unix_path=`$CYGPATH -u "$windows_path"` 36148 new_path="$unix_path" 36149 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36150 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36151 new_path="$unix_path" 36152 fi 36153 36154 36155 new_path=`$WHICH "$new_path" 2> /dev/null` 36156 # bat and cmd files are not always considered executable in MSYS causing which 36157 # to not find them 36158 if test "x$new_path" = x \ 36159 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36160 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36161 new_path="$path" 36162 36163 windows_path="$new_path" 36164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36165 unix_path=`$CYGPATH -u "$windows_path"` 36166 new_path="$unix_path" 36167 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36168 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36169 new_path="$unix_path" 36170 fi 36171 36172 fi 36173 36174 if test "x$new_path" = x; then 36175 # It's still not found. Now this is an unrecoverable error. 36176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36177 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36178 has_space=`$ECHO "$complete" | $GREP " "` 36179 if test "x$has_space" != x; then 36180 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36181 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36182 fi 36183 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36184 fi 36185 fi 36186 36187 # Now new_path has a complete unix path to the binary 36188 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36189 # Keep paths in /bin as-is, but remove trailing .exe if any 36190 new_path="${new_path/%.exe/}" 36191 # Do not save /bin paths to all_fixpath_prefixes! 36192 else 36193 # Not in mixed or Windows style, start by that. 36194 new_path=`cmd //c echo $new_path` 36195 36196 input_path="$new_path" 36197 # Check if we need to convert this using DOS-style short mode. If the path 36198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36199 # take no chances and rewrite it. 36200 # Note: m4 eats our [], so we need to use [ and ] instead. 36201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36202 if test "x$has_forbidden_chars" != x; then 36203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36204 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36205 fi 36206 36207 # Output is in $new_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 # remove trailing .exe if any 36219 new_path="${new_path/%.exe/}" 36220 36221 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36222 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36223 fi 36224 36225 else 36226 # We're on a unix platform. Hooray! :) 36227 # First separate the path from the arguments. This will split at the first 36228 # space. 36229 complete="$CPP" 36230 path="${complete%% *}" 36231 tmp="$complete EOL" 36232 arguments="${tmp#* }" 36233 36234 # Cannot rely on the command "which" here since it doesn't always work. 36235 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36236 if test -z "$is_absolute_path"; then 36237 # Path to executable is not absolute. Find it. 36238 IFS_save="$IFS" 36239 IFS=: 36240 for p in $PATH; do 36241 if test -f "$p/$path" && test -x "$p/$path"; then 36242 new_path="$p/$path" 36243 break 36244 fi 36245 done 36246 IFS="$IFS_save" 36247 else 36248 # This is an absolute path, we can use it without further modifications. 36249 new_path="$path" 36250 fi 36251 36252 if test "x$new_path" = x; then 36253 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36254 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36255 has_space=`$ECHO "$complete" | $GREP " "` 36256 if test "x$has_space" != x; then 36257 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36258 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36259 fi 36260 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36261 fi 36262 fi 36263 36264 # Now join together the path and the arguments once again 36265 if test "x$arguments" != xEOL; then 36266 new_complete="$new_path ${arguments% *}" 36267 else 36268 new_complete="$new_path" 36269 fi 36270 36271 if test "x$complete" != "x$new_complete"; then 36272 CPP="$new_complete" 36273 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 36274 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 36275 fi 36276 fi 36277 36278 ac_ext=cpp 36279 ac_cpp='$CXXCPP $CPPFLAGS' 36280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 36284 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 36285 if test -z "$CXXCPP"; then 36286 if ${ac_cv_prog_CXXCPP+:} false; then : 36287 $as_echo_n "(cached) " >&6 36288 else 36289 # Double quotes because CXXCPP needs to be expanded 36290 for CXXCPP in "$CXX -E" "/lib/cpp" 36291 do 36292 ac_preproc_ok=false 36293 for ac_cxx_preproc_warn_flag in '' yes 36294 do 36295 # Use a header file that comes with gcc, so configuring glibc 36296 # with a fresh cross-compiler works. 36297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36298 # <limits.h> exists even on freestanding compilers. 36299 # On the NeXT, cc -E runs the code through the compiler's parser, 36300 # not just through cpp. "Syntax error" is here to catch this case. 36301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36302 /* end confdefs.h. */ 36303 #ifdef __STDC__ 36304 # include <limits.h> 36305 #else 36306 # include <assert.h> 36307 #endif 36308 Syntax error 36309 _ACEOF 36310 if ac_fn_cxx_try_cpp "$LINENO"; then : 36311 36312 else 36313 # Broken: fails on valid input. 36314 continue 36315 fi 36316 rm -f conftest.err conftest.i conftest.$ac_ext 36317 36318 # OK, works on sane cases. Now check whether nonexistent headers 36319 # can be detected and how. 36320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36321 /* end confdefs.h. */ 36322 #include <ac_nonexistent.h> 36323 _ACEOF 36324 if ac_fn_cxx_try_cpp "$LINENO"; then : 36325 # Broken: success on invalid input. 36326 continue 36327 else 36328 # Passes both tests. 36329 ac_preproc_ok=: 36330 break 36331 fi 36332 rm -f conftest.err conftest.i conftest.$ac_ext 36333 36334 done 36335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36336 rm -f conftest.i conftest.err conftest.$ac_ext 36337 if $ac_preproc_ok; then : 36338 break 36339 fi 36340 36341 done 36342 ac_cv_prog_CXXCPP=$CXXCPP 36343 36344 fi 36345 CXXCPP=$ac_cv_prog_CXXCPP 36346 else 36347 ac_cv_prog_CXXCPP=$CXXCPP 36348 fi 36349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 36350 $as_echo "$CXXCPP" >&6; } 36351 ac_preproc_ok=false 36352 for ac_cxx_preproc_warn_flag in '' yes 36353 do 36354 # Use a header file that comes with gcc, so configuring glibc 36355 # with a fresh cross-compiler works. 36356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36357 # <limits.h> exists even on freestanding compilers. 36358 # On the NeXT, cc -E runs the code through the compiler's parser, 36359 # not just through cpp. "Syntax error" is here to catch this case. 36360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36361 /* end confdefs.h. */ 36362 #ifdef __STDC__ 36363 # include <limits.h> 36364 #else 36365 # include <assert.h> 36366 #endif 36367 Syntax error 36368 _ACEOF 36369 if ac_fn_cxx_try_cpp "$LINENO"; then : 36370 36371 else 36372 # Broken: fails on valid input. 36373 continue 36374 fi 36375 rm -f conftest.err conftest.i conftest.$ac_ext 36376 36377 # OK, works on sane cases. Now check whether nonexistent headers 36378 # can be detected and how. 36379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36380 /* end confdefs.h. */ 36381 #include <ac_nonexistent.h> 36382 _ACEOF 36383 if ac_fn_cxx_try_cpp "$LINENO"; then : 36384 # Broken: success on invalid input. 36385 continue 36386 else 36387 # Passes both tests. 36388 ac_preproc_ok=: 36389 break 36390 fi 36391 rm -f conftest.err conftest.i conftest.$ac_ext 36392 36393 done 36394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36395 rm -f conftest.i conftest.err conftest.$ac_ext 36396 if $ac_preproc_ok; then : 36397 36398 else 36399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36401 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 36402 See \`config.log' for more details" "$LINENO" 5; } 36403 fi 36404 36405 ac_ext=cpp 36406 ac_cpp='$CXXCPP $CPPFLAGS' 36407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36410 36411 36412 # Only process if variable expands to non-empty 36413 36414 if test "x$CXXCPP" != x; then 36415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36416 36417 # First separate the path from the arguments. This will split at the first 36418 # space. 36419 complete="$CXXCPP" 36420 path="${complete%% *}" 36421 tmp="$complete EOL" 36422 arguments="${tmp#* }" 36423 36424 # Input might be given as Windows format, start by converting to 36425 # unix format. 36426 new_path=`$CYGPATH -u "$path"` 36427 36428 # Now try to locate executable using which 36429 new_path=`$WHICH "$new_path" 2> /dev/null` 36430 # bat and cmd files are not always considered executable in cygwin causing which 36431 # to not find them 36432 if test "x$new_path" = x \ 36433 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36434 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36435 new_path=`$CYGPATH -u "$path"` 36436 fi 36437 if test "x$new_path" = x; then 36438 # Oops. Which didn't find the executable. 36439 # The splitting of arguments from the executable at a space might have been incorrect, 36440 # since paths with space are more likely in Windows. Give it another try with the whole 36441 # argument. 36442 path="$complete" 36443 arguments="EOL" 36444 new_path=`$CYGPATH -u "$path"` 36445 new_path=`$WHICH "$new_path" 2> /dev/null` 36446 # bat and cmd files are not always considered executable in cygwin causing which 36447 # to not find them 36448 if test "x$new_path" = x \ 36449 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36450 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36451 new_path=`$CYGPATH -u "$path"` 36452 fi 36453 if test "x$new_path" = x; then 36454 # It's still not found. Now this is an unrecoverable error. 36455 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36456 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36457 has_space=`$ECHO "$complete" | $GREP " "` 36458 if test "x$has_space" != x; then 36459 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36460 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36461 fi 36462 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36463 fi 36464 fi 36465 36466 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36467 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36468 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36469 # "foo.exe" is OK but "foo" is an error. 36470 # 36471 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36472 # It is also a way to make sure we got the proper file name for the real test later on. 36473 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36474 if test "x$test_shortpath" = x; then 36475 # Short path failed, file does not exist as specified. 36476 # Try adding .exe or .cmd 36477 if test -f "${new_path}.exe"; then 36478 input_to_shortpath="${new_path}.exe" 36479 elif test -f "${new_path}.cmd"; then 36480 input_to_shortpath="${new_path}.cmd" 36481 else 36482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36483 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36484 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36485 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36486 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36487 fi 36488 else 36489 input_to_shortpath="$new_path" 36490 fi 36491 36492 # Call helper function which possibly converts this using DOS-style short mode. 36493 # If so, the updated path is stored in $new_path. 36494 new_path="$input_to_shortpath" 36495 36496 input_path="$input_to_shortpath" 36497 # Check if we need to convert this using DOS-style short mode. If the path 36498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36499 # take no chances and rewrite it. 36500 # Note: m4 eats our [], so we need to use [ and ] instead. 36501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36502 if test "x$has_forbidden_chars" != x; then 36503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36504 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36505 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36506 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36507 # Going to short mode and back again did indeed matter. Since short mode is 36508 # case insensitive, let's make it lowercase to improve readability. 36509 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36510 # Now convert it back to Unix-style (cygpath) 36511 input_path=`$CYGPATH -u "$shortmode_path"` 36512 new_path="$input_path" 36513 fi 36514 fi 36515 36516 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36517 if test "x$test_cygdrive_prefix" = x; then 36518 # As a simple fix, exclude /usr/bin since it's not a real path. 36519 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36520 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36521 # a path prefixed by /cygdrive for fixpath to work. 36522 new_path="$CYGWIN_ROOT_PATH$input_path" 36523 fi 36524 fi 36525 36526 # remove trailing .exe if any 36527 new_path="${new_path/%.exe/}" 36528 36529 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36530 36531 # First separate the path from the arguments. This will split at the first 36532 # space. 36533 complete="$CXXCPP" 36534 path="${complete%% *}" 36535 tmp="$complete EOL" 36536 arguments="${tmp#* }" 36537 36538 # Input might be given as Windows format, start by converting to 36539 # unix format. 36540 new_path="$path" 36541 36542 windows_path="$new_path" 36543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36544 unix_path=`$CYGPATH -u "$windows_path"` 36545 new_path="$unix_path" 36546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36547 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36548 new_path="$unix_path" 36549 fi 36550 36551 36552 # Now try to locate executable using which 36553 new_path=`$WHICH "$new_path" 2> /dev/null` 36554 36555 if test "x$new_path" = x; then 36556 # Oops. Which didn't find the executable. 36557 # The splitting of arguments from the executable at a space might have been incorrect, 36558 # since paths with space are more likely in Windows. Give it another try with the whole 36559 # argument. 36560 path="$complete" 36561 arguments="EOL" 36562 new_path="$path" 36563 36564 windows_path="$new_path" 36565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36566 unix_path=`$CYGPATH -u "$windows_path"` 36567 new_path="$unix_path" 36568 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36569 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36570 new_path="$unix_path" 36571 fi 36572 36573 36574 new_path=`$WHICH "$new_path" 2> /dev/null` 36575 # bat and cmd files are not always considered executable in MSYS causing which 36576 # to not find them 36577 if test "x$new_path" = x \ 36578 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36579 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36580 new_path="$path" 36581 36582 windows_path="$new_path" 36583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36584 unix_path=`$CYGPATH -u "$windows_path"` 36585 new_path="$unix_path" 36586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36588 new_path="$unix_path" 36589 fi 36590 36591 fi 36592 36593 if test "x$new_path" = x; then 36594 # It's still not found. Now this is an unrecoverable error. 36595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36596 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36597 has_space=`$ECHO "$complete" | $GREP " "` 36598 if test "x$has_space" != x; then 36599 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36600 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36601 fi 36602 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36603 fi 36604 fi 36605 36606 # Now new_path has a complete unix path to the binary 36607 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36608 # Keep paths in /bin as-is, but remove trailing .exe if any 36609 new_path="${new_path/%.exe/}" 36610 # Do not save /bin paths to all_fixpath_prefixes! 36611 else 36612 # Not in mixed or Windows style, start by that. 36613 new_path=`cmd //c echo $new_path` 36614 36615 input_path="$new_path" 36616 # Check if we need to convert this using DOS-style short mode. If the path 36617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36618 # take no chances and rewrite it. 36619 # Note: m4 eats our [], so we need to use [ and ] instead. 36620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36621 if test "x$has_forbidden_chars" != x; then 36622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36623 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36624 fi 36625 36626 # Output is in $new_path 36627 36628 windows_path="$new_path" 36629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36630 unix_path=`$CYGPATH -u "$windows_path"` 36631 new_path="$unix_path" 36632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36634 new_path="$unix_path" 36635 fi 36636 36637 # remove trailing .exe if any 36638 new_path="${new_path/%.exe/}" 36639 36640 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36641 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36642 fi 36643 36644 else 36645 # We're on a unix platform. Hooray! :) 36646 # First separate the path from the arguments. This will split at the first 36647 # space. 36648 complete="$CXXCPP" 36649 path="${complete%% *}" 36650 tmp="$complete EOL" 36651 arguments="${tmp#* }" 36652 36653 # Cannot rely on the command "which" here since it doesn't always work. 36654 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36655 if test -z "$is_absolute_path"; then 36656 # Path to executable is not absolute. Find it. 36657 IFS_save="$IFS" 36658 IFS=: 36659 for p in $PATH; do 36660 if test -f "$p/$path" && test -x "$p/$path"; then 36661 new_path="$p/$path" 36662 break 36663 fi 36664 done 36665 IFS="$IFS_save" 36666 else 36667 # This is an absolute path, we can use it without further modifications. 36668 new_path="$path" 36669 fi 36670 36671 if test "x$new_path" = x; then 36672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36673 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36674 has_space=`$ECHO "$complete" | $GREP " "` 36675 if test "x$has_space" != x; then 36676 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36677 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36678 fi 36679 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36680 fi 36681 fi 36682 36683 # Now join together the path and the arguments once again 36684 if test "x$arguments" != xEOL; then 36685 new_complete="$new_path ${arguments% *}" 36686 else 36687 new_complete="$new_path" 36688 fi 36689 36690 if test "x$complete" != "x$new_complete"; then 36691 CXXCPP="$new_complete" 36692 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 36693 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 36694 fi 36695 fi 36696 36697 36698 # 36699 # Setup the linker (LD) 36700 # 36701 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 36702 # In the Microsoft toolchain we have a separate LD command "link". 36703 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 36704 # a cygwin program for something completely different. 36705 # Extract the first word of "link", so it can be a program name with args. 36706 set dummy link; ac_word=$2 36707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36708 $as_echo_n "checking for $ac_word... " >&6; } 36709 if ${ac_cv_prog_LD+:} false; then : 36710 $as_echo_n "(cached) " >&6 36711 else 36712 if test -n "$LD"; then 36713 ac_cv_prog_LD="$LD" # Let the user override the test. 36714 else 36715 ac_prog_rejected=no 36716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36717 for as_dir in $PATH 36718 do 36719 IFS=$as_save_IFS 36720 test -z "$as_dir" && as_dir=. 36721 for ac_exec_ext in '' $ac_executable_extensions; do 36722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36723 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 36724 ac_prog_rejected=yes 36725 continue 36726 fi 36727 ac_cv_prog_LD="link" 36728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36729 break 2 36730 fi 36731 done 36732 done 36733 IFS=$as_save_IFS 36734 36735 if test $ac_prog_rejected = yes; then 36736 # We found a bogon in the path, so make sure we never use it. 36737 set dummy $ac_cv_prog_LD 36738 shift 36739 if test $# != 0; then 36740 # We chose a different compiler from the bogus one. 36741 # However, it has the same basename, so the bogon will be chosen 36742 # first if we set LD to just the basename; use the full file name. 36743 shift 36744 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 36745 fi 36746 fi 36747 fi 36748 fi 36749 LD=$ac_cv_prog_LD 36750 if test -n "$LD"; then 36751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 36752 $as_echo "$LD" >&6; } 36753 else 36754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36755 $as_echo "no" >&6; } 36756 fi 36757 36758 36759 36760 # Only process if variable expands to non-empty 36761 36762 if test "x$LD" != x; then 36763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36764 36765 # First separate the path from the arguments. This will split at the first 36766 # space. 36767 complete="$LD" 36768 path="${complete%% *}" 36769 tmp="$complete EOL" 36770 arguments="${tmp#* }" 36771 36772 # Input might be given as Windows format, start by converting to 36773 # unix format. 36774 new_path=`$CYGPATH -u "$path"` 36775 36776 # Now try to locate executable using which 36777 new_path=`$WHICH "$new_path" 2> /dev/null` 36778 # bat and cmd files are not always considered executable in cygwin causing which 36779 # to not find them 36780 if test "x$new_path" = x \ 36781 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36782 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36783 new_path=`$CYGPATH -u "$path"` 36784 fi 36785 if test "x$new_path" = x; then 36786 # Oops. Which didn't find the executable. 36787 # The splitting of arguments from the executable at a space might have been incorrect, 36788 # since paths with space are more likely in Windows. Give it another try with the whole 36789 # argument. 36790 path="$complete" 36791 arguments="EOL" 36792 new_path=`$CYGPATH -u "$path"` 36793 new_path=`$WHICH "$new_path" 2> /dev/null` 36794 # bat and cmd files are not always considered executable in cygwin causing which 36795 # to not find them 36796 if test "x$new_path" = x \ 36797 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36798 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36799 new_path=`$CYGPATH -u "$path"` 36800 fi 36801 if test "x$new_path" = x; then 36802 # It's still not found. Now this is an unrecoverable error. 36803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36804 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36805 has_space=`$ECHO "$complete" | $GREP " "` 36806 if test "x$has_space" != x; then 36807 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36808 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36809 fi 36810 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36811 fi 36812 fi 36813 36814 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36815 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36816 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36817 # "foo.exe" is OK but "foo" is an error. 36818 # 36819 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36820 # It is also a way to make sure we got the proper file name for the real test later on. 36821 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36822 if test "x$test_shortpath" = x; then 36823 # Short path failed, file does not exist as specified. 36824 # Try adding .exe or .cmd 36825 if test -f "${new_path}.exe"; then 36826 input_to_shortpath="${new_path}.exe" 36827 elif test -f "${new_path}.cmd"; then 36828 input_to_shortpath="${new_path}.cmd" 36829 else 36830 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 36831 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 36832 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36833 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36834 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36835 fi 36836 else 36837 input_to_shortpath="$new_path" 36838 fi 36839 36840 # Call helper function which possibly converts this using DOS-style short mode. 36841 # If so, the updated path is stored in $new_path. 36842 new_path="$input_to_shortpath" 36843 36844 input_path="$input_to_shortpath" 36845 # Check if we need to convert this using DOS-style short mode. If the path 36846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36847 # take no chances and rewrite it. 36848 # Note: m4 eats our [], so we need to use [ and ] instead. 36849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36850 if test "x$has_forbidden_chars" != x; then 36851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36852 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36853 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36854 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36855 # Going to short mode and back again did indeed matter. Since short mode is 36856 # case insensitive, let's make it lowercase to improve readability. 36857 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36858 # Now convert it back to Unix-style (cygpath) 36859 input_path=`$CYGPATH -u "$shortmode_path"` 36860 new_path="$input_path" 36861 fi 36862 fi 36863 36864 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36865 if test "x$test_cygdrive_prefix" = x; then 36866 # As a simple fix, exclude /usr/bin since it's not a real path. 36867 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36868 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36869 # a path prefixed by /cygdrive for fixpath to work. 36870 new_path="$CYGWIN_ROOT_PATH$input_path" 36871 fi 36872 fi 36873 36874 # remove trailing .exe if any 36875 new_path="${new_path/%.exe/}" 36876 36877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36878 36879 # First separate the path from the arguments. This will split at the first 36880 # space. 36881 complete="$LD" 36882 path="${complete%% *}" 36883 tmp="$complete EOL" 36884 arguments="${tmp#* }" 36885 36886 # Input might be given as Windows format, start by converting to 36887 # unix format. 36888 new_path="$path" 36889 36890 windows_path="$new_path" 36891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36892 unix_path=`$CYGPATH -u "$windows_path"` 36893 new_path="$unix_path" 36894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36896 new_path="$unix_path" 36897 fi 36898 36899 36900 # Now try to locate executable using which 36901 new_path=`$WHICH "$new_path" 2> /dev/null` 36902 36903 if test "x$new_path" = x; then 36904 # Oops. Which didn't find the executable. 36905 # The splitting of arguments from the executable at a space might have been incorrect, 36906 # since paths with space are more likely in Windows. Give it another try with the whole 36907 # argument. 36908 path="$complete" 36909 arguments="EOL" 36910 new_path="$path" 36911 36912 windows_path="$new_path" 36913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36914 unix_path=`$CYGPATH -u "$windows_path"` 36915 new_path="$unix_path" 36916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36917 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36918 new_path="$unix_path" 36919 fi 36920 36921 36922 new_path=`$WHICH "$new_path" 2> /dev/null` 36923 # bat and cmd files are not always considered executable in MSYS causing which 36924 # to not find them 36925 if test "x$new_path" = x \ 36926 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36927 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36928 new_path="$path" 36929 36930 windows_path="$new_path" 36931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36932 unix_path=`$CYGPATH -u "$windows_path"` 36933 new_path="$unix_path" 36934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36936 new_path="$unix_path" 36937 fi 36938 36939 fi 36940 36941 if test "x$new_path" = x; then 36942 # It's still not found. Now this is an unrecoverable error. 36943 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36944 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36945 has_space=`$ECHO "$complete" | $GREP " "` 36946 if test "x$has_space" != x; then 36947 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36948 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36949 fi 36950 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36951 fi 36952 fi 36953 36954 # Now new_path has a complete unix path to the binary 36955 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36956 # Keep paths in /bin as-is, but remove trailing .exe if any 36957 new_path="${new_path/%.exe/}" 36958 # Do not save /bin paths to all_fixpath_prefixes! 36959 else 36960 # Not in mixed or Windows style, start by that. 36961 new_path=`cmd //c echo $new_path` 36962 36963 input_path="$new_path" 36964 # Check if we need to convert this using DOS-style short mode. If the path 36965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36966 # take no chances and rewrite it. 36967 # Note: m4 eats our [], so we need to use [ and ] instead. 36968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36969 if test "x$has_forbidden_chars" != x; then 36970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36971 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36972 fi 36973 36974 # Output is in $new_path 36975 36976 windows_path="$new_path" 36977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36978 unix_path=`$CYGPATH -u "$windows_path"` 36979 new_path="$unix_path" 36980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36982 new_path="$unix_path" 36983 fi 36984 36985 # remove trailing .exe if any 36986 new_path="${new_path/%.exe/}" 36987 36988 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36989 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36990 fi 36991 36992 else 36993 # We're on a unix platform. Hooray! :) 36994 # First separate the path from the arguments. This will split at the first 36995 # space. 36996 complete="$LD" 36997 path="${complete%% *}" 36998 tmp="$complete EOL" 36999 arguments="${tmp#* }" 37000 37001 # Cannot rely on the command "which" here since it doesn't always work. 37002 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37003 if test -z "$is_absolute_path"; then 37004 # Path to executable is not absolute. Find it. 37005 IFS_save="$IFS" 37006 IFS=: 37007 for p in $PATH; do 37008 if test -f "$p/$path" && test -x "$p/$path"; then 37009 new_path="$p/$path" 37010 break 37011 fi 37012 done 37013 IFS="$IFS_save" 37014 else 37015 # This is an absolute path, we can use it without further modifications. 37016 new_path="$path" 37017 fi 37018 37019 if test "x$new_path" = x; then 37020 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37021 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37022 has_space=`$ECHO "$complete" | $GREP " "` 37023 if test "x$has_space" != x; then 37024 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37025 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37026 fi 37027 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37028 fi 37029 fi 37030 37031 # Now join together the path and the arguments once again 37032 if test "x$arguments" != xEOL; then 37033 new_complete="$new_path ${arguments% *}" 37034 else 37035 new_complete="$new_path" 37036 fi 37037 37038 if test "x$complete" != "x$new_complete"; then 37039 LD="$new_complete" 37040 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 37041 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 37042 fi 37043 fi 37044 37045 # Verify that we indeed succeeded with this trick. 37046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 37047 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 37048 "$LD" --version > /dev/null 37049 if test $? -eq 0 ; then 37050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37051 $as_echo "no" >&6; } 37052 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 37053 else 37054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37055 $as_echo "yes" >&6; } 37056 fi 37057 LDCXX="$LD" 37058 else 37059 # All other toolchains use the compiler to link. 37060 LD="$CC" 37061 LDCXX="$CXX" 37062 fi 37063 37064 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 37065 37066 37067 # 37068 # Setup the assembler (AS) 37069 # 37070 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 37071 37072 37073 # Publish this variable in the help. 37074 37075 37076 if [ -z "${AS+x}" ]; then 37077 # The variable is not set by user, try to locate tool using the code snippet 37078 for ac_prog in as 37079 do 37080 # Extract the first word of "$ac_prog", so it can be a program name with args. 37081 set dummy $ac_prog; ac_word=$2 37082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37083 $as_echo_n "checking for $ac_word... " >&6; } 37084 if ${ac_cv_path_AS+:} false; then : 37085 $as_echo_n "(cached) " >&6 37086 else 37087 case $AS in 37088 [\\/]* | ?:[\\/]*) 37089 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37090 ;; 37091 *) 37092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37093 for as_dir in $PATH 37094 do 37095 IFS=$as_save_IFS 37096 test -z "$as_dir" && as_dir=. 37097 for ac_exec_ext in '' $ac_executable_extensions; do 37098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37099 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37101 break 2 37102 fi 37103 done 37104 done 37105 IFS=$as_save_IFS 37106 37107 ;; 37108 esac 37109 fi 37110 AS=$ac_cv_path_AS 37111 if test -n "$AS"; then 37112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37113 $as_echo "$AS" >&6; } 37114 else 37115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37116 $as_echo "no" >&6; } 37117 fi 37118 37119 37120 test -n "$AS" && break 37121 done 37122 37123 else 37124 # The variable is set, but is it from the command line or the environment? 37125 37126 # Try to remove the string !AS! from our list. 37127 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 37128 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37129 # If it failed, the variable was not from the command line. Ignore it, 37130 # but warn the user (except for BASH, which is always set by the calling BASH). 37131 if test "xAS" != xBASH; then 37132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 37133 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 37134 fi 37135 # Try to locate tool using the code snippet 37136 for ac_prog in as 37137 do 37138 # Extract the first word of "$ac_prog", so it can be a program name with args. 37139 set dummy $ac_prog; ac_word=$2 37140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37141 $as_echo_n "checking for $ac_word... " >&6; } 37142 if ${ac_cv_path_AS+:} false; then : 37143 $as_echo_n "(cached) " >&6 37144 else 37145 case $AS in 37146 [\\/]* | ?:[\\/]*) 37147 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37148 ;; 37149 *) 37150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37151 for as_dir in $PATH 37152 do 37153 IFS=$as_save_IFS 37154 test -z "$as_dir" && as_dir=. 37155 for ac_exec_ext in '' $ac_executable_extensions; do 37156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37157 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37159 break 2 37160 fi 37161 done 37162 done 37163 IFS=$as_save_IFS 37164 37165 ;; 37166 esac 37167 fi 37168 AS=$ac_cv_path_AS 37169 if test -n "$AS"; then 37170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37171 $as_echo "$AS" >&6; } 37172 else 37173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37174 $as_echo "no" >&6; } 37175 fi 37176 37177 37178 test -n "$AS" && break 37179 done 37180 37181 else 37182 # If it succeeded, then it was overridden by the user. We will use it 37183 # for the tool. 37184 37185 # First remove it from the list of overridden variables, so we can test 37186 # for unknown variables in the end. 37187 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37188 37189 # Check if we try to supply an empty value 37190 if test "x$AS" = x; then 37191 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 37192 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 37193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37194 $as_echo_n "checking for AS... " >&6; } 37195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37196 $as_echo "disabled" >&6; } 37197 else 37198 # Check if the provided tool contains a complete path. 37199 tool_specified="$AS" 37200 tool_basename="${tool_specified##*/}" 37201 if test "x$tool_basename" = "x$tool_specified"; then 37202 # A command without a complete path is provided, search $PATH. 37203 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 37204 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 37205 # Extract the first word of "$tool_basename", so it can be a program name with args. 37206 set dummy $tool_basename; ac_word=$2 37207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37208 $as_echo_n "checking for $ac_word... " >&6; } 37209 if ${ac_cv_path_AS+:} false; then : 37210 $as_echo_n "(cached) " >&6 37211 else 37212 case $AS in 37213 [\\/]* | ?:[\\/]*) 37214 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37215 ;; 37216 *) 37217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37218 for as_dir in $PATH 37219 do 37220 IFS=$as_save_IFS 37221 test -z "$as_dir" && as_dir=. 37222 for ac_exec_ext in '' $ac_executable_extensions; do 37223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37224 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37226 break 2 37227 fi 37228 done 37229 done 37230 IFS=$as_save_IFS 37231 37232 ;; 37233 esac 37234 fi 37235 AS=$ac_cv_path_AS 37236 if test -n "$AS"; then 37237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37238 $as_echo "$AS" >&6; } 37239 else 37240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37241 $as_echo "no" >&6; } 37242 fi 37243 37244 37245 if test "x$AS" = x; then 37246 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37247 fi 37248 else 37249 # Otherwise we believe it is a complete path. Use it as it is. 37250 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 37251 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 37252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37253 $as_echo_n "checking for AS... " >&6; } 37254 if test ! -x "$tool_specified"; then 37255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37256 $as_echo "not found" >&6; } 37257 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 37258 fi 37259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37260 $as_echo "$tool_specified" >&6; } 37261 fi 37262 fi 37263 fi 37264 37265 fi 37266 37267 37268 37269 # Only process if variable expands to non-empty 37270 37271 if test "x$AS" != x; then 37272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37273 37274 # First separate the path from the arguments. This will split at the first 37275 # space. 37276 complete="$AS" 37277 path="${complete%% *}" 37278 tmp="$complete EOL" 37279 arguments="${tmp#* }" 37280 37281 # Input might be given as Windows format, start by converting to 37282 # unix format. 37283 new_path=`$CYGPATH -u "$path"` 37284 37285 # Now try to locate executable using which 37286 new_path=`$WHICH "$new_path" 2> /dev/null` 37287 # bat and cmd files are not always considered executable in cygwin causing which 37288 # to not find them 37289 if test "x$new_path" = x \ 37290 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37291 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37292 new_path=`$CYGPATH -u "$path"` 37293 fi 37294 if test "x$new_path" = x; then 37295 # Oops. Which didn't find the executable. 37296 # The splitting of arguments from the executable at a space might have been incorrect, 37297 # since paths with space are more likely in Windows. Give it another try with the whole 37298 # argument. 37299 path="$complete" 37300 arguments="EOL" 37301 new_path=`$CYGPATH -u "$path"` 37302 new_path=`$WHICH "$new_path" 2> /dev/null` 37303 # bat and cmd files are not always considered executable in cygwin causing which 37304 # to not find them 37305 if test "x$new_path" = x \ 37306 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37307 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37308 new_path=`$CYGPATH -u "$path"` 37309 fi 37310 if test "x$new_path" = x; then 37311 # It's still not found. Now this is an unrecoverable error. 37312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37313 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37314 has_space=`$ECHO "$complete" | $GREP " "` 37315 if test "x$has_space" != x; then 37316 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37317 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37318 fi 37319 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37320 fi 37321 fi 37322 37323 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37324 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37325 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37326 # "foo.exe" is OK but "foo" is an error. 37327 # 37328 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37329 # It is also a way to make sure we got the proper file name for the real test later on. 37330 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37331 if test "x$test_shortpath" = x; then 37332 # Short path failed, file does not exist as specified. 37333 # Try adding .exe or .cmd 37334 if test -f "${new_path}.exe"; then 37335 input_to_shortpath="${new_path}.exe" 37336 elif test -f "${new_path}.cmd"; then 37337 input_to_shortpath="${new_path}.cmd" 37338 else 37339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 37340 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 37341 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37342 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37343 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37344 fi 37345 else 37346 input_to_shortpath="$new_path" 37347 fi 37348 37349 # Call helper function which possibly converts this using DOS-style short mode. 37350 # If so, the updated path is stored in $new_path. 37351 new_path="$input_to_shortpath" 37352 37353 input_path="$input_to_shortpath" 37354 # Check if we need to convert this using DOS-style short mode. If the path 37355 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37356 # take no chances and rewrite it. 37357 # Note: m4 eats our [], so we need to use [ and ] instead. 37358 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37359 if test "x$has_forbidden_chars" != x; then 37360 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37361 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37362 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37363 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37364 # Going to short mode and back again did indeed matter. Since short mode is 37365 # case insensitive, let's make it lowercase to improve readability. 37366 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37367 # Now convert it back to Unix-style (cygpath) 37368 input_path=`$CYGPATH -u "$shortmode_path"` 37369 new_path="$input_path" 37370 fi 37371 fi 37372 37373 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37374 if test "x$test_cygdrive_prefix" = x; then 37375 # As a simple fix, exclude /usr/bin since it's not a real path. 37376 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37377 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37378 # a path prefixed by /cygdrive for fixpath to work. 37379 new_path="$CYGWIN_ROOT_PATH$input_path" 37380 fi 37381 fi 37382 37383 # remove trailing .exe if any 37384 new_path="${new_path/%.exe/}" 37385 37386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37387 37388 # First separate the path from the arguments. This will split at the first 37389 # space. 37390 complete="$AS" 37391 path="${complete%% *}" 37392 tmp="$complete EOL" 37393 arguments="${tmp#* }" 37394 37395 # Input might be given as Windows format, start by converting to 37396 # unix format. 37397 new_path="$path" 37398 37399 windows_path="$new_path" 37400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37401 unix_path=`$CYGPATH -u "$windows_path"` 37402 new_path="$unix_path" 37403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37404 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37405 new_path="$unix_path" 37406 fi 37407 37408 37409 # Now try to locate executable using which 37410 new_path=`$WHICH "$new_path" 2> /dev/null` 37411 37412 if test "x$new_path" = x; then 37413 # Oops. Which didn't find the executable. 37414 # The splitting of arguments from the executable at a space might have been incorrect, 37415 # since paths with space are more likely in Windows. Give it another try with the whole 37416 # argument. 37417 path="$complete" 37418 arguments="EOL" 37419 new_path="$path" 37420 37421 windows_path="$new_path" 37422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37423 unix_path=`$CYGPATH -u "$windows_path"` 37424 new_path="$unix_path" 37425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37426 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37427 new_path="$unix_path" 37428 fi 37429 37430 37431 new_path=`$WHICH "$new_path" 2> /dev/null` 37432 # bat and cmd files are not always considered executable in MSYS causing which 37433 # to not find them 37434 if test "x$new_path" = x \ 37435 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37436 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37437 new_path="$path" 37438 37439 windows_path="$new_path" 37440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37441 unix_path=`$CYGPATH -u "$windows_path"` 37442 new_path="$unix_path" 37443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37445 new_path="$unix_path" 37446 fi 37447 37448 fi 37449 37450 if test "x$new_path" = x; then 37451 # It's still not found. Now this is an unrecoverable error. 37452 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37453 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37454 has_space=`$ECHO "$complete" | $GREP " "` 37455 if test "x$has_space" != x; then 37456 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37457 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37458 fi 37459 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37460 fi 37461 fi 37462 37463 # Now new_path has a complete unix path to the binary 37464 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37465 # Keep paths in /bin as-is, but remove trailing .exe if any 37466 new_path="${new_path/%.exe/}" 37467 # Do not save /bin paths to all_fixpath_prefixes! 37468 else 37469 # Not in mixed or Windows style, start by that. 37470 new_path=`cmd //c echo $new_path` 37471 37472 input_path="$new_path" 37473 # Check if we need to convert this using DOS-style short mode. If the path 37474 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37475 # take no chances and rewrite it. 37476 # Note: m4 eats our [], so we need to use [ and ] instead. 37477 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37478 if test "x$has_forbidden_chars" != x; then 37479 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37480 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37481 fi 37482 37483 # Output is in $new_path 37484 37485 windows_path="$new_path" 37486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37487 unix_path=`$CYGPATH -u "$windows_path"` 37488 new_path="$unix_path" 37489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37490 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37491 new_path="$unix_path" 37492 fi 37493 37494 # remove trailing .exe if any 37495 new_path="${new_path/%.exe/}" 37496 37497 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37498 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37499 fi 37500 37501 else 37502 # We're on a unix platform. Hooray! :) 37503 # First separate the path from the arguments. This will split at the first 37504 # space. 37505 complete="$AS" 37506 path="${complete%% *}" 37507 tmp="$complete EOL" 37508 arguments="${tmp#* }" 37509 37510 # Cannot rely on the command "which" here since it doesn't always work. 37511 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37512 if test -z "$is_absolute_path"; then 37513 # Path to executable is not absolute. Find it. 37514 IFS_save="$IFS" 37515 IFS=: 37516 for p in $PATH; do 37517 if test -f "$p/$path" && test -x "$p/$path"; then 37518 new_path="$p/$path" 37519 break 37520 fi 37521 done 37522 IFS="$IFS_save" 37523 else 37524 # This is an absolute path, we can use it without further modifications. 37525 new_path="$path" 37526 fi 37527 37528 if test "x$new_path" = x; then 37529 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37530 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37531 has_space=`$ECHO "$complete" | $GREP " "` 37532 if test "x$has_space" != x; then 37533 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37534 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37535 fi 37536 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37537 fi 37538 fi 37539 37540 # Now join together the path and the arguments once again 37541 if test "x$arguments" != xEOL; then 37542 new_complete="$new_path ${arguments% *}" 37543 else 37544 new_complete="$new_path" 37545 fi 37546 37547 if test "x$complete" != "x$new_complete"; then 37548 AS="$new_complete" 37549 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 37550 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 37551 fi 37552 fi 37553 37554 if test "x$AS" = x; then 37555 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 37556 fi 37557 else 37558 # FIXME: is this correct for microsoft? 37559 AS="$CC -c" 37560 fi 37561 37562 37563 # 37564 # Setup the archiver (AR) 37565 # 37566 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37567 # The corresponding ar tool is lib.exe (used to create static libraries) 37568 # Extract the first word of "lib", so it can be a program name with args. 37569 set dummy lib; ac_word=$2 37570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37571 $as_echo_n "checking for $ac_word... " >&6; } 37572 if ${ac_cv_prog_AR+:} false; then : 37573 $as_echo_n "(cached) " >&6 37574 else 37575 if test -n "$AR"; then 37576 ac_cv_prog_AR="$AR" # Let the user override the test. 37577 else 37578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37579 for as_dir in $PATH 37580 do 37581 IFS=$as_save_IFS 37582 test -z "$as_dir" && as_dir=. 37583 for ac_exec_ext in '' $ac_executable_extensions; do 37584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37585 ac_cv_prog_AR="lib" 37586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37587 break 2 37588 fi 37589 done 37590 done 37591 IFS=$as_save_IFS 37592 37593 fi 37594 fi 37595 AR=$ac_cv_prog_AR 37596 if test -n "$AR"; then 37597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37598 $as_echo "$AR" >&6; } 37599 else 37600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37601 $as_echo "no" >&6; } 37602 fi 37603 37604 37605 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 37606 37607 37608 # Publish this variable in the help. 37609 37610 37611 if [ -z "${AR+x}" ]; then 37612 # The variable is not set by user, try to locate tool using the code snippet 37613 if test -n "$ac_tool_prefix"; then 37614 for ac_prog in ar gcc-ar 37615 do 37616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37619 $as_echo_n "checking for $ac_word... " >&6; } 37620 if ${ac_cv_prog_AR+:} false; then : 37621 $as_echo_n "(cached) " >&6 37622 else 37623 if test -n "$AR"; then 37624 ac_cv_prog_AR="$AR" # Let the user override the test. 37625 else 37626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37627 for as_dir in $PATH 37628 do 37629 IFS=$as_save_IFS 37630 test -z "$as_dir" && as_dir=. 37631 for ac_exec_ext in '' $ac_executable_extensions; do 37632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37633 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37635 break 2 37636 fi 37637 done 37638 done 37639 IFS=$as_save_IFS 37640 37641 fi 37642 fi 37643 AR=$ac_cv_prog_AR 37644 if test -n "$AR"; then 37645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37646 $as_echo "$AR" >&6; } 37647 else 37648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37649 $as_echo "no" >&6; } 37650 fi 37651 37652 37653 test -n "$AR" && break 37654 done 37655 fi 37656 if test -z "$AR"; then 37657 ac_ct_AR=$AR 37658 for ac_prog in ar gcc-ar 37659 do 37660 # Extract the first word of "$ac_prog", so it can be a program name with args. 37661 set dummy $ac_prog; ac_word=$2 37662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37663 $as_echo_n "checking for $ac_word... " >&6; } 37664 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37665 $as_echo_n "(cached) " >&6 37666 else 37667 if test -n "$ac_ct_AR"; then 37668 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37669 else 37670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37671 for as_dir in $PATH 37672 do 37673 IFS=$as_save_IFS 37674 test -z "$as_dir" && as_dir=. 37675 for ac_exec_ext in '' $ac_executable_extensions; do 37676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37677 ac_cv_prog_ac_ct_AR="$ac_prog" 37678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37679 break 2 37680 fi 37681 done 37682 done 37683 IFS=$as_save_IFS 37684 37685 fi 37686 fi 37687 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37688 if test -n "$ac_ct_AR"; then 37689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37690 $as_echo "$ac_ct_AR" >&6; } 37691 else 37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37693 $as_echo "no" >&6; } 37694 fi 37695 37696 37697 test -n "$ac_ct_AR" && break 37698 done 37699 37700 if test "x$ac_ct_AR" = x; then 37701 AR="" 37702 else 37703 case $cross_compiling:$ac_tool_warned in 37704 yes:) 37705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37707 ac_tool_warned=yes ;; 37708 esac 37709 AR=$ac_ct_AR 37710 fi 37711 fi 37712 37713 else 37714 # The variable is set, but is it from the command line or the environment? 37715 37716 # Try to remove the string !AR! from our list. 37717 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37718 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37719 # If it failed, the variable was not from the command line. Ignore it, 37720 # but warn the user (except for BASH, which is always set by the calling BASH). 37721 if test "xAR" != xBASH; then 37722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37723 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37724 fi 37725 # Try to locate tool using the code snippet 37726 if test -n "$ac_tool_prefix"; then 37727 for ac_prog in ar gcc-ar 37728 do 37729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37732 $as_echo_n "checking for $ac_word... " >&6; } 37733 if ${ac_cv_prog_AR+:} false; then : 37734 $as_echo_n "(cached) " >&6 37735 else 37736 if test -n "$AR"; then 37737 ac_cv_prog_AR="$AR" # Let the user override the test. 37738 else 37739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37740 for as_dir in $PATH 37741 do 37742 IFS=$as_save_IFS 37743 test -z "$as_dir" && as_dir=. 37744 for ac_exec_ext in '' $ac_executable_extensions; do 37745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37746 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37748 break 2 37749 fi 37750 done 37751 done 37752 IFS=$as_save_IFS 37753 37754 fi 37755 fi 37756 AR=$ac_cv_prog_AR 37757 if test -n "$AR"; then 37758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37759 $as_echo "$AR" >&6; } 37760 else 37761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37762 $as_echo "no" >&6; } 37763 fi 37764 37765 37766 test -n "$AR" && break 37767 done 37768 fi 37769 if test -z "$AR"; then 37770 ac_ct_AR=$AR 37771 for ac_prog in ar gcc-ar 37772 do 37773 # Extract the first word of "$ac_prog", so it can be a program name with args. 37774 set dummy $ac_prog; ac_word=$2 37775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37776 $as_echo_n "checking for $ac_word... " >&6; } 37777 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37778 $as_echo_n "(cached) " >&6 37779 else 37780 if test -n "$ac_ct_AR"; then 37781 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37782 else 37783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37784 for as_dir in $PATH 37785 do 37786 IFS=$as_save_IFS 37787 test -z "$as_dir" && as_dir=. 37788 for ac_exec_ext in '' $ac_executable_extensions; do 37789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37790 ac_cv_prog_ac_ct_AR="$ac_prog" 37791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37792 break 2 37793 fi 37794 done 37795 done 37796 IFS=$as_save_IFS 37797 37798 fi 37799 fi 37800 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37801 if test -n "$ac_ct_AR"; then 37802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37803 $as_echo "$ac_ct_AR" >&6; } 37804 else 37805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37806 $as_echo "no" >&6; } 37807 fi 37808 37809 37810 test -n "$ac_ct_AR" && break 37811 done 37812 37813 if test "x$ac_ct_AR" = x; then 37814 AR="" 37815 else 37816 case $cross_compiling:$ac_tool_warned in 37817 yes:) 37818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37820 ac_tool_warned=yes ;; 37821 esac 37822 AR=$ac_ct_AR 37823 fi 37824 fi 37825 37826 else 37827 # If it succeeded, then it was overridden by the user. We will use it 37828 # for the tool. 37829 37830 # First remove it from the list of overridden variables, so we can test 37831 # for unknown variables in the end. 37832 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37833 37834 # Check if we try to supply an empty value 37835 if test "x$AR" = x; then 37836 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37837 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37839 $as_echo_n "checking for AR... " >&6; } 37840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37841 $as_echo "disabled" >&6; } 37842 else 37843 # Check if the provided tool contains a complete path. 37844 tool_specified="$AR" 37845 tool_basename="${tool_specified##*/}" 37846 if test "x$tool_basename" = "x$tool_specified"; then 37847 # A command without a complete path is provided, search $PATH. 37848 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37849 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37850 # Extract the first word of "$tool_basename", so it can be a program name with args. 37851 set dummy $tool_basename; ac_word=$2 37852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37853 $as_echo_n "checking for $ac_word... " >&6; } 37854 if ${ac_cv_path_AR+:} false; then : 37855 $as_echo_n "(cached) " >&6 37856 else 37857 case $AR in 37858 [\\/]* | ?:[\\/]*) 37859 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37860 ;; 37861 *) 37862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37863 for as_dir in $PATH 37864 do 37865 IFS=$as_save_IFS 37866 test -z "$as_dir" && as_dir=. 37867 for ac_exec_ext in '' $ac_executable_extensions; do 37868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37869 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37871 break 2 37872 fi 37873 done 37874 done 37875 IFS=$as_save_IFS 37876 37877 ;; 37878 esac 37879 fi 37880 AR=$ac_cv_path_AR 37881 if test -n "$AR"; then 37882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37883 $as_echo "$AR" >&6; } 37884 else 37885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37886 $as_echo "no" >&6; } 37887 fi 37888 37889 37890 if test "x$AR" = x; then 37891 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37892 fi 37893 else 37894 # Otherwise we believe it is a complete path. Use it as it is. 37895 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37896 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37898 $as_echo_n "checking for AR... " >&6; } 37899 if test ! -x "$tool_specified"; then 37900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37901 $as_echo "not found" >&6; } 37902 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37903 fi 37904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37905 $as_echo "$tool_specified" >&6; } 37906 fi 37907 fi 37908 fi 37909 37910 fi 37911 37912 37913 else 37914 37915 37916 # Publish this variable in the help. 37917 37918 37919 if [ -z "${AR+x}" ]; then 37920 # The variable is not set by user, try to locate tool using the code snippet 37921 if test -n "$ac_tool_prefix"; then 37922 for ac_prog in ar 37923 do 37924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37927 $as_echo_n "checking for $ac_word... " >&6; } 37928 if ${ac_cv_prog_AR+:} false; then : 37929 $as_echo_n "(cached) " >&6 37930 else 37931 if test -n "$AR"; then 37932 ac_cv_prog_AR="$AR" # Let the user override the test. 37933 else 37934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37935 for as_dir in $PATH 37936 do 37937 IFS=$as_save_IFS 37938 test -z "$as_dir" && as_dir=. 37939 for ac_exec_ext in '' $ac_executable_extensions; do 37940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37941 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37943 break 2 37944 fi 37945 done 37946 done 37947 IFS=$as_save_IFS 37948 37949 fi 37950 fi 37951 AR=$ac_cv_prog_AR 37952 if test -n "$AR"; then 37953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37954 $as_echo "$AR" >&6; } 37955 else 37956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37957 $as_echo "no" >&6; } 37958 fi 37959 37960 37961 test -n "$AR" && break 37962 done 37963 fi 37964 if test -z "$AR"; then 37965 ac_ct_AR=$AR 37966 for ac_prog in ar 37967 do 37968 # Extract the first word of "$ac_prog", so it can be a program name with args. 37969 set dummy $ac_prog; ac_word=$2 37970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37971 $as_echo_n "checking for $ac_word... " >&6; } 37972 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37973 $as_echo_n "(cached) " >&6 37974 else 37975 if test -n "$ac_ct_AR"; then 37976 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37977 else 37978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37979 for as_dir in $PATH 37980 do 37981 IFS=$as_save_IFS 37982 test -z "$as_dir" && as_dir=. 37983 for ac_exec_ext in '' $ac_executable_extensions; do 37984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37985 ac_cv_prog_ac_ct_AR="$ac_prog" 37986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37987 break 2 37988 fi 37989 done 37990 done 37991 IFS=$as_save_IFS 37992 37993 fi 37994 fi 37995 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37996 if test -n "$ac_ct_AR"; then 37997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37998 $as_echo "$ac_ct_AR" >&6; } 37999 else 38000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38001 $as_echo "no" >&6; } 38002 fi 38003 38004 38005 test -n "$ac_ct_AR" && break 38006 done 38007 38008 if test "x$ac_ct_AR" = x; then 38009 AR="" 38010 else 38011 case $cross_compiling:$ac_tool_warned in 38012 yes:) 38013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38015 ac_tool_warned=yes ;; 38016 esac 38017 AR=$ac_ct_AR 38018 fi 38019 fi 38020 38021 else 38022 # The variable is set, but is it from the command line or the environment? 38023 38024 # Try to remove the string !AR! from our list. 38025 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38026 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38027 # If it failed, the variable was not from the command line. Ignore it, 38028 # but warn the user (except for BASH, which is always set by the calling BASH). 38029 if test "xAR" != xBASH; then 38030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38031 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38032 fi 38033 # Try to locate tool using the code snippet 38034 if test -n "$ac_tool_prefix"; then 38035 for ac_prog in ar 38036 do 38037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38040 $as_echo_n "checking for $ac_word... " >&6; } 38041 if ${ac_cv_prog_AR+:} false; then : 38042 $as_echo_n "(cached) " >&6 38043 else 38044 if test -n "$AR"; then 38045 ac_cv_prog_AR="$AR" # Let the user override the test. 38046 else 38047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38048 for as_dir in $PATH 38049 do 38050 IFS=$as_save_IFS 38051 test -z "$as_dir" && as_dir=. 38052 for ac_exec_ext in '' $ac_executable_extensions; do 38053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38054 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38056 break 2 38057 fi 38058 done 38059 done 38060 IFS=$as_save_IFS 38061 38062 fi 38063 fi 38064 AR=$ac_cv_prog_AR 38065 if test -n "$AR"; then 38066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38067 $as_echo "$AR" >&6; } 38068 else 38069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38070 $as_echo "no" >&6; } 38071 fi 38072 38073 38074 test -n "$AR" && break 38075 done 38076 fi 38077 if test -z "$AR"; then 38078 ac_ct_AR=$AR 38079 for ac_prog in ar 38080 do 38081 # Extract the first word of "$ac_prog", so it can be a program name with args. 38082 set dummy $ac_prog; ac_word=$2 38083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38084 $as_echo_n "checking for $ac_word... " >&6; } 38085 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38086 $as_echo_n "(cached) " >&6 38087 else 38088 if test -n "$ac_ct_AR"; then 38089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38090 else 38091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38092 for as_dir in $PATH 38093 do 38094 IFS=$as_save_IFS 38095 test -z "$as_dir" && as_dir=. 38096 for ac_exec_ext in '' $ac_executable_extensions; do 38097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38098 ac_cv_prog_ac_ct_AR="$ac_prog" 38099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38100 break 2 38101 fi 38102 done 38103 done 38104 IFS=$as_save_IFS 38105 38106 fi 38107 fi 38108 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38109 if test -n "$ac_ct_AR"; then 38110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38111 $as_echo "$ac_ct_AR" >&6; } 38112 else 38113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38114 $as_echo "no" >&6; } 38115 fi 38116 38117 38118 test -n "$ac_ct_AR" && break 38119 done 38120 38121 if test "x$ac_ct_AR" = x; then 38122 AR="" 38123 else 38124 case $cross_compiling:$ac_tool_warned in 38125 yes:) 38126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38128 ac_tool_warned=yes ;; 38129 esac 38130 AR=$ac_ct_AR 38131 fi 38132 fi 38133 38134 else 38135 # If it succeeded, then it was overridden by the user. We will use it 38136 # for the tool. 38137 38138 # First remove it from the list of overridden variables, so we can test 38139 # for unknown variables in the end. 38140 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38141 38142 # Check if we try to supply an empty value 38143 if test "x$AR" = x; then 38144 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38145 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38147 $as_echo_n "checking for AR... " >&6; } 38148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38149 $as_echo "disabled" >&6; } 38150 else 38151 # Check if the provided tool contains a complete path. 38152 tool_specified="$AR" 38153 tool_basename="${tool_specified##*/}" 38154 if test "x$tool_basename" = "x$tool_specified"; then 38155 # A command without a complete path is provided, search $PATH. 38156 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38157 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38158 # Extract the first word of "$tool_basename", so it can be a program name with args. 38159 set dummy $tool_basename; ac_word=$2 38160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38161 $as_echo_n "checking for $ac_word... " >&6; } 38162 if ${ac_cv_path_AR+:} false; then : 38163 $as_echo_n "(cached) " >&6 38164 else 38165 case $AR in 38166 [\\/]* | ?:[\\/]*) 38167 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38168 ;; 38169 *) 38170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38171 for as_dir in $PATH 38172 do 38173 IFS=$as_save_IFS 38174 test -z "$as_dir" && as_dir=. 38175 for ac_exec_ext in '' $ac_executable_extensions; do 38176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38177 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38179 break 2 38180 fi 38181 done 38182 done 38183 IFS=$as_save_IFS 38184 38185 ;; 38186 esac 38187 fi 38188 AR=$ac_cv_path_AR 38189 if test -n "$AR"; then 38190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38191 $as_echo "$AR" >&6; } 38192 else 38193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38194 $as_echo "no" >&6; } 38195 fi 38196 38197 38198 if test "x$AR" = x; then 38199 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38200 fi 38201 else 38202 # Otherwise we believe it is a complete path. Use it as it is. 38203 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38204 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38206 $as_echo_n "checking for AR... " >&6; } 38207 if test ! -x "$tool_specified"; then 38208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38209 $as_echo "not found" >&6; } 38210 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38211 fi 38212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38213 $as_echo "$tool_specified" >&6; } 38214 fi 38215 fi 38216 fi 38217 38218 fi 38219 38220 38221 fi 38222 38223 # Only process if variable expands to non-empty 38224 38225 if test "x$AR" != x; then 38226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38227 38228 # First separate the path from the arguments. This will split at the first 38229 # space. 38230 complete="$AR" 38231 path="${complete%% *}" 38232 tmp="$complete EOL" 38233 arguments="${tmp#* }" 38234 38235 # Input might be given as Windows format, start by converting to 38236 # unix format. 38237 new_path=`$CYGPATH -u "$path"` 38238 38239 # Now try to locate executable using which 38240 new_path=`$WHICH "$new_path" 2> /dev/null` 38241 # bat and cmd files are not always considered executable in cygwin causing which 38242 # to not find them 38243 if test "x$new_path" = x \ 38244 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38245 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38246 new_path=`$CYGPATH -u "$path"` 38247 fi 38248 if test "x$new_path" = x; then 38249 # Oops. Which didn't find the executable. 38250 # The splitting of arguments from the executable at a space might have been incorrect, 38251 # since paths with space are more likely in Windows. Give it another try with the whole 38252 # argument. 38253 path="$complete" 38254 arguments="EOL" 38255 new_path=`$CYGPATH -u "$path"` 38256 new_path=`$WHICH "$new_path" 2> /dev/null` 38257 # bat and cmd files are not always considered executable in cygwin causing which 38258 # to not find them 38259 if test "x$new_path" = x \ 38260 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38261 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38262 new_path=`$CYGPATH -u "$path"` 38263 fi 38264 if test "x$new_path" = x; then 38265 # It's still not found. Now this is an unrecoverable error. 38266 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38267 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38268 has_space=`$ECHO "$complete" | $GREP " "` 38269 if test "x$has_space" != x; then 38270 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38271 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38272 fi 38273 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38274 fi 38275 fi 38276 38277 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38278 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38279 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38280 # "foo.exe" is OK but "foo" is an error. 38281 # 38282 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38283 # It is also a way to make sure we got the proper file name for the real test later on. 38284 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38285 if test "x$test_shortpath" = x; then 38286 # Short path failed, file does not exist as specified. 38287 # Try adding .exe or .cmd 38288 if test -f "${new_path}.exe"; then 38289 input_to_shortpath="${new_path}.exe" 38290 elif test -f "${new_path}.cmd"; then 38291 input_to_shortpath="${new_path}.cmd" 38292 else 38293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 38294 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 38295 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38296 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38297 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38298 fi 38299 else 38300 input_to_shortpath="$new_path" 38301 fi 38302 38303 # Call helper function which possibly converts this using DOS-style short mode. 38304 # If so, the updated path is stored in $new_path. 38305 new_path="$input_to_shortpath" 38306 38307 input_path="$input_to_shortpath" 38308 # Check if we need to convert this using DOS-style short mode. If the path 38309 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38310 # take no chances and rewrite it. 38311 # Note: m4 eats our [], so we need to use [ and ] instead. 38312 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38313 if test "x$has_forbidden_chars" != x; then 38314 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38315 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38316 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38317 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38318 # Going to short mode and back again did indeed matter. Since short mode is 38319 # case insensitive, let's make it lowercase to improve readability. 38320 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38321 # Now convert it back to Unix-style (cygpath) 38322 input_path=`$CYGPATH -u "$shortmode_path"` 38323 new_path="$input_path" 38324 fi 38325 fi 38326 38327 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38328 if test "x$test_cygdrive_prefix" = x; then 38329 # As a simple fix, exclude /usr/bin since it's not a real path. 38330 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38331 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38332 # a path prefixed by /cygdrive for fixpath to work. 38333 new_path="$CYGWIN_ROOT_PATH$input_path" 38334 fi 38335 fi 38336 38337 # remove trailing .exe if any 38338 new_path="${new_path/%.exe/}" 38339 38340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38341 38342 # First separate the path from the arguments. This will split at the first 38343 # space. 38344 complete="$AR" 38345 path="${complete%% *}" 38346 tmp="$complete EOL" 38347 arguments="${tmp#* }" 38348 38349 # Input might be given as Windows format, start by converting to 38350 # unix format. 38351 new_path="$path" 38352 38353 windows_path="$new_path" 38354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38355 unix_path=`$CYGPATH -u "$windows_path"` 38356 new_path="$unix_path" 38357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38358 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38359 new_path="$unix_path" 38360 fi 38361 38362 38363 # Now try to locate executable using which 38364 new_path=`$WHICH "$new_path" 2> /dev/null` 38365 38366 if test "x$new_path" = x; then 38367 # Oops. Which didn't find the executable. 38368 # The splitting of arguments from the executable at a space might have been incorrect, 38369 # since paths with space are more likely in Windows. Give it another try with the whole 38370 # argument. 38371 path="$complete" 38372 arguments="EOL" 38373 new_path="$path" 38374 38375 windows_path="$new_path" 38376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38377 unix_path=`$CYGPATH -u "$windows_path"` 38378 new_path="$unix_path" 38379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38381 new_path="$unix_path" 38382 fi 38383 38384 38385 new_path=`$WHICH "$new_path" 2> /dev/null` 38386 # bat and cmd files are not always considered executable in MSYS causing which 38387 # to not find them 38388 if test "x$new_path" = x \ 38389 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38390 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38391 new_path="$path" 38392 38393 windows_path="$new_path" 38394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38395 unix_path=`$CYGPATH -u "$windows_path"` 38396 new_path="$unix_path" 38397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38399 new_path="$unix_path" 38400 fi 38401 38402 fi 38403 38404 if test "x$new_path" = x; then 38405 # It's still not found. Now this is an unrecoverable error. 38406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38407 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38408 has_space=`$ECHO "$complete" | $GREP " "` 38409 if test "x$has_space" != x; then 38410 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38411 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38412 fi 38413 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38414 fi 38415 fi 38416 38417 # Now new_path has a complete unix path to the binary 38418 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38419 # Keep paths in /bin as-is, but remove trailing .exe if any 38420 new_path="${new_path/%.exe/}" 38421 # Do not save /bin paths to all_fixpath_prefixes! 38422 else 38423 # Not in mixed or Windows style, start by that. 38424 new_path=`cmd //c echo $new_path` 38425 38426 input_path="$new_path" 38427 # Check if we need to convert this using DOS-style short mode. If the path 38428 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38429 # take no chances and rewrite it. 38430 # Note: m4 eats our [], so we need to use [ and ] instead. 38431 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38432 if test "x$has_forbidden_chars" != x; then 38433 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38434 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38435 fi 38436 38437 # Output is in $new_path 38438 38439 windows_path="$new_path" 38440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38441 unix_path=`$CYGPATH -u "$windows_path"` 38442 new_path="$unix_path" 38443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38445 new_path="$unix_path" 38446 fi 38447 38448 # remove trailing .exe if any 38449 new_path="${new_path/%.exe/}" 38450 38451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38453 fi 38454 38455 else 38456 # We're on a unix platform. Hooray! :) 38457 # First separate the path from the arguments. This will split at the first 38458 # space. 38459 complete="$AR" 38460 path="${complete%% *}" 38461 tmp="$complete EOL" 38462 arguments="${tmp#* }" 38463 38464 # Cannot rely on the command "which" here since it doesn't always work. 38465 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38466 if test -z "$is_absolute_path"; then 38467 # Path to executable is not absolute. Find it. 38468 IFS_save="$IFS" 38469 IFS=: 38470 for p in $PATH; do 38471 if test -f "$p/$path" && test -x "$p/$path"; then 38472 new_path="$p/$path" 38473 break 38474 fi 38475 done 38476 IFS="$IFS_save" 38477 else 38478 # This is an absolute path, we can use it without further modifications. 38479 new_path="$path" 38480 fi 38481 38482 if test "x$new_path" = x; then 38483 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38484 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38485 has_space=`$ECHO "$complete" | $GREP " "` 38486 if test "x$has_space" != x; then 38487 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38488 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38489 fi 38490 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38491 fi 38492 fi 38493 38494 # Now join together the path and the arguments once again 38495 if test "x$arguments" != xEOL; then 38496 new_complete="$new_path ${arguments% *}" 38497 else 38498 new_complete="$new_path" 38499 fi 38500 38501 if test "x$complete" != "x$new_complete"; then 38502 AR="$new_complete" 38503 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38504 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38505 fi 38506 fi 38507 38508 38509 38510 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 38511 38512 38513 # Publish this variable in the help. 38514 38515 38516 if [ -z "${LIPO+x}" ]; then 38517 # The variable is not set by user, try to locate tool using the code snippet 38518 for ac_prog in lipo 38519 do 38520 # Extract the first word of "$ac_prog", so it can be a program name with args. 38521 set dummy $ac_prog; ac_word=$2 38522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38523 $as_echo_n "checking for $ac_word... " >&6; } 38524 if ${ac_cv_path_LIPO+:} false; then : 38525 $as_echo_n "(cached) " >&6 38526 else 38527 case $LIPO in 38528 [\\/]* | ?:[\\/]*) 38529 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38530 ;; 38531 *) 38532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38533 for as_dir in $PATH 38534 do 38535 IFS=$as_save_IFS 38536 test -z "$as_dir" && as_dir=. 38537 for ac_exec_ext in '' $ac_executable_extensions; do 38538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38539 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38541 break 2 38542 fi 38543 done 38544 done 38545 IFS=$as_save_IFS 38546 38547 ;; 38548 esac 38549 fi 38550 LIPO=$ac_cv_path_LIPO 38551 if test -n "$LIPO"; then 38552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38553 $as_echo "$LIPO" >&6; } 38554 else 38555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38556 $as_echo "no" >&6; } 38557 fi 38558 38559 38560 test -n "$LIPO" && break 38561 done 38562 38563 else 38564 # The variable is set, but is it from the command line or the environment? 38565 38566 # Try to remove the string !LIPO! from our list. 38567 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 38568 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38569 # If it failed, the variable was not from the command line. Ignore it, 38570 # but warn the user (except for BASH, which is always set by the calling BASH). 38571 if test "xLIPO" != xBASH; then 38572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 38573 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 38574 fi 38575 # Try to locate tool using the code snippet 38576 for ac_prog in lipo 38577 do 38578 # Extract the first word of "$ac_prog", so it can be a program name with args. 38579 set dummy $ac_prog; ac_word=$2 38580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38581 $as_echo_n "checking for $ac_word... " >&6; } 38582 if ${ac_cv_path_LIPO+:} false; then : 38583 $as_echo_n "(cached) " >&6 38584 else 38585 case $LIPO in 38586 [\\/]* | ?:[\\/]*) 38587 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38588 ;; 38589 *) 38590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38591 for as_dir in $PATH 38592 do 38593 IFS=$as_save_IFS 38594 test -z "$as_dir" && as_dir=. 38595 for ac_exec_ext in '' $ac_executable_extensions; do 38596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38597 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38599 break 2 38600 fi 38601 done 38602 done 38603 IFS=$as_save_IFS 38604 38605 ;; 38606 esac 38607 fi 38608 LIPO=$ac_cv_path_LIPO 38609 if test -n "$LIPO"; then 38610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38611 $as_echo "$LIPO" >&6; } 38612 else 38613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38614 $as_echo "no" >&6; } 38615 fi 38616 38617 38618 test -n "$LIPO" && break 38619 done 38620 38621 else 38622 # If it succeeded, then it was overridden by the user. We will use it 38623 # for the tool. 38624 38625 # First remove it from the list of overridden variables, so we can test 38626 # for unknown variables in the end. 38627 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38628 38629 # Check if we try to supply an empty value 38630 if test "x$LIPO" = x; then 38631 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 38632 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 38633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38634 $as_echo_n "checking for LIPO... " >&6; } 38635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38636 $as_echo "disabled" >&6; } 38637 else 38638 # Check if the provided tool contains a complete path. 38639 tool_specified="$LIPO" 38640 tool_basename="${tool_specified##*/}" 38641 if test "x$tool_basename" = "x$tool_specified"; then 38642 # A command without a complete path is provided, search $PATH. 38643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 38644 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 38645 # Extract the first word of "$tool_basename", so it can be a program name with args. 38646 set dummy $tool_basename; ac_word=$2 38647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38648 $as_echo_n "checking for $ac_word... " >&6; } 38649 if ${ac_cv_path_LIPO+:} false; then : 38650 $as_echo_n "(cached) " >&6 38651 else 38652 case $LIPO in 38653 [\\/]* | ?:[\\/]*) 38654 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38655 ;; 38656 *) 38657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38658 for as_dir in $PATH 38659 do 38660 IFS=$as_save_IFS 38661 test -z "$as_dir" && as_dir=. 38662 for ac_exec_ext in '' $ac_executable_extensions; do 38663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38664 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38666 break 2 38667 fi 38668 done 38669 done 38670 IFS=$as_save_IFS 38671 38672 ;; 38673 esac 38674 fi 38675 LIPO=$ac_cv_path_LIPO 38676 if test -n "$LIPO"; then 38677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38678 $as_echo "$LIPO" >&6; } 38679 else 38680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38681 $as_echo "no" >&6; } 38682 fi 38683 38684 38685 if test "x$LIPO" = x; then 38686 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38687 fi 38688 else 38689 # Otherwise we believe it is a complete path. Use it as it is. 38690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 38691 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 38692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38693 $as_echo_n "checking for LIPO... " >&6; } 38694 if test ! -x "$tool_specified"; then 38695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38696 $as_echo "not found" >&6; } 38697 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 38698 fi 38699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38700 $as_echo "$tool_specified" >&6; } 38701 fi 38702 fi 38703 fi 38704 38705 fi 38706 38707 38708 38709 # Only process if variable expands to non-empty 38710 38711 if test "x$LIPO" != x; then 38712 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38713 38714 # First separate the path from the arguments. This will split at the first 38715 # space. 38716 complete="$LIPO" 38717 path="${complete%% *}" 38718 tmp="$complete EOL" 38719 arguments="${tmp#* }" 38720 38721 # Input might be given as Windows format, start by converting to 38722 # unix format. 38723 new_path=`$CYGPATH -u "$path"` 38724 38725 # Now try to locate executable using which 38726 new_path=`$WHICH "$new_path" 2> /dev/null` 38727 # bat and cmd files are not always considered executable in cygwin causing which 38728 # to not find them 38729 if test "x$new_path" = x \ 38730 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38731 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38732 new_path=`$CYGPATH -u "$path"` 38733 fi 38734 if test "x$new_path" = x; then 38735 # Oops. Which didn't find the executable. 38736 # The splitting of arguments from the executable at a space might have been incorrect, 38737 # since paths with space are more likely in Windows. Give it another try with the whole 38738 # argument. 38739 path="$complete" 38740 arguments="EOL" 38741 new_path=`$CYGPATH -u "$path"` 38742 new_path=`$WHICH "$new_path" 2> /dev/null` 38743 # bat and cmd files are not always considered executable in cygwin causing which 38744 # to not find them 38745 if test "x$new_path" = x \ 38746 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38747 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38748 new_path=`$CYGPATH -u "$path"` 38749 fi 38750 if test "x$new_path" = x; then 38751 # It's still not found. Now this is an unrecoverable error. 38752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38753 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38754 has_space=`$ECHO "$complete" | $GREP " "` 38755 if test "x$has_space" != x; then 38756 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38757 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38758 fi 38759 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38760 fi 38761 fi 38762 38763 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38764 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38765 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38766 # "foo.exe" is OK but "foo" is an error. 38767 # 38768 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38769 # It is also a way to make sure we got the proper file name for the real test later on. 38770 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38771 if test "x$test_shortpath" = x; then 38772 # Short path failed, file does not exist as specified. 38773 # Try adding .exe or .cmd 38774 if test -f "${new_path}.exe"; then 38775 input_to_shortpath="${new_path}.exe" 38776 elif test -f "${new_path}.cmd"; then 38777 input_to_shortpath="${new_path}.cmd" 38778 else 38779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 38780 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 38781 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38782 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38783 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38784 fi 38785 else 38786 input_to_shortpath="$new_path" 38787 fi 38788 38789 # Call helper function which possibly converts this using DOS-style short mode. 38790 # If so, the updated path is stored in $new_path. 38791 new_path="$input_to_shortpath" 38792 38793 input_path="$input_to_shortpath" 38794 # Check if we need to convert this using DOS-style short mode. If the path 38795 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38796 # take no chances and rewrite it. 38797 # Note: m4 eats our [], so we need to use [ and ] instead. 38798 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38799 if test "x$has_forbidden_chars" != x; then 38800 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38801 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38802 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38803 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38804 # Going to short mode and back again did indeed matter. Since short mode is 38805 # case insensitive, let's make it lowercase to improve readability. 38806 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38807 # Now convert it back to Unix-style (cygpath) 38808 input_path=`$CYGPATH -u "$shortmode_path"` 38809 new_path="$input_path" 38810 fi 38811 fi 38812 38813 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38814 if test "x$test_cygdrive_prefix" = x; then 38815 # As a simple fix, exclude /usr/bin since it's not a real path. 38816 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38817 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38818 # a path prefixed by /cygdrive for fixpath to work. 38819 new_path="$CYGWIN_ROOT_PATH$input_path" 38820 fi 38821 fi 38822 38823 # remove trailing .exe if any 38824 new_path="${new_path/%.exe/}" 38825 38826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38827 38828 # First separate the path from the arguments. This will split at the first 38829 # space. 38830 complete="$LIPO" 38831 path="${complete%% *}" 38832 tmp="$complete EOL" 38833 arguments="${tmp#* }" 38834 38835 # Input might be given as Windows format, start by converting to 38836 # unix format. 38837 new_path="$path" 38838 38839 windows_path="$new_path" 38840 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38841 unix_path=`$CYGPATH -u "$windows_path"` 38842 new_path="$unix_path" 38843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38844 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38845 new_path="$unix_path" 38846 fi 38847 38848 38849 # Now try to locate executable using which 38850 new_path=`$WHICH "$new_path" 2> /dev/null` 38851 38852 if test "x$new_path" = x; then 38853 # Oops. Which didn't find the executable. 38854 # The splitting of arguments from the executable at a space might have been incorrect, 38855 # since paths with space are more likely in Windows. Give it another try with the whole 38856 # argument. 38857 path="$complete" 38858 arguments="EOL" 38859 new_path="$path" 38860 38861 windows_path="$new_path" 38862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38863 unix_path=`$CYGPATH -u "$windows_path"` 38864 new_path="$unix_path" 38865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38867 new_path="$unix_path" 38868 fi 38869 38870 38871 new_path=`$WHICH "$new_path" 2> /dev/null` 38872 # bat and cmd files are not always considered executable in MSYS causing which 38873 # to not find them 38874 if test "x$new_path" = x \ 38875 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38876 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38877 new_path="$path" 38878 38879 windows_path="$new_path" 38880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38881 unix_path=`$CYGPATH -u "$windows_path"` 38882 new_path="$unix_path" 38883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38884 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38885 new_path="$unix_path" 38886 fi 38887 38888 fi 38889 38890 if test "x$new_path" = x; then 38891 # It's still not found. Now this is an unrecoverable error. 38892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38893 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38894 has_space=`$ECHO "$complete" | $GREP " "` 38895 if test "x$has_space" != x; then 38896 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38897 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38898 fi 38899 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38900 fi 38901 fi 38902 38903 # Now new_path has a complete unix path to the binary 38904 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38905 # Keep paths in /bin as-is, but remove trailing .exe if any 38906 new_path="${new_path/%.exe/}" 38907 # Do not save /bin paths to all_fixpath_prefixes! 38908 else 38909 # Not in mixed or Windows style, start by that. 38910 new_path=`cmd //c echo $new_path` 38911 38912 input_path="$new_path" 38913 # Check if we need to convert this using DOS-style short mode. If the path 38914 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38915 # take no chances and rewrite it. 38916 # Note: m4 eats our [], so we need to use [ and ] instead. 38917 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38918 if test "x$has_forbidden_chars" != x; then 38919 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38920 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38921 fi 38922 38923 # Output is in $new_path 38924 38925 windows_path="$new_path" 38926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38927 unix_path=`$CYGPATH -u "$windows_path"` 38928 new_path="$unix_path" 38929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38931 new_path="$unix_path" 38932 fi 38933 38934 # remove trailing .exe if any 38935 new_path="${new_path/%.exe/}" 38936 38937 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38938 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38939 fi 38940 38941 else 38942 # We're on a unix platform. Hooray! :) 38943 # First separate the path from the arguments. This will split at the first 38944 # space. 38945 complete="$LIPO" 38946 path="${complete%% *}" 38947 tmp="$complete EOL" 38948 arguments="${tmp#* }" 38949 38950 # Cannot rely on the command "which" here since it doesn't always work. 38951 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38952 if test -z "$is_absolute_path"; then 38953 # Path to executable is not absolute. Find it. 38954 IFS_save="$IFS" 38955 IFS=: 38956 for p in $PATH; do 38957 if test -f "$p/$path" && test -x "$p/$path"; then 38958 new_path="$p/$path" 38959 break 38960 fi 38961 done 38962 IFS="$IFS_save" 38963 else 38964 # This is an absolute path, we can use it without further modifications. 38965 new_path="$path" 38966 fi 38967 38968 if test "x$new_path" = x; then 38969 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38970 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38971 has_space=`$ECHO "$complete" | $GREP " "` 38972 if test "x$has_space" != x; then 38973 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38974 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38975 fi 38976 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38977 fi 38978 fi 38979 38980 # Now join together the path and the arguments once again 38981 if test "x$arguments" != xEOL; then 38982 new_complete="$new_path ${arguments% *}" 38983 else 38984 new_complete="$new_path" 38985 fi 38986 38987 if test "x$complete" != "x$new_complete"; then 38988 LIPO="$new_complete" 38989 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 38990 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 38991 fi 38992 fi 38993 38994 fi 38995 38996 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38997 # Extract the first word of "mt", so it can be a program name with args. 38998 set dummy mt; ac_word=$2 38999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39000 $as_echo_n "checking for $ac_word... " >&6; } 39001 if ${ac_cv_prog_MT+:} false; then : 39002 $as_echo_n "(cached) " >&6 39003 else 39004 if test -n "$MT"; then 39005 ac_cv_prog_MT="$MT" # Let the user override the test. 39006 else 39007 ac_prog_rejected=no 39008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39009 for as_dir in $PATH 39010 do 39011 IFS=$as_save_IFS 39012 test -z "$as_dir" && as_dir=. 39013 for ac_exec_ext in '' $ac_executable_extensions; do 39014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39015 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 39016 ac_prog_rejected=yes 39017 continue 39018 fi 39019 ac_cv_prog_MT="mt" 39020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39021 break 2 39022 fi 39023 done 39024 done 39025 IFS=$as_save_IFS 39026 39027 if test $ac_prog_rejected = yes; then 39028 # We found a bogon in the path, so make sure we never use it. 39029 set dummy $ac_cv_prog_MT 39030 shift 39031 if test $# != 0; then 39032 # We chose a different compiler from the bogus one. 39033 # However, it has the same basename, so the bogon will be chosen 39034 # first if we set MT to just the basename; use the full file name. 39035 shift 39036 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 39037 fi 39038 fi 39039 fi 39040 fi 39041 MT=$ac_cv_prog_MT 39042 if test -n "$MT"; then 39043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 39044 $as_echo "$MT" >&6; } 39045 else 39046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39047 $as_echo "no" >&6; } 39048 fi 39049 39050 39051 39052 # Only process if variable expands to non-empty 39053 39054 if test "x$MT" != x; then 39055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39056 39057 # First separate the path from the arguments. This will split at the first 39058 # space. 39059 complete="$MT" 39060 path="${complete%% *}" 39061 tmp="$complete EOL" 39062 arguments="${tmp#* }" 39063 39064 # Input might be given as Windows format, start by converting to 39065 # unix format. 39066 new_path=`$CYGPATH -u "$path"` 39067 39068 # Now try to locate executable using which 39069 new_path=`$WHICH "$new_path" 2> /dev/null` 39070 # bat and cmd files are not always considered executable in cygwin causing which 39071 # to not find them 39072 if test "x$new_path" = x \ 39073 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39074 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39075 new_path=`$CYGPATH -u "$path"` 39076 fi 39077 if test "x$new_path" = x; then 39078 # Oops. Which didn't find the executable. 39079 # The splitting of arguments from the executable at a space might have been incorrect, 39080 # since paths with space are more likely in Windows. Give it another try with the whole 39081 # argument. 39082 path="$complete" 39083 arguments="EOL" 39084 new_path=`$CYGPATH -u "$path"` 39085 new_path=`$WHICH "$new_path" 2> /dev/null` 39086 # bat and cmd files are not always considered executable in cygwin causing which 39087 # to not find them 39088 if test "x$new_path" = x \ 39089 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39090 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39091 new_path=`$CYGPATH -u "$path"` 39092 fi 39093 if test "x$new_path" = x; then 39094 # It's still not found. Now this is an unrecoverable error. 39095 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39096 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39097 has_space=`$ECHO "$complete" | $GREP " "` 39098 if test "x$has_space" != x; then 39099 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39100 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39101 fi 39102 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39103 fi 39104 fi 39105 39106 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39107 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39108 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39109 # "foo.exe" is OK but "foo" is an error. 39110 # 39111 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39112 # It is also a way to make sure we got the proper file name for the real test later on. 39113 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39114 if test "x$test_shortpath" = x; then 39115 # Short path failed, file does not exist as specified. 39116 # Try adding .exe or .cmd 39117 if test -f "${new_path}.exe"; then 39118 input_to_shortpath="${new_path}.exe" 39119 elif test -f "${new_path}.cmd"; then 39120 input_to_shortpath="${new_path}.cmd" 39121 else 39122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 39123 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 39124 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39125 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39126 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39127 fi 39128 else 39129 input_to_shortpath="$new_path" 39130 fi 39131 39132 # Call helper function which possibly converts this using DOS-style short mode. 39133 # If so, the updated path is stored in $new_path. 39134 new_path="$input_to_shortpath" 39135 39136 input_path="$input_to_shortpath" 39137 # Check if we need to convert this using DOS-style short mode. If the path 39138 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39139 # take no chances and rewrite it. 39140 # Note: m4 eats our [], so we need to use [ and ] instead. 39141 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39142 if test "x$has_forbidden_chars" != x; then 39143 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39144 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39145 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39146 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39147 # Going to short mode and back again did indeed matter. Since short mode is 39148 # case insensitive, let's make it lowercase to improve readability. 39149 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39150 # Now convert it back to Unix-style (cygpath) 39151 input_path=`$CYGPATH -u "$shortmode_path"` 39152 new_path="$input_path" 39153 fi 39154 fi 39155 39156 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39157 if test "x$test_cygdrive_prefix" = x; then 39158 # As a simple fix, exclude /usr/bin since it's not a real path. 39159 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39160 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39161 # a path prefixed by /cygdrive for fixpath to work. 39162 new_path="$CYGWIN_ROOT_PATH$input_path" 39163 fi 39164 fi 39165 39166 # remove trailing .exe if any 39167 new_path="${new_path/%.exe/}" 39168 39169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39170 39171 # First separate the path from the arguments. This will split at the first 39172 # space. 39173 complete="$MT" 39174 path="${complete%% *}" 39175 tmp="$complete EOL" 39176 arguments="${tmp#* }" 39177 39178 # Input might be given as Windows format, start by converting to 39179 # unix format. 39180 new_path="$path" 39181 39182 windows_path="$new_path" 39183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39184 unix_path=`$CYGPATH -u "$windows_path"` 39185 new_path="$unix_path" 39186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39188 new_path="$unix_path" 39189 fi 39190 39191 39192 # Now try to locate executable using which 39193 new_path=`$WHICH "$new_path" 2> /dev/null` 39194 39195 if test "x$new_path" = x; then 39196 # Oops. Which didn't find the executable. 39197 # The splitting of arguments from the executable at a space might have been incorrect, 39198 # since paths with space are more likely in Windows. Give it another try with the whole 39199 # argument. 39200 path="$complete" 39201 arguments="EOL" 39202 new_path="$path" 39203 39204 windows_path="$new_path" 39205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39206 unix_path=`$CYGPATH -u "$windows_path"` 39207 new_path="$unix_path" 39208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39210 new_path="$unix_path" 39211 fi 39212 39213 39214 new_path=`$WHICH "$new_path" 2> /dev/null` 39215 # bat and cmd files are not always considered executable in MSYS causing which 39216 # to not find them 39217 if test "x$new_path" = x \ 39218 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39219 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39220 new_path="$path" 39221 39222 windows_path="$new_path" 39223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39224 unix_path=`$CYGPATH -u "$windows_path"` 39225 new_path="$unix_path" 39226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39228 new_path="$unix_path" 39229 fi 39230 39231 fi 39232 39233 if test "x$new_path" = x; then 39234 # It's still not found. Now this is an unrecoverable error. 39235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39236 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39237 has_space=`$ECHO "$complete" | $GREP " "` 39238 if test "x$has_space" != x; then 39239 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39240 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39241 fi 39242 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39243 fi 39244 fi 39245 39246 # Now new_path has a complete unix path to the binary 39247 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39248 # Keep paths in /bin as-is, but remove trailing .exe if any 39249 new_path="${new_path/%.exe/}" 39250 # Do not save /bin paths to all_fixpath_prefixes! 39251 else 39252 # Not in mixed or Windows style, start by that. 39253 new_path=`cmd //c echo $new_path` 39254 39255 input_path="$new_path" 39256 # Check if we need to convert this using DOS-style short mode. If the path 39257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39258 # take no chances and rewrite it. 39259 # Note: m4 eats our [], so we need to use [ and ] instead. 39260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39261 if test "x$has_forbidden_chars" != x; then 39262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39263 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39264 fi 39265 39266 # Output is in $new_path 39267 39268 windows_path="$new_path" 39269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39270 unix_path=`$CYGPATH -u "$windows_path"` 39271 new_path="$unix_path" 39272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39273 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39274 new_path="$unix_path" 39275 fi 39276 39277 # remove trailing .exe if any 39278 new_path="${new_path/%.exe/}" 39279 39280 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39281 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39282 fi 39283 39284 else 39285 # We're on a unix platform. Hooray! :) 39286 # First separate the path from the arguments. This will split at the first 39287 # space. 39288 complete="$MT" 39289 path="${complete%% *}" 39290 tmp="$complete EOL" 39291 arguments="${tmp#* }" 39292 39293 # Cannot rely on the command "which" here since it doesn't always work. 39294 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39295 if test -z "$is_absolute_path"; then 39296 # Path to executable is not absolute. Find it. 39297 IFS_save="$IFS" 39298 IFS=: 39299 for p in $PATH; do 39300 if test -f "$p/$path" && test -x "$p/$path"; then 39301 new_path="$p/$path" 39302 break 39303 fi 39304 done 39305 IFS="$IFS_save" 39306 else 39307 # This is an absolute path, we can use it without further modifications. 39308 new_path="$path" 39309 fi 39310 39311 if test "x$new_path" = x; then 39312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39313 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39314 has_space=`$ECHO "$complete" | $GREP " "` 39315 if test "x$has_space" != x; then 39316 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39317 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39318 fi 39319 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39320 fi 39321 fi 39322 39323 # Now join together the path and the arguments once again 39324 if test "x$arguments" != xEOL; then 39325 new_complete="$new_path ${arguments% *}" 39326 else 39327 new_complete="$new_path" 39328 fi 39329 39330 if test "x$complete" != "x$new_complete"; then 39331 MT="$new_complete" 39332 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 39333 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 39334 fi 39335 fi 39336 39337 # Setup the resource compiler (RC) 39338 # Extract the first word of "rc", so it can be a program name with args. 39339 set dummy rc; ac_word=$2 39340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39341 $as_echo_n "checking for $ac_word... " >&6; } 39342 if ${ac_cv_prog_RC+:} false; then : 39343 $as_echo_n "(cached) " >&6 39344 else 39345 if test -n "$RC"; then 39346 ac_cv_prog_RC="$RC" # Let the user override the test. 39347 else 39348 ac_prog_rejected=no 39349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39350 for as_dir in $PATH 39351 do 39352 IFS=$as_save_IFS 39353 test -z "$as_dir" && as_dir=. 39354 for ac_exec_ext in '' $ac_executable_extensions; do 39355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 39357 ac_prog_rejected=yes 39358 continue 39359 fi 39360 ac_cv_prog_RC="rc" 39361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39362 break 2 39363 fi 39364 done 39365 done 39366 IFS=$as_save_IFS 39367 39368 if test $ac_prog_rejected = yes; then 39369 # We found a bogon in the path, so make sure we never use it. 39370 set dummy $ac_cv_prog_RC 39371 shift 39372 if test $# != 0; then 39373 # We chose a different compiler from the bogus one. 39374 # However, it has the same basename, so the bogon will be chosen 39375 # first if we set RC to just the basename; use the full file name. 39376 shift 39377 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 39378 fi 39379 fi 39380 fi 39381 fi 39382 RC=$ac_cv_prog_RC 39383 if test -n "$RC"; then 39384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 39385 $as_echo "$RC" >&6; } 39386 else 39387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39388 $as_echo "no" >&6; } 39389 fi 39390 39391 39392 39393 # Only process if variable expands to non-empty 39394 39395 if test "x$RC" != x; then 39396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39397 39398 # First separate the path from the arguments. This will split at the first 39399 # space. 39400 complete="$RC" 39401 path="${complete%% *}" 39402 tmp="$complete EOL" 39403 arguments="${tmp#* }" 39404 39405 # Input might be given as Windows format, start by converting to 39406 # unix format. 39407 new_path=`$CYGPATH -u "$path"` 39408 39409 # Now try to locate executable using which 39410 new_path=`$WHICH "$new_path" 2> /dev/null` 39411 # bat and cmd files are not always considered executable in cygwin causing which 39412 # to not find them 39413 if test "x$new_path" = x \ 39414 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39415 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39416 new_path=`$CYGPATH -u "$path"` 39417 fi 39418 if test "x$new_path" = x; then 39419 # Oops. Which didn't find the executable. 39420 # The splitting of arguments from the executable at a space might have been incorrect, 39421 # since paths with space are more likely in Windows. Give it another try with the whole 39422 # argument. 39423 path="$complete" 39424 arguments="EOL" 39425 new_path=`$CYGPATH -u "$path"` 39426 new_path=`$WHICH "$new_path" 2> /dev/null` 39427 # bat and cmd files are not always considered executable in cygwin causing which 39428 # to not find them 39429 if test "x$new_path" = x \ 39430 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39431 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39432 new_path=`$CYGPATH -u "$path"` 39433 fi 39434 if test "x$new_path" = x; then 39435 # It's still not found. Now this is an unrecoverable error. 39436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39437 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39438 has_space=`$ECHO "$complete" | $GREP " "` 39439 if test "x$has_space" != x; then 39440 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39441 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39442 fi 39443 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39444 fi 39445 fi 39446 39447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39450 # "foo.exe" is OK but "foo" is an error. 39451 # 39452 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39453 # It is also a way to make sure we got the proper file name for the real test later on. 39454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39455 if test "x$test_shortpath" = x; then 39456 # Short path failed, file does not exist as specified. 39457 # Try adding .exe or .cmd 39458 if test -f "${new_path}.exe"; then 39459 input_to_shortpath="${new_path}.exe" 39460 elif test -f "${new_path}.cmd"; then 39461 input_to_shortpath="${new_path}.cmd" 39462 else 39463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 39464 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 39465 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39466 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39467 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39468 fi 39469 else 39470 input_to_shortpath="$new_path" 39471 fi 39472 39473 # Call helper function which possibly converts this using DOS-style short mode. 39474 # If so, the updated path is stored in $new_path. 39475 new_path="$input_to_shortpath" 39476 39477 input_path="$input_to_shortpath" 39478 # Check if we need to convert this using DOS-style short mode. If the path 39479 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39480 # take no chances and rewrite it. 39481 # Note: m4 eats our [], so we need to use [ and ] instead. 39482 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39483 if test "x$has_forbidden_chars" != x; then 39484 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39485 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39486 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39487 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39488 # Going to short mode and back again did indeed matter. Since short mode is 39489 # case insensitive, let's make it lowercase to improve readability. 39490 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39491 # Now convert it back to Unix-style (cygpath) 39492 input_path=`$CYGPATH -u "$shortmode_path"` 39493 new_path="$input_path" 39494 fi 39495 fi 39496 39497 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39498 if test "x$test_cygdrive_prefix" = x; then 39499 # As a simple fix, exclude /usr/bin since it's not a real path. 39500 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39501 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39502 # a path prefixed by /cygdrive for fixpath to work. 39503 new_path="$CYGWIN_ROOT_PATH$input_path" 39504 fi 39505 fi 39506 39507 # remove trailing .exe if any 39508 new_path="${new_path/%.exe/}" 39509 39510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39511 39512 # First separate the path from the arguments. This will split at the first 39513 # space. 39514 complete="$RC" 39515 path="${complete%% *}" 39516 tmp="$complete EOL" 39517 arguments="${tmp#* }" 39518 39519 # Input might be given as Windows format, start by converting to 39520 # unix format. 39521 new_path="$path" 39522 39523 windows_path="$new_path" 39524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39525 unix_path=`$CYGPATH -u "$windows_path"` 39526 new_path="$unix_path" 39527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39529 new_path="$unix_path" 39530 fi 39531 39532 39533 # Now try to locate executable using which 39534 new_path=`$WHICH "$new_path" 2> /dev/null` 39535 39536 if test "x$new_path" = x; then 39537 # Oops. Which didn't find the executable. 39538 # The splitting of arguments from the executable at a space might have been incorrect, 39539 # since paths with space are more likely in Windows. Give it another try with the whole 39540 # argument. 39541 path="$complete" 39542 arguments="EOL" 39543 new_path="$path" 39544 39545 windows_path="$new_path" 39546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39547 unix_path=`$CYGPATH -u "$windows_path"` 39548 new_path="$unix_path" 39549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39551 new_path="$unix_path" 39552 fi 39553 39554 39555 new_path=`$WHICH "$new_path" 2> /dev/null` 39556 # bat and cmd files are not always considered executable in MSYS causing which 39557 # to not find them 39558 if test "x$new_path" = x \ 39559 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39560 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39561 new_path="$path" 39562 39563 windows_path="$new_path" 39564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39565 unix_path=`$CYGPATH -u "$windows_path"` 39566 new_path="$unix_path" 39567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39568 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39569 new_path="$unix_path" 39570 fi 39571 39572 fi 39573 39574 if test "x$new_path" = x; then 39575 # It's still not found. Now this is an unrecoverable error. 39576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39577 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39578 has_space=`$ECHO "$complete" | $GREP " "` 39579 if test "x$has_space" != x; then 39580 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39581 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39582 fi 39583 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39584 fi 39585 fi 39586 39587 # Now new_path has a complete unix path to the binary 39588 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39589 # Keep paths in /bin as-is, but remove trailing .exe if any 39590 new_path="${new_path/%.exe/}" 39591 # Do not save /bin paths to all_fixpath_prefixes! 39592 else 39593 # Not in mixed or Windows style, start by that. 39594 new_path=`cmd //c echo $new_path` 39595 39596 input_path="$new_path" 39597 # Check if we need to convert this using DOS-style short mode. If the path 39598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39599 # take no chances and rewrite it. 39600 # Note: m4 eats our [], so we need to use [ and ] instead. 39601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39602 if test "x$has_forbidden_chars" != x; then 39603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39604 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39605 fi 39606 39607 # Output is in $new_path 39608 39609 windows_path="$new_path" 39610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39611 unix_path=`$CYGPATH -u "$windows_path"` 39612 new_path="$unix_path" 39613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39614 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39615 new_path="$unix_path" 39616 fi 39617 39618 # remove trailing .exe if any 39619 new_path="${new_path/%.exe/}" 39620 39621 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39622 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39623 fi 39624 39625 else 39626 # We're on a unix platform. Hooray! :) 39627 # First separate the path from the arguments. This will split at the first 39628 # space. 39629 complete="$RC" 39630 path="${complete%% *}" 39631 tmp="$complete EOL" 39632 arguments="${tmp#* }" 39633 39634 # Cannot rely on the command "which" here since it doesn't always work. 39635 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39636 if test -z "$is_absolute_path"; then 39637 # Path to executable is not absolute. Find it. 39638 IFS_save="$IFS" 39639 IFS=: 39640 for p in $PATH; do 39641 if test -f "$p/$path" && test -x "$p/$path"; then 39642 new_path="$p/$path" 39643 break 39644 fi 39645 done 39646 IFS="$IFS_save" 39647 else 39648 # This is an absolute path, we can use it without further modifications. 39649 new_path="$path" 39650 fi 39651 39652 if test "x$new_path" = x; then 39653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39654 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39655 has_space=`$ECHO "$complete" | $GREP " "` 39656 if test "x$has_space" != x; then 39657 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39658 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39659 fi 39660 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39661 fi 39662 fi 39663 39664 # Now join together the path and the arguments once again 39665 if test "x$arguments" != xEOL; then 39666 new_complete="$new_path ${arguments% *}" 39667 else 39668 new_complete="$new_path" 39669 fi 39670 39671 if test "x$complete" != "x$new_complete"; then 39672 RC="$new_complete" 39673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 39674 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 39675 fi 39676 fi 39677 39678 # Extract the first word of "dumpbin", so it can be a program name with args. 39679 set dummy dumpbin; ac_word=$2 39680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39681 $as_echo_n "checking for $ac_word... " >&6; } 39682 if ${ac_cv_prog_DUMPBIN+:} false; then : 39683 $as_echo_n "(cached) " >&6 39684 else 39685 if test -n "$DUMPBIN"; then 39686 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 39687 else 39688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39689 for as_dir in $PATH 39690 do 39691 IFS=$as_save_IFS 39692 test -z "$as_dir" && as_dir=. 39693 for ac_exec_ext in '' $ac_executable_extensions; do 39694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39695 ac_cv_prog_DUMPBIN="dumpbin" 39696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39697 break 2 39698 fi 39699 done 39700 done 39701 IFS=$as_save_IFS 39702 39703 fi 39704 fi 39705 DUMPBIN=$ac_cv_prog_DUMPBIN 39706 if test -n "$DUMPBIN"; then 39707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 39708 $as_echo "$DUMPBIN" >&6; } 39709 else 39710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39711 $as_echo "no" >&6; } 39712 fi 39713 39714 39715 39716 # Only process if variable expands to non-empty 39717 39718 if test "x$DUMPBIN" != x; then 39719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39720 39721 # First separate the path from the arguments. This will split at the first 39722 # space. 39723 complete="$DUMPBIN" 39724 path="${complete%% *}" 39725 tmp="$complete EOL" 39726 arguments="${tmp#* }" 39727 39728 # Input might be given as Windows format, start by converting to 39729 # unix format. 39730 new_path=`$CYGPATH -u "$path"` 39731 39732 # Now try to locate executable using which 39733 new_path=`$WHICH "$new_path" 2> /dev/null` 39734 # bat and cmd files are not always considered executable in cygwin causing which 39735 # to not find them 39736 if test "x$new_path" = x \ 39737 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39738 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39739 new_path=`$CYGPATH -u "$path"` 39740 fi 39741 if test "x$new_path" = x; then 39742 # Oops. Which didn't find the executable. 39743 # The splitting of arguments from the executable at a space might have been incorrect, 39744 # since paths with space are more likely in Windows. Give it another try with the whole 39745 # argument. 39746 path="$complete" 39747 arguments="EOL" 39748 new_path=`$CYGPATH -u "$path"` 39749 new_path=`$WHICH "$new_path" 2> /dev/null` 39750 # bat and cmd files are not always considered executable in cygwin causing which 39751 # to not find them 39752 if test "x$new_path" = x \ 39753 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39754 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39755 new_path=`$CYGPATH -u "$path"` 39756 fi 39757 if test "x$new_path" = x; then 39758 # It's still not found. Now this is an unrecoverable error. 39759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39760 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39761 has_space=`$ECHO "$complete" | $GREP " "` 39762 if test "x$has_space" != x; then 39763 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39764 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39765 fi 39766 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39767 fi 39768 fi 39769 39770 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39771 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39772 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39773 # "foo.exe" is OK but "foo" is an error. 39774 # 39775 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39776 # It is also a way to make sure we got the proper file name for the real test later on. 39777 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39778 if test "x$test_shortpath" = x; then 39779 # Short path failed, file does not exist as specified. 39780 # Try adding .exe or .cmd 39781 if test -f "${new_path}.exe"; then 39782 input_to_shortpath="${new_path}.exe" 39783 elif test -f "${new_path}.cmd"; then 39784 input_to_shortpath="${new_path}.cmd" 39785 else 39786 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 39787 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 39788 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39789 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39790 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39791 fi 39792 else 39793 input_to_shortpath="$new_path" 39794 fi 39795 39796 # Call helper function which possibly converts this using DOS-style short mode. 39797 # If so, the updated path is stored in $new_path. 39798 new_path="$input_to_shortpath" 39799 39800 input_path="$input_to_shortpath" 39801 # Check if we need to convert this using DOS-style short mode. If the path 39802 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39803 # take no chances and rewrite it. 39804 # Note: m4 eats our [], so we need to use [ and ] instead. 39805 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39806 if test "x$has_forbidden_chars" != x; then 39807 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39808 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39809 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39810 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39811 # Going to short mode and back again did indeed matter. Since short mode is 39812 # case insensitive, let's make it lowercase to improve readability. 39813 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39814 # Now convert it back to Unix-style (cygpath) 39815 input_path=`$CYGPATH -u "$shortmode_path"` 39816 new_path="$input_path" 39817 fi 39818 fi 39819 39820 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39821 if test "x$test_cygdrive_prefix" = x; then 39822 # As a simple fix, exclude /usr/bin since it's not a real path. 39823 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39824 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39825 # a path prefixed by /cygdrive for fixpath to work. 39826 new_path="$CYGWIN_ROOT_PATH$input_path" 39827 fi 39828 fi 39829 39830 # remove trailing .exe if any 39831 new_path="${new_path/%.exe/}" 39832 39833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39834 39835 # First separate the path from the arguments. This will split at the first 39836 # space. 39837 complete="$DUMPBIN" 39838 path="${complete%% *}" 39839 tmp="$complete EOL" 39840 arguments="${tmp#* }" 39841 39842 # Input might be given as Windows format, start by converting to 39843 # unix format. 39844 new_path="$path" 39845 39846 windows_path="$new_path" 39847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39848 unix_path=`$CYGPATH -u "$windows_path"` 39849 new_path="$unix_path" 39850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39851 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39852 new_path="$unix_path" 39853 fi 39854 39855 39856 # Now try to locate executable using which 39857 new_path=`$WHICH "$new_path" 2> /dev/null` 39858 39859 if test "x$new_path" = x; then 39860 # Oops. Which didn't find the executable. 39861 # The splitting of arguments from the executable at a space might have been incorrect, 39862 # since paths with space are more likely in Windows. Give it another try with the whole 39863 # argument. 39864 path="$complete" 39865 arguments="EOL" 39866 new_path="$path" 39867 39868 windows_path="$new_path" 39869 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39870 unix_path=`$CYGPATH -u "$windows_path"` 39871 new_path="$unix_path" 39872 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39873 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39874 new_path="$unix_path" 39875 fi 39876 39877 39878 new_path=`$WHICH "$new_path" 2> /dev/null` 39879 # bat and cmd files are not always considered executable in MSYS causing which 39880 # to not find them 39881 if test "x$new_path" = x \ 39882 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39883 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39884 new_path="$path" 39885 39886 windows_path="$new_path" 39887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39888 unix_path=`$CYGPATH -u "$windows_path"` 39889 new_path="$unix_path" 39890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39892 new_path="$unix_path" 39893 fi 39894 39895 fi 39896 39897 if test "x$new_path" = x; then 39898 # It's still not found. Now this is an unrecoverable error. 39899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39900 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39901 has_space=`$ECHO "$complete" | $GREP " "` 39902 if test "x$has_space" != x; then 39903 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39904 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39905 fi 39906 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39907 fi 39908 fi 39909 39910 # Now new_path has a complete unix path to the binary 39911 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39912 # Keep paths in /bin as-is, but remove trailing .exe if any 39913 new_path="${new_path/%.exe/}" 39914 # Do not save /bin paths to all_fixpath_prefixes! 39915 else 39916 # Not in mixed or Windows style, start by that. 39917 new_path=`cmd //c echo $new_path` 39918 39919 input_path="$new_path" 39920 # Check if we need to convert this using DOS-style short mode. If the path 39921 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39922 # take no chances and rewrite it. 39923 # Note: m4 eats our [], so we need to use [ and ] instead. 39924 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39925 if test "x$has_forbidden_chars" != x; then 39926 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39927 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39928 fi 39929 39930 # Output is in $new_path 39931 39932 windows_path="$new_path" 39933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39934 unix_path=`$CYGPATH -u "$windows_path"` 39935 new_path="$unix_path" 39936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39937 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39938 new_path="$unix_path" 39939 fi 39940 39941 # remove trailing .exe if any 39942 new_path="${new_path/%.exe/}" 39943 39944 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39945 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39946 fi 39947 39948 else 39949 # We're on a unix platform. Hooray! :) 39950 # First separate the path from the arguments. This will split at the first 39951 # space. 39952 complete="$DUMPBIN" 39953 path="${complete%% *}" 39954 tmp="$complete EOL" 39955 arguments="${tmp#* }" 39956 39957 # Cannot rely on the command "which" here since it doesn't always work. 39958 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39959 if test -z "$is_absolute_path"; then 39960 # Path to executable is not absolute. Find it. 39961 IFS_save="$IFS" 39962 IFS=: 39963 for p in $PATH; do 39964 if test -f "$p/$path" && test -x "$p/$path"; then 39965 new_path="$p/$path" 39966 break 39967 fi 39968 done 39969 IFS="$IFS_save" 39970 else 39971 # This is an absolute path, we can use it without further modifications. 39972 new_path="$path" 39973 fi 39974 39975 if test "x$new_path" = x; then 39976 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39977 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39978 has_space=`$ECHO "$complete" | $GREP " "` 39979 if test "x$has_space" != x; then 39980 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39981 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39982 fi 39983 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39984 fi 39985 fi 39986 39987 # Now join together the path and the arguments once again 39988 if test "x$arguments" != xEOL; then 39989 new_complete="$new_path ${arguments% *}" 39990 else 39991 new_complete="$new_path" 39992 fi 39993 39994 if test "x$complete" != "x$new_complete"; then 39995 DUMPBIN="$new_complete" 39996 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 39997 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 39998 fi 39999 fi 40000 40001 # We need to check for 'msbuild.exe' because at the place where we expect to 40002 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 40003 # won't find the 'msbuild.exe' executable in that case (and the 40004 # 'ac_executable_extensions' is unusable due to performance reasons). 40005 # Notice that we intentionally don't fix up the path to MSBUILD because we 40006 # will call it in a DOS shell during freetype detection on Windows (see 40007 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 40008 # Extract the first word of "msbuild.exe", so it can be a program name with args. 40009 set dummy msbuild.exe; ac_word=$2 40010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40011 $as_echo_n "checking for $ac_word... " >&6; } 40012 if ${ac_cv_prog_MSBUILD+:} false; then : 40013 $as_echo_n "(cached) " >&6 40014 else 40015 if test -n "$MSBUILD"; then 40016 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 40017 else 40018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40019 for as_dir in $PATH 40020 do 40021 IFS=$as_save_IFS 40022 test -z "$as_dir" && as_dir=. 40023 for ac_exec_ext in '' $ac_executable_extensions; do 40024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40025 ac_cv_prog_MSBUILD="msbuild.exe" 40026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40027 break 2 40028 fi 40029 done 40030 done 40031 IFS=$as_save_IFS 40032 40033 fi 40034 fi 40035 MSBUILD=$ac_cv_prog_MSBUILD 40036 if test -n "$MSBUILD"; then 40037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 40038 $as_echo "$MSBUILD" >&6; } 40039 else 40040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40041 $as_echo "no" >&6; } 40042 fi 40043 40044 40045 fi 40046 40047 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40048 40049 40050 # Publish this variable in the help. 40051 40052 40053 if [ -z "${STRIP+x}" ]; then 40054 # The variable is not set by user, try to locate tool using the code snippet 40055 for ac_prog in strip 40056 do 40057 # Extract the first word of "$ac_prog", so it can be a program name with args. 40058 set dummy $ac_prog; ac_word=$2 40059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40060 $as_echo_n "checking for $ac_word... " >&6; } 40061 if ${ac_cv_path_STRIP+:} false; then : 40062 $as_echo_n "(cached) " >&6 40063 else 40064 case $STRIP in 40065 [\\/]* | ?:[\\/]*) 40066 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40067 ;; 40068 *) 40069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40070 for as_dir in $PATH 40071 do 40072 IFS=$as_save_IFS 40073 test -z "$as_dir" && as_dir=. 40074 for ac_exec_ext in '' $ac_executable_extensions; do 40075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40076 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40078 break 2 40079 fi 40080 done 40081 done 40082 IFS=$as_save_IFS 40083 40084 ;; 40085 esac 40086 fi 40087 STRIP=$ac_cv_path_STRIP 40088 if test -n "$STRIP"; then 40089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40090 $as_echo "$STRIP" >&6; } 40091 else 40092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40093 $as_echo "no" >&6; } 40094 fi 40095 40096 40097 test -n "$STRIP" && break 40098 done 40099 40100 else 40101 # The variable is set, but is it from the command line or the environment? 40102 40103 # Try to remove the string !STRIP! from our list. 40104 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 40105 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40106 # If it failed, the variable was not from the command line. Ignore it, 40107 # but warn the user (except for BASH, which is always set by the calling BASH). 40108 if test "xSTRIP" != xBASH; then 40109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 40110 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 40111 fi 40112 # Try to locate tool using the code snippet 40113 for ac_prog in strip 40114 do 40115 # Extract the first word of "$ac_prog", so it can be a program name with args. 40116 set dummy $ac_prog; ac_word=$2 40117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40118 $as_echo_n "checking for $ac_word... " >&6; } 40119 if ${ac_cv_path_STRIP+:} false; then : 40120 $as_echo_n "(cached) " >&6 40121 else 40122 case $STRIP in 40123 [\\/]* | ?:[\\/]*) 40124 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40125 ;; 40126 *) 40127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40128 for as_dir in $PATH 40129 do 40130 IFS=$as_save_IFS 40131 test -z "$as_dir" && as_dir=. 40132 for ac_exec_ext in '' $ac_executable_extensions; do 40133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40134 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40136 break 2 40137 fi 40138 done 40139 done 40140 IFS=$as_save_IFS 40141 40142 ;; 40143 esac 40144 fi 40145 STRIP=$ac_cv_path_STRIP 40146 if test -n "$STRIP"; then 40147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40148 $as_echo "$STRIP" >&6; } 40149 else 40150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40151 $as_echo "no" >&6; } 40152 fi 40153 40154 40155 test -n "$STRIP" && break 40156 done 40157 40158 else 40159 # If it succeeded, then it was overridden by the user. We will use it 40160 # for the tool. 40161 40162 # First remove it from the list of overridden variables, so we can test 40163 # for unknown variables in the end. 40164 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40165 40166 # Check if we try to supply an empty value 40167 if test "x$STRIP" = x; then 40168 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 40169 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 40170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40171 $as_echo_n "checking for STRIP... " >&6; } 40172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40173 $as_echo "disabled" >&6; } 40174 else 40175 # Check if the provided tool contains a complete path. 40176 tool_specified="$STRIP" 40177 tool_basename="${tool_specified##*/}" 40178 if test "x$tool_basename" = "x$tool_specified"; then 40179 # A command without a complete path is provided, search $PATH. 40180 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 40181 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 40182 # Extract the first word of "$tool_basename", so it can be a program name with args. 40183 set dummy $tool_basename; ac_word=$2 40184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40185 $as_echo_n "checking for $ac_word... " >&6; } 40186 if ${ac_cv_path_STRIP+:} false; then : 40187 $as_echo_n "(cached) " >&6 40188 else 40189 case $STRIP in 40190 [\\/]* | ?:[\\/]*) 40191 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40192 ;; 40193 *) 40194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40195 for as_dir in $PATH 40196 do 40197 IFS=$as_save_IFS 40198 test -z "$as_dir" && as_dir=. 40199 for ac_exec_ext in '' $ac_executable_extensions; do 40200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40201 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40203 break 2 40204 fi 40205 done 40206 done 40207 IFS=$as_save_IFS 40208 40209 ;; 40210 esac 40211 fi 40212 STRIP=$ac_cv_path_STRIP 40213 if test -n "$STRIP"; then 40214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40215 $as_echo "$STRIP" >&6; } 40216 else 40217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40218 $as_echo "no" >&6; } 40219 fi 40220 40221 40222 if test "x$STRIP" = x; then 40223 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40224 fi 40225 else 40226 # Otherwise we believe it is a complete path. Use it as it is. 40227 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 40228 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 40229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40230 $as_echo_n "checking for STRIP... " >&6; } 40231 if test ! -x "$tool_specified"; then 40232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40233 $as_echo "not found" >&6; } 40234 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 40235 fi 40236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40237 $as_echo "$tool_specified" >&6; } 40238 fi 40239 fi 40240 fi 40241 40242 fi 40243 40244 40245 40246 # Only process if variable expands to non-empty 40247 40248 if test "x$STRIP" != x; then 40249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40250 40251 # First separate the path from the arguments. This will split at the first 40252 # space. 40253 complete="$STRIP" 40254 path="${complete%% *}" 40255 tmp="$complete EOL" 40256 arguments="${tmp#* }" 40257 40258 # Input might be given as Windows format, start by converting to 40259 # unix format. 40260 new_path=`$CYGPATH -u "$path"` 40261 40262 # Now try to locate executable using which 40263 new_path=`$WHICH "$new_path" 2> /dev/null` 40264 # bat and cmd files are not always considered executable in cygwin causing which 40265 # to not find them 40266 if test "x$new_path" = x \ 40267 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40268 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40269 new_path=`$CYGPATH -u "$path"` 40270 fi 40271 if test "x$new_path" = x; then 40272 # Oops. Which didn't find the executable. 40273 # The splitting of arguments from the executable at a space might have been incorrect, 40274 # since paths with space are more likely in Windows. Give it another try with the whole 40275 # argument. 40276 path="$complete" 40277 arguments="EOL" 40278 new_path=`$CYGPATH -u "$path"` 40279 new_path=`$WHICH "$new_path" 2> /dev/null` 40280 # bat and cmd files are not always considered executable in cygwin causing which 40281 # to not find them 40282 if test "x$new_path" = x \ 40283 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40284 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40285 new_path=`$CYGPATH -u "$path"` 40286 fi 40287 if test "x$new_path" = x; then 40288 # It's still not found. Now this is an unrecoverable error. 40289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40290 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40291 has_space=`$ECHO "$complete" | $GREP " "` 40292 if test "x$has_space" != x; then 40293 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40294 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40295 fi 40296 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40297 fi 40298 fi 40299 40300 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40301 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40302 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40303 # "foo.exe" is OK but "foo" is an error. 40304 # 40305 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40306 # It is also a way to make sure we got the proper file name for the real test later on. 40307 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40308 if test "x$test_shortpath" = x; then 40309 # Short path failed, file does not exist as specified. 40310 # Try adding .exe or .cmd 40311 if test -f "${new_path}.exe"; then 40312 input_to_shortpath="${new_path}.exe" 40313 elif test -f "${new_path}.cmd"; then 40314 input_to_shortpath="${new_path}.cmd" 40315 else 40316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 40317 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 40318 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40319 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40320 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40321 fi 40322 else 40323 input_to_shortpath="$new_path" 40324 fi 40325 40326 # Call helper function which possibly converts this using DOS-style short mode. 40327 # If so, the updated path is stored in $new_path. 40328 new_path="$input_to_shortpath" 40329 40330 input_path="$input_to_shortpath" 40331 # Check if we need to convert this using DOS-style short mode. If the path 40332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40333 # take no chances and rewrite it. 40334 # Note: m4 eats our [], so we need to use [ and ] instead. 40335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40336 if test "x$has_forbidden_chars" != x; then 40337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40338 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40339 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40340 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40341 # Going to short mode and back again did indeed matter. Since short mode is 40342 # case insensitive, let's make it lowercase to improve readability. 40343 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40344 # Now convert it back to Unix-style (cygpath) 40345 input_path=`$CYGPATH -u "$shortmode_path"` 40346 new_path="$input_path" 40347 fi 40348 fi 40349 40350 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40351 if test "x$test_cygdrive_prefix" = x; then 40352 # As a simple fix, exclude /usr/bin since it's not a real path. 40353 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40354 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40355 # a path prefixed by /cygdrive for fixpath to work. 40356 new_path="$CYGWIN_ROOT_PATH$input_path" 40357 fi 40358 fi 40359 40360 # remove trailing .exe if any 40361 new_path="${new_path/%.exe/}" 40362 40363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40364 40365 # First separate the path from the arguments. This will split at the first 40366 # space. 40367 complete="$STRIP" 40368 path="${complete%% *}" 40369 tmp="$complete EOL" 40370 arguments="${tmp#* }" 40371 40372 # Input might be given as Windows format, start by converting to 40373 # unix format. 40374 new_path="$path" 40375 40376 windows_path="$new_path" 40377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40378 unix_path=`$CYGPATH -u "$windows_path"` 40379 new_path="$unix_path" 40380 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40381 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40382 new_path="$unix_path" 40383 fi 40384 40385 40386 # Now try to locate executable using which 40387 new_path=`$WHICH "$new_path" 2> /dev/null` 40388 40389 if test "x$new_path" = x; then 40390 # Oops. Which didn't find the executable. 40391 # The splitting of arguments from the executable at a space might have been incorrect, 40392 # since paths with space are more likely in Windows. Give it another try with the whole 40393 # argument. 40394 path="$complete" 40395 arguments="EOL" 40396 new_path="$path" 40397 40398 windows_path="$new_path" 40399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40400 unix_path=`$CYGPATH -u "$windows_path"` 40401 new_path="$unix_path" 40402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40404 new_path="$unix_path" 40405 fi 40406 40407 40408 new_path=`$WHICH "$new_path" 2> /dev/null` 40409 # bat and cmd files are not always considered executable in MSYS causing which 40410 # to not find them 40411 if test "x$new_path" = x \ 40412 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40413 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40414 new_path="$path" 40415 40416 windows_path="$new_path" 40417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40418 unix_path=`$CYGPATH -u "$windows_path"` 40419 new_path="$unix_path" 40420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40421 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40422 new_path="$unix_path" 40423 fi 40424 40425 fi 40426 40427 if test "x$new_path" = x; then 40428 # It's still not found. Now this is an unrecoverable error. 40429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40430 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40431 has_space=`$ECHO "$complete" | $GREP " "` 40432 if test "x$has_space" != x; then 40433 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40434 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40435 fi 40436 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40437 fi 40438 fi 40439 40440 # Now new_path has a complete unix path to the binary 40441 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40442 # Keep paths in /bin as-is, but remove trailing .exe if any 40443 new_path="${new_path/%.exe/}" 40444 # Do not save /bin paths to all_fixpath_prefixes! 40445 else 40446 # Not in mixed or Windows style, start by that. 40447 new_path=`cmd //c echo $new_path` 40448 40449 input_path="$new_path" 40450 # Check if we need to convert this using DOS-style short mode. If the path 40451 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40452 # take no chances and rewrite it. 40453 # Note: m4 eats our [], so we need to use [ and ] instead. 40454 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40455 if test "x$has_forbidden_chars" != x; then 40456 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40457 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40458 fi 40459 40460 # Output is in $new_path 40461 40462 windows_path="$new_path" 40463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40464 unix_path=`$CYGPATH -u "$windows_path"` 40465 new_path="$unix_path" 40466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40467 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40468 new_path="$unix_path" 40469 fi 40470 40471 # remove trailing .exe if any 40472 new_path="${new_path/%.exe/}" 40473 40474 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40475 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40476 fi 40477 40478 else 40479 # We're on a unix platform. Hooray! :) 40480 # First separate the path from the arguments. This will split at the first 40481 # space. 40482 complete="$STRIP" 40483 path="${complete%% *}" 40484 tmp="$complete EOL" 40485 arguments="${tmp#* }" 40486 40487 # Cannot rely on the command "which" here since it doesn't always work. 40488 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40489 if test -z "$is_absolute_path"; then 40490 # Path to executable is not absolute. Find it. 40491 IFS_save="$IFS" 40492 IFS=: 40493 for p in $PATH; do 40494 if test -f "$p/$path" && test -x "$p/$path"; then 40495 new_path="$p/$path" 40496 break 40497 fi 40498 done 40499 IFS="$IFS_save" 40500 else 40501 # This is an absolute path, we can use it without further modifications. 40502 new_path="$path" 40503 fi 40504 40505 if test "x$new_path" = x; then 40506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40507 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40508 has_space=`$ECHO "$complete" | $GREP " "` 40509 if test "x$has_space" != x; then 40510 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40511 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40512 fi 40513 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40514 fi 40515 fi 40516 40517 # Now join together the path and the arguments once again 40518 if test "x$arguments" != xEOL; then 40519 new_complete="$new_path ${arguments% *}" 40520 else 40521 new_complete="$new_path" 40522 fi 40523 40524 if test "x$complete" != "x$new_complete"; then 40525 STRIP="$new_complete" 40526 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 40527 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 40528 fi 40529 fi 40530 40531 40532 40533 # Publish this variable in the help. 40534 40535 40536 if [ -z "${NM+x}" ]; then 40537 # The variable is not set by user, try to locate tool using the code snippet 40538 for ac_prog in nm 40539 do 40540 # Extract the first word of "$ac_prog", so it can be a program name with args. 40541 set dummy $ac_prog; ac_word=$2 40542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40543 $as_echo_n "checking for $ac_word... " >&6; } 40544 if ${ac_cv_path_NM+:} false; then : 40545 $as_echo_n "(cached) " >&6 40546 else 40547 case $NM in 40548 [\\/]* | ?:[\\/]*) 40549 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40550 ;; 40551 *) 40552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40553 for as_dir in $PATH 40554 do 40555 IFS=$as_save_IFS 40556 test -z "$as_dir" && as_dir=. 40557 for ac_exec_ext in '' $ac_executable_extensions; do 40558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40559 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40561 break 2 40562 fi 40563 done 40564 done 40565 IFS=$as_save_IFS 40566 40567 ;; 40568 esac 40569 fi 40570 NM=$ac_cv_path_NM 40571 if test -n "$NM"; then 40572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40573 $as_echo "$NM" >&6; } 40574 else 40575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40576 $as_echo "no" >&6; } 40577 fi 40578 40579 40580 test -n "$NM" && break 40581 done 40582 40583 else 40584 # The variable is set, but is it from the command line or the environment? 40585 40586 # Try to remove the string !NM! from our list. 40587 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 40588 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40589 # If it failed, the variable was not from the command line. Ignore it, 40590 # but warn the user (except for BASH, which is always set by the calling BASH). 40591 if test "xNM" != xBASH; then 40592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 40593 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 40594 fi 40595 # Try to locate tool using the code snippet 40596 for ac_prog in nm 40597 do 40598 # Extract the first word of "$ac_prog", so it can be a program name with args. 40599 set dummy $ac_prog; ac_word=$2 40600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40601 $as_echo_n "checking for $ac_word... " >&6; } 40602 if ${ac_cv_path_NM+:} false; then : 40603 $as_echo_n "(cached) " >&6 40604 else 40605 case $NM in 40606 [\\/]* | ?:[\\/]*) 40607 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40608 ;; 40609 *) 40610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40611 for as_dir in $PATH 40612 do 40613 IFS=$as_save_IFS 40614 test -z "$as_dir" && as_dir=. 40615 for ac_exec_ext in '' $ac_executable_extensions; do 40616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40617 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40619 break 2 40620 fi 40621 done 40622 done 40623 IFS=$as_save_IFS 40624 40625 ;; 40626 esac 40627 fi 40628 NM=$ac_cv_path_NM 40629 if test -n "$NM"; then 40630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40631 $as_echo "$NM" >&6; } 40632 else 40633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40634 $as_echo "no" >&6; } 40635 fi 40636 40637 40638 test -n "$NM" && break 40639 done 40640 40641 else 40642 # If it succeeded, then it was overridden by the user. We will use it 40643 # for the tool. 40644 40645 # First remove it from the list of overridden variables, so we can test 40646 # for unknown variables in the end. 40647 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40648 40649 # Check if we try to supply an empty value 40650 if test "x$NM" = x; then 40651 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 40652 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 40653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40654 $as_echo_n "checking for NM... " >&6; } 40655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40656 $as_echo "disabled" >&6; } 40657 else 40658 # Check if the provided tool contains a complete path. 40659 tool_specified="$NM" 40660 tool_basename="${tool_specified##*/}" 40661 if test "x$tool_basename" = "x$tool_specified"; then 40662 # A command without a complete path is provided, search $PATH. 40663 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 40664 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 40665 # Extract the first word of "$tool_basename", so it can be a program name with args. 40666 set dummy $tool_basename; ac_word=$2 40667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40668 $as_echo_n "checking for $ac_word... " >&6; } 40669 if ${ac_cv_path_NM+:} false; then : 40670 $as_echo_n "(cached) " >&6 40671 else 40672 case $NM in 40673 [\\/]* | ?:[\\/]*) 40674 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40675 ;; 40676 *) 40677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40678 for as_dir in $PATH 40679 do 40680 IFS=$as_save_IFS 40681 test -z "$as_dir" && as_dir=. 40682 for ac_exec_ext in '' $ac_executable_extensions; do 40683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40684 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40686 break 2 40687 fi 40688 done 40689 done 40690 IFS=$as_save_IFS 40691 40692 ;; 40693 esac 40694 fi 40695 NM=$ac_cv_path_NM 40696 if test -n "$NM"; then 40697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40698 $as_echo "$NM" >&6; } 40699 else 40700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40701 $as_echo "no" >&6; } 40702 fi 40703 40704 40705 if test "x$NM" = x; then 40706 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40707 fi 40708 else 40709 # Otherwise we believe it is a complete path. Use it as it is. 40710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 40711 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 40712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40713 $as_echo_n "checking for NM... " >&6; } 40714 if test ! -x "$tool_specified"; then 40715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40716 $as_echo "not found" >&6; } 40717 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 40718 fi 40719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40720 $as_echo "$tool_specified" >&6; } 40721 fi 40722 fi 40723 fi 40724 40725 fi 40726 40727 40728 40729 # Only process if variable expands to non-empty 40730 40731 if test "x$NM" != x; then 40732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40733 40734 # First separate the path from the arguments. This will split at the first 40735 # space. 40736 complete="$NM" 40737 path="${complete%% *}" 40738 tmp="$complete EOL" 40739 arguments="${tmp#* }" 40740 40741 # Input might be given as Windows format, start by converting to 40742 # unix format. 40743 new_path=`$CYGPATH -u "$path"` 40744 40745 # Now try to locate executable using which 40746 new_path=`$WHICH "$new_path" 2> /dev/null` 40747 # bat and cmd files are not always considered executable in cygwin causing which 40748 # to not find them 40749 if test "x$new_path" = x \ 40750 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40751 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40752 new_path=`$CYGPATH -u "$path"` 40753 fi 40754 if test "x$new_path" = x; then 40755 # Oops. Which didn't find the executable. 40756 # The splitting of arguments from the executable at a space might have been incorrect, 40757 # since paths with space are more likely in Windows. Give it another try with the whole 40758 # argument. 40759 path="$complete" 40760 arguments="EOL" 40761 new_path=`$CYGPATH -u "$path"` 40762 new_path=`$WHICH "$new_path" 2> /dev/null` 40763 # bat and cmd files are not always considered executable in cygwin causing which 40764 # to not find them 40765 if test "x$new_path" = x \ 40766 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40767 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40768 new_path=`$CYGPATH -u "$path"` 40769 fi 40770 if test "x$new_path" = x; then 40771 # It's still not found. Now this is an unrecoverable error. 40772 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40773 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40774 has_space=`$ECHO "$complete" | $GREP " "` 40775 if test "x$has_space" != x; then 40776 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40777 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40778 fi 40779 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40780 fi 40781 fi 40782 40783 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40784 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40785 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40786 # "foo.exe" is OK but "foo" is an error. 40787 # 40788 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40789 # It is also a way to make sure we got the proper file name for the real test later on. 40790 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40791 if test "x$test_shortpath" = x; then 40792 # Short path failed, file does not exist as specified. 40793 # Try adding .exe or .cmd 40794 if test -f "${new_path}.exe"; then 40795 input_to_shortpath="${new_path}.exe" 40796 elif test -f "${new_path}.cmd"; then 40797 input_to_shortpath="${new_path}.cmd" 40798 else 40799 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 40800 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 40801 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40802 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40803 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40804 fi 40805 else 40806 input_to_shortpath="$new_path" 40807 fi 40808 40809 # Call helper function which possibly converts this using DOS-style short mode. 40810 # If so, the updated path is stored in $new_path. 40811 new_path="$input_to_shortpath" 40812 40813 input_path="$input_to_shortpath" 40814 # Check if we need to convert this using DOS-style short mode. If the path 40815 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40816 # take no chances and rewrite it. 40817 # Note: m4 eats our [], so we need to use [ and ] instead. 40818 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40819 if test "x$has_forbidden_chars" != x; then 40820 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40821 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40822 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40823 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40824 # Going to short mode and back again did indeed matter. Since short mode is 40825 # case insensitive, let's make it lowercase to improve readability. 40826 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40827 # Now convert it back to Unix-style (cygpath) 40828 input_path=`$CYGPATH -u "$shortmode_path"` 40829 new_path="$input_path" 40830 fi 40831 fi 40832 40833 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40834 if test "x$test_cygdrive_prefix" = x; then 40835 # As a simple fix, exclude /usr/bin since it's not a real path. 40836 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40837 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40838 # a path prefixed by /cygdrive for fixpath to work. 40839 new_path="$CYGWIN_ROOT_PATH$input_path" 40840 fi 40841 fi 40842 40843 # remove trailing .exe if any 40844 new_path="${new_path/%.exe/}" 40845 40846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40847 40848 # First separate the path from the arguments. This will split at the first 40849 # space. 40850 complete="$NM" 40851 path="${complete%% *}" 40852 tmp="$complete EOL" 40853 arguments="${tmp#* }" 40854 40855 # Input might be given as Windows format, start by converting to 40856 # unix format. 40857 new_path="$path" 40858 40859 windows_path="$new_path" 40860 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40861 unix_path=`$CYGPATH -u "$windows_path"` 40862 new_path="$unix_path" 40863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40864 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40865 new_path="$unix_path" 40866 fi 40867 40868 40869 # Now try to locate executable using which 40870 new_path=`$WHICH "$new_path" 2> /dev/null` 40871 40872 if test "x$new_path" = x; then 40873 # Oops. Which didn't find the executable. 40874 # The splitting of arguments from the executable at a space might have been incorrect, 40875 # since paths with space are more likely in Windows. Give it another try with the whole 40876 # argument. 40877 path="$complete" 40878 arguments="EOL" 40879 new_path="$path" 40880 40881 windows_path="$new_path" 40882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40883 unix_path=`$CYGPATH -u "$windows_path"` 40884 new_path="$unix_path" 40885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40886 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40887 new_path="$unix_path" 40888 fi 40889 40890 40891 new_path=`$WHICH "$new_path" 2> /dev/null` 40892 # bat and cmd files are not always considered executable in MSYS causing which 40893 # to not find them 40894 if test "x$new_path" = x \ 40895 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40896 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40897 new_path="$path" 40898 40899 windows_path="$new_path" 40900 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40901 unix_path=`$CYGPATH -u "$windows_path"` 40902 new_path="$unix_path" 40903 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40904 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40905 new_path="$unix_path" 40906 fi 40907 40908 fi 40909 40910 if test "x$new_path" = x; then 40911 # It's still not found. Now this is an unrecoverable error. 40912 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40913 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40914 has_space=`$ECHO "$complete" | $GREP " "` 40915 if test "x$has_space" != x; then 40916 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40917 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40918 fi 40919 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40920 fi 40921 fi 40922 40923 # Now new_path has a complete unix path to the binary 40924 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40925 # Keep paths in /bin as-is, but remove trailing .exe if any 40926 new_path="${new_path/%.exe/}" 40927 # Do not save /bin paths to all_fixpath_prefixes! 40928 else 40929 # Not in mixed or Windows style, start by that. 40930 new_path=`cmd //c echo $new_path` 40931 40932 input_path="$new_path" 40933 # Check if we need to convert this using DOS-style short mode. If the path 40934 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40935 # take no chances and rewrite it. 40936 # Note: m4 eats our [], so we need to use [ and ] instead. 40937 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40938 if test "x$has_forbidden_chars" != x; then 40939 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40940 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40941 fi 40942 40943 # Output is in $new_path 40944 40945 windows_path="$new_path" 40946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40947 unix_path=`$CYGPATH -u "$windows_path"` 40948 new_path="$unix_path" 40949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40950 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40951 new_path="$unix_path" 40952 fi 40953 40954 # remove trailing .exe if any 40955 new_path="${new_path/%.exe/}" 40956 40957 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40958 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40959 fi 40960 40961 else 40962 # We're on a unix platform. Hooray! :) 40963 # First separate the path from the arguments. This will split at the first 40964 # space. 40965 complete="$NM" 40966 path="${complete%% *}" 40967 tmp="$complete EOL" 40968 arguments="${tmp#* }" 40969 40970 # Cannot rely on the command "which" here since it doesn't always work. 40971 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40972 if test -z "$is_absolute_path"; then 40973 # Path to executable is not absolute. Find it. 40974 IFS_save="$IFS" 40975 IFS=: 40976 for p in $PATH; do 40977 if test -f "$p/$path" && test -x "$p/$path"; then 40978 new_path="$p/$path" 40979 break 40980 fi 40981 done 40982 IFS="$IFS_save" 40983 else 40984 # This is an absolute path, we can use it without further modifications. 40985 new_path="$path" 40986 fi 40987 40988 if test "x$new_path" = x; then 40989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40990 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40991 has_space=`$ECHO "$complete" | $GREP " "` 40992 if test "x$has_space" != x; then 40993 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40994 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40995 fi 40996 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40997 fi 40998 fi 40999 41000 # Now join together the path and the arguments once again 41001 if test "x$arguments" != xEOL; then 41002 new_complete="$new_path ${arguments% *}" 41003 else 41004 new_complete="$new_path" 41005 fi 41006 41007 if test "x$complete" != "x$new_complete"; then 41008 NM="$new_complete" 41009 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 41010 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 41011 fi 41012 fi 41013 41014 41015 41016 # Publish this variable in the help. 41017 41018 41019 if [ -z "${GNM+x}" ]; then 41020 # The variable is not set by user, try to locate tool using the code snippet 41021 for ac_prog in gnm 41022 do 41023 # Extract the first word of "$ac_prog", so it can be a program name with args. 41024 set dummy $ac_prog; ac_word=$2 41025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41026 $as_echo_n "checking for $ac_word... " >&6; } 41027 if ${ac_cv_path_GNM+:} false; then : 41028 $as_echo_n "(cached) " >&6 41029 else 41030 case $GNM in 41031 [\\/]* | ?:[\\/]*) 41032 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41033 ;; 41034 *) 41035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41036 for as_dir in $PATH 41037 do 41038 IFS=$as_save_IFS 41039 test -z "$as_dir" && as_dir=. 41040 for ac_exec_ext in '' $ac_executable_extensions; do 41041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41042 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41044 break 2 41045 fi 41046 done 41047 done 41048 IFS=$as_save_IFS 41049 41050 ;; 41051 esac 41052 fi 41053 GNM=$ac_cv_path_GNM 41054 if test -n "$GNM"; then 41055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41056 $as_echo "$GNM" >&6; } 41057 else 41058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41059 $as_echo "no" >&6; } 41060 fi 41061 41062 41063 test -n "$GNM" && break 41064 done 41065 41066 else 41067 # The variable is set, but is it from the command line or the environment? 41068 41069 # Try to remove the string !GNM! from our list. 41070 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 41071 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41072 # If it failed, the variable was not from the command line. Ignore it, 41073 # but warn the user (except for BASH, which is always set by the calling BASH). 41074 if test "xGNM" != xBASH; then 41075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 41076 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 41077 fi 41078 # Try to locate tool using the code snippet 41079 for ac_prog in gnm 41080 do 41081 # Extract the first word of "$ac_prog", so it can be a program name with args. 41082 set dummy $ac_prog; ac_word=$2 41083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41084 $as_echo_n "checking for $ac_word... " >&6; } 41085 if ${ac_cv_path_GNM+:} false; then : 41086 $as_echo_n "(cached) " >&6 41087 else 41088 case $GNM in 41089 [\\/]* | ?:[\\/]*) 41090 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41091 ;; 41092 *) 41093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41094 for as_dir in $PATH 41095 do 41096 IFS=$as_save_IFS 41097 test -z "$as_dir" && as_dir=. 41098 for ac_exec_ext in '' $ac_executable_extensions; do 41099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41100 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41102 break 2 41103 fi 41104 done 41105 done 41106 IFS=$as_save_IFS 41107 41108 ;; 41109 esac 41110 fi 41111 GNM=$ac_cv_path_GNM 41112 if test -n "$GNM"; then 41113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41114 $as_echo "$GNM" >&6; } 41115 else 41116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41117 $as_echo "no" >&6; } 41118 fi 41119 41120 41121 test -n "$GNM" && break 41122 done 41123 41124 else 41125 # If it succeeded, then it was overridden by the user. We will use it 41126 # for the tool. 41127 41128 # First remove it from the list of overridden variables, so we can test 41129 # for unknown variables in the end. 41130 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41131 41132 # Check if we try to supply an empty value 41133 if test "x$GNM" = x; then 41134 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 41135 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 41136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 41137 $as_echo_n "checking for GNM... " >&6; } 41138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41139 $as_echo "disabled" >&6; } 41140 else 41141 # Check if the provided tool contains a complete path. 41142 tool_specified="$GNM" 41143 tool_basename="${tool_specified##*/}" 41144 if test "x$tool_basename" = "x$tool_specified"; then 41145 # A command without a complete path is provided, search $PATH. 41146 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 41147 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 41148 # Extract the first word of "$tool_basename", so it can be a program name with args. 41149 set dummy $tool_basename; ac_word=$2 41150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41151 $as_echo_n "checking for $ac_word... " >&6; } 41152 if ${ac_cv_path_GNM+:} false; then : 41153 $as_echo_n "(cached) " >&6 41154 else 41155 case $GNM in 41156 [\\/]* | ?:[\\/]*) 41157 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41158 ;; 41159 *) 41160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41161 for as_dir in $PATH 41162 do 41163 IFS=$as_save_IFS 41164 test -z "$as_dir" && as_dir=. 41165 for ac_exec_ext in '' $ac_executable_extensions; do 41166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41167 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41169 break 2 41170 fi 41171 done 41172 done 41173 IFS=$as_save_IFS 41174 41175 ;; 41176 esac 41177 fi 41178 GNM=$ac_cv_path_GNM 41179 if test -n "$GNM"; then 41180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41181 $as_echo "$GNM" >&6; } 41182 else 41183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41184 $as_echo "no" >&6; } 41185 fi 41186 41187 41188 if test "x$GNM" = x; then 41189 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41190 fi 41191 else 41192 # Otherwise we believe it is a complete path. Use it as it is. 41193 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 41194 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 41195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 41196 $as_echo_n "checking for GNM... " >&6; } 41197 if test ! -x "$tool_specified"; then 41198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41199 $as_echo "not found" >&6; } 41200 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 41201 fi 41202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41203 $as_echo "$tool_specified" >&6; } 41204 fi 41205 fi 41206 fi 41207 41208 fi 41209 41210 41211 41212 # Only process if variable expands to non-empty 41213 41214 if test "x$GNM" != x; then 41215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41216 41217 # First separate the path from the arguments. This will split at the first 41218 # space. 41219 complete="$GNM" 41220 path="${complete%% *}" 41221 tmp="$complete EOL" 41222 arguments="${tmp#* }" 41223 41224 # Input might be given as Windows format, start by converting to 41225 # unix format. 41226 new_path=`$CYGPATH -u "$path"` 41227 41228 # Now try to locate executable using which 41229 new_path=`$WHICH "$new_path" 2> /dev/null` 41230 # bat and cmd files are not always considered executable in cygwin causing which 41231 # to not find them 41232 if test "x$new_path" = x \ 41233 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41234 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41235 new_path=`$CYGPATH -u "$path"` 41236 fi 41237 if test "x$new_path" = x; then 41238 # Oops. Which didn't find the executable. 41239 # The splitting of arguments from the executable at a space might have been incorrect, 41240 # since paths with space are more likely in Windows. Give it another try with the whole 41241 # argument. 41242 path="$complete" 41243 arguments="EOL" 41244 new_path=`$CYGPATH -u "$path"` 41245 new_path=`$WHICH "$new_path" 2> /dev/null` 41246 # bat and cmd files are not always considered executable in cygwin causing which 41247 # to not find them 41248 if test "x$new_path" = x \ 41249 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41250 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41251 new_path=`$CYGPATH -u "$path"` 41252 fi 41253 if test "x$new_path" = x; then 41254 # It's still not found. Now this is an unrecoverable error. 41255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41256 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41257 has_space=`$ECHO "$complete" | $GREP " "` 41258 if test "x$has_space" != x; then 41259 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41260 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41261 fi 41262 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41263 fi 41264 fi 41265 41266 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41267 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41268 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41269 # "foo.exe" is OK but "foo" is an error. 41270 # 41271 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41272 # It is also a way to make sure we got the proper file name for the real test later on. 41273 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41274 if test "x$test_shortpath" = x; then 41275 # Short path failed, file does not exist as specified. 41276 # Try adding .exe or .cmd 41277 if test -f "${new_path}.exe"; then 41278 input_to_shortpath="${new_path}.exe" 41279 elif test -f "${new_path}.cmd"; then 41280 input_to_shortpath="${new_path}.cmd" 41281 else 41282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 41283 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 41284 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41285 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41286 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41287 fi 41288 else 41289 input_to_shortpath="$new_path" 41290 fi 41291 41292 # Call helper function which possibly converts this using DOS-style short mode. 41293 # If so, the updated path is stored in $new_path. 41294 new_path="$input_to_shortpath" 41295 41296 input_path="$input_to_shortpath" 41297 # Check if we need to convert this using DOS-style short mode. If the path 41298 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41299 # take no chances and rewrite it. 41300 # Note: m4 eats our [], so we need to use [ and ] instead. 41301 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41302 if test "x$has_forbidden_chars" != x; then 41303 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41304 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41305 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41306 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41307 # Going to short mode and back again did indeed matter. Since short mode is 41308 # case insensitive, let's make it lowercase to improve readability. 41309 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41310 # Now convert it back to Unix-style (cygpath) 41311 input_path=`$CYGPATH -u "$shortmode_path"` 41312 new_path="$input_path" 41313 fi 41314 fi 41315 41316 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41317 if test "x$test_cygdrive_prefix" = x; then 41318 # As a simple fix, exclude /usr/bin since it's not a real path. 41319 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41320 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41321 # a path prefixed by /cygdrive for fixpath to work. 41322 new_path="$CYGWIN_ROOT_PATH$input_path" 41323 fi 41324 fi 41325 41326 # remove trailing .exe if any 41327 new_path="${new_path/%.exe/}" 41328 41329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41330 41331 # First separate the path from the arguments. This will split at the first 41332 # space. 41333 complete="$GNM" 41334 path="${complete%% *}" 41335 tmp="$complete EOL" 41336 arguments="${tmp#* }" 41337 41338 # Input might be given as Windows format, start by converting to 41339 # unix format. 41340 new_path="$path" 41341 41342 windows_path="$new_path" 41343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41344 unix_path=`$CYGPATH -u "$windows_path"` 41345 new_path="$unix_path" 41346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41348 new_path="$unix_path" 41349 fi 41350 41351 41352 # Now try to locate executable using which 41353 new_path=`$WHICH "$new_path" 2> /dev/null` 41354 41355 if test "x$new_path" = x; then 41356 # Oops. Which didn't find the executable. 41357 # The splitting of arguments from the executable at a space might have been incorrect, 41358 # since paths with space are more likely in Windows. Give it another try with the whole 41359 # argument. 41360 path="$complete" 41361 arguments="EOL" 41362 new_path="$path" 41363 41364 windows_path="$new_path" 41365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41366 unix_path=`$CYGPATH -u "$windows_path"` 41367 new_path="$unix_path" 41368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41370 new_path="$unix_path" 41371 fi 41372 41373 41374 new_path=`$WHICH "$new_path" 2> /dev/null` 41375 # bat and cmd files are not always considered executable in MSYS causing which 41376 # to not find them 41377 if test "x$new_path" = x \ 41378 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41379 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41380 new_path="$path" 41381 41382 windows_path="$new_path" 41383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41384 unix_path=`$CYGPATH -u "$windows_path"` 41385 new_path="$unix_path" 41386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41387 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41388 new_path="$unix_path" 41389 fi 41390 41391 fi 41392 41393 if test "x$new_path" = x; then 41394 # It's still not found. Now this is an unrecoverable error. 41395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41396 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41397 has_space=`$ECHO "$complete" | $GREP " "` 41398 if test "x$has_space" != x; then 41399 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41400 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41401 fi 41402 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41403 fi 41404 fi 41405 41406 # Now new_path has a complete unix path to the binary 41407 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41408 # Keep paths in /bin as-is, but remove trailing .exe if any 41409 new_path="${new_path/%.exe/}" 41410 # Do not save /bin paths to all_fixpath_prefixes! 41411 else 41412 # Not in mixed or Windows style, start by that. 41413 new_path=`cmd //c echo $new_path` 41414 41415 input_path="$new_path" 41416 # Check if we need to convert this using DOS-style short mode. If the path 41417 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41418 # take no chances and rewrite it. 41419 # Note: m4 eats our [], so we need to use [ and ] instead. 41420 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41421 if test "x$has_forbidden_chars" != x; then 41422 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41423 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41424 fi 41425 41426 # Output is in $new_path 41427 41428 windows_path="$new_path" 41429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41430 unix_path=`$CYGPATH -u "$windows_path"` 41431 new_path="$unix_path" 41432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41434 new_path="$unix_path" 41435 fi 41436 41437 # remove trailing .exe if any 41438 new_path="${new_path/%.exe/}" 41439 41440 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41441 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41442 fi 41443 41444 else 41445 # We're on a unix platform. Hooray! :) 41446 # First separate the path from the arguments. This will split at the first 41447 # space. 41448 complete="$GNM" 41449 path="${complete%% *}" 41450 tmp="$complete EOL" 41451 arguments="${tmp#* }" 41452 41453 # Cannot rely on the command "which" here since it doesn't always work. 41454 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41455 if test -z "$is_absolute_path"; then 41456 # Path to executable is not absolute. Find it. 41457 IFS_save="$IFS" 41458 IFS=: 41459 for p in $PATH; do 41460 if test -f "$p/$path" && test -x "$p/$path"; then 41461 new_path="$p/$path" 41462 break 41463 fi 41464 done 41465 IFS="$IFS_save" 41466 else 41467 # This is an absolute path, we can use it without further modifications. 41468 new_path="$path" 41469 fi 41470 41471 if test "x$new_path" = x; then 41472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41473 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41474 has_space=`$ECHO "$complete" | $GREP " "` 41475 if test "x$has_space" != x; then 41476 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41477 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41478 fi 41479 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41480 fi 41481 fi 41482 41483 # Now join together the path and the arguments once again 41484 if test "x$arguments" != xEOL; then 41485 new_complete="$new_path ${arguments% *}" 41486 else 41487 new_complete="$new_path" 41488 fi 41489 41490 if test "x$complete" != "x$new_complete"; then 41491 GNM="$new_complete" 41492 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 41493 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 41494 fi 41495 fi 41496 41497 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 41498 # FIXME: we should unify this with the solaris case above. 41499 41500 41501 # Publish this variable in the help. 41502 41503 41504 if [ -z "${STRIP+x}" ]; then 41505 # The variable is not set by user, try to locate tool using the code snippet 41506 if test -n "$ac_tool_prefix"; then 41507 for ac_prog in strip 41508 do 41509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41512 $as_echo_n "checking for $ac_word... " >&6; } 41513 if ${ac_cv_prog_STRIP+:} false; then : 41514 $as_echo_n "(cached) " >&6 41515 else 41516 if test -n "$STRIP"; then 41517 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41518 else 41519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41520 for as_dir in $PATH 41521 do 41522 IFS=$as_save_IFS 41523 test -z "$as_dir" && as_dir=. 41524 for ac_exec_ext in '' $ac_executable_extensions; do 41525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41526 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41528 break 2 41529 fi 41530 done 41531 done 41532 IFS=$as_save_IFS 41533 41534 fi 41535 fi 41536 STRIP=$ac_cv_prog_STRIP 41537 if test -n "$STRIP"; then 41538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41539 $as_echo "$STRIP" >&6; } 41540 else 41541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41542 $as_echo "no" >&6; } 41543 fi 41544 41545 41546 test -n "$STRIP" && break 41547 done 41548 fi 41549 if test -z "$STRIP"; then 41550 ac_ct_STRIP=$STRIP 41551 for ac_prog in strip 41552 do 41553 # Extract the first word of "$ac_prog", so it can be a program name with args. 41554 set dummy $ac_prog; ac_word=$2 41555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41556 $as_echo_n "checking for $ac_word... " >&6; } 41557 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41558 $as_echo_n "(cached) " >&6 41559 else 41560 if test -n "$ac_ct_STRIP"; then 41561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41562 else 41563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41564 for as_dir in $PATH 41565 do 41566 IFS=$as_save_IFS 41567 test -z "$as_dir" && as_dir=. 41568 for ac_exec_ext in '' $ac_executable_extensions; do 41569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41570 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41572 break 2 41573 fi 41574 done 41575 done 41576 IFS=$as_save_IFS 41577 41578 fi 41579 fi 41580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41581 if test -n "$ac_ct_STRIP"; then 41582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41583 $as_echo "$ac_ct_STRIP" >&6; } 41584 else 41585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41586 $as_echo "no" >&6; } 41587 fi 41588 41589 41590 test -n "$ac_ct_STRIP" && break 41591 done 41592 41593 if test "x$ac_ct_STRIP" = x; then 41594 STRIP="" 41595 else 41596 case $cross_compiling:$ac_tool_warned in 41597 yes:) 41598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41600 ac_tool_warned=yes ;; 41601 esac 41602 STRIP=$ac_ct_STRIP 41603 fi 41604 fi 41605 41606 else 41607 # The variable is set, but is it from the command line or the environment? 41608 41609 # Try to remove the string !STRIP! from our list. 41610 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 41611 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41612 # If it failed, the variable was not from the command line. Ignore it, 41613 # but warn the user (except for BASH, which is always set by the calling BASH). 41614 if test "xSTRIP" != xBASH; then 41615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 41616 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 41617 fi 41618 # Try to locate tool using the code snippet 41619 if test -n "$ac_tool_prefix"; then 41620 for ac_prog in strip 41621 do 41622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41625 $as_echo_n "checking for $ac_word... " >&6; } 41626 if ${ac_cv_prog_STRIP+:} false; then : 41627 $as_echo_n "(cached) " >&6 41628 else 41629 if test -n "$STRIP"; then 41630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41631 else 41632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41633 for as_dir in $PATH 41634 do 41635 IFS=$as_save_IFS 41636 test -z "$as_dir" && as_dir=. 41637 for ac_exec_ext in '' $ac_executable_extensions; do 41638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41639 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41641 break 2 41642 fi 41643 done 41644 done 41645 IFS=$as_save_IFS 41646 41647 fi 41648 fi 41649 STRIP=$ac_cv_prog_STRIP 41650 if test -n "$STRIP"; then 41651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41652 $as_echo "$STRIP" >&6; } 41653 else 41654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41655 $as_echo "no" >&6; } 41656 fi 41657 41658 41659 test -n "$STRIP" && break 41660 done 41661 fi 41662 if test -z "$STRIP"; then 41663 ac_ct_STRIP=$STRIP 41664 for ac_prog in strip 41665 do 41666 # Extract the first word of "$ac_prog", so it can be a program name with args. 41667 set dummy $ac_prog; ac_word=$2 41668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41669 $as_echo_n "checking for $ac_word... " >&6; } 41670 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41671 $as_echo_n "(cached) " >&6 41672 else 41673 if test -n "$ac_ct_STRIP"; then 41674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41675 else 41676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41677 for as_dir in $PATH 41678 do 41679 IFS=$as_save_IFS 41680 test -z "$as_dir" && as_dir=. 41681 for ac_exec_ext in '' $ac_executable_extensions; do 41682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41683 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41685 break 2 41686 fi 41687 done 41688 done 41689 IFS=$as_save_IFS 41690 41691 fi 41692 fi 41693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41694 if test -n "$ac_ct_STRIP"; then 41695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41696 $as_echo "$ac_ct_STRIP" >&6; } 41697 else 41698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41699 $as_echo "no" >&6; } 41700 fi 41701 41702 41703 test -n "$ac_ct_STRIP" && break 41704 done 41705 41706 if test "x$ac_ct_STRIP" = x; then 41707 STRIP="" 41708 else 41709 case $cross_compiling:$ac_tool_warned in 41710 yes:) 41711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41713 ac_tool_warned=yes ;; 41714 esac 41715 STRIP=$ac_ct_STRIP 41716 fi 41717 fi 41718 41719 else 41720 # If it succeeded, then it was overridden by the user. We will use it 41721 # for the tool. 41722 41723 # First remove it from the list of overridden variables, so we can test 41724 # for unknown variables in the end. 41725 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41726 41727 # Check if we try to supply an empty value 41728 if test "x$STRIP" = x; then 41729 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 41730 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 41731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41732 $as_echo_n "checking for STRIP... " >&6; } 41733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41734 $as_echo "disabled" >&6; } 41735 else 41736 # Check if the provided tool contains a complete path. 41737 tool_specified="$STRIP" 41738 tool_basename="${tool_specified##*/}" 41739 if test "x$tool_basename" = "x$tool_specified"; then 41740 # A command without a complete path is provided, search $PATH. 41741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 41742 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 41743 # Extract the first word of "$tool_basename", so it can be a program name with args. 41744 set dummy $tool_basename; ac_word=$2 41745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41746 $as_echo_n "checking for $ac_word... " >&6; } 41747 if ${ac_cv_path_STRIP+:} false; then : 41748 $as_echo_n "(cached) " >&6 41749 else 41750 case $STRIP in 41751 [\\/]* | ?:[\\/]*) 41752 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41753 ;; 41754 *) 41755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41756 for as_dir in $PATH 41757 do 41758 IFS=$as_save_IFS 41759 test -z "$as_dir" && as_dir=. 41760 for ac_exec_ext in '' $ac_executable_extensions; do 41761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41762 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41764 break 2 41765 fi 41766 done 41767 done 41768 IFS=$as_save_IFS 41769 41770 ;; 41771 esac 41772 fi 41773 STRIP=$ac_cv_path_STRIP 41774 if test -n "$STRIP"; then 41775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41776 $as_echo "$STRIP" >&6; } 41777 else 41778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41779 $as_echo "no" >&6; } 41780 fi 41781 41782 41783 if test "x$STRIP" = x; then 41784 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41785 fi 41786 else 41787 # Otherwise we believe it is a complete path. Use it as it is. 41788 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 41789 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 41790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41791 $as_echo_n "checking for STRIP... " >&6; } 41792 if test ! -x "$tool_specified"; then 41793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41794 $as_echo "not found" >&6; } 41795 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 41796 fi 41797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41798 $as_echo "$tool_specified" >&6; } 41799 fi 41800 fi 41801 fi 41802 41803 fi 41804 41805 41806 41807 # Only process if variable expands to non-empty 41808 41809 if test "x$STRIP" != x; then 41810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41811 41812 # First separate the path from the arguments. This will split at the first 41813 # space. 41814 complete="$STRIP" 41815 path="${complete%% *}" 41816 tmp="$complete EOL" 41817 arguments="${tmp#* }" 41818 41819 # Input might be given as Windows format, start by converting to 41820 # unix format. 41821 new_path=`$CYGPATH -u "$path"` 41822 41823 # Now try to locate executable using which 41824 new_path=`$WHICH "$new_path" 2> /dev/null` 41825 # bat and cmd files are not always considered executable in cygwin causing which 41826 # to not find them 41827 if test "x$new_path" = x \ 41828 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41829 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41830 new_path=`$CYGPATH -u "$path"` 41831 fi 41832 if test "x$new_path" = x; then 41833 # Oops. Which didn't find the executable. 41834 # The splitting of arguments from the executable at a space might have been incorrect, 41835 # since paths with space are more likely in Windows. Give it another try with the whole 41836 # argument. 41837 path="$complete" 41838 arguments="EOL" 41839 new_path=`$CYGPATH -u "$path"` 41840 new_path=`$WHICH "$new_path" 2> /dev/null` 41841 # bat and cmd files are not always considered executable in cygwin causing which 41842 # to not find them 41843 if test "x$new_path" = x \ 41844 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41845 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41846 new_path=`$CYGPATH -u "$path"` 41847 fi 41848 if test "x$new_path" = x; then 41849 # It's still not found. Now this is an unrecoverable error. 41850 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41851 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41852 has_space=`$ECHO "$complete" | $GREP " "` 41853 if test "x$has_space" != x; then 41854 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41855 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41856 fi 41857 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41858 fi 41859 fi 41860 41861 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41862 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41863 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41864 # "foo.exe" is OK but "foo" is an error. 41865 # 41866 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41867 # It is also a way to make sure we got the proper file name for the real test later on. 41868 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41869 if test "x$test_shortpath" = x; then 41870 # Short path failed, file does not exist as specified. 41871 # Try adding .exe or .cmd 41872 if test -f "${new_path}.exe"; then 41873 input_to_shortpath="${new_path}.exe" 41874 elif test -f "${new_path}.cmd"; then 41875 input_to_shortpath="${new_path}.cmd" 41876 else 41877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 41878 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 41879 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41880 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41881 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41882 fi 41883 else 41884 input_to_shortpath="$new_path" 41885 fi 41886 41887 # Call helper function which possibly converts this using DOS-style short mode. 41888 # If so, the updated path is stored in $new_path. 41889 new_path="$input_to_shortpath" 41890 41891 input_path="$input_to_shortpath" 41892 # Check if we need to convert this using DOS-style short mode. If the path 41893 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41894 # take no chances and rewrite it. 41895 # Note: m4 eats our [], so we need to use [ and ] instead. 41896 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41897 if test "x$has_forbidden_chars" != x; then 41898 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41899 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41900 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41901 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41902 # Going to short mode and back again did indeed matter. Since short mode is 41903 # case insensitive, let's make it lowercase to improve readability. 41904 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41905 # Now convert it back to Unix-style (cygpath) 41906 input_path=`$CYGPATH -u "$shortmode_path"` 41907 new_path="$input_path" 41908 fi 41909 fi 41910 41911 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41912 if test "x$test_cygdrive_prefix" = x; then 41913 # As a simple fix, exclude /usr/bin since it's not a real path. 41914 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41915 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41916 # a path prefixed by /cygdrive for fixpath to work. 41917 new_path="$CYGWIN_ROOT_PATH$input_path" 41918 fi 41919 fi 41920 41921 # remove trailing .exe if any 41922 new_path="${new_path/%.exe/}" 41923 41924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41925 41926 # First separate the path from the arguments. This will split at the first 41927 # space. 41928 complete="$STRIP" 41929 path="${complete%% *}" 41930 tmp="$complete EOL" 41931 arguments="${tmp#* }" 41932 41933 # Input might be given as Windows format, start by converting to 41934 # unix format. 41935 new_path="$path" 41936 41937 windows_path="$new_path" 41938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41939 unix_path=`$CYGPATH -u "$windows_path"` 41940 new_path="$unix_path" 41941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41943 new_path="$unix_path" 41944 fi 41945 41946 41947 # Now try to locate executable using which 41948 new_path=`$WHICH "$new_path" 2> /dev/null` 41949 41950 if test "x$new_path" = x; then 41951 # Oops. Which didn't find the executable. 41952 # The splitting of arguments from the executable at a space might have been incorrect, 41953 # since paths with space are more likely in Windows. Give it another try with the whole 41954 # argument. 41955 path="$complete" 41956 arguments="EOL" 41957 new_path="$path" 41958 41959 windows_path="$new_path" 41960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41961 unix_path=`$CYGPATH -u "$windows_path"` 41962 new_path="$unix_path" 41963 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41964 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41965 new_path="$unix_path" 41966 fi 41967 41968 41969 new_path=`$WHICH "$new_path" 2> /dev/null` 41970 # bat and cmd files are not always considered executable in MSYS causing which 41971 # to not find them 41972 if test "x$new_path" = x \ 41973 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41974 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41975 new_path="$path" 41976 41977 windows_path="$new_path" 41978 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41979 unix_path=`$CYGPATH -u "$windows_path"` 41980 new_path="$unix_path" 41981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41982 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41983 new_path="$unix_path" 41984 fi 41985 41986 fi 41987 41988 if test "x$new_path" = x; then 41989 # It's still not found. Now this is an unrecoverable error. 41990 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41991 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41992 has_space=`$ECHO "$complete" | $GREP " "` 41993 if test "x$has_space" != x; then 41994 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41995 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41996 fi 41997 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41998 fi 41999 fi 42000 42001 # Now new_path has a complete unix path to the binary 42002 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42003 # Keep paths in /bin as-is, but remove trailing .exe if any 42004 new_path="${new_path/%.exe/}" 42005 # Do not save /bin paths to all_fixpath_prefixes! 42006 else 42007 # Not in mixed or Windows style, start by that. 42008 new_path=`cmd //c echo $new_path` 42009 42010 input_path="$new_path" 42011 # Check if we need to convert this using DOS-style short mode. If the path 42012 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42013 # take no chances and rewrite it. 42014 # Note: m4 eats our [], so we need to use [ and ] instead. 42015 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42016 if test "x$has_forbidden_chars" != x; then 42017 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42018 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42019 fi 42020 42021 # Output is in $new_path 42022 42023 windows_path="$new_path" 42024 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42025 unix_path=`$CYGPATH -u "$windows_path"` 42026 new_path="$unix_path" 42027 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42028 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42029 new_path="$unix_path" 42030 fi 42031 42032 # remove trailing .exe if any 42033 new_path="${new_path/%.exe/}" 42034 42035 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42036 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42037 fi 42038 42039 else 42040 # We're on a unix platform. Hooray! :) 42041 # First separate the path from the arguments. This will split at the first 42042 # space. 42043 complete="$STRIP" 42044 path="${complete%% *}" 42045 tmp="$complete EOL" 42046 arguments="${tmp#* }" 42047 42048 # Cannot rely on the command "which" here since it doesn't always work. 42049 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42050 if test -z "$is_absolute_path"; then 42051 # Path to executable is not absolute. Find it. 42052 IFS_save="$IFS" 42053 IFS=: 42054 for p in $PATH; do 42055 if test -f "$p/$path" && test -x "$p/$path"; then 42056 new_path="$p/$path" 42057 break 42058 fi 42059 done 42060 IFS="$IFS_save" 42061 else 42062 # This is an absolute path, we can use it without further modifications. 42063 new_path="$path" 42064 fi 42065 42066 if test "x$new_path" = x; then 42067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42068 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42069 has_space=`$ECHO "$complete" | $GREP " "` 42070 if test "x$has_space" != x; then 42071 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42072 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42073 fi 42074 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42075 fi 42076 fi 42077 42078 # Now join together the path and the arguments once again 42079 if test "x$arguments" != xEOL; then 42080 new_complete="$new_path ${arguments% *}" 42081 else 42082 new_complete="$new_path" 42083 fi 42084 42085 if test "x$complete" != "x$new_complete"; then 42086 STRIP="$new_complete" 42087 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 42088 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 42089 fi 42090 fi 42091 42092 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42093 42094 42095 # Publish this variable in the help. 42096 42097 42098 if [ -z "${NM+x}" ]; then 42099 # The variable is not set by user, try to locate tool using the code snippet 42100 if test -n "$ac_tool_prefix"; then 42101 for ac_prog in nm gcc-nm 42102 do 42103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42106 $as_echo_n "checking for $ac_word... " >&6; } 42107 if ${ac_cv_prog_NM+:} false; then : 42108 $as_echo_n "(cached) " >&6 42109 else 42110 if test -n "$NM"; then 42111 ac_cv_prog_NM="$NM" # Let the user override the test. 42112 else 42113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42114 for as_dir in $PATH 42115 do 42116 IFS=$as_save_IFS 42117 test -z "$as_dir" && as_dir=. 42118 for ac_exec_ext in '' $ac_executable_extensions; do 42119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42120 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42122 break 2 42123 fi 42124 done 42125 done 42126 IFS=$as_save_IFS 42127 42128 fi 42129 fi 42130 NM=$ac_cv_prog_NM 42131 if test -n "$NM"; then 42132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42133 $as_echo "$NM" >&6; } 42134 else 42135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42136 $as_echo "no" >&6; } 42137 fi 42138 42139 42140 test -n "$NM" && break 42141 done 42142 fi 42143 if test -z "$NM"; then 42144 ac_ct_NM=$NM 42145 for ac_prog in nm gcc-nm 42146 do 42147 # Extract the first word of "$ac_prog", so it can be a program name with args. 42148 set dummy $ac_prog; ac_word=$2 42149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42150 $as_echo_n "checking for $ac_word... " >&6; } 42151 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42152 $as_echo_n "(cached) " >&6 42153 else 42154 if test -n "$ac_ct_NM"; then 42155 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42156 else 42157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42158 for as_dir in $PATH 42159 do 42160 IFS=$as_save_IFS 42161 test -z "$as_dir" && as_dir=. 42162 for ac_exec_ext in '' $ac_executable_extensions; do 42163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42164 ac_cv_prog_ac_ct_NM="$ac_prog" 42165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42166 break 2 42167 fi 42168 done 42169 done 42170 IFS=$as_save_IFS 42171 42172 fi 42173 fi 42174 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42175 if test -n "$ac_ct_NM"; then 42176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42177 $as_echo "$ac_ct_NM" >&6; } 42178 else 42179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42180 $as_echo "no" >&6; } 42181 fi 42182 42183 42184 test -n "$ac_ct_NM" && break 42185 done 42186 42187 if test "x$ac_ct_NM" = x; then 42188 NM="" 42189 else 42190 case $cross_compiling:$ac_tool_warned in 42191 yes:) 42192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42194 ac_tool_warned=yes ;; 42195 esac 42196 NM=$ac_ct_NM 42197 fi 42198 fi 42199 42200 else 42201 # The variable is set, but is it from the command line or the environment? 42202 42203 # Try to remove the string !NM! from our list. 42204 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42205 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42206 # If it failed, the variable was not from the command line. Ignore it, 42207 # but warn the user (except for BASH, which is always set by the calling BASH). 42208 if test "xNM" != xBASH; then 42209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42210 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42211 fi 42212 # Try to locate tool using the code snippet 42213 if test -n "$ac_tool_prefix"; then 42214 for ac_prog in nm gcc-nm 42215 do 42216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42219 $as_echo_n "checking for $ac_word... " >&6; } 42220 if ${ac_cv_prog_NM+:} false; then : 42221 $as_echo_n "(cached) " >&6 42222 else 42223 if test -n "$NM"; then 42224 ac_cv_prog_NM="$NM" # Let the user override the test. 42225 else 42226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42227 for as_dir in $PATH 42228 do 42229 IFS=$as_save_IFS 42230 test -z "$as_dir" && as_dir=. 42231 for ac_exec_ext in '' $ac_executable_extensions; do 42232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42233 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42235 break 2 42236 fi 42237 done 42238 done 42239 IFS=$as_save_IFS 42240 42241 fi 42242 fi 42243 NM=$ac_cv_prog_NM 42244 if test -n "$NM"; then 42245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42246 $as_echo "$NM" >&6; } 42247 else 42248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42249 $as_echo "no" >&6; } 42250 fi 42251 42252 42253 test -n "$NM" && break 42254 done 42255 fi 42256 if test -z "$NM"; then 42257 ac_ct_NM=$NM 42258 for ac_prog in nm gcc-nm 42259 do 42260 # Extract the first word of "$ac_prog", so it can be a program name with args. 42261 set dummy $ac_prog; ac_word=$2 42262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42263 $as_echo_n "checking for $ac_word... " >&6; } 42264 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42265 $as_echo_n "(cached) " >&6 42266 else 42267 if test -n "$ac_ct_NM"; then 42268 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42269 else 42270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42271 for as_dir in $PATH 42272 do 42273 IFS=$as_save_IFS 42274 test -z "$as_dir" && as_dir=. 42275 for ac_exec_ext in '' $ac_executable_extensions; do 42276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42277 ac_cv_prog_ac_ct_NM="$ac_prog" 42278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42279 break 2 42280 fi 42281 done 42282 done 42283 IFS=$as_save_IFS 42284 42285 fi 42286 fi 42287 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42288 if test -n "$ac_ct_NM"; then 42289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42290 $as_echo "$ac_ct_NM" >&6; } 42291 else 42292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42293 $as_echo "no" >&6; } 42294 fi 42295 42296 42297 test -n "$ac_ct_NM" && break 42298 done 42299 42300 if test "x$ac_ct_NM" = x; then 42301 NM="" 42302 else 42303 case $cross_compiling:$ac_tool_warned in 42304 yes:) 42305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42307 ac_tool_warned=yes ;; 42308 esac 42309 NM=$ac_ct_NM 42310 fi 42311 fi 42312 42313 else 42314 # If it succeeded, then it was overridden by the user. We will use it 42315 # for the tool. 42316 42317 # First remove it from the list of overridden variables, so we can test 42318 # for unknown variables in the end. 42319 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42320 42321 # Check if we try to supply an empty value 42322 if test "x$NM" = x; then 42323 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42324 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42326 $as_echo_n "checking for NM... " >&6; } 42327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42328 $as_echo "disabled" >&6; } 42329 else 42330 # Check if the provided tool contains a complete path. 42331 tool_specified="$NM" 42332 tool_basename="${tool_specified##*/}" 42333 if test "x$tool_basename" = "x$tool_specified"; then 42334 # A command without a complete path is provided, search $PATH. 42335 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42336 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42337 # Extract the first word of "$tool_basename", so it can be a program name with args. 42338 set dummy $tool_basename; ac_word=$2 42339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42340 $as_echo_n "checking for $ac_word... " >&6; } 42341 if ${ac_cv_path_NM+:} false; then : 42342 $as_echo_n "(cached) " >&6 42343 else 42344 case $NM in 42345 [\\/]* | ?:[\\/]*) 42346 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42347 ;; 42348 *) 42349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42350 for as_dir in $PATH 42351 do 42352 IFS=$as_save_IFS 42353 test -z "$as_dir" && as_dir=. 42354 for ac_exec_ext in '' $ac_executable_extensions; do 42355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42356 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42358 break 2 42359 fi 42360 done 42361 done 42362 IFS=$as_save_IFS 42363 42364 ;; 42365 esac 42366 fi 42367 NM=$ac_cv_path_NM 42368 if test -n "$NM"; then 42369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42370 $as_echo "$NM" >&6; } 42371 else 42372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42373 $as_echo "no" >&6; } 42374 fi 42375 42376 42377 if test "x$NM" = x; then 42378 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42379 fi 42380 else 42381 # Otherwise we believe it is a complete path. Use it as it is. 42382 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42383 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42385 $as_echo_n "checking for NM... " >&6; } 42386 if test ! -x "$tool_specified"; then 42387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42388 $as_echo "not found" >&6; } 42389 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42390 fi 42391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42392 $as_echo "$tool_specified" >&6; } 42393 fi 42394 fi 42395 fi 42396 42397 fi 42398 42399 42400 else 42401 42402 42403 # Publish this variable in the help. 42404 42405 42406 if [ -z "${NM+x}" ]; then 42407 # The variable is not set by user, try to locate tool using the code snippet 42408 if test -n "$ac_tool_prefix"; then 42409 for ac_prog in nm 42410 do 42411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42414 $as_echo_n "checking for $ac_word... " >&6; } 42415 if ${ac_cv_prog_NM+:} false; then : 42416 $as_echo_n "(cached) " >&6 42417 else 42418 if test -n "$NM"; then 42419 ac_cv_prog_NM="$NM" # Let the user override the test. 42420 else 42421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42422 for as_dir in $PATH 42423 do 42424 IFS=$as_save_IFS 42425 test -z "$as_dir" && as_dir=. 42426 for ac_exec_ext in '' $ac_executable_extensions; do 42427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42428 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42430 break 2 42431 fi 42432 done 42433 done 42434 IFS=$as_save_IFS 42435 42436 fi 42437 fi 42438 NM=$ac_cv_prog_NM 42439 if test -n "$NM"; then 42440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42441 $as_echo "$NM" >&6; } 42442 else 42443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42444 $as_echo "no" >&6; } 42445 fi 42446 42447 42448 test -n "$NM" && break 42449 done 42450 fi 42451 if test -z "$NM"; then 42452 ac_ct_NM=$NM 42453 for ac_prog in nm 42454 do 42455 # Extract the first word of "$ac_prog", so it can be a program name with args. 42456 set dummy $ac_prog; ac_word=$2 42457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42458 $as_echo_n "checking for $ac_word... " >&6; } 42459 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42460 $as_echo_n "(cached) " >&6 42461 else 42462 if test -n "$ac_ct_NM"; then 42463 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42464 else 42465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42466 for as_dir in $PATH 42467 do 42468 IFS=$as_save_IFS 42469 test -z "$as_dir" && as_dir=. 42470 for ac_exec_ext in '' $ac_executable_extensions; do 42471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42472 ac_cv_prog_ac_ct_NM="$ac_prog" 42473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42474 break 2 42475 fi 42476 done 42477 done 42478 IFS=$as_save_IFS 42479 42480 fi 42481 fi 42482 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42483 if test -n "$ac_ct_NM"; then 42484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42485 $as_echo "$ac_ct_NM" >&6; } 42486 else 42487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42488 $as_echo "no" >&6; } 42489 fi 42490 42491 42492 test -n "$ac_ct_NM" && break 42493 done 42494 42495 if test "x$ac_ct_NM" = x; then 42496 NM="" 42497 else 42498 case $cross_compiling:$ac_tool_warned in 42499 yes:) 42500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42502 ac_tool_warned=yes ;; 42503 esac 42504 NM=$ac_ct_NM 42505 fi 42506 fi 42507 42508 else 42509 # The variable is set, but is it from the command line or the environment? 42510 42511 # Try to remove the string !NM! from our list. 42512 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42513 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42514 # If it failed, the variable was not from the command line. Ignore it, 42515 # but warn the user (except for BASH, which is always set by the calling BASH). 42516 if test "xNM" != xBASH; then 42517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42518 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42519 fi 42520 # Try to locate tool using the code snippet 42521 if test -n "$ac_tool_prefix"; then 42522 for ac_prog in nm 42523 do 42524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42527 $as_echo_n "checking for $ac_word... " >&6; } 42528 if ${ac_cv_prog_NM+:} false; then : 42529 $as_echo_n "(cached) " >&6 42530 else 42531 if test -n "$NM"; then 42532 ac_cv_prog_NM="$NM" # Let the user override the test. 42533 else 42534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42535 for as_dir in $PATH 42536 do 42537 IFS=$as_save_IFS 42538 test -z "$as_dir" && as_dir=. 42539 for ac_exec_ext in '' $ac_executable_extensions; do 42540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42541 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42543 break 2 42544 fi 42545 done 42546 done 42547 IFS=$as_save_IFS 42548 42549 fi 42550 fi 42551 NM=$ac_cv_prog_NM 42552 if test -n "$NM"; then 42553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42554 $as_echo "$NM" >&6; } 42555 else 42556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42557 $as_echo "no" >&6; } 42558 fi 42559 42560 42561 test -n "$NM" && break 42562 done 42563 fi 42564 if test -z "$NM"; then 42565 ac_ct_NM=$NM 42566 for ac_prog in nm 42567 do 42568 # Extract the first word of "$ac_prog", so it can be a program name with args. 42569 set dummy $ac_prog; ac_word=$2 42570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42571 $as_echo_n "checking for $ac_word... " >&6; } 42572 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42573 $as_echo_n "(cached) " >&6 42574 else 42575 if test -n "$ac_ct_NM"; then 42576 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42577 else 42578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42579 for as_dir in $PATH 42580 do 42581 IFS=$as_save_IFS 42582 test -z "$as_dir" && as_dir=. 42583 for ac_exec_ext in '' $ac_executable_extensions; do 42584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42585 ac_cv_prog_ac_ct_NM="$ac_prog" 42586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42587 break 2 42588 fi 42589 done 42590 done 42591 IFS=$as_save_IFS 42592 42593 fi 42594 fi 42595 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42596 if test -n "$ac_ct_NM"; then 42597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42598 $as_echo "$ac_ct_NM" >&6; } 42599 else 42600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42601 $as_echo "no" >&6; } 42602 fi 42603 42604 42605 test -n "$ac_ct_NM" && break 42606 done 42607 42608 if test "x$ac_ct_NM" = x; then 42609 NM="" 42610 else 42611 case $cross_compiling:$ac_tool_warned in 42612 yes:) 42613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42615 ac_tool_warned=yes ;; 42616 esac 42617 NM=$ac_ct_NM 42618 fi 42619 fi 42620 42621 else 42622 # If it succeeded, then it was overridden by the user. We will use it 42623 # for the tool. 42624 42625 # First remove it from the list of overridden variables, so we can test 42626 # for unknown variables in the end. 42627 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42628 42629 # Check if we try to supply an empty value 42630 if test "x$NM" = x; then 42631 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42632 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42634 $as_echo_n "checking for NM... " >&6; } 42635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42636 $as_echo "disabled" >&6; } 42637 else 42638 # Check if the provided tool contains a complete path. 42639 tool_specified="$NM" 42640 tool_basename="${tool_specified##*/}" 42641 if test "x$tool_basename" = "x$tool_specified"; then 42642 # A command without a complete path is provided, search $PATH. 42643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42644 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42645 # Extract the first word of "$tool_basename", so it can be a program name with args. 42646 set dummy $tool_basename; ac_word=$2 42647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42648 $as_echo_n "checking for $ac_word... " >&6; } 42649 if ${ac_cv_path_NM+:} false; then : 42650 $as_echo_n "(cached) " >&6 42651 else 42652 case $NM in 42653 [\\/]* | ?:[\\/]*) 42654 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42655 ;; 42656 *) 42657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42658 for as_dir in $PATH 42659 do 42660 IFS=$as_save_IFS 42661 test -z "$as_dir" && as_dir=. 42662 for ac_exec_ext in '' $ac_executable_extensions; do 42663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42664 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42666 break 2 42667 fi 42668 done 42669 done 42670 IFS=$as_save_IFS 42671 42672 ;; 42673 esac 42674 fi 42675 NM=$ac_cv_path_NM 42676 if test -n "$NM"; then 42677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42678 $as_echo "$NM" >&6; } 42679 else 42680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42681 $as_echo "no" >&6; } 42682 fi 42683 42684 42685 if test "x$NM" = x; then 42686 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42687 fi 42688 else 42689 # Otherwise we believe it is a complete path. Use it as it is. 42690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42691 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42693 $as_echo_n "checking for NM... " >&6; } 42694 if test ! -x "$tool_specified"; then 42695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42696 $as_echo "not found" >&6; } 42697 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42698 fi 42699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42700 $as_echo "$tool_specified" >&6; } 42701 fi 42702 fi 42703 fi 42704 42705 fi 42706 42707 42708 fi 42709 42710 # Only process if variable expands to non-empty 42711 42712 if test "x$NM" != x; then 42713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42714 42715 # First separate the path from the arguments. This will split at the first 42716 # space. 42717 complete="$NM" 42718 path="${complete%% *}" 42719 tmp="$complete EOL" 42720 arguments="${tmp#* }" 42721 42722 # Input might be given as Windows format, start by converting to 42723 # unix format. 42724 new_path=`$CYGPATH -u "$path"` 42725 42726 # Now try to locate executable using which 42727 new_path=`$WHICH "$new_path" 2> /dev/null` 42728 # bat and cmd files are not always considered executable in cygwin causing which 42729 # to not find them 42730 if test "x$new_path" = x \ 42731 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42732 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42733 new_path=`$CYGPATH -u "$path"` 42734 fi 42735 if test "x$new_path" = x; then 42736 # Oops. Which didn't find the executable. 42737 # The splitting of arguments from the executable at a space might have been incorrect, 42738 # since paths with space are more likely in Windows. Give it another try with the whole 42739 # argument. 42740 path="$complete" 42741 arguments="EOL" 42742 new_path=`$CYGPATH -u "$path"` 42743 new_path=`$WHICH "$new_path" 2> /dev/null` 42744 # bat and cmd files are not always considered executable in cygwin causing which 42745 # to not find them 42746 if test "x$new_path" = x \ 42747 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42748 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42749 new_path=`$CYGPATH -u "$path"` 42750 fi 42751 if test "x$new_path" = x; then 42752 # It's still not found. Now this is an unrecoverable error. 42753 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42754 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42755 has_space=`$ECHO "$complete" | $GREP " "` 42756 if test "x$has_space" != x; then 42757 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42758 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42759 fi 42760 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42761 fi 42762 fi 42763 42764 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42765 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42766 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42767 # "foo.exe" is OK but "foo" is an error. 42768 # 42769 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42770 # It is also a way to make sure we got the proper file name for the real test later on. 42771 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42772 if test "x$test_shortpath" = x; then 42773 # Short path failed, file does not exist as specified. 42774 # Try adding .exe or .cmd 42775 if test -f "${new_path}.exe"; then 42776 input_to_shortpath="${new_path}.exe" 42777 elif test -f "${new_path}.cmd"; then 42778 input_to_shortpath="${new_path}.cmd" 42779 else 42780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 42781 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 42782 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42783 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42784 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42785 fi 42786 else 42787 input_to_shortpath="$new_path" 42788 fi 42789 42790 # Call helper function which possibly converts this using DOS-style short mode. 42791 # If so, the updated path is stored in $new_path. 42792 new_path="$input_to_shortpath" 42793 42794 input_path="$input_to_shortpath" 42795 # Check if we need to convert this using DOS-style short mode. If the path 42796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42797 # take no chances and rewrite it. 42798 # Note: m4 eats our [], so we need to use [ and ] instead. 42799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42800 if test "x$has_forbidden_chars" != x; then 42801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42802 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42803 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42804 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42805 # Going to short mode and back again did indeed matter. Since short mode is 42806 # case insensitive, let's make it lowercase to improve readability. 42807 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42808 # Now convert it back to Unix-style (cygpath) 42809 input_path=`$CYGPATH -u "$shortmode_path"` 42810 new_path="$input_path" 42811 fi 42812 fi 42813 42814 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42815 if test "x$test_cygdrive_prefix" = x; then 42816 # As a simple fix, exclude /usr/bin since it's not a real path. 42817 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42818 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42819 # a path prefixed by /cygdrive for fixpath to work. 42820 new_path="$CYGWIN_ROOT_PATH$input_path" 42821 fi 42822 fi 42823 42824 # remove trailing .exe if any 42825 new_path="${new_path/%.exe/}" 42826 42827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42828 42829 # First separate the path from the arguments. This will split at the first 42830 # space. 42831 complete="$NM" 42832 path="${complete%% *}" 42833 tmp="$complete EOL" 42834 arguments="${tmp#* }" 42835 42836 # Input might be given as Windows format, start by converting to 42837 # unix format. 42838 new_path="$path" 42839 42840 windows_path="$new_path" 42841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42842 unix_path=`$CYGPATH -u "$windows_path"` 42843 new_path="$unix_path" 42844 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42845 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42846 new_path="$unix_path" 42847 fi 42848 42849 42850 # Now try to locate executable using which 42851 new_path=`$WHICH "$new_path" 2> /dev/null` 42852 42853 if test "x$new_path" = x; then 42854 # Oops. Which didn't find the executable. 42855 # The splitting of arguments from the executable at a space might have been incorrect, 42856 # since paths with space are more likely in Windows. Give it another try with the whole 42857 # argument. 42858 path="$complete" 42859 arguments="EOL" 42860 new_path="$path" 42861 42862 windows_path="$new_path" 42863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42864 unix_path=`$CYGPATH -u "$windows_path"` 42865 new_path="$unix_path" 42866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42867 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42868 new_path="$unix_path" 42869 fi 42870 42871 42872 new_path=`$WHICH "$new_path" 2> /dev/null` 42873 # bat and cmd files are not always considered executable in MSYS causing which 42874 # to not find them 42875 if test "x$new_path" = x \ 42876 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42877 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42878 new_path="$path" 42879 42880 windows_path="$new_path" 42881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42882 unix_path=`$CYGPATH -u "$windows_path"` 42883 new_path="$unix_path" 42884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42886 new_path="$unix_path" 42887 fi 42888 42889 fi 42890 42891 if test "x$new_path" = x; then 42892 # It's still not found. Now this is an unrecoverable error. 42893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42894 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42895 has_space=`$ECHO "$complete" | $GREP " "` 42896 if test "x$has_space" != x; then 42897 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42898 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42899 fi 42900 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42901 fi 42902 fi 42903 42904 # Now new_path has a complete unix path to the binary 42905 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42906 # Keep paths in /bin as-is, but remove trailing .exe if any 42907 new_path="${new_path/%.exe/}" 42908 # Do not save /bin paths to all_fixpath_prefixes! 42909 else 42910 # Not in mixed or Windows style, start by that. 42911 new_path=`cmd //c echo $new_path` 42912 42913 input_path="$new_path" 42914 # Check if we need to convert this using DOS-style short mode. If the path 42915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42916 # take no chances and rewrite it. 42917 # Note: m4 eats our [], so we need to use [ and ] instead. 42918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42919 if test "x$has_forbidden_chars" != x; then 42920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42921 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42922 fi 42923 42924 # Output is in $new_path 42925 42926 windows_path="$new_path" 42927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42928 unix_path=`$CYGPATH -u "$windows_path"` 42929 new_path="$unix_path" 42930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42932 new_path="$unix_path" 42933 fi 42934 42935 # remove trailing .exe if any 42936 new_path="${new_path/%.exe/}" 42937 42938 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42939 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42940 fi 42941 42942 else 42943 # We're on a unix platform. Hooray! :) 42944 # First separate the path from the arguments. This will split at the first 42945 # space. 42946 complete="$NM" 42947 path="${complete%% *}" 42948 tmp="$complete EOL" 42949 arguments="${tmp#* }" 42950 42951 # Cannot rely on the command "which" here since it doesn't always work. 42952 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42953 if test -z "$is_absolute_path"; then 42954 # Path to executable is not absolute. Find it. 42955 IFS_save="$IFS" 42956 IFS=: 42957 for p in $PATH; do 42958 if test -f "$p/$path" && test -x "$p/$path"; then 42959 new_path="$p/$path" 42960 break 42961 fi 42962 done 42963 IFS="$IFS_save" 42964 else 42965 # This is an absolute path, we can use it without further modifications. 42966 new_path="$path" 42967 fi 42968 42969 if test "x$new_path" = x; then 42970 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42971 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42972 has_space=`$ECHO "$complete" | $GREP " "` 42973 if test "x$has_space" != x; then 42974 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42975 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42976 fi 42977 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42978 fi 42979 fi 42980 42981 # Now join together the path and the arguments once again 42982 if test "x$arguments" != xEOL; then 42983 new_complete="$new_path ${arguments% *}" 42984 else 42985 new_complete="$new_path" 42986 fi 42987 42988 if test "x$complete" != "x$new_complete"; then 42989 NM="$new_complete" 42990 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42991 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42992 fi 42993 fi 42994 42995 GNM="$NM" 42996 42997 fi 42998 42999 # objcopy is used for moving debug symbols to separate files when 43000 # full debug symbols are enabled. 43001 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 43002 43003 43004 # Publish this variable in the help. 43005 43006 43007 if [ -z "${OBJCOPY+x}" ]; then 43008 # The variable is not set by user, try to locate tool using the code snippet 43009 if test -n "$ac_tool_prefix"; then 43010 for ac_prog in gobjcopy objcopy 43011 do 43012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43015 $as_echo_n "checking for $ac_word... " >&6; } 43016 if ${ac_cv_prog_OBJCOPY+:} false; then : 43017 $as_echo_n "(cached) " >&6 43018 else 43019 if test -n "$OBJCOPY"; then 43020 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 43021 else 43022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43023 for as_dir in $PATH 43024 do 43025 IFS=$as_save_IFS 43026 test -z "$as_dir" && as_dir=. 43027 for ac_exec_ext in '' $ac_executable_extensions; do 43028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43029 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 43030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43031 break 2 43032 fi 43033 done 43034 done 43035 IFS=$as_save_IFS 43036 43037 fi 43038 fi 43039 OBJCOPY=$ac_cv_prog_OBJCOPY 43040 if test -n "$OBJCOPY"; then 43041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43042 $as_echo "$OBJCOPY" >&6; } 43043 else 43044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43045 $as_echo "no" >&6; } 43046 fi 43047 43048 43049 test -n "$OBJCOPY" && break 43050 done 43051 fi 43052 if test -z "$OBJCOPY"; then 43053 ac_ct_OBJCOPY=$OBJCOPY 43054 for ac_prog in gobjcopy objcopy 43055 do 43056 # Extract the first word of "$ac_prog", so it can be a program name with args. 43057 set dummy $ac_prog; ac_word=$2 43058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43059 $as_echo_n "checking for $ac_word... " >&6; } 43060 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 43061 $as_echo_n "(cached) " >&6 43062 else 43063 if test -n "$ac_ct_OBJCOPY"; then 43064 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 43065 else 43066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43067 for as_dir in $PATH 43068 do 43069 IFS=$as_save_IFS 43070 test -z "$as_dir" && as_dir=. 43071 for ac_exec_ext in '' $ac_executable_extensions; do 43072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43073 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 43074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43075 break 2 43076 fi 43077 done 43078 done 43079 IFS=$as_save_IFS 43080 43081 fi 43082 fi 43083 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 43084 if test -n "$ac_ct_OBJCOPY"; then 43085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 43086 $as_echo "$ac_ct_OBJCOPY" >&6; } 43087 else 43088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43089 $as_echo "no" >&6; } 43090 fi 43091 43092 43093 test -n "$ac_ct_OBJCOPY" && break 43094 done 43095 43096 if test "x$ac_ct_OBJCOPY" = x; then 43097 OBJCOPY="" 43098 else 43099 case $cross_compiling:$ac_tool_warned in 43100 yes:) 43101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43103 ac_tool_warned=yes ;; 43104 esac 43105 OBJCOPY=$ac_ct_OBJCOPY 43106 fi 43107 fi 43108 43109 else 43110 # The variable is set, but is it from the command line or the environment? 43111 43112 # Try to remove the string !OBJCOPY! from our list. 43113 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 43114 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43115 # If it failed, the variable was not from the command line. Ignore it, 43116 # but warn the user (except for BASH, which is always set by the calling BASH). 43117 if test "xOBJCOPY" != xBASH; then 43118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 43119 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 43120 fi 43121 # Try to locate tool using the code snippet 43122 if test -n "$ac_tool_prefix"; then 43123 for ac_prog in gobjcopy objcopy 43124 do 43125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43128 $as_echo_n "checking for $ac_word... " >&6; } 43129 if ${ac_cv_prog_OBJCOPY+:} false; then : 43130 $as_echo_n "(cached) " >&6 43131 else 43132 if test -n "$OBJCOPY"; then 43133 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 43134 else 43135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43136 for as_dir in $PATH 43137 do 43138 IFS=$as_save_IFS 43139 test -z "$as_dir" && as_dir=. 43140 for ac_exec_ext in '' $ac_executable_extensions; do 43141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43142 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 43143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43144 break 2 43145 fi 43146 done 43147 done 43148 IFS=$as_save_IFS 43149 43150 fi 43151 fi 43152 OBJCOPY=$ac_cv_prog_OBJCOPY 43153 if test -n "$OBJCOPY"; then 43154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43155 $as_echo "$OBJCOPY" >&6; } 43156 else 43157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43158 $as_echo "no" >&6; } 43159 fi 43160 43161 43162 test -n "$OBJCOPY" && break 43163 done 43164 fi 43165 if test -z "$OBJCOPY"; then 43166 ac_ct_OBJCOPY=$OBJCOPY 43167 for ac_prog in gobjcopy objcopy 43168 do 43169 # Extract the first word of "$ac_prog", so it can be a program name with args. 43170 set dummy $ac_prog; ac_word=$2 43171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43172 $as_echo_n "checking for $ac_word... " >&6; } 43173 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 43174 $as_echo_n "(cached) " >&6 43175 else 43176 if test -n "$ac_ct_OBJCOPY"; then 43177 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 43178 else 43179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43180 for as_dir in $PATH 43181 do 43182 IFS=$as_save_IFS 43183 test -z "$as_dir" && as_dir=. 43184 for ac_exec_ext in '' $ac_executable_extensions; do 43185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43186 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 43187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43188 break 2 43189 fi 43190 done 43191 done 43192 IFS=$as_save_IFS 43193 43194 fi 43195 fi 43196 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 43197 if test -n "$ac_ct_OBJCOPY"; then 43198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 43199 $as_echo "$ac_ct_OBJCOPY" >&6; } 43200 else 43201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43202 $as_echo "no" >&6; } 43203 fi 43204 43205 43206 test -n "$ac_ct_OBJCOPY" && break 43207 done 43208 43209 if test "x$ac_ct_OBJCOPY" = x; then 43210 OBJCOPY="" 43211 else 43212 case $cross_compiling:$ac_tool_warned in 43213 yes:) 43214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43216 ac_tool_warned=yes ;; 43217 esac 43218 OBJCOPY=$ac_ct_OBJCOPY 43219 fi 43220 fi 43221 43222 else 43223 # If it succeeded, then it was overridden by the user. We will use it 43224 # for the tool. 43225 43226 # First remove it from the list of overridden variables, so we can test 43227 # for unknown variables in the end. 43228 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43229 43230 # Check if we try to supply an empty value 43231 if test "x$OBJCOPY" = x; then 43232 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 43233 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 43234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 43235 $as_echo_n "checking for OBJCOPY... " >&6; } 43236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43237 $as_echo "disabled" >&6; } 43238 else 43239 # Check if the provided tool contains a complete path. 43240 tool_specified="$OBJCOPY" 43241 tool_basename="${tool_specified##*/}" 43242 if test "x$tool_basename" = "x$tool_specified"; then 43243 # A command without a complete path is provided, search $PATH. 43244 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 43245 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 43246 # Extract the first word of "$tool_basename", so it can be a program name with args. 43247 set dummy $tool_basename; ac_word=$2 43248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43249 $as_echo_n "checking for $ac_word... " >&6; } 43250 if ${ac_cv_path_OBJCOPY+:} false; then : 43251 $as_echo_n "(cached) " >&6 43252 else 43253 case $OBJCOPY in 43254 [\\/]* | ?:[\\/]*) 43255 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 43256 ;; 43257 *) 43258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43259 for as_dir in $PATH 43260 do 43261 IFS=$as_save_IFS 43262 test -z "$as_dir" && as_dir=. 43263 for ac_exec_ext in '' $ac_executable_extensions; do 43264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43265 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 43266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43267 break 2 43268 fi 43269 done 43270 done 43271 IFS=$as_save_IFS 43272 43273 ;; 43274 esac 43275 fi 43276 OBJCOPY=$ac_cv_path_OBJCOPY 43277 if test -n "$OBJCOPY"; then 43278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43279 $as_echo "$OBJCOPY" >&6; } 43280 else 43281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43282 $as_echo "no" >&6; } 43283 fi 43284 43285 43286 if test "x$OBJCOPY" = x; then 43287 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43288 fi 43289 else 43290 # Otherwise we believe it is a complete path. Use it as it is. 43291 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 43292 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 43293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 43294 $as_echo_n "checking for OBJCOPY... " >&6; } 43295 if test ! -x "$tool_specified"; then 43296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43297 $as_echo "not found" >&6; } 43298 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 43299 fi 43300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43301 $as_echo "$tool_specified" >&6; } 43302 fi 43303 fi 43304 fi 43305 43306 fi 43307 43308 43309 # Only call fixup if objcopy was found. 43310 if test -n "$OBJCOPY"; then 43311 43312 # Only process if variable expands to non-empty 43313 43314 if test "x$OBJCOPY" != x; then 43315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43316 43317 # First separate the path from the arguments. This will split at the first 43318 # space. 43319 complete="$OBJCOPY" 43320 path="${complete%% *}" 43321 tmp="$complete EOL" 43322 arguments="${tmp#* }" 43323 43324 # Input might be given as Windows format, start by converting to 43325 # unix format. 43326 new_path=`$CYGPATH -u "$path"` 43327 43328 # Now try to locate executable using which 43329 new_path=`$WHICH "$new_path" 2> /dev/null` 43330 # bat and cmd files are not always considered executable in cygwin causing which 43331 # to not find them 43332 if test "x$new_path" = x \ 43333 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43334 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43335 new_path=`$CYGPATH -u "$path"` 43336 fi 43337 if test "x$new_path" = x; then 43338 # Oops. Which didn't find the executable. 43339 # The splitting of arguments from the executable at a space might have been incorrect, 43340 # since paths with space are more likely in Windows. Give it another try with the whole 43341 # argument. 43342 path="$complete" 43343 arguments="EOL" 43344 new_path=`$CYGPATH -u "$path"` 43345 new_path=`$WHICH "$new_path" 2> /dev/null` 43346 # bat and cmd files are not always considered executable in cygwin causing which 43347 # to not find them 43348 if test "x$new_path" = x \ 43349 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43350 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43351 new_path=`$CYGPATH -u "$path"` 43352 fi 43353 if test "x$new_path" = x; then 43354 # It's still not found. Now this is an unrecoverable error. 43355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43356 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43357 has_space=`$ECHO "$complete" | $GREP " "` 43358 if test "x$has_space" != x; then 43359 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43360 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43361 fi 43362 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43363 fi 43364 fi 43365 43366 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43367 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43368 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43369 # "foo.exe" is OK but "foo" is an error. 43370 # 43371 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43372 # It is also a way to make sure we got the proper file name for the real test later on. 43373 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43374 if test "x$test_shortpath" = x; then 43375 # Short path failed, file does not exist as specified. 43376 # Try adding .exe or .cmd 43377 if test -f "${new_path}.exe"; then 43378 input_to_shortpath="${new_path}.exe" 43379 elif test -f "${new_path}.cmd"; then 43380 input_to_shortpath="${new_path}.cmd" 43381 else 43382 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 43383 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 43384 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43385 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43386 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43387 fi 43388 else 43389 input_to_shortpath="$new_path" 43390 fi 43391 43392 # Call helper function which possibly converts this using DOS-style short mode. 43393 # If so, the updated path is stored in $new_path. 43394 new_path="$input_to_shortpath" 43395 43396 input_path="$input_to_shortpath" 43397 # Check if we need to convert this using DOS-style short mode. If the path 43398 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43399 # take no chances and rewrite it. 43400 # Note: m4 eats our [], so we need to use [ and ] instead. 43401 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43402 if test "x$has_forbidden_chars" != x; then 43403 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43404 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43405 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43406 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43407 # Going to short mode and back again did indeed matter. Since short mode is 43408 # case insensitive, let's make it lowercase to improve readability. 43409 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43410 # Now convert it back to Unix-style (cygpath) 43411 input_path=`$CYGPATH -u "$shortmode_path"` 43412 new_path="$input_path" 43413 fi 43414 fi 43415 43416 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43417 if test "x$test_cygdrive_prefix" = x; then 43418 # As a simple fix, exclude /usr/bin since it's not a real path. 43419 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43420 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43421 # a path prefixed by /cygdrive for fixpath to work. 43422 new_path="$CYGWIN_ROOT_PATH$input_path" 43423 fi 43424 fi 43425 43426 # remove trailing .exe if any 43427 new_path="${new_path/%.exe/}" 43428 43429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43430 43431 # First separate the path from the arguments. This will split at the first 43432 # space. 43433 complete="$OBJCOPY" 43434 path="${complete%% *}" 43435 tmp="$complete EOL" 43436 arguments="${tmp#* }" 43437 43438 # Input might be given as Windows format, start by converting to 43439 # unix format. 43440 new_path="$path" 43441 43442 windows_path="$new_path" 43443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43444 unix_path=`$CYGPATH -u "$windows_path"` 43445 new_path="$unix_path" 43446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43448 new_path="$unix_path" 43449 fi 43450 43451 43452 # Now try to locate executable using which 43453 new_path=`$WHICH "$new_path" 2> /dev/null` 43454 43455 if test "x$new_path" = x; then 43456 # Oops. Which didn't find the executable. 43457 # The splitting of arguments from the executable at a space might have been incorrect, 43458 # since paths with space are more likely in Windows. Give it another try with the whole 43459 # argument. 43460 path="$complete" 43461 arguments="EOL" 43462 new_path="$path" 43463 43464 windows_path="$new_path" 43465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43466 unix_path=`$CYGPATH -u "$windows_path"` 43467 new_path="$unix_path" 43468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43469 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43470 new_path="$unix_path" 43471 fi 43472 43473 43474 new_path=`$WHICH "$new_path" 2> /dev/null` 43475 # bat and cmd files are not always considered executable in MSYS causing which 43476 # to not find them 43477 if test "x$new_path" = x \ 43478 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43479 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43480 new_path="$path" 43481 43482 windows_path="$new_path" 43483 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43484 unix_path=`$CYGPATH -u "$windows_path"` 43485 new_path="$unix_path" 43486 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43487 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43488 new_path="$unix_path" 43489 fi 43490 43491 fi 43492 43493 if test "x$new_path" = x; then 43494 # It's still not found. Now this is an unrecoverable error. 43495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43496 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43497 has_space=`$ECHO "$complete" | $GREP " "` 43498 if test "x$has_space" != x; then 43499 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43500 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43501 fi 43502 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43503 fi 43504 fi 43505 43506 # Now new_path has a complete unix path to the binary 43507 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43508 # Keep paths in /bin as-is, but remove trailing .exe if any 43509 new_path="${new_path/%.exe/}" 43510 # Do not save /bin paths to all_fixpath_prefixes! 43511 else 43512 # Not in mixed or Windows style, start by that. 43513 new_path=`cmd //c echo $new_path` 43514 43515 input_path="$new_path" 43516 # Check if we need to convert this using DOS-style short mode. If the path 43517 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43518 # take no chances and rewrite it. 43519 # Note: m4 eats our [], so we need to use [ and ] instead. 43520 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43521 if test "x$has_forbidden_chars" != x; then 43522 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43523 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43524 fi 43525 43526 # Output is in $new_path 43527 43528 windows_path="$new_path" 43529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43530 unix_path=`$CYGPATH -u "$windows_path"` 43531 new_path="$unix_path" 43532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43534 new_path="$unix_path" 43535 fi 43536 43537 # remove trailing .exe if any 43538 new_path="${new_path/%.exe/}" 43539 43540 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43541 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43542 fi 43543 43544 else 43545 # We're on a unix platform. Hooray! :) 43546 # First separate the path from the arguments. This will split at the first 43547 # space. 43548 complete="$OBJCOPY" 43549 path="${complete%% *}" 43550 tmp="$complete EOL" 43551 arguments="${tmp#* }" 43552 43553 # Cannot rely on the command "which" here since it doesn't always work. 43554 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43555 if test -z "$is_absolute_path"; then 43556 # Path to executable is not absolute. Find it. 43557 IFS_save="$IFS" 43558 IFS=: 43559 for p in $PATH; do 43560 if test -f "$p/$path" && test -x "$p/$path"; then 43561 new_path="$p/$path" 43562 break 43563 fi 43564 done 43565 IFS="$IFS_save" 43566 else 43567 # This is an absolute path, we can use it without further modifications. 43568 new_path="$path" 43569 fi 43570 43571 if test "x$new_path" = x; then 43572 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43573 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43574 has_space=`$ECHO "$complete" | $GREP " "` 43575 if test "x$has_space" != x; then 43576 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43577 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43578 fi 43579 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43580 fi 43581 fi 43582 43583 # Now join together the path and the arguments once again 43584 if test "x$arguments" != xEOL; then 43585 new_complete="$new_path ${arguments% *}" 43586 else 43587 new_complete="$new_path" 43588 fi 43589 43590 if test "x$complete" != "x$new_complete"; then 43591 OBJCOPY="$new_complete" 43592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 43593 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 43594 fi 43595 fi 43596 43597 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 43598 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 43599 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 43600 # - version number is last blank separate word on first line 43601 # - version number formats that have been seen: 43602 # - <major>.<minor> 43603 # - <major>.<minor>.<micro> 43604 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 43605 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 43606 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 43607 -e 's/.* //' \ 43608 -e '/^[01]\./b bad' \ 43609 -e '/^2\./{' \ 43610 -e ' s/^2\.//' \ 43611 -e ' /^[0-9]$/b bad' \ 43612 -e ' /^[0-9]\./b bad' \ 43613 -e ' /^1[0-9]$/b bad' \ 43614 -e ' /^1[0-9]\./b bad' \ 43615 -e ' /^20\./b bad' \ 43616 -e ' /^21\.0$/b bad' \ 43617 -e ' /^21\.0\./b bad' \ 43618 -e '}' \ 43619 -e ':good' \ 43620 -e 's/.*/VALID_VERSION/p' \ 43621 -e 'q' \ 43622 -e ':bad' \ 43623 -e 's/.*/BAD_VERSION/p' \ 43624 -e 'q'` 43625 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 43626 OBJCOPY= 43627 { $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 43628 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 43629 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 43630 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 43631 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 43632 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 43633 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 43634 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 43635 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 43636 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 43637 fi 43638 fi 43639 fi 43640 fi 43641 43642 43643 43644 # Publish this variable in the help. 43645 43646 43647 if [ -z "${OBJDUMP+x}" ]; then 43648 # The variable is not set by user, try to locate tool using the code snippet 43649 if test -n "$ac_tool_prefix"; then 43650 for ac_prog in gobjdump objdump 43651 do 43652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43655 $as_echo_n "checking for $ac_word... " >&6; } 43656 if ${ac_cv_prog_OBJDUMP+:} false; then : 43657 $as_echo_n "(cached) " >&6 43658 else 43659 if test -n "$OBJDUMP"; then 43660 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43661 else 43662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43663 for as_dir in $PATH 43664 do 43665 IFS=$as_save_IFS 43666 test -z "$as_dir" && as_dir=. 43667 for ac_exec_ext in '' $ac_executable_extensions; do 43668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43669 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43671 break 2 43672 fi 43673 done 43674 done 43675 IFS=$as_save_IFS 43676 43677 fi 43678 fi 43679 OBJDUMP=$ac_cv_prog_OBJDUMP 43680 if test -n "$OBJDUMP"; then 43681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43682 $as_echo "$OBJDUMP" >&6; } 43683 else 43684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43685 $as_echo "no" >&6; } 43686 fi 43687 43688 43689 test -n "$OBJDUMP" && break 43690 done 43691 fi 43692 if test -z "$OBJDUMP"; then 43693 ac_ct_OBJDUMP=$OBJDUMP 43694 for ac_prog in gobjdump objdump 43695 do 43696 # Extract the first word of "$ac_prog", so it can be a program name with args. 43697 set dummy $ac_prog; ac_word=$2 43698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43699 $as_echo_n "checking for $ac_word... " >&6; } 43700 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43701 $as_echo_n "(cached) " >&6 43702 else 43703 if test -n "$ac_ct_OBJDUMP"; then 43704 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43705 else 43706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43707 for as_dir in $PATH 43708 do 43709 IFS=$as_save_IFS 43710 test -z "$as_dir" && as_dir=. 43711 for ac_exec_ext in '' $ac_executable_extensions; do 43712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43713 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43715 break 2 43716 fi 43717 done 43718 done 43719 IFS=$as_save_IFS 43720 43721 fi 43722 fi 43723 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43724 if test -n "$ac_ct_OBJDUMP"; then 43725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43726 $as_echo "$ac_ct_OBJDUMP" >&6; } 43727 else 43728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43729 $as_echo "no" >&6; } 43730 fi 43731 43732 43733 test -n "$ac_ct_OBJDUMP" && break 43734 done 43735 43736 if test "x$ac_ct_OBJDUMP" = x; then 43737 OBJDUMP="" 43738 else 43739 case $cross_compiling:$ac_tool_warned in 43740 yes:) 43741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43743 ac_tool_warned=yes ;; 43744 esac 43745 OBJDUMP=$ac_ct_OBJDUMP 43746 fi 43747 fi 43748 43749 else 43750 # The variable is set, but is it from the command line or the environment? 43751 43752 # Try to remove the string !OBJDUMP! from our list. 43753 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 43754 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43755 # If it failed, the variable was not from the command line. Ignore it, 43756 # but warn the user (except for BASH, which is always set by the calling BASH). 43757 if test "xOBJDUMP" != xBASH; then 43758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 43759 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 43760 fi 43761 # Try to locate tool using the code snippet 43762 if test -n "$ac_tool_prefix"; then 43763 for ac_prog in gobjdump objdump 43764 do 43765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43768 $as_echo_n "checking for $ac_word... " >&6; } 43769 if ${ac_cv_prog_OBJDUMP+:} false; then : 43770 $as_echo_n "(cached) " >&6 43771 else 43772 if test -n "$OBJDUMP"; then 43773 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43774 else 43775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43776 for as_dir in $PATH 43777 do 43778 IFS=$as_save_IFS 43779 test -z "$as_dir" && as_dir=. 43780 for ac_exec_ext in '' $ac_executable_extensions; do 43781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43782 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43784 break 2 43785 fi 43786 done 43787 done 43788 IFS=$as_save_IFS 43789 43790 fi 43791 fi 43792 OBJDUMP=$ac_cv_prog_OBJDUMP 43793 if test -n "$OBJDUMP"; then 43794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43795 $as_echo "$OBJDUMP" >&6; } 43796 else 43797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43798 $as_echo "no" >&6; } 43799 fi 43800 43801 43802 test -n "$OBJDUMP" && break 43803 done 43804 fi 43805 if test -z "$OBJDUMP"; then 43806 ac_ct_OBJDUMP=$OBJDUMP 43807 for ac_prog in gobjdump objdump 43808 do 43809 # Extract the first word of "$ac_prog", so it can be a program name with args. 43810 set dummy $ac_prog; ac_word=$2 43811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43812 $as_echo_n "checking for $ac_word... " >&6; } 43813 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43814 $as_echo_n "(cached) " >&6 43815 else 43816 if test -n "$ac_ct_OBJDUMP"; then 43817 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43818 else 43819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43820 for as_dir in $PATH 43821 do 43822 IFS=$as_save_IFS 43823 test -z "$as_dir" && as_dir=. 43824 for ac_exec_ext in '' $ac_executable_extensions; do 43825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43826 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43828 break 2 43829 fi 43830 done 43831 done 43832 IFS=$as_save_IFS 43833 43834 fi 43835 fi 43836 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43837 if test -n "$ac_ct_OBJDUMP"; then 43838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43839 $as_echo "$ac_ct_OBJDUMP" >&6; } 43840 else 43841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43842 $as_echo "no" >&6; } 43843 fi 43844 43845 43846 test -n "$ac_ct_OBJDUMP" && break 43847 done 43848 43849 if test "x$ac_ct_OBJDUMP" = x; then 43850 OBJDUMP="" 43851 else 43852 case $cross_compiling:$ac_tool_warned in 43853 yes:) 43854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43856 ac_tool_warned=yes ;; 43857 esac 43858 OBJDUMP=$ac_ct_OBJDUMP 43859 fi 43860 fi 43861 43862 else 43863 # If it succeeded, then it was overridden by the user. We will use it 43864 # for the tool. 43865 43866 # First remove it from the list of overridden variables, so we can test 43867 # for unknown variables in the end. 43868 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43869 43870 # Check if we try to supply an empty value 43871 if test "x$OBJDUMP" = x; then 43872 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 43873 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 43874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43875 $as_echo_n "checking for OBJDUMP... " >&6; } 43876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43877 $as_echo "disabled" >&6; } 43878 else 43879 # Check if the provided tool contains a complete path. 43880 tool_specified="$OBJDUMP" 43881 tool_basename="${tool_specified##*/}" 43882 if test "x$tool_basename" = "x$tool_specified"; then 43883 # A command without a complete path is provided, search $PATH. 43884 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 43885 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 43886 # Extract the first word of "$tool_basename", so it can be a program name with args. 43887 set dummy $tool_basename; ac_word=$2 43888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43889 $as_echo_n "checking for $ac_word... " >&6; } 43890 if ${ac_cv_path_OBJDUMP+:} false; then : 43891 $as_echo_n "(cached) " >&6 43892 else 43893 case $OBJDUMP in 43894 [\\/]* | ?:[\\/]*) 43895 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 43896 ;; 43897 *) 43898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43899 for as_dir in $PATH 43900 do 43901 IFS=$as_save_IFS 43902 test -z "$as_dir" && as_dir=. 43903 for ac_exec_ext in '' $ac_executable_extensions; do 43904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43905 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 43906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43907 break 2 43908 fi 43909 done 43910 done 43911 IFS=$as_save_IFS 43912 43913 ;; 43914 esac 43915 fi 43916 OBJDUMP=$ac_cv_path_OBJDUMP 43917 if test -n "$OBJDUMP"; then 43918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43919 $as_echo "$OBJDUMP" >&6; } 43920 else 43921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43922 $as_echo "no" >&6; } 43923 fi 43924 43925 43926 if test "x$OBJDUMP" = x; then 43927 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43928 fi 43929 else 43930 # Otherwise we believe it is a complete path. Use it as it is. 43931 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 43932 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 43933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43934 $as_echo_n "checking for OBJDUMP... " >&6; } 43935 if test ! -x "$tool_specified"; then 43936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43937 $as_echo "not found" >&6; } 43938 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 43939 fi 43940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43941 $as_echo "$tool_specified" >&6; } 43942 fi 43943 fi 43944 fi 43945 43946 fi 43947 43948 43949 if test "x$OBJDUMP" != x; then 43950 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 43951 # bails if argument is missing. 43952 43953 # Only process if variable expands to non-empty 43954 43955 if test "x$OBJDUMP" != x; then 43956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43957 43958 # First separate the path from the arguments. This will split at the first 43959 # space. 43960 complete="$OBJDUMP" 43961 path="${complete%% *}" 43962 tmp="$complete EOL" 43963 arguments="${tmp#* }" 43964 43965 # Input might be given as Windows format, start by converting to 43966 # unix format. 43967 new_path=`$CYGPATH -u "$path"` 43968 43969 # Now try to locate executable using which 43970 new_path=`$WHICH "$new_path" 2> /dev/null` 43971 # bat and cmd files are not always considered executable in cygwin causing which 43972 # to not find them 43973 if test "x$new_path" = x \ 43974 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43975 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43976 new_path=`$CYGPATH -u "$path"` 43977 fi 43978 if test "x$new_path" = x; then 43979 # Oops. Which didn't find the executable. 43980 # The splitting of arguments from the executable at a space might have been incorrect, 43981 # since paths with space are more likely in Windows. Give it another try with the whole 43982 # argument. 43983 path="$complete" 43984 arguments="EOL" 43985 new_path=`$CYGPATH -u "$path"` 43986 new_path=`$WHICH "$new_path" 2> /dev/null` 43987 # bat and cmd files are not always considered executable in cygwin causing which 43988 # to not find them 43989 if test "x$new_path" = x \ 43990 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43991 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43992 new_path=`$CYGPATH -u "$path"` 43993 fi 43994 if test "x$new_path" = x; then 43995 # It's still not found. Now this is an unrecoverable error. 43996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43997 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43998 has_space=`$ECHO "$complete" | $GREP " "` 43999 if test "x$has_space" != x; then 44000 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44001 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44002 fi 44003 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44004 fi 44005 fi 44006 44007 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44008 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44009 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44010 # "foo.exe" is OK but "foo" is an error. 44011 # 44012 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44013 # It is also a way to make sure we got the proper file name for the real test later on. 44014 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44015 if test "x$test_shortpath" = x; then 44016 # Short path failed, file does not exist as specified. 44017 # Try adding .exe or .cmd 44018 if test -f "${new_path}.exe"; then 44019 input_to_shortpath="${new_path}.exe" 44020 elif test -f "${new_path}.cmd"; then 44021 input_to_shortpath="${new_path}.cmd" 44022 else 44023 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 44024 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 44025 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44026 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44027 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44028 fi 44029 else 44030 input_to_shortpath="$new_path" 44031 fi 44032 44033 # Call helper function which possibly converts this using DOS-style short mode. 44034 # If so, the updated path is stored in $new_path. 44035 new_path="$input_to_shortpath" 44036 44037 input_path="$input_to_shortpath" 44038 # Check if we need to convert this using DOS-style short mode. If the path 44039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44040 # take no chances and rewrite it. 44041 # Note: m4 eats our [], so we need to use [ and ] instead. 44042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44043 if test "x$has_forbidden_chars" != x; then 44044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44045 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44046 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44047 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44048 # Going to short mode and back again did indeed matter. Since short mode is 44049 # case insensitive, let's make it lowercase to improve readability. 44050 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44051 # Now convert it back to Unix-style (cygpath) 44052 input_path=`$CYGPATH -u "$shortmode_path"` 44053 new_path="$input_path" 44054 fi 44055 fi 44056 44057 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44058 if test "x$test_cygdrive_prefix" = x; then 44059 # As a simple fix, exclude /usr/bin since it's not a real path. 44060 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44061 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44062 # a path prefixed by /cygdrive for fixpath to work. 44063 new_path="$CYGWIN_ROOT_PATH$input_path" 44064 fi 44065 fi 44066 44067 # remove trailing .exe if any 44068 new_path="${new_path/%.exe/}" 44069 44070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44071 44072 # First separate the path from the arguments. This will split at the first 44073 # space. 44074 complete="$OBJDUMP" 44075 path="${complete%% *}" 44076 tmp="$complete EOL" 44077 arguments="${tmp#* }" 44078 44079 # Input might be given as Windows format, start by converting to 44080 # unix format. 44081 new_path="$path" 44082 44083 windows_path="$new_path" 44084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44085 unix_path=`$CYGPATH -u "$windows_path"` 44086 new_path="$unix_path" 44087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44089 new_path="$unix_path" 44090 fi 44091 44092 44093 # Now try to locate executable using which 44094 new_path=`$WHICH "$new_path" 2> /dev/null` 44095 44096 if test "x$new_path" = x; then 44097 # Oops. Which didn't find the executable. 44098 # The splitting of arguments from the executable at a space might have been incorrect, 44099 # since paths with space are more likely in Windows. Give it another try with the whole 44100 # argument. 44101 path="$complete" 44102 arguments="EOL" 44103 new_path="$path" 44104 44105 windows_path="$new_path" 44106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44107 unix_path=`$CYGPATH -u "$windows_path"` 44108 new_path="$unix_path" 44109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44111 new_path="$unix_path" 44112 fi 44113 44114 44115 new_path=`$WHICH "$new_path" 2> /dev/null` 44116 # bat and cmd files are not always considered executable in MSYS causing which 44117 # to not find them 44118 if test "x$new_path" = x \ 44119 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44120 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44121 new_path="$path" 44122 44123 windows_path="$new_path" 44124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44125 unix_path=`$CYGPATH -u "$windows_path"` 44126 new_path="$unix_path" 44127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44129 new_path="$unix_path" 44130 fi 44131 44132 fi 44133 44134 if test "x$new_path" = x; then 44135 # It's still not found. Now this is an unrecoverable error. 44136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44137 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44138 has_space=`$ECHO "$complete" | $GREP " "` 44139 if test "x$has_space" != x; then 44140 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44141 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44142 fi 44143 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44144 fi 44145 fi 44146 44147 # Now new_path has a complete unix path to the binary 44148 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44149 # Keep paths in /bin as-is, but remove trailing .exe if any 44150 new_path="${new_path/%.exe/}" 44151 # Do not save /bin paths to all_fixpath_prefixes! 44152 else 44153 # Not in mixed or Windows style, start by that. 44154 new_path=`cmd //c echo $new_path` 44155 44156 input_path="$new_path" 44157 # Check if we need to convert this using DOS-style short mode. If the path 44158 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44159 # take no chances and rewrite it. 44160 # Note: m4 eats our [], so we need to use [ and ] instead. 44161 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44162 if test "x$has_forbidden_chars" != x; then 44163 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44164 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44165 fi 44166 44167 # Output is in $new_path 44168 44169 windows_path="$new_path" 44170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44171 unix_path=`$CYGPATH -u "$windows_path"` 44172 new_path="$unix_path" 44173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44175 new_path="$unix_path" 44176 fi 44177 44178 # remove trailing .exe if any 44179 new_path="${new_path/%.exe/}" 44180 44181 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44182 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44183 fi 44184 44185 else 44186 # We're on a unix platform. Hooray! :) 44187 # First separate the path from the arguments. This will split at the first 44188 # space. 44189 complete="$OBJDUMP" 44190 path="${complete%% *}" 44191 tmp="$complete EOL" 44192 arguments="${tmp#* }" 44193 44194 # Cannot rely on the command "which" here since it doesn't always work. 44195 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44196 if test -z "$is_absolute_path"; then 44197 # Path to executable is not absolute. Find it. 44198 IFS_save="$IFS" 44199 IFS=: 44200 for p in $PATH; do 44201 if test -f "$p/$path" && test -x "$p/$path"; then 44202 new_path="$p/$path" 44203 break 44204 fi 44205 done 44206 IFS="$IFS_save" 44207 else 44208 # This is an absolute path, we can use it without further modifications. 44209 new_path="$path" 44210 fi 44211 44212 if test "x$new_path" = x; then 44213 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44214 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44215 has_space=`$ECHO "$complete" | $GREP " "` 44216 if test "x$has_space" != x; then 44217 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44218 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44219 fi 44220 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44221 fi 44222 fi 44223 44224 # Now join together the path and the arguments once again 44225 if test "x$arguments" != xEOL; then 44226 new_complete="$new_path ${arguments% *}" 44227 else 44228 new_complete="$new_path" 44229 fi 44230 44231 if test "x$complete" != "x$new_complete"; then 44232 OBJDUMP="$new_complete" 44233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 44234 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 44235 fi 44236 fi 44237 44238 fi 44239 44240 44241 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 44242 # to remain in place. Otherwise the compiler will not work in some siutations 44243 # in later configure checks. 44244 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 44245 PATH="$OLD_PATH" 44246 fi 44247 44248 # Restore the flags to the user specified values. 44249 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 44250 CFLAGS="$ORG_CFLAGS" 44251 CXXFLAGS="$ORG_CXXFLAGS" 44252 44253 44254 # Finally do some processing after the detection phase 44255 44256 if test "x$COMPILE_TYPE" = "xcross"; then 44257 # Now we need to find a C/C++ compiler that can build executables for the 44258 # build platform. We can't use the AC_PROG_CC macro, since it can only be 44259 # used once. Also, we need to do this without adding a tools dir to the 44260 # path, otherwise we might pick up cross-compilers which don't use standard 44261 # naming. 44262 44263 OLDPATH="$PATH" 44264 44265 44266 # Check whether --with-build-devkit was given. 44267 if test "${with_build_devkit+set}" = set; then : 44268 withval=$with_build_devkit; 44269 fi 44270 44271 if test "x$with_build_devkit" = "xyes"; then 44272 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 44273 elif test -n "$with_build_devkit"; then 44274 if test ! -d "$with_build_devkit"; then 44275 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 44276 else 44277 44278 # Only process if variable expands to non-empty 44279 44280 if test "x$with_build_devkit" != x; then 44281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44282 44283 # Input might be given as Windows format, start by converting to 44284 # unix format. 44285 path="$with_build_devkit" 44286 new_path=`$CYGPATH -u "$path"` 44287 44288 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44289 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44290 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44291 # "foo.exe" is OK but "foo" is an error. 44292 # 44293 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44294 # It is also a way to make sure we got the proper file name for the real test later on. 44295 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44296 if test "x$test_shortpath" = x; then 44297 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44298 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44299 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 44300 fi 44301 44302 # Call helper function which possibly converts this using DOS-style short mode. 44303 # If so, the updated path is stored in $new_path. 44304 44305 input_path="$new_path" 44306 # Check if we need to convert this using DOS-style short mode. If the path 44307 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44308 # take no chances and rewrite it. 44309 # Note: m4 eats our [], so we need to use [ and ] instead. 44310 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44311 if test "x$has_forbidden_chars" != x; then 44312 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44313 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44314 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44315 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44316 # Going to short mode and back again did indeed matter. Since short mode is 44317 # case insensitive, let's make it lowercase to improve readability. 44318 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44319 # Now convert it back to Unix-style (cygpath) 44320 input_path=`$CYGPATH -u "$shortmode_path"` 44321 new_path="$input_path" 44322 fi 44323 fi 44324 44325 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44326 if test "x$test_cygdrive_prefix" = x; then 44327 # As a simple fix, exclude /usr/bin since it's not a real path. 44328 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44329 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44330 # a path prefixed by /cygdrive for fixpath to work. 44331 new_path="$CYGWIN_ROOT_PATH$input_path" 44332 fi 44333 fi 44334 44335 44336 if test "x$path" != "x$new_path"; then 44337 with_build_devkit="$new_path" 44338 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 44339 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 44340 fi 44341 44342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44343 44344 path="$with_build_devkit" 44345 has_colon=`$ECHO $path | $GREP ^.:` 44346 new_path="$path" 44347 if test "x$has_colon" = x; then 44348 # Not in mixed or Windows style, start by that. 44349 new_path=`cmd //c echo $path` 44350 fi 44351 44352 44353 input_path="$new_path" 44354 # Check if we need to convert this using DOS-style short mode. If the path 44355 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44356 # take no chances and rewrite it. 44357 # Note: m4 eats our [], so we need to use [ and ] instead. 44358 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44359 if test "x$has_forbidden_chars" != x; then 44360 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44361 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44362 fi 44363 44364 44365 windows_path="$new_path" 44366 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44367 unix_path=`$CYGPATH -u "$windows_path"` 44368 new_path="$unix_path" 44369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44370 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44371 new_path="$unix_path" 44372 fi 44373 44374 if test "x$path" != "x$new_path"; then 44375 with_build_devkit="$new_path" 44376 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 44377 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 44378 fi 44379 44380 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44381 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44382 44383 else 44384 # We're on a unix platform. Hooray! :) 44385 path="$with_build_devkit" 44386 has_space=`$ECHO "$path" | $GREP " "` 44387 if test "x$has_space" != x; then 44388 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44389 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44390 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44391 fi 44392 44393 # Use eval to expand a potential ~ 44394 eval path="$path" 44395 if test ! -f "$path" && test ! -d "$path"; then 44396 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 44397 fi 44398 44399 if test -d "$path"; then 44400 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 44401 else 44402 dir="`$DIRNAME "$path"`" 44403 base="`$BASENAME "$path"`" 44404 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 44405 fi 44406 fi 44407 fi 44408 44409 BUILD_DEVKIT_ROOT="$with_build_devkit" 44410 # Check for a meta data info file in the root of the devkit 44411 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 44412 # Process devkit.info so that existing devkit variables are not 44413 # modified by this 44414 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 44415 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 44416 -e "s/\$host/\$build/g" \ 44417 $BUILD_DEVKIT_ROOT/devkit.info \ 44418 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 44419 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 44420 # This potentially sets the following: 44421 # A descriptive name of the devkit 44422 44423 if test "x$BUILD_DEVKIT_NAME" = x; then 44424 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 44425 fi 44426 44427 # Corresponds to --with-extra-path 44428 44429 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 44430 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 44431 fi 44432 44433 # Corresponds to --with-toolchain-path 44434 44435 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44436 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 44437 fi 44438 44439 # Corresponds to --with-sysroot 44440 44441 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 44442 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 44443 fi 44444 44445 # Skip the Window specific parts 44446 fi 44447 44448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 44449 $as_echo_n "checking for build platform devkit... " >&6; } 44450 if test "x$BUILD_DEVKIT_NAME" != x; then 44451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 44452 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 44453 else 44454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 44455 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 44456 fi 44457 44458 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 44459 44460 if test "x$BUILD_SYSROOT" != "x"; then 44461 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 44462 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44463 # Solaris Studio does not have a concept of sysroot. Instead we must 44464 # make sure the default include and lib dirs are appended to each 44465 # compile and link command line. Must also add -I-xbuiltin to enable 44466 # inlining of system functions and intrinsics. 44467 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 44468 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 44469 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 44470 fi 44471 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 44472 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 44473 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 44474 elif test "x$TOOLCHAIN_TYPE" = xclang; then 44475 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 44476 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 44477 fi 44478 # The global CFLAGS and LDFLAGS variables need these for configure to function 44479 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 44480 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 44481 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44482 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44483 fi 44484 44485 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 44486 # We also need -iframework<path>/System/Library/Frameworks 44487 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44488 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44489 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 44490 # set this here so it doesn't have to be peppered throughout the forest 44491 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44492 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44493 fi 44494 44495 44496 44497 44498 44499 # Fallback default of just /bin if DEVKIT_PATH is not defined 44500 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44501 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 44502 fi 44503 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 44504 fi 44505 fi 44506 44507 # FIXME: we should list the discovered compilers as an exclude pattern! 44508 # If we do that, we can do this detection before POST_DETECTION, and still 44509 # find the build compilers in the tools dir, if needed. 44510 44511 44512 44513 # Publish this variable in the help. 44514 44515 44516 if [ -z "${BUILD_CC+x}" ]; then 44517 # The variable is not set by user, try to locate tool using the code snippet 44518 for ac_prog in cl cc gcc 44519 do 44520 # Extract the first word of "$ac_prog", so it can be a program name with args. 44521 set dummy $ac_prog; ac_word=$2 44522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44523 $as_echo_n "checking for $ac_word... " >&6; } 44524 if ${ac_cv_path_BUILD_CC+:} false; then : 44525 $as_echo_n "(cached) " >&6 44526 else 44527 case $BUILD_CC in 44528 [\\/]* | ?:[\\/]*) 44529 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44530 ;; 44531 *) 44532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44533 for as_dir in $PATH 44534 do 44535 IFS=$as_save_IFS 44536 test -z "$as_dir" && as_dir=. 44537 for ac_exec_ext in '' $ac_executable_extensions; do 44538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44539 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44541 break 2 44542 fi 44543 done 44544 done 44545 IFS=$as_save_IFS 44546 44547 ;; 44548 esac 44549 fi 44550 BUILD_CC=$ac_cv_path_BUILD_CC 44551 if test -n "$BUILD_CC"; then 44552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44553 $as_echo "$BUILD_CC" >&6; } 44554 else 44555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44556 $as_echo "no" >&6; } 44557 fi 44558 44559 44560 test -n "$BUILD_CC" && break 44561 done 44562 44563 else 44564 # The variable is set, but is it from the command line or the environment? 44565 44566 # Try to remove the string !BUILD_CC! from our list. 44567 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 44568 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44569 # If it failed, the variable was not from the command line. Ignore it, 44570 # but warn the user (except for BASH, which is always set by the calling BASH). 44571 if test "xBUILD_CC" != xBASH; then 44572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 44573 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 44574 fi 44575 # Try to locate tool using the code snippet 44576 for ac_prog in cl cc gcc 44577 do 44578 # Extract the first word of "$ac_prog", so it can be a program name with args. 44579 set dummy $ac_prog; ac_word=$2 44580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44581 $as_echo_n "checking for $ac_word... " >&6; } 44582 if ${ac_cv_path_BUILD_CC+:} false; then : 44583 $as_echo_n "(cached) " >&6 44584 else 44585 case $BUILD_CC in 44586 [\\/]* | ?:[\\/]*) 44587 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44588 ;; 44589 *) 44590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44591 for as_dir in $PATH 44592 do 44593 IFS=$as_save_IFS 44594 test -z "$as_dir" && as_dir=. 44595 for ac_exec_ext in '' $ac_executable_extensions; do 44596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44597 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44599 break 2 44600 fi 44601 done 44602 done 44603 IFS=$as_save_IFS 44604 44605 ;; 44606 esac 44607 fi 44608 BUILD_CC=$ac_cv_path_BUILD_CC 44609 if test -n "$BUILD_CC"; then 44610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44611 $as_echo "$BUILD_CC" >&6; } 44612 else 44613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44614 $as_echo "no" >&6; } 44615 fi 44616 44617 44618 test -n "$BUILD_CC" && break 44619 done 44620 44621 else 44622 # If it succeeded, then it was overridden by the user. We will use it 44623 # for the tool. 44624 44625 # First remove it from the list of overridden variables, so we can test 44626 # for unknown variables in the end. 44627 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44628 44629 # Check if we try to supply an empty value 44630 if test "x$BUILD_CC" = x; then 44631 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 44632 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 44633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44634 $as_echo_n "checking for BUILD_CC... " >&6; } 44635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44636 $as_echo "disabled" >&6; } 44637 else 44638 # Check if the provided tool contains a complete path. 44639 tool_specified="$BUILD_CC" 44640 tool_basename="${tool_specified##*/}" 44641 if test "x$tool_basename" = "x$tool_specified"; then 44642 # A command without a complete path is provided, search $PATH. 44643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 44644 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 44645 # Extract the first word of "$tool_basename", so it can be a program name with args. 44646 set dummy $tool_basename; ac_word=$2 44647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44648 $as_echo_n "checking for $ac_word... " >&6; } 44649 if ${ac_cv_path_BUILD_CC+:} false; then : 44650 $as_echo_n "(cached) " >&6 44651 else 44652 case $BUILD_CC in 44653 [\\/]* | ?:[\\/]*) 44654 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44655 ;; 44656 *) 44657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44658 for as_dir in $PATH 44659 do 44660 IFS=$as_save_IFS 44661 test -z "$as_dir" && as_dir=. 44662 for ac_exec_ext in '' $ac_executable_extensions; do 44663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44664 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44666 break 2 44667 fi 44668 done 44669 done 44670 IFS=$as_save_IFS 44671 44672 ;; 44673 esac 44674 fi 44675 BUILD_CC=$ac_cv_path_BUILD_CC 44676 if test -n "$BUILD_CC"; then 44677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44678 $as_echo "$BUILD_CC" >&6; } 44679 else 44680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44681 $as_echo "no" >&6; } 44682 fi 44683 44684 44685 if test "x$BUILD_CC" = x; then 44686 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44687 fi 44688 else 44689 # Otherwise we believe it is a complete path. Use it as it is. 44690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 44691 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 44692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44693 $as_echo_n "checking for BUILD_CC... " >&6; } 44694 if test ! -x "$tool_specified"; then 44695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44696 $as_echo "not found" >&6; } 44697 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 44698 fi 44699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44700 $as_echo "$tool_specified" >&6; } 44701 fi 44702 fi 44703 fi 44704 44705 fi 44706 44707 44708 44709 if test "x$BUILD_CC" = x; then 44710 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 44711 fi 44712 44713 44714 44715 # Only process if variable expands to non-empty 44716 44717 if test "x$BUILD_CC" != x; then 44718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44719 44720 # First separate the path from the arguments. This will split at the first 44721 # space. 44722 complete="$BUILD_CC" 44723 path="${complete%% *}" 44724 tmp="$complete EOL" 44725 arguments="${tmp#* }" 44726 44727 # Input might be given as Windows format, start by converting to 44728 # unix format. 44729 new_path=`$CYGPATH -u "$path"` 44730 44731 # Now try to locate executable using which 44732 new_path=`$WHICH "$new_path" 2> /dev/null` 44733 # bat and cmd files are not always considered executable in cygwin causing which 44734 # to not find them 44735 if test "x$new_path" = x \ 44736 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44737 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44738 new_path=`$CYGPATH -u "$path"` 44739 fi 44740 if test "x$new_path" = x; then 44741 # Oops. Which didn't find the executable. 44742 # The splitting of arguments from the executable at a space might have been incorrect, 44743 # since paths with space are more likely in Windows. Give it another try with the whole 44744 # argument. 44745 path="$complete" 44746 arguments="EOL" 44747 new_path=`$CYGPATH -u "$path"` 44748 new_path=`$WHICH "$new_path" 2> /dev/null` 44749 # bat and cmd files are not always considered executable in cygwin causing which 44750 # to not find them 44751 if test "x$new_path" = x \ 44752 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44753 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44754 new_path=`$CYGPATH -u "$path"` 44755 fi 44756 if test "x$new_path" = x; then 44757 # It's still not found. Now this is an unrecoverable error. 44758 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44759 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44760 has_space=`$ECHO "$complete" | $GREP " "` 44761 if test "x$has_space" != x; then 44762 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44763 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44764 fi 44765 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44766 fi 44767 fi 44768 44769 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44770 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44771 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44772 # "foo.exe" is OK but "foo" is an error. 44773 # 44774 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44775 # It is also a way to make sure we got the proper file name for the real test later on. 44776 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44777 if test "x$test_shortpath" = x; then 44778 # Short path failed, file does not exist as specified. 44779 # Try adding .exe or .cmd 44780 if test -f "${new_path}.exe"; then 44781 input_to_shortpath="${new_path}.exe" 44782 elif test -f "${new_path}.cmd"; then 44783 input_to_shortpath="${new_path}.cmd" 44784 else 44785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 44786 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 44787 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44788 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44789 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44790 fi 44791 else 44792 input_to_shortpath="$new_path" 44793 fi 44794 44795 # Call helper function which possibly converts this using DOS-style short mode. 44796 # If so, the updated path is stored in $new_path. 44797 new_path="$input_to_shortpath" 44798 44799 input_path="$input_to_shortpath" 44800 # Check if we need to convert this using DOS-style short mode. If the path 44801 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44802 # take no chances and rewrite it. 44803 # Note: m4 eats our [], so we need to use [ and ] instead. 44804 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44805 if test "x$has_forbidden_chars" != x; then 44806 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44807 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44808 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44809 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44810 # Going to short mode and back again did indeed matter. Since short mode is 44811 # case insensitive, let's make it lowercase to improve readability. 44812 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44813 # Now convert it back to Unix-style (cygpath) 44814 input_path=`$CYGPATH -u "$shortmode_path"` 44815 new_path="$input_path" 44816 fi 44817 fi 44818 44819 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44820 if test "x$test_cygdrive_prefix" = x; then 44821 # As a simple fix, exclude /usr/bin since it's not a real path. 44822 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44823 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44824 # a path prefixed by /cygdrive for fixpath to work. 44825 new_path="$CYGWIN_ROOT_PATH$input_path" 44826 fi 44827 fi 44828 44829 # remove trailing .exe if any 44830 new_path="${new_path/%.exe/}" 44831 44832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44833 44834 # First separate the path from the arguments. This will split at the first 44835 # space. 44836 complete="$BUILD_CC" 44837 path="${complete%% *}" 44838 tmp="$complete EOL" 44839 arguments="${tmp#* }" 44840 44841 # Input might be given as Windows format, start by converting to 44842 # unix format. 44843 new_path="$path" 44844 44845 windows_path="$new_path" 44846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44847 unix_path=`$CYGPATH -u "$windows_path"` 44848 new_path="$unix_path" 44849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44850 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44851 new_path="$unix_path" 44852 fi 44853 44854 44855 # Now try to locate executable using which 44856 new_path=`$WHICH "$new_path" 2> /dev/null` 44857 44858 if test "x$new_path" = x; then 44859 # Oops. Which didn't find the executable. 44860 # The splitting of arguments from the executable at a space might have been incorrect, 44861 # since paths with space are more likely in Windows. Give it another try with the whole 44862 # argument. 44863 path="$complete" 44864 arguments="EOL" 44865 new_path="$path" 44866 44867 windows_path="$new_path" 44868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44869 unix_path=`$CYGPATH -u "$windows_path"` 44870 new_path="$unix_path" 44871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44872 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44873 new_path="$unix_path" 44874 fi 44875 44876 44877 new_path=`$WHICH "$new_path" 2> /dev/null` 44878 # bat and cmd files are not always considered executable in MSYS causing which 44879 # to not find them 44880 if test "x$new_path" = x \ 44881 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44882 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44883 new_path="$path" 44884 44885 windows_path="$new_path" 44886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44887 unix_path=`$CYGPATH -u "$windows_path"` 44888 new_path="$unix_path" 44889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44890 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44891 new_path="$unix_path" 44892 fi 44893 44894 fi 44895 44896 if test "x$new_path" = x; then 44897 # It's still not found. Now this is an unrecoverable error. 44898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44899 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44900 has_space=`$ECHO "$complete" | $GREP " "` 44901 if test "x$has_space" != x; then 44902 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44903 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44904 fi 44905 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44906 fi 44907 fi 44908 44909 # Now new_path has a complete unix path to the binary 44910 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44911 # Keep paths in /bin as-is, but remove trailing .exe if any 44912 new_path="${new_path/%.exe/}" 44913 # Do not save /bin paths to all_fixpath_prefixes! 44914 else 44915 # Not in mixed or Windows style, start by that. 44916 new_path=`cmd //c echo $new_path` 44917 44918 input_path="$new_path" 44919 # Check if we need to convert this using DOS-style short mode. If the path 44920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44921 # take no chances and rewrite it. 44922 # Note: m4 eats our [], so we need to use [ and ] instead. 44923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44924 if test "x$has_forbidden_chars" != x; then 44925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44926 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44927 fi 44928 44929 # Output is in $new_path 44930 44931 windows_path="$new_path" 44932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44933 unix_path=`$CYGPATH -u "$windows_path"` 44934 new_path="$unix_path" 44935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44937 new_path="$unix_path" 44938 fi 44939 44940 # remove trailing .exe if any 44941 new_path="${new_path/%.exe/}" 44942 44943 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44944 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44945 fi 44946 44947 else 44948 # We're on a unix platform. Hooray! :) 44949 # First separate the path from the arguments. This will split at the first 44950 # space. 44951 complete="$BUILD_CC" 44952 path="${complete%% *}" 44953 tmp="$complete EOL" 44954 arguments="${tmp#* }" 44955 44956 # Cannot rely on the command "which" here since it doesn't always work. 44957 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44958 if test -z "$is_absolute_path"; then 44959 # Path to executable is not absolute. Find it. 44960 IFS_save="$IFS" 44961 IFS=: 44962 for p in $PATH; do 44963 if test -f "$p/$path" && test -x "$p/$path"; then 44964 new_path="$p/$path" 44965 break 44966 fi 44967 done 44968 IFS="$IFS_save" 44969 else 44970 # This is an absolute path, we can use it without further modifications. 44971 new_path="$path" 44972 fi 44973 44974 if test "x$new_path" = x; then 44975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44976 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44977 has_space=`$ECHO "$complete" | $GREP " "` 44978 if test "x$has_space" != x; then 44979 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44980 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44981 fi 44982 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44983 fi 44984 fi 44985 44986 # Now join together the path and the arguments once again 44987 if test "x$arguments" != xEOL; then 44988 new_complete="$new_path ${arguments% *}" 44989 else 44990 new_complete="$new_path" 44991 fi 44992 44993 if test "x$complete" != "x$new_complete"; then 44994 BUILD_CC="$new_complete" 44995 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 44996 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 44997 fi 44998 fi 44999 45000 45001 45002 45003 # Publish this variable in the help. 45004 45005 45006 if [ -z "${BUILD_CXX+x}" ]; then 45007 # The variable is not set by user, try to locate tool using the code snippet 45008 for ac_prog in cl CC g++ 45009 do 45010 # Extract the first word of "$ac_prog", so it can be a program name with args. 45011 set dummy $ac_prog; ac_word=$2 45012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45013 $as_echo_n "checking for $ac_word... " >&6; } 45014 if ${ac_cv_path_BUILD_CXX+:} false; then : 45015 $as_echo_n "(cached) " >&6 45016 else 45017 case $BUILD_CXX in 45018 [\\/]* | ?:[\\/]*) 45019 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45020 ;; 45021 *) 45022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45023 for as_dir in $PATH 45024 do 45025 IFS=$as_save_IFS 45026 test -z "$as_dir" && as_dir=. 45027 for ac_exec_ext in '' $ac_executable_extensions; do 45028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45029 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45031 break 2 45032 fi 45033 done 45034 done 45035 IFS=$as_save_IFS 45036 45037 ;; 45038 esac 45039 fi 45040 BUILD_CXX=$ac_cv_path_BUILD_CXX 45041 if test -n "$BUILD_CXX"; then 45042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45043 $as_echo "$BUILD_CXX" >&6; } 45044 else 45045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45046 $as_echo "no" >&6; } 45047 fi 45048 45049 45050 test -n "$BUILD_CXX" && break 45051 done 45052 45053 else 45054 # The variable is set, but is it from the command line or the environment? 45055 45056 # Try to remove the string !BUILD_CXX! from our list. 45057 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 45058 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45059 # If it failed, the variable was not from the command line. Ignore it, 45060 # but warn the user (except for BASH, which is always set by the calling BASH). 45061 if test "xBUILD_CXX" != xBASH; then 45062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 45063 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 45064 fi 45065 # Try to locate tool using the code snippet 45066 for ac_prog in cl CC g++ 45067 do 45068 # Extract the first word of "$ac_prog", so it can be a program name with args. 45069 set dummy $ac_prog; ac_word=$2 45070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45071 $as_echo_n "checking for $ac_word... " >&6; } 45072 if ${ac_cv_path_BUILD_CXX+:} false; then : 45073 $as_echo_n "(cached) " >&6 45074 else 45075 case $BUILD_CXX in 45076 [\\/]* | ?:[\\/]*) 45077 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45078 ;; 45079 *) 45080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45081 for as_dir in $PATH 45082 do 45083 IFS=$as_save_IFS 45084 test -z "$as_dir" && as_dir=. 45085 for ac_exec_ext in '' $ac_executable_extensions; do 45086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45087 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45089 break 2 45090 fi 45091 done 45092 done 45093 IFS=$as_save_IFS 45094 45095 ;; 45096 esac 45097 fi 45098 BUILD_CXX=$ac_cv_path_BUILD_CXX 45099 if test -n "$BUILD_CXX"; then 45100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45101 $as_echo "$BUILD_CXX" >&6; } 45102 else 45103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45104 $as_echo "no" >&6; } 45105 fi 45106 45107 45108 test -n "$BUILD_CXX" && break 45109 done 45110 45111 else 45112 # If it succeeded, then it was overridden by the user. We will use it 45113 # for the tool. 45114 45115 # First remove it from the list of overridden variables, so we can test 45116 # for unknown variables in the end. 45117 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45118 45119 # Check if we try to supply an empty value 45120 if test "x$BUILD_CXX" = x; then 45121 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 45122 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 45123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 45124 $as_echo_n "checking for BUILD_CXX... " >&6; } 45125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45126 $as_echo "disabled" >&6; } 45127 else 45128 # Check if the provided tool contains a complete path. 45129 tool_specified="$BUILD_CXX" 45130 tool_basename="${tool_specified##*/}" 45131 if test "x$tool_basename" = "x$tool_specified"; then 45132 # A command without a complete path is provided, search $PATH. 45133 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 45134 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 45135 # Extract the first word of "$tool_basename", so it can be a program name with args. 45136 set dummy $tool_basename; ac_word=$2 45137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45138 $as_echo_n "checking for $ac_word... " >&6; } 45139 if ${ac_cv_path_BUILD_CXX+:} false; then : 45140 $as_echo_n "(cached) " >&6 45141 else 45142 case $BUILD_CXX in 45143 [\\/]* | ?:[\\/]*) 45144 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45145 ;; 45146 *) 45147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45148 for as_dir in $PATH 45149 do 45150 IFS=$as_save_IFS 45151 test -z "$as_dir" && as_dir=. 45152 for ac_exec_ext in '' $ac_executable_extensions; do 45153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45154 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45156 break 2 45157 fi 45158 done 45159 done 45160 IFS=$as_save_IFS 45161 45162 ;; 45163 esac 45164 fi 45165 BUILD_CXX=$ac_cv_path_BUILD_CXX 45166 if test -n "$BUILD_CXX"; then 45167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45168 $as_echo "$BUILD_CXX" >&6; } 45169 else 45170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45171 $as_echo "no" >&6; } 45172 fi 45173 45174 45175 if test "x$BUILD_CXX" = x; then 45176 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45177 fi 45178 else 45179 # Otherwise we believe it is a complete path. Use it as it is. 45180 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 45181 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 45182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 45183 $as_echo_n "checking for BUILD_CXX... " >&6; } 45184 if test ! -x "$tool_specified"; then 45185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45186 $as_echo "not found" >&6; } 45187 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 45188 fi 45189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45190 $as_echo "$tool_specified" >&6; } 45191 fi 45192 fi 45193 fi 45194 45195 fi 45196 45197 45198 45199 if test "x$BUILD_CXX" = x; then 45200 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 45201 fi 45202 45203 45204 45205 # Only process if variable expands to non-empty 45206 45207 if test "x$BUILD_CXX" != x; then 45208 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45209 45210 # First separate the path from the arguments. This will split at the first 45211 # space. 45212 complete="$BUILD_CXX" 45213 path="${complete%% *}" 45214 tmp="$complete EOL" 45215 arguments="${tmp#* }" 45216 45217 # Input might be given as Windows format, start by converting to 45218 # unix format. 45219 new_path=`$CYGPATH -u "$path"` 45220 45221 # Now try to locate executable using which 45222 new_path=`$WHICH "$new_path" 2> /dev/null` 45223 # bat and cmd files are not always considered executable in cygwin causing which 45224 # to not find them 45225 if test "x$new_path" = x \ 45226 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45227 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45228 new_path=`$CYGPATH -u "$path"` 45229 fi 45230 if test "x$new_path" = x; then 45231 # Oops. Which didn't find the executable. 45232 # The splitting of arguments from the executable at a space might have been incorrect, 45233 # since paths with space are more likely in Windows. Give it another try with the whole 45234 # argument. 45235 path="$complete" 45236 arguments="EOL" 45237 new_path=`$CYGPATH -u "$path"` 45238 new_path=`$WHICH "$new_path" 2> /dev/null` 45239 # bat and cmd files are not always considered executable in cygwin causing which 45240 # to not find them 45241 if test "x$new_path" = x \ 45242 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45243 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45244 new_path=`$CYGPATH -u "$path"` 45245 fi 45246 if test "x$new_path" = x; then 45247 # It's still not found. Now this is an unrecoverable error. 45248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45249 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45250 has_space=`$ECHO "$complete" | $GREP " "` 45251 if test "x$has_space" != x; then 45252 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45253 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45254 fi 45255 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45256 fi 45257 fi 45258 45259 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45260 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45261 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45262 # "foo.exe" is OK but "foo" is an error. 45263 # 45264 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45265 # It is also a way to make sure we got the proper file name for the real test later on. 45266 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45267 if test "x$test_shortpath" = x; then 45268 # Short path failed, file does not exist as specified. 45269 # Try adding .exe or .cmd 45270 if test -f "${new_path}.exe"; then 45271 input_to_shortpath="${new_path}.exe" 45272 elif test -f "${new_path}.cmd"; then 45273 input_to_shortpath="${new_path}.cmd" 45274 else 45275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 45276 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 45277 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45278 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45279 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45280 fi 45281 else 45282 input_to_shortpath="$new_path" 45283 fi 45284 45285 # Call helper function which possibly converts this using DOS-style short mode. 45286 # If so, the updated path is stored in $new_path. 45287 new_path="$input_to_shortpath" 45288 45289 input_path="$input_to_shortpath" 45290 # Check if we need to convert this using DOS-style short mode. If the path 45291 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45292 # take no chances and rewrite it. 45293 # Note: m4 eats our [], so we need to use [ and ] instead. 45294 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45295 if test "x$has_forbidden_chars" != x; then 45296 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45297 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45298 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45299 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45300 # Going to short mode and back again did indeed matter. Since short mode is 45301 # case insensitive, let's make it lowercase to improve readability. 45302 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45303 # Now convert it back to Unix-style (cygpath) 45304 input_path=`$CYGPATH -u "$shortmode_path"` 45305 new_path="$input_path" 45306 fi 45307 fi 45308 45309 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45310 if test "x$test_cygdrive_prefix" = x; then 45311 # As a simple fix, exclude /usr/bin since it's not a real path. 45312 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45313 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45314 # a path prefixed by /cygdrive for fixpath to work. 45315 new_path="$CYGWIN_ROOT_PATH$input_path" 45316 fi 45317 fi 45318 45319 # remove trailing .exe if any 45320 new_path="${new_path/%.exe/}" 45321 45322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45323 45324 # First separate the path from the arguments. This will split at the first 45325 # space. 45326 complete="$BUILD_CXX" 45327 path="${complete%% *}" 45328 tmp="$complete EOL" 45329 arguments="${tmp#* }" 45330 45331 # Input might be given as Windows format, start by converting to 45332 # unix format. 45333 new_path="$path" 45334 45335 windows_path="$new_path" 45336 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45337 unix_path=`$CYGPATH -u "$windows_path"` 45338 new_path="$unix_path" 45339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45340 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45341 new_path="$unix_path" 45342 fi 45343 45344 45345 # Now try to locate executable using which 45346 new_path=`$WHICH "$new_path" 2> /dev/null` 45347 45348 if test "x$new_path" = x; then 45349 # Oops. Which didn't find the executable. 45350 # The splitting of arguments from the executable at a space might have been incorrect, 45351 # since paths with space are more likely in Windows. Give it another try with the whole 45352 # argument. 45353 path="$complete" 45354 arguments="EOL" 45355 new_path="$path" 45356 45357 windows_path="$new_path" 45358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45359 unix_path=`$CYGPATH -u "$windows_path"` 45360 new_path="$unix_path" 45361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45363 new_path="$unix_path" 45364 fi 45365 45366 45367 new_path=`$WHICH "$new_path" 2> /dev/null` 45368 # bat and cmd files are not always considered executable in MSYS causing which 45369 # to not find them 45370 if test "x$new_path" = x \ 45371 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45372 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45373 new_path="$path" 45374 45375 windows_path="$new_path" 45376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45377 unix_path=`$CYGPATH -u "$windows_path"` 45378 new_path="$unix_path" 45379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45381 new_path="$unix_path" 45382 fi 45383 45384 fi 45385 45386 if test "x$new_path" = x; then 45387 # It's still not found. Now this is an unrecoverable error. 45388 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45389 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45390 has_space=`$ECHO "$complete" | $GREP " "` 45391 if test "x$has_space" != x; then 45392 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45393 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45394 fi 45395 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45396 fi 45397 fi 45398 45399 # Now new_path has a complete unix path to the binary 45400 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45401 # Keep paths in /bin as-is, but remove trailing .exe if any 45402 new_path="${new_path/%.exe/}" 45403 # Do not save /bin paths to all_fixpath_prefixes! 45404 else 45405 # Not in mixed or Windows style, start by that. 45406 new_path=`cmd //c echo $new_path` 45407 45408 input_path="$new_path" 45409 # Check if we need to convert this using DOS-style short mode. If the path 45410 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45411 # take no chances and rewrite it. 45412 # Note: m4 eats our [], so we need to use [ and ] instead. 45413 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45414 if test "x$has_forbidden_chars" != x; then 45415 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45416 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45417 fi 45418 45419 # Output is in $new_path 45420 45421 windows_path="$new_path" 45422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45423 unix_path=`$CYGPATH -u "$windows_path"` 45424 new_path="$unix_path" 45425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45426 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45427 new_path="$unix_path" 45428 fi 45429 45430 # remove trailing .exe if any 45431 new_path="${new_path/%.exe/}" 45432 45433 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45434 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45435 fi 45436 45437 else 45438 # We're on a unix platform. Hooray! :) 45439 # First separate the path from the arguments. This will split at the first 45440 # space. 45441 complete="$BUILD_CXX" 45442 path="${complete%% *}" 45443 tmp="$complete EOL" 45444 arguments="${tmp#* }" 45445 45446 # Cannot rely on the command "which" here since it doesn't always work. 45447 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45448 if test -z "$is_absolute_path"; then 45449 # Path to executable is not absolute. Find it. 45450 IFS_save="$IFS" 45451 IFS=: 45452 for p in $PATH; do 45453 if test -f "$p/$path" && test -x "$p/$path"; then 45454 new_path="$p/$path" 45455 break 45456 fi 45457 done 45458 IFS="$IFS_save" 45459 else 45460 # This is an absolute path, we can use it without further modifications. 45461 new_path="$path" 45462 fi 45463 45464 if test "x$new_path" = x; then 45465 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45466 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45467 has_space=`$ECHO "$complete" | $GREP " "` 45468 if test "x$has_space" != x; then 45469 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45470 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45471 fi 45472 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45473 fi 45474 fi 45475 45476 # Now join together the path and the arguments once again 45477 if test "x$arguments" != xEOL; then 45478 new_complete="$new_path ${arguments% *}" 45479 else 45480 new_complete="$new_path" 45481 fi 45482 45483 if test "x$complete" != "x$new_complete"; then 45484 BUILD_CXX="$new_complete" 45485 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 45486 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 45487 fi 45488 fi 45489 45490 45491 45492 # Publish this variable in the help. 45493 45494 45495 if [ -z "${BUILD_NM+x}" ]; then 45496 # The variable is not set by user, try to locate tool using the code snippet 45497 for ac_prog in nm gcc-nm 45498 do 45499 # Extract the first word of "$ac_prog", so it can be a program name with args. 45500 set dummy $ac_prog; ac_word=$2 45501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45502 $as_echo_n "checking for $ac_word... " >&6; } 45503 if ${ac_cv_path_BUILD_NM+:} false; then : 45504 $as_echo_n "(cached) " >&6 45505 else 45506 case $BUILD_NM in 45507 [\\/]* | ?:[\\/]*) 45508 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45509 ;; 45510 *) 45511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45512 for as_dir in $PATH 45513 do 45514 IFS=$as_save_IFS 45515 test -z "$as_dir" && as_dir=. 45516 for ac_exec_ext in '' $ac_executable_extensions; do 45517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45518 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45520 break 2 45521 fi 45522 done 45523 done 45524 IFS=$as_save_IFS 45525 45526 ;; 45527 esac 45528 fi 45529 BUILD_NM=$ac_cv_path_BUILD_NM 45530 if test -n "$BUILD_NM"; then 45531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45532 $as_echo "$BUILD_NM" >&6; } 45533 else 45534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45535 $as_echo "no" >&6; } 45536 fi 45537 45538 45539 test -n "$BUILD_NM" && break 45540 done 45541 45542 else 45543 # The variable is set, but is it from the command line or the environment? 45544 45545 # Try to remove the string !BUILD_NM! from our list. 45546 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 45547 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45548 # If it failed, the variable was not from the command line. Ignore it, 45549 # but warn the user (except for BASH, which is always set by the calling BASH). 45550 if test "xBUILD_NM" != xBASH; then 45551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 45552 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 45553 fi 45554 # Try to locate tool using the code snippet 45555 for ac_prog in nm gcc-nm 45556 do 45557 # Extract the first word of "$ac_prog", so it can be a program name with args. 45558 set dummy $ac_prog; ac_word=$2 45559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45560 $as_echo_n "checking for $ac_word... " >&6; } 45561 if ${ac_cv_path_BUILD_NM+:} false; then : 45562 $as_echo_n "(cached) " >&6 45563 else 45564 case $BUILD_NM in 45565 [\\/]* | ?:[\\/]*) 45566 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45567 ;; 45568 *) 45569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45570 for as_dir in $PATH 45571 do 45572 IFS=$as_save_IFS 45573 test -z "$as_dir" && as_dir=. 45574 for ac_exec_ext in '' $ac_executable_extensions; do 45575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45576 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45578 break 2 45579 fi 45580 done 45581 done 45582 IFS=$as_save_IFS 45583 45584 ;; 45585 esac 45586 fi 45587 BUILD_NM=$ac_cv_path_BUILD_NM 45588 if test -n "$BUILD_NM"; then 45589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45590 $as_echo "$BUILD_NM" >&6; } 45591 else 45592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45593 $as_echo "no" >&6; } 45594 fi 45595 45596 45597 test -n "$BUILD_NM" && break 45598 done 45599 45600 else 45601 # If it succeeded, then it was overridden by the user. We will use it 45602 # for the tool. 45603 45604 # First remove it from the list of overridden variables, so we can test 45605 # for unknown variables in the end. 45606 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45607 45608 # Check if we try to supply an empty value 45609 if test "x$BUILD_NM" = x; then 45610 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 45611 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 45612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45613 $as_echo_n "checking for BUILD_NM... " >&6; } 45614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45615 $as_echo "disabled" >&6; } 45616 else 45617 # Check if the provided tool contains a complete path. 45618 tool_specified="$BUILD_NM" 45619 tool_basename="${tool_specified##*/}" 45620 if test "x$tool_basename" = "x$tool_specified"; then 45621 # A command without a complete path is provided, search $PATH. 45622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 45623 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 45624 # Extract the first word of "$tool_basename", so it can be a program name with args. 45625 set dummy $tool_basename; ac_word=$2 45626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45627 $as_echo_n "checking for $ac_word... " >&6; } 45628 if ${ac_cv_path_BUILD_NM+:} false; then : 45629 $as_echo_n "(cached) " >&6 45630 else 45631 case $BUILD_NM in 45632 [\\/]* | ?:[\\/]*) 45633 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45634 ;; 45635 *) 45636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45637 for as_dir in $PATH 45638 do 45639 IFS=$as_save_IFS 45640 test -z "$as_dir" && as_dir=. 45641 for ac_exec_ext in '' $ac_executable_extensions; do 45642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45643 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45645 break 2 45646 fi 45647 done 45648 done 45649 IFS=$as_save_IFS 45650 45651 ;; 45652 esac 45653 fi 45654 BUILD_NM=$ac_cv_path_BUILD_NM 45655 if test -n "$BUILD_NM"; then 45656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45657 $as_echo "$BUILD_NM" >&6; } 45658 else 45659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45660 $as_echo "no" >&6; } 45661 fi 45662 45663 45664 if test "x$BUILD_NM" = x; then 45665 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45666 fi 45667 else 45668 # Otherwise we believe it is a complete path. Use it as it is. 45669 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 45670 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 45671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45672 $as_echo_n "checking for BUILD_NM... " >&6; } 45673 if test ! -x "$tool_specified"; then 45674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45675 $as_echo "not found" >&6; } 45676 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 45677 fi 45678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45679 $as_echo "$tool_specified" >&6; } 45680 fi 45681 fi 45682 fi 45683 45684 fi 45685 45686 45687 45688 # Only process if variable expands to non-empty 45689 45690 if test "x$BUILD_NM" != x; then 45691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45692 45693 # First separate the path from the arguments. This will split at the first 45694 # space. 45695 complete="$BUILD_NM" 45696 path="${complete%% *}" 45697 tmp="$complete EOL" 45698 arguments="${tmp#* }" 45699 45700 # Input might be given as Windows format, start by converting to 45701 # unix format. 45702 new_path=`$CYGPATH -u "$path"` 45703 45704 # Now try to locate executable using which 45705 new_path=`$WHICH "$new_path" 2> /dev/null` 45706 # bat and cmd files are not always considered executable in cygwin causing which 45707 # to not find them 45708 if test "x$new_path" = x \ 45709 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45710 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45711 new_path=`$CYGPATH -u "$path"` 45712 fi 45713 if test "x$new_path" = x; then 45714 # Oops. Which didn't find the executable. 45715 # The splitting of arguments from the executable at a space might have been incorrect, 45716 # since paths with space are more likely in Windows. Give it another try with the whole 45717 # argument. 45718 path="$complete" 45719 arguments="EOL" 45720 new_path=`$CYGPATH -u "$path"` 45721 new_path=`$WHICH "$new_path" 2> /dev/null` 45722 # bat and cmd files are not always considered executable in cygwin causing which 45723 # to not find them 45724 if test "x$new_path" = x \ 45725 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45726 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45727 new_path=`$CYGPATH -u "$path"` 45728 fi 45729 if test "x$new_path" = x; then 45730 # It's still not found. Now this is an unrecoverable error. 45731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45732 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45733 has_space=`$ECHO "$complete" | $GREP " "` 45734 if test "x$has_space" != x; then 45735 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45736 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45737 fi 45738 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45739 fi 45740 fi 45741 45742 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45743 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45744 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45745 # "foo.exe" is OK but "foo" is an error. 45746 # 45747 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45748 # It is also a way to make sure we got the proper file name for the real test later on. 45749 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45750 if test "x$test_shortpath" = x; then 45751 # Short path failed, file does not exist as specified. 45752 # Try adding .exe or .cmd 45753 if test -f "${new_path}.exe"; then 45754 input_to_shortpath="${new_path}.exe" 45755 elif test -f "${new_path}.cmd"; then 45756 input_to_shortpath="${new_path}.cmd" 45757 else 45758 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 45759 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 45760 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45761 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45762 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45763 fi 45764 else 45765 input_to_shortpath="$new_path" 45766 fi 45767 45768 # Call helper function which possibly converts this using DOS-style short mode. 45769 # If so, the updated path is stored in $new_path. 45770 new_path="$input_to_shortpath" 45771 45772 input_path="$input_to_shortpath" 45773 # Check if we need to convert this using DOS-style short mode. If the path 45774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45775 # take no chances and rewrite it. 45776 # Note: m4 eats our [], so we need to use [ and ] instead. 45777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45778 if test "x$has_forbidden_chars" != x; then 45779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45780 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45781 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45782 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45783 # Going to short mode and back again did indeed matter. Since short mode is 45784 # case insensitive, let's make it lowercase to improve readability. 45785 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45786 # Now convert it back to Unix-style (cygpath) 45787 input_path=`$CYGPATH -u "$shortmode_path"` 45788 new_path="$input_path" 45789 fi 45790 fi 45791 45792 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45793 if test "x$test_cygdrive_prefix" = x; then 45794 # As a simple fix, exclude /usr/bin since it's not a real path. 45795 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45796 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45797 # a path prefixed by /cygdrive for fixpath to work. 45798 new_path="$CYGWIN_ROOT_PATH$input_path" 45799 fi 45800 fi 45801 45802 # remove trailing .exe if any 45803 new_path="${new_path/%.exe/}" 45804 45805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45806 45807 # First separate the path from the arguments. This will split at the first 45808 # space. 45809 complete="$BUILD_NM" 45810 path="${complete%% *}" 45811 tmp="$complete EOL" 45812 arguments="${tmp#* }" 45813 45814 # Input might be given as Windows format, start by converting to 45815 # unix format. 45816 new_path="$path" 45817 45818 windows_path="$new_path" 45819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45820 unix_path=`$CYGPATH -u "$windows_path"` 45821 new_path="$unix_path" 45822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45823 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45824 new_path="$unix_path" 45825 fi 45826 45827 45828 # Now try to locate executable using which 45829 new_path=`$WHICH "$new_path" 2> /dev/null` 45830 45831 if test "x$new_path" = x; then 45832 # Oops. Which didn't find the executable. 45833 # The splitting of arguments from the executable at a space might have been incorrect, 45834 # since paths with space are more likely in Windows. Give it another try with the whole 45835 # argument. 45836 path="$complete" 45837 arguments="EOL" 45838 new_path="$path" 45839 45840 windows_path="$new_path" 45841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45842 unix_path=`$CYGPATH -u "$windows_path"` 45843 new_path="$unix_path" 45844 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45845 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45846 new_path="$unix_path" 45847 fi 45848 45849 45850 new_path=`$WHICH "$new_path" 2> /dev/null` 45851 # bat and cmd files are not always considered executable in MSYS causing which 45852 # to not find them 45853 if test "x$new_path" = x \ 45854 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45855 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45856 new_path="$path" 45857 45858 windows_path="$new_path" 45859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45860 unix_path=`$CYGPATH -u "$windows_path"` 45861 new_path="$unix_path" 45862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45863 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45864 new_path="$unix_path" 45865 fi 45866 45867 fi 45868 45869 if test "x$new_path" = x; then 45870 # It's still not found. Now this is an unrecoverable error. 45871 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45872 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45873 has_space=`$ECHO "$complete" | $GREP " "` 45874 if test "x$has_space" != x; then 45875 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45876 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45877 fi 45878 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45879 fi 45880 fi 45881 45882 # Now new_path has a complete unix path to the binary 45883 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45884 # Keep paths in /bin as-is, but remove trailing .exe if any 45885 new_path="${new_path/%.exe/}" 45886 # Do not save /bin paths to all_fixpath_prefixes! 45887 else 45888 # Not in mixed or Windows style, start by that. 45889 new_path=`cmd //c echo $new_path` 45890 45891 input_path="$new_path" 45892 # Check if we need to convert this using DOS-style short mode. If the path 45893 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45894 # take no chances and rewrite it. 45895 # Note: m4 eats our [], so we need to use [ and ] instead. 45896 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45897 if test "x$has_forbidden_chars" != x; then 45898 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45899 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45900 fi 45901 45902 # Output is in $new_path 45903 45904 windows_path="$new_path" 45905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45906 unix_path=`$CYGPATH -u "$windows_path"` 45907 new_path="$unix_path" 45908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45910 new_path="$unix_path" 45911 fi 45912 45913 # remove trailing .exe if any 45914 new_path="${new_path/%.exe/}" 45915 45916 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45917 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45918 fi 45919 45920 else 45921 # We're on a unix platform. Hooray! :) 45922 # First separate the path from the arguments. This will split at the first 45923 # space. 45924 complete="$BUILD_NM" 45925 path="${complete%% *}" 45926 tmp="$complete EOL" 45927 arguments="${tmp#* }" 45928 45929 # Cannot rely on the command "which" here since it doesn't always work. 45930 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45931 if test -z "$is_absolute_path"; then 45932 # Path to executable is not absolute. Find it. 45933 IFS_save="$IFS" 45934 IFS=: 45935 for p in $PATH; do 45936 if test -f "$p/$path" && test -x "$p/$path"; then 45937 new_path="$p/$path" 45938 break 45939 fi 45940 done 45941 IFS="$IFS_save" 45942 else 45943 # This is an absolute path, we can use it without further modifications. 45944 new_path="$path" 45945 fi 45946 45947 if test "x$new_path" = x; then 45948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45949 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45950 has_space=`$ECHO "$complete" | $GREP " "` 45951 if test "x$has_space" != x; then 45952 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45953 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45954 fi 45955 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45956 fi 45957 fi 45958 45959 # Now join together the path and the arguments once again 45960 if test "x$arguments" != xEOL; then 45961 new_complete="$new_path ${arguments% *}" 45962 else 45963 new_complete="$new_path" 45964 fi 45965 45966 if test "x$complete" != "x$new_complete"; then 45967 BUILD_NM="$new_complete" 45968 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 45969 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 45970 fi 45971 fi 45972 45973 45974 45975 # Publish this variable in the help. 45976 45977 45978 if [ -z "${BUILD_AR+x}" ]; then 45979 # The variable is not set by user, try to locate tool using the code snippet 45980 for ac_prog in ar gcc-ar 45981 do 45982 # Extract the first word of "$ac_prog", so it can be a program name with args. 45983 set dummy $ac_prog; ac_word=$2 45984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45985 $as_echo_n "checking for $ac_word... " >&6; } 45986 if ${ac_cv_path_BUILD_AR+:} false; then : 45987 $as_echo_n "(cached) " >&6 45988 else 45989 case $BUILD_AR in 45990 [\\/]* | ?:[\\/]*) 45991 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45992 ;; 45993 *) 45994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45995 for as_dir in $PATH 45996 do 45997 IFS=$as_save_IFS 45998 test -z "$as_dir" && as_dir=. 45999 for ac_exec_ext in '' $ac_executable_extensions; do 46000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46001 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46003 break 2 46004 fi 46005 done 46006 done 46007 IFS=$as_save_IFS 46008 46009 ;; 46010 esac 46011 fi 46012 BUILD_AR=$ac_cv_path_BUILD_AR 46013 if test -n "$BUILD_AR"; then 46014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46015 $as_echo "$BUILD_AR" >&6; } 46016 else 46017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46018 $as_echo "no" >&6; } 46019 fi 46020 46021 46022 test -n "$BUILD_AR" && break 46023 done 46024 46025 else 46026 # The variable is set, but is it from the command line or the environment? 46027 46028 # Try to remove the string !BUILD_AR! from our list. 46029 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 46030 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46031 # If it failed, the variable was not from the command line. Ignore it, 46032 # but warn the user (except for BASH, which is always set by the calling BASH). 46033 if test "xBUILD_AR" != xBASH; then 46034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 46035 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 46036 fi 46037 # Try to locate tool using the code snippet 46038 for ac_prog in ar gcc-ar 46039 do 46040 # Extract the first word of "$ac_prog", so it can be a program name with args. 46041 set dummy $ac_prog; ac_word=$2 46042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46043 $as_echo_n "checking for $ac_word... " >&6; } 46044 if ${ac_cv_path_BUILD_AR+:} false; then : 46045 $as_echo_n "(cached) " >&6 46046 else 46047 case $BUILD_AR in 46048 [\\/]* | ?:[\\/]*) 46049 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46050 ;; 46051 *) 46052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46053 for as_dir in $PATH 46054 do 46055 IFS=$as_save_IFS 46056 test -z "$as_dir" && as_dir=. 46057 for ac_exec_ext in '' $ac_executable_extensions; do 46058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46059 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46061 break 2 46062 fi 46063 done 46064 done 46065 IFS=$as_save_IFS 46066 46067 ;; 46068 esac 46069 fi 46070 BUILD_AR=$ac_cv_path_BUILD_AR 46071 if test -n "$BUILD_AR"; then 46072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46073 $as_echo "$BUILD_AR" >&6; } 46074 else 46075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46076 $as_echo "no" >&6; } 46077 fi 46078 46079 46080 test -n "$BUILD_AR" && break 46081 done 46082 46083 else 46084 # If it succeeded, then it was overridden by the user. We will use it 46085 # for the tool. 46086 46087 # First remove it from the list of overridden variables, so we can test 46088 # for unknown variables in the end. 46089 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46090 46091 # Check if we try to supply an empty value 46092 if test "x$BUILD_AR" = x; then 46093 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 46094 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 46095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 46096 $as_echo_n "checking for BUILD_AR... " >&6; } 46097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46098 $as_echo "disabled" >&6; } 46099 else 46100 # Check if the provided tool contains a complete path. 46101 tool_specified="$BUILD_AR" 46102 tool_basename="${tool_specified##*/}" 46103 if test "x$tool_basename" = "x$tool_specified"; then 46104 # A command without a complete path is provided, search $PATH. 46105 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 46106 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 46107 # Extract the first word of "$tool_basename", so it can be a program name with args. 46108 set dummy $tool_basename; ac_word=$2 46109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46110 $as_echo_n "checking for $ac_word... " >&6; } 46111 if ${ac_cv_path_BUILD_AR+:} false; then : 46112 $as_echo_n "(cached) " >&6 46113 else 46114 case $BUILD_AR in 46115 [\\/]* | ?:[\\/]*) 46116 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46117 ;; 46118 *) 46119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46120 for as_dir in $PATH 46121 do 46122 IFS=$as_save_IFS 46123 test -z "$as_dir" && as_dir=. 46124 for ac_exec_ext in '' $ac_executable_extensions; do 46125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46126 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46128 break 2 46129 fi 46130 done 46131 done 46132 IFS=$as_save_IFS 46133 46134 ;; 46135 esac 46136 fi 46137 BUILD_AR=$ac_cv_path_BUILD_AR 46138 if test -n "$BUILD_AR"; then 46139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46140 $as_echo "$BUILD_AR" >&6; } 46141 else 46142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46143 $as_echo "no" >&6; } 46144 fi 46145 46146 46147 if test "x$BUILD_AR" = x; then 46148 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46149 fi 46150 else 46151 # Otherwise we believe it is a complete path. Use it as it is. 46152 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 46153 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 46154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 46155 $as_echo_n "checking for BUILD_AR... " >&6; } 46156 if test ! -x "$tool_specified"; then 46157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46158 $as_echo "not found" >&6; } 46159 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 46160 fi 46161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46162 $as_echo "$tool_specified" >&6; } 46163 fi 46164 fi 46165 fi 46166 46167 fi 46168 46169 46170 46171 # Only process if variable expands to non-empty 46172 46173 if test "x$BUILD_AR" != x; then 46174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46175 46176 # First separate the path from the arguments. This will split at the first 46177 # space. 46178 complete="$BUILD_AR" 46179 path="${complete%% *}" 46180 tmp="$complete EOL" 46181 arguments="${tmp#* }" 46182 46183 # Input might be given as Windows format, start by converting to 46184 # unix format. 46185 new_path=`$CYGPATH -u "$path"` 46186 46187 # Now try to locate executable using which 46188 new_path=`$WHICH "$new_path" 2> /dev/null` 46189 # bat and cmd files are not always considered executable in cygwin causing which 46190 # to not find them 46191 if test "x$new_path" = x \ 46192 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46193 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46194 new_path=`$CYGPATH -u "$path"` 46195 fi 46196 if test "x$new_path" = x; then 46197 # Oops. Which didn't find the executable. 46198 # The splitting of arguments from the executable at a space might have been incorrect, 46199 # since paths with space are more likely in Windows. Give it another try with the whole 46200 # argument. 46201 path="$complete" 46202 arguments="EOL" 46203 new_path=`$CYGPATH -u "$path"` 46204 new_path=`$WHICH "$new_path" 2> /dev/null` 46205 # bat and cmd files are not always considered executable in cygwin causing which 46206 # to not find them 46207 if test "x$new_path" = x \ 46208 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46209 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46210 new_path=`$CYGPATH -u "$path"` 46211 fi 46212 if test "x$new_path" = x; then 46213 # It's still not found. Now this is an unrecoverable error. 46214 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46215 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46216 has_space=`$ECHO "$complete" | $GREP " "` 46217 if test "x$has_space" != x; then 46218 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46219 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46220 fi 46221 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46222 fi 46223 fi 46224 46225 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46226 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46227 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46228 # "foo.exe" is OK but "foo" is an error. 46229 # 46230 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46231 # It is also a way to make sure we got the proper file name for the real test later on. 46232 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46233 if test "x$test_shortpath" = x; then 46234 # Short path failed, file does not exist as specified. 46235 # Try adding .exe or .cmd 46236 if test -f "${new_path}.exe"; then 46237 input_to_shortpath="${new_path}.exe" 46238 elif test -f "${new_path}.cmd"; then 46239 input_to_shortpath="${new_path}.cmd" 46240 else 46241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 46242 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 46243 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46244 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46245 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46246 fi 46247 else 46248 input_to_shortpath="$new_path" 46249 fi 46250 46251 # Call helper function which possibly converts this using DOS-style short mode. 46252 # If so, the updated path is stored in $new_path. 46253 new_path="$input_to_shortpath" 46254 46255 input_path="$input_to_shortpath" 46256 # Check if we need to convert this using DOS-style short mode. If the path 46257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46258 # take no chances and rewrite it. 46259 # Note: m4 eats our [], so we need to use [ and ] instead. 46260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46261 if test "x$has_forbidden_chars" != x; then 46262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46263 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46264 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46265 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46266 # Going to short mode and back again did indeed matter. Since short mode is 46267 # case insensitive, let's make it lowercase to improve readability. 46268 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46269 # Now convert it back to Unix-style (cygpath) 46270 input_path=`$CYGPATH -u "$shortmode_path"` 46271 new_path="$input_path" 46272 fi 46273 fi 46274 46275 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46276 if test "x$test_cygdrive_prefix" = x; then 46277 # As a simple fix, exclude /usr/bin since it's not a real path. 46278 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46279 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46280 # a path prefixed by /cygdrive for fixpath to work. 46281 new_path="$CYGWIN_ROOT_PATH$input_path" 46282 fi 46283 fi 46284 46285 # remove trailing .exe if any 46286 new_path="${new_path/%.exe/}" 46287 46288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46289 46290 # First separate the path from the arguments. This will split at the first 46291 # space. 46292 complete="$BUILD_AR" 46293 path="${complete%% *}" 46294 tmp="$complete EOL" 46295 arguments="${tmp#* }" 46296 46297 # Input might be given as Windows format, start by converting to 46298 # unix format. 46299 new_path="$path" 46300 46301 windows_path="$new_path" 46302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46303 unix_path=`$CYGPATH -u "$windows_path"` 46304 new_path="$unix_path" 46305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46307 new_path="$unix_path" 46308 fi 46309 46310 46311 # Now try to locate executable using which 46312 new_path=`$WHICH "$new_path" 2> /dev/null` 46313 46314 if test "x$new_path" = x; then 46315 # Oops. Which didn't find the executable. 46316 # The splitting of arguments from the executable at a space might have been incorrect, 46317 # since paths with space are more likely in Windows. Give it another try with the whole 46318 # argument. 46319 path="$complete" 46320 arguments="EOL" 46321 new_path="$path" 46322 46323 windows_path="$new_path" 46324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46325 unix_path=`$CYGPATH -u "$windows_path"` 46326 new_path="$unix_path" 46327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46328 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46329 new_path="$unix_path" 46330 fi 46331 46332 46333 new_path=`$WHICH "$new_path" 2> /dev/null` 46334 # bat and cmd files are not always considered executable in MSYS causing which 46335 # to not find them 46336 if test "x$new_path" = x \ 46337 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46338 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46339 new_path="$path" 46340 46341 windows_path="$new_path" 46342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46343 unix_path=`$CYGPATH -u "$windows_path"` 46344 new_path="$unix_path" 46345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46347 new_path="$unix_path" 46348 fi 46349 46350 fi 46351 46352 if test "x$new_path" = x; then 46353 # It's still not found. Now this is an unrecoverable error. 46354 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46355 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46356 has_space=`$ECHO "$complete" | $GREP " "` 46357 if test "x$has_space" != x; then 46358 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46359 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46360 fi 46361 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46362 fi 46363 fi 46364 46365 # Now new_path has a complete unix path to the binary 46366 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46367 # Keep paths in /bin as-is, but remove trailing .exe if any 46368 new_path="${new_path/%.exe/}" 46369 # Do not save /bin paths to all_fixpath_prefixes! 46370 else 46371 # Not in mixed or Windows style, start by that. 46372 new_path=`cmd //c echo $new_path` 46373 46374 input_path="$new_path" 46375 # Check if we need to convert this using DOS-style short mode. If the path 46376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46377 # take no chances and rewrite it. 46378 # Note: m4 eats our [], so we need to use [ and ] instead. 46379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46380 if test "x$has_forbidden_chars" != x; then 46381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46382 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46383 fi 46384 46385 # Output is in $new_path 46386 46387 windows_path="$new_path" 46388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46389 unix_path=`$CYGPATH -u "$windows_path"` 46390 new_path="$unix_path" 46391 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46392 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46393 new_path="$unix_path" 46394 fi 46395 46396 # remove trailing .exe if any 46397 new_path="${new_path/%.exe/}" 46398 46399 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46400 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46401 fi 46402 46403 else 46404 # We're on a unix platform. Hooray! :) 46405 # First separate the path from the arguments. This will split at the first 46406 # space. 46407 complete="$BUILD_AR" 46408 path="${complete%% *}" 46409 tmp="$complete EOL" 46410 arguments="${tmp#* }" 46411 46412 # Cannot rely on the command "which" here since it doesn't always work. 46413 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46414 if test -z "$is_absolute_path"; then 46415 # Path to executable is not absolute. Find it. 46416 IFS_save="$IFS" 46417 IFS=: 46418 for p in $PATH; do 46419 if test -f "$p/$path" && test -x "$p/$path"; then 46420 new_path="$p/$path" 46421 break 46422 fi 46423 done 46424 IFS="$IFS_save" 46425 else 46426 # This is an absolute path, we can use it without further modifications. 46427 new_path="$path" 46428 fi 46429 46430 if test "x$new_path" = x; then 46431 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46432 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46433 has_space=`$ECHO "$complete" | $GREP " "` 46434 if test "x$has_space" != x; then 46435 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46436 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46437 fi 46438 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46439 fi 46440 fi 46441 46442 # Now join together the path and the arguments once again 46443 if test "x$arguments" != xEOL; then 46444 new_complete="$new_path ${arguments% *}" 46445 else 46446 new_complete="$new_path" 46447 fi 46448 46449 if test "x$complete" != "x$new_complete"; then 46450 BUILD_AR="$new_complete" 46451 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 46452 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 46453 fi 46454 fi 46455 46456 46457 46458 # Publish this variable in the help. 46459 46460 46461 if [ -z "${BUILD_OBJCOPY+x}" ]; then 46462 # The variable is not set by user, try to locate tool using the code snippet 46463 for ac_prog in objcopy 46464 do 46465 # Extract the first word of "$ac_prog", so it can be a program name with args. 46466 set dummy $ac_prog; ac_word=$2 46467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46468 $as_echo_n "checking for $ac_word... " >&6; } 46469 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46470 $as_echo_n "(cached) " >&6 46471 else 46472 case $BUILD_OBJCOPY in 46473 [\\/]* | ?:[\\/]*) 46474 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46475 ;; 46476 *) 46477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46478 for as_dir in $PATH 46479 do 46480 IFS=$as_save_IFS 46481 test -z "$as_dir" && as_dir=. 46482 for ac_exec_ext in '' $ac_executable_extensions; do 46483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46484 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46486 break 2 46487 fi 46488 done 46489 done 46490 IFS=$as_save_IFS 46491 46492 ;; 46493 esac 46494 fi 46495 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46496 if test -n "$BUILD_OBJCOPY"; then 46497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46498 $as_echo "$BUILD_OBJCOPY" >&6; } 46499 else 46500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46501 $as_echo "no" >&6; } 46502 fi 46503 46504 46505 test -n "$BUILD_OBJCOPY" && break 46506 done 46507 46508 else 46509 # The variable is set, but is it from the command line or the environment? 46510 46511 # Try to remove the string !BUILD_OBJCOPY! from our list. 46512 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 46513 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46514 # If it failed, the variable was not from the command line. Ignore it, 46515 # but warn the user (except for BASH, which is always set by the calling BASH). 46516 if test "xBUILD_OBJCOPY" != xBASH; then 46517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 46518 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 46519 fi 46520 # Try to locate tool using the code snippet 46521 for ac_prog in objcopy 46522 do 46523 # Extract the first word of "$ac_prog", so it can be a program name with args. 46524 set dummy $ac_prog; ac_word=$2 46525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46526 $as_echo_n "checking for $ac_word... " >&6; } 46527 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46528 $as_echo_n "(cached) " >&6 46529 else 46530 case $BUILD_OBJCOPY in 46531 [\\/]* | ?:[\\/]*) 46532 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46533 ;; 46534 *) 46535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46536 for as_dir in $PATH 46537 do 46538 IFS=$as_save_IFS 46539 test -z "$as_dir" && as_dir=. 46540 for ac_exec_ext in '' $ac_executable_extensions; do 46541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46542 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46544 break 2 46545 fi 46546 done 46547 done 46548 IFS=$as_save_IFS 46549 46550 ;; 46551 esac 46552 fi 46553 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46554 if test -n "$BUILD_OBJCOPY"; then 46555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46556 $as_echo "$BUILD_OBJCOPY" >&6; } 46557 else 46558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46559 $as_echo "no" >&6; } 46560 fi 46561 46562 46563 test -n "$BUILD_OBJCOPY" && break 46564 done 46565 46566 else 46567 # If it succeeded, then it was overridden by the user. We will use it 46568 # for the tool. 46569 46570 # First remove it from the list of overridden variables, so we can test 46571 # for unknown variables in the end. 46572 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46573 46574 # Check if we try to supply an empty value 46575 if test "x$BUILD_OBJCOPY" = x; then 46576 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 46577 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 46578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46579 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46581 $as_echo "disabled" >&6; } 46582 else 46583 # Check if the provided tool contains a complete path. 46584 tool_specified="$BUILD_OBJCOPY" 46585 tool_basename="${tool_specified##*/}" 46586 if test "x$tool_basename" = "x$tool_specified"; then 46587 # A command without a complete path is provided, search $PATH. 46588 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 46589 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 46590 # Extract the first word of "$tool_basename", so it can be a program name with args. 46591 set dummy $tool_basename; ac_word=$2 46592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46593 $as_echo_n "checking for $ac_word... " >&6; } 46594 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46595 $as_echo_n "(cached) " >&6 46596 else 46597 case $BUILD_OBJCOPY in 46598 [\\/]* | ?:[\\/]*) 46599 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46600 ;; 46601 *) 46602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46603 for as_dir in $PATH 46604 do 46605 IFS=$as_save_IFS 46606 test -z "$as_dir" && as_dir=. 46607 for ac_exec_ext in '' $ac_executable_extensions; do 46608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46609 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46611 break 2 46612 fi 46613 done 46614 done 46615 IFS=$as_save_IFS 46616 46617 ;; 46618 esac 46619 fi 46620 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46621 if test -n "$BUILD_OBJCOPY"; then 46622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46623 $as_echo "$BUILD_OBJCOPY" >&6; } 46624 else 46625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46626 $as_echo "no" >&6; } 46627 fi 46628 46629 46630 if test "x$BUILD_OBJCOPY" = x; then 46631 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46632 fi 46633 else 46634 # Otherwise we believe it is a complete path. Use it as it is. 46635 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 46636 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 46637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46638 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46639 if test ! -x "$tool_specified"; then 46640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46641 $as_echo "not found" >&6; } 46642 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 46643 fi 46644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46645 $as_echo "$tool_specified" >&6; } 46646 fi 46647 fi 46648 fi 46649 46650 fi 46651 46652 46653 46654 # Only process if variable expands to non-empty 46655 46656 if test "x$BUILD_OBJCOPY" != x; then 46657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46658 46659 # First separate the path from the arguments. This will split at the first 46660 # space. 46661 complete="$BUILD_OBJCOPY" 46662 path="${complete%% *}" 46663 tmp="$complete EOL" 46664 arguments="${tmp#* }" 46665 46666 # Input might be given as Windows format, start by converting to 46667 # unix format. 46668 new_path=`$CYGPATH -u "$path"` 46669 46670 # Now try to locate executable using which 46671 new_path=`$WHICH "$new_path" 2> /dev/null` 46672 # bat and cmd files are not always considered executable in cygwin causing which 46673 # to not find them 46674 if test "x$new_path" = x \ 46675 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46676 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46677 new_path=`$CYGPATH -u "$path"` 46678 fi 46679 if test "x$new_path" = x; then 46680 # Oops. Which didn't find the executable. 46681 # The splitting of arguments from the executable at a space might have been incorrect, 46682 # since paths with space are more likely in Windows. Give it another try with the whole 46683 # argument. 46684 path="$complete" 46685 arguments="EOL" 46686 new_path=`$CYGPATH -u "$path"` 46687 new_path=`$WHICH "$new_path" 2> /dev/null` 46688 # bat and cmd files are not always considered executable in cygwin causing which 46689 # to not find them 46690 if test "x$new_path" = x \ 46691 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46692 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46693 new_path=`$CYGPATH -u "$path"` 46694 fi 46695 if test "x$new_path" = x; then 46696 # It's still not found. Now this is an unrecoverable error. 46697 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46698 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46699 has_space=`$ECHO "$complete" | $GREP " "` 46700 if test "x$has_space" != x; then 46701 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46702 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46703 fi 46704 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46705 fi 46706 fi 46707 46708 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46709 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46710 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46711 # "foo.exe" is OK but "foo" is an error. 46712 # 46713 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46714 # It is also a way to make sure we got the proper file name for the real test later on. 46715 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46716 if test "x$test_shortpath" = x; then 46717 # Short path failed, file does not exist as specified. 46718 # Try adding .exe or .cmd 46719 if test -f "${new_path}.exe"; then 46720 input_to_shortpath="${new_path}.exe" 46721 elif test -f "${new_path}.cmd"; then 46722 input_to_shortpath="${new_path}.cmd" 46723 else 46724 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 46725 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 46726 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46727 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46728 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46729 fi 46730 else 46731 input_to_shortpath="$new_path" 46732 fi 46733 46734 # Call helper function which possibly converts this using DOS-style short mode. 46735 # If so, the updated path is stored in $new_path. 46736 new_path="$input_to_shortpath" 46737 46738 input_path="$input_to_shortpath" 46739 # Check if we need to convert this using DOS-style short mode. If the path 46740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46741 # take no chances and rewrite it. 46742 # Note: m4 eats our [], so we need to use [ and ] instead. 46743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46744 if test "x$has_forbidden_chars" != x; then 46745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46746 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46747 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46748 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46749 # Going to short mode and back again did indeed matter. Since short mode is 46750 # case insensitive, let's make it lowercase to improve readability. 46751 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46752 # Now convert it back to Unix-style (cygpath) 46753 input_path=`$CYGPATH -u "$shortmode_path"` 46754 new_path="$input_path" 46755 fi 46756 fi 46757 46758 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46759 if test "x$test_cygdrive_prefix" = x; then 46760 # As a simple fix, exclude /usr/bin since it's not a real path. 46761 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46762 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46763 # a path prefixed by /cygdrive for fixpath to work. 46764 new_path="$CYGWIN_ROOT_PATH$input_path" 46765 fi 46766 fi 46767 46768 # remove trailing .exe if any 46769 new_path="${new_path/%.exe/}" 46770 46771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46772 46773 # First separate the path from the arguments. This will split at the first 46774 # space. 46775 complete="$BUILD_OBJCOPY" 46776 path="${complete%% *}" 46777 tmp="$complete EOL" 46778 arguments="${tmp#* }" 46779 46780 # Input might be given as Windows format, start by converting to 46781 # unix format. 46782 new_path="$path" 46783 46784 windows_path="$new_path" 46785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46786 unix_path=`$CYGPATH -u "$windows_path"` 46787 new_path="$unix_path" 46788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46789 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46790 new_path="$unix_path" 46791 fi 46792 46793 46794 # Now try to locate executable using which 46795 new_path=`$WHICH "$new_path" 2> /dev/null` 46796 46797 if test "x$new_path" = x; then 46798 # Oops. Which didn't find the executable. 46799 # The splitting of arguments from the executable at a space might have been incorrect, 46800 # since paths with space are more likely in Windows. Give it another try with the whole 46801 # argument. 46802 path="$complete" 46803 arguments="EOL" 46804 new_path="$path" 46805 46806 windows_path="$new_path" 46807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46808 unix_path=`$CYGPATH -u "$windows_path"` 46809 new_path="$unix_path" 46810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46812 new_path="$unix_path" 46813 fi 46814 46815 46816 new_path=`$WHICH "$new_path" 2> /dev/null` 46817 # bat and cmd files are not always considered executable in MSYS causing which 46818 # to not find them 46819 if test "x$new_path" = x \ 46820 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46821 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46822 new_path="$path" 46823 46824 windows_path="$new_path" 46825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46826 unix_path=`$CYGPATH -u "$windows_path"` 46827 new_path="$unix_path" 46828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46829 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46830 new_path="$unix_path" 46831 fi 46832 46833 fi 46834 46835 if test "x$new_path" = x; then 46836 # It's still not found. Now this is an unrecoverable error. 46837 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46838 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46839 has_space=`$ECHO "$complete" | $GREP " "` 46840 if test "x$has_space" != x; then 46841 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46842 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46843 fi 46844 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46845 fi 46846 fi 46847 46848 # Now new_path has a complete unix path to the binary 46849 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46850 # Keep paths in /bin as-is, but remove trailing .exe if any 46851 new_path="${new_path/%.exe/}" 46852 # Do not save /bin paths to all_fixpath_prefixes! 46853 else 46854 # Not in mixed or Windows style, start by that. 46855 new_path=`cmd //c echo $new_path` 46856 46857 input_path="$new_path" 46858 # Check if we need to convert this using DOS-style short mode. If the path 46859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46860 # take no chances and rewrite it. 46861 # Note: m4 eats our [], so we need to use [ and ] instead. 46862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46863 if test "x$has_forbidden_chars" != x; then 46864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46865 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46866 fi 46867 46868 # Output is in $new_path 46869 46870 windows_path="$new_path" 46871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46872 unix_path=`$CYGPATH -u "$windows_path"` 46873 new_path="$unix_path" 46874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46875 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46876 new_path="$unix_path" 46877 fi 46878 46879 # remove trailing .exe if any 46880 new_path="${new_path/%.exe/}" 46881 46882 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46883 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46884 fi 46885 46886 else 46887 # We're on a unix platform. Hooray! :) 46888 # First separate the path from the arguments. This will split at the first 46889 # space. 46890 complete="$BUILD_OBJCOPY" 46891 path="${complete%% *}" 46892 tmp="$complete EOL" 46893 arguments="${tmp#* }" 46894 46895 # Cannot rely on the command "which" here since it doesn't always work. 46896 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46897 if test -z "$is_absolute_path"; then 46898 # Path to executable is not absolute. Find it. 46899 IFS_save="$IFS" 46900 IFS=: 46901 for p in $PATH; do 46902 if test -f "$p/$path" && test -x "$p/$path"; then 46903 new_path="$p/$path" 46904 break 46905 fi 46906 done 46907 IFS="$IFS_save" 46908 else 46909 # This is an absolute path, we can use it without further modifications. 46910 new_path="$path" 46911 fi 46912 46913 if test "x$new_path" = x; then 46914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46915 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46916 has_space=`$ECHO "$complete" | $GREP " "` 46917 if test "x$has_space" != x; then 46918 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46919 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46920 fi 46921 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46922 fi 46923 fi 46924 46925 # Now join together the path and the arguments once again 46926 if test "x$arguments" != xEOL; then 46927 new_complete="$new_path ${arguments% *}" 46928 else 46929 new_complete="$new_path" 46930 fi 46931 46932 if test "x$complete" != "x$new_complete"; then 46933 BUILD_OBJCOPY="$new_complete" 46934 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 46935 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 46936 fi 46937 fi 46938 46939 46940 46941 # Publish this variable in the help. 46942 46943 46944 if [ -z "${BUILD_STRIP+x}" ]; then 46945 # The variable is not set by user, try to locate tool using the code snippet 46946 for ac_prog in strip 46947 do 46948 # Extract the first word of "$ac_prog", so it can be a program name with args. 46949 set dummy $ac_prog; ac_word=$2 46950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46951 $as_echo_n "checking for $ac_word... " >&6; } 46952 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46953 $as_echo_n "(cached) " >&6 46954 else 46955 case $BUILD_STRIP in 46956 [\\/]* | ?:[\\/]*) 46957 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46958 ;; 46959 *) 46960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46961 for as_dir in $PATH 46962 do 46963 IFS=$as_save_IFS 46964 test -z "$as_dir" && as_dir=. 46965 for ac_exec_ext in '' $ac_executable_extensions; do 46966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46967 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46969 break 2 46970 fi 46971 done 46972 done 46973 IFS=$as_save_IFS 46974 46975 ;; 46976 esac 46977 fi 46978 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46979 if test -n "$BUILD_STRIP"; then 46980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46981 $as_echo "$BUILD_STRIP" >&6; } 46982 else 46983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46984 $as_echo "no" >&6; } 46985 fi 46986 46987 46988 test -n "$BUILD_STRIP" && break 46989 done 46990 46991 else 46992 # The variable is set, but is it from the command line or the environment? 46993 46994 # Try to remove the string !BUILD_STRIP! from our list. 46995 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 46996 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46997 # If it failed, the variable was not from the command line. Ignore it, 46998 # but warn the user (except for BASH, which is always set by the calling BASH). 46999 if test "xBUILD_STRIP" != xBASH; then 47000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 47001 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 47002 fi 47003 # Try to locate tool using the code snippet 47004 for ac_prog in strip 47005 do 47006 # Extract the first word of "$ac_prog", so it can be a program name with args. 47007 set dummy $ac_prog; ac_word=$2 47008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47009 $as_echo_n "checking for $ac_word... " >&6; } 47010 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47011 $as_echo_n "(cached) " >&6 47012 else 47013 case $BUILD_STRIP in 47014 [\\/]* | ?:[\\/]*) 47015 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47016 ;; 47017 *) 47018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47019 for as_dir in $PATH 47020 do 47021 IFS=$as_save_IFS 47022 test -z "$as_dir" && as_dir=. 47023 for ac_exec_ext in '' $ac_executable_extensions; do 47024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47025 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47027 break 2 47028 fi 47029 done 47030 done 47031 IFS=$as_save_IFS 47032 47033 ;; 47034 esac 47035 fi 47036 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47037 if test -n "$BUILD_STRIP"; then 47038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47039 $as_echo "$BUILD_STRIP" >&6; } 47040 else 47041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47042 $as_echo "no" >&6; } 47043 fi 47044 47045 47046 test -n "$BUILD_STRIP" && break 47047 done 47048 47049 else 47050 # If it succeeded, then it was overridden by the user. We will use it 47051 # for the tool. 47052 47053 # First remove it from the list of overridden variables, so we can test 47054 # for unknown variables in the end. 47055 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47056 47057 # Check if we try to supply an empty value 47058 if test "x$BUILD_STRIP" = x; then 47059 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 47060 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 47061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 47062 $as_echo_n "checking for BUILD_STRIP... " >&6; } 47063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47064 $as_echo "disabled" >&6; } 47065 else 47066 # Check if the provided tool contains a complete path. 47067 tool_specified="$BUILD_STRIP" 47068 tool_basename="${tool_specified##*/}" 47069 if test "x$tool_basename" = "x$tool_specified"; then 47070 # A command without a complete path is provided, search $PATH. 47071 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 47072 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 47073 # Extract the first word of "$tool_basename", so it can be a program name with args. 47074 set dummy $tool_basename; ac_word=$2 47075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47076 $as_echo_n "checking for $ac_word... " >&6; } 47077 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47078 $as_echo_n "(cached) " >&6 47079 else 47080 case $BUILD_STRIP in 47081 [\\/]* | ?:[\\/]*) 47082 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47083 ;; 47084 *) 47085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47086 for as_dir in $PATH 47087 do 47088 IFS=$as_save_IFS 47089 test -z "$as_dir" && as_dir=. 47090 for ac_exec_ext in '' $ac_executable_extensions; do 47091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47092 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47094 break 2 47095 fi 47096 done 47097 done 47098 IFS=$as_save_IFS 47099 47100 ;; 47101 esac 47102 fi 47103 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47104 if test -n "$BUILD_STRIP"; then 47105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47106 $as_echo "$BUILD_STRIP" >&6; } 47107 else 47108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47109 $as_echo "no" >&6; } 47110 fi 47111 47112 47113 if test "x$BUILD_STRIP" = x; then 47114 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47115 fi 47116 else 47117 # Otherwise we believe it is a complete path. Use it as it is. 47118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 47119 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 47120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 47121 $as_echo_n "checking for BUILD_STRIP... " >&6; } 47122 if test ! -x "$tool_specified"; then 47123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47124 $as_echo "not found" >&6; } 47125 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 47126 fi 47127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47128 $as_echo "$tool_specified" >&6; } 47129 fi 47130 fi 47131 fi 47132 47133 fi 47134 47135 47136 47137 # Only process if variable expands to non-empty 47138 47139 if test "x$BUILD_STRIP" != x; then 47140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47141 47142 # First separate the path from the arguments. This will split at the first 47143 # space. 47144 complete="$BUILD_STRIP" 47145 path="${complete%% *}" 47146 tmp="$complete EOL" 47147 arguments="${tmp#* }" 47148 47149 # Input might be given as Windows format, start by converting to 47150 # unix format. 47151 new_path=`$CYGPATH -u "$path"` 47152 47153 # Now try to locate executable using which 47154 new_path=`$WHICH "$new_path" 2> /dev/null` 47155 # bat and cmd files are not always considered executable in cygwin causing which 47156 # to not find them 47157 if test "x$new_path" = x \ 47158 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47159 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47160 new_path=`$CYGPATH -u "$path"` 47161 fi 47162 if test "x$new_path" = x; then 47163 # Oops. Which didn't find the executable. 47164 # The splitting of arguments from the executable at a space might have been incorrect, 47165 # since paths with space are more likely in Windows. Give it another try with the whole 47166 # argument. 47167 path="$complete" 47168 arguments="EOL" 47169 new_path=`$CYGPATH -u "$path"` 47170 new_path=`$WHICH "$new_path" 2> /dev/null` 47171 # bat and cmd files are not always considered executable in cygwin causing which 47172 # to not find them 47173 if test "x$new_path" = x \ 47174 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47175 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47176 new_path=`$CYGPATH -u "$path"` 47177 fi 47178 if test "x$new_path" = x; then 47179 # It's still not found. Now this is an unrecoverable error. 47180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47181 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47182 has_space=`$ECHO "$complete" | $GREP " "` 47183 if test "x$has_space" != x; then 47184 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47185 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47186 fi 47187 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47188 fi 47189 fi 47190 47191 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47192 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47193 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47194 # "foo.exe" is OK but "foo" is an error. 47195 # 47196 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47197 # It is also a way to make sure we got the proper file name for the real test later on. 47198 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47199 if test "x$test_shortpath" = x; then 47200 # Short path failed, file does not exist as specified. 47201 # Try adding .exe or .cmd 47202 if test -f "${new_path}.exe"; then 47203 input_to_shortpath="${new_path}.exe" 47204 elif test -f "${new_path}.cmd"; then 47205 input_to_shortpath="${new_path}.cmd" 47206 else 47207 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 47208 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 47209 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47210 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47211 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47212 fi 47213 else 47214 input_to_shortpath="$new_path" 47215 fi 47216 47217 # Call helper function which possibly converts this using DOS-style short mode. 47218 # If so, the updated path is stored in $new_path. 47219 new_path="$input_to_shortpath" 47220 47221 input_path="$input_to_shortpath" 47222 # Check if we need to convert this using DOS-style short mode. If the path 47223 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47224 # take no chances and rewrite it. 47225 # Note: m4 eats our [], so we need to use [ and ] instead. 47226 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47227 if test "x$has_forbidden_chars" != x; then 47228 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47229 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47230 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47231 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47232 # Going to short mode and back again did indeed matter. Since short mode is 47233 # case insensitive, let's make it lowercase to improve readability. 47234 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47235 # Now convert it back to Unix-style (cygpath) 47236 input_path=`$CYGPATH -u "$shortmode_path"` 47237 new_path="$input_path" 47238 fi 47239 fi 47240 47241 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47242 if test "x$test_cygdrive_prefix" = x; then 47243 # As a simple fix, exclude /usr/bin since it's not a real path. 47244 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47245 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47246 # a path prefixed by /cygdrive for fixpath to work. 47247 new_path="$CYGWIN_ROOT_PATH$input_path" 47248 fi 47249 fi 47250 47251 # remove trailing .exe if any 47252 new_path="${new_path/%.exe/}" 47253 47254 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47255 47256 # First separate the path from the arguments. This will split at the first 47257 # space. 47258 complete="$BUILD_STRIP" 47259 path="${complete%% *}" 47260 tmp="$complete EOL" 47261 arguments="${tmp#* }" 47262 47263 # Input might be given as Windows format, start by converting to 47264 # unix format. 47265 new_path="$path" 47266 47267 windows_path="$new_path" 47268 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47269 unix_path=`$CYGPATH -u "$windows_path"` 47270 new_path="$unix_path" 47271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47272 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47273 new_path="$unix_path" 47274 fi 47275 47276 47277 # Now try to locate executable using which 47278 new_path=`$WHICH "$new_path" 2> /dev/null` 47279 47280 if test "x$new_path" = x; then 47281 # Oops. Which didn't find the executable. 47282 # The splitting of arguments from the executable at a space might have been incorrect, 47283 # since paths with space are more likely in Windows. Give it another try with the whole 47284 # argument. 47285 path="$complete" 47286 arguments="EOL" 47287 new_path="$path" 47288 47289 windows_path="$new_path" 47290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47291 unix_path=`$CYGPATH -u "$windows_path"` 47292 new_path="$unix_path" 47293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47294 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47295 new_path="$unix_path" 47296 fi 47297 47298 47299 new_path=`$WHICH "$new_path" 2> /dev/null` 47300 # bat and cmd files are not always considered executable in MSYS causing which 47301 # to not find them 47302 if test "x$new_path" = x \ 47303 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47304 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47305 new_path="$path" 47306 47307 windows_path="$new_path" 47308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47309 unix_path=`$CYGPATH -u "$windows_path"` 47310 new_path="$unix_path" 47311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47313 new_path="$unix_path" 47314 fi 47315 47316 fi 47317 47318 if test "x$new_path" = x; then 47319 # It's still not found. Now this is an unrecoverable error. 47320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47321 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47322 has_space=`$ECHO "$complete" | $GREP " "` 47323 if test "x$has_space" != x; then 47324 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47325 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47326 fi 47327 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47328 fi 47329 fi 47330 47331 # Now new_path has a complete unix path to the binary 47332 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47333 # Keep paths in /bin as-is, but remove trailing .exe if any 47334 new_path="${new_path/%.exe/}" 47335 # Do not save /bin paths to all_fixpath_prefixes! 47336 else 47337 # Not in mixed or Windows style, start by that. 47338 new_path=`cmd //c echo $new_path` 47339 47340 input_path="$new_path" 47341 # Check if we need to convert this using DOS-style short mode. If the path 47342 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47343 # take no chances and rewrite it. 47344 # Note: m4 eats our [], so we need to use [ and ] instead. 47345 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47346 if test "x$has_forbidden_chars" != x; then 47347 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47348 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47349 fi 47350 47351 # Output is in $new_path 47352 47353 windows_path="$new_path" 47354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47355 unix_path=`$CYGPATH -u "$windows_path"` 47356 new_path="$unix_path" 47357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47358 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47359 new_path="$unix_path" 47360 fi 47361 47362 # remove trailing .exe if any 47363 new_path="${new_path/%.exe/}" 47364 47365 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47366 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47367 fi 47368 47369 else 47370 # We're on a unix platform. Hooray! :) 47371 # First separate the path from the arguments. This will split at the first 47372 # space. 47373 complete="$BUILD_STRIP" 47374 path="${complete%% *}" 47375 tmp="$complete EOL" 47376 arguments="${tmp#* }" 47377 47378 # Cannot rely on the command "which" here since it doesn't always work. 47379 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47380 if test -z "$is_absolute_path"; then 47381 # Path to executable is not absolute. Find it. 47382 IFS_save="$IFS" 47383 IFS=: 47384 for p in $PATH; do 47385 if test -f "$p/$path" && test -x "$p/$path"; then 47386 new_path="$p/$path" 47387 break 47388 fi 47389 done 47390 IFS="$IFS_save" 47391 else 47392 # This is an absolute path, we can use it without further modifications. 47393 new_path="$path" 47394 fi 47395 47396 if test "x$new_path" = x; then 47397 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47398 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47399 has_space=`$ECHO "$complete" | $GREP " "` 47400 if test "x$has_space" != x; then 47401 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47402 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47403 fi 47404 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47405 fi 47406 fi 47407 47408 # Now join together the path and the arguments once again 47409 if test "x$arguments" != xEOL; then 47410 new_complete="$new_path ${arguments% *}" 47411 else 47412 new_complete="$new_path" 47413 fi 47414 47415 if test "x$complete" != "x$new_complete"; then 47416 BUILD_STRIP="$new_complete" 47417 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 47418 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 47419 fi 47420 fi 47421 47422 # Assume the C compiler is the assembler 47423 BUILD_AS="$BUILD_CC -c" 47424 # Just like for the target compiler, use the compiler as linker 47425 BUILD_LD="$BUILD_CC" 47426 BUILD_LDCXX="$BUILD_CXX" 47427 47428 PATH="$OLDPATH" 47429 47430 47431 COMPILER=$BUILD_CC 47432 COMPILER_NAME=BuildC 47433 47434 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47435 # cc -V output typically looks like 47436 # cc: Sun C 5.12 Linux_i386 2011/11/16 47437 # or 47438 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 47439 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 47440 # Check that this is likely to be the Solaris Studio cc. 47441 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 47442 if test $? -ne 0; then 47443 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47444 { $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 47445 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47446 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47447 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47448 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47449 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47450 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47451 fi 47452 # Remove usage instructions (if present), and 47453 # collapse compiler output into a single line 47454 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47455 $SED -e 's/ *[Uu]sage:.*//'` 47456 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47457 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47458 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47459 # xlc -qversion output typically looks like 47460 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47461 # Version: 11.01.0000.0015 47462 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47463 # Check that this is likely to be the IBM XL C compiler. 47464 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47465 if test $? -ne 0; then 47466 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47467 { $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 47468 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47469 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47470 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47471 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47472 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47473 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47474 fi 47475 # Collapse compiler output into a single line 47476 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47477 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47478 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47479 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47480 # There is no specific version flag, but all output starts with a version string. 47481 # First line typically looks something like: 47482 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47483 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47484 # Check that this is likely to be Microsoft CL.EXE. 47485 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47486 if test $? -ne 0; then 47487 { $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 47488 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47489 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47490 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47491 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47492 fi 47493 # Collapse compiler output into a single line 47494 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47495 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47496 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47497 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47498 # gcc --version output typically looks like 47499 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47500 # Copyright (C) 2013 Free Software Foundation, Inc. 47501 # This is free software; see the source for copying conditions. There is NO 47502 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47503 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47504 # Check that this is likely to be GCC. 47505 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47506 if test $? -ne 0; then 47507 { $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 47508 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47509 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47510 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47511 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47512 fi 47513 # Remove Copyright and legalese from version string, and 47514 # collapse into a single line 47515 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47516 $SED -e 's/ *Copyright .*//'` 47517 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47518 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47519 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47520 # clang --version output typically looks like 47521 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47522 # clang version 3.3 (tags/RELEASE_33/final) 47523 # or 47524 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47525 # Target: x86_64-pc-linux-gnu 47526 # Thread model: posix 47527 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47528 # Check that this is likely to be clang 47529 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47530 if test $? -ne 0; then 47531 { $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 47532 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47533 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47534 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47535 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47536 fi 47537 # Collapse compiler output into a single line 47538 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47539 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47540 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47541 else 47542 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47543 fi 47544 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47545 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47546 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47547 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 47548 47549 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47550 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47551 47552 47553 COMPILER=$BUILD_CXX 47554 COMPILER_NAME=BuildC++ 47555 47556 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47557 # cc -V output typically looks like 47558 # cc: Sun C 5.12 Linux_i386 2011/11/16 47559 # or 47560 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 47561 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 47562 # Check that this is likely to be the Solaris Studio cc. 47563 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 47564 if test $? -ne 0; then 47565 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47566 { $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 47567 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47568 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47569 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47570 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47571 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47572 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47573 fi 47574 # Remove usage instructions (if present), and 47575 # collapse compiler output into a single line 47576 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47577 $SED -e 's/ *[Uu]sage:.*//'` 47578 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47579 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47580 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47581 # xlc -qversion output typically looks like 47582 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47583 # Version: 11.01.0000.0015 47584 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47585 # Check that this is likely to be the IBM XL C compiler. 47586 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47587 if test $? -ne 0; then 47588 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47589 { $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 47590 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47591 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47592 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47593 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47594 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47595 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47596 fi 47597 # Collapse compiler output into a single line 47598 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47599 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47600 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47601 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47602 # There is no specific version flag, but all output starts with a version string. 47603 # First line typically looks something like: 47604 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47605 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47606 # Check that this is likely to be Microsoft CL.EXE. 47607 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47608 if test $? -ne 0; then 47609 { $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 47610 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47611 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47612 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47613 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47614 fi 47615 # Collapse compiler output into a single line 47616 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47617 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47618 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47619 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47620 # gcc --version output typically looks like 47621 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47622 # Copyright (C) 2013 Free Software Foundation, Inc. 47623 # This is free software; see the source for copying conditions. There is NO 47624 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47625 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47626 # Check that this is likely to be GCC. 47627 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47628 if test $? -ne 0; then 47629 { $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 47630 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47631 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47632 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47633 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47634 fi 47635 # Remove Copyright and legalese from version string, and 47636 # collapse into a single line 47637 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47638 $SED -e 's/ *Copyright .*//'` 47639 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47640 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47641 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47642 # clang --version output typically looks like 47643 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47644 # clang version 3.3 (tags/RELEASE_33/final) 47645 # or 47646 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47647 # Target: x86_64-pc-linux-gnu 47648 # Thread model: posix 47649 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47650 # Check that this is likely to be clang 47651 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47652 if test $? -ne 0; then 47653 { $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 47654 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47655 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47656 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47657 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47658 fi 47659 # Collapse compiler output into a single line 47660 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47661 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47662 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47663 else 47664 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47665 fi 47666 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47667 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47668 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47669 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 47670 47671 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47672 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47673 47674 47675 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 47676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&5 47677 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 47678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47679 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47680 fi 47681 47682 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47683 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 47684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47685 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47686 fi 47687 47688 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47690 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47691 fi 47692 47693 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 47694 47695 else 47696 # If we are not cross compiling, use the normal target compilers for 47697 # building the build platform executables. 47698 BUILD_CC="$CC" 47699 BUILD_CXX="$CXX" 47700 BUILD_LD="$LD" 47701 BUILD_LDCXX="$LDCXX" 47702 BUILD_NM="$NM" 47703 BUILD_AS="$AS" 47704 BUILD_OBJCOPY="$OBJCOPY" 47705 BUILD_STRIP="$STRIP" 47706 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 47707 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 47708 BUILD_AR="$AR" 47709 47710 47711 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 47712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 47713 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 47714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47715 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47716 fi 47717 47718 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47719 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 47720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47721 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47722 fi 47723 47724 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47726 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47727 fi 47728 47729 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 47730 47731 fi 47732 47733 47734 47735 47736 47737 47738 47739 47740 47741 47742 47743 47744 47745 47746 # The package path is used only on macosx? 47747 # FIXME: clean this up, and/or move it elsewhere. 47748 PACKAGE_PATH=/opt/local 47749 47750 47751 # Check for extra potential brokenness. 47752 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47753 # On Windows, double-check that we got the right compiler. 47754 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47755 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 47756 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 47757 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 47758 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 47759 fi 47760 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 47761 if test "x$COMPILER_CPU_TEST" != "xx64"; then 47762 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 47763 fi 47764 fi 47765 fi 47766 47767 if test "x$TOOLCHAIN_TYPE" = xgcc; then 47768 # If this is a --hash-style=gnu system, use --hash-style=both, why? 47769 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 47770 # This is later checked when setting flags. 47771 47772 # "-Og" suppported for GCC 4.8 and later 47773 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 47774 47775 47776 47777 47778 47779 47780 47781 47782 47783 47784 47785 47786 47787 47788 47789 47790 47791 47792 47793 47794 47795 47796 47797 47798 47799 47800 47801 47802 47803 47804 47805 47806 47807 47808 47809 47810 47811 47812 47813 47814 47815 47816 47817 47818 47819 47820 47821 # Execute function body 47822 47823 47824 47825 47826 47827 47828 47829 47830 47831 47832 47833 47834 47835 47836 47837 47838 47839 47840 47841 47842 47843 47844 47845 47846 47847 47848 47849 47850 47851 47852 47853 47854 47855 47856 47857 47858 47859 47860 47861 47862 47863 47864 47865 47866 47867 47868 47869 47870 # Execute function body 47871 47872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47873 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47874 supports=yes 47875 47876 saved_cflags="$CFLAGS" 47877 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 47878 ac_ext=c 47879 ac_cpp='$CPP $CPPFLAGS' 47880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47882 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47883 47884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47885 /* end confdefs.h. */ 47886 int i; 47887 _ACEOF 47888 if ac_fn_c_try_compile "$LINENO"; then : 47889 47890 else 47891 supports=no 47892 fi 47893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47894 ac_ext=cpp 47895 ac_cpp='$CXXCPP $CPPFLAGS' 47896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47899 47900 CFLAGS="$saved_cflags" 47901 47902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47903 $as_echo "$supports" >&6; } 47904 if test "x$supports" = "xyes" ; then 47905 : 47906 C_COMP_SUPPORTS="yes" 47907 else 47908 : 47909 C_COMP_SUPPORTS="no" 47910 fi 47911 47912 47913 47914 47915 47916 47917 47918 47919 47920 47921 47922 47923 47924 47925 47926 47927 47928 47929 47930 47931 47932 47933 47934 47935 47936 47937 47938 47939 47940 47941 47942 47943 47944 47945 47946 47947 47948 47949 47950 47951 47952 47953 47954 47955 47956 47957 47958 47959 47960 47961 47962 47963 47964 47965 47966 47967 47968 47969 47970 # Execute function body 47971 47972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47973 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47974 supports=yes 47975 47976 saved_cxxflags="$CXXFLAGS" 47977 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 47978 ac_ext=cpp 47979 ac_cpp='$CXXCPP $CPPFLAGS' 47980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47983 47984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47985 /* end confdefs.h. */ 47986 int i; 47987 _ACEOF 47988 if ac_fn_cxx_try_compile "$LINENO"; then : 47989 47990 else 47991 supports=no 47992 fi 47993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47994 ac_ext=cpp 47995 ac_cpp='$CXXCPP $CPPFLAGS' 47996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47999 48000 CXXFLAGS="$saved_cxxflags" 48001 48002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48003 $as_echo "$supports" >&6; } 48004 if test "x$supports" = "xyes" ; then 48005 : 48006 CXX_COMP_SUPPORTS="yes" 48007 else 48008 : 48009 CXX_COMP_SUPPORTS="no" 48010 fi 48011 48012 48013 48014 48015 48016 48017 48018 48019 48020 48021 48022 48023 48024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48025 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48026 supports=no 48027 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 48028 48029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48030 $as_echo "$supports" >&6; } 48031 if test "x$supports" = "xyes" ; then 48032 : 48033 HAS_CFLAG_OPTIMIZE_DEBUG=true 48034 else 48035 : 48036 HAS_CFLAG_OPTIMIZE_DEBUG=false 48037 fi 48038 48039 48040 48041 48042 48043 48044 48045 # "-z relro" supported in GNU binutils 2.17 and later 48046 LINKER_RELRO_FLAG="-Wl,-z,relro" 48047 48048 48049 48050 48051 48052 48053 48054 48055 48056 48057 48058 48059 48060 48061 48062 48063 48064 48065 48066 48067 48068 48069 48070 48071 48072 48073 48074 48075 48076 48077 48078 48079 48080 48081 48082 48083 48084 48085 48086 48087 48088 48089 48090 48091 48092 48093 48094 # Execute function body 48095 48096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 48097 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 48098 supports=yes 48099 48100 saved_ldflags="$LDFLAGS" 48101 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 48102 ac_ext=c 48103 ac_cpp='$CPP $CPPFLAGS' 48104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48106 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48107 48108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48109 /* end confdefs.h. */ 48110 48111 int 48112 main () 48113 { 48114 48115 ; 48116 return 0; 48117 } 48118 _ACEOF 48119 if ac_fn_c_try_link "$LINENO"; then : 48120 48121 else 48122 supports=no 48123 fi 48124 rm -f core conftest.err conftest.$ac_objext \ 48125 conftest$ac_exeext conftest.$ac_ext 48126 ac_ext=cpp 48127 ac_cpp='$CXXCPP $CPPFLAGS' 48128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48131 48132 LDFLAGS="$saved_ldflags" 48133 48134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48135 $as_echo "$supports" >&6; } 48136 if test "x$supports" = "xyes" ; then 48137 : 48138 HAS_LINKER_RELRO=true 48139 else 48140 : 48141 HAS_LINKER_RELRO=false 48142 fi 48143 48144 48145 48146 48147 48148 48149 48150 48151 48152 48153 48154 48155 48156 # "-z now" supported in GNU binutils 2.11 and later 48157 LINKER_NOW_FLAG="-Wl,-z,now" 48158 48159 48160 48161 48162 48163 48164 48165 48166 48167 48168 48169 48170 48171 48172 48173 48174 48175 48176 48177 48178 48179 48180 48181 48182 48183 48184 48185 48186 48187 48188 48189 48190 48191 48192 48193 48194 48195 48196 48197 48198 48199 48200 48201 48202 48203 48204 48205 # Execute function body 48206 48207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 48208 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 48209 supports=yes 48210 48211 saved_ldflags="$LDFLAGS" 48212 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 48213 ac_ext=c 48214 ac_cpp='$CPP $CPPFLAGS' 48215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48217 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48218 48219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48220 /* end confdefs.h. */ 48221 48222 int 48223 main () 48224 { 48225 48226 ; 48227 return 0; 48228 } 48229 _ACEOF 48230 if ac_fn_c_try_link "$LINENO"; then : 48231 48232 else 48233 supports=no 48234 fi 48235 rm -f core conftest.err conftest.$ac_objext \ 48236 conftest$ac_exeext conftest.$ac_ext 48237 ac_ext=cpp 48238 ac_cpp='$CXXCPP $CPPFLAGS' 48239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48242 48243 LDFLAGS="$saved_ldflags" 48244 48245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48246 $as_echo "$supports" >&6; } 48247 if test "x$supports" = "xyes" ; then 48248 : 48249 HAS_LINKER_NOW=true 48250 else 48251 : 48252 HAS_LINKER_NOW=false 48253 fi 48254 48255 48256 48257 48258 48259 48260 48261 48262 48263 48264 48265 48266 fi 48267 48268 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 48269 # in executable.' 48270 USING_BROKEN_SUSE_LD=no 48271 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 48272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 48273 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 48274 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 48275 $ECHO "int main() { }" > main.c 48276 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 48277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48278 $as_echo "no" >&6; } 48279 USING_BROKEN_SUSE_LD=no 48280 else 48281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48282 $as_echo "yes" >&6; } 48283 USING_BROKEN_SUSE_LD=yes 48284 fi 48285 $RM version-script.map main.c a.out 48286 fi 48287 48288 48289 # Setup hotspot lecagy names for toolchains 48290 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 48291 if test "x$TOOLCHAIN_TYPE" = xclang; then 48292 HOTSPOT_TOOLCHAIN_TYPE=gcc 48293 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48294 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 48295 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48296 HOTSPOT_TOOLCHAIN_TYPE=visCPP 48297 fi 48298 48299 48300 48301 # Setup the JTReg Regression Test Harness. 48302 48303 48304 # Check whether --with-jtreg was given. 48305 if test "${with_jtreg+set}" = set; then : 48306 withval=$with_jtreg; 48307 else 48308 with_jtreg=no 48309 fi 48310 48311 48312 if test "x$with_jtreg" = xno; then 48313 # jtreg disabled 48314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 48315 $as_echo_n "checking for jtreg... " >&6; } 48316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48317 $as_echo "no" >&6; } 48318 else 48319 if test "x$with_jtreg" != xyes; then 48320 # with path specified. 48321 JT_HOME="$with_jtreg" 48322 fi 48323 48324 if test "x$JT_HOME" != x; then 48325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 48326 $as_echo_n "checking for jtreg... " >&6; } 48327 48328 # use JT_HOME enviroment var. 48329 48330 # Only process if variable expands to non-empty 48331 48332 if test "x$JT_HOME" != x; then 48333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48334 48335 # Input might be given as Windows format, start by converting to 48336 # unix format. 48337 path="$JT_HOME" 48338 new_path=`$CYGPATH -u "$path"` 48339 48340 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48341 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48342 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48343 # "foo.exe" is OK but "foo" is an error. 48344 # 48345 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48346 # It is also a way to make sure we got the proper file name for the real test later on. 48347 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48348 if test "x$test_shortpath" = x; then 48349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 48350 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 48351 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 48352 fi 48353 48354 # Call helper function which possibly converts this using DOS-style short mode. 48355 # If so, the updated path is stored in $new_path. 48356 48357 input_path="$new_path" 48358 # Check if we need to convert this using DOS-style short mode. If the path 48359 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48360 # take no chances and rewrite it. 48361 # Note: m4 eats our [], so we need to use [ and ] instead. 48362 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48363 if test "x$has_forbidden_chars" != x; then 48364 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48365 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48366 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48367 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48368 # Going to short mode and back again did indeed matter. Since short mode is 48369 # case insensitive, let's make it lowercase to improve readability. 48370 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48371 # Now convert it back to Unix-style (cygpath) 48372 input_path=`$CYGPATH -u "$shortmode_path"` 48373 new_path="$input_path" 48374 fi 48375 fi 48376 48377 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48378 if test "x$test_cygdrive_prefix" = x; then 48379 # As a simple fix, exclude /usr/bin since it's not a real path. 48380 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48381 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48382 # a path prefixed by /cygdrive for fixpath to work. 48383 new_path="$CYGWIN_ROOT_PATH$input_path" 48384 fi 48385 fi 48386 48387 48388 if test "x$path" != "x$new_path"; then 48389 JT_HOME="$new_path" 48390 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48391 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48392 fi 48393 48394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48395 48396 path="$JT_HOME" 48397 has_colon=`$ECHO $path | $GREP ^.:` 48398 new_path="$path" 48399 if test "x$has_colon" = x; then 48400 # Not in mixed or Windows style, start by that. 48401 new_path=`cmd //c echo $path` 48402 fi 48403 48404 48405 input_path="$new_path" 48406 # Check if we need to convert this using DOS-style short mode. If the path 48407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48408 # take no chances and rewrite it. 48409 # Note: m4 eats our [], so we need to use [ and ] instead. 48410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48411 if test "x$has_forbidden_chars" != x; then 48412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48413 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48414 fi 48415 48416 48417 windows_path="$new_path" 48418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48419 unix_path=`$CYGPATH -u "$windows_path"` 48420 new_path="$unix_path" 48421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48423 new_path="$unix_path" 48424 fi 48425 48426 if test "x$path" != "x$new_path"; then 48427 JT_HOME="$new_path" 48428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48429 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48430 fi 48431 48432 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48433 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48434 48435 else 48436 # We're on a unix platform. Hooray! :) 48437 path="$JT_HOME" 48438 has_space=`$ECHO "$path" | $GREP " "` 48439 if test "x$has_space" != x; then 48440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 48441 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 48442 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48443 fi 48444 48445 # Use eval to expand a potential ~ 48446 eval path="$path" 48447 if test ! -f "$path" && test ! -d "$path"; then 48448 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 48449 fi 48450 48451 if test -d "$path"; then 48452 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 48453 else 48454 dir="`$DIRNAME "$path"`" 48455 base="`$BASENAME "$path"`" 48456 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 48457 fi 48458 fi 48459 fi 48460 48461 48462 # jtreg win32 script works for everybody 48463 JTREGEXE="$JT_HOME/bin/jtreg" 48464 48465 if test ! -f "$JTREGEXE"; then 48466 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 48467 fi 48468 48469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48470 $as_echo "$JTREGEXE" >&6; } 48471 else 48472 # try to find jtreg on path 48473 48474 48475 48476 # Publish this variable in the help. 48477 48478 48479 if [ -z "${JTREGEXE+x}" ]; then 48480 # The variable is not set by user, try to locate tool using the code snippet 48481 for ac_prog in jtreg 48482 do 48483 # Extract the first word of "$ac_prog", so it can be a program name with args. 48484 set dummy $ac_prog; ac_word=$2 48485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48486 $as_echo_n "checking for $ac_word... " >&6; } 48487 if ${ac_cv_path_JTREGEXE+:} false; then : 48488 $as_echo_n "(cached) " >&6 48489 else 48490 case $JTREGEXE in 48491 [\\/]* | ?:[\\/]*) 48492 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48493 ;; 48494 *) 48495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48496 for as_dir in $PATH 48497 do 48498 IFS=$as_save_IFS 48499 test -z "$as_dir" && as_dir=. 48500 for ac_exec_ext in '' $ac_executable_extensions; do 48501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48502 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48504 break 2 48505 fi 48506 done 48507 done 48508 IFS=$as_save_IFS 48509 48510 ;; 48511 esac 48512 fi 48513 JTREGEXE=$ac_cv_path_JTREGEXE 48514 if test -n "$JTREGEXE"; then 48515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48516 $as_echo "$JTREGEXE" >&6; } 48517 else 48518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48519 $as_echo "no" >&6; } 48520 fi 48521 48522 48523 test -n "$JTREGEXE" && break 48524 done 48525 48526 else 48527 # The variable is set, but is it from the command line or the environment? 48528 48529 # Try to remove the string !JTREGEXE! from our list. 48530 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 48531 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48532 # If it failed, the variable was not from the command line. Ignore it, 48533 # but warn the user (except for BASH, which is always set by the calling BASH). 48534 if test "xJTREGEXE" != xBASH; then 48535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 48536 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 48537 fi 48538 # Try to locate tool using the code snippet 48539 for ac_prog in jtreg 48540 do 48541 # Extract the first word of "$ac_prog", so it can be a program name with args. 48542 set dummy $ac_prog; ac_word=$2 48543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48544 $as_echo_n "checking for $ac_word... " >&6; } 48545 if ${ac_cv_path_JTREGEXE+:} false; then : 48546 $as_echo_n "(cached) " >&6 48547 else 48548 case $JTREGEXE in 48549 [\\/]* | ?:[\\/]*) 48550 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48551 ;; 48552 *) 48553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48554 for as_dir in $PATH 48555 do 48556 IFS=$as_save_IFS 48557 test -z "$as_dir" && as_dir=. 48558 for ac_exec_ext in '' $ac_executable_extensions; do 48559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48560 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48562 break 2 48563 fi 48564 done 48565 done 48566 IFS=$as_save_IFS 48567 48568 ;; 48569 esac 48570 fi 48571 JTREGEXE=$ac_cv_path_JTREGEXE 48572 if test -n "$JTREGEXE"; then 48573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48574 $as_echo "$JTREGEXE" >&6; } 48575 else 48576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48577 $as_echo "no" >&6; } 48578 fi 48579 48580 48581 test -n "$JTREGEXE" && break 48582 done 48583 48584 else 48585 # If it succeeded, then it was overridden by the user. We will use it 48586 # for the tool. 48587 48588 # First remove it from the list of overridden variables, so we can test 48589 # for unknown variables in the end. 48590 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48591 48592 # Check if we try to supply an empty value 48593 if test "x$JTREGEXE" = x; then 48594 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 48595 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 48596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48597 $as_echo_n "checking for JTREGEXE... " >&6; } 48598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48599 $as_echo "disabled" >&6; } 48600 else 48601 # Check if the provided tool contains a complete path. 48602 tool_specified="$JTREGEXE" 48603 tool_basename="${tool_specified##*/}" 48604 if test "x$tool_basename" = "x$tool_specified"; then 48605 # A command without a complete path is provided, search $PATH. 48606 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 48607 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 48608 # Extract the first word of "$tool_basename", so it can be a program name with args. 48609 set dummy $tool_basename; ac_word=$2 48610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48611 $as_echo_n "checking for $ac_word... " >&6; } 48612 if ${ac_cv_path_JTREGEXE+:} false; then : 48613 $as_echo_n "(cached) " >&6 48614 else 48615 case $JTREGEXE in 48616 [\\/]* | ?:[\\/]*) 48617 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48618 ;; 48619 *) 48620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48621 for as_dir in $PATH 48622 do 48623 IFS=$as_save_IFS 48624 test -z "$as_dir" && as_dir=. 48625 for ac_exec_ext in '' $ac_executable_extensions; do 48626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48627 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48629 break 2 48630 fi 48631 done 48632 done 48633 IFS=$as_save_IFS 48634 48635 ;; 48636 esac 48637 fi 48638 JTREGEXE=$ac_cv_path_JTREGEXE 48639 if test -n "$JTREGEXE"; then 48640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48641 $as_echo "$JTREGEXE" >&6; } 48642 else 48643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48644 $as_echo "no" >&6; } 48645 fi 48646 48647 48648 if test "x$JTREGEXE" = x; then 48649 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48650 fi 48651 else 48652 # Otherwise we believe it is a complete path. Use it as it is. 48653 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 48654 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 48655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48656 $as_echo_n "checking for JTREGEXE... " >&6; } 48657 if test ! -x "$tool_specified"; then 48658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48659 $as_echo "not found" >&6; } 48660 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 48661 fi 48662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48663 $as_echo "$tool_specified" >&6; } 48664 fi 48665 fi 48666 fi 48667 48668 fi 48669 48670 48671 48672 if test "x$JTREGEXE" = x; then 48673 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 48674 fi 48675 48676 48677 JT_HOME="`$DIRNAME $JTREGEXE`" 48678 fi 48679 fi 48680 48681 48682 48683 48684 48685 48686 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 48687 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 48688 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 48689 # commands produced by the link step (currently AIX only) 48690 if test "x$TOOLCHAIN_TYPE" = xxlc; then 48691 COMPILER_TARGET_BITS_FLAG="-q" 48692 COMPILER_COMMAND_FILE_FLAG="-f" 48693 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 48694 else 48695 COMPILER_TARGET_BITS_FLAG="-m" 48696 COMPILER_COMMAND_FILE_FLAG="@" 48697 COMPILER_BINDCMD_FILE_FLAG="" 48698 48699 # The solstudio linker does not support @-files. 48700 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48701 COMPILER_COMMAND_FILE_FLAG= 48702 fi 48703 48704 # Check if @file is supported by gcc 48705 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 48707 $as_echo_n "checking if @file is supported by gcc... " >&6; } 48708 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 48709 $ECHO "" "--version" > command.file 48710 if $CXX @command.file 2>&5 >&5; then 48711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48712 $as_echo "yes" >&6; } 48713 COMPILER_COMMAND_FILE_FLAG="@" 48714 else 48715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48716 $as_echo "no" >&6; } 48717 COMPILER_COMMAND_FILE_FLAG= 48718 fi 48719 $RM command.file 48720 fi 48721 fi 48722 48723 48724 48725 48726 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 48727 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48728 ARFLAGS="-r" 48729 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48730 ARFLAGS="-X64" 48731 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 48732 # lib.exe is used as AR to create static libraries. 48733 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 48734 else 48735 ARFLAGS="" 48736 fi 48737 48738 48739 ## Setup strip. 48740 # FIXME: should this really be per platform, or should it be per toolchain type? 48741 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 48742 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 48743 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48744 STRIPFLAGS="-g" 48745 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 48746 STRIPFLAGS="-x" 48747 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 48748 STRIPFLAGS="-S" 48749 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48750 STRIPFLAGS="-X32_64" 48751 fi 48752 48753 48754 48755 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48756 CC_OUT_OPTION=-Fo 48757 EXE_OUT_OPTION=-out: 48758 LD_OUT_OPTION=-out: 48759 AR_OUT_OPTION=-out: 48760 else 48761 # The option used to specify the target .o,.a or .so file. 48762 # When compiling, how to specify the to be created object file. 48763 CC_OUT_OPTION='-o$(SPACE)' 48764 # When linking, how to specify the to be created executable. 48765 EXE_OUT_OPTION='-o$(SPACE)' 48766 # When linking, how to specify the to be created dynamically linkable library. 48767 LD_OUT_OPTION='-o$(SPACE)' 48768 # When archiving, how to specify the to be create static archive for object files. 48769 AR_OUT_OPTION='rcs$(SPACE)' 48770 fi 48771 48772 48773 48774 48775 48776 # On Windows, we need to set RC flags. 48777 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48778 RC_FLAGS="-nologo -l0x409" 48779 JVM_RCFLAGS="-nologo" 48780 if test "x$DEBUG_LEVEL" = xrelease; then 48781 RC_FLAGS="$RC_FLAGS -DNDEBUG" 48782 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 48783 fi 48784 48785 # The version variables used to create RC_FLAGS may be overridden 48786 # in a custom configure script, or possibly the command line. 48787 # Let those variables be expanded at make time in spec.gmk. 48788 # The \$ are escaped to the shell, and the $(...) variables 48789 # are evaluated by make. 48790 RC_FLAGS="$RC_FLAGS \ 48791 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 48792 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 48793 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 48794 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 48795 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 48796 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 48797 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 48798 48799 JVM_RCFLAGS="$JVM_RCFLAGS \ 48800 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 48801 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 48802 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 48803 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 48804 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 48805 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 48806 -D\"HS_FNAME=jvm.dll\" \ 48807 -D\"HS_INTERNAL_NAME=jvm\"" 48808 fi 48809 48810 48811 48812 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48813 # silence copyright notice and other headers. 48814 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 48815 fi 48816 48817 48818 # Now we can test some aspects on the target using configure macros. 48819 48820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 48821 $as_echo_n "checking for ANSI C header files... " >&6; } 48822 if ${ac_cv_header_stdc+:} false; then : 48823 $as_echo_n "(cached) " >&6 48824 else 48825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48826 /* end confdefs.h. */ 48827 #include <stdlib.h> 48828 #include <stdarg.h> 48829 #include <string.h> 48830 #include <float.h> 48831 48832 int 48833 main () 48834 { 48835 48836 ; 48837 return 0; 48838 } 48839 _ACEOF 48840 if ac_fn_cxx_try_compile "$LINENO"; then : 48841 ac_cv_header_stdc=yes 48842 else 48843 ac_cv_header_stdc=no 48844 fi 48845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48846 48847 if test $ac_cv_header_stdc = yes; then 48848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 48849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48850 /* end confdefs.h. */ 48851 #include <string.h> 48852 48853 _ACEOF 48854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48855 $EGREP "memchr" >/dev/null 2>&1; then : 48856 48857 else 48858 ac_cv_header_stdc=no 48859 fi 48860 rm -f conftest* 48861 48862 fi 48863 48864 if test $ac_cv_header_stdc = yes; then 48865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 48866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48867 /* end confdefs.h. */ 48868 #include <stdlib.h> 48869 48870 _ACEOF 48871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48872 $EGREP "free" >/dev/null 2>&1; then : 48873 48874 else 48875 ac_cv_header_stdc=no 48876 fi 48877 rm -f conftest* 48878 48879 fi 48880 48881 if test $ac_cv_header_stdc = yes; then 48882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 48883 if test "$cross_compiling" = yes; then : 48884 : 48885 else 48886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48887 /* end confdefs.h. */ 48888 #include <ctype.h> 48889 #include <stdlib.h> 48890 #if ((' ' & 0x0FF) == 0x020) 48891 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 48892 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 48893 #else 48894 # define ISLOWER(c) \ 48895 (('a' <= (c) && (c) <= 'i') \ 48896 || ('j' <= (c) && (c) <= 'r') \ 48897 || ('s' <= (c) && (c) <= 'z')) 48898 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 48899 #endif 48900 48901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 48902 int 48903 main () 48904 { 48905 int i; 48906 for (i = 0; i < 256; i++) 48907 if (XOR (islower (i), ISLOWER (i)) 48908 || toupper (i) != TOUPPER (i)) 48909 return 2; 48910 return 0; 48911 } 48912 _ACEOF 48913 if ac_fn_cxx_try_run "$LINENO"; then : 48914 48915 else 48916 ac_cv_header_stdc=no 48917 fi 48918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48919 conftest.$ac_objext conftest.beam conftest.$ac_ext 48920 fi 48921 48922 fi 48923 fi 48924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 48925 $as_echo "$ac_cv_header_stdc" >&6; } 48926 if test $ac_cv_header_stdc = yes; then 48927 48928 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 48929 48930 fi 48931 48932 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 48933 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 48934 inttypes.h stdint.h unistd.h 48935 do : 48936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 48937 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 48938 " 48939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 48940 cat >>confdefs.h <<_ACEOF 48941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 48942 _ACEOF 48943 48944 fi 48945 48946 done 48947 48948 48949 48950 ############################################################################### 48951 # 48952 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 48953 # (The JVM can use 32 or 64 bit Java pointers but that decision 48954 # is made at runtime.) 48955 # 48956 48957 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 48958 # Always specify -m flag on Solaris 48959 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 48960 48961 # When we add flags to the "official" CFLAGS etc, we need to 48962 # keep track of these additions in ADDED_CFLAGS etc. These 48963 # will later be checked to make sure only controlled additions 48964 # have been made to CFLAGS etc. 48965 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48966 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48967 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48968 48969 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48970 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48971 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48972 48973 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48974 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48975 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48976 48977 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48978 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48979 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48980 48981 elif test "x$COMPILE_TYPE" = xreduced; then 48982 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 48983 # Specify -m if running reduced on unix platforms 48984 48985 # When we add flags to the "official" CFLAGS etc, we need to 48986 # keep track of these additions in ADDED_CFLAGS etc. These 48987 # will later be checked to make sure only controlled additions 48988 # have been made to CFLAGS etc. 48989 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48990 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48991 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48992 48993 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48994 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48995 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48996 48997 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48998 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48999 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 49000 49001 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 49002 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 49003 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 49004 49005 fi 49006 fi 49007 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49008 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49009 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49010 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49011 fi 49012 49013 # Make compilation sanity check 49014 for ac_header in stdio.h 49015 do : 49016 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 49017 if test "x$ac_cv_header_stdio_h" = xyes; then : 49018 cat >>confdefs.h <<_ACEOF 49019 #define HAVE_STDIO_H 1 49020 _ACEOF 49021 49022 else 49023 49024 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 49025 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 49026 if test "x$COMPILE_TYPE" = xreduced; then 49027 49028 # Print a helpful message on how to acquire the necessary build dependency. 49029 # reduced is the help tag: freetype, cups, alsa etc 49030 MISSING_DEPENDENCY=reduced 49031 49032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49033 cygwin_help $MISSING_DEPENDENCY 49034 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49035 msys_help $MISSING_DEPENDENCY 49036 else 49037 PKGHANDLER_COMMAND= 49038 49039 case $PKGHANDLER in 49040 apt-get) 49041 apt_help $MISSING_DEPENDENCY ;; 49042 yum) 49043 yum_help $MISSING_DEPENDENCY ;; 49044 brew) 49045 brew_help $MISSING_DEPENDENCY ;; 49046 port) 49047 port_help $MISSING_DEPENDENCY ;; 49048 pkgutil) 49049 pkgutil_help $MISSING_DEPENDENCY ;; 49050 pkgadd) 49051 pkgadd_help $MISSING_DEPENDENCY ;; 49052 esac 49053 49054 if test "x$PKGHANDLER_COMMAND" != x; then 49055 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 49056 fi 49057 fi 49058 49059 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 49060 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 49061 elif test "x$COMPILE_TYPE" = xcross; then 49062 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 49063 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 49064 fi 49065 as_fn_error $? "Cannot continue." "$LINENO" 5 49066 49067 fi 49068 49069 done 49070 49071 49072 # The cast to long int works around a bug in the HP C Compiler 49073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 49074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 49075 # This bug is HP SR number 8606223364. 49076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 49077 $as_echo_n "checking size of int *... " >&6; } 49078 if ${ac_cv_sizeof_int_p+:} false; then : 49079 $as_echo_n "(cached) " >&6 49080 else 49081 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 49082 49083 else 49084 if test "$ac_cv_type_int_p" = yes; then 49085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49087 as_fn_error 77 "cannot compute sizeof (int *) 49088 See \`config.log' for more details" "$LINENO" 5; } 49089 else 49090 ac_cv_sizeof_int_p=0 49091 fi 49092 fi 49093 49094 fi 49095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 49096 $as_echo "$ac_cv_sizeof_int_p" >&6; } 49097 49098 49099 49100 cat >>confdefs.h <<_ACEOF 49101 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 49102 _ACEOF 49103 49104 49105 49106 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 49107 if test "x$ac_cv_sizeof_int_p" = x; then 49108 # The test failed, lets stick to the assumed value. 49109 { $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 49110 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 49111 else 49112 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 49113 49114 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 49115 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 49116 # Let's try to implicitely set the compilers target architecture and retry the test 49117 { $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 49118 $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;} 49119 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 49120 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 49121 49122 # When we add flags to the "official" CFLAGS etc, we need to 49123 # keep track of these additions in ADDED_CFLAGS etc. These 49124 # will later be checked to make sure only controlled additions 49125 # have been made to CFLAGS etc. 49126 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49127 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49128 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49129 49130 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 49131 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 49132 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 49133 49134 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 49135 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 49136 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 49137 49138 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 49139 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 49140 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 49141 49142 49143 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 49144 unset ac_cv_sizeof_int_p 49145 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 49146 cat >>confdefs.h <<_ACEOF 49147 #undef SIZEOF_INT_P 49148 _ACEOF 49149 49150 # The cast to long int works around a bug in the HP C Compiler 49151 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 49152 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 49153 # This bug is HP SR number 8606223364. 49154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 49155 $as_echo_n "checking size of int *... " >&6; } 49156 if ${ac_cv_sizeof_int_p+:} false; then : 49157 $as_echo_n "(cached) " >&6 49158 else 49159 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 49160 49161 else 49162 if test "$ac_cv_type_int_p" = yes; then 49163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49165 as_fn_error 77 "cannot compute sizeof (int *) 49166 See \`config.log' for more details" "$LINENO" 5; } 49167 else 49168 ac_cv_sizeof_int_p=0 49169 fi 49170 fi 49171 49172 fi 49173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 49174 $as_echo "$ac_cv_sizeof_int_p" >&6; } 49175 49176 49177 49178 cat >>confdefs.h <<_ACEOF 49179 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 49180 _ACEOF 49181 49182 49183 49184 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 49185 49186 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 49187 { $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 49188 $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;} 49189 if test "x$COMPILE_TYPE" = xreduced; then 49190 49191 # Print a helpful message on how to acquire the necessary build dependency. 49192 # reduced is the help tag: freetype, cups, alsa etc 49193 MISSING_DEPENDENCY=reduced 49194 49195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49196 cygwin_help $MISSING_DEPENDENCY 49197 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49198 msys_help $MISSING_DEPENDENCY 49199 else 49200 PKGHANDLER_COMMAND= 49201 49202 case $PKGHANDLER in 49203 apt-get) 49204 apt_help $MISSING_DEPENDENCY ;; 49205 yum) 49206 yum_help $MISSING_DEPENDENCY ;; 49207 brew) 49208 brew_help $MISSING_DEPENDENCY ;; 49209 port) 49210 port_help $MISSING_DEPENDENCY ;; 49211 pkgutil) 49212 pkgutil_help $MISSING_DEPENDENCY ;; 49213 pkgadd) 49214 pkgadd_help $MISSING_DEPENDENCY ;; 49215 esac 49216 49217 if test "x$PKGHANDLER_COMMAND" != x; then 49218 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 49219 fi 49220 fi 49221 49222 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 49223 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 49224 elif test "x$COMPILE_TYPE" = xcross; then 49225 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 49226 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 49227 fi 49228 as_fn_error $? "Cannot continue." "$LINENO" 5 49229 fi 49230 fi 49231 fi 49232 49233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 49234 $as_echo_n "checking for target address size... " >&6; } 49235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 49236 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 49237 49238 49239 ############################################################################### 49240 # 49241 # Is the target little of big endian? 49242 # 49243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 49244 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 49245 if ${ac_cv_c_bigendian+:} false; then : 49246 $as_echo_n "(cached) " >&6 49247 else 49248 ac_cv_c_bigendian=unknown 49249 # See if we're dealing with a universal compiler. 49250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49251 /* end confdefs.h. */ 49252 #ifndef __APPLE_CC__ 49253 not a universal capable compiler 49254 #endif 49255 typedef int dummy; 49256 49257 _ACEOF 49258 if ac_fn_cxx_try_compile "$LINENO"; then : 49259 49260 # Check for potential -arch flags. It is not universal unless 49261 # there are at least two -arch flags with different values. 49262 ac_arch= 49263 ac_prev= 49264 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 49265 if test -n "$ac_prev"; then 49266 case $ac_word in 49267 i?86 | x86_64 | ppc | ppc64) 49268 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 49269 ac_arch=$ac_word 49270 else 49271 ac_cv_c_bigendian=universal 49272 break 49273 fi 49274 ;; 49275 esac 49276 ac_prev= 49277 elif test "x$ac_word" = "x-arch"; then 49278 ac_prev=arch 49279 fi 49280 done 49281 fi 49282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49283 if test $ac_cv_c_bigendian = unknown; then 49284 # See if sys/param.h defines the BYTE_ORDER macro. 49285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49286 /* end confdefs.h. */ 49287 #include <sys/types.h> 49288 #include <sys/param.h> 49289 49290 int 49291 main () 49292 { 49293 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 49294 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 49295 && LITTLE_ENDIAN) 49296 bogus endian macros 49297 #endif 49298 49299 ; 49300 return 0; 49301 } 49302 _ACEOF 49303 if ac_fn_cxx_try_compile "$LINENO"; then : 49304 # It does; now see whether it defined to BIG_ENDIAN or not. 49305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49306 /* end confdefs.h. */ 49307 #include <sys/types.h> 49308 #include <sys/param.h> 49309 49310 int 49311 main () 49312 { 49313 #if BYTE_ORDER != BIG_ENDIAN 49314 not big endian 49315 #endif 49316 49317 ; 49318 return 0; 49319 } 49320 _ACEOF 49321 if ac_fn_cxx_try_compile "$LINENO"; then : 49322 ac_cv_c_bigendian=yes 49323 else 49324 ac_cv_c_bigendian=no 49325 fi 49326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49327 fi 49328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49329 fi 49330 if test $ac_cv_c_bigendian = unknown; then 49331 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 49332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49333 /* end confdefs.h. */ 49334 #include <limits.h> 49335 49336 int 49337 main () 49338 { 49339 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 49340 bogus endian macros 49341 #endif 49342 49343 ; 49344 return 0; 49345 } 49346 _ACEOF 49347 if ac_fn_cxx_try_compile "$LINENO"; then : 49348 # It does; now see whether it defined to _BIG_ENDIAN or not. 49349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49350 /* end confdefs.h. */ 49351 #include <limits.h> 49352 49353 int 49354 main () 49355 { 49356 #ifndef _BIG_ENDIAN 49357 not big endian 49358 #endif 49359 49360 ; 49361 return 0; 49362 } 49363 _ACEOF 49364 if ac_fn_cxx_try_compile "$LINENO"; then : 49365 ac_cv_c_bigendian=yes 49366 else 49367 ac_cv_c_bigendian=no 49368 fi 49369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49370 fi 49371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49372 fi 49373 if test $ac_cv_c_bigendian = unknown; then 49374 # Compile a test program. 49375 if test "$cross_compiling" = yes; then : 49376 # Try to guess by grepping values from an object file. 49377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49378 /* end confdefs.h. */ 49379 short int ascii_mm[] = 49380 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 49381 short int ascii_ii[] = 49382 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 49383 int use_ascii (int i) { 49384 return ascii_mm[i] + ascii_ii[i]; 49385 } 49386 short int ebcdic_ii[] = 49387 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 49388 short int ebcdic_mm[] = 49389 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 49390 int use_ebcdic (int i) { 49391 return ebcdic_mm[i] + ebcdic_ii[i]; 49392 } 49393 extern int foo; 49394 49395 int 49396 main () 49397 { 49398 return use_ascii (foo) == use_ebcdic (foo); 49399 ; 49400 return 0; 49401 } 49402 _ACEOF 49403 if ac_fn_cxx_try_compile "$LINENO"; then : 49404 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 49405 ac_cv_c_bigendian=yes 49406 fi 49407 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 49408 if test "$ac_cv_c_bigendian" = unknown; then 49409 ac_cv_c_bigendian=no 49410 else 49411 # finding both strings is unlikely to happen, but who knows? 49412 ac_cv_c_bigendian=unknown 49413 fi 49414 fi 49415 fi 49416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49417 else 49418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49419 /* end confdefs.h. */ 49420 $ac_includes_default 49421 int 49422 main () 49423 { 49424 49425 /* Are we little or big endian? From Harbison&Steele. */ 49426 union 49427 { 49428 long int l; 49429 char c[sizeof (long int)]; 49430 } u; 49431 u.l = 1; 49432 return u.c[sizeof (long int) - 1] == 1; 49433 49434 ; 49435 return 0; 49436 } 49437 _ACEOF 49438 if ac_fn_cxx_try_run "$LINENO"; then : 49439 ac_cv_c_bigendian=no 49440 else 49441 ac_cv_c_bigendian=yes 49442 fi 49443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 49444 conftest.$ac_objext conftest.beam conftest.$ac_ext 49445 fi 49446 49447 fi 49448 fi 49449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 49450 $as_echo "$ac_cv_c_bigendian" >&6; } 49451 case $ac_cv_c_bigendian in #( 49452 yes) 49453 ENDIAN="big";; #( 49454 no) 49455 ENDIAN="little" ;; #( 49456 universal) 49457 ENDIAN="universal_endianness" 49458 ;; #( 49459 *) 49460 ENDIAN="unknown" ;; 49461 esac 49462 49463 49464 if test "x$ENDIAN" = xuniversal_endianness; then 49465 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 49466 fi 49467 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 49468 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 49469 fi 49470 49471 49472 # Configure flags for the tools 49473 49474 ############################################################################### 49475 # 49476 # How to compile shared libraries. 49477 # 49478 49479 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49480 PICFLAG="-fPIC" 49481 C_FLAG_REORDER='' 49482 CXX_FLAG_REORDER='' 49483 49484 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49485 # Linking is different on MacOSX 49486 if test "x$STATIC_BUILD" = xtrue; then 49487 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 49488 else 49489 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49490 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49491 fi 49492 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 49493 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49494 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49495 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49496 else 49497 # Default works for linux, might work on other platforms as well. 49498 SHARED_LIBRARY_FLAGS='-shared' 49499 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 49500 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49501 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49502 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49503 fi 49504 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49505 C_FLAG_REORDER='' 49506 CXX_FLAG_REORDER='' 49507 49508 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49509 # Linking is different on MacOSX 49510 PICFLAG='' 49511 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49512 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 49513 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49514 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49515 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49516 49517 if test "x$STATIC_BUILD" = xfalse; then 49518 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 49519 fi 49520 else 49521 # Default works for linux, might work on other platforms as well. 49522 PICFLAG='-fPIC' 49523 SHARED_LIBRARY_FLAGS='-shared' 49524 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 49525 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49526 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49527 49528 # arm specific settings 49529 if test "x$OPENJDK_TARGET_CPU" = "xarm"; then 49530 # '-Wl,-z,origin' isn't used on arm. 49531 SET_SHARED_LIBRARY_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 49532 else 49533 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49534 fi 49535 49536 fi 49537 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49538 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 49539 PICFLAG="-xcode=pic32" 49540 else 49541 PICFLAG="-KPIC" 49542 fi 49543 C_FLAG_REORDER='-xF' 49544 CXX_FLAG_REORDER='-xF' 49545 SHARED_LIBRARY_FLAGS="-G" 49546 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 49547 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49548 SET_SHARED_LIBRARY_NAME='-h $1' 49549 SET_SHARED_LIBRARY_MAPFILE='-M$1' 49550 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49551 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 49552 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 49553 # will have to patch this single instruction with a call to some out-of-order code which 49554 # does the load from the TOC. This is of course slow. But in that case we also would have 49555 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 49556 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 49557 # can be patched directly by the linker and does not require a jump to out-of-order code. 49558 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 49559 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 49560 # loads for accessing a global variable). But there are rumors that this may be seen as a 49561 # 'performance feature' because of improved code locality of the symbols used in a 49562 # compilation unit. 49563 PICFLAG="-qpic" 49564 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49565 C_FLAG_REORDER='' 49566 CXX_FLAG_REORDER='' 49567 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 49568 SET_EXECUTABLE_ORIGIN="" 49569 SET_SHARED_LIBRARY_ORIGIN='' 49570 SET_SHARED_LIBRARY_NAME='' 49571 SET_SHARED_LIBRARY_MAPFILE='' 49572 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49573 PICFLAG="" 49574 C_FLAG_REORDER='' 49575 CXX_FLAG_REORDER='' 49576 SHARED_LIBRARY_FLAGS="-dll" 49577 SET_EXECUTABLE_ORIGIN='' 49578 SET_SHARED_LIBRARY_ORIGIN='' 49579 SET_SHARED_LIBRARY_NAME='' 49580 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 49581 fi 49582 49583 49584 49585 49586 49587 49588 49589 49590 49591 # The (cross) compiler is now configured, we can now test capabilities 49592 # of the target platform. 49593 49594 49595 49596 ############################################################################### 49597 # 49598 # Setup the opt flags for different compilers 49599 # and different operating systems. 49600 # 49601 49602 # FIXME: this was indirectly the old default, but just inherited. 49603 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49604 # C_FLAG_DEPS="-MMD -MF" 49605 # fi 49606 49607 # Generate make dependency files 49608 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49609 C_FLAG_DEPS="-MMD -MF" 49610 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49611 C_FLAG_DEPS="-MMD -MF" 49612 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49613 C_FLAG_DEPS="-xMMD -xMF" 49614 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49615 C_FLAG_DEPS="-qmakedep=gcc -MF" 49616 fi 49617 CXX_FLAG_DEPS="$C_FLAG_DEPS" 49618 49619 49620 49621 # Debug symbols 49622 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49623 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 49624 # reduce from default "-g2" option to save space 49625 CFLAGS_DEBUG_SYMBOLS="-g1" 49626 CXXFLAGS_DEBUG_SYMBOLS="-g1" 49627 else 49628 CFLAGS_DEBUG_SYMBOLS="-g" 49629 CXXFLAGS_DEBUG_SYMBOLS="-g" 49630 fi 49631 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49632 CFLAGS_DEBUG_SYMBOLS="-g" 49633 CXXFLAGS_DEBUG_SYMBOLS="-g" 49634 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49635 CFLAGS_DEBUG_SYMBOLS="-g -xs" 49636 # -g0 enables debug symbols without disabling inlining. 49637 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 49638 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49639 CFLAGS_DEBUG_SYMBOLS="-g" 49640 CXXFLAGS_DEBUG_SYMBOLS="-g" 49641 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49642 CFLAGS_DEBUG_SYMBOLS="-Zi" 49643 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 49644 fi 49645 49646 49647 49648 # Debug symbols for JVM_CFLAGS 49649 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49650 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 49651 if test "x$DEBUG_LEVEL" = xslowdebug; then 49652 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49653 else 49654 # -g0 does not disable inlining, which -g does. 49655 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 49656 fi 49657 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49658 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 49659 else 49660 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49661 fi 49662 49663 49664 # bounds, memory and behavior checking options 49665 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49666 case $DEBUG_LEVEL in 49667 release ) 49668 # no adjustment 49669 ;; 49670 fastdebug ) 49671 # no adjustment 49672 ;; 49673 slowdebug ) 49674 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 49675 # get's added conditionally on whether we produce debug symbols or not. 49676 # This is most likely not really correct. 49677 49678 # Add runtime stack smashing and undefined behavior checks. 49679 # Not all versions of gcc support -fstack-protector 49680 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 49681 49682 49683 49684 49685 49686 49687 49688 49689 49690 49691 49692 49693 49694 49695 49696 49697 49698 49699 49700 49701 49702 49703 49704 49705 49706 49707 49708 49709 49710 49711 49712 49713 49714 49715 49716 49717 49718 49719 49720 49721 49722 49723 # Execute function body 49724 49725 49726 49727 49728 49729 49730 49731 49732 49733 49734 49735 49736 49737 49738 49739 49740 49741 49742 49743 49744 49745 49746 49747 49748 49749 49750 49751 49752 49753 49754 49755 49756 49757 49758 49759 49760 49761 49762 49763 49764 49765 49766 49767 49768 49769 49770 49771 49772 # Execute function body 49773 49774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49775 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49776 supports=yes 49777 49778 saved_cflags="$CFLAGS" 49779 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 49780 ac_ext=c 49781 ac_cpp='$CPP $CPPFLAGS' 49782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49784 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49785 49786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49787 /* end confdefs.h. */ 49788 int i; 49789 _ACEOF 49790 if ac_fn_c_try_compile "$LINENO"; then : 49791 49792 else 49793 supports=no 49794 fi 49795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49796 ac_ext=cpp 49797 ac_cpp='$CXXCPP $CPPFLAGS' 49798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49801 49802 CFLAGS="$saved_cflags" 49803 49804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49805 $as_echo "$supports" >&6; } 49806 if test "x$supports" = "xyes" ; then 49807 : 49808 C_COMP_SUPPORTS="yes" 49809 else 49810 : 49811 C_COMP_SUPPORTS="no" 49812 fi 49813 49814 49815 49816 49817 49818 49819 49820 49821 49822 49823 49824 49825 49826 49827 49828 49829 49830 49831 49832 49833 49834 49835 49836 49837 49838 49839 49840 49841 49842 49843 49844 49845 49846 49847 49848 49849 49850 49851 49852 49853 49854 49855 49856 49857 49858 49859 49860 49861 49862 49863 49864 49865 49866 49867 49868 49869 49870 49871 49872 # Execute function body 49873 49874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49875 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49876 supports=yes 49877 49878 saved_cxxflags="$CXXFLAGS" 49879 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 49880 ac_ext=cpp 49881 ac_cpp='$CXXCPP $CPPFLAGS' 49882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49885 49886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49887 /* end confdefs.h. */ 49888 int i; 49889 _ACEOF 49890 if ac_fn_cxx_try_compile "$LINENO"; then : 49891 49892 else 49893 supports=no 49894 fi 49895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49896 ac_ext=cpp 49897 ac_cpp='$CXXCPP $CPPFLAGS' 49898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49901 49902 CXXFLAGS="$saved_cxxflags" 49903 49904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49905 $as_echo "$supports" >&6; } 49906 if test "x$supports" = "xyes" ; then 49907 : 49908 CXX_COMP_SUPPORTS="yes" 49909 else 49910 : 49911 CXX_COMP_SUPPORTS="no" 49912 fi 49913 49914 49915 49916 49917 49918 49919 49920 49921 49922 49923 49924 49925 49926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49927 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49928 supports=no 49929 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49930 49931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49932 $as_echo "$supports" >&6; } 49933 if test "x$supports" = "xyes" ; then 49934 : 49935 49936 else 49937 : 49938 STACK_PROTECTOR_CFLAG="" 49939 fi 49940 49941 49942 49943 49944 49945 49946 49947 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49948 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49949 if test "x$STACK_PROTECTOR_CFLAG" != x; then 49950 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49951 fi 49952 ;; 49953 esac 49954 fi 49955 49956 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49957 if test "x$DEBUG_LEVEL" != xrelease; then 49958 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 49959 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 49960 fi 49961 fi 49962 fi 49963 49964 # Optimization levels 49965 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49966 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 49967 49968 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 49969 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 49970 C_O_FLAG_HIGHEST_JVM="-xO4" 49971 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 49972 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 49973 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 49974 C_O_FLAG_DEBUG="-xregs=no%frameptr" 49975 C_O_FLAG_DEBUG_JVM="" 49976 C_O_FLAG_NONE="-xregs=no%frameptr" 49977 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49978 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 49979 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 49980 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 49981 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 49982 CXX_O_FLAG_DEBUG_JVM="" 49983 CXX_O_FLAG_NONE="-xregs=no%frameptr" 49984 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 49985 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 49986 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 49987 fi 49988 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49989 C_O_FLAG_HIGHEST_JVM="-xO4" 49990 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 49991 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49992 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49993 C_O_FLAG_DEBUG="" 49994 C_O_FLAG_DEBUG_JVM="" 49995 C_O_FLAG_NONE="" 49996 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49997 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 49998 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49999 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 50000 CXX_O_FLAG_DEBUG="" 50001 CXX_O_FLAG_DEBUG_JVM="" 50002 CXX_O_FLAG_NONE="" 50003 fi 50004 else 50005 # The remaining toolchains share opt flags between CC and CXX; 50006 # setup for C and duplicate afterwards. 50007 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50008 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50009 # On MacOSX we optimize for size, something 50010 # we should do for all platforms? 50011 C_O_FLAG_HIGHEST_JVM="-Os" 50012 C_O_FLAG_HIGHEST="-Os" 50013 C_O_FLAG_HI="-Os" 50014 C_O_FLAG_NORM="-Os" 50015 C_O_FLAG_SIZE="-Os" 50016 else 50017 C_O_FLAG_HIGHEST_JVM="-O3" 50018 C_O_FLAG_HIGHEST="-O3" 50019 C_O_FLAG_HI="-O3" 50020 C_O_FLAG_NORM="-O2" 50021 C_O_FLAG_SIZE="-Os" 50022 fi 50023 C_O_FLAG_DEBUG="-O0" 50024 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50025 C_O_FLAG_DEBUG_JVM="" 50026 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50027 C_O_FLAG_DEBUG_JVM="-O0" 50028 fi 50029 C_O_FLAG_NONE="-O0" 50030 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50031 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50032 # On MacOSX we optimize for size, something 50033 # we should do for all platforms? 50034 C_O_FLAG_HIGHEST_JVM="-Os" 50035 C_O_FLAG_HIGHEST="-Os" 50036 C_O_FLAG_HI="-Os" 50037 C_O_FLAG_NORM="-Os" 50038 C_O_FLAG_SIZE="-Os" 50039 else 50040 C_O_FLAG_HIGHEST_JVM="-O3" 50041 C_O_FLAG_HIGHEST="-O3" 50042 C_O_FLAG_HI="-O3" 50043 C_O_FLAG_NORM="-O2" 50044 C_O_FLAG_SIZE="-Os" 50045 fi 50046 C_O_FLAG_DEBUG="-O0" 50047 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50048 C_O_FLAG_DEBUG_JVM="" 50049 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50050 C_O_FLAG_DEBUG_JVM="-O0" 50051 fi 50052 C_O_FLAG_NONE="-O0" 50053 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50054 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 50055 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 50056 C_O_FLAG_HI="-O3 -qinline -qinlglue" 50057 C_O_FLAG_NORM="-O2" 50058 C_O_FLAG_DEBUG="-qnoopt" 50059 # FIXME: Value below not verified. 50060 C_O_FLAG_DEBUG_JVM="" 50061 C_O_FLAG_NONE="-qnoopt" 50062 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50063 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 50064 C_O_FLAG_HIGHEST="-O2" 50065 C_O_FLAG_HI="-O1" 50066 C_O_FLAG_NORM="-O1" 50067 C_O_FLAG_DEBUG="-Od" 50068 C_O_FLAG_DEBUG_JVM="" 50069 C_O_FLAG_NONE="-Od" 50070 C_O_FLAG_SIZE="-Os" 50071 fi 50072 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 50073 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 50074 CXX_O_FLAG_HI="$C_O_FLAG_HI" 50075 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 50076 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 50077 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 50078 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 50079 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 50080 fi 50081 50082 # Adjust optimization flags according to debug level. 50083 case $DEBUG_LEVEL in 50084 release ) 50085 # no adjustment 50086 ;; 50087 fastdebug ) 50088 # Not quite so much optimization 50089 C_O_FLAG_HI="$C_O_FLAG_NORM" 50090 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 50091 ;; 50092 slowdebug ) 50093 # Disable optimization 50094 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 50095 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 50096 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 50097 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 50098 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 50099 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 50100 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 50101 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 50102 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 50103 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 50104 ;; 50105 esac 50106 50107 50108 50109 50110 50111 50112 50113 50114 50115 50116 50117 50118 50119 50120 50121 50122 50123 50124 50125 50126 # Check whether --with-abi-profile was given. 50127 if test "${with_abi_profile+set}" = set; then : 50128 withval=$with_abi_profile; 50129 fi 50130 50131 50132 if test "x$with_abi_profile" != x; then 50133 if test "x$OPENJDK_TARGET_CPU" != xarm && \ 50134 test "x$OPENJDK_TARGET_CPU" != xaarch64; then 50135 as_fn_error $? "--with-abi-profile only available on arm/aarch64" "$LINENO" 5 50136 fi 50137 50138 OPENJDK_TARGET_ABI_PROFILE=$with_abi_profile 50139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI profle" >&5 50140 $as_echo_n "checking for ABI profle... " >&6; } 50141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_ABI_PROFILE" >&5 50142 $as_echo "$OPENJDK_TARGET_ABI_PROFILE" >&6; } 50143 50144 if test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-sflt; then 50145 ARM_FLOAT_TYPE=vfp-sflt 50146 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 50147 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-hflt; then 50148 ARM_FLOAT_TYPE=vfp-hflt 50149 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 50150 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-sflt; then 50151 ARM_FLOAT_TYPE=sflt 50152 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 50153 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv5-vfp-sflt; then 50154 ARM_FLOAT_TYPE=vfp-sflt 50155 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 50156 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv6-vfp-hflt; then 50157 ARM_FLOAT_TYPE=vfp-hflt 50158 ARM_ARCH_TYPE_FLAGS='-march=armv6 -marm' 50159 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm64; then 50160 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 50161 ARM_FLOAT_TYPE= 50162 ARM_ARCH_TYPE_FLAGS= 50163 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xaarch64; then 50164 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 50165 ARM_FLOAT_TYPE= 50166 ARM_ARCH_TYPE_FLAGS= 50167 else 50168 as_fn_error $? "Invalid ABI profile: \"$OPENJDK_TARGET_ABI_PROFILE\"" "$LINENO" 5 50169 fi 50170 50171 if test "x$ARM_FLOAT_TYPE" = xvfp-sflt; then 50172 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt' 50173 elif test "x$ARM_FLOAT_TYPE" = xvfp-hflt; then 50174 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=hard -mfpu=vfp -DFLOAT_ARCH=-vfp-hflt' 50175 elif test "x$ARM_FLOAT_TYPE" = xsflt; then 50176 ARM_FLOAT_TYPE_FLAGS='-msoft-float -mfpu=vfp' 50177 fi 50178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ARM_FLOAT_TYPE floating point flags" >&5 50179 $as_echo_n "checking for $ARM_FLOAT_TYPE floating point flags... " >&6; } 50180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_FLOAT_TYPE_FLAGS" >&5 50181 $as_echo "$ARM_FLOAT_TYPE_FLAGS" >&6; } 50182 50183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arch type flags" >&5 50184 $as_echo_n "checking for arch type flags... " >&6; } 50185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_ARCH_TYPE_FLAGS" >&5 50186 $as_echo "$ARM_ARCH_TYPE_FLAGS" >&6; } 50187 50188 # Now set JDK_ARCH_ABI_PROP_NAME. This is equivalent to the last part of the 50189 # autoconf target triplet. 50190 JDK_ARCH_ABI_PROP_NAME=`$ECHO $OPENJDK_TARGET_AUTOCONF_NAME | $SED -e 's/.*-\([^-]*\)$/\1/'` 50191 # Sanity check that it is a known ABI. 50192 if test "x$JDK_ARCH_ABI_PROP_NAME" != xgnu && \ 50193 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabi && \ 50194 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabihf; then 50195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&5 50196 $as_echo "$as_me: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&2;} 50197 fi 50198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI property name" >&5 50199 $as_echo_n "checking for ABI property name... " >&6; } 50200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_ARCH_ABI_PROP_NAME" >&5 50201 $as_echo "$JDK_ARCH_ABI_PROP_NAME" >&6; } 50202 50203 50204 # Pass these on to the open part of configure as if they were set using 50205 # --with-extra-c[xx]flags. 50206 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 50207 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 50208 # Get rid of annoying "note: the mangling of 'va_list' has changed in GCC 4.4" 50209 # FIXME: This should not really be set using extra_cflags. 50210 if test "x$OPENJDK_TARGET_CPU" = xarm; then 50211 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-psabi" 50212 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -Wno-psabi" 50213 fi 50214 # Also add JDK_ARCH_ABI_PROP_NAME define, but only to CFLAGS. 50215 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'" 50216 # And pass the architecture flags to the linker as well 50217 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 50218 fi 50219 50220 # When building with an abi profile, the name of that profile is appended on the 50221 # bundle platform, which is used in bundle names. 50222 if test "x$OPENJDK_TARGET_ABI_PROFILE" != x; then 50223 OPENJDK_TARGET_BUNDLE_PLATFORM="$OPENJDK_TARGET_OS_BUNDLE-$OPENJDK_TARGET_ABI_PROFILE" 50224 fi 50225 50226 50227 # Special extras... 50228 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50229 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50230 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50231 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50232 fi 50233 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50234 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50235 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50236 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50237 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50238 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50239 CXXSTD_CXXFLAG="-std=gnu++98" 50240 50241 50242 50243 50244 50245 50246 50247 50248 50249 50250 50251 50252 50253 50254 50255 50256 50257 50258 50259 50260 50261 50262 50263 50264 50265 50266 50267 50268 50269 50270 50271 50272 50273 50274 50275 50276 50277 50278 50279 50280 50281 50282 # Execute function body 50283 50284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 50285 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 50286 supports=yes 50287 50288 saved_cxxflags="$CXXFLAGS" 50289 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 50290 ac_ext=cpp 50291 ac_cpp='$CXXCPP $CPPFLAGS' 50292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50295 50296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50297 /* end confdefs.h. */ 50298 int i; 50299 _ACEOF 50300 if ac_fn_cxx_try_compile "$LINENO"; then : 50301 50302 else 50303 supports=no 50304 fi 50305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50306 ac_ext=cpp 50307 ac_cpp='$CXXCPP $CPPFLAGS' 50308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50311 50312 CXXFLAGS="$saved_cxxflags" 50313 50314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50315 $as_echo "$supports" >&6; } 50316 if test "x$supports" = "xyes" ; then 50317 : 50318 50319 else 50320 : 50321 CXXSTD_CXXFLAG="" 50322 fi 50323 50324 50325 50326 50327 50328 50329 50330 50331 50332 50333 50334 50335 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 50336 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 50337 50338 fi 50339 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50340 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 50341 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 50342 fi 50343 50344 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 50345 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 50346 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 50347 50348 ############################################################################### 50349 # 50350 # Now setup the CFLAGS and LDFLAGS for the JDK build. 50351 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 50352 # 50353 50354 # Setup compiler/platform specific flags into 50355 # CFLAGS_JDK - C Compiler flags 50356 # CXXFLAGS_JDK - C++ Compiler flags 50357 # COMMON_CCXXFLAGS_JDK - common to C and C++ 50358 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50359 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 50360 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 50361 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 50362 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50363 # Force compatibility with i586 on 32 bit intel platforms. 50364 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 50365 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 50366 fi 50367 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50368 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50369 case $OPENJDK_TARGET_CPU_ARCH in 50370 arm ) 50371 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50372 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50373 COMMON_CCXXFLAGS_JDK="${COMMON_CCXXFLAGS_JDK} -fsigned-char" 50374 ;; 50375 ppc ) 50376 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50377 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50378 ;; 50379 s390 ) 50380 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 50381 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50382 ;; 50383 * ) 50384 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50385 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50386 ;; 50387 esac 50388 50389 50390 50391 50392 50393 50394 50395 50396 50397 50398 50399 50400 50401 50402 50403 50404 50405 50406 50407 50408 50409 50410 50411 50412 50413 50414 50415 50416 50417 50418 50419 50420 50421 50422 50423 50424 50425 50426 50427 50428 50429 50430 50431 50432 50433 50434 50435 50436 50437 50438 50439 50440 50441 50442 # Execute function body 50443 50444 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50445 REFERENCE_VERSION=6 50446 50447 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 50448 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 50449 fi 50450 50451 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50452 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 50453 fi 50454 50455 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50456 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 50457 50458 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50459 : 50460 50461 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 50462 # runs afoul of the more aggressive versions of these optimisations. 50463 # Notably, value range propagation now assumes that the this pointer of C++ 50464 # member functions is non-null. 50465 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 50466 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 50467 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 50468 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 50469 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50470 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50471 50472 else 50473 : 50474 50475 fi 50476 50477 50478 50479 50480 50481 50482 50483 50484 50485 50486 50487 50488 50489 50490 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50491 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 50492 50493 # Restrict the debug information created by Clang to avoid 50494 # too big object files and speed the build up a little bit 50495 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 50496 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 50497 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50498 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50499 # Force compatibility with i586 on 32 bit intel platforms. 50500 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 50501 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 50502 fi 50503 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 50504 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50505 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50506 case $OPENJDK_TARGET_CPU_ARCH in 50507 ppc ) 50508 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50509 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50510 ;; 50511 * ) 50512 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50513 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50514 ;; 50515 esac 50516 fi 50517 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50518 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 50519 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 50520 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 50521 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 50522 fi 50523 50524 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 50525 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 50526 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50527 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 50528 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50529 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50530 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50531 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 50532 -MD -Zc:wchar_t- -W3 -wd4800 \ 50533 -DWIN32_LEAN_AND_MEAN \ 50534 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 50535 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 50536 -DWIN32 -DIAL" 50537 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50538 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 50539 else 50540 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 50541 fi 50542 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 50543 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 50544 # studio. 50545 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 50546 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 50547 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 50548 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 50549 fi 50550 fi 50551 50552 ############################################################################### 50553 50554 # Adjust flags according to debug level. 50555 case $DEBUG_LEVEL in 50556 fastdebug | slowdebug ) 50557 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 50558 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 50559 ;; 50560 release ) 50561 ;; 50562 * ) 50563 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50564 ;; 50565 esac 50566 50567 # Set some common defines. These works for all compilers, but assume 50568 # -D is universally accepted. 50569 50570 # Setup endianness 50571 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 50572 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 50573 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 50574 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 50575 # Note: -Dmacro is the same as #define macro 1 50576 # -Dmacro= is the same as #define macro 50577 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50578 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 50579 else 50580 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 50581 fi 50582 else 50583 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 50584 # are defined in the system? 50585 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50586 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 50587 else 50588 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 50589 fi 50590 fi 50591 50592 # Setup target OS define. Use OS target name but in upper case. 50593 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 50594 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 50595 50596 # Setup target CPU 50597 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50598 $OPENJDK_TARGET_ADD_LP64 \ 50599 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 50600 50601 # Setup debug/release defines 50602 if test "x$DEBUG_LEVEL" = xrelease; then 50603 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 50604 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50605 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 50606 fi 50607 else 50608 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 50609 fi 50610 50611 # Set some additional per-OS defines. 50612 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50613 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 50614 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 50615 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50616 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50617 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 50618 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 50619 -D_Crun_inline_placement -library=%none $PICFLAG -mt -features=no%except" 50620 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50621 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50622 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 50623 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50624 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50625 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50626 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 50627 -fno-omit-frame-pointer" 50628 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50629 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 50630 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 50631 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 50632 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 50633 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 50634 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50635 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 50636 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50637 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 50638 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 50639 fi 50640 50641 # Set some additional per-CPU defines. 50642 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 50643 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 50644 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50645 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 50646 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 50647 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50648 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50649 # fixes `relocation truncated to fit' error for gcc 4.1. 50650 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 50651 # Use ppc64 instructions, but schedule for power5 50652 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 50653 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50654 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 50655 fi 50656 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 50657 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50658 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50659 # Little endian machine uses ELFv2 ABI. 50660 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 50661 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 50662 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 50663 fi 50664 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 50665 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50666 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 50667 fi 50668 fi 50669 50670 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 50671 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 50672 fi 50673 50674 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50675 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 50676 # Solaris does not have _LP64=1 in the old build. 50677 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 50678 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 50679 fi 50680 fi 50681 50682 # Set JVM_CFLAGS warning handling 50683 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50684 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 50685 -Wunused-value -Woverloaded-virtual" 50686 50687 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50688 50689 50690 50691 50692 50693 50694 50695 50696 50697 50698 50699 50700 50701 50702 50703 50704 50705 50706 50707 50708 50709 50710 50711 50712 50713 50714 50715 50716 50717 50718 50719 50720 50721 50722 50723 50724 50725 50726 50727 50728 50729 50730 50731 50732 50733 50734 50735 50736 50737 50738 50739 50740 50741 50742 # Execute function body 50743 50744 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50745 REFERENCE_VERSION=4.8 50746 50747 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 50748 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 50749 fi 50750 50751 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50752 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 50753 fi 50754 50755 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50756 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 50757 50758 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50759 : 50760 50761 # These flags either do not work or give spurious warnings prior to gcc 4.8. 50762 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 50763 50764 50765 else 50766 : 50767 50768 fi 50769 50770 50771 50772 50773 50774 50775 50776 50777 50778 50779 50780 50781 50782 50783 fi 50784 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 50785 # Non-zero builds have stricter warnings 50786 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 50787 else 50788 if test "x$TOOLCHAIN_TYPE" = xclang; then 50789 # Some versions of llvm do not like -Wundef 50790 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 50791 fi 50792 fi 50793 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50794 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 50795 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 50796 fi 50797 50798 # Additional macosx handling 50799 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50800 # Setting these parameters makes it an error to link to macosx APIs that are 50801 # newer than the given OS version and makes the linked binaries compatible 50802 # even if built on a newer version of the OS. 50803 # The expected format is X.Y.Z 50804 MACOSX_VERSION_MIN=10.7.0 50805 50806 50807 # The macro takes the version with no dots, ex: 1070 50808 # Let the flags variables get resolved in make for easier override on make 50809 # command line. 50810 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50811 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50812 fi 50813 50814 # Setup some hard coded includes 50815 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50816 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 50817 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 50818 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 50819 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 50820 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 50821 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 50822 50823 # The shared libraries are compiled using the picflag. 50824 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50825 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 50826 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50827 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 50828 50829 # Executable flags 50830 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 50831 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 50832 50833 50834 50835 50836 50837 50838 # Setup LDFLAGS et al. 50839 # 50840 50841 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50842 LDFLAGS_MICROSOFT="-nologo -opt:ref" 50843 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 50844 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 50845 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 50846 LDFLAGS_SAFESH="-safeseh" 50847 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 50848 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 50849 # NOTE: Old build added -machine. Probably not needed. 50850 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 50851 else 50852 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 50853 fi 50854 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50855 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 50856 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50857 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 50858 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50859 fi 50860 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50861 # If this is a --hash-style=gnu system, use --hash-style=both, why? 50862 # We have previously set HAS_GNU_HASH if this is the case 50863 if test -n "$HAS_GNU_HASH"; then 50864 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 50865 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 50866 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 50867 fi 50868 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50869 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50870 fi 50871 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50872 # And since we now know that the linker is gnu, then add -z defs, to forbid 50873 # undefined symbols in object files. 50874 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 50875 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 50876 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 50877 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 50878 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 50879 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50880 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 50881 fi 50882 case $DEBUG_LEVEL in 50883 release ) 50884 # tell linker to optimize libraries. 50885 # Should this be supplied to the OSS linker as well? 50886 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 50887 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 50888 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 50889 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50890 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50891 fi 50892 ;; 50893 slowdebug ) 50894 # Hotspot always let the linker optimize 50895 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50896 if test "x$HAS_LINKER_NOW" = "xtrue"; then 50897 # do relocations at load 50898 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 50899 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 50900 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 50901 fi 50902 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50903 # mark relocations read only 50904 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50905 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50906 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50907 fi 50908 ;; 50909 fastdebug ) 50910 # Hotspot always let the linker optimize 50911 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50912 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50913 # mark relocations read only 50914 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50915 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50916 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50917 fi 50918 ;; 50919 * ) 50920 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50921 ;; 50922 esac 50923 fi 50924 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50925 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 50926 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 50927 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 50928 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 50929 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 50930 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50931 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 50932 fi 50933 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50934 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 50935 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 50936 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 50937 fi 50938 50939 # Customize LDFLAGS for executables 50940 50941 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 50942 50943 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50944 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 50945 LDFLAGS_STACK_SIZE=1048576 50946 else 50947 LDFLAGS_STACK_SIZE=327680 50948 fi 50949 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 50950 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50951 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 50952 fi 50953 50954 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 50955 50956 # Customize LDFLAGS for libs 50957 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 50958 50959 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 50960 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50961 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50962 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 50963 JDKLIB_LIBS="" 50964 else 50965 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50966 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 50967 50968 if test "xTARGET" = "xTARGET"; then 50969 # On some platforms (mac) the linker warns about non existing -L dirs. 50970 # For any of the variants server, client or minimal, the dir matches the 50971 # variant name. The "main" variant should be used for linking. For the 50972 # rest, the dir is just server. 50973 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 50974 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 50975 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50976 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 50977 else 50978 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50979 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 50980 fi 50981 elif test "xTARGET" = "xBUILD"; then 50982 # When building a buildjdk, it's always only the server variant 50983 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50984 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 50985 fi 50986 50987 JDKLIB_LIBS="-ljava -ljvm" 50988 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50989 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 50990 fi 50991 50992 fi 50993 50994 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 50995 50996 # Set JVM_LIBS (per os) 50997 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50998 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 50999 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 51000 # FIXME: This hard-coded path is not really proper. 51001 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51002 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 51003 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 51004 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 51005 fi 51006 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 51007 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 51008 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51009 JVM_LIBS="$JVM_LIBS -lm" 51010 elif test "x$OPENJDK_TARGET_OS" = xaix; then 51011 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 51012 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 51013 JVM_LIBS="$JVM_LIBS -lm" 51014 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 51015 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 51016 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 51017 wsock32.lib winmm.lib version.lib psapi.lib" 51018 fi 51019 51020 # Set JVM_ASFLAGS 51021 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51022 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51023 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 51024 fi 51025 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51026 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 51027 fi 51028 51029 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 51030 51031 51032 51033 51034 51035 51036 51037 51038 51039 51040 51041 51042 51043 51044 51045 # Special extras... 51046 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51047 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 51048 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51049 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51050 fi 51051 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51052 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51053 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51054 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51055 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51056 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51057 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 51058 51059 51060 51061 51062 51063 51064 51065 51066 51067 51068 51069 51070 51071 51072 51073 51074 51075 51076 51077 51078 51079 51080 51081 51082 51083 51084 51085 51086 51087 51088 51089 51090 51091 51092 51093 51094 51095 51096 51097 51098 51099 51100 # Execute function body 51101 51102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 51103 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 51104 supports=yes 51105 51106 saved_cxxflags="$CXXFLAGS" 51107 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 51108 ac_ext=cpp 51109 ac_cpp='$CXXCPP $CPPFLAGS' 51110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51113 51114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51115 /* end confdefs.h. */ 51116 int i; 51117 _ACEOF 51118 if ac_fn_cxx_try_compile "$LINENO"; then : 51119 51120 else 51121 supports=no 51122 fi 51123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51124 ac_ext=cpp 51125 ac_cpp='$CXXCPP $CPPFLAGS' 51126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51129 51130 CXXFLAGS="$saved_cxxflags" 51131 51132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51133 $as_echo "$supports" >&6; } 51134 if test "x$supports" = "xyes" ; then 51135 : 51136 51137 else 51138 : 51139 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 51140 fi 51141 51142 51143 51144 51145 51146 51147 51148 51149 51150 51151 51152 51153 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 51154 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 51155 51156 fi 51157 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51158 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 51159 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 51160 fi 51161 51162 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 51163 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 51164 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 51165 51166 ############################################################################### 51167 # 51168 # Now setup the CFLAGS and LDFLAGS for the JDK build. 51169 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 51170 # 51171 51172 # Setup compiler/platform specific flags into 51173 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 51174 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 51175 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 51176 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51177 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 51178 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 51179 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 51180 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51181 # Force compatibility with i586 on 32 bit intel platforms. 51182 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 51183 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 51184 fi 51185 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51186 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51187 case $OPENJDK_BUILD_CPU_ARCH in 51188 arm ) 51189 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51190 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51191 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="${OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK} -fsigned-char" 51192 ;; 51193 ppc ) 51194 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51195 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51196 ;; 51197 s390 ) 51198 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 51199 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51200 ;; 51201 * ) 51202 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51203 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51204 ;; 51205 esac 51206 51207 51208 51209 51210 51211 51212 51213 51214 51215 51216 51217 51218 51219 51220 51221 51222 51223 51224 51225 51226 51227 51228 51229 51230 51231 51232 51233 51234 51235 51236 51237 51238 51239 51240 51241 51242 51243 51244 51245 51246 51247 51248 51249 51250 51251 51252 51253 51254 51255 51256 51257 51258 51259 51260 # Execute function body 51261 51262 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51263 REFERENCE_VERSION=6 51264 51265 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 51266 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 51267 fi 51268 51269 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51270 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 51271 fi 51272 51273 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51274 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51275 51276 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51277 : 51278 51279 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 51280 # runs afoul of the more aggressive versions of these optimisations. 51281 # Notably, value range propagation now assumes that the this pointer of C++ 51282 # member functions is non-null. 51283 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 51284 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 51285 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 51286 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 51287 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 51288 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 51289 51290 else 51291 : 51292 51293 fi 51294 51295 51296 51297 51298 51299 51300 51301 51302 51303 51304 51305 51306 51307 51308 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51309 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 51310 51311 # Restrict the debug information created by Clang to avoid 51312 # too big object files and speed the build up a little bit 51313 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 51314 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 51315 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51316 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51317 # Force compatibility with i586 on 32 bit intel platforms. 51318 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 51319 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 51320 fi 51321 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 51322 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51323 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51324 case $OPENJDK_BUILD_CPU_ARCH in 51325 ppc ) 51326 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51327 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51328 ;; 51329 * ) 51330 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51331 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 51332 ;; 51333 esac 51334 fi 51335 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51336 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 51337 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 51338 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 51339 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 51340 fi 51341 51342 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 51343 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 51344 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51345 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 51346 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51347 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51348 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51349 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51350 -MD -Zc:wchar_t- -W3 -wd4800 \ 51351 -DWIN32_LEAN_AND_MEAN \ 51352 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 51353 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 51354 -DWIN32 -DIAL" 51355 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 51356 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 51357 else 51358 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 51359 fi 51360 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 51361 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 51362 # studio. 51363 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 51364 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 51365 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 51366 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 51367 fi 51368 fi 51369 51370 ############################################################################### 51371 51372 # Adjust flags according to debug level. 51373 case $DEBUG_LEVEL in 51374 fastdebug | slowdebug ) 51375 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 51376 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 51377 ;; 51378 release ) 51379 ;; 51380 * ) 51381 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51382 ;; 51383 esac 51384 51385 # Set some common defines. These works for all compilers, but assume 51386 # -D is universally accepted. 51387 51388 # Setup endianness 51389 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 51390 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 51391 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 51392 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 51393 # Note: -Dmacro is the same as #define macro 1 51394 # -Dmacro= is the same as #define macro 51395 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 51396 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 51397 else 51398 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 51399 fi 51400 else 51401 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 51402 # are defined in the system? 51403 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 51404 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 51405 else 51406 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 51407 fi 51408 fi 51409 51410 # Setup target OS define. Use OS target name but in upper case. 51411 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 51412 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 51413 51414 # Setup target CPU 51415 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51416 $OPENJDK_BUILD_ADD_LP64 \ 51417 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 51418 51419 # Setup debug/release defines 51420 if test "x$DEBUG_LEVEL" = xrelease; then 51421 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 51422 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 51423 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 51424 fi 51425 else 51426 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 51427 fi 51428 51429 # Set some additional per-OS defines. 51430 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51431 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 51432 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 51433 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 51434 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 51435 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 51436 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 51437 -D_Crun_inline_placement -library=%none $PICFLAG -mt -features=no%except" 51438 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51439 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 51440 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 51441 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 51442 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 51443 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 51444 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 51445 -fno-omit-frame-pointer" 51446 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51447 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 51448 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 51449 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 51450 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 51451 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 51452 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 51453 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 51454 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51455 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 51456 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 51457 fi 51458 51459 # Set some additional per-CPU defines. 51460 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 51461 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 51462 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 51463 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 51464 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 51465 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51466 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51467 # fixes `relocation truncated to fit' error for gcc 4.1. 51468 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 51469 # Use ppc64 instructions, but schedule for power5 51470 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 51471 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51472 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 51473 fi 51474 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 51475 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51476 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51477 # Little endian machine uses ELFv2 ABI. 51478 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 51479 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 51480 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 51481 fi 51482 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 51483 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51484 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 51485 fi 51486 fi 51487 51488 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 51489 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 51490 fi 51491 51492 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 51493 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 51494 # Solaris does not have _LP64=1 in the old build. 51495 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 51496 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 51497 fi 51498 fi 51499 51500 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 51501 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51502 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 51503 -Wunused-value -Woverloaded-virtual" 51504 51505 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51506 51507 51508 51509 51510 51511 51512 51513 51514 51515 51516 51517 51518 51519 51520 51521 51522 51523 51524 51525 51526 51527 51528 51529 51530 51531 51532 51533 51534 51535 51536 51537 51538 51539 51540 51541 51542 51543 51544 51545 51546 51547 51548 51549 51550 51551 51552 51553 51554 51555 51556 51557 51558 51559 51560 # Execute function body 51561 51562 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51563 REFERENCE_VERSION=4.8 51564 51565 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 51566 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 51567 fi 51568 51569 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51570 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 51571 fi 51572 51573 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51574 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51575 51576 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51577 : 51578 51579 # These flags either do not work or give spurious warnings prior to gcc 4.8. 51580 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 51581 51582 51583 else 51584 : 51585 51586 fi 51587 51588 51589 51590 51591 51592 51593 51594 51595 51596 51597 51598 51599 51600 51601 fi 51602 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 51603 # Non-zero builds have stricter warnings 51604 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 51605 else 51606 if test "x$TOOLCHAIN_TYPE" = xclang; then 51607 # Some versions of llvm do not like -Wundef 51608 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 51609 fi 51610 fi 51611 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51612 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 51613 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 51614 fi 51615 51616 # Additional macosx handling 51617 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51618 # Setting these parameters makes it an error to link to macosx APIs that are 51619 # newer than the given OS version and makes the linked binaries compatible 51620 # even if built on a newer version of the OS. 51621 # The expected format is X.Y.Z 51622 MACOSX_VERSION_MIN=10.7.0 51623 51624 51625 # The macro takes the version with no dots, ex: 1070 51626 # Let the flags variables get resolved in make for easier override on make 51627 # command line. 51628 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51629 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51630 fi 51631 51632 # Setup some hard coded includes 51633 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51634 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 51635 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 51636 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 51637 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 51638 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 51639 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 51640 51641 # The shared libraries are compiled using the picflag. 51642 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51643 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 51644 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51645 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 51646 51647 # Executable flags 51648 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 51649 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 51650 51651 51652 51653 51654 51655 51656 # Setup LDFLAGS et al. 51657 # 51658 51659 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51660 LDFLAGS_MICROSOFT="-nologo -opt:ref" 51661 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 51662 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 51663 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 51664 LDFLAGS_SAFESH="-safeseh" 51665 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 51666 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 51667 # NOTE: Old build added -machine. Probably not needed. 51668 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 51669 else 51670 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 51671 fi 51672 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51673 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 51674 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51675 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 51676 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51677 fi 51678 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51679 # If this is a --hash-style=gnu system, use --hash-style=both, why? 51680 # We have previously set HAS_GNU_HASH if this is the case 51681 if test -n "$HAS_GNU_HASH"; then 51682 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 51683 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51684 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51685 fi 51686 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51687 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51688 fi 51689 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51690 # And since we now know that the linker is gnu, then add -z defs, to forbid 51691 # undefined symbols in object files. 51692 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 51693 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 51694 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 51695 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 51696 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 51697 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51698 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 51699 fi 51700 case $DEBUG_LEVEL in 51701 release ) 51702 # tell linker to optimize libraries. 51703 # Should this be supplied to the OSS linker as well? 51704 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 51705 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 51706 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 51707 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51708 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51709 fi 51710 ;; 51711 slowdebug ) 51712 # Hotspot always let the linker optimize 51713 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51714 if test "x$HAS_LINKER_NOW" = "xtrue"; then 51715 # do relocations at load 51716 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 51717 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 51718 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 51719 fi 51720 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51721 # mark relocations read only 51722 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51723 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51724 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51725 fi 51726 ;; 51727 fastdebug ) 51728 # Hotspot always let the linker optimize 51729 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51730 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51731 # mark relocations read only 51732 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51733 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51734 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51735 fi 51736 ;; 51737 * ) 51738 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51739 ;; 51740 esac 51741 fi 51742 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51743 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 51744 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 51745 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 51746 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 51747 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 51748 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 51749 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 51750 fi 51751 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51752 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 51753 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 51754 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 51755 fi 51756 51757 # Customize LDFLAGS for executables 51758 51759 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 51760 51761 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51762 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 51763 LDFLAGS_STACK_SIZE=1048576 51764 else 51765 LDFLAGS_STACK_SIZE=327680 51766 fi 51767 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 51768 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 51769 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 51770 fi 51771 51772 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51773 51774 # Customize LDFLAGS for libs 51775 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 51776 51777 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 51778 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51779 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51780 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 51781 OPENJDK_BUILD_JDKLIB_LIBS="" 51782 else 51783 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51784 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 51785 51786 if test "xBUILD" = "xTARGET"; then 51787 # On some platforms (mac) the linker warns about non existing -L dirs. 51788 # For any of the variants server, client or minimal, the dir matches the 51789 # variant name. The "main" variant should be used for linking. For the 51790 # rest, the dir is just server. 51791 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 51792 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 51793 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51794 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 51795 else 51796 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51797 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 51798 fi 51799 elif test "xBUILD" = "xBUILD"; then 51800 # When building a buildjdk, it's always only the server variant 51801 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51802 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 51803 fi 51804 51805 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 51806 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51807 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 51808 fi 51809 51810 fi 51811 51812 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 51813 51814 # Set OPENJDK_BUILD_JVM_LIBS (per os) 51815 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51816 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 51817 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 51818 # FIXME: This hard-coded path is not really proper. 51819 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 51820 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 51821 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 51822 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 51823 fi 51824 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 51825 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 51826 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51827 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51828 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51829 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 51830 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 51831 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51832 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51833 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 51834 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 51835 wsock32.lib winmm.lib version.lib psapi.lib" 51836 fi 51837 51838 # Set OPENJDK_BUILD_JVM_ASFLAGS 51839 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51840 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51841 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 51842 fi 51843 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51844 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 51845 fi 51846 51847 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51848 51849 51850 51851 51852 51853 51854 51855 51856 51857 51858 51859 51860 51861 51862 51863 # Tests are only ever compiled for TARGET 51864 # Flags for compiling test libraries 51865 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 51866 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 51867 51868 # Flags for compiling test executables 51869 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 51870 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 51871 51872 51873 51874 51875 51876 51877 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 51878 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 51879 51880 51881 51882 51883 51884 51885 # Check that the compiler supports -mX (or -qX on AIX) flags 51886 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 51887 51888 51889 51890 51891 51892 51893 51894 51895 51896 51897 51898 51899 51900 51901 51902 51903 51904 51905 51906 51907 51908 51909 51910 51911 51912 51913 51914 51915 51916 51917 51918 51919 51920 51921 51922 51923 51924 51925 51926 51927 51928 51929 51930 51931 51932 51933 51934 # Execute function body 51935 51936 51937 51938 51939 51940 51941 51942 51943 51944 51945 51946 51947 51948 51949 51950 51951 51952 51953 51954 51955 51956 51957 51958 51959 51960 51961 51962 51963 51964 51965 51966 51967 51968 51969 51970 51971 51972 51973 51974 51975 51976 51977 51978 51979 51980 51981 51982 51983 # Execute function body 51984 51985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51986 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51987 supports=yes 51988 51989 saved_cflags="$CFLAGS" 51990 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51991 ac_ext=c 51992 ac_cpp='$CPP $CPPFLAGS' 51993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51995 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51996 51997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51998 /* end confdefs.h. */ 51999 int i; 52000 _ACEOF 52001 if ac_fn_c_try_compile "$LINENO"; then : 52002 52003 else 52004 supports=no 52005 fi 52006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52007 ac_ext=cpp 52008 ac_cpp='$CXXCPP $CPPFLAGS' 52009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52012 52013 CFLAGS="$saved_cflags" 52014 52015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52016 $as_echo "$supports" >&6; } 52017 if test "x$supports" = "xyes" ; then 52018 : 52019 C_COMP_SUPPORTS="yes" 52020 else 52021 : 52022 C_COMP_SUPPORTS="no" 52023 fi 52024 52025 52026 52027 52028 52029 52030 52031 52032 52033 52034 52035 52036 52037 52038 52039 52040 52041 52042 52043 52044 52045 52046 52047 52048 52049 52050 52051 52052 52053 52054 52055 52056 52057 52058 52059 52060 52061 52062 52063 52064 52065 52066 52067 52068 52069 52070 52071 52072 52073 52074 52075 52076 52077 52078 52079 52080 52081 52082 52083 # Execute function body 52084 52085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 52086 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 52087 supports=yes 52088 52089 saved_cxxflags="$CXXFLAGS" 52090 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 52091 ac_ext=cpp 52092 ac_cpp='$CXXCPP $CPPFLAGS' 52093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52096 52097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52098 /* end confdefs.h. */ 52099 int i; 52100 _ACEOF 52101 if ac_fn_cxx_try_compile "$LINENO"; then : 52102 52103 else 52104 supports=no 52105 fi 52106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52107 ac_ext=cpp 52108 ac_cpp='$CXXCPP $CPPFLAGS' 52109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52112 52113 CXXFLAGS="$saved_cxxflags" 52114 52115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52116 $as_echo "$supports" >&6; } 52117 if test "x$supports" = "xyes" ; then 52118 : 52119 CXX_COMP_SUPPORTS="yes" 52120 else 52121 : 52122 CXX_COMP_SUPPORTS="no" 52123 fi 52124 52125 52126 52127 52128 52129 52130 52131 52132 52133 52134 52135 52136 52137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 52138 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 52139 supports=no 52140 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52141 52142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52143 $as_echo "$supports" >&6; } 52144 if test "x$supports" = "xyes" ; then 52145 : 52146 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 52147 else 52148 : 52149 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 52150 fi 52151 52152 52153 52154 52155 52156 52157 52158 52159 # Check whether --enable-warnings-as-errors was given. 52160 if test "${enable_warnings_as_errors+set}" = set; then : 52161 enableval=$enable_warnings_as_errors; 52162 fi 52163 52164 52165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 52166 $as_echo_n "checking if native warnings are errors... " >&6; } 52167 if test "x$enable_warnings_as_errors" = "xyes"; then 52168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 52169 $as_echo "yes (explicitly set)" >&6; } 52170 WARNINGS_AS_ERRORS=true 52171 elif test "x$enable_warnings_as_errors" = "xno"; then 52172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52173 $as_echo "no" >&6; } 52174 WARNINGS_AS_ERRORS=false 52175 elif test "x$enable_warnings_as_errors" = "x"; then 52176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 52177 $as_echo "yes (default)" >&6; } 52178 WARNINGS_AS_ERRORS=true 52179 else 52180 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 52181 fi 52182 52183 52184 52185 case "${TOOLCHAIN_TYPE}" in 52186 microsoft) 52187 DISABLE_WARNING_PREFIX="-wd" 52188 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 52189 ;; 52190 solstudio) 52191 DISABLE_WARNING_PREFIX="-erroff=" 52192 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 52193 ;; 52194 gcc) 52195 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 52196 52197 52198 52199 52200 52201 52202 52203 52204 52205 52206 52207 52208 52209 52210 52211 52212 52213 52214 52215 52216 52217 52218 52219 52220 52221 52222 52223 52224 52225 52226 52227 52228 52229 52230 52231 52232 52233 52234 52235 52236 52237 52238 52239 52240 52241 52242 52243 # Execute function body 52244 52245 52246 52247 52248 52249 52250 52251 52252 52253 52254 52255 52256 52257 52258 52259 52260 52261 52262 52263 52264 52265 52266 52267 52268 52269 52270 52271 52272 52273 52274 52275 52276 52277 52278 52279 52280 52281 52282 52283 52284 52285 52286 52287 52288 52289 52290 52291 52292 # Execute function body 52293 52294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52295 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52296 supports=yes 52297 52298 saved_cflags="$CFLAGS" 52299 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52300 ac_ext=c 52301 ac_cpp='$CPP $CPPFLAGS' 52302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52304 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52305 52306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52307 /* end confdefs.h. */ 52308 int i; 52309 _ACEOF 52310 if ac_fn_c_try_compile "$LINENO"; then : 52311 52312 else 52313 supports=no 52314 fi 52315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52316 ac_ext=cpp 52317 ac_cpp='$CXXCPP $CPPFLAGS' 52318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52321 52322 CFLAGS="$saved_cflags" 52323 52324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52325 $as_echo "$supports" >&6; } 52326 if test "x$supports" = "xyes" ; then 52327 : 52328 C_COMP_SUPPORTS="yes" 52329 else 52330 : 52331 C_COMP_SUPPORTS="no" 52332 fi 52333 52334 52335 52336 52337 52338 52339 52340 52341 52342 52343 52344 52345 52346 52347 52348 52349 52350 52351 52352 52353 52354 52355 52356 52357 52358 52359 52360 52361 52362 52363 52364 52365 52366 52367 52368 52369 52370 52371 52372 52373 52374 52375 52376 52377 52378 52379 52380 52381 52382 52383 52384 52385 52386 52387 52388 52389 52390 52391 52392 # Execute function body 52393 52394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52395 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52396 supports=yes 52397 52398 saved_cxxflags="$CXXFLAGS" 52399 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52400 ac_ext=cpp 52401 ac_cpp='$CXXCPP $CPPFLAGS' 52402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52405 52406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52407 /* end confdefs.h. */ 52408 int i; 52409 _ACEOF 52410 if ac_fn_cxx_try_compile "$LINENO"; then : 52411 52412 else 52413 supports=no 52414 fi 52415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52416 ac_ext=cpp 52417 ac_cpp='$CXXCPP $CPPFLAGS' 52418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52421 52422 CXXFLAGS="$saved_cxxflags" 52423 52424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52425 $as_echo "$supports" >&6; } 52426 if test "x$supports" = "xyes" ; then 52427 : 52428 CXX_COMP_SUPPORTS="yes" 52429 else 52430 : 52431 CXX_COMP_SUPPORTS="no" 52432 fi 52433 52434 52435 52436 52437 52438 52439 52440 52441 52442 52443 52444 52445 52446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52447 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52448 supports=no 52449 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52450 52451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52452 $as_echo "$supports" >&6; } 52453 if test "x$supports" = "xyes" ; then 52454 : 52455 GCC_CAN_DISABLE_WARNINGS=true 52456 else 52457 : 52458 GCC_CAN_DISABLE_WARNINGS=false 52459 52460 fi 52461 52462 52463 52464 52465 52466 52467 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52468 DISABLE_WARNING_PREFIX="-Wno-" 52469 else 52470 DISABLE_WARNING_PREFIX= 52471 fi 52472 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52473 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 52474 # CFLAGS since any target specific flags will likely not work with the 52475 # build compiler 52476 CC_OLD="$CC" 52477 CXX_OLD="$CXX" 52478 CC="$BUILD_CC" 52479 CXX="$BUILD_CXX" 52480 CFLAGS_OLD="$CFLAGS" 52481 CFLAGS="" 52482 52483 52484 52485 52486 52487 52488 52489 52490 52491 52492 52493 52494 52495 52496 52497 52498 52499 52500 52501 52502 52503 52504 52505 52506 52507 52508 52509 52510 52511 52512 52513 52514 52515 52516 52517 52518 52519 52520 52521 52522 52523 52524 52525 52526 52527 52528 52529 # Execute function body 52530 52531 52532 52533 52534 52535 52536 52537 52538 52539 52540 52541 52542 52543 52544 52545 52546 52547 52548 52549 52550 52551 52552 52553 52554 52555 52556 52557 52558 52559 52560 52561 52562 52563 52564 52565 52566 52567 52568 52569 52570 52571 52572 52573 52574 52575 52576 52577 52578 # Execute function body 52579 52580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52581 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52582 supports=yes 52583 52584 saved_cflags="$CFLAGS" 52585 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52586 ac_ext=c 52587 ac_cpp='$CPP $CPPFLAGS' 52588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52590 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52591 52592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52593 /* end confdefs.h. */ 52594 int i; 52595 _ACEOF 52596 if ac_fn_c_try_compile "$LINENO"; then : 52597 52598 else 52599 supports=no 52600 fi 52601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52602 ac_ext=cpp 52603 ac_cpp='$CXXCPP $CPPFLAGS' 52604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52607 52608 CFLAGS="$saved_cflags" 52609 52610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52611 $as_echo "$supports" >&6; } 52612 if test "x$supports" = "xyes" ; then 52613 : 52614 C_COMP_SUPPORTS="yes" 52615 else 52616 : 52617 C_COMP_SUPPORTS="no" 52618 fi 52619 52620 52621 52622 52623 52624 52625 52626 52627 52628 52629 52630 52631 52632 52633 52634 52635 52636 52637 52638 52639 52640 52641 52642 52643 52644 52645 52646 52647 52648 52649 52650 52651 52652 52653 52654 52655 52656 52657 52658 52659 52660 52661 52662 52663 52664 52665 52666 52667 52668 52669 52670 52671 52672 52673 52674 52675 52676 52677 52678 # Execute function body 52679 52680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52681 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52682 supports=yes 52683 52684 saved_cxxflags="$CXXFLAGS" 52685 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52686 ac_ext=cpp 52687 ac_cpp='$CXXCPP $CPPFLAGS' 52688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52691 52692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52693 /* end confdefs.h. */ 52694 int i; 52695 _ACEOF 52696 if ac_fn_cxx_try_compile "$LINENO"; then : 52697 52698 else 52699 supports=no 52700 fi 52701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52702 ac_ext=cpp 52703 ac_cpp='$CXXCPP $CPPFLAGS' 52704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52707 52708 CXXFLAGS="$saved_cxxflags" 52709 52710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52711 $as_echo "$supports" >&6; } 52712 if test "x$supports" = "xyes" ; then 52713 : 52714 CXX_COMP_SUPPORTS="yes" 52715 else 52716 : 52717 CXX_COMP_SUPPORTS="no" 52718 fi 52719 52720 52721 52722 52723 52724 52725 52726 52727 52728 52729 52730 52731 52732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52733 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52734 supports=no 52735 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52736 52737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52738 $as_echo "$supports" >&6; } 52739 if test "x$supports" = "xyes" ; then 52740 : 52741 BUILD_CC_CAN_DISABLE_WARNINGS=true 52742 else 52743 : 52744 BUILD_CC_CAN_DISABLE_WARNINGS=false 52745 52746 fi 52747 52748 52749 52750 52751 52752 52753 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52754 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 52755 else 52756 BUILD_CC_DISABLE_WARNING_PREFIX= 52757 fi 52758 CC="$CC_OLD" 52759 CXX="$CXX_OLD" 52760 CFLAGS="$CFLAGS_OLD" 52761 ;; 52762 clang) 52763 DISABLE_WARNING_PREFIX="-Wno-" 52764 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52765 ;; 52766 xlc) 52767 DISABLE_WARNING_PREFIX="-qsuppress=" 52768 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 52769 ;; 52770 esac 52771 52772 52773 52774 52775 52776 # Setup debug symbols (need objcopy from the toolchain for that) 52777 52778 # 52779 # NATIVE_DEBUG_SYMBOLS 52780 # This must be done after the toolchain is setup, since we're looking at objcopy. 52781 # 52782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 52783 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 52784 52785 # Check whether --with-native-debug-symbols was given. 52786 if test "${with_native_debug_symbols+set}" = set; then : 52787 withval=$with_native_debug_symbols; 52788 if test "x$OPENJDK_TARGET_OS" = xaix; then 52789 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 52790 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 52791 fi 52792 fi 52793 52794 else 52795 52796 if test "x$OPENJDK_TARGET_OS" = xaix; then 52797 # AIX doesn't support 'zipped' so use 'internal' as default 52798 with_native_debug_symbols="internal" 52799 else 52800 if test "x$STATIC_BUILD" = xtrue; then 52801 with_native_debug_symbols="none" 52802 else 52803 with_native_debug_symbols="zipped" 52804 fi 52805 fi 52806 52807 fi 52808 52809 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 52810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 52811 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 52812 52813 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 52814 52815 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52816 if test "x$OBJCOPY" = x; then 52817 # enabling of enable-debug-symbols and can't find objcopy 52818 # this is an error 52819 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52820 fi 52821 fi 52822 52823 COMPILE_WITH_DEBUG_SYMBOLS=true 52824 COPY_DEBUG_SYMBOLS=true 52825 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 52826 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 52827 COMPILE_WITH_DEBUG_SYMBOLS=false 52828 COPY_DEBUG_SYMBOLS=false 52829 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52830 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 52831 COMPILE_WITH_DEBUG_SYMBOLS=true 52832 COPY_DEBUG_SYMBOLS=false 52833 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52834 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 52835 52836 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52837 if test "x$OBJCOPY" = x; then 52838 # enabling of enable-debug-symbols and can't find objcopy 52839 # this is an error 52840 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52841 fi 52842 fi 52843 52844 COMPILE_WITH_DEBUG_SYMBOLS=true 52845 COPY_DEBUG_SYMBOLS=true 52846 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52847 else 52848 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 52849 fi 52850 52851 # --enable-debug-symbols is deprecated. 52852 # Please use --with-native-debug-symbols=[internal,external,zipped] . 52853 52854 # Check whether --enable-debug-symbols was given. 52855 if test "${enable_debug_symbols+set}" = set; then : 52856 enableval=$enable_debug_symbols; 52857 fi 52858 52859 if test "x$enable_debug_symbols" != x; then 52860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 52861 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 52862 52863 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 52864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 52865 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 52866 fi 52867 52868 fi 52869 52870 52871 # --enable-zip-debug-info is deprecated. 52872 # Please use --with-native-debug-symbols=zipped . 52873 52874 # Check whether --enable-zip-debug-info was given. 52875 if test "${enable_zip_debug_info+set}" = set; then : 52876 enableval=$enable_zip_debug_info; 52877 fi 52878 52879 if test "x$enable_zip_debug_info" != x; then 52880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 52881 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 52882 52883 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 52884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 52885 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 52886 fi 52887 52888 fi 52889 52890 52891 52892 52893 52894 52895 52896 # Check whether --enable-native-coverage was given. 52897 if test "${enable_native_coverage+set}" = set; then : 52898 enableval=$enable_native_coverage; 52899 fi 52900 52901 GCOV_ENABLED="false" 52902 if test "x$enable_native_coverage" = "xyes"; then 52903 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 52904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52905 $as_echo_n "checking if native coverage is enabled... " >&6; } 52906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52907 $as_echo "yes" >&6; } 52908 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 52909 GCOV_LDFLAGS="-fprofile-arcs" 52910 JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" 52911 JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" 52912 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 52913 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 52914 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 52915 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 52916 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 52917 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 52918 GCOV_ENABLED="true" 52919 else 52920 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 52921 fi 52922 elif test "x$enable_native_coverage" = "xno"; then 52923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52924 $as_echo_n "checking if native coverage is enabled... " >&6; } 52925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52926 $as_echo "no" >&6; } 52927 elif test "x$enable_native_coverage" != "x"; then 52928 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 52929 fi 52930 52931 52932 52933 52934 # Need toolchain to setup dtrace 52935 52936 # Test for dtrace dependencies 52937 # Check whether --enable-dtrace was given. 52938 if test "${enable_dtrace+set}" = set; then : 52939 enableval=$enable_dtrace; 52940 fi 52941 52942 52943 DTRACE_DEP_MISSING=false 52944 52945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 52946 $as_echo_n "checking for dtrace tool... " >&6; } 52947 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 52948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 52949 $as_echo "$DTRACE" >&6; } 52950 else 52951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 52952 $as_echo "not found, cannot build dtrace" >&6; } 52953 DTRACE_DEP_MISSING=true 52954 fi 52955 52956 for ac_header in sys/sdt.h 52957 do : 52958 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 52959 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 52960 cat >>confdefs.h <<_ACEOF 52961 #define HAVE_SYS_SDT_H 1 52962 _ACEOF 52963 DTRACE_HEADERS_OK=yes 52964 else 52965 DTRACE_HEADERS_OK=no 52966 fi 52967 52968 done 52969 52970 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 52971 DTRACE_DEP_MISSING=true 52972 fi 52973 52974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 52975 $as_echo_n "checking if dtrace should be built... " >&6; } 52976 if test "x$enable_dtrace" = "xyes"; then 52977 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52979 $as_echo "no, missing dependencies" >&6; } 52980 52981 # Print a helpful message on how to acquire the necessary build dependency. 52982 # dtrace is the help tag: freetype, cups, alsa etc 52983 MISSING_DEPENDENCY=dtrace 52984 52985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52986 cygwin_help $MISSING_DEPENDENCY 52987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52988 msys_help $MISSING_DEPENDENCY 52989 else 52990 PKGHANDLER_COMMAND= 52991 52992 case $PKGHANDLER in 52993 apt-get) 52994 apt_help $MISSING_DEPENDENCY ;; 52995 yum) 52996 yum_help $MISSING_DEPENDENCY ;; 52997 brew) 52998 brew_help $MISSING_DEPENDENCY ;; 52999 port) 53000 port_help $MISSING_DEPENDENCY ;; 53001 pkgutil) 53002 pkgutil_help $MISSING_DEPENDENCY ;; 53003 pkgadd) 53004 pkgadd_help $MISSING_DEPENDENCY ;; 53005 esac 53006 53007 if test "x$PKGHANDLER_COMMAND" != x; then 53008 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 53009 fi 53010 fi 53011 53012 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 53013 else 53014 INCLUDE_DTRACE=true 53015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 53016 $as_echo "yes, forced" >&6; } 53017 fi 53018 elif test "x$enable_dtrace" = "xno"; then 53019 INCLUDE_DTRACE=false 53020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 53021 $as_echo "no, forced" >&6; } 53022 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 53023 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 53024 INCLUDE_DTRACE=false 53025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 53026 $as_echo "no, missing dependencies" >&6; } 53027 else 53028 INCLUDE_DTRACE=true 53029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 53030 $as_echo "yes, dependencies present" >&6; } 53031 fi 53032 else 53033 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 53034 fi 53035 53036 53037 # Check whether --enable-aot was given. 53038 if test "${enable_aot+set}" = set; then : 53039 enableval=$enable_aot; 53040 fi 53041 53042 53043 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then 53044 ENABLE_AOT="true" 53045 elif test "x$enable_aot" = "xyes"; then 53046 ENABLE_AOT="true" 53047 elif test "x$enable_aot" = "xno"; then 53048 ENABLE_AOT="false" 53049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 53050 $as_echo_n "checking if aot should be enabled... " >&6; } 53051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 53052 $as_echo "no, forced" >&6; } 53053 else 53054 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5 53055 fi 53056 53057 if test "x$ENABLE_AOT" = "xtrue"; then 53058 # Only enable AOT on linux-X64. 53059 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = "xlinux-x86_64"; then 53060 if test -e "$HOTSPOT_TOPDIR/src/jdk.aot"; then 53061 if test -e "$HOTSPOT_TOPDIR/src/jdk.internal.vm.compiler"; then 53062 ENABLE_AOT="true" 53063 else 53064 ENABLE_AOT="false" 53065 if test "x$enable_aot" = "xyes"; then 53066 as_fn_error $? "Cannot build AOT without hotspot/src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5 53067 fi 53068 fi 53069 else 53070 ENABLE_AOT="false" 53071 if test "x$enable_aot" = "xyes"; then 53072 as_fn_error $? "Cannot build AOT without hotspot/src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5 53073 fi 53074 fi 53075 else 53076 ENABLE_AOT="false" 53077 if test "x$enable_aot" = "xyes"; then 53078 as_fn_error $? "AOT is currently only supported on Linux-x86_64. Remove --enable-aot." "$LINENO" 5 53079 fi 53080 fi 53081 fi 53082 53083 53084 53085 53086 # Check whether --enable-hotspot-gtest was given. 53087 if test "${enable_hotspot_gtest+set}" = set; then : 53088 enableval=$enable_hotspot_gtest; 53089 fi 53090 53091 53092 if test -e "$HOTSPOT_TOPDIR/test/native"; then 53093 GTEST_DIR_EXISTS="true" 53094 else 53095 GTEST_DIR_EXISTS="false" 53096 fi 53097 53098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 53099 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 53100 if test "x$enable_hotspot_gtest" = "xyes"; then 53101 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 53102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 53103 $as_echo "yes, forced" >&6; } 53104 BUILD_GTEST="true" 53105 else 53106 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 53107 fi 53108 elif test "x$enable_hotspot_gtest" = "xno"; then 53109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 53110 $as_echo "no, forced" >&6; } 53111 BUILD_GTEST="false" 53112 elif test "x$enable_hotspot_gtest" = "x"; then 53113 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 53114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53115 $as_echo "yes" >&6; } 53116 BUILD_GTEST="true" 53117 else 53118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53119 $as_echo "no" >&6; } 53120 BUILD_GTEST="false" 53121 fi 53122 else 53123 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 53124 fi 53125 53126 53127 53128 53129 ############################################################################### 53130 # 53131 # Check dependencies for external and internal libraries. 53132 # 53133 ############################################################################### 53134 53135 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 53136 53137 # When using cygwin or msys, we need a wrapper binary that renames 53138 # /cygdrive/c/ arguments into c:/ arguments and peeks into 53139 # @files and rewrites these too! This wrapper binary is 53140 # called fixpath. 53141 FIXPATH= 53142 if test "x$OPENJDK_BUILD_OS" = xwindows; then 53143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 53144 $as_echo_n "checking if fixpath can be created... " >&6; } 53145 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 53146 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 53147 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 53148 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 53149 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 53150 FIXPATH="$FIXPATH_BIN -c" 53151 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 53152 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 53153 # @ was chosen as separator to minimize risk of other tools messing around with it 53154 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 53155 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 53156 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 53157 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 53158 fi 53159 FIXPATH_SRC_W="$FIXPATH_SRC" 53160 FIXPATH_BIN_W="$FIXPATH_BIN" 53161 53162 unix_path="$FIXPATH_SRC_W" 53163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53164 windows_path=`$CYGPATH -m "$unix_path"` 53165 FIXPATH_SRC_W="$windows_path" 53166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53167 windows_path=`cmd //c echo $unix_path` 53168 FIXPATH_SRC_W="$windows_path" 53169 fi 53170 53171 53172 unix_path="$FIXPATH_BIN_W" 53173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53174 windows_path=`$CYGPATH -m "$unix_path"` 53175 FIXPATH_BIN_W="$windows_path" 53176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53177 windows_path=`cmd //c echo $unix_path` 53178 FIXPATH_BIN_W="$windows_path" 53179 fi 53180 53181 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 53182 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 53183 cd $FIXPATH_DIR 53184 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 53185 cd $CURDIR 53186 53187 if test ! -x $FIXPATH_BIN; then 53188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53189 $as_echo "no" >&6; } 53190 cat $FIXPATH_DIR/fixpath1.log 53191 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 53192 fi 53193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53194 $as_echo "yes" >&6; } 53195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 53196 $as_echo_n "checking if fixpath.exe works... " >&6; } 53197 cd $FIXPATH_DIR 53198 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 53199 > $FIXPATH_DIR/fixpath2.log 2>&1 53200 cd $CURDIR 53201 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 53202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53203 $as_echo "no" >&6; } 53204 cat $FIXPATH_DIR/fixpath2.log 53205 as_fn_error $? "fixpath did not work!" "$LINENO" 5 53206 fi 53207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53208 $as_echo "yes" >&6; } 53209 53210 FIXPATH_DETACH_FLAG="--detach" 53211 fi 53212 53213 53214 53215 53216 53217 53218 # Check if X11 is needed 53219 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 53220 # No X11 support on windows or macosx 53221 NEEDS_LIB_X11=false 53222 else 53223 # All other instances need X11, even if building headless only, libawt still 53224 # needs X11 headers. 53225 NEEDS_LIB_X11=true 53226 fi 53227 53228 # Check if cups is needed 53229 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53230 # Windows have a separate print system 53231 NEEDS_LIB_CUPS=false 53232 else 53233 NEEDS_LIB_CUPS=true 53234 fi 53235 53236 # A custom hook may have set this already 53237 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 53238 NEEDS_LIB_FREETYPE=true 53239 fi 53240 53241 # Check if alsa is needed 53242 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53243 NEEDS_LIB_ALSA=true 53244 else 53245 NEEDS_LIB_ALSA=false 53246 fi 53247 53248 # Check if ffi is needed 53249 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53250 NEEDS_LIB_FFI=true 53251 else 53252 NEEDS_LIB_FFI=false 53253 fi 53254 53255 53256 # statically link libstdc++ before C++ ABI is stablized on Linux unless 53257 # dynamic build is configured on command line. 53258 53259 # Check whether --with-stdc++lib was given. 53260 if test "${with_stdc__lib+set}" = set; then : 53261 withval=$with_stdc__lib; 53262 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 53263 && test "x$with_stdc__lib" != xdefault; then 53264 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 53265 fi 53266 53267 else 53268 with_stdc__lib=default 53269 53270 fi 53271 53272 53273 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53274 # Test if stdc++ can be linked statically. 53275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 53276 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 53277 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 53278 ac_ext=cpp 53279 ac_cpp='$CXXCPP $CPPFLAGS' 53280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53283 53284 OLD_LIBS="$LIBS" 53285 LIBS="$STATIC_STDCXX_FLAGS" 53286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53287 /* end confdefs.h. */ 53288 53289 int 53290 main () 53291 { 53292 return 0; 53293 ; 53294 return 0; 53295 } 53296 _ACEOF 53297 if ac_fn_cxx_try_link "$LINENO"; then : 53298 has_static_libstdcxx=yes 53299 else 53300 has_static_libstdcxx=no 53301 fi 53302 rm -f core conftest.err conftest.$ac_objext \ 53303 conftest$ac_exeext conftest.$ac_ext 53304 LIBS="$OLD_LIBS" 53305 ac_ext=cpp 53306 ac_cpp='$CXXCPP $CPPFLAGS' 53307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53310 53311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 53312 $as_echo "$has_static_libstdcxx" >&6; } 53313 53314 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 53315 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 53316 fi 53317 53318 # If dynamic was requested, it's available since it would fail above otherwise. 53319 # If dynamic wasn't requested, go with static unless it isn't available. 53320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 53321 $as_echo_n "checking how to link with libstdc++... " >&6; } 53322 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno \ 53323 || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 53325 $as_echo "dynamic" >&6; } 53326 else 53327 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 53328 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 53329 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 53330 # just use the same setting as for the TARGET toolchain. 53331 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 53332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 53333 $as_echo "static" >&6; } 53334 fi 53335 fi 53336 53337 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 53338 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 53339 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 53340 fi 53341 53342 53343 53344 # Setup Windows runtime dlls 53345 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 53346 53347 53348 # Check whether --with-msvcr-dll was given. 53349 if test "${with_msvcr_dll+set}" = set; then : 53350 withval=$with_msvcr_dll; 53351 fi 53352 53353 53354 if test "x$with_msvcr_dll" != x; then 53355 # If given explicitly by user, do not probe. If not present, fail directly. 53356 53357 DLL_NAME="$MSVCR_NAME" 53358 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 53359 METHOD="--with-msvcr-dll" 53360 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53361 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53362 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53363 53364 # Need to check if the found msvcr is correct architecture 53365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53366 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53367 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53368 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53369 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53370 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53371 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53372 CORRECT_MSVCR_ARCH="PE32 executable" 53373 else 53374 CORRECT_MSVCR_ARCH="PE32+ executable" 53375 fi 53376 else 53377 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53378 CORRECT_MSVCR_ARCH=386 53379 else 53380 CORRECT_MSVCR_ARCH=x86-64 53381 fi 53382 fi 53383 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53385 $as_echo "ok" >&6; } 53386 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53387 53388 # Only process if variable expands to non-empty 53389 53390 if test "x$MSVC_DLL" != x; then 53391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53392 53393 # Input might be given as Windows format, start by converting to 53394 # unix format. 53395 path="$MSVC_DLL" 53396 new_path=`$CYGPATH -u "$path"` 53397 53398 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53399 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53400 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53401 # "foo.exe" is OK but "foo" is an error. 53402 # 53403 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53404 # It is also a way to make sure we got the proper file name for the real test later on. 53405 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53406 if test "x$test_shortpath" = x; then 53407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53408 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53409 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53410 fi 53411 53412 # Call helper function which possibly converts this using DOS-style short mode. 53413 # If so, the updated path is stored in $new_path. 53414 53415 input_path="$new_path" 53416 # Check if we need to convert this using DOS-style short mode. If the path 53417 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53418 # take no chances and rewrite it. 53419 # Note: m4 eats our [], so we need to use [ and ] instead. 53420 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53421 if test "x$has_forbidden_chars" != x; then 53422 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53423 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53424 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53425 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53426 # Going to short mode and back again did indeed matter. Since short mode is 53427 # case insensitive, let's make it lowercase to improve readability. 53428 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53429 # Now convert it back to Unix-style (cygpath) 53430 input_path=`$CYGPATH -u "$shortmode_path"` 53431 new_path="$input_path" 53432 fi 53433 fi 53434 53435 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53436 if test "x$test_cygdrive_prefix" = x; then 53437 # As a simple fix, exclude /usr/bin since it's not a real path. 53438 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53439 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53440 # a path prefixed by /cygdrive for fixpath to work. 53441 new_path="$CYGWIN_ROOT_PATH$input_path" 53442 fi 53443 fi 53444 53445 53446 if test "x$path" != "x$new_path"; then 53447 MSVC_DLL="$new_path" 53448 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53449 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53450 fi 53451 53452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53453 53454 path="$MSVC_DLL" 53455 has_colon=`$ECHO $path | $GREP ^.:` 53456 new_path="$path" 53457 if test "x$has_colon" = x; then 53458 # Not in mixed or Windows style, start by that. 53459 new_path=`cmd //c echo $path` 53460 fi 53461 53462 53463 input_path="$new_path" 53464 # Check if we need to convert this using DOS-style short mode. If the path 53465 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53466 # take no chances and rewrite it. 53467 # Note: m4 eats our [], so we need to use [ and ] instead. 53468 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53469 if test "x$has_forbidden_chars" != x; then 53470 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53471 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53472 fi 53473 53474 53475 windows_path="$new_path" 53476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53477 unix_path=`$CYGPATH -u "$windows_path"` 53478 new_path="$unix_path" 53479 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53480 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53481 new_path="$unix_path" 53482 fi 53483 53484 if test "x$path" != "x$new_path"; then 53485 MSVC_DLL="$new_path" 53486 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53487 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53488 fi 53489 53490 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53491 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53492 53493 else 53494 # We're on a unix platform. Hooray! :) 53495 path="$MSVC_DLL" 53496 has_space=`$ECHO "$path" | $GREP " "` 53497 if test "x$has_space" != x; then 53498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53499 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53500 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53501 fi 53502 53503 # Use eval to expand a potential ~ 53504 eval path="$path" 53505 if test ! -f "$path" && test ! -d "$path"; then 53506 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53507 fi 53508 53509 if test -d "$path"; then 53510 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53511 else 53512 dir="`$DIRNAME "$path"`" 53513 base="`$BASENAME "$path"`" 53514 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53515 fi 53516 fi 53517 fi 53518 53519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53520 $as_echo_n "checking for $DLL_NAME... " >&6; } 53521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53522 $as_echo "$MSVC_DLL" >&6; } 53523 else 53524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53525 $as_echo "incorrect, ignoring" >&6; } 53526 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53527 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53528 fi 53529 fi 53530 53531 if test "x$MSVC_DLL" = x; then 53532 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 53533 fi 53534 MSVCR_DLL="$MSVC_DLL" 53535 elif test "x$DEVKIT_MSVCR_DLL" != x; then 53536 53537 DLL_NAME="$MSVCR_NAME" 53538 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 53539 METHOD="devkit" 53540 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53541 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53542 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53543 53544 # Need to check if the found msvcr is correct architecture 53545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53546 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53547 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53549 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53550 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53551 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53552 CORRECT_MSVCR_ARCH="PE32 executable" 53553 else 53554 CORRECT_MSVCR_ARCH="PE32+ executable" 53555 fi 53556 else 53557 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53558 CORRECT_MSVCR_ARCH=386 53559 else 53560 CORRECT_MSVCR_ARCH=x86-64 53561 fi 53562 fi 53563 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53565 $as_echo "ok" >&6; } 53566 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53567 53568 # Only process if variable expands to non-empty 53569 53570 if test "x$MSVC_DLL" != x; then 53571 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53572 53573 # Input might be given as Windows format, start by converting to 53574 # unix format. 53575 path="$MSVC_DLL" 53576 new_path=`$CYGPATH -u "$path"` 53577 53578 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53579 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53580 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53581 # "foo.exe" is OK but "foo" is an error. 53582 # 53583 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53584 # It is also a way to make sure we got the proper file name for the real test later on. 53585 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53586 if test "x$test_shortpath" = x; then 53587 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53588 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53589 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53590 fi 53591 53592 # Call helper function which possibly converts this using DOS-style short mode. 53593 # If so, the updated path is stored in $new_path. 53594 53595 input_path="$new_path" 53596 # Check if we need to convert this using DOS-style short mode. If the path 53597 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53598 # take no chances and rewrite it. 53599 # Note: m4 eats our [], so we need to use [ and ] instead. 53600 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53601 if test "x$has_forbidden_chars" != x; then 53602 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53603 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53604 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53605 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53606 # Going to short mode and back again did indeed matter. Since short mode is 53607 # case insensitive, let's make it lowercase to improve readability. 53608 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53609 # Now convert it back to Unix-style (cygpath) 53610 input_path=`$CYGPATH -u "$shortmode_path"` 53611 new_path="$input_path" 53612 fi 53613 fi 53614 53615 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53616 if test "x$test_cygdrive_prefix" = x; then 53617 # As a simple fix, exclude /usr/bin since it's not a real path. 53618 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53619 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53620 # a path prefixed by /cygdrive for fixpath to work. 53621 new_path="$CYGWIN_ROOT_PATH$input_path" 53622 fi 53623 fi 53624 53625 53626 if test "x$path" != "x$new_path"; then 53627 MSVC_DLL="$new_path" 53628 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53629 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53630 fi 53631 53632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53633 53634 path="$MSVC_DLL" 53635 has_colon=`$ECHO $path | $GREP ^.:` 53636 new_path="$path" 53637 if test "x$has_colon" = x; then 53638 # Not in mixed or Windows style, start by that. 53639 new_path=`cmd //c echo $path` 53640 fi 53641 53642 53643 input_path="$new_path" 53644 # Check if we need to convert this using DOS-style short mode. If the path 53645 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53646 # take no chances and rewrite it. 53647 # Note: m4 eats our [], so we need to use [ and ] instead. 53648 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53649 if test "x$has_forbidden_chars" != x; then 53650 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53651 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53652 fi 53653 53654 53655 windows_path="$new_path" 53656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53657 unix_path=`$CYGPATH -u "$windows_path"` 53658 new_path="$unix_path" 53659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53660 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53661 new_path="$unix_path" 53662 fi 53663 53664 if test "x$path" != "x$new_path"; then 53665 MSVC_DLL="$new_path" 53666 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53667 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53668 fi 53669 53670 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53671 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53672 53673 else 53674 # We're on a unix platform. Hooray! :) 53675 path="$MSVC_DLL" 53676 has_space=`$ECHO "$path" | $GREP " "` 53677 if test "x$has_space" != x; then 53678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53679 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53680 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53681 fi 53682 53683 # Use eval to expand a potential ~ 53684 eval path="$path" 53685 if test ! -f "$path" && test ! -d "$path"; then 53686 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53687 fi 53688 53689 if test -d "$path"; then 53690 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53691 else 53692 dir="`$DIRNAME "$path"`" 53693 base="`$BASENAME "$path"`" 53694 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53695 fi 53696 fi 53697 fi 53698 53699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53700 $as_echo_n "checking for $DLL_NAME... " >&6; } 53701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53702 $as_echo "$MSVC_DLL" >&6; } 53703 else 53704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53705 $as_echo "incorrect, ignoring" >&6; } 53706 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53707 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53708 fi 53709 fi 53710 53711 if test "x$MSVC_DLL" = x; then 53712 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 53713 fi 53714 MSVCR_DLL="$MSVC_DLL" 53715 else 53716 53717 DLL_NAME="${MSVCR_NAME}" 53718 MSVC_DLL= 53719 53720 if test "x$MSVC_DLL" = x; then 53721 # Probe: Using well-known location from Visual Studio 10.0 53722 if test "x$VCINSTALLDIR" != x; then 53723 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 53724 53725 windows_path="$CYGWIN_VC_INSTALL_DIR" 53726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53727 unix_path=`$CYGPATH -u "$windows_path"` 53728 CYGWIN_VC_INSTALL_DIR="$unix_path" 53729 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53730 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53731 CYGWIN_VC_INSTALL_DIR="$unix_path" 53732 fi 53733 53734 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 53735 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53736 else 53737 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53738 fi 53739 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 53740 53741 DLL_NAME="$DLL_NAME" 53742 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53743 METHOD="well-known location in VCINSTALLDIR" 53744 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53745 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53746 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53747 53748 # Need to check if the found msvcr is correct architecture 53749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53750 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53751 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53753 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53754 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53755 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53756 CORRECT_MSVCR_ARCH="PE32 executable" 53757 else 53758 CORRECT_MSVCR_ARCH="PE32+ executable" 53759 fi 53760 else 53761 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53762 CORRECT_MSVCR_ARCH=386 53763 else 53764 CORRECT_MSVCR_ARCH=x86-64 53765 fi 53766 fi 53767 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53769 $as_echo "ok" >&6; } 53770 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53771 53772 # Only process if variable expands to non-empty 53773 53774 if test "x$MSVC_DLL" != x; then 53775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53776 53777 # Input might be given as Windows format, start by converting to 53778 # unix format. 53779 path="$MSVC_DLL" 53780 new_path=`$CYGPATH -u "$path"` 53781 53782 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53783 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53784 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53785 # "foo.exe" is OK but "foo" is an error. 53786 # 53787 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53788 # It is also a way to make sure we got the proper file name for the real test later on. 53789 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53790 if test "x$test_shortpath" = x; then 53791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53792 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53793 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53794 fi 53795 53796 # Call helper function which possibly converts this using DOS-style short mode. 53797 # If so, the updated path is stored in $new_path. 53798 53799 input_path="$new_path" 53800 # Check if we need to convert this using DOS-style short mode. If the path 53801 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53802 # take no chances and rewrite it. 53803 # Note: m4 eats our [], so we need to use [ and ] instead. 53804 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53805 if test "x$has_forbidden_chars" != x; then 53806 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53807 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53808 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53809 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53810 # Going to short mode and back again did indeed matter. Since short mode is 53811 # case insensitive, let's make it lowercase to improve readability. 53812 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53813 # Now convert it back to Unix-style (cygpath) 53814 input_path=`$CYGPATH -u "$shortmode_path"` 53815 new_path="$input_path" 53816 fi 53817 fi 53818 53819 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53820 if test "x$test_cygdrive_prefix" = x; then 53821 # As a simple fix, exclude /usr/bin since it's not a real path. 53822 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53823 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53824 # a path prefixed by /cygdrive for fixpath to work. 53825 new_path="$CYGWIN_ROOT_PATH$input_path" 53826 fi 53827 fi 53828 53829 53830 if test "x$path" != "x$new_path"; then 53831 MSVC_DLL="$new_path" 53832 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53833 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53834 fi 53835 53836 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53837 53838 path="$MSVC_DLL" 53839 has_colon=`$ECHO $path | $GREP ^.:` 53840 new_path="$path" 53841 if test "x$has_colon" = x; then 53842 # Not in mixed or Windows style, start by that. 53843 new_path=`cmd //c echo $path` 53844 fi 53845 53846 53847 input_path="$new_path" 53848 # Check if we need to convert this using DOS-style short mode. If the path 53849 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53850 # take no chances and rewrite it. 53851 # Note: m4 eats our [], so we need to use [ and ] instead. 53852 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53853 if test "x$has_forbidden_chars" != x; then 53854 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53855 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53856 fi 53857 53858 53859 windows_path="$new_path" 53860 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53861 unix_path=`$CYGPATH -u "$windows_path"` 53862 new_path="$unix_path" 53863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53864 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53865 new_path="$unix_path" 53866 fi 53867 53868 if test "x$path" != "x$new_path"; then 53869 MSVC_DLL="$new_path" 53870 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53871 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53872 fi 53873 53874 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53875 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53876 53877 else 53878 # We're on a unix platform. Hooray! :) 53879 path="$MSVC_DLL" 53880 has_space=`$ECHO "$path" | $GREP " "` 53881 if test "x$has_space" != x; then 53882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53883 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53884 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53885 fi 53886 53887 # Use eval to expand a potential ~ 53888 eval path="$path" 53889 if test ! -f "$path" && test ! -d "$path"; then 53890 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53891 fi 53892 53893 if test -d "$path"; then 53894 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53895 else 53896 dir="`$DIRNAME "$path"`" 53897 base="`$BASENAME "$path"`" 53898 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53899 fi 53900 fi 53901 fi 53902 53903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53904 $as_echo_n "checking for $DLL_NAME... " >&6; } 53905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53906 $as_echo "$MSVC_DLL" >&6; } 53907 else 53908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53909 $as_echo "incorrect, ignoring" >&6; } 53910 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53911 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53912 fi 53913 fi 53914 53915 fi 53916 fi 53917 53918 if test "x$MSVC_DLL" = x; then 53919 # Probe: Check in the Boot JDK directory. 53920 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 53921 53922 DLL_NAME="$DLL_NAME" 53923 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53924 METHOD="well-known location in Boot JDK" 53925 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53926 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53927 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53928 53929 # Need to check if the found msvcr is correct architecture 53930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53931 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53932 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53934 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53935 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53936 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53937 CORRECT_MSVCR_ARCH="PE32 executable" 53938 else 53939 CORRECT_MSVCR_ARCH="PE32+ executable" 53940 fi 53941 else 53942 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53943 CORRECT_MSVCR_ARCH=386 53944 else 53945 CORRECT_MSVCR_ARCH=x86-64 53946 fi 53947 fi 53948 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53950 $as_echo "ok" >&6; } 53951 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53952 53953 # Only process if variable expands to non-empty 53954 53955 if test "x$MSVC_DLL" != x; then 53956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53957 53958 # Input might be given as Windows format, start by converting to 53959 # unix format. 53960 path="$MSVC_DLL" 53961 new_path=`$CYGPATH -u "$path"` 53962 53963 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53964 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53965 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53966 # "foo.exe" is OK but "foo" is an error. 53967 # 53968 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53969 # It is also a way to make sure we got the proper file name for the real test later on. 53970 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53971 if test "x$test_shortpath" = x; then 53972 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53973 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53974 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53975 fi 53976 53977 # Call helper function which possibly converts this using DOS-style short mode. 53978 # If so, the updated path is stored in $new_path. 53979 53980 input_path="$new_path" 53981 # Check if we need to convert this using DOS-style short mode. If the path 53982 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53983 # take no chances and rewrite it. 53984 # Note: m4 eats our [], so we need to use [ and ] instead. 53985 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53986 if test "x$has_forbidden_chars" != x; then 53987 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53988 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53989 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53990 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53991 # Going to short mode and back again did indeed matter. Since short mode is 53992 # case insensitive, let's make it lowercase to improve readability. 53993 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53994 # Now convert it back to Unix-style (cygpath) 53995 input_path=`$CYGPATH -u "$shortmode_path"` 53996 new_path="$input_path" 53997 fi 53998 fi 53999 54000 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54001 if test "x$test_cygdrive_prefix" = x; then 54002 # As a simple fix, exclude /usr/bin since it's not a real path. 54003 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54004 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54005 # a path prefixed by /cygdrive for fixpath to work. 54006 new_path="$CYGWIN_ROOT_PATH$input_path" 54007 fi 54008 fi 54009 54010 54011 if test "x$path" != "x$new_path"; then 54012 MSVC_DLL="$new_path" 54013 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54014 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54015 fi 54016 54017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54018 54019 path="$MSVC_DLL" 54020 has_colon=`$ECHO $path | $GREP ^.:` 54021 new_path="$path" 54022 if test "x$has_colon" = x; then 54023 # Not in mixed or Windows style, start by that. 54024 new_path=`cmd //c echo $path` 54025 fi 54026 54027 54028 input_path="$new_path" 54029 # Check if we need to convert this using DOS-style short mode. If the path 54030 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54031 # take no chances and rewrite it. 54032 # Note: m4 eats our [], so we need to use [ and ] instead. 54033 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54034 if test "x$has_forbidden_chars" != x; then 54035 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54036 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54037 fi 54038 54039 54040 windows_path="$new_path" 54041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54042 unix_path=`$CYGPATH -u "$windows_path"` 54043 new_path="$unix_path" 54044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54045 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54046 new_path="$unix_path" 54047 fi 54048 54049 if test "x$path" != "x$new_path"; then 54050 MSVC_DLL="$new_path" 54051 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54052 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54053 fi 54054 54055 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54056 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54057 54058 else 54059 # We're on a unix platform. Hooray! :) 54060 path="$MSVC_DLL" 54061 has_space=`$ECHO "$path" | $GREP " "` 54062 if test "x$has_space" != x; then 54063 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54064 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54065 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54066 fi 54067 54068 # Use eval to expand a potential ~ 54069 eval path="$path" 54070 if test ! -f "$path" && test ! -d "$path"; then 54071 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54072 fi 54073 54074 if test -d "$path"; then 54075 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54076 else 54077 dir="`$DIRNAME "$path"`" 54078 base="`$BASENAME "$path"`" 54079 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54080 fi 54081 fi 54082 fi 54083 54084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54085 $as_echo_n "checking for $DLL_NAME... " >&6; } 54086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54087 $as_echo "$MSVC_DLL" >&6; } 54088 else 54089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54090 $as_echo "incorrect, ignoring" >&6; } 54091 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54092 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54093 fi 54094 fi 54095 54096 fi 54097 54098 if test "x$MSVC_DLL" = x; then 54099 # Probe: Look in the Windows system32 directory 54100 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 54101 54102 windows_path="$CYGWIN_SYSTEMROOT" 54103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54104 unix_path=`$CYGPATH -u "$windows_path"` 54105 CYGWIN_SYSTEMROOT="$unix_path" 54106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54108 CYGWIN_SYSTEMROOT="$unix_path" 54109 fi 54110 54111 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 54112 54113 DLL_NAME="$DLL_NAME" 54114 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54115 METHOD="well-known location in SYSTEMROOT" 54116 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54117 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54118 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54119 54120 # Need to check if the found msvcr is correct architecture 54121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54122 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54123 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54125 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54126 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54127 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54128 CORRECT_MSVCR_ARCH="PE32 executable" 54129 else 54130 CORRECT_MSVCR_ARCH="PE32+ executable" 54131 fi 54132 else 54133 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54134 CORRECT_MSVCR_ARCH=386 54135 else 54136 CORRECT_MSVCR_ARCH=x86-64 54137 fi 54138 fi 54139 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54141 $as_echo "ok" >&6; } 54142 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54143 54144 # Only process if variable expands to non-empty 54145 54146 if test "x$MSVC_DLL" != x; then 54147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54148 54149 # Input might be given as Windows format, start by converting to 54150 # unix format. 54151 path="$MSVC_DLL" 54152 new_path=`$CYGPATH -u "$path"` 54153 54154 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54155 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54156 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54157 # "foo.exe" is OK but "foo" is an error. 54158 # 54159 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54160 # It is also a way to make sure we got the proper file name for the real test later on. 54161 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54162 if test "x$test_shortpath" = x; then 54163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54164 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54165 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54166 fi 54167 54168 # Call helper function which possibly converts this using DOS-style short mode. 54169 # If so, the updated path is stored in $new_path. 54170 54171 input_path="$new_path" 54172 # Check if we need to convert this using DOS-style short mode. If the path 54173 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54174 # take no chances and rewrite it. 54175 # Note: m4 eats our [], so we need to use [ and ] instead. 54176 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54177 if test "x$has_forbidden_chars" != x; then 54178 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54179 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54180 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54181 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54182 # Going to short mode and back again did indeed matter. Since short mode is 54183 # case insensitive, let's make it lowercase to improve readability. 54184 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54185 # Now convert it back to Unix-style (cygpath) 54186 input_path=`$CYGPATH -u "$shortmode_path"` 54187 new_path="$input_path" 54188 fi 54189 fi 54190 54191 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54192 if test "x$test_cygdrive_prefix" = x; then 54193 # As a simple fix, exclude /usr/bin since it's not a real path. 54194 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54195 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54196 # a path prefixed by /cygdrive for fixpath to work. 54197 new_path="$CYGWIN_ROOT_PATH$input_path" 54198 fi 54199 fi 54200 54201 54202 if test "x$path" != "x$new_path"; then 54203 MSVC_DLL="$new_path" 54204 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54205 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54206 fi 54207 54208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54209 54210 path="$MSVC_DLL" 54211 has_colon=`$ECHO $path | $GREP ^.:` 54212 new_path="$path" 54213 if test "x$has_colon" = x; then 54214 # Not in mixed or Windows style, start by that. 54215 new_path=`cmd //c echo $path` 54216 fi 54217 54218 54219 input_path="$new_path" 54220 # Check if we need to convert this using DOS-style short mode. If the path 54221 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54222 # take no chances and rewrite it. 54223 # Note: m4 eats our [], so we need to use [ and ] instead. 54224 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54225 if test "x$has_forbidden_chars" != x; then 54226 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54227 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54228 fi 54229 54230 54231 windows_path="$new_path" 54232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54233 unix_path=`$CYGPATH -u "$windows_path"` 54234 new_path="$unix_path" 54235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54237 new_path="$unix_path" 54238 fi 54239 54240 if test "x$path" != "x$new_path"; then 54241 MSVC_DLL="$new_path" 54242 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54243 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54244 fi 54245 54246 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54247 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54248 54249 else 54250 # We're on a unix platform. Hooray! :) 54251 path="$MSVC_DLL" 54252 has_space=`$ECHO "$path" | $GREP " "` 54253 if test "x$has_space" != x; then 54254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54255 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54256 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54257 fi 54258 54259 # Use eval to expand a potential ~ 54260 eval path="$path" 54261 if test ! -f "$path" && test ! -d "$path"; then 54262 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54263 fi 54264 54265 if test -d "$path"; then 54266 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54267 else 54268 dir="`$DIRNAME "$path"`" 54269 base="`$BASENAME "$path"`" 54270 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54271 fi 54272 fi 54273 fi 54274 54275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54276 $as_echo_n "checking for $DLL_NAME... " >&6; } 54277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54278 $as_echo "$MSVC_DLL" >&6; } 54279 else 54280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54281 $as_echo "incorrect, ignoring" >&6; } 54282 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54283 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54284 fi 54285 fi 54286 54287 fi 54288 54289 if test "x$MSVC_DLL" = x; then 54290 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 54291 if test "x$VS100COMNTOOLS" != x; then 54292 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 54293 54294 windows_path="$CYGWIN_VS_TOOLS_DIR" 54295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54296 unix_path=`$CYGPATH -u "$windows_path"` 54297 CYGWIN_VS_TOOLS_DIR="$unix_path" 54298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54300 CYGWIN_VS_TOOLS_DIR="$unix_path" 54301 fi 54302 54303 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54304 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54305 | $GREP -i /x64/ | $HEAD --lines 1` 54306 else 54307 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54308 | $GREP -i /x86/ | $HEAD --lines 1` 54309 fi 54310 54311 DLL_NAME="$DLL_NAME" 54312 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54313 METHOD="search of VS100COMNTOOLS" 54314 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54315 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54316 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54317 54318 # Need to check if the found msvcr is correct architecture 54319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54320 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54321 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54323 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54324 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54325 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54326 CORRECT_MSVCR_ARCH="PE32 executable" 54327 else 54328 CORRECT_MSVCR_ARCH="PE32+ executable" 54329 fi 54330 else 54331 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54332 CORRECT_MSVCR_ARCH=386 54333 else 54334 CORRECT_MSVCR_ARCH=x86-64 54335 fi 54336 fi 54337 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54339 $as_echo "ok" >&6; } 54340 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54341 54342 # Only process if variable expands to non-empty 54343 54344 if test "x$MSVC_DLL" != x; then 54345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54346 54347 # Input might be given as Windows format, start by converting to 54348 # unix format. 54349 path="$MSVC_DLL" 54350 new_path=`$CYGPATH -u "$path"` 54351 54352 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54353 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54354 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54355 # "foo.exe" is OK but "foo" is an error. 54356 # 54357 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54358 # It is also a way to make sure we got the proper file name for the real test later on. 54359 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54360 if test "x$test_shortpath" = x; then 54361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54362 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54363 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54364 fi 54365 54366 # Call helper function which possibly converts this using DOS-style short mode. 54367 # If so, the updated path is stored in $new_path. 54368 54369 input_path="$new_path" 54370 # Check if we need to convert this using DOS-style short mode. If the path 54371 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54372 # take no chances and rewrite it. 54373 # Note: m4 eats our [], so we need to use [ and ] instead. 54374 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54375 if test "x$has_forbidden_chars" != x; then 54376 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54377 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54378 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54379 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54380 # Going to short mode and back again did indeed matter. Since short mode is 54381 # case insensitive, let's make it lowercase to improve readability. 54382 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54383 # Now convert it back to Unix-style (cygpath) 54384 input_path=`$CYGPATH -u "$shortmode_path"` 54385 new_path="$input_path" 54386 fi 54387 fi 54388 54389 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54390 if test "x$test_cygdrive_prefix" = x; then 54391 # As a simple fix, exclude /usr/bin since it's not a real path. 54392 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54393 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54394 # a path prefixed by /cygdrive for fixpath to work. 54395 new_path="$CYGWIN_ROOT_PATH$input_path" 54396 fi 54397 fi 54398 54399 54400 if test "x$path" != "x$new_path"; then 54401 MSVC_DLL="$new_path" 54402 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54403 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54404 fi 54405 54406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54407 54408 path="$MSVC_DLL" 54409 has_colon=`$ECHO $path | $GREP ^.:` 54410 new_path="$path" 54411 if test "x$has_colon" = x; then 54412 # Not in mixed or Windows style, start by that. 54413 new_path=`cmd //c echo $path` 54414 fi 54415 54416 54417 input_path="$new_path" 54418 # Check if we need to convert this using DOS-style short mode. If the path 54419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54420 # take no chances and rewrite it. 54421 # Note: m4 eats our [], so we need to use [ and ] instead. 54422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54423 if test "x$has_forbidden_chars" != x; then 54424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54425 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54426 fi 54427 54428 54429 windows_path="$new_path" 54430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54431 unix_path=`$CYGPATH -u "$windows_path"` 54432 new_path="$unix_path" 54433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54434 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54435 new_path="$unix_path" 54436 fi 54437 54438 if test "x$path" != "x$new_path"; then 54439 MSVC_DLL="$new_path" 54440 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54441 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54442 fi 54443 54444 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54445 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54446 54447 else 54448 # We're on a unix platform. Hooray! :) 54449 path="$MSVC_DLL" 54450 has_space=`$ECHO "$path" | $GREP " "` 54451 if test "x$has_space" != x; then 54452 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54453 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54454 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54455 fi 54456 54457 # Use eval to expand a potential ~ 54458 eval path="$path" 54459 if test ! -f "$path" && test ! -d "$path"; then 54460 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54461 fi 54462 54463 if test -d "$path"; then 54464 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54465 else 54466 dir="`$DIRNAME "$path"`" 54467 base="`$BASENAME "$path"`" 54468 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54469 fi 54470 fi 54471 fi 54472 54473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54474 $as_echo_n "checking for $DLL_NAME... " >&6; } 54475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54476 $as_echo "$MSVC_DLL" >&6; } 54477 else 54478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54479 $as_echo "incorrect, ignoring" >&6; } 54480 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54481 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54482 fi 54483 fi 54484 54485 fi 54486 fi 54487 54488 if test "x$MSVC_DLL" = x; then 54489 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 54490 # (This was the original behaviour; kept since it might turn something up) 54491 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 54492 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54493 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54494 | $GREP x64 | $HEAD --lines 1` 54495 else 54496 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54497 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 54498 if test "x$POSSIBLE_MSVC_DLL" = x; then 54499 # We're grasping at straws now... 54500 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54501 | $HEAD --lines 1` 54502 fi 54503 fi 54504 54505 54506 DLL_NAME="$DLL_NAME" 54507 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54508 METHOD="search of VCINSTALLDIR" 54509 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54510 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54511 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54512 54513 # Need to check if the found msvcr is correct architecture 54514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54515 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54516 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54518 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54519 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54520 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54521 CORRECT_MSVCR_ARCH="PE32 executable" 54522 else 54523 CORRECT_MSVCR_ARCH="PE32+ executable" 54524 fi 54525 else 54526 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54527 CORRECT_MSVCR_ARCH=386 54528 else 54529 CORRECT_MSVCR_ARCH=x86-64 54530 fi 54531 fi 54532 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54534 $as_echo "ok" >&6; } 54535 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54536 54537 # Only process if variable expands to non-empty 54538 54539 if test "x$MSVC_DLL" != x; then 54540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54541 54542 # Input might be given as Windows format, start by converting to 54543 # unix format. 54544 path="$MSVC_DLL" 54545 new_path=`$CYGPATH -u "$path"` 54546 54547 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54548 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54549 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54550 # "foo.exe" is OK but "foo" is an error. 54551 # 54552 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54553 # It is also a way to make sure we got the proper file name for the real test later on. 54554 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54555 if test "x$test_shortpath" = x; then 54556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54557 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54558 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54559 fi 54560 54561 # Call helper function which possibly converts this using DOS-style short mode. 54562 # If so, the updated path is stored in $new_path. 54563 54564 input_path="$new_path" 54565 # Check if we need to convert this using DOS-style short mode. If the path 54566 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54567 # take no chances and rewrite it. 54568 # Note: m4 eats our [], so we need to use [ and ] instead. 54569 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54570 if test "x$has_forbidden_chars" != x; then 54571 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54572 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54573 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54574 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54575 # Going to short mode and back again did indeed matter. Since short mode is 54576 # case insensitive, let's make it lowercase to improve readability. 54577 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54578 # Now convert it back to Unix-style (cygpath) 54579 input_path=`$CYGPATH -u "$shortmode_path"` 54580 new_path="$input_path" 54581 fi 54582 fi 54583 54584 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54585 if test "x$test_cygdrive_prefix" = x; then 54586 # As a simple fix, exclude /usr/bin since it's not a real path. 54587 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54588 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54589 # a path prefixed by /cygdrive for fixpath to work. 54590 new_path="$CYGWIN_ROOT_PATH$input_path" 54591 fi 54592 fi 54593 54594 54595 if test "x$path" != "x$new_path"; then 54596 MSVC_DLL="$new_path" 54597 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54598 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54599 fi 54600 54601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54602 54603 path="$MSVC_DLL" 54604 has_colon=`$ECHO $path | $GREP ^.:` 54605 new_path="$path" 54606 if test "x$has_colon" = x; then 54607 # Not in mixed or Windows style, start by that. 54608 new_path=`cmd //c echo $path` 54609 fi 54610 54611 54612 input_path="$new_path" 54613 # Check if we need to convert this using DOS-style short mode. If the path 54614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54615 # take no chances and rewrite it. 54616 # Note: m4 eats our [], so we need to use [ and ] instead. 54617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54618 if test "x$has_forbidden_chars" != x; then 54619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54620 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54621 fi 54622 54623 54624 windows_path="$new_path" 54625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54626 unix_path=`$CYGPATH -u "$windows_path"` 54627 new_path="$unix_path" 54628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54629 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54630 new_path="$unix_path" 54631 fi 54632 54633 if test "x$path" != "x$new_path"; then 54634 MSVC_DLL="$new_path" 54635 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54636 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54637 fi 54638 54639 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54640 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54641 54642 else 54643 # We're on a unix platform. Hooray! :) 54644 path="$MSVC_DLL" 54645 has_space=`$ECHO "$path" | $GREP " "` 54646 if test "x$has_space" != x; then 54647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54648 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54649 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54650 fi 54651 54652 # Use eval to expand a potential ~ 54653 eval path="$path" 54654 if test ! -f "$path" && test ! -d "$path"; then 54655 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54656 fi 54657 54658 if test -d "$path"; then 54659 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54660 else 54661 dir="`$DIRNAME "$path"`" 54662 base="`$BASENAME "$path"`" 54663 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54664 fi 54665 fi 54666 fi 54667 54668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54669 $as_echo_n "checking for $DLL_NAME... " >&6; } 54670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54671 $as_echo "$MSVC_DLL" >&6; } 54672 else 54673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54674 $as_echo "incorrect, ignoring" >&6; } 54675 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54676 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54677 fi 54678 fi 54679 54680 fi 54681 fi 54682 54683 if test "x$MSVC_DLL" = x; then 54684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54685 $as_echo_n "checking for $DLL_NAME... " >&6; } 54686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54687 $as_echo "no" >&6; } 54688 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 54689 fi 54690 54691 MSVCR_DLL="$MSVC_DLL" 54692 fi 54693 54694 54695 54696 # Check whether --with-msvcp-dll was given. 54697 if test "${with_msvcp_dll+set}" = set; then : 54698 withval=$with_msvcp_dll; 54699 fi 54700 54701 54702 if test "x$MSVCP_NAME" != "x"; then 54703 if test "x$with_msvcp_dll" != x; then 54704 # If given explicitly by user, do not probe. If not present, fail directly. 54705 54706 DLL_NAME="$MSVCP_NAME" 54707 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 54708 METHOD="--with-msvcp-dll" 54709 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54710 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54711 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54712 54713 # Need to check if the found msvcr is correct architecture 54714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54715 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54716 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54718 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54719 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54720 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54721 CORRECT_MSVCR_ARCH="PE32 executable" 54722 else 54723 CORRECT_MSVCR_ARCH="PE32+ executable" 54724 fi 54725 else 54726 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54727 CORRECT_MSVCR_ARCH=386 54728 else 54729 CORRECT_MSVCR_ARCH=x86-64 54730 fi 54731 fi 54732 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54734 $as_echo "ok" >&6; } 54735 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54736 54737 # Only process if variable expands to non-empty 54738 54739 if test "x$MSVC_DLL" != 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="$MSVC_DLL" 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 MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54757 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54758 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$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 MSVC_DLL="$new_path" 54797 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54798 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54799 fi 54800 54801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54802 54803 path="$MSVC_DLL" 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 MSVC_DLL="$new_path" 54835 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54836 $as_echo "$as_me: Rewriting MSVC_DLL 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="$MSVC_DLL" 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 MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54848 $as_echo "$as_me: The path of MSVC_DLL, 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 MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54856 fi 54857 54858 if test -d "$path"; then 54859 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54860 else 54861 dir="`$DIRNAME "$path"`" 54862 base="`$BASENAME "$path"`" 54863 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54864 fi 54865 fi 54866 fi 54867 54868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54869 $as_echo_n "checking for $DLL_NAME... " >&6; } 54870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54871 $as_echo "$MSVC_DLL" >&6; } 54872 else 54873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54874 $as_echo "incorrect, ignoring" >&6; } 54875 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54876 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54877 fi 54878 fi 54879 54880 if test "x$MSVC_DLL" = x; then 54881 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 54882 fi 54883 MSVCP_DLL="$MSVC_DLL" 54884 elif test "x$DEVKIT_MSVCP_DLL" != x; then 54885 54886 DLL_NAME="$MSVCP_NAME" 54887 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 54888 METHOD="devkit" 54889 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54890 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54891 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54892 54893 # Need to check if the found msvcr is correct architecture 54894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54895 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54896 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54898 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54899 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54900 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54901 CORRECT_MSVCR_ARCH="PE32 executable" 54902 else 54903 CORRECT_MSVCR_ARCH="PE32+ executable" 54904 fi 54905 else 54906 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54907 CORRECT_MSVCR_ARCH=386 54908 else 54909 CORRECT_MSVCR_ARCH=x86-64 54910 fi 54911 fi 54912 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54914 $as_echo "ok" >&6; } 54915 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54916 54917 # Only process if variable expands to non-empty 54918 54919 if test "x$MSVC_DLL" != x; then 54920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54921 54922 # Input might be given as Windows format, start by converting to 54923 # unix format. 54924 path="$MSVC_DLL" 54925 new_path=`$CYGPATH -u "$path"` 54926 54927 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54928 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54929 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54930 # "foo.exe" is OK but "foo" is an error. 54931 # 54932 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54933 # It is also a way to make sure we got the proper file name for the real test later on. 54934 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54935 if test "x$test_shortpath" = x; then 54936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54937 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54938 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54939 fi 54940 54941 # Call helper function which possibly converts this using DOS-style short mode. 54942 # If so, the updated path is stored in $new_path. 54943 54944 input_path="$new_path" 54945 # Check if we need to convert this using DOS-style short mode. If the path 54946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54947 # take no chances and rewrite it. 54948 # Note: m4 eats our [], so we need to use [ and ] instead. 54949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54950 if test "x$has_forbidden_chars" != x; then 54951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54952 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54953 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54954 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54955 # Going to short mode and back again did indeed matter. Since short mode is 54956 # case insensitive, let's make it lowercase to improve readability. 54957 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54958 # Now convert it back to Unix-style (cygpath) 54959 input_path=`$CYGPATH -u "$shortmode_path"` 54960 new_path="$input_path" 54961 fi 54962 fi 54963 54964 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54965 if test "x$test_cygdrive_prefix" = x; then 54966 # As a simple fix, exclude /usr/bin since it's not a real path. 54967 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54968 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54969 # a path prefixed by /cygdrive for fixpath to work. 54970 new_path="$CYGWIN_ROOT_PATH$input_path" 54971 fi 54972 fi 54973 54974 54975 if test "x$path" != "x$new_path"; then 54976 MSVC_DLL="$new_path" 54977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54978 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54979 fi 54980 54981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54982 54983 path="$MSVC_DLL" 54984 has_colon=`$ECHO $path | $GREP ^.:` 54985 new_path="$path" 54986 if test "x$has_colon" = x; then 54987 # Not in mixed or Windows style, start by that. 54988 new_path=`cmd //c echo $path` 54989 fi 54990 54991 54992 input_path="$new_path" 54993 # Check if we need to convert this using DOS-style short mode. If the path 54994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54995 # take no chances and rewrite it. 54996 # Note: m4 eats our [], so we need to use [ and ] instead. 54997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54998 if test "x$has_forbidden_chars" != x; then 54999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55000 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55001 fi 55002 55003 55004 windows_path="$new_path" 55005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55006 unix_path=`$CYGPATH -u "$windows_path"` 55007 new_path="$unix_path" 55008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55010 new_path="$unix_path" 55011 fi 55012 55013 if test "x$path" != "x$new_path"; then 55014 MSVC_DLL="$new_path" 55015 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55016 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55017 fi 55018 55019 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55020 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55021 55022 else 55023 # We're on a unix platform. Hooray! :) 55024 path="$MSVC_DLL" 55025 has_space=`$ECHO "$path" | $GREP " "` 55026 if test "x$has_space" != x; then 55027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55028 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55029 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55030 fi 55031 55032 # Use eval to expand a potential ~ 55033 eval path="$path" 55034 if test ! -f "$path" && test ! -d "$path"; then 55035 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55036 fi 55037 55038 if test -d "$path"; then 55039 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55040 else 55041 dir="`$DIRNAME "$path"`" 55042 base="`$BASENAME "$path"`" 55043 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55044 fi 55045 fi 55046 fi 55047 55048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55049 $as_echo_n "checking for $DLL_NAME... " >&6; } 55050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55051 $as_echo "$MSVC_DLL" >&6; } 55052 else 55053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55054 $as_echo "incorrect, ignoring" >&6; } 55055 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55056 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55057 fi 55058 fi 55059 55060 if test "x$MSVC_DLL" = x; then 55061 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 55062 fi 55063 MSVCP_DLL="$MSVC_DLL" 55064 else 55065 55066 DLL_NAME="${MSVCP_NAME}" 55067 MSVC_DLL= 55068 55069 if test "x$MSVC_DLL" = x; then 55070 # Probe: Using well-known location from Visual Studio 10.0 55071 if test "x$VCINSTALLDIR" != x; then 55072 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 55073 55074 windows_path="$CYGWIN_VC_INSTALL_DIR" 55075 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55076 unix_path=`$CYGPATH -u "$windows_path"` 55077 CYGWIN_VC_INSTALL_DIR="$unix_path" 55078 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55079 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55080 CYGWIN_VC_INSTALL_DIR="$unix_path" 55081 fi 55082 55083 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55084 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55085 else 55086 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55087 fi 55088 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 55089 55090 DLL_NAME="$DLL_NAME" 55091 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55092 METHOD="well-known location in VCINSTALLDIR" 55093 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55094 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55095 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55096 55097 # Need to check if the found msvcr is correct architecture 55098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55099 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55100 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55102 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55103 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55104 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55105 CORRECT_MSVCR_ARCH="PE32 executable" 55106 else 55107 CORRECT_MSVCR_ARCH="PE32+ executable" 55108 fi 55109 else 55110 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55111 CORRECT_MSVCR_ARCH=386 55112 else 55113 CORRECT_MSVCR_ARCH=x86-64 55114 fi 55115 fi 55116 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55118 $as_echo "ok" >&6; } 55119 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55120 55121 # Only process if variable expands to non-empty 55122 55123 if test "x$MSVC_DLL" != x; then 55124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55125 55126 # Input might be given as Windows format, start by converting to 55127 # unix format. 55128 path="$MSVC_DLL" 55129 new_path=`$CYGPATH -u "$path"` 55130 55131 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55132 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55133 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55134 # "foo.exe" is OK but "foo" is an error. 55135 # 55136 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55137 # It is also a way to make sure we got the proper file name for the real test later on. 55138 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55139 if test "x$test_shortpath" = x; then 55140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55141 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55142 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55143 fi 55144 55145 # Call helper function which possibly converts this using DOS-style short mode. 55146 # If so, the updated path is stored in $new_path. 55147 55148 input_path="$new_path" 55149 # Check if we need to convert this using DOS-style short mode. If the path 55150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55151 # take no chances and rewrite it. 55152 # Note: m4 eats our [], so we need to use [ and ] instead. 55153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55154 if test "x$has_forbidden_chars" != x; then 55155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55156 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55157 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55158 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55159 # Going to short mode and back again did indeed matter. Since short mode is 55160 # case insensitive, let's make it lowercase to improve readability. 55161 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55162 # Now convert it back to Unix-style (cygpath) 55163 input_path=`$CYGPATH -u "$shortmode_path"` 55164 new_path="$input_path" 55165 fi 55166 fi 55167 55168 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55169 if test "x$test_cygdrive_prefix" = x; then 55170 # As a simple fix, exclude /usr/bin since it's not a real path. 55171 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55172 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55173 # a path prefixed by /cygdrive for fixpath to work. 55174 new_path="$CYGWIN_ROOT_PATH$input_path" 55175 fi 55176 fi 55177 55178 55179 if test "x$path" != "x$new_path"; then 55180 MSVC_DLL="$new_path" 55181 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55182 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55183 fi 55184 55185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55186 55187 path="$MSVC_DLL" 55188 has_colon=`$ECHO $path | $GREP ^.:` 55189 new_path="$path" 55190 if test "x$has_colon" = x; then 55191 # Not in mixed or Windows style, start by that. 55192 new_path=`cmd //c echo $path` 55193 fi 55194 55195 55196 input_path="$new_path" 55197 # Check if we need to convert this using DOS-style short mode. If the path 55198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55199 # take no chances and rewrite it. 55200 # Note: m4 eats our [], so we need to use [ and ] instead. 55201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55202 if test "x$has_forbidden_chars" != x; then 55203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55204 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55205 fi 55206 55207 55208 windows_path="$new_path" 55209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55210 unix_path=`$CYGPATH -u "$windows_path"` 55211 new_path="$unix_path" 55212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55213 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55214 new_path="$unix_path" 55215 fi 55216 55217 if test "x$path" != "x$new_path"; then 55218 MSVC_DLL="$new_path" 55219 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55220 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55221 fi 55222 55223 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55224 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55225 55226 else 55227 # We're on a unix platform. Hooray! :) 55228 path="$MSVC_DLL" 55229 has_space=`$ECHO "$path" | $GREP " "` 55230 if test "x$has_space" != x; then 55231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55232 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55233 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55234 fi 55235 55236 # Use eval to expand a potential ~ 55237 eval path="$path" 55238 if test ! -f "$path" && test ! -d "$path"; then 55239 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55240 fi 55241 55242 if test -d "$path"; then 55243 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55244 else 55245 dir="`$DIRNAME "$path"`" 55246 base="`$BASENAME "$path"`" 55247 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55248 fi 55249 fi 55250 fi 55251 55252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55253 $as_echo_n "checking for $DLL_NAME... " >&6; } 55254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55255 $as_echo "$MSVC_DLL" >&6; } 55256 else 55257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55258 $as_echo "incorrect, ignoring" >&6; } 55259 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55260 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55261 fi 55262 fi 55263 55264 fi 55265 fi 55266 55267 if test "x$MSVC_DLL" = x; then 55268 # Probe: Check in the Boot JDK directory. 55269 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 55270 55271 DLL_NAME="$DLL_NAME" 55272 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55273 METHOD="well-known location in Boot JDK" 55274 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55275 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55276 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55277 55278 # Need to check if the found msvcr is correct architecture 55279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55280 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55281 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55283 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55284 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55285 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55286 CORRECT_MSVCR_ARCH="PE32 executable" 55287 else 55288 CORRECT_MSVCR_ARCH="PE32+ executable" 55289 fi 55290 else 55291 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55292 CORRECT_MSVCR_ARCH=386 55293 else 55294 CORRECT_MSVCR_ARCH=x86-64 55295 fi 55296 fi 55297 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55299 $as_echo "ok" >&6; } 55300 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55301 55302 # Only process if variable expands to non-empty 55303 55304 if test "x$MSVC_DLL" != x; then 55305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55306 55307 # Input might be given as Windows format, start by converting to 55308 # unix format. 55309 path="$MSVC_DLL" 55310 new_path=`$CYGPATH -u "$path"` 55311 55312 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55313 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55314 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55315 # "foo.exe" is OK but "foo" is an error. 55316 # 55317 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55318 # It is also a way to make sure we got the proper file name for the real test later on. 55319 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55320 if test "x$test_shortpath" = x; then 55321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55322 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55323 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55324 fi 55325 55326 # Call helper function which possibly converts this using DOS-style short mode. 55327 # If so, the updated path is stored in $new_path. 55328 55329 input_path="$new_path" 55330 # Check if we need to convert this using DOS-style short mode. If the path 55331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55332 # take no chances and rewrite it. 55333 # Note: m4 eats our [], so we need to use [ and ] instead. 55334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55335 if test "x$has_forbidden_chars" != x; then 55336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55337 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55338 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55339 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55340 # Going to short mode and back again did indeed matter. Since short mode is 55341 # case insensitive, let's make it lowercase to improve readability. 55342 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55343 # Now convert it back to Unix-style (cygpath) 55344 input_path=`$CYGPATH -u "$shortmode_path"` 55345 new_path="$input_path" 55346 fi 55347 fi 55348 55349 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55350 if test "x$test_cygdrive_prefix" = x; then 55351 # As a simple fix, exclude /usr/bin since it's not a real path. 55352 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55353 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55354 # a path prefixed by /cygdrive for fixpath to work. 55355 new_path="$CYGWIN_ROOT_PATH$input_path" 55356 fi 55357 fi 55358 55359 55360 if test "x$path" != "x$new_path"; then 55361 MSVC_DLL="$new_path" 55362 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55363 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55364 fi 55365 55366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55367 55368 path="$MSVC_DLL" 55369 has_colon=`$ECHO $path | $GREP ^.:` 55370 new_path="$path" 55371 if test "x$has_colon" = x; then 55372 # Not in mixed or Windows style, start by that. 55373 new_path=`cmd //c echo $path` 55374 fi 55375 55376 55377 input_path="$new_path" 55378 # Check if we need to convert this using DOS-style short mode. If the path 55379 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55380 # take no chances and rewrite it. 55381 # Note: m4 eats our [], so we need to use [ and ] instead. 55382 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55383 if test "x$has_forbidden_chars" != x; then 55384 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55385 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55386 fi 55387 55388 55389 windows_path="$new_path" 55390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55391 unix_path=`$CYGPATH -u "$windows_path"` 55392 new_path="$unix_path" 55393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55395 new_path="$unix_path" 55396 fi 55397 55398 if test "x$path" != "x$new_path"; then 55399 MSVC_DLL="$new_path" 55400 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55401 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55402 fi 55403 55404 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55405 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55406 55407 else 55408 # We're on a unix platform. Hooray! :) 55409 path="$MSVC_DLL" 55410 has_space=`$ECHO "$path" | $GREP " "` 55411 if test "x$has_space" != x; then 55412 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55413 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55414 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55415 fi 55416 55417 # Use eval to expand a potential ~ 55418 eval path="$path" 55419 if test ! -f "$path" && test ! -d "$path"; then 55420 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55421 fi 55422 55423 if test -d "$path"; then 55424 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55425 else 55426 dir="`$DIRNAME "$path"`" 55427 base="`$BASENAME "$path"`" 55428 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55429 fi 55430 fi 55431 fi 55432 55433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55434 $as_echo_n "checking for $DLL_NAME... " >&6; } 55435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55436 $as_echo "$MSVC_DLL" >&6; } 55437 else 55438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55439 $as_echo "incorrect, ignoring" >&6; } 55440 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55441 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55442 fi 55443 fi 55444 55445 fi 55446 55447 if test "x$MSVC_DLL" = x; then 55448 # Probe: Look in the Windows system32 directory 55449 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55450 55451 windows_path="$CYGWIN_SYSTEMROOT" 55452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55453 unix_path=`$CYGPATH -u "$windows_path"` 55454 CYGWIN_SYSTEMROOT="$unix_path" 55455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55456 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55457 CYGWIN_SYSTEMROOT="$unix_path" 55458 fi 55459 55460 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55461 55462 DLL_NAME="$DLL_NAME" 55463 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55464 METHOD="well-known location in SYSTEMROOT" 55465 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55466 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55467 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55468 55469 # Need to check if the found msvcr is correct architecture 55470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55471 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55472 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55474 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55475 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55476 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55477 CORRECT_MSVCR_ARCH="PE32 executable" 55478 else 55479 CORRECT_MSVCR_ARCH="PE32+ executable" 55480 fi 55481 else 55482 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55483 CORRECT_MSVCR_ARCH=386 55484 else 55485 CORRECT_MSVCR_ARCH=x86-64 55486 fi 55487 fi 55488 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55490 $as_echo "ok" >&6; } 55491 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55492 55493 # Only process if variable expands to non-empty 55494 55495 if test "x$MSVC_DLL" != x; then 55496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55497 55498 # Input might be given as Windows format, start by converting to 55499 # unix format. 55500 path="$MSVC_DLL" 55501 new_path=`$CYGPATH -u "$path"` 55502 55503 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55504 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55505 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55506 # "foo.exe" is OK but "foo" is an error. 55507 # 55508 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55509 # It is also a way to make sure we got the proper file name for the real test later on. 55510 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55511 if test "x$test_shortpath" = x; then 55512 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55513 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55514 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55515 fi 55516 55517 # Call helper function which possibly converts this using DOS-style short mode. 55518 # If so, the updated path is stored in $new_path. 55519 55520 input_path="$new_path" 55521 # Check if we need to convert this using DOS-style short mode. If the path 55522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55523 # take no chances and rewrite it. 55524 # Note: m4 eats our [], so we need to use [ and ] instead. 55525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55526 if test "x$has_forbidden_chars" != x; then 55527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55528 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55529 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55530 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55531 # Going to short mode and back again did indeed matter. Since short mode is 55532 # case insensitive, let's make it lowercase to improve readability. 55533 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55534 # Now convert it back to Unix-style (cygpath) 55535 input_path=`$CYGPATH -u "$shortmode_path"` 55536 new_path="$input_path" 55537 fi 55538 fi 55539 55540 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55541 if test "x$test_cygdrive_prefix" = x; then 55542 # As a simple fix, exclude /usr/bin since it's not a real path. 55543 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55544 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55545 # a path prefixed by /cygdrive for fixpath to work. 55546 new_path="$CYGWIN_ROOT_PATH$input_path" 55547 fi 55548 fi 55549 55550 55551 if test "x$path" != "x$new_path"; then 55552 MSVC_DLL="$new_path" 55553 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55554 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55555 fi 55556 55557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55558 55559 path="$MSVC_DLL" 55560 has_colon=`$ECHO $path | $GREP ^.:` 55561 new_path="$path" 55562 if test "x$has_colon" = x; then 55563 # Not in mixed or Windows style, start by that. 55564 new_path=`cmd //c echo $path` 55565 fi 55566 55567 55568 input_path="$new_path" 55569 # Check if we need to convert this using DOS-style short mode. If the path 55570 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55571 # take no chances and rewrite it. 55572 # Note: m4 eats our [], so we need to use [ and ] instead. 55573 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55574 if test "x$has_forbidden_chars" != x; then 55575 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55576 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55577 fi 55578 55579 55580 windows_path="$new_path" 55581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55582 unix_path=`$CYGPATH -u "$windows_path"` 55583 new_path="$unix_path" 55584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55586 new_path="$unix_path" 55587 fi 55588 55589 if test "x$path" != "x$new_path"; then 55590 MSVC_DLL="$new_path" 55591 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55592 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55593 fi 55594 55595 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55596 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55597 55598 else 55599 # We're on a unix platform. Hooray! :) 55600 path="$MSVC_DLL" 55601 has_space=`$ECHO "$path" | $GREP " "` 55602 if test "x$has_space" != x; then 55603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55604 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55605 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55606 fi 55607 55608 # Use eval to expand a potential ~ 55609 eval path="$path" 55610 if test ! -f "$path" && test ! -d "$path"; then 55611 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55612 fi 55613 55614 if test -d "$path"; then 55615 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55616 else 55617 dir="`$DIRNAME "$path"`" 55618 base="`$BASENAME "$path"`" 55619 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55620 fi 55621 fi 55622 fi 55623 55624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55625 $as_echo_n "checking for $DLL_NAME... " >&6; } 55626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55627 $as_echo "$MSVC_DLL" >&6; } 55628 else 55629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55630 $as_echo "incorrect, ignoring" >&6; } 55631 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55632 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55633 fi 55634 fi 55635 55636 fi 55637 55638 if test "x$MSVC_DLL" = x; then 55639 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 55640 if test "x$VS100COMNTOOLS" != x; then 55641 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 55642 55643 windows_path="$CYGWIN_VS_TOOLS_DIR" 55644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55645 unix_path=`$CYGPATH -u "$windows_path"` 55646 CYGWIN_VS_TOOLS_DIR="$unix_path" 55647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55649 CYGWIN_VS_TOOLS_DIR="$unix_path" 55650 fi 55651 55652 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55653 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55654 | $GREP -i /x64/ | $HEAD --lines 1` 55655 else 55656 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55657 | $GREP -i /x86/ | $HEAD --lines 1` 55658 fi 55659 55660 DLL_NAME="$DLL_NAME" 55661 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55662 METHOD="search of VS100COMNTOOLS" 55663 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55664 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55665 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55666 55667 # Need to check if the found msvcr is correct architecture 55668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55669 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55670 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55672 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55673 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55674 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55675 CORRECT_MSVCR_ARCH="PE32 executable" 55676 else 55677 CORRECT_MSVCR_ARCH="PE32+ executable" 55678 fi 55679 else 55680 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55681 CORRECT_MSVCR_ARCH=386 55682 else 55683 CORRECT_MSVCR_ARCH=x86-64 55684 fi 55685 fi 55686 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55688 $as_echo "ok" >&6; } 55689 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55690 55691 # Only process if variable expands to non-empty 55692 55693 if test "x$MSVC_DLL" != x; then 55694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55695 55696 # Input might be given as Windows format, start by converting to 55697 # unix format. 55698 path="$MSVC_DLL" 55699 new_path=`$CYGPATH -u "$path"` 55700 55701 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55702 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55703 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55704 # "foo.exe" is OK but "foo" is an error. 55705 # 55706 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55707 # It is also a way to make sure we got the proper file name for the real test later on. 55708 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55709 if test "x$test_shortpath" = x; then 55710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55711 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55712 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55713 fi 55714 55715 # Call helper function which possibly converts this using DOS-style short mode. 55716 # If so, the updated path is stored in $new_path. 55717 55718 input_path="$new_path" 55719 # Check if we need to convert this using DOS-style short mode. If the path 55720 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55721 # take no chances and rewrite it. 55722 # Note: m4 eats our [], so we need to use [ and ] instead. 55723 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55724 if test "x$has_forbidden_chars" != x; then 55725 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55726 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55727 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55728 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55729 # Going to short mode and back again did indeed matter. Since short mode is 55730 # case insensitive, let's make it lowercase to improve readability. 55731 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55732 # Now convert it back to Unix-style (cygpath) 55733 input_path=`$CYGPATH -u "$shortmode_path"` 55734 new_path="$input_path" 55735 fi 55736 fi 55737 55738 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55739 if test "x$test_cygdrive_prefix" = x; then 55740 # As a simple fix, exclude /usr/bin since it's not a real path. 55741 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55742 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55743 # a path prefixed by /cygdrive for fixpath to work. 55744 new_path="$CYGWIN_ROOT_PATH$input_path" 55745 fi 55746 fi 55747 55748 55749 if test "x$path" != "x$new_path"; then 55750 MSVC_DLL="$new_path" 55751 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55752 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55753 fi 55754 55755 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55756 55757 path="$MSVC_DLL" 55758 has_colon=`$ECHO $path | $GREP ^.:` 55759 new_path="$path" 55760 if test "x$has_colon" = x; then 55761 # Not in mixed or Windows style, start by that. 55762 new_path=`cmd //c echo $path` 55763 fi 55764 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55775 fi 55776 55777 55778 windows_path="$new_path" 55779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55780 unix_path=`$CYGPATH -u "$windows_path"` 55781 new_path="$unix_path" 55782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55783 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55784 new_path="$unix_path" 55785 fi 55786 55787 if test "x$path" != "x$new_path"; then 55788 MSVC_DLL="$new_path" 55789 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55790 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55791 fi 55792 55793 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55794 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55795 55796 else 55797 # We're on a unix platform. Hooray! :) 55798 path="$MSVC_DLL" 55799 has_space=`$ECHO "$path" | $GREP " "` 55800 if test "x$has_space" != x; then 55801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55802 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55803 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55804 fi 55805 55806 # Use eval to expand a potential ~ 55807 eval path="$path" 55808 if test ! -f "$path" && test ! -d "$path"; then 55809 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55810 fi 55811 55812 if test -d "$path"; then 55813 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55814 else 55815 dir="`$DIRNAME "$path"`" 55816 base="`$BASENAME "$path"`" 55817 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55818 fi 55819 fi 55820 fi 55821 55822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55823 $as_echo_n "checking for $DLL_NAME... " >&6; } 55824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55825 $as_echo "$MSVC_DLL" >&6; } 55826 else 55827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55828 $as_echo "incorrect, ignoring" >&6; } 55829 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55830 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55831 fi 55832 fi 55833 55834 fi 55835 fi 55836 55837 if test "x$MSVC_DLL" = x; then 55838 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 55839 # (This was the original behaviour; kept since it might turn something up) 55840 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 55841 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55842 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55843 | $GREP x64 | $HEAD --lines 1` 55844 else 55845 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55846 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 55847 if test "x$POSSIBLE_MSVC_DLL" = x; then 55848 # We're grasping at straws now... 55849 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55850 | $HEAD --lines 1` 55851 fi 55852 fi 55853 55854 55855 DLL_NAME="$DLL_NAME" 55856 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55857 METHOD="search of VCINSTALLDIR" 55858 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55859 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55860 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55861 55862 # Need to check if the found msvcr is correct architecture 55863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55864 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55865 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55867 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55868 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55869 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55870 CORRECT_MSVCR_ARCH="PE32 executable" 55871 else 55872 CORRECT_MSVCR_ARCH="PE32+ executable" 55873 fi 55874 else 55875 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55876 CORRECT_MSVCR_ARCH=386 55877 else 55878 CORRECT_MSVCR_ARCH=x86-64 55879 fi 55880 fi 55881 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55883 $as_echo "ok" >&6; } 55884 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55885 55886 # Only process if variable expands to non-empty 55887 55888 if test "x$MSVC_DLL" != x; then 55889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55890 55891 # Input might be given as Windows format, start by converting to 55892 # unix format. 55893 path="$MSVC_DLL" 55894 new_path=`$CYGPATH -u "$path"` 55895 55896 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55897 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55898 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55899 # "foo.exe" is OK but "foo" is an error. 55900 # 55901 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55902 # It is also a way to make sure we got the proper file name for the real test later on. 55903 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55904 if test "x$test_shortpath" = x; then 55905 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55906 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55907 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55908 fi 55909 55910 # Call helper function which possibly converts this using DOS-style short mode. 55911 # If so, the updated path is stored in $new_path. 55912 55913 input_path="$new_path" 55914 # Check if we need to convert this using DOS-style short mode. If the path 55915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55916 # take no chances and rewrite it. 55917 # Note: m4 eats our [], so we need to use [ and ] instead. 55918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55919 if test "x$has_forbidden_chars" != x; then 55920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55921 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55922 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55923 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55924 # Going to short mode and back again did indeed matter. Since short mode is 55925 # case insensitive, let's make it lowercase to improve readability. 55926 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55927 # Now convert it back to Unix-style (cygpath) 55928 input_path=`$CYGPATH -u "$shortmode_path"` 55929 new_path="$input_path" 55930 fi 55931 fi 55932 55933 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55934 if test "x$test_cygdrive_prefix" = x; then 55935 # As a simple fix, exclude /usr/bin since it's not a real path. 55936 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55937 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55938 # a path prefixed by /cygdrive for fixpath to work. 55939 new_path="$CYGWIN_ROOT_PATH$input_path" 55940 fi 55941 fi 55942 55943 55944 if test "x$path" != "x$new_path"; then 55945 MSVC_DLL="$new_path" 55946 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55947 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55948 fi 55949 55950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55951 55952 path="$MSVC_DLL" 55953 has_colon=`$ECHO $path | $GREP ^.:` 55954 new_path="$path" 55955 if test "x$has_colon" = x; then 55956 # Not in mixed or Windows style, start by that. 55957 new_path=`cmd //c echo $path` 55958 fi 55959 55960 55961 input_path="$new_path" 55962 # Check if we need to convert this using DOS-style short mode. If the path 55963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55964 # take no chances and rewrite it. 55965 # Note: m4 eats our [], so we need to use [ and ] instead. 55966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55967 if test "x$has_forbidden_chars" != x; then 55968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55969 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55970 fi 55971 55972 55973 windows_path="$new_path" 55974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55975 unix_path=`$CYGPATH -u "$windows_path"` 55976 new_path="$unix_path" 55977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55979 new_path="$unix_path" 55980 fi 55981 55982 if test "x$path" != "x$new_path"; then 55983 MSVC_DLL="$new_path" 55984 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55985 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55986 fi 55987 55988 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55989 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55990 55991 else 55992 # We're on a unix platform. Hooray! :) 55993 path="$MSVC_DLL" 55994 has_space=`$ECHO "$path" | $GREP " "` 55995 if test "x$has_space" != x; then 55996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55997 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55998 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55999 fi 56000 56001 # Use eval to expand a potential ~ 56002 eval path="$path" 56003 if test ! -f "$path" && test ! -d "$path"; then 56004 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56005 fi 56006 56007 if test -d "$path"; then 56008 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56009 else 56010 dir="`$DIRNAME "$path"`" 56011 base="`$BASENAME "$path"`" 56012 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56013 fi 56014 fi 56015 fi 56016 56017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56018 $as_echo_n "checking for $DLL_NAME... " >&6; } 56019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56020 $as_echo "$MSVC_DLL" >&6; } 56021 else 56022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56023 $as_echo "incorrect, ignoring" >&6; } 56024 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56025 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56026 fi 56027 fi 56028 56029 fi 56030 fi 56031 56032 if test "x$MSVC_DLL" = x; then 56033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56034 $as_echo_n "checking for $DLL_NAME... " >&6; } 56035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56036 $as_echo "no" >&6; } 56037 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 56038 fi 56039 56040 MSVCP_DLL="$MSVC_DLL" 56041 fi 56042 56043 fi 56044 56045 fi 56046 56047 56048 if test "x$NEEDS_LIB_X11" = xfalse; then 56049 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 56050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 56051 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 56052 fi 56053 X_CFLAGS= 56054 X_LIBS= 56055 else 56056 56057 if test "x${with_x}" = xno; then 56058 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 56059 fi 56060 56061 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 56062 # The user has specified a X11 base directory. Use it for includes and 56063 # libraries, unless explicitly overridden. 56064 if test "x$x_includes" = xNONE; then 56065 x_includes="${with_x}/include" 56066 fi 56067 if test "x$x_libraries" = xNONE; then 56068 x_libraries="${with_x}/lib" 56069 fi 56070 else 56071 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 56072 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 56073 # --x-libraries for the sysroot, if that seems to be correct. 56074 if test "x$SYSROOT" != "x"; then 56075 if test "x$x_includes" = xNONE; then 56076 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 56077 x_includes="$SYSROOT/usr/X11R6/include" 56078 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 56079 x_includes="$SYSROOT/usr/include" 56080 fi 56081 fi 56082 if test "x$x_libraries" = xNONE; then 56083 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 56084 x_libraries="$SYSROOT/usr/X11R6/lib" 56085 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56086 x_libraries="$SYSROOT/usr/lib64" 56087 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 56088 x_libraries="$SYSROOT/usr/lib" 56089 fi 56090 fi 56091 fi 56092 fi 56093 56094 # Now let autoconf do it's magic 56095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 56096 $as_echo_n "checking for X... " >&6; } 56097 56098 56099 # Check whether --with-x was given. 56100 if test "${with_x+set}" = set; then : 56101 withval=$with_x; 56102 fi 56103 56104 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 56105 if test "x$with_x" = xno; then 56106 # The user explicitly disabled X. 56107 have_x=disabled 56108 else 56109 case $x_includes,$x_libraries in #( 56110 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 56111 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 56112 $as_echo_n "(cached) " >&6 56113 else 56114 # One or both of the vars are not set, and there is no cached value. 56115 ac_x_includes=no ac_x_libraries=no 56116 rm -f -r conftest.dir 56117 if mkdir conftest.dir; then 56118 cd conftest.dir 56119 cat >Imakefile <<'_ACEOF' 56120 incroot: 56121 @echo incroot='${INCROOT}' 56122 usrlibdir: 56123 @echo usrlibdir='${USRLIBDIR}' 56124 libdir: 56125 @echo libdir='${LIBDIR}' 56126 _ACEOF 56127 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 56128 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 56129 for ac_var in incroot usrlibdir libdir; do 56130 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 56131 done 56132 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 56133 for ac_extension in a so sl dylib la dll; do 56134 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 56135 test -f "$ac_im_libdir/libX11.$ac_extension"; then 56136 ac_im_usrlibdir=$ac_im_libdir; break 56137 fi 56138 done 56139 # Screen out bogus values from the imake configuration. They are 56140 # bogus both because they are the default anyway, and because 56141 # using them would break gcc on systems where it needs fixed includes. 56142 case $ac_im_incroot in 56143 /usr/include) ac_x_includes= ;; 56144 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 56145 esac 56146 case $ac_im_usrlibdir in 56147 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 56148 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 56149 esac 56150 fi 56151 cd .. 56152 rm -f -r conftest.dir 56153 fi 56154 56155 # Standard set of common directories for X headers. 56156 # Check X11 before X11Rn because it is often a symlink to the current release. 56157 ac_x_header_dirs=' 56158 /usr/X11/include 56159 /usr/X11R7/include 56160 /usr/X11R6/include 56161 /usr/X11R5/include 56162 /usr/X11R4/include 56163 56164 /usr/include/X11 56165 /usr/include/X11R7 56166 /usr/include/X11R6 56167 /usr/include/X11R5 56168 /usr/include/X11R4 56169 56170 /usr/local/X11/include 56171 /usr/local/X11R7/include 56172 /usr/local/X11R6/include 56173 /usr/local/X11R5/include 56174 /usr/local/X11R4/include 56175 56176 /usr/local/include/X11 56177 /usr/local/include/X11R7 56178 /usr/local/include/X11R6 56179 /usr/local/include/X11R5 56180 /usr/local/include/X11R4 56181 56182 /usr/X386/include 56183 /usr/x386/include 56184 /usr/XFree86/include/X11 56185 56186 /usr/include 56187 /usr/local/include 56188 /usr/unsupported/include 56189 /usr/athena/include 56190 /usr/local/x11r5/include 56191 /usr/lpp/Xamples/include 56192 56193 /usr/openwin/include 56194 /usr/openwin/share/include' 56195 56196 if test "$ac_x_includes" = no; then 56197 # Guess where to find include files, by looking for Xlib.h. 56198 # First, try using that file with no special directory specified. 56199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56200 /* end confdefs.h. */ 56201 #include <X11/Xlib.h> 56202 _ACEOF 56203 if ac_fn_cxx_try_cpp "$LINENO"; then : 56204 # We can compile using X headers with no special include directory. 56205 ac_x_includes= 56206 else 56207 for ac_dir in $ac_x_header_dirs; do 56208 if test -r "$ac_dir/X11/Xlib.h"; then 56209 ac_x_includes=$ac_dir 56210 break 56211 fi 56212 done 56213 fi 56214 rm -f conftest.err conftest.i conftest.$ac_ext 56215 fi # $ac_x_includes = no 56216 56217 if test "$ac_x_libraries" = no; then 56218 # Check for the libraries. 56219 # See if we find them without any special options. 56220 # Don't add to $LIBS permanently. 56221 ac_save_LIBS=$LIBS 56222 LIBS="-lX11 $LIBS" 56223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56224 /* end confdefs.h. */ 56225 #include <X11/Xlib.h> 56226 int 56227 main () 56228 { 56229 XrmInitialize () 56230 ; 56231 return 0; 56232 } 56233 _ACEOF 56234 if ac_fn_cxx_try_link "$LINENO"; then : 56235 LIBS=$ac_save_LIBS 56236 # We can link X programs with no special library path. 56237 ac_x_libraries= 56238 else 56239 LIBS=$ac_save_LIBS 56240 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 56241 do 56242 # Don't even attempt the hair of trying to link an X program! 56243 for ac_extension in a so sl dylib la dll; do 56244 if test -r "$ac_dir/libX11.$ac_extension"; then 56245 ac_x_libraries=$ac_dir 56246 break 2 56247 fi 56248 done 56249 done 56250 fi 56251 rm -f core conftest.err conftest.$ac_objext \ 56252 conftest$ac_exeext conftest.$ac_ext 56253 fi # $ac_x_libraries = no 56254 56255 case $ac_x_includes,$ac_x_libraries in #( 56256 no,* | *,no | *\'*) 56257 # Didn't find X, or a directory has "'" in its name. 56258 ac_cv_have_x="have_x=no";; #( 56259 *) 56260 # Record where we found X for the cache. 56261 ac_cv_have_x="have_x=yes\ 56262 ac_x_includes='$ac_x_includes'\ 56263 ac_x_libraries='$ac_x_libraries'" 56264 esac 56265 fi 56266 ;; #( 56267 *) have_x=yes;; 56268 esac 56269 eval "$ac_cv_have_x" 56270 fi # $with_x != no 56271 56272 if test "$have_x" != yes; then 56273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 56274 $as_echo "$have_x" >&6; } 56275 no_x=yes 56276 else 56277 # If each of the values was on the command line, it overrides each guess. 56278 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 56279 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 56280 # Update the cache value to reflect the command line values. 56281 ac_cv_have_x="have_x=yes\ 56282 ac_x_includes='$x_includes'\ 56283 ac_x_libraries='$x_libraries'" 56284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 56285 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 56286 fi 56287 56288 if test "$no_x" = yes; then 56289 # Not all programs may use this symbol, but it does not hurt to define it. 56290 56291 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 56292 56293 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 56294 else 56295 if test -n "$x_includes"; then 56296 X_CFLAGS="$X_CFLAGS -I$x_includes" 56297 fi 56298 56299 # It would also be nice to do this for all -L options, not just this one. 56300 if test -n "$x_libraries"; then 56301 X_LIBS="$X_LIBS -L$x_libraries" 56302 # For Solaris; some versions of Sun CC require a space after -R and 56303 # others require no space. Words are not sufficient . . . . 56304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 56305 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 56306 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 56307 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 56308 ac_cxx_werror_flag=yes 56309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56310 /* end confdefs.h. */ 56311 56312 int 56313 main () 56314 { 56315 56316 ; 56317 return 0; 56318 } 56319 _ACEOF 56320 if ac_fn_cxx_try_link "$LINENO"; then : 56321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56322 $as_echo "no" >&6; } 56323 X_LIBS="$X_LIBS -R$x_libraries" 56324 else 56325 LIBS="$ac_xsave_LIBS -R $x_libraries" 56326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56327 /* end confdefs.h. */ 56328 56329 int 56330 main () 56331 { 56332 56333 ; 56334 return 0; 56335 } 56336 _ACEOF 56337 if ac_fn_cxx_try_link "$LINENO"; then : 56338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56339 $as_echo "yes" >&6; } 56340 X_LIBS="$X_LIBS -R $x_libraries" 56341 else 56342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 56343 $as_echo "neither works" >&6; } 56344 fi 56345 rm -f core conftest.err conftest.$ac_objext \ 56346 conftest$ac_exeext conftest.$ac_ext 56347 fi 56348 rm -f core conftest.err conftest.$ac_objext \ 56349 conftest$ac_exeext conftest.$ac_ext 56350 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 56351 LIBS=$ac_xsave_LIBS 56352 fi 56353 56354 # Check for system-dependent libraries X programs must link with. 56355 # Do this before checking for the system-independent R6 libraries 56356 # (-lICE), since we may need -lsocket or whatever for X linking. 56357 56358 if test "$ISC" = yes; then 56359 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 56360 else 56361 # Martyn Johnson says this is needed for Ultrix, if the X 56362 # libraries were built with DECnet support. And Karl Berry says 56363 # the Alpha needs dnet_stub (dnet does not exist). 56364 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 56365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56366 /* end confdefs.h. */ 56367 56368 /* Override any GCC internal prototype to avoid an error. 56369 Use char because int might match the return type of a GCC 56370 builtin and then its argument prototype would still apply. */ 56371 #ifdef __cplusplus 56372 extern "C" 56373 #endif 56374 char XOpenDisplay (); 56375 int 56376 main () 56377 { 56378 return XOpenDisplay (); 56379 ; 56380 return 0; 56381 } 56382 _ACEOF 56383 if ac_fn_cxx_try_link "$LINENO"; then : 56384 56385 else 56386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 56387 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 56388 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 56389 $as_echo_n "(cached) " >&6 56390 else 56391 ac_check_lib_save_LIBS=$LIBS 56392 LIBS="-ldnet $LIBS" 56393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56394 /* end confdefs.h. */ 56395 56396 /* Override any GCC internal prototype to avoid an error. 56397 Use char because int might match the return type of a GCC 56398 builtin and then its argument prototype would still apply. */ 56399 #ifdef __cplusplus 56400 extern "C" 56401 #endif 56402 char dnet_ntoa (); 56403 int 56404 main () 56405 { 56406 return dnet_ntoa (); 56407 ; 56408 return 0; 56409 } 56410 _ACEOF 56411 if ac_fn_cxx_try_link "$LINENO"; then : 56412 ac_cv_lib_dnet_dnet_ntoa=yes 56413 else 56414 ac_cv_lib_dnet_dnet_ntoa=no 56415 fi 56416 rm -f core conftest.err conftest.$ac_objext \ 56417 conftest$ac_exeext conftest.$ac_ext 56418 LIBS=$ac_check_lib_save_LIBS 56419 fi 56420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 56421 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 56422 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 56423 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 56424 fi 56425 56426 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 56427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 56428 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 56429 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 56430 $as_echo_n "(cached) " >&6 56431 else 56432 ac_check_lib_save_LIBS=$LIBS 56433 LIBS="-ldnet_stub $LIBS" 56434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56435 /* end confdefs.h. */ 56436 56437 /* Override any GCC internal prototype to avoid an error. 56438 Use char because int might match the return type of a GCC 56439 builtin and then its argument prototype would still apply. */ 56440 #ifdef __cplusplus 56441 extern "C" 56442 #endif 56443 char dnet_ntoa (); 56444 int 56445 main () 56446 { 56447 return dnet_ntoa (); 56448 ; 56449 return 0; 56450 } 56451 _ACEOF 56452 if ac_fn_cxx_try_link "$LINENO"; then : 56453 ac_cv_lib_dnet_stub_dnet_ntoa=yes 56454 else 56455 ac_cv_lib_dnet_stub_dnet_ntoa=no 56456 fi 56457 rm -f core conftest.err conftest.$ac_objext \ 56458 conftest$ac_exeext conftest.$ac_ext 56459 LIBS=$ac_check_lib_save_LIBS 56460 fi 56461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 56462 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 56463 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 56464 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 56465 fi 56466 56467 fi 56468 fi 56469 rm -f core conftest.err conftest.$ac_objext \ 56470 conftest$ac_exeext conftest.$ac_ext 56471 LIBS="$ac_xsave_LIBS" 56472 56473 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 56474 # to get the SysV transport functions. 56475 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 56476 # needs -lnsl. 56477 # The nsl library prevents programs from opening the X display 56478 # on Irix 5.2, according to T.E. Dickey. 56479 # The functions gethostbyname, getservbyname, and inet_addr are 56480 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 56481 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 56482 if test "x$ac_cv_func_gethostbyname" = xyes; then : 56483 56484 fi 56485 56486 if test $ac_cv_func_gethostbyname = no; then 56487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 56488 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 56489 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 56490 $as_echo_n "(cached) " >&6 56491 else 56492 ac_check_lib_save_LIBS=$LIBS 56493 LIBS="-lnsl $LIBS" 56494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56495 /* end confdefs.h. */ 56496 56497 /* Override any GCC internal prototype to avoid an error. 56498 Use char because int might match the return type of a GCC 56499 builtin and then its argument prototype would still apply. */ 56500 #ifdef __cplusplus 56501 extern "C" 56502 #endif 56503 char gethostbyname (); 56504 int 56505 main () 56506 { 56507 return gethostbyname (); 56508 ; 56509 return 0; 56510 } 56511 _ACEOF 56512 if ac_fn_cxx_try_link "$LINENO"; then : 56513 ac_cv_lib_nsl_gethostbyname=yes 56514 else 56515 ac_cv_lib_nsl_gethostbyname=no 56516 fi 56517 rm -f core conftest.err conftest.$ac_objext \ 56518 conftest$ac_exeext conftest.$ac_ext 56519 LIBS=$ac_check_lib_save_LIBS 56520 fi 56521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 56522 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 56523 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 56524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 56525 fi 56526 56527 if test $ac_cv_lib_nsl_gethostbyname = no; then 56528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 56529 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 56530 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 56531 $as_echo_n "(cached) " >&6 56532 else 56533 ac_check_lib_save_LIBS=$LIBS 56534 LIBS="-lbsd $LIBS" 56535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56536 /* end confdefs.h. */ 56537 56538 /* Override any GCC internal prototype to avoid an error. 56539 Use char because int might match the return type of a GCC 56540 builtin and then its argument prototype would still apply. */ 56541 #ifdef __cplusplus 56542 extern "C" 56543 #endif 56544 char gethostbyname (); 56545 int 56546 main () 56547 { 56548 return gethostbyname (); 56549 ; 56550 return 0; 56551 } 56552 _ACEOF 56553 if ac_fn_cxx_try_link "$LINENO"; then : 56554 ac_cv_lib_bsd_gethostbyname=yes 56555 else 56556 ac_cv_lib_bsd_gethostbyname=no 56557 fi 56558 rm -f core conftest.err conftest.$ac_objext \ 56559 conftest$ac_exeext conftest.$ac_ext 56560 LIBS=$ac_check_lib_save_LIBS 56561 fi 56562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 56563 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 56564 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 56565 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 56566 fi 56567 56568 fi 56569 fi 56570 56571 # lieder@skyler.mavd.honeywell.com says without -lsocket, 56572 # socket/setsockopt and other routines are undefined under SCO ODT 56573 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 56574 # on later versions), says Simon Leinen: it contains gethostby* 56575 # variants that don't use the name server (or something). -lsocket 56576 # must be given before -lnsl if both are needed. We assume that 56577 # if connect needs -lnsl, so does gethostbyname. 56578 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 56579 if test "x$ac_cv_func_connect" = xyes; then : 56580 56581 fi 56582 56583 if test $ac_cv_func_connect = no; then 56584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 56585 $as_echo_n "checking for connect in -lsocket... " >&6; } 56586 if ${ac_cv_lib_socket_connect+:} false; then : 56587 $as_echo_n "(cached) " >&6 56588 else 56589 ac_check_lib_save_LIBS=$LIBS 56590 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 56591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56592 /* end confdefs.h. */ 56593 56594 /* Override any GCC internal prototype to avoid an error. 56595 Use char because int might match the return type of a GCC 56596 builtin and then its argument prototype would still apply. */ 56597 #ifdef __cplusplus 56598 extern "C" 56599 #endif 56600 char connect (); 56601 int 56602 main () 56603 { 56604 return connect (); 56605 ; 56606 return 0; 56607 } 56608 _ACEOF 56609 if ac_fn_cxx_try_link "$LINENO"; then : 56610 ac_cv_lib_socket_connect=yes 56611 else 56612 ac_cv_lib_socket_connect=no 56613 fi 56614 rm -f core conftest.err conftest.$ac_objext \ 56615 conftest$ac_exeext conftest.$ac_ext 56616 LIBS=$ac_check_lib_save_LIBS 56617 fi 56618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 56619 $as_echo "$ac_cv_lib_socket_connect" >&6; } 56620 if test "x$ac_cv_lib_socket_connect" = xyes; then : 56621 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 56622 fi 56623 56624 fi 56625 56626 # Guillermo Gomez says -lposix is necessary on A/UX. 56627 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 56628 if test "x$ac_cv_func_remove" = xyes; then : 56629 56630 fi 56631 56632 if test $ac_cv_func_remove = no; then 56633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 56634 $as_echo_n "checking for remove in -lposix... " >&6; } 56635 if ${ac_cv_lib_posix_remove+:} false; then : 56636 $as_echo_n "(cached) " >&6 56637 else 56638 ac_check_lib_save_LIBS=$LIBS 56639 LIBS="-lposix $LIBS" 56640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56641 /* end confdefs.h. */ 56642 56643 /* Override any GCC internal prototype to avoid an error. 56644 Use char because int might match the return type of a GCC 56645 builtin and then its argument prototype would still apply. */ 56646 #ifdef __cplusplus 56647 extern "C" 56648 #endif 56649 char remove (); 56650 int 56651 main () 56652 { 56653 return remove (); 56654 ; 56655 return 0; 56656 } 56657 _ACEOF 56658 if ac_fn_cxx_try_link "$LINENO"; then : 56659 ac_cv_lib_posix_remove=yes 56660 else 56661 ac_cv_lib_posix_remove=no 56662 fi 56663 rm -f core conftest.err conftest.$ac_objext \ 56664 conftest$ac_exeext conftest.$ac_ext 56665 LIBS=$ac_check_lib_save_LIBS 56666 fi 56667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 56668 $as_echo "$ac_cv_lib_posix_remove" >&6; } 56669 if test "x$ac_cv_lib_posix_remove" = xyes; then : 56670 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 56671 fi 56672 56673 fi 56674 56675 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 56676 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 56677 if test "x$ac_cv_func_shmat" = xyes; then : 56678 56679 fi 56680 56681 if test $ac_cv_func_shmat = no; then 56682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 56683 $as_echo_n "checking for shmat in -lipc... " >&6; } 56684 if ${ac_cv_lib_ipc_shmat+:} false; then : 56685 $as_echo_n "(cached) " >&6 56686 else 56687 ac_check_lib_save_LIBS=$LIBS 56688 LIBS="-lipc $LIBS" 56689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56690 /* end confdefs.h. */ 56691 56692 /* Override any GCC internal prototype to avoid an error. 56693 Use char because int might match the return type of a GCC 56694 builtin and then its argument prototype would still apply. */ 56695 #ifdef __cplusplus 56696 extern "C" 56697 #endif 56698 char shmat (); 56699 int 56700 main () 56701 { 56702 return shmat (); 56703 ; 56704 return 0; 56705 } 56706 _ACEOF 56707 if ac_fn_cxx_try_link "$LINENO"; then : 56708 ac_cv_lib_ipc_shmat=yes 56709 else 56710 ac_cv_lib_ipc_shmat=no 56711 fi 56712 rm -f core conftest.err conftest.$ac_objext \ 56713 conftest$ac_exeext conftest.$ac_ext 56714 LIBS=$ac_check_lib_save_LIBS 56715 fi 56716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 56717 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 56718 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 56719 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 56720 fi 56721 56722 fi 56723 fi 56724 56725 # Check for libraries that X11R6 Xt/Xaw programs need. 56726 ac_save_LDFLAGS=$LDFLAGS 56727 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 56728 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 56729 # check for ICE first), but we must link in the order -lSM -lICE or 56730 # we get undefined symbols. So assume we have SM if we have ICE. 56731 # These have to be linked with before -lX11, unlike the other 56732 # libraries we check for below, so use a different variable. 56733 # John Interrante, Karl Berry 56734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 56735 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 56736 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 56737 $as_echo_n "(cached) " >&6 56738 else 56739 ac_check_lib_save_LIBS=$LIBS 56740 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 56741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56742 /* end confdefs.h. */ 56743 56744 /* Override any GCC internal prototype to avoid an error. 56745 Use char because int might match the return type of a GCC 56746 builtin and then its argument prototype would still apply. */ 56747 #ifdef __cplusplus 56748 extern "C" 56749 #endif 56750 char IceConnectionNumber (); 56751 int 56752 main () 56753 { 56754 return IceConnectionNumber (); 56755 ; 56756 return 0; 56757 } 56758 _ACEOF 56759 if ac_fn_cxx_try_link "$LINENO"; then : 56760 ac_cv_lib_ICE_IceConnectionNumber=yes 56761 else 56762 ac_cv_lib_ICE_IceConnectionNumber=no 56763 fi 56764 rm -f core conftest.err conftest.$ac_objext \ 56765 conftest$ac_exeext conftest.$ac_ext 56766 LIBS=$ac_check_lib_save_LIBS 56767 fi 56768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 56769 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 56770 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 56771 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 56772 fi 56773 56774 LDFLAGS=$ac_save_LDFLAGS 56775 56776 fi 56777 56778 56779 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 56780 # this doesn't make sense so we remove it. 56781 if test "x$COMPILE_TYPE" = xcross; then 56782 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 56783 fi 56784 56785 if test "x$no_x" = xyes; then 56786 56787 # Print a helpful message on how to acquire the necessary build dependency. 56788 # x11 is the help tag: freetype, cups, alsa etc 56789 MISSING_DEPENDENCY=x11 56790 56791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56792 cygwin_help $MISSING_DEPENDENCY 56793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56794 msys_help $MISSING_DEPENDENCY 56795 else 56796 PKGHANDLER_COMMAND= 56797 56798 case $PKGHANDLER in 56799 apt-get) 56800 apt_help $MISSING_DEPENDENCY ;; 56801 yum) 56802 yum_help $MISSING_DEPENDENCY ;; 56803 brew) 56804 brew_help $MISSING_DEPENDENCY ;; 56805 port) 56806 port_help $MISSING_DEPENDENCY ;; 56807 pkgutil) 56808 pkgutil_help $MISSING_DEPENDENCY ;; 56809 pkgadd) 56810 pkgadd_help $MISSING_DEPENDENCY ;; 56811 esac 56812 56813 if test "x$PKGHANDLER_COMMAND" != x; then 56814 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56815 fi 56816 fi 56817 56818 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 56819 fi 56820 56821 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 56822 OPENWIN_HOME="/usr/openwin" 56823 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 56824 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 56825 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 56826 fi 56827 56828 ac_ext=c 56829 ac_cpp='$CPP $CPPFLAGS' 56830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56832 ac_compiler_gnu=$ac_cv_c_compiler_gnu 56833 56834 OLD_CFLAGS="$CFLAGS" 56835 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 56836 56837 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 56838 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 56839 do : 56840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56841 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 56842 # include <X11/Xlib.h> 56843 # include <X11/Xutil.h> 56844 56845 56846 " 56847 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56848 cat >>confdefs.h <<_ACEOF 56849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56850 _ACEOF 56851 X11_HEADERS_OK=yes 56852 else 56853 X11_HEADERS_OK=no; break 56854 fi 56855 56856 done 56857 56858 56859 if test "x$X11_HEADERS_OK" = xno; then 56860 56861 # Print a helpful message on how to acquire the necessary build dependency. 56862 # x11 is the help tag: freetype, cups, alsa etc 56863 MISSING_DEPENDENCY=x11 56864 56865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56866 cygwin_help $MISSING_DEPENDENCY 56867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56868 msys_help $MISSING_DEPENDENCY 56869 else 56870 PKGHANDLER_COMMAND= 56871 56872 case $PKGHANDLER in 56873 apt-get) 56874 apt_help $MISSING_DEPENDENCY ;; 56875 yum) 56876 yum_help $MISSING_DEPENDENCY ;; 56877 brew) 56878 brew_help $MISSING_DEPENDENCY ;; 56879 port) 56880 port_help $MISSING_DEPENDENCY ;; 56881 pkgutil) 56882 pkgutil_help $MISSING_DEPENDENCY ;; 56883 pkgadd) 56884 pkgadd_help $MISSING_DEPENDENCY ;; 56885 esac 56886 56887 if test "x$PKGHANDLER_COMMAND" != x; then 56888 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56889 fi 56890 fi 56891 56892 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 56893 fi 56894 56895 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 56896 # defined in libawt_xawt. 56897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 56898 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 56899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56900 /* end confdefs.h. */ 56901 #include <X11/extensions/Xrender.h> 56902 int 56903 main () 56904 { 56905 XLinearGradient x; 56906 ; 56907 return 0; 56908 } 56909 _ACEOF 56910 if ac_fn_c_try_compile "$LINENO"; then : 56911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56912 $as_echo "yes" >&6; } 56913 else 56914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56915 $as_echo "no" >&6; } 56916 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 56917 fi 56918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56919 56920 CFLAGS="$OLD_CFLAGS" 56921 ac_ext=cpp 56922 ac_cpp='$CXXCPP $CPPFLAGS' 56923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 56926 56927 fi # NEEDS_LIB_X11 56928 56929 56930 56931 56932 56933 56934 # Check whether --with-cups was given. 56935 if test "${with_cups+set}" = set; then : 56936 withval=$with_cups; 56937 fi 56938 56939 56940 # Check whether --with-cups-include was given. 56941 if test "${with_cups_include+set}" = set; then : 56942 withval=$with_cups_include; 56943 fi 56944 56945 56946 if test "x$NEEDS_LIB_CUPS" = xfalse; then 56947 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 56948 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 56949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 56950 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 56951 fi 56952 CUPS_CFLAGS= 56953 else 56954 CUPS_FOUND=no 56955 56956 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 56957 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 56958 fi 56959 56960 if test "x${with_cups}" != x; then 56961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56962 $as_echo_n "checking for cups headers... " >&6; } 56963 if test -s "${with_cups}/include/cups/cups.h"; then 56964 CUPS_CFLAGS="-I${with_cups}/include" 56965 CUPS_FOUND=yes 56966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56967 $as_echo "$CUPS_FOUND" >&6; } 56968 else 56969 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 56970 fi 56971 fi 56972 if test "x${with_cups_include}" != x; then 56973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56974 $as_echo_n "checking for cups headers... " >&6; } 56975 if test -s "${with_cups_include}/cups/cups.h"; then 56976 CUPS_CFLAGS="-I${with_cups_include}" 56977 CUPS_FOUND=yes 56978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56979 $as_echo "$CUPS_FOUND" >&6; } 56980 else 56981 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 56982 fi 56983 fi 56984 if test "x$CUPS_FOUND" = xno; then 56985 # Are the cups headers installed in the default /usr/include location? 56986 for ac_header in cups/cups.h cups/ppd.h 56987 do : 56988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56989 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 56990 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56991 cat >>confdefs.h <<_ACEOF 56992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56993 _ACEOF 56994 56995 CUPS_FOUND=yes 56996 CUPS_CFLAGS= 56997 DEFAULT_CUPS=yes 56998 56999 fi 57000 57001 done 57002 57003 fi 57004 if test "x$CUPS_FOUND" = xno; then 57005 57006 # Print a helpful message on how to acquire the necessary build dependency. 57007 # cups is the help tag: freetype, cups, alsa etc 57008 MISSING_DEPENDENCY=cups 57009 57010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57011 cygwin_help $MISSING_DEPENDENCY 57012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57013 msys_help $MISSING_DEPENDENCY 57014 else 57015 PKGHANDLER_COMMAND= 57016 57017 case $PKGHANDLER in 57018 apt-get) 57019 apt_help $MISSING_DEPENDENCY ;; 57020 yum) 57021 yum_help $MISSING_DEPENDENCY ;; 57022 brew) 57023 brew_help $MISSING_DEPENDENCY ;; 57024 port) 57025 port_help $MISSING_DEPENDENCY ;; 57026 pkgutil) 57027 pkgutil_help $MISSING_DEPENDENCY ;; 57028 pkgadd) 57029 pkgadd_help $MISSING_DEPENDENCY ;; 57030 esac 57031 57032 if test "x$PKGHANDLER_COMMAND" != x; then 57033 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57034 fi 57035 fi 57036 57037 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 57038 fi 57039 fi 57040 57041 57042 57043 57044 57045 # Check whether --with-freetype was given. 57046 if test "${with_freetype+set}" = set; then : 57047 withval=$with_freetype; 57048 fi 57049 57050 57051 # Check whether --with-freetype-include was given. 57052 if test "${with_freetype_include+set}" = set; then : 57053 withval=$with_freetype_include; 57054 fi 57055 57056 57057 # Check whether --with-freetype-lib was given. 57058 if test "${with_freetype_lib+set}" = set; then : 57059 withval=$with_freetype_lib; 57060 fi 57061 57062 57063 # Check whether --with-freetype-src was given. 57064 if test "${with_freetype_src+set}" = set; then : 57065 withval=$with_freetype_src; 57066 fi 57067 57068 # Check whether --enable-freetype-bundling was given. 57069 if test "${enable_freetype_bundling+set}" = set; then : 57070 enableval=$enable_freetype_bundling; 57071 fi 57072 57073 57074 # Need to specify explicitly since it needs to be overridden on some versions of macosx 57075 FREETYPE_BASE_NAME=freetype 57076 FREETYPE_CFLAGS= 57077 FREETYPE_LIBS= 57078 FREETYPE_BUNDLE_LIB_PATH= 57079 57080 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 57081 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 57082 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 57083 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 57084 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 57085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 57086 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 57087 fi 57088 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 57089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 57090 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 57091 fi 57092 else 57093 # freetype is needed to build; go get it! 57094 57095 BUNDLE_FREETYPE="$enable_freetype_bundling" 57096 57097 if test "x$with_freetype_src" != x; then 57098 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57099 # Try to build freetype if --with-freetype-src was given on Windows 57100 57101 FREETYPE_SRC_PATH="$with_freetype_src" 57102 BUILD_FREETYPE=yes 57103 57104 # Check if the freetype sources are acessible.. 57105 if ! test -d $FREETYPE_SRC_PATH; then 57106 { $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 57107 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 57108 BUILD_FREETYPE=no 57109 fi 57110 # ..and contain a vc2010 project file 57111 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 57112 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 57113 { $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 57114 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 57115 BUILD_FREETYPE=no 57116 fi 57117 # Now check if configure found a version of 'msbuild.exe' 57118 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 57119 { $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 57120 $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;} 57121 BUILD_FREETYPE=no 57122 fi 57123 57124 # Ready to go.. 57125 if test "x$BUILD_FREETYPE" = xyes; then 57126 # msbuild requires trailing slashes for output directories 57127 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 57128 freetype_lib_path_unix="$freetype_lib_path" 57129 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 57130 57131 unix_path="$vcxproj_path" 57132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57133 windows_path=`$CYGPATH -m "$unix_path"` 57134 vcxproj_path="$windows_path" 57135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57136 windows_path=`cmd //c echo $unix_path` 57137 vcxproj_path="$windows_path" 57138 fi 57139 57140 57141 unix_path="$freetype_lib_path" 57142 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57143 windows_path=`$CYGPATH -m "$unix_path"` 57144 freetype_lib_path="$windows_path" 57145 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57146 windows_path=`cmd //c echo $unix_path` 57147 freetype_lib_path="$windows_path" 57148 fi 57149 57150 57151 unix_path="$freetype_obj_path" 57152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57153 windows_path=`$CYGPATH -m "$unix_path"` 57154 freetype_obj_path="$windows_path" 57155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57156 windows_path=`cmd //c echo $unix_path` 57157 freetype_obj_path="$windows_path" 57158 fi 57159 57160 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57161 freetype_platform=x64 57162 else 57163 freetype_platform=win32 57164 fi 57165 57166 # The original freetype project file is for VS 2010 (i.e. 'v100'), 57167 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 57168 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 57169 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 57170 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 57171 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 57172 57173 # First we try to build the freetype.dll 57174 $ECHO -e "@echo off\n"\ 57175 "$MSBUILD $vcxproj_path "\ 57176 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 57177 "/p:Configuration=\"Release Multithreaded\" "\ 57178 "/p:Platform=$freetype_platform "\ 57179 "/p:ConfigurationType=DynamicLibrary "\ 57180 "/p:TargetName=freetype "\ 57181 "/p:OutDir=\"$freetype_lib_path\" "\ 57182 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 57183 cmd /c freetype.bat 57184 57185 if test -s "$freetype_lib_path_unix/freetype.dll"; then 57186 # If that succeeds we also build freetype.lib 57187 $ECHO -e "@echo off\n"\ 57188 "$MSBUILD $vcxproj_path "\ 57189 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 57190 "/p:Configuration=\"Release Multithreaded\" "\ 57191 "/p:Platform=$freetype_platform "\ 57192 "/p:ConfigurationType=StaticLibrary "\ 57193 "/p:TargetName=freetype "\ 57194 "/p:OutDir=\"$freetype_lib_path\" "\ 57195 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 57196 cmd /c freetype.bat 57197 57198 if test -s "$freetype_lib_path_unix/freetype.lib"; then 57199 # Once we build both, lib and dll, set freetype lib and include path appropriately 57200 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 57201 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 57202 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 57203 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 57204 else 57205 BUILD_FREETYPE=no 57206 fi 57207 else 57208 BUILD_FREETYPE=no 57209 fi 57210 fi 57211 57212 if test "x$BUILD_FREETYPE" = xyes; then 57213 # Okay, we built it. Check that it works. 57214 57215 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57216 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57217 METHOD="--with-freetype-src" 57218 57219 # Let's start with an optimistic view of the world :-) 57220 FOUND_FREETYPE=yes 57221 57222 # First look for the canonical freetype main include file ft2build.h. 57223 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57224 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57225 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57226 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57227 # Fail. 57228 FOUND_FREETYPE=no 57229 fi 57230 fi 57231 57232 if test "x$FOUND_FREETYPE" = xyes; then 57233 # Include file found, let's continue the sanity check. 57234 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57235 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57236 57237 # Reset to default value 57238 FREETYPE_BASE_NAME=freetype 57239 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57240 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57241 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57242 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57243 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57244 # for the .6 version explicitly. 57245 FREETYPE_BASE_NAME=freetype.6 57246 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57247 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57248 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57249 else 57250 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57251 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57252 FOUND_FREETYPE=no 57253 fi 57254 else 57255 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57256 # On Windows, we will need both .lib and .dll file. 57257 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57258 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57259 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57260 FOUND_FREETYPE=no 57261 fi 57262 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57263 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57264 # Found lib in isa dir, use that instead. 57265 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57266 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57267 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57268 fi 57269 fi 57270 fi 57271 57272 if test "x$FOUND_FREETYPE" = xyes; then 57273 57274 # Only process if variable expands to non-empty 57275 57276 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57278 57279 # Input might be given as Windows format, start by converting to 57280 # unix format. 57281 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57282 new_path=`$CYGPATH -u "$path"` 57283 57284 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57285 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57286 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57287 # "foo.exe" is OK but "foo" is an error. 57288 # 57289 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57290 # It is also a way to make sure we got the proper file name for the real test later on. 57291 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57292 if test "x$test_shortpath" = x; then 57293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57294 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57295 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57296 fi 57297 57298 # Call helper function which possibly converts this using DOS-style short mode. 57299 # If so, the updated path is stored in $new_path. 57300 57301 input_path="$new_path" 57302 # Check if we need to convert this using DOS-style short mode. If the path 57303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57304 # take no chances and rewrite it. 57305 # Note: m4 eats our [], so we need to use [ and ] instead. 57306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57307 if test "x$has_forbidden_chars" != x; then 57308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57309 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57310 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57311 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57312 # Going to short mode and back again did indeed matter. Since short mode is 57313 # case insensitive, let's make it lowercase to improve readability. 57314 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57315 # Now convert it back to Unix-style (cygpath) 57316 input_path=`$CYGPATH -u "$shortmode_path"` 57317 new_path="$input_path" 57318 fi 57319 fi 57320 57321 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57322 if test "x$test_cygdrive_prefix" = x; then 57323 # As a simple fix, exclude /usr/bin since it's not a real path. 57324 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57325 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57326 # a path prefixed by /cygdrive for fixpath to work. 57327 new_path="$CYGWIN_ROOT_PATH$input_path" 57328 fi 57329 fi 57330 57331 57332 if test "x$path" != "x$new_path"; then 57333 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57334 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57335 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57336 fi 57337 57338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57339 57340 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57341 has_colon=`$ECHO $path | $GREP ^.:` 57342 new_path="$path" 57343 if test "x$has_colon" = x; then 57344 # Not in mixed or Windows style, start by that. 57345 new_path=`cmd //c echo $path` 57346 fi 57347 57348 57349 input_path="$new_path" 57350 # Check if we need to convert this using DOS-style short mode. If the path 57351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57352 # take no chances and rewrite it. 57353 # Note: m4 eats our [], so we need to use [ and ] instead. 57354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57355 if test "x$has_forbidden_chars" != x; then 57356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57357 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57358 fi 57359 57360 57361 windows_path="$new_path" 57362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57363 unix_path=`$CYGPATH -u "$windows_path"` 57364 new_path="$unix_path" 57365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57367 new_path="$unix_path" 57368 fi 57369 57370 if test "x$path" != "x$new_path"; then 57371 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57372 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57373 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57374 fi 57375 57376 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57377 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57378 57379 else 57380 # We're on a unix platform. Hooray! :) 57381 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57382 has_space=`$ECHO "$path" | $GREP " "` 57383 if test "x$has_space" != x; then 57384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57385 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57386 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57387 fi 57388 57389 # Use eval to expand a potential ~ 57390 eval path="$path" 57391 if test ! -f "$path" && test ! -d "$path"; then 57392 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57393 fi 57394 57395 if test -d "$path"; then 57396 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57397 else 57398 dir="`$DIRNAME "$path"`" 57399 base="`$BASENAME "$path"`" 57400 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57401 fi 57402 fi 57403 fi 57404 57405 57406 # Only process if variable expands to non-empty 57407 57408 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57410 57411 # Input might be given as Windows format, start by converting to 57412 # unix format. 57413 path="$POTENTIAL_FREETYPE_LIB_PATH" 57414 new_path=`$CYGPATH -u "$path"` 57415 57416 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57417 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57418 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57419 # "foo.exe" is OK but "foo" is an error. 57420 # 57421 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57422 # It is also a way to make sure we got the proper file name for the real test later on. 57423 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57424 if test "x$test_shortpath" = x; then 57425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57426 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57427 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57428 fi 57429 57430 # Call helper function which possibly converts this using DOS-style short mode. 57431 # If so, the updated path is stored in $new_path. 57432 57433 input_path="$new_path" 57434 # Check if we need to convert this using DOS-style short mode. If the path 57435 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57436 # take no chances and rewrite it. 57437 # Note: m4 eats our [], so we need to use [ and ] instead. 57438 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57439 if test "x$has_forbidden_chars" != x; then 57440 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57441 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57442 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57443 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57444 # Going to short mode and back again did indeed matter. Since short mode is 57445 # case insensitive, let's make it lowercase to improve readability. 57446 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57447 # Now convert it back to Unix-style (cygpath) 57448 input_path=`$CYGPATH -u "$shortmode_path"` 57449 new_path="$input_path" 57450 fi 57451 fi 57452 57453 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57454 if test "x$test_cygdrive_prefix" = x; then 57455 # As a simple fix, exclude /usr/bin since it's not a real path. 57456 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57457 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57458 # a path prefixed by /cygdrive for fixpath to work. 57459 new_path="$CYGWIN_ROOT_PATH$input_path" 57460 fi 57461 fi 57462 57463 57464 if test "x$path" != "x$new_path"; then 57465 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57467 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57468 fi 57469 57470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57471 57472 path="$POTENTIAL_FREETYPE_LIB_PATH" 57473 has_colon=`$ECHO $path | $GREP ^.:` 57474 new_path="$path" 57475 if test "x$has_colon" = x; then 57476 # Not in mixed or Windows style, start by that. 57477 new_path=`cmd //c echo $path` 57478 fi 57479 57480 57481 input_path="$new_path" 57482 # Check if we need to convert this using DOS-style short mode. If the path 57483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57484 # take no chances and rewrite it. 57485 # Note: m4 eats our [], so we need to use [ and ] instead. 57486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57487 if test "x$has_forbidden_chars" != x; then 57488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57489 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57490 fi 57491 57492 57493 windows_path="$new_path" 57494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57495 unix_path=`$CYGPATH -u "$windows_path"` 57496 new_path="$unix_path" 57497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57499 new_path="$unix_path" 57500 fi 57501 57502 if test "x$path" != "x$new_path"; then 57503 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57504 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57505 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57506 fi 57507 57508 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57509 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57510 57511 else 57512 # We're on a unix platform. Hooray! :) 57513 path="$POTENTIAL_FREETYPE_LIB_PATH" 57514 has_space=`$ECHO "$path" | $GREP " "` 57515 if test "x$has_space" != x; then 57516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57517 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57518 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57519 fi 57520 57521 # Use eval to expand a potential ~ 57522 eval path="$path" 57523 if test ! -f "$path" && test ! -d "$path"; then 57524 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57525 fi 57526 57527 if test -d "$path"; then 57528 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57529 else 57530 dir="`$DIRNAME "$path"`" 57531 base="`$BASENAME "$path"`" 57532 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57533 fi 57534 fi 57535 fi 57536 57537 57538 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57540 $as_echo_n "checking for freetype includes... " >&6; } 57541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57542 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57543 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57545 $as_echo_n "checking for freetype libraries... " >&6; } 57546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57547 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57548 fi 57549 57550 if test "x$FOUND_FREETYPE" != xyes; then 57551 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 57552 fi 57553 else 57554 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 57555 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 57556 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 57557 fi 57558 else 57559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 57560 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 57561 fi 57562 fi 57563 57564 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 57565 # User has specified settings 57566 57567 if test "x$BUNDLE_FREETYPE" = x; then 57568 # If not specified, default is to bundle freetype 57569 BUNDLE_FREETYPE=yes 57570 fi 57571 57572 if test "x$with_freetype" != x; then 57573 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 57574 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 57575 fi 57576 57577 # Allow --with-freetype-lib and --with-freetype-include to override 57578 if test "x$with_freetype_include" != x; then 57579 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 57580 fi 57581 if test "x$with_freetype_lib" != x; then 57582 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 57583 fi 57584 57585 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57586 # Okay, we got it. Check that it works. 57587 57588 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57589 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57590 METHOD="--with-freetype" 57591 57592 # Let's start with an optimistic view of the world :-) 57593 FOUND_FREETYPE=yes 57594 57595 # First look for the canonical freetype main include file ft2build.h. 57596 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57597 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57598 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57599 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57600 # Fail. 57601 FOUND_FREETYPE=no 57602 fi 57603 fi 57604 57605 if test "x$FOUND_FREETYPE" = xyes; then 57606 # Include file found, let's continue the sanity check. 57607 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57608 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57609 57610 # Reset to default value 57611 FREETYPE_BASE_NAME=freetype 57612 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57613 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57614 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57615 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57616 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57617 # for the .6 version explicitly. 57618 FREETYPE_BASE_NAME=freetype.6 57619 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57620 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57621 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57622 else 57623 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57624 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57625 FOUND_FREETYPE=no 57626 fi 57627 else 57628 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57629 # On Windows, we will need both .lib and .dll file. 57630 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57631 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57632 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57633 FOUND_FREETYPE=no 57634 fi 57635 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57636 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57637 # Found lib in isa dir, use that instead. 57638 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57639 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57640 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57641 fi 57642 fi 57643 fi 57644 57645 if test "x$FOUND_FREETYPE" = xyes; then 57646 57647 # Only process if variable expands to non-empty 57648 57649 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57651 57652 # Input might be given as Windows format, start by converting to 57653 # unix format. 57654 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57655 new_path=`$CYGPATH -u "$path"` 57656 57657 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57658 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57659 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57660 # "foo.exe" is OK but "foo" is an error. 57661 # 57662 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57663 # It is also a way to make sure we got the proper file name for the real test later on. 57664 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57665 if test "x$test_shortpath" = x; then 57666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57667 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57668 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57669 fi 57670 57671 # Call helper function which possibly converts this using DOS-style short mode. 57672 # If so, the updated path is stored in $new_path. 57673 57674 input_path="$new_path" 57675 # Check if we need to convert this using DOS-style short mode. If the path 57676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57677 # take no chances and rewrite it. 57678 # Note: m4 eats our [], so we need to use [ and ] instead. 57679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57680 if test "x$has_forbidden_chars" != x; then 57681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57682 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57683 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57684 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57685 # Going to short mode and back again did indeed matter. Since short mode is 57686 # case insensitive, let's make it lowercase to improve readability. 57687 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57688 # Now convert it back to Unix-style (cygpath) 57689 input_path=`$CYGPATH -u "$shortmode_path"` 57690 new_path="$input_path" 57691 fi 57692 fi 57693 57694 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57695 if test "x$test_cygdrive_prefix" = x; then 57696 # As a simple fix, exclude /usr/bin since it's not a real path. 57697 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57698 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57699 # a path prefixed by /cygdrive for fixpath to work. 57700 new_path="$CYGWIN_ROOT_PATH$input_path" 57701 fi 57702 fi 57703 57704 57705 if test "x$path" != "x$new_path"; then 57706 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57707 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57708 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57709 fi 57710 57711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57712 57713 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57714 has_colon=`$ECHO $path | $GREP ^.:` 57715 new_path="$path" 57716 if test "x$has_colon" = x; then 57717 # Not in mixed or Windows style, start by that. 57718 new_path=`cmd //c echo $path` 57719 fi 57720 57721 57722 input_path="$new_path" 57723 # Check if we need to convert this using DOS-style short mode. If the path 57724 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57725 # take no chances and rewrite it. 57726 # Note: m4 eats our [], so we need to use [ and ] instead. 57727 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57728 if test "x$has_forbidden_chars" != x; then 57729 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57730 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57731 fi 57732 57733 57734 windows_path="$new_path" 57735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57736 unix_path=`$CYGPATH -u "$windows_path"` 57737 new_path="$unix_path" 57738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57740 new_path="$unix_path" 57741 fi 57742 57743 if test "x$path" != "x$new_path"; then 57744 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57746 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57747 fi 57748 57749 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57750 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57751 57752 else 57753 # We're on a unix platform. Hooray! :) 57754 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57755 has_space=`$ECHO "$path" | $GREP " "` 57756 if test "x$has_space" != x; then 57757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57758 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57759 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57760 fi 57761 57762 # Use eval to expand a potential ~ 57763 eval path="$path" 57764 if test ! -f "$path" && test ! -d "$path"; then 57765 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57766 fi 57767 57768 if test -d "$path"; then 57769 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57770 else 57771 dir="`$DIRNAME "$path"`" 57772 base="`$BASENAME "$path"`" 57773 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57774 fi 57775 fi 57776 fi 57777 57778 57779 # Only process if variable expands to non-empty 57780 57781 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57783 57784 # Input might be given as Windows format, start by converting to 57785 # unix format. 57786 path="$POTENTIAL_FREETYPE_LIB_PATH" 57787 new_path=`$CYGPATH -u "$path"` 57788 57789 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57790 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57791 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57792 # "foo.exe" is OK but "foo" is an error. 57793 # 57794 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57795 # It is also a way to make sure we got the proper file name for the real test later on. 57796 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57797 if test "x$test_shortpath" = x; then 57798 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57799 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57800 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57801 fi 57802 57803 # Call helper function which possibly converts this using DOS-style short mode. 57804 # If so, the updated path is stored in $new_path. 57805 57806 input_path="$new_path" 57807 # Check if we need to convert this using DOS-style short mode. If the path 57808 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57809 # take no chances and rewrite it. 57810 # Note: m4 eats our [], so we need to use [ and ] instead. 57811 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57812 if test "x$has_forbidden_chars" != x; then 57813 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57814 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57815 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57816 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57817 # Going to short mode and back again did indeed matter. Since short mode is 57818 # case insensitive, let's make it lowercase to improve readability. 57819 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57820 # Now convert it back to Unix-style (cygpath) 57821 input_path=`$CYGPATH -u "$shortmode_path"` 57822 new_path="$input_path" 57823 fi 57824 fi 57825 57826 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57827 if test "x$test_cygdrive_prefix" = x; then 57828 # As a simple fix, exclude /usr/bin since it's not a real path. 57829 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57830 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57831 # a path prefixed by /cygdrive for fixpath to work. 57832 new_path="$CYGWIN_ROOT_PATH$input_path" 57833 fi 57834 fi 57835 57836 57837 if test "x$path" != "x$new_path"; then 57838 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57839 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57840 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57841 fi 57842 57843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57844 57845 path="$POTENTIAL_FREETYPE_LIB_PATH" 57846 has_colon=`$ECHO $path | $GREP ^.:` 57847 new_path="$path" 57848 if test "x$has_colon" = x; then 57849 # Not in mixed or Windows style, start by that. 57850 new_path=`cmd //c echo $path` 57851 fi 57852 57853 57854 input_path="$new_path" 57855 # Check if we need to convert this using DOS-style short mode. If the path 57856 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57857 # take no chances and rewrite it. 57858 # Note: m4 eats our [], so we need to use [ and ] instead. 57859 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57860 if test "x$has_forbidden_chars" != x; then 57861 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57862 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57863 fi 57864 57865 57866 windows_path="$new_path" 57867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57868 unix_path=`$CYGPATH -u "$windows_path"` 57869 new_path="$unix_path" 57870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57872 new_path="$unix_path" 57873 fi 57874 57875 if test "x$path" != "x$new_path"; then 57876 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57877 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57878 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57879 fi 57880 57881 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57882 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57883 57884 else 57885 # We're on a unix platform. Hooray! :) 57886 path="$POTENTIAL_FREETYPE_LIB_PATH" 57887 has_space=`$ECHO "$path" | $GREP " "` 57888 if test "x$has_space" != x; then 57889 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57890 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57891 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57892 fi 57893 57894 # Use eval to expand a potential ~ 57895 eval path="$path" 57896 if test ! -f "$path" && test ! -d "$path"; then 57897 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57898 fi 57899 57900 if test -d "$path"; then 57901 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57902 else 57903 dir="`$DIRNAME "$path"`" 57904 base="`$BASENAME "$path"`" 57905 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57906 fi 57907 fi 57908 fi 57909 57910 57911 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57913 $as_echo_n "checking for freetype includes... " >&6; } 57914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57915 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57916 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57918 $as_echo_n "checking for freetype libraries... " >&6; } 57919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57920 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57921 fi 57922 57923 if test "x$FOUND_FREETYPE" != xyes; then 57924 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 57925 fi 57926 else 57927 # User specified only one of lib or include. This is an error. 57928 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 57929 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 57930 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 57931 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 57932 else 57933 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 57934 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 57935 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 57936 fi 57937 fi 57938 else 57939 # User did not specify settings, but we need freetype. Try to locate it. 57940 57941 if test "x$BUNDLE_FREETYPE" = x; then 57942 # If not specified, default is to bundle freetype only on windows 57943 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57944 BUNDLE_FREETYPE=yes 57945 else 57946 BUNDLE_FREETYPE=no 57947 fi 57948 fi 57949 57950 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 57951 if test "x$SYSROOT" = x; then 57952 if test "x$FOUND_FREETYPE" != xyes; then 57953 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 57954 if test "x$PKG_CONFIG" != x; then 57955 57956 pkg_failed=no 57957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 57958 $as_echo_n "checking for FREETYPE... " >&6; } 57959 57960 if test -n "$FREETYPE_CFLAGS"; then 57961 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 57962 elif test -n "$PKG_CONFIG"; then 57963 if test -n "$PKG_CONFIG" && \ 57964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 57965 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 57966 ac_status=$? 57967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57968 test $ac_status = 0; }; then 57969 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 57970 else 57971 pkg_failed=yes 57972 fi 57973 else 57974 pkg_failed=untried 57975 fi 57976 if test -n "$FREETYPE_LIBS"; then 57977 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 57978 elif test -n "$PKG_CONFIG"; then 57979 if test -n "$PKG_CONFIG" && \ 57980 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 57981 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 57982 ac_status=$? 57983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57984 test $ac_status = 0; }; then 57985 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 57986 else 57987 pkg_failed=yes 57988 fi 57989 else 57990 pkg_failed=untried 57991 fi 57992 57993 57994 57995 if test $pkg_failed = yes; then 57996 57997 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 57998 _pkg_short_errors_supported=yes 57999 else 58000 _pkg_short_errors_supported=no 58001 fi 58002 if test $_pkg_short_errors_supported = yes; then 58003 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 58004 else 58005 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 58006 fi 58007 # Put the nasty error message in config.log where it belongs 58008 echo "$FREETYPE_PKG_ERRORS" >&5 58009 58010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58011 $as_echo "no" >&6; } 58012 FOUND_FREETYPE=no 58013 elif test $pkg_failed = untried; then 58014 FOUND_FREETYPE=no 58015 else 58016 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 58017 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 58018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58019 $as_echo "yes" >&6; } 58020 FOUND_FREETYPE=yes 58021 fi 58022 if test "x$FOUND_FREETYPE" = xyes; then 58023 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 58024 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 58025 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 58026 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 58027 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 58028 fi 58029 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 58030 if test "x$BUNDLE_FREETYPE" = xyes; then 58031 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 58032 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 58033 FOUND_FREETYPE=no 58034 else 58035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 58036 $as_echo_n "checking for freetype... " >&6; } 58037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 58038 $as_echo "yes (using pkg-config)" >&6; } 58039 fi 58040 fi 58041 fi 58042 fi 58043 fi 58044 58045 if test "x$FOUND_FREETYPE" != xyes; then 58046 # Check in well-known locations 58047 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58048 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 58049 58050 windows_path="$FREETYPE_BASE_DIR" 58051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58052 unix_path=`$CYGPATH -u "$windows_path"` 58053 FREETYPE_BASE_DIR="$unix_path" 58054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58055 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58056 FREETYPE_BASE_DIR="$unix_path" 58057 fi 58058 58059 58060 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58061 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 58062 METHOD="well-known location" 58063 58064 # Let's start with an optimistic view of the world :-) 58065 FOUND_FREETYPE=yes 58066 58067 # First look for the canonical freetype main include file ft2build.h. 58068 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58069 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58070 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58071 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58072 # Fail. 58073 FOUND_FREETYPE=no 58074 fi 58075 fi 58076 58077 if test "x$FOUND_FREETYPE" = xyes; then 58078 # Include file found, let's continue the sanity check. 58079 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58080 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58081 58082 # Reset to default value 58083 FREETYPE_BASE_NAME=freetype 58084 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58085 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58086 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58087 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58088 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58089 # for the .6 version explicitly. 58090 FREETYPE_BASE_NAME=freetype.6 58091 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58092 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58093 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58094 else 58095 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58096 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58097 FOUND_FREETYPE=no 58098 fi 58099 else 58100 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58101 # On Windows, we will need both .lib and .dll file. 58102 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58103 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58104 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58105 FOUND_FREETYPE=no 58106 fi 58107 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58108 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58109 # Found lib in isa dir, use that instead. 58110 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58111 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58112 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58113 fi 58114 fi 58115 fi 58116 58117 if test "x$FOUND_FREETYPE" = xyes; then 58118 58119 # Only process if variable expands to non-empty 58120 58121 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58123 58124 # Input might be given as Windows format, start by converting to 58125 # unix format. 58126 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58127 new_path=`$CYGPATH -u "$path"` 58128 58129 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58130 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58131 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58132 # "foo.exe" is OK but "foo" is an error. 58133 # 58134 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58135 # It is also a way to make sure we got the proper file name for the real test later on. 58136 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58137 if test "x$test_shortpath" = x; then 58138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58139 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58140 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58141 fi 58142 58143 # Call helper function which possibly converts this using DOS-style short mode. 58144 # If so, the updated path is stored in $new_path. 58145 58146 input_path="$new_path" 58147 # Check if we need to convert this using DOS-style short mode. If the path 58148 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58149 # take no chances and rewrite it. 58150 # Note: m4 eats our [], so we need to use [ and ] instead. 58151 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58152 if test "x$has_forbidden_chars" != x; then 58153 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58154 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58155 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58156 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58157 # Going to short mode and back again did indeed matter. Since short mode is 58158 # case insensitive, let's make it lowercase to improve readability. 58159 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58160 # Now convert it back to Unix-style (cygpath) 58161 input_path=`$CYGPATH -u "$shortmode_path"` 58162 new_path="$input_path" 58163 fi 58164 fi 58165 58166 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58167 if test "x$test_cygdrive_prefix" = x; then 58168 # As a simple fix, exclude /usr/bin since it's not a real path. 58169 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58170 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58171 # a path prefixed by /cygdrive for fixpath to work. 58172 new_path="$CYGWIN_ROOT_PATH$input_path" 58173 fi 58174 fi 58175 58176 58177 if test "x$path" != "x$new_path"; then 58178 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58179 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58180 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58181 fi 58182 58183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58184 58185 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58186 has_colon=`$ECHO $path | $GREP ^.:` 58187 new_path="$path" 58188 if test "x$has_colon" = x; then 58189 # Not in mixed or Windows style, start by that. 58190 new_path=`cmd //c echo $path` 58191 fi 58192 58193 58194 input_path="$new_path" 58195 # Check if we need to convert this using DOS-style short mode. If the path 58196 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58197 # take no chances and rewrite it. 58198 # Note: m4 eats our [], so we need to use [ and ] instead. 58199 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58200 if test "x$has_forbidden_chars" != x; then 58201 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58202 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58203 fi 58204 58205 58206 windows_path="$new_path" 58207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58208 unix_path=`$CYGPATH -u "$windows_path"` 58209 new_path="$unix_path" 58210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58211 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58212 new_path="$unix_path" 58213 fi 58214 58215 if test "x$path" != "x$new_path"; then 58216 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58217 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58218 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58219 fi 58220 58221 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58222 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58223 58224 else 58225 # We're on a unix platform. Hooray! :) 58226 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58227 has_space=`$ECHO "$path" | $GREP " "` 58228 if test "x$has_space" != x; then 58229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58230 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58231 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58232 fi 58233 58234 # Use eval to expand a potential ~ 58235 eval path="$path" 58236 if test ! -f "$path" && test ! -d "$path"; then 58237 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58238 fi 58239 58240 if test -d "$path"; then 58241 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58242 else 58243 dir="`$DIRNAME "$path"`" 58244 base="`$BASENAME "$path"`" 58245 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58246 fi 58247 fi 58248 fi 58249 58250 58251 # Only process if variable expands to non-empty 58252 58253 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58255 58256 # Input might be given as Windows format, start by converting to 58257 # unix format. 58258 path="$POTENTIAL_FREETYPE_LIB_PATH" 58259 new_path=`$CYGPATH -u "$path"` 58260 58261 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58262 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58263 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58264 # "foo.exe" is OK but "foo" is an error. 58265 # 58266 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58267 # It is also a way to make sure we got the proper file name for the real test later on. 58268 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58269 if test "x$test_shortpath" = x; then 58270 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58271 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58272 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58273 fi 58274 58275 # Call helper function which possibly converts this using DOS-style short mode. 58276 # If so, the updated path is stored in $new_path. 58277 58278 input_path="$new_path" 58279 # Check if we need to convert this using DOS-style short mode. If the path 58280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58281 # take no chances and rewrite it. 58282 # Note: m4 eats our [], so we need to use [ and ] instead. 58283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58284 if test "x$has_forbidden_chars" != x; then 58285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58289 # Going to short mode and back again did indeed matter. Since short mode is 58290 # case insensitive, let's make it lowercase to improve readability. 58291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58292 # Now convert it back to Unix-style (cygpath) 58293 input_path=`$CYGPATH -u "$shortmode_path"` 58294 new_path="$input_path" 58295 fi 58296 fi 58297 58298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58299 if test "x$test_cygdrive_prefix" = x; then 58300 # As a simple fix, exclude /usr/bin since it's not a real path. 58301 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58303 # a path prefixed by /cygdrive for fixpath to work. 58304 new_path="$CYGWIN_ROOT_PATH$input_path" 58305 fi 58306 fi 58307 58308 58309 if test "x$path" != "x$new_path"; then 58310 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58312 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58313 fi 58314 58315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58316 58317 path="$POTENTIAL_FREETYPE_LIB_PATH" 58318 has_colon=`$ECHO $path | $GREP ^.:` 58319 new_path="$path" 58320 if test "x$has_colon" = x; then 58321 # Not in mixed or Windows style, start by that. 58322 new_path=`cmd //c echo $path` 58323 fi 58324 58325 58326 input_path="$new_path" 58327 # Check if we need to convert this using DOS-style short mode. If the path 58328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58329 # take no chances and rewrite it. 58330 # Note: m4 eats our [], so we need to use [ and ] instead. 58331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58332 if test "x$has_forbidden_chars" != x; then 58333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58334 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58335 fi 58336 58337 58338 windows_path="$new_path" 58339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58340 unix_path=`$CYGPATH -u "$windows_path"` 58341 new_path="$unix_path" 58342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58344 new_path="$unix_path" 58345 fi 58346 58347 if test "x$path" != "x$new_path"; then 58348 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58350 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58351 fi 58352 58353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58355 58356 else 58357 # We're on a unix platform. Hooray! :) 58358 path="$POTENTIAL_FREETYPE_LIB_PATH" 58359 has_space=`$ECHO "$path" | $GREP " "` 58360 if test "x$has_space" != x; then 58361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58362 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58363 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58364 fi 58365 58366 # Use eval to expand a potential ~ 58367 eval path="$path" 58368 if test ! -f "$path" && test ! -d "$path"; then 58369 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58370 fi 58371 58372 if test -d "$path"; then 58373 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58374 else 58375 dir="`$DIRNAME "$path"`" 58376 base="`$BASENAME "$path"`" 58377 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58378 fi 58379 fi 58380 fi 58381 58382 58383 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58385 $as_echo_n "checking for freetype includes... " >&6; } 58386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58387 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58388 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58390 $as_echo_n "checking for freetype libraries... " >&6; } 58391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58392 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58393 fi 58394 58395 if test "x$FOUND_FREETYPE" != xyes; then 58396 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 58397 58398 windows_path="$FREETYPE_BASE_DIR" 58399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58400 unix_path=`$CYGPATH -u "$windows_path"` 58401 FREETYPE_BASE_DIR="$unix_path" 58402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58404 FREETYPE_BASE_DIR="$unix_path" 58405 fi 58406 58407 58408 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58409 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 58410 METHOD="well-known location" 58411 58412 # Let's start with an optimistic view of the world :-) 58413 FOUND_FREETYPE=yes 58414 58415 # First look for the canonical freetype main include file ft2build.h. 58416 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58417 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58418 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58419 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58420 # Fail. 58421 FOUND_FREETYPE=no 58422 fi 58423 fi 58424 58425 if test "x$FOUND_FREETYPE" = xyes; then 58426 # Include file found, let's continue the sanity check. 58427 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58428 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58429 58430 # Reset to default value 58431 FREETYPE_BASE_NAME=freetype 58432 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58433 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58434 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58435 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58436 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58437 # for the .6 version explicitly. 58438 FREETYPE_BASE_NAME=freetype.6 58439 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58440 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58441 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58442 else 58443 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58444 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58445 FOUND_FREETYPE=no 58446 fi 58447 else 58448 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58449 # On Windows, we will need both .lib and .dll file. 58450 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58451 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58452 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58453 FOUND_FREETYPE=no 58454 fi 58455 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58456 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58457 # Found lib in isa dir, use that instead. 58458 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58459 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58460 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58461 fi 58462 fi 58463 fi 58464 58465 if test "x$FOUND_FREETYPE" = xyes; then 58466 58467 # Only process if variable expands to non-empty 58468 58469 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58470 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58471 58472 # Input might be given as Windows format, start by converting to 58473 # unix format. 58474 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58475 new_path=`$CYGPATH -u "$path"` 58476 58477 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58478 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58479 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58480 # "foo.exe" is OK but "foo" is an error. 58481 # 58482 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58483 # It is also a way to make sure we got the proper file name for the real test later on. 58484 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58485 if test "x$test_shortpath" = x; then 58486 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58487 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58488 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58489 fi 58490 58491 # Call helper function which possibly converts this using DOS-style short mode. 58492 # If so, the updated path is stored in $new_path. 58493 58494 input_path="$new_path" 58495 # Check if we need to convert this using DOS-style short mode. If the path 58496 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58497 # take no chances and rewrite it. 58498 # Note: m4 eats our [], so we need to use [ and ] instead. 58499 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58500 if test "x$has_forbidden_chars" != x; then 58501 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58502 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58503 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58504 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58505 # Going to short mode and back again did indeed matter. Since short mode is 58506 # case insensitive, let's make it lowercase to improve readability. 58507 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58508 # Now convert it back to Unix-style (cygpath) 58509 input_path=`$CYGPATH -u "$shortmode_path"` 58510 new_path="$input_path" 58511 fi 58512 fi 58513 58514 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58515 if test "x$test_cygdrive_prefix" = x; then 58516 # As a simple fix, exclude /usr/bin since it's not a real path. 58517 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58518 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58519 # a path prefixed by /cygdrive for fixpath to work. 58520 new_path="$CYGWIN_ROOT_PATH$input_path" 58521 fi 58522 fi 58523 58524 58525 if test "x$path" != "x$new_path"; then 58526 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58527 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58528 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58529 fi 58530 58531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58532 58533 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58534 has_colon=`$ECHO $path | $GREP ^.:` 58535 new_path="$path" 58536 if test "x$has_colon" = x; then 58537 # Not in mixed or Windows style, start by that. 58538 new_path=`cmd //c echo $path` 58539 fi 58540 58541 58542 input_path="$new_path" 58543 # Check if we need to convert this using DOS-style short mode. If the path 58544 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58545 # take no chances and rewrite it. 58546 # Note: m4 eats our [], so we need to use [ and ] instead. 58547 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58548 if test "x$has_forbidden_chars" != x; then 58549 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58550 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58551 fi 58552 58553 58554 windows_path="$new_path" 58555 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58556 unix_path=`$CYGPATH -u "$windows_path"` 58557 new_path="$unix_path" 58558 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58559 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58560 new_path="$unix_path" 58561 fi 58562 58563 if test "x$path" != "x$new_path"; then 58564 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58565 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58566 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58567 fi 58568 58569 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58570 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58571 58572 else 58573 # We're on a unix platform. Hooray! :) 58574 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58575 has_space=`$ECHO "$path" | $GREP " "` 58576 if test "x$has_space" != x; then 58577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58578 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58579 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58580 fi 58581 58582 # Use eval to expand a potential ~ 58583 eval path="$path" 58584 if test ! -f "$path" && test ! -d "$path"; then 58585 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58586 fi 58587 58588 if test -d "$path"; then 58589 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58590 else 58591 dir="`$DIRNAME "$path"`" 58592 base="`$BASENAME "$path"`" 58593 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58594 fi 58595 fi 58596 fi 58597 58598 58599 # Only process if variable expands to non-empty 58600 58601 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58602 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58603 58604 # Input might be given as Windows format, start by converting to 58605 # unix format. 58606 path="$POTENTIAL_FREETYPE_LIB_PATH" 58607 new_path=`$CYGPATH -u "$path"` 58608 58609 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58610 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58611 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58612 # "foo.exe" is OK but "foo" is an error. 58613 # 58614 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58615 # It is also a way to make sure we got the proper file name for the real test later on. 58616 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58617 if test "x$test_shortpath" = x; then 58618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58619 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58620 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58621 fi 58622 58623 # Call helper function which possibly converts this using DOS-style short mode. 58624 # If so, the updated path is stored in $new_path. 58625 58626 input_path="$new_path" 58627 # Check if we need to convert this using DOS-style short mode. If the path 58628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58629 # take no chances and rewrite it. 58630 # Note: m4 eats our [], so we need to use [ and ] instead. 58631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58632 if test "x$has_forbidden_chars" != x; then 58633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58634 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58635 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58636 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58637 # Going to short mode and back again did indeed matter. Since short mode is 58638 # case insensitive, let's make it lowercase to improve readability. 58639 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58640 # Now convert it back to Unix-style (cygpath) 58641 input_path=`$CYGPATH -u "$shortmode_path"` 58642 new_path="$input_path" 58643 fi 58644 fi 58645 58646 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58647 if test "x$test_cygdrive_prefix" = x; then 58648 # As a simple fix, exclude /usr/bin since it's not a real path. 58649 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58650 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58651 # a path prefixed by /cygdrive for fixpath to work. 58652 new_path="$CYGWIN_ROOT_PATH$input_path" 58653 fi 58654 fi 58655 58656 58657 if test "x$path" != "x$new_path"; then 58658 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58659 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58660 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58661 fi 58662 58663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58664 58665 path="$POTENTIAL_FREETYPE_LIB_PATH" 58666 has_colon=`$ECHO $path | $GREP ^.:` 58667 new_path="$path" 58668 if test "x$has_colon" = x; then 58669 # Not in mixed or Windows style, start by that. 58670 new_path=`cmd //c echo $path` 58671 fi 58672 58673 58674 input_path="$new_path" 58675 # Check if we need to convert this using DOS-style short mode. If the path 58676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58677 # take no chances and rewrite it. 58678 # Note: m4 eats our [], so we need to use [ and ] instead. 58679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58680 if test "x$has_forbidden_chars" != x; then 58681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58682 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58683 fi 58684 58685 58686 windows_path="$new_path" 58687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58688 unix_path=`$CYGPATH -u "$windows_path"` 58689 new_path="$unix_path" 58690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58692 new_path="$unix_path" 58693 fi 58694 58695 if test "x$path" != "x$new_path"; then 58696 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58697 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58698 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58699 fi 58700 58701 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58702 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58703 58704 else 58705 # We're on a unix platform. Hooray! :) 58706 path="$POTENTIAL_FREETYPE_LIB_PATH" 58707 has_space=`$ECHO "$path" | $GREP " "` 58708 if test "x$has_space" != x; then 58709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58710 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58711 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58712 fi 58713 58714 # Use eval to expand a potential ~ 58715 eval path="$path" 58716 if test ! -f "$path" && test ! -d "$path"; then 58717 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58718 fi 58719 58720 if test -d "$path"; then 58721 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58722 else 58723 dir="`$DIRNAME "$path"`" 58724 base="`$BASENAME "$path"`" 58725 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58726 fi 58727 fi 58728 fi 58729 58730 58731 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58733 $as_echo_n "checking for freetype includes... " >&6; } 58734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58735 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58736 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58738 $as_echo_n "checking for freetype libraries... " >&6; } 58739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58740 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58741 fi 58742 58743 fi 58744 if test "x$FOUND_FREETYPE" != xyes; then 58745 FREETYPE_BASE_DIR="$HOME/freetype" 58746 58747 windows_path="$FREETYPE_BASE_DIR" 58748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58749 unix_path=`$CYGPATH -u "$windows_path"` 58750 FREETYPE_BASE_DIR="$unix_path" 58751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58752 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58753 FREETYPE_BASE_DIR="$unix_path" 58754 fi 58755 58756 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58757 58758 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58759 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 58760 METHOD="well-known location" 58761 58762 # Let's start with an optimistic view of the world :-) 58763 FOUND_FREETYPE=yes 58764 58765 # First look for the canonical freetype main include file ft2build.h. 58766 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58767 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58768 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58769 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58770 # Fail. 58771 FOUND_FREETYPE=no 58772 fi 58773 fi 58774 58775 if test "x$FOUND_FREETYPE" = xyes; then 58776 # Include file found, let's continue the sanity check. 58777 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58778 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58779 58780 # Reset to default value 58781 FREETYPE_BASE_NAME=freetype 58782 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58783 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58784 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58785 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58786 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58787 # for the .6 version explicitly. 58788 FREETYPE_BASE_NAME=freetype.6 58789 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58790 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58791 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58792 else 58793 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58794 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58795 FOUND_FREETYPE=no 58796 fi 58797 else 58798 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58799 # On Windows, we will need both .lib and .dll file. 58800 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58801 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58802 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58803 FOUND_FREETYPE=no 58804 fi 58805 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58806 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58807 # Found lib in isa dir, use that instead. 58808 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58810 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58811 fi 58812 fi 58813 fi 58814 58815 if test "x$FOUND_FREETYPE" = xyes; then 58816 58817 # Only process if variable expands to non-empty 58818 58819 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58821 58822 # Input might be given as Windows format, start by converting to 58823 # unix format. 58824 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58825 new_path=`$CYGPATH -u "$path"` 58826 58827 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58828 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58829 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58830 # "foo.exe" is OK but "foo" is an error. 58831 # 58832 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58833 # It is also a way to make sure we got the proper file name for the real test later on. 58834 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58835 if test "x$test_shortpath" = x; then 58836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58837 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58838 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58839 fi 58840 58841 # Call helper function which possibly converts this using DOS-style short mode. 58842 # If so, the updated path is stored in $new_path. 58843 58844 input_path="$new_path" 58845 # Check if we need to convert this using DOS-style short mode. If the path 58846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58847 # take no chances and rewrite it. 58848 # Note: m4 eats our [], so we need to use [ and ] instead. 58849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58850 if test "x$has_forbidden_chars" != x; then 58851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58852 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58853 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58854 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58855 # Going to short mode and back again did indeed matter. Since short mode is 58856 # case insensitive, let's make it lowercase to improve readability. 58857 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58858 # Now convert it back to Unix-style (cygpath) 58859 input_path=`$CYGPATH -u "$shortmode_path"` 58860 new_path="$input_path" 58861 fi 58862 fi 58863 58864 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58865 if test "x$test_cygdrive_prefix" = x; then 58866 # As a simple fix, exclude /usr/bin since it's not a real path. 58867 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58868 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58869 # a path prefixed by /cygdrive for fixpath to work. 58870 new_path="$CYGWIN_ROOT_PATH$input_path" 58871 fi 58872 fi 58873 58874 58875 if test "x$path" != "x$new_path"; then 58876 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58877 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58878 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58879 fi 58880 58881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58882 58883 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58884 has_colon=`$ECHO $path | $GREP ^.:` 58885 new_path="$path" 58886 if test "x$has_colon" = x; then 58887 # Not in mixed or Windows style, start by that. 58888 new_path=`cmd //c echo $path` 58889 fi 58890 58891 58892 input_path="$new_path" 58893 # Check if we need to convert this using DOS-style short mode. If the path 58894 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58895 # take no chances and rewrite it. 58896 # Note: m4 eats our [], so we need to use [ and ] instead. 58897 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58898 if test "x$has_forbidden_chars" != x; then 58899 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58900 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58901 fi 58902 58903 58904 windows_path="$new_path" 58905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58906 unix_path=`$CYGPATH -u "$windows_path"` 58907 new_path="$unix_path" 58908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58910 new_path="$unix_path" 58911 fi 58912 58913 if test "x$path" != "x$new_path"; then 58914 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58915 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58916 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58917 fi 58918 58919 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58920 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58921 58922 else 58923 # We're on a unix platform. Hooray! :) 58924 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58925 has_space=`$ECHO "$path" | $GREP " "` 58926 if test "x$has_space" != x; then 58927 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58928 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58929 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58930 fi 58931 58932 # Use eval to expand a potential ~ 58933 eval path="$path" 58934 if test ! -f "$path" && test ! -d "$path"; then 58935 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58936 fi 58937 58938 if test -d "$path"; then 58939 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58940 else 58941 dir="`$DIRNAME "$path"`" 58942 base="`$BASENAME "$path"`" 58943 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58944 fi 58945 fi 58946 fi 58947 58948 58949 # Only process if variable expands to non-empty 58950 58951 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58953 58954 # Input might be given as Windows format, start by converting to 58955 # unix format. 58956 path="$POTENTIAL_FREETYPE_LIB_PATH" 58957 new_path=`$CYGPATH -u "$path"` 58958 58959 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58960 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58961 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58962 # "foo.exe" is OK but "foo" is an error. 58963 # 58964 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58965 # It is also a way to make sure we got the proper file name for the real test later on. 58966 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58967 if test "x$test_shortpath" = x; then 58968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58969 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58970 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58971 fi 58972 58973 # Call helper function which possibly converts this using DOS-style short mode. 58974 # If so, the updated path is stored in $new_path. 58975 58976 input_path="$new_path" 58977 # Check if we need to convert this using DOS-style short mode. If the path 58978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58979 # take no chances and rewrite it. 58980 # Note: m4 eats our [], so we need to use [ and ] instead. 58981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58982 if test "x$has_forbidden_chars" != x; then 58983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58984 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58985 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58986 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58987 # Going to short mode and back again did indeed matter. Since short mode is 58988 # case insensitive, let's make it lowercase to improve readability. 58989 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58990 # Now convert it back to Unix-style (cygpath) 58991 input_path=`$CYGPATH -u "$shortmode_path"` 58992 new_path="$input_path" 58993 fi 58994 fi 58995 58996 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58997 if test "x$test_cygdrive_prefix" = x; then 58998 # As a simple fix, exclude /usr/bin since it's not a real path. 58999 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59000 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59001 # a path prefixed by /cygdrive for fixpath to work. 59002 new_path="$CYGWIN_ROOT_PATH$input_path" 59003 fi 59004 fi 59005 59006 59007 if test "x$path" != "x$new_path"; then 59008 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59009 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59010 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59011 fi 59012 59013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59014 59015 path="$POTENTIAL_FREETYPE_LIB_PATH" 59016 has_colon=`$ECHO $path | $GREP ^.:` 59017 new_path="$path" 59018 if test "x$has_colon" = x; then 59019 # Not in mixed or Windows style, start by that. 59020 new_path=`cmd //c echo $path` 59021 fi 59022 59023 59024 input_path="$new_path" 59025 # Check if we need to convert this using DOS-style short mode. If the path 59026 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59027 # take no chances and rewrite it. 59028 # Note: m4 eats our [], so we need to use [ and ] instead. 59029 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59030 if test "x$has_forbidden_chars" != x; then 59031 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59032 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59033 fi 59034 59035 59036 windows_path="$new_path" 59037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59038 unix_path=`$CYGPATH -u "$windows_path"` 59039 new_path="$unix_path" 59040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59041 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59042 new_path="$unix_path" 59043 fi 59044 59045 if test "x$path" != "x$new_path"; then 59046 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59047 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59048 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59049 fi 59050 59051 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59052 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59053 59054 else 59055 # We're on a unix platform. Hooray! :) 59056 path="$POTENTIAL_FREETYPE_LIB_PATH" 59057 has_space=`$ECHO "$path" | $GREP " "` 59058 if test "x$has_space" != x; then 59059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59060 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59061 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59062 fi 59063 59064 # Use eval to expand a potential ~ 59065 eval path="$path" 59066 if test ! -f "$path" && test ! -d "$path"; then 59067 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59068 fi 59069 59070 if test -d "$path"; then 59071 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59072 else 59073 dir="`$DIRNAME "$path"`" 59074 base="`$BASENAME "$path"`" 59075 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59076 fi 59077 fi 59078 fi 59079 59080 59081 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59083 $as_echo_n "checking for freetype includes... " >&6; } 59084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59085 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59086 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59088 $as_echo_n "checking for freetype libraries... " >&6; } 59089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59090 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59091 fi 59092 59093 else 59094 59095 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59096 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 59097 METHOD="well-known location" 59098 59099 # Let's start with an optimistic view of the world :-) 59100 FOUND_FREETYPE=yes 59101 59102 # First look for the canonical freetype main include file ft2build.h. 59103 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59104 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59105 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59106 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59107 # Fail. 59108 FOUND_FREETYPE=no 59109 fi 59110 fi 59111 59112 if test "x$FOUND_FREETYPE" = xyes; then 59113 # Include file found, let's continue the sanity check. 59114 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59115 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59116 59117 # Reset to default value 59118 FREETYPE_BASE_NAME=freetype 59119 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59120 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59121 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59122 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59123 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59124 # for the .6 version explicitly. 59125 FREETYPE_BASE_NAME=freetype.6 59126 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59127 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59128 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59129 else 59130 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59131 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59132 FOUND_FREETYPE=no 59133 fi 59134 else 59135 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59136 # On Windows, we will need both .lib and .dll file. 59137 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59138 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59139 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59140 FOUND_FREETYPE=no 59141 fi 59142 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59143 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59144 # Found lib in isa dir, use that instead. 59145 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59146 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59147 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59148 fi 59149 fi 59150 fi 59151 59152 if test "x$FOUND_FREETYPE" = xyes; then 59153 59154 # Only process if variable expands to non-empty 59155 59156 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59158 59159 # Input might be given as Windows format, start by converting to 59160 # unix format. 59161 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59162 new_path=`$CYGPATH -u "$path"` 59163 59164 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59165 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59166 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59167 # "foo.exe" is OK but "foo" is an error. 59168 # 59169 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59170 # It is also a way to make sure we got the proper file name for the real test later on. 59171 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59172 if test "x$test_shortpath" = x; then 59173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59174 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59175 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59176 fi 59177 59178 # Call helper function which possibly converts this using DOS-style short mode. 59179 # If so, the updated path is stored in $new_path. 59180 59181 input_path="$new_path" 59182 # Check if we need to convert this using DOS-style short mode. If the path 59183 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59184 # take no chances and rewrite it. 59185 # Note: m4 eats our [], so we need to use [ and ] instead. 59186 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59187 if test "x$has_forbidden_chars" != x; then 59188 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59189 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59190 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59191 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59192 # Going to short mode and back again did indeed matter. Since short mode is 59193 # case insensitive, let's make it lowercase to improve readability. 59194 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59195 # Now convert it back to Unix-style (cygpath) 59196 input_path=`$CYGPATH -u "$shortmode_path"` 59197 new_path="$input_path" 59198 fi 59199 fi 59200 59201 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59202 if test "x$test_cygdrive_prefix" = x; then 59203 # As a simple fix, exclude /usr/bin since it's not a real path. 59204 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59205 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59206 # a path prefixed by /cygdrive for fixpath to work. 59207 new_path="$CYGWIN_ROOT_PATH$input_path" 59208 fi 59209 fi 59210 59211 59212 if test "x$path" != "x$new_path"; then 59213 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59214 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59215 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59216 fi 59217 59218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59219 59220 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59221 has_colon=`$ECHO $path | $GREP ^.:` 59222 new_path="$path" 59223 if test "x$has_colon" = x; then 59224 # Not in mixed or Windows style, start by that. 59225 new_path=`cmd //c echo $path` 59226 fi 59227 59228 59229 input_path="$new_path" 59230 # Check if we need to convert this using DOS-style short mode. If the path 59231 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59232 # take no chances and rewrite it. 59233 # Note: m4 eats our [], so we need to use [ and ] instead. 59234 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59235 if test "x$has_forbidden_chars" != x; then 59236 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59237 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59238 fi 59239 59240 59241 windows_path="$new_path" 59242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59243 unix_path=`$CYGPATH -u "$windows_path"` 59244 new_path="$unix_path" 59245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59246 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59247 new_path="$unix_path" 59248 fi 59249 59250 if test "x$path" != "x$new_path"; then 59251 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59253 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59254 fi 59255 59256 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59257 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59258 59259 else 59260 # We're on a unix platform. Hooray! :) 59261 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59262 has_space=`$ECHO "$path" | $GREP " "` 59263 if test "x$has_space" != x; then 59264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59265 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59266 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59267 fi 59268 59269 # Use eval to expand a potential ~ 59270 eval path="$path" 59271 if test ! -f "$path" && test ! -d "$path"; then 59272 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59273 fi 59274 59275 if test -d "$path"; then 59276 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59277 else 59278 dir="`$DIRNAME "$path"`" 59279 base="`$BASENAME "$path"`" 59280 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59281 fi 59282 fi 59283 fi 59284 59285 59286 # Only process if variable expands to non-empty 59287 59288 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59290 59291 # Input might be given as Windows format, start by converting to 59292 # unix format. 59293 path="$POTENTIAL_FREETYPE_LIB_PATH" 59294 new_path=`$CYGPATH -u "$path"` 59295 59296 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59297 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59298 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59299 # "foo.exe" is OK but "foo" is an error. 59300 # 59301 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59302 # It is also a way to make sure we got the proper file name for the real test later on. 59303 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59304 if test "x$test_shortpath" = x; then 59305 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59306 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59307 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59308 fi 59309 59310 # Call helper function which possibly converts this using DOS-style short mode. 59311 # If so, the updated path is stored in $new_path. 59312 59313 input_path="$new_path" 59314 # Check if we need to convert this using DOS-style short mode. If the path 59315 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59316 # take no chances and rewrite it. 59317 # Note: m4 eats our [], so we need to use [ and ] instead. 59318 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59319 if test "x$has_forbidden_chars" != x; then 59320 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59321 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59322 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59323 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59324 # Going to short mode and back again did indeed matter. Since short mode is 59325 # case insensitive, let's make it lowercase to improve readability. 59326 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59327 # Now convert it back to Unix-style (cygpath) 59328 input_path=`$CYGPATH -u "$shortmode_path"` 59329 new_path="$input_path" 59330 fi 59331 fi 59332 59333 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59334 if test "x$test_cygdrive_prefix" = x; then 59335 # As a simple fix, exclude /usr/bin since it's not a real path. 59336 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59337 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59338 # a path prefixed by /cygdrive for fixpath to work. 59339 new_path="$CYGWIN_ROOT_PATH$input_path" 59340 fi 59341 fi 59342 59343 59344 if test "x$path" != "x$new_path"; then 59345 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59346 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59347 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59348 fi 59349 59350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59351 59352 path="$POTENTIAL_FREETYPE_LIB_PATH" 59353 has_colon=`$ECHO $path | $GREP ^.:` 59354 new_path="$path" 59355 if test "x$has_colon" = x; then 59356 # Not in mixed or Windows style, start by that. 59357 new_path=`cmd //c echo $path` 59358 fi 59359 59360 59361 input_path="$new_path" 59362 # Check if we need to convert this using DOS-style short mode. If the path 59363 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59364 # take no chances and rewrite it. 59365 # Note: m4 eats our [], so we need to use [ and ] instead. 59366 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59367 if test "x$has_forbidden_chars" != x; then 59368 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59369 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59370 fi 59371 59372 59373 windows_path="$new_path" 59374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59375 unix_path=`$CYGPATH -u "$windows_path"` 59376 new_path="$unix_path" 59377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59378 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59379 new_path="$unix_path" 59380 fi 59381 59382 if test "x$path" != "x$new_path"; then 59383 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59384 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59385 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59386 fi 59387 59388 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59389 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59390 59391 else 59392 # We're on a unix platform. Hooray! :) 59393 path="$POTENTIAL_FREETYPE_LIB_PATH" 59394 has_space=`$ECHO "$path" | $GREP " "` 59395 if test "x$has_space" != x; then 59396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59397 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59398 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59399 fi 59400 59401 # Use eval to expand a potential ~ 59402 eval path="$path" 59403 if test ! -f "$path" && test ! -d "$path"; then 59404 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59405 fi 59406 59407 if test -d "$path"; then 59408 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59409 else 59410 dir="`$DIRNAME "$path"`" 59411 base="`$BASENAME "$path"`" 59412 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59413 fi 59414 fi 59415 fi 59416 59417 59418 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59420 $as_echo_n "checking for freetype includes... " >&6; } 59421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59422 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59423 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59425 $as_echo_n "checking for freetype libraries... " >&6; } 59426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59427 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59428 fi 59429 59430 fi 59431 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 59432 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 59433 # Source is available, as a last resort try to build freetype in default location 59434 59435 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 59436 BUILD_FREETYPE=yes 59437 59438 # Check if the freetype sources are acessible.. 59439 if ! test -d $FREETYPE_SRC_PATH; then 59440 { $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 59441 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59442 BUILD_FREETYPE=no 59443 fi 59444 # ..and contain a vc2010 project file 59445 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59446 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59447 { $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 59448 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59449 BUILD_FREETYPE=no 59450 fi 59451 # Now check if configure found a version of 'msbuild.exe' 59452 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59453 { $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 59454 $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;} 59455 BUILD_FREETYPE=no 59456 fi 59457 59458 # Ready to go.. 59459 if test "x$BUILD_FREETYPE" = xyes; then 59460 # msbuild requires trailing slashes for output directories 59461 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59462 freetype_lib_path_unix="$freetype_lib_path" 59463 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59464 59465 unix_path="$vcxproj_path" 59466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59467 windows_path=`$CYGPATH -m "$unix_path"` 59468 vcxproj_path="$windows_path" 59469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59470 windows_path=`cmd //c echo $unix_path` 59471 vcxproj_path="$windows_path" 59472 fi 59473 59474 59475 unix_path="$freetype_lib_path" 59476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59477 windows_path=`$CYGPATH -m "$unix_path"` 59478 freetype_lib_path="$windows_path" 59479 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59480 windows_path=`cmd //c echo $unix_path` 59481 freetype_lib_path="$windows_path" 59482 fi 59483 59484 59485 unix_path="$freetype_obj_path" 59486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59487 windows_path=`$CYGPATH -m "$unix_path"` 59488 freetype_obj_path="$windows_path" 59489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59490 windows_path=`cmd //c echo $unix_path` 59491 freetype_obj_path="$windows_path" 59492 fi 59493 59494 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59495 freetype_platform=x64 59496 else 59497 freetype_platform=win32 59498 fi 59499 59500 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59501 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59502 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59503 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59504 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59505 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59506 59507 # First we try to build the freetype.dll 59508 $ECHO -e "@echo off\n"\ 59509 "$MSBUILD $vcxproj_path "\ 59510 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59511 "/p:Configuration=\"Release Multithreaded\" "\ 59512 "/p:Platform=$freetype_platform "\ 59513 "/p:ConfigurationType=DynamicLibrary "\ 59514 "/p:TargetName=freetype "\ 59515 "/p:OutDir=\"$freetype_lib_path\" "\ 59516 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59517 cmd /c freetype.bat 59518 59519 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59520 # If that succeeds we also build freetype.lib 59521 $ECHO -e "@echo off\n"\ 59522 "$MSBUILD $vcxproj_path "\ 59523 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59524 "/p:Configuration=\"Release Multithreaded\" "\ 59525 "/p:Platform=$freetype_platform "\ 59526 "/p:ConfigurationType=StaticLibrary "\ 59527 "/p:TargetName=freetype "\ 59528 "/p:OutDir=\"$freetype_lib_path\" "\ 59529 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59530 cmd /c freetype.bat 59531 59532 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59533 # Once we build both, lib and dll, set freetype lib and include path appropriately 59534 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59535 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59536 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59537 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59538 else 59539 BUILD_FREETYPE=no 59540 fi 59541 else 59542 BUILD_FREETYPE=no 59543 fi 59544 fi 59545 59546 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59547 59548 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59549 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59550 METHOD="well-known location" 59551 59552 # Let's start with an optimistic view of the world :-) 59553 FOUND_FREETYPE=yes 59554 59555 # First look for the canonical freetype main include file ft2build.h. 59556 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59557 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59558 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59559 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59560 # Fail. 59561 FOUND_FREETYPE=no 59562 fi 59563 fi 59564 59565 if test "x$FOUND_FREETYPE" = xyes; then 59566 # Include file found, let's continue the sanity check. 59567 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59568 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59569 59570 # Reset to default value 59571 FREETYPE_BASE_NAME=freetype 59572 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59573 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59574 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59575 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59576 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59577 # for the .6 version explicitly. 59578 FREETYPE_BASE_NAME=freetype.6 59579 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59580 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59581 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59582 else 59583 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59584 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59585 FOUND_FREETYPE=no 59586 fi 59587 else 59588 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59589 # On Windows, we will need both .lib and .dll file. 59590 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59591 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59592 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59593 FOUND_FREETYPE=no 59594 fi 59595 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59596 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59597 # Found lib in isa dir, use that instead. 59598 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59600 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59601 fi 59602 fi 59603 fi 59604 59605 if test "x$FOUND_FREETYPE" = xyes; then 59606 59607 # Only process if variable expands to non-empty 59608 59609 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59611 59612 # Input might be given as Windows format, start by converting to 59613 # unix format. 59614 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59615 new_path=`$CYGPATH -u "$path"` 59616 59617 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59618 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59619 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59620 # "foo.exe" is OK but "foo" is an error. 59621 # 59622 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59623 # It is also a way to make sure we got the proper file name for the real test later on. 59624 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59625 if test "x$test_shortpath" = x; then 59626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59627 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59628 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59629 fi 59630 59631 # Call helper function which possibly converts this using DOS-style short mode. 59632 # If so, the updated path is stored in $new_path. 59633 59634 input_path="$new_path" 59635 # Check if we need to convert this using DOS-style short mode. If the path 59636 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59637 # take no chances and rewrite it. 59638 # Note: m4 eats our [], so we need to use [ and ] instead. 59639 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59640 if test "x$has_forbidden_chars" != x; then 59641 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59642 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59643 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59644 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59645 # Going to short mode and back again did indeed matter. Since short mode is 59646 # case insensitive, let's make it lowercase to improve readability. 59647 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59648 # Now convert it back to Unix-style (cygpath) 59649 input_path=`$CYGPATH -u "$shortmode_path"` 59650 new_path="$input_path" 59651 fi 59652 fi 59653 59654 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59655 if test "x$test_cygdrive_prefix" = x; then 59656 # As a simple fix, exclude /usr/bin since it's not a real path. 59657 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59658 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59659 # a path prefixed by /cygdrive for fixpath to work. 59660 new_path="$CYGWIN_ROOT_PATH$input_path" 59661 fi 59662 fi 59663 59664 59665 if test "x$path" != "x$new_path"; then 59666 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59667 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59668 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59669 fi 59670 59671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59672 59673 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59674 has_colon=`$ECHO $path | $GREP ^.:` 59675 new_path="$path" 59676 if test "x$has_colon" = x; then 59677 # Not in mixed or Windows style, start by that. 59678 new_path=`cmd //c echo $path` 59679 fi 59680 59681 59682 input_path="$new_path" 59683 # Check if we need to convert this using DOS-style short mode. If the path 59684 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59685 # take no chances and rewrite it. 59686 # Note: m4 eats our [], so we need to use [ and ] instead. 59687 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59688 if test "x$has_forbidden_chars" != x; then 59689 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59690 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59691 fi 59692 59693 59694 windows_path="$new_path" 59695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59696 unix_path=`$CYGPATH -u "$windows_path"` 59697 new_path="$unix_path" 59698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59699 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59700 new_path="$unix_path" 59701 fi 59702 59703 if test "x$path" != "x$new_path"; then 59704 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59706 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59707 fi 59708 59709 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59710 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59711 59712 else 59713 # We're on a unix platform. Hooray! :) 59714 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59715 has_space=`$ECHO "$path" | $GREP " "` 59716 if test "x$has_space" != x; then 59717 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59718 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59719 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59720 fi 59721 59722 # Use eval to expand a potential ~ 59723 eval path="$path" 59724 if test ! -f "$path" && test ! -d "$path"; then 59725 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59726 fi 59727 59728 if test -d "$path"; then 59729 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59730 else 59731 dir="`$DIRNAME "$path"`" 59732 base="`$BASENAME "$path"`" 59733 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59734 fi 59735 fi 59736 fi 59737 59738 59739 # Only process if variable expands to non-empty 59740 59741 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59743 59744 # Input might be given as Windows format, start by converting to 59745 # unix format. 59746 path="$POTENTIAL_FREETYPE_LIB_PATH" 59747 new_path=`$CYGPATH -u "$path"` 59748 59749 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59750 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59751 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59752 # "foo.exe" is OK but "foo" is an error. 59753 # 59754 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59755 # It is also a way to make sure we got the proper file name for the real test later on. 59756 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59757 if test "x$test_shortpath" = x; then 59758 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59759 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59760 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59761 fi 59762 59763 # Call helper function which possibly converts this using DOS-style short mode. 59764 # If so, the updated path is stored in $new_path. 59765 59766 input_path="$new_path" 59767 # Check if we need to convert this using DOS-style short mode. If the path 59768 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59769 # take no chances and rewrite it. 59770 # Note: m4 eats our [], so we need to use [ and ] instead. 59771 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59772 if test "x$has_forbidden_chars" != x; then 59773 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59774 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59775 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59776 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59777 # Going to short mode and back again did indeed matter. Since short mode is 59778 # case insensitive, let's make it lowercase to improve readability. 59779 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59780 # Now convert it back to Unix-style (cygpath) 59781 input_path=`$CYGPATH -u "$shortmode_path"` 59782 new_path="$input_path" 59783 fi 59784 fi 59785 59786 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59787 if test "x$test_cygdrive_prefix" = x; then 59788 # As a simple fix, exclude /usr/bin since it's not a real path. 59789 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59790 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59791 # a path prefixed by /cygdrive for fixpath to work. 59792 new_path="$CYGWIN_ROOT_PATH$input_path" 59793 fi 59794 fi 59795 59796 59797 if test "x$path" != "x$new_path"; then 59798 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59799 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59800 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59801 fi 59802 59803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59804 59805 path="$POTENTIAL_FREETYPE_LIB_PATH" 59806 has_colon=`$ECHO $path | $GREP ^.:` 59807 new_path="$path" 59808 if test "x$has_colon" = x; then 59809 # Not in mixed or Windows style, start by that. 59810 new_path=`cmd //c echo $path` 59811 fi 59812 59813 59814 input_path="$new_path" 59815 # Check if we need to convert this using DOS-style short mode. If the path 59816 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59817 # take no chances and rewrite it. 59818 # Note: m4 eats our [], so we need to use [ and ] instead. 59819 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59820 if test "x$has_forbidden_chars" != x; then 59821 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59822 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59823 fi 59824 59825 59826 windows_path="$new_path" 59827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59828 unix_path=`$CYGPATH -u "$windows_path"` 59829 new_path="$unix_path" 59830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59831 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59832 new_path="$unix_path" 59833 fi 59834 59835 if test "x$path" != "x$new_path"; then 59836 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59838 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59839 fi 59840 59841 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59842 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59843 59844 else 59845 # We're on a unix platform. Hooray! :) 59846 path="$POTENTIAL_FREETYPE_LIB_PATH" 59847 has_space=`$ECHO "$path" | $GREP " "` 59848 if test "x$has_space" != x; then 59849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59850 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59851 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59852 fi 59853 59854 # Use eval to expand a potential ~ 59855 eval path="$path" 59856 if test ! -f "$path" && test ! -d "$path"; then 59857 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59858 fi 59859 59860 if test -d "$path"; then 59861 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59862 else 59863 dir="`$DIRNAME "$path"`" 59864 base="`$BASENAME "$path"`" 59865 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59866 fi 59867 fi 59868 fi 59869 59870 59871 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59873 $as_echo_n "checking for freetype includes... " >&6; } 59874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59875 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59876 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59878 $as_echo_n "checking for freetype libraries... " >&6; } 59879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59880 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59881 fi 59882 59883 else 59884 59885 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59886 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 59887 METHOD="well-known location" 59888 59889 # Let's start with an optimistic view of the world :-) 59890 FOUND_FREETYPE=yes 59891 59892 # First look for the canonical freetype main include file ft2build.h. 59893 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59894 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59895 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59896 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59897 # Fail. 59898 FOUND_FREETYPE=no 59899 fi 59900 fi 59901 59902 if test "x$FOUND_FREETYPE" = xyes; then 59903 # Include file found, let's continue the sanity check. 59904 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59905 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59906 59907 # Reset to default value 59908 FREETYPE_BASE_NAME=freetype 59909 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59910 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59911 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59912 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59913 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59914 # for the .6 version explicitly. 59915 FREETYPE_BASE_NAME=freetype.6 59916 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59917 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59918 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59919 else 59920 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59921 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59922 FOUND_FREETYPE=no 59923 fi 59924 else 59925 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59926 # On Windows, we will need both .lib and .dll file. 59927 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59928 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59929 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59930 FOUND_FREETYPE=no 59931 fi 59932 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59933 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59934 # Found lib in isa dir, use that instead. 59935 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59937 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59938 fi 59939 fi 59940 fi 59941 59942 if test "x$FOUND_FREETYPE" = xyes; then 59943 59944 # Only process if variable expands to non-empty 59945 59946 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59947 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59948 59949 # Input might be given as Windows format, start by converting to 59950 # unix format. 59951 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59952 new_path=`$CYGPATH -u "$path"` 59953 59954 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59955 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59956 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59957 # "foo.exe" is OK but "foo" is an error. 59958 # 59959 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59960 # It is also a way to make sure we got the proper file name for the real test later on. 59961 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59962 if test "x$test_shortpath" = x; then 59963 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59964 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59965 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59966 fi 59967 59968 # Call helper function which possibly converts this using DOS-style short mode. 59969 # If so, the updated path is stored in $new_path. 59970 59971 input_path="$new_path" 59972 # Check if we need to convert this using DOS-style short mode. If the path 59973 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59974 # take no chances and rewrite it. 59975 # Note: m4 eats our [], so we need to use [ and ] instead. 59976 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59977 if test "x$has_forbidden_chars" != x; then 59978 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59979 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59980 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59981 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59982 # Going to short mode and back again did indeed matter. Since short mode is 59983 # case insensitive, let's make it lowercase to improve readability. 59984 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59985 # Now convert it back to Unix-style (cygpath) 59986 input_path=`$CYGPATH -u "$shortmode_path"` 59987 new_path="$input_path" 59988 fi 59989 fi 59990 59991 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59992 if test "x$test_cygdrive_prefix" = x; then 59993 # As a simple fix, exclude /usr/bin since it's not a real path. 59994 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59995 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59996 # a path prefixed by /cygdrive for fixpath to work. 59997 new_path="$CYGWIN_ROOT_PATH$input_path" 59998 fi 59999 fi 60000 60001 60002 if test "x$path" != "x$new_path"; then 60003 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60004 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60005 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60006 fi 60007 60008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60009 60010 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60011 has_colon=`$ECHO $path | $GREP ^.:` 60012 new_path="$path" 60013 if test "x$has_colon" = x; then 60014 # Not in mixed or Windows style, start by that. 60015 new_path=`cmd //c echo $path` 60016 fi 60017 60018 60019 input_path="$new_path" 60020 # Check if we need to convert this using DOS-style short mode. If the path 60021 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60022 # take no chances and rewrite it. 60023 # Note: m4 eats our [], so we need to use [ and ] instead. 60024 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60025 if test "x$has_forbidden_chars" != x; then 60026 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60027 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60028 fi 60029 60030 60031 windows_path="$new_path" 60032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60033 unix_path=`$CYGPATH -u "$windows_path"` 60034 new_path="$unix_path" 60035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60036 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60037 new_path="$unix_path" 60038 fi 60039 60040 if test "x$path" != "x$new_path"; then 60041 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60042 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60043 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60044 fi 60045 60046 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60047 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60048 60049 else 60050 # We're on a unix platform. Hooray! :) 60051 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60052 has_space=`$ECHO "$path" | $GREP " "` 60053 if test "x$has_space" != x; then 60054 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60055 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60056 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60057 fi 60058 60059 # Use eval to expand a potential ~ 60060 eval path="$path" 60061 if test ! -f "$path" && test ! -d "$path"; then 60062 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60063 fi 60064 60065 if test -d "$path"; then 60066 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60067 else 60068 dir="`$DIRNAME "$path"`" 60069 base="`$BASENAME "$path"`" 60070 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60071 fi 60072 fi 60073 fi 60074 60075 60076 # Only process if variable expands to non-empty 60077 60078 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60080 60081 # Input might be given as Windows format, start by converting to 60082 # unix format. 60083 path="$POTENTIAL_FREETYPE_LIB_PATH" 60084 new_path=`$CYGPATH -u "$path"` 60085 60086 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60087 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60088 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60089 # "foo.exe" is OK but "foo" is an error. 60090 # 60091 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60092 # It is also a way to make sure we got the proper file name for the real test later on. 60093 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60094 if test "x$test_shortpath" = x; then 60095 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60096 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60097 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60098 fi 60099 60100 # Call helper function which possibly converts this using DOS-style short mode. 60101 # If so, the updated path is stored in $new_path. 60102 60103 input_path="$new_path" 60104 # Check if we need to convert this using DOS-style short mode. If the path 60105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60106 # take no chances and rewrite it. 60107 # Note: m4 eats our [], so we need to use [ and ] instead. 60108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60109 if test "x$has_forbidden_chars" != x; then 60110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60111 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60112 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60113 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60114 # Going to short mode and back again did indeed matter. Since short mode is 60115 # case insensitive, let's make it lowercase to improve readability. 60116 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60117 # Now convert it back to Unix-style (cygpath) 60118 input_path=`$CYGPATH -u "$shortmode_path"` 60119 new_path="$input_path" 60120 fi 60121 fi 60122 60123 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60124 if test "x$test_cygdrive_prefix" = x; then 60125 # As a simple fix, exclude /usr/bin since it's not a real path. 60126 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60127 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60128 # a path prefixed by /cygdrive for fixpath to work. 60129 new_path="$CYGWIN_ROOT_PATH$input_path" 60130 fi 60131 fi 60132 60133 60134 if test "x$path" != "x$new_path"; then 60135 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60136 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60137 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60138 fi 60139 60140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60141 60142 path="$POTENTIAL_FREETYPE_LIB_PATH" 60143 has_colon=`$ECHO $path | $GREP ^.:` 60144 new_path="$path" 60145 if test "x$has_colon" = x; then 60146 # Not in mixed or Windows style, start by that. 60147 new_path=`cmd //c echo $path` 60148 fi 60149 60150 60151 input_path="$new_path" 60152 # Check if we need to convert this using DOS-style short mode. If the path 60153 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60154 # take no chances and rewrite it. 60155 # Note: m4 eats our [], so we need to use [ and ] instead. 60156 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60157 if test "x$has_forbidden_chars" != x; then 60158 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60159 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60160 fi 60161 60162 60163 windows_path="$new_path" 60164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60165 unix_path=`$CYGPATH -u "$windows_path"` 60166 new_path="$unix_path" 60167 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60168 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60169 new_path="$unix_path" 60170 fi 60171 60172 if test "x$path" != "x$new_path"; then 60173 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60174 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60175 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60176 fi 60177 60178 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60179 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60180 60181 else 60182 # We're on a unix platform. Hooray! :) 60183 path="$POTENTIAL_FREETYPE_LIB_PATH" 60184 has_space=`$ECHO "$path" | $GREP " "` 60185 if test "x$has_space" != x; then 60186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60187 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60188 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60189 fi 60190 60191 # Use eval to expand a potential ~ 60192 eval path="$path" 60193 if test ! -f "$path" && test ! -d "$path"; then 60194 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60195 fi 60196 60197 if test -d "$path"; then 60198 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60199 else 60200 dir="`$DIRNAME "$path"`" 60201 base="`$BASENAME "$path"`" 60202 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60203 fi 60204 fi 60205 fi 60206 60207 60208 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60210 $as_echo_n "checking for freetype includes... " >&6; } 60211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60212 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60213 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60215 $as_echo_n "checking for freetype libraries... " >&6; } 60216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60217 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60218 fi 60219 60220 fi 60221 fi 60222 fi 60223 else 60224 FREETYPE_BASE_DIR="$SYSROOT/usr" 60225 60226 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60227 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60228 METHOD="well-known location" 60229 60230 # Let's start with an optimistic view of the world :-) 60231 FOUND_FREETYPE=yes 60232 60233 # First look for the canonical freetype main include file ft2build.h. 60234 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60235 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60236 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60237 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60238 # Fail. 60239 FOUND_FREETYPE=no 60240 fi 60241 fi 60242 60243 if test "x$FOUND_FREETYPE" = xyes; then 60244 # Include file found, let's continue the sanity check. 60245 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60246 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60247 60248 # Reset to default value 60249 FREETYPE_BASE_NAME=freetype 60250 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60251 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60252 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60253 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60254 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60255 # for the .6 version explicitly. 60256 FREETYPE_BASE_NAME=freetype.6 60257 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60258 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60259 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60260 else 60261 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60262 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60263 FOUND_FREETYPE=no 60264 fi 60265 else 60266 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60267 # On Windows, we will need both .lib and .dll file. 60268 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60269 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60270 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60271 FOUND_FREETYPE=no 60272 fi 60273 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60274 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60275 # Found lib in isa dir, use that instead. 60276 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60278 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60279 fi 60280 fi 60281 fi 60282 60283 if test "x$FOUND_FREETYPE" = xyes; then 60284 60285 # Only process if variable expands to non-empty 60286 60287 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60289 60290 # Input might be given as Windows format, start by converting to 60291 # unix format. 60292 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60293 new_path=`$CYGPATH -u "$path"` 60294 60295 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60296 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60297 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60298 # "foo.exe" is OK but "foo" is an error. 60299 # 60300 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60301 # It is also a way to make sure we got the proper file name for the real test later on. 60302 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60303 if test "x$test_shortpath" = x; then 60304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60305 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60306 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60307 fi 60308 60309 # Call helper function which possibly converts this using DOS-style short mode. 60310 # If so, the updated path is stored in $new_path. 60311 60312 input_path="$new_path" 60313 # Check if we need to convert this using DOS-style short mode. If the path 60314 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60315 # take no chances and rewrite it. 60316 # Note: m4 eats our [], so we need to use [ and ] instead. 60317 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60318 if test "x$has_forbidden_chars" != x; then 60319 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60320 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60321 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60322 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60323 # Going to short mode and back again did indeed matter. Since short mode is 60324 # case insensitive, let's make it lowercase to improve readability. 60325 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60326 # Now convert it back to Unix-style (cygpath) 60327 input_path=`$CYGPATH -u "$shortmode_path"` 60328 new_path="$input_path" 60329 fi 60330 fi 60331 60332 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60333 if test "x$test_cygdrive_prefix" = x; then 60334 # As a simple fix, exclude /usr/bin since it's not a real path. 60335 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60336 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60337 # a path prefixed by /cygdrive for fixpath to work. 60338 new_path="$CYGWIN_ROOT_PATH$input_path" 60339 fi 60340 fi 60341 60342 60343 if test "x$path" != "x$new_path"; then 60344 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60345 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60346 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60347 fi 60348 60349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60350 60351 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60352 has_colon=`$ECHO $path | $GREP ^.:` 60353 new_path="$path" 60354 if test "x$has_colon" = x; then 60355 # Not in mixed or Windows style, start by that. 60356 new_path=`cmd //c echo $path` 60357 fi 60358 60359 60360 input_path="$new_path" 60361 # Check if we need to convert this using DOS-style short mode. If the path 60362 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60363 # take no chances and rewrite it. 60364 # Note: m4 eats our [], so we need to use [ and ] instead. 60365 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60366 if test "x$has_forbidden_chars" != x; then 60367 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60368 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60369 fi 60370 60371 60372 windows_path="$new_path" 60373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60374 unix_path=`$CYGPATH -u "$windows_path"` 60375 new_path="$unix_path" 60376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60378 new_path="$unix_path" 60379 fi 60380 60381 if test "x$path" != "x$new_path"; then 60382 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60383 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60384 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60385 fi 60386 60387 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60388 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60389 60390 else 60391 # We're on a unix platform. Hooray! :) 60392 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60393 has_space=`$ECHO "$path" | $GREP " "` 60394 if test "x$has_space" != x; then 60395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60396 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60397 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60398 fi 60399 60400 # Use eval to expand a potential ~ 60401 eval path="$path" 60402 if test ! -f "$path" && test ! -d "$path"; then 60403 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60404 fi 60405 60406 if test -d "$path"; then 60407 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60408 else 60409 dir="`$DIRNAME "$path"`" 60410 base="`$BASENAME "$path"`" 60411 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60412 fi 60413 fi 60414 fi 60415 60416 60417 # Only process if variable expands to non-empty 60418 60419 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60421 60422 # Input might be given as Windows format, start by converting to 60423 # unix format. 60424 path="$POTENTIAL_FREETYPE_LIB_PATH" 60425 new_path=`$CYGPATH -u "$path"` 60426 60427 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60428 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60429 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60430 # "foo.exe" is OK but "foo" is an error. 60431 # 60432 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60433 # It is also a way to make sure we got the proper file name for the real test later on. 60434 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60435 if test "x$test_shortpath" = x; then 60436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60437 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60438 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60439 fi 60440 60441 # Call helper function which possibly converts this using DOS-style short mode. 60442 # If so, the updated path is stored in $new_path. 60443 60444 input_path="$new_path" 60445 # Check if we need to convert this using DOS-style short mode. If the path 60446 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60447 # take no chances and rewrite it. 60448 # Note: m4 eats our [], so we need to use [ and ] instead. 60449 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60450 if test "x$has_forbidden_chars" != x; then 60451 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60452 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60453 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60454 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60455 # Going to short mode and back again did indeed matter. Since short mode is 60456 # case insensitive, let's make it lowercase to improve readability. 60457 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60458 # Now convert it back to Unix-style (cygpath) 60459 input_path=`$CYGPATH -u "$shortmode_path"` 60460 new_path="$input_path" 60461 fi 60462 fi 60463 60464 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60465 if test "x$test_cygdrive_prefix" = x; then 60466 # As a simple fix, exclude /usr/bin since it's not a real path. 60467 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60468 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60469 # a path prefixed by /cygdrive for fixpath to work. 60470 new_path="$CYGWIN_ROOT_PATH$input_path" 60471 fi 60472 fi 60473 60474 60475 if test "x$path" != "x$new_path"; then 60476 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60477 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60478 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60479 fi 60480 60481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60482 60483 path="$POTENTIAL_FREETYPE_LIB_PATH" 60484 has_colon=`$ECHO $path | $GREP ^.:` 60485 new_path="$path" 60486 if test "x$has_colon" = x; then 60487 # Not in mixed or Windows style, start by that. 60488 new_path=`cmd //c echo $path` 60489 fi 60490 60491 60492 input_path="$new_path" 60493 # Check if we need to convert this using DOS-style short mode. If the path 60494 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60495 # take no chances and rewrite it. 60496 # Note: m4 eats our [], so we need to use [ and ] instead. 60497 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60498 if test "x$has_forbidden_chars" != x; then 60499 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60500 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60501 fi 60502 60503 60504 windows_path="$new_path" 60505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60506 unix_path=`$CYGPATH -u "$windows_path"` 60507 new_path="$unix_path" 60508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60509 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60510 new_path="$unix_path" 60511 fi 60512 60513 if test "x$path" != "x$new_path"; then 60514 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60515 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60516 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60517 fi 60518 60519 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60520 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60521 60522 else 60523 # We're on a unix platform. Hooray! :) 60524 path="$POTENTIAL_FREETYPE_LIB_PATH" 60525 has_space=`$ECHO "$path" | $GREP " "` 60526 if test "x$has_space" != x; then 60527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60528 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60529 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60530 fi 60531 60532 # Use eval to expand a potential ~ 60533 eval path="$path" 60534 if test ! -f "$path" && test ! -d "$path"; then 60535 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60536 fi 60537 60538 if test -d "$path"; then 60539 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60540 else 60541 dir="`$DIRNAME "$path"`" 60542 base="`$BASENAME "$path"`" 60543 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60544 fi 60545 fi 60546 fi 60547 60548 60549 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60551 $as_echo_n "checking for freetype includes... " >&6; } 60552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60553 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60554 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60556 $as_echo_n "checking for freetype libraries... " >&6; } 60557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60558 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60559 fi 60560 60561 60562 if test "x$FOUND_FREETYPE" != xyes; then 60563 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 60564 60565 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60566 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60567 METHOD="well-known location" 60568 60569 # Let's start with an optimistic view of the world :-) 60570 FOUND_FREETYPE=yes 60571 60572 # First look for the canonical freetype main include file ft2build.h. 60573 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60574 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60575 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60576 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60577 # Fail. 60578 FOUND_FREETYPE=no 60579 fi 60580 fi 60581 60582 if test "x$FOUND_FREETYPE" = xyes; then 60583 # Include file found, let's continue the sanity check. 60584 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60585 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60586 60587 # Reset to default value 60588 FREETYPE_BASE_NAME=freetype 60589 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60590 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60591 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60592 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60593 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60594 # for the .6 version explicitly. 60595 FREETYPE_BASE_NAME=freetype.6 60596 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60597 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60598 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60599 else 60600 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60601 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60602 FOUND_FREETYPE=no 60603 fi 60604 else 60605 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60606 # On Windows, we will need both .lib and .dll file. 60607 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60608 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60609 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60610 FOUND_FREETYPE=no 60611 fi 60612 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60613 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60614 # Found lib in isa dir, use that instead. 60615 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60617 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60618 fi 60619 fi 60620 fi 60621 60622 if test "x$FOUND_FREETYPE" = xyes; then 60623 60624 # Only process if variable expands to non-empty 60625 60626 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60628 60629 # Input might be given as Windows format, start by converting to 60630 # unix format. 60631 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60632 new_path=`$CYGPATH -u "$path"` 60633 60634 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60635 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60636 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60637 # "foo.exe" is OK but "foo" is an error. 60638 # 60639 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60640 # It is also a way to make sure we got the proper file name for the real test later on. 60641 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60642 if test "x$test_shortpath" = x; then 60643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60644 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60645 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60646 fi 60647 60648 # Call helper function which possibly converts this using DOS-style short mode. 60649 # If so, the updated path is stored in $new_path. 60650 60651 input_path="$new_path" 60652 # Check if we need to convert this using DOS-style short mode. If the path 60653 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60654 # take no chances and rewrite it. 60655 # Note: m4 eats our [], so we need to use [ and ] instead. 60656 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60657 if test "x$has_forbidden_chars" != x; then 60658 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60659 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60660 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60661 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60662 # Going to short mode and back again did indeed matter. Since short mode is 60663 # case insensitive, let's make it lowercase to improve readability. 60664 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60665 # Now convert it back to Unix-style (cygpath) 60666 input_path=`$CYGPATH -u "$shortmode_path"` 60667 new_path="$input_path" 60668 fi 60669 fi 60670 60671 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60672 if test "x$test_cygdrive_prefix" = x; then 60673 # As a simple fix, exclude /usr/bin since it's not a real path. 60674 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60675 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60676 # a path prefixed by /cygdrive for fixpath to work. 60677 new_path="$CYGWIN_ROOT_PATH$input_path" 60678 fi 60679 fi 60680 60681 60682 if test "x$path" != "x$new_path"; then 60683 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60684 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60685 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60686 fi 60687 60688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60689 60690 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60691 has_colon=`$ECHO $path | $GREP ^.:` 60692 new_path="$path" 60693 if test "x$has_colon" = x; then 60694 # Not in mixed or Windows style, start by that. 60695 new_path=`cmd //c echo $path` 60696 fi 60697 60698 60699 input_path="$new_path" 60700 # Check if we need to convert this using DOS-style short mode. If the path 60701 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60702 # take no chances and rewrite it. 60703 # Note: m4 eats our [], so we need to use [ and ] instead. 60704 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60705 if test "x$has_forbidden_chars" != x; then 60706 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60707 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60708 fi 60709 60710 60711 windows_path="$new_path" 60712 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60713 unix_path=`$CYGPATH -u "$windows_path"` 60714 new_path="$unix_path" 60715 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60716 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60717 new_path="$unix_path" 60718 fi 60719 60720 if test "x$path" != "x$new_path"; then 60721 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60722 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60723 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60724 fi 60725 60726 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60727 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60728 60729 else 60730 # We're on a unix platform. Hooray! :) 60731 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60732 has_space=`$ECHO "$path" | $GREP " "` 60733 if test "x$has_space" != x; then 60734 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60735 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60736 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60737 fi 60738 60739 # Use eval to expand a potential ~ 60740 eval path="$path" 60741 if test ! -f "$path" && test ! -d "$path"; then 60742 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60743 fi 60744 60745 if test -d "$path"; then 60746 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60747 else 60748 dir="`$DIRNAME "$path"`" 60749 base="`$BASENAME "$path"`" 60750 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60751 fi 60752 fi 60753 fi 60754 60755 60756 # Only process if variable expands to non-empty 60757 60758 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60760 60761 # Input might be given as Windows format, start by converting to 60762 # unix format. 60763 path="$POTENTIAL_FREETYPE_LIB_PATH" 60764 new_path=`$CYGPATH -u "$path"` 60765 60766 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60767 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60768 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60769 # "foo.exe" is OK but "foo" is an error. 60770 # 60771 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60772 # It is also a way to make sure we got the proper file name for the real test later on. 60773 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60774 if test "x$test_shortpath" = x; then 60775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60776 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60777 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60778 fi 60779 60780 # Call helper function which possibly converts this using DOS-style short mode. 60781 # If so, the updated path is stored in $new_path. 60782 60783 input_path="$new_path" 60784 # Check if we need to convert this using DOS-style short mode. If the path 60785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60786 # take no chances and rewrite it. 60787 # Note: m4 eats our [], so we need to use [ and ] instead. 60788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60789 if test "x$has_forbidden_chars" != x; then 60790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60791 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60792 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60793 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60794 # Going to short mode and back again did indeed matter. Since short mode is 60795 # case insensitive, let's make it lowercase to improve readability. 60796 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60797 # Now convert it back to Unix-style (cygpath) 60798 input_path=`$CYGPATH -u "$shortmode_path"` 60799 new_path="$input_path" 60800 fi 60801 fi 60802 60803 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60804 if test "x$test_cygdrive_prefix" = x; then 60805 # As a simple fix, exclude /usr/bin since it's not a real path. 60806 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60807 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60808 # a path prefixed by /cygdrive for fixpath to work. 60809 new_path="$CYGWIN_ROOT_PATH$input_path" 60810 fi 60811 fi 60812 60813 60814 if test "x$path" != "x$new_path"; then 60815 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60816 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60817 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60818 fi 60819 60820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60821 60822 path="$POTENTIAL_FREETYPE_LIB_PATH" 60823 has_colon=`$ECHO $path | $GREP ^.:` 60824 new_path="$path" 60825 if test "x$has_colon" = x; then 60826 # Not in mixed or Windows style, start by that. 60827 new_path=`cmd //c echo $path` 60828 fi 60829 60830 60831 input_path="$new_path" 60832 # Check if we need to convert this using DOS-style short mode. If the path 60833 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60834 # take no chances and rewrite it. 60835 # Note: m4 eats our [], so we need to use [ and ] instead. 60836 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60837 if test "x$has_forbidden_chars" != x; then 60838 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60839 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60840 fi 60841 60842 60843 windows_path="$new_path" 60844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60845 unix_path=`$CYGPATH -u "$windows_path"` 60846 new_path="$unix_path" 60847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60848 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60849 new_path="$unix_path" 60850 fi 60851 60852 if test "x$path" != "x$new_path"; then 60853 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60855 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60856 fi 60857 60858 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60859 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60860 60861 else 60862 # We're on a unix platform. Hooray! :) 60863 path="$POTENTIAL_FREETYPE_LIB_PATH" 60864 has_space=`$ECHO "$path" | $GREP " "` 60865 if test "x$has_space" != x; then 60866 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60867 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60868 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60869 fi 60870 60871 # Use eval to expand a potential ~ 60872 eval path="$path" 60873 if test ! -f "$path" && test ! -d "$path"; then 60874 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60875 fi 60876 60877 if test -d "$path"; then 60878 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60879 else 60880 dir="`$DIRNAME "$path"`" 60881 base="`$BASENAME "$path"`" 60882 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60883 fi 60884 fi 60885 fi 60886 60887 60888 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60890 $as_echo_n "checking for freetype includes... " >&6; } 60891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60892 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60893 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60895 $as_echo_n "checking for freetype libraries... " >&6; } 60896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60897 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60898 fi 60899 60900 fi 60901 if test "x$FOUND_FREETYPE" != xyes; then 60902 FREETYPE_BASE_DIR="$SYSROOT/usr/local" 60903 60904 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60905 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60906 METHOD="well-known location" 60907 60908 # Let's start with an optimistic view of the world :-) 60909 FOUND_FREETYPE=yes 60910 60911 # First look for the canonical freetype main include file ft2build.h. 60912 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60913 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60914 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60915 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60916 # Fail. 60917 FOUND_FREETYPE=no 60918 fi 60919 fi 60920 60921 if test "x$FOUND_FREETYPE" = xyes; then 60922 # Include file found, let's continue the sanity check. 60923 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60924 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60925 60926 # Reset to default value 60927 FREETYPE_BASE_NAME=freetype 60928 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60929 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60930 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60931 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60932 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60933 # for the .6 version explicitly. 60934 FREETYPE_BASE_NAME=freetype.6 60935 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60936 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60937 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60938 else 60939 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60940 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60941 FOUND_FREETYPE=no 60942 fi 60943 else 60944 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60945 # On Windows, we will need both .lib and .dll file. 60946 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60947 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60948 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60949 FOUND_FREETYPE=no 60950 fi 60951 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60952 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60953 # Found lib in isa dir, use that instead. 60954 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60955 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60956 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60957 fi 60958 fi 60959 fi 60960 60961 if test "x$FOUND_FREETYPE" = xyes; then 60962 60963 # Only process if variable expands to non-empty 60964 60965 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60967 60968 # Input might be given as Windows format, start by converting to 60969 # unix format. 60970 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60971 new_path=`$CYGPATH -u "$path"` 60972 60973 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60974 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60975 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60976 # "foo.exe" is OK but "foo" is an error. 60977 # 60978 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60979 # It is also a way to make sure we got the proper file name for the real test later on. 60980 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60981 if test "x$test_shortpath" = x; then 60982 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60983 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60984 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60985 fi 60986 60987 # Call helper function which possibly converts this using DOS-style short mode. 60988 # If so, the updated path is stored in $new_path. 60989 60990 input_path="$new_path" 60991 # Check if we need to convert this using DOS-style short mode. If the path 60992 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60993 # take no chances and rewrite it. 60994 # Note: m4 eats our [], so we need to use [ and ] instead. 60995 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60996 if test "x$has_forbidden_chars" != x; then 60997 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60998 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60999 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61000 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61001 # Going to short mode and back again did indeed matter. Since short mode is 61002 # case insensitive, let's make it lowercase to improve readability. 61003 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61004 # Now convert it back to Unix-style (cygpath) 61005 input_path=`$CYGPATH -u "$shortmode_path"` 61006 new_path="$input_path" 61007 fi 61008 fi 61009 61010 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61011 if test "x$test_cygdrive_prefix" = x; then 61012 # As a simple fix, exclude /usr/bin since it's not a real path. 61013 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61014 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61015 # a path prefixed by /cygdrive for fixpath to work. 61016 new_path="$CYGWIN_ROOT_PATH$input_path" 61017 fi 61018 fi 61019 61020 61021 if test "x$path" != "x$new_path"; then 61022 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61023 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61024 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61025 fi 61026 61027 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61028 61029 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61030 has_colon=`$ECHO $path | $GREP ^.:` 61031 new_path="$path" 61032 if test "x$has_colon" = x; then 61033 # Not in mixed or Windows style, start by that. 61034 new_path=`cmd //c echo $path` 61035 fi 61036 61037 61038 input_path="$new_path" 61039 # Check if we need to convert this using DOS-style short mode. If the path 61040 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61041 # take no chances and rewrite it. 61042 # Note: m4 eats our [], so we need to use [ and ] instead. 61043 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61044 if test "x$has_forbidden_chars" != x; then 61045 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61046 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61047 fi 61048 61049 61050 windows_path="$new_path" 61051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61052 unix_path=`$CYGPATH -u "$windows_path"` 61053 new_path="$unix_path" 61054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61055 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61056 new_path="$unix_path" 61057 fi 61058 61059 if test "x$path" != "x$new_path"; then 61060 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61061 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61062 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61063 fi 61064 61065 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61066 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61067 61068 else 61069 # We're on a unix platform. Hooray! :) 61070 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61071 has_space=`$ECHO "$path" | $GREP " "` 61072 if test "x$has_space" != x; then 61073 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61074 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61075 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61076 fi 61077 61078 # Use eval to expand a potential ~ 61079 eval path="$path" 61080 if test ! -f "$path" && test ! -d "$path"; then 61081 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61082 fi 61083 61084 if test -d "$path"; then 61085 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61086 else 61087 dir="`$DIRNAME "$path"`" 61088 base="`$BASENAME "$path"`" 61089 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61090 fi 61091 fi 61092 fi 61093 61094 61095 # Only process if variable expands to non-empty 61096 61097 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61099 61100 # Input might be given as Windows format, start by converting to 61101 # unix format. 61102 path="$POTENTIAL_FREETYPE_LIB_PATH" 61103 new_path=`$CYGPATH -u "$path"` 61104 61105 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61106 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61107 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61108 # "foo.exe" is OK but "foo" is an error. 61109 # 61110 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61111 # It is also a way to make sure we got the proper file name for the real test later on. 61112 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61113 if test "x$test_shortpath" = x; then 61114 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61115 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61116 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61117 fi 61118 61119 # Call helper function which possibly converts this using DOS-style short mode. 61120 # If so, the updated path is stored in $new_path. 61121 61122 input_path="$new_path" 61123 # Check if we need to convert this using DOS-style short mode. If the path 61124 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61125 # take no chances and rewrite it. 61126 # Note: m4 eats our [], so we need to use [ and ] instead. 61127 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61128 if test "x$has_forbidden_chars" != x; then 61129 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61130 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61131 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61132 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61133 # Going to short mode and back again did indeed matter. Since short mode is 61134 # case insensitive, let's make it lowercase to improve readability. 61135 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61136 # Now convert it back to Unix-style (cygpath) 61137 input_path=`$CYGPATH -u "$shortmode_path"` 61138 new_path="$input_path" 61139 fi 61140 fi 61141 61142 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61143 if test "x$test_cygdrive_prefix" = x; then 61144 # As a simple fix, exclude /usr/bin since it's not a real path. 61145 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61146 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61147 # a path prefixed by /cygdrive for fixpath to work. 61148 new_path="$CYGWIN_ROOT_PATH$input_path" 61149 fi 61150 fi 61151 61152 61153 if test "x$path" != "x$new_path"; then 61154 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61155 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61156 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61157 fi 61158 61159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61160 61161 path="$POTENTIAL_FREETYPE_LIB_PATH" 61162 has_colon=`$ECHO $path | $GREP ^.:` 61163 new_path="$path" 61164 if test "x$has_colon" = x; then 61165 # Not in mixed or Windows style, start by that. 61166 new_path=`cmd //c echo $path` 61167 fi 61168 61169 61170 input_path="$new_path" 61171 # Check if we need to convert this using DOS-style short mode. If the path 61172 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61173 # take no chances and rewrite it. 61174 # Note: m4 eats our [], so we need to use [ and ] instead. 61175 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61176 if test "x$has_forbidden_chars" != x; then 61177 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61178 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61179 fi 61180 61181 61182 windows_path="$new_path" 61183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61184 unix_path=`$CYGPATH -u "$windows_path"` 61185 new_path="$unix_path" 61186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61188 new_path="$unix_path" 61189 fi 61190 61191 if test "x$path" != "x$new_path"; then 61192 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61193 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61194 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61195 fi 61196 61197 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61198 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61199 61200 else 61201 # We're on a unix platform. Hooray! :) 61202 path="$POTENTIAL_FREETYPE_LIB_PATH" 61203 has_space=`$ECHO "$path" | $GREP " "` 61204 if test "x$has_space" != x; then 61205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61206 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61207 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61208 fi 61209 61210 # Use eval to expand a potential ~ 61211 eval path="$path" 61212 if test ! -f "$path" && test ! -d "$path"; then 61213 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61214 fi 61215 61216 if test -d "$path"; then 61217 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61218 else 61219 dir="`$DIRNAME "$path"`" 61220 base="`$BASENAME "$path"`" 61221 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61222 fi 61223 fi 61224 fi 61225 61226 61227 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61229 $as_echo_n "checking for freetype includes... " >&6; } 61230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61231 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61232 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61234 $as_echo_n "checking for freetype libraries... " >&6; } 61235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61236 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61237 fi 61238 61239 fi 61240 61241 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 61242 if test "x$FOUND_FREETYPE" != xyes; then 61243 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 61244 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 61245 61246 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61247 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61248 METHOD="well-known location" 61249 61250 # Let's start with an optimistic view of the world :-) 61251 FOUND_FREETYPE=yes 61252 61253 # First look for the canonical freetype main include file ft2build.h. 61254 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61255 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61256 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61257 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61258 # Fail. 61259 FOUND_FREETYPE=no 61260 fi 61261 fi 61262 61263 if test "x$FOUND_FREETYPE" = xyes; then 61264 # Include file found, let's continue the sanity check. 61265 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61266 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61267 61268 # Reset to default value 61269 FREETYPE_BASE_NAME=freetype 61270 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61271 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61272 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61273 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61274 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61275 # for the .6 version explicitly. 61276 FREETYPE_BASE_NAME=freetype.6 61277 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61278 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61279 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61280 else 61281 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61282 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61283 FOUND_FREETYPE=no 61284 fi 61285 else 61286 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61287 # On Windows, we will need both .lib and .dll file. 61288 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61289 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61290 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61291 FOUND_FREETYPE=no 61292 fi 61293 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61294 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61295 # Found lib in isa dir, use that instead. 61296 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61297 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61298 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61299 fi 61300 fi 61301 fi 61302 61303 if test "x$FOUND_FREETYPE" = xyes; then 61304 61305 # Only process if variable expands to non-empty 61306 61307 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61309 61310 # Input might be given as Windows format, start by converting to 61311 # unix format. 61312 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61313 new_path=`$CYGPATH -u "$path"` 61314 61315 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61316 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61317 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61318 # "foo.exe" is OK but "foo" is an error. 61319 # 61320 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61321 # It is also a way to make sure we got the proper file name for the real test later on. 61322 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61323 if test "x$test_shortpath" = x; then 61324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61325 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61326 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61327 fi 61328 61329 # Call helper function which possibly converts this using DOS-style short mode. 61330 # If so, the updated path is stored in $new_path. 61331 61332 input_path="$new_path" 61333 # Check if we need to convert this using DOS-style short mode. If the path 61334 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61335 # take no chances and rewrite it. 61336 # Note: m4 eats our [], so we need to use [ and ] instead. 61337 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61338 if test "x$has_forbidden_chars" != x; then 61339 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61340 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61341 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61342 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61343 # Going to short mode and back again did indeed matter. Since short mode is 61344 # case insensitive, let's make it lowercase to improve readability. 61345 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61346 # Now convert it back to Unix-style (cygpath) 61347 input_path=`$CYGPATH -u "$shortmode_path"` 61348 new_path="$input_path" 61349 fi 61350 fi 61351 61352 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61353 if test "x$test_cygdrive_prefix" = x; then 61354 # As a simple fix, exclude /usr/bin since it's not a real path. 61355 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61356 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61357 # a path prefixed by /cygdrive for fixpath to work. 61358 new_path="$CYGWIN_ROOT_PATH$input_path" 61359 fi 61360 fi 61361 61362 61363 if test "x$path" != "x$new_path"; then 61364 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61365 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61366 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61367 fi 61368 61369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61370 61371 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61372 has_colon=`$ECHO $path | $GREP ^.:` 61373 new_path="$path" 61374 if test "x$has_colon" = x; then 61375 # Not in mixed or Windows style, start by that. 61376 new_path=`cmd //c echo $path` 61377 fi 61378 61379 61380 input_path="$new_path" 61381 # Check if we need to convert this using DOS-style short mode. If the path 61382 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61383 # take no chances and rewrite it. 61384 # Note: m4 eats our [], so we need to use [ and ] instead. 61385 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61386 if test "x$has_forbidden_chars" != x; then 61387 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61388 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61389 fi 61390 61391 61392 windows_path="$new_path" 61393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61394 unix_path=`$CYGPATH -u "$windows_path"` 61395 new_path="$unix_path" 61396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61397 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61398 new_path="$unix_path" 61399 fi 61400 61401 if test "x$path" != "x$new_path"; then 61402 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61403 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61404 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61405 fi 61406 61407 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61408 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61409 61410 else 61411 # We're on a unix platform. Hooray! :) 61412 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61413 has_space=`$ECHO "$path" | $GREP " "` 61414 if test "x$has_space" != x; then 61415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61416 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61417 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61418 fi 61419 61420 # Use eval to expand a potential ~ 61421 eval path="$path" 61422 if test ! -f "$path" && test ! -d "$path"; then 61423 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61424 fi 61425 61426 if test -d "$path"; then 61427 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61428 else 61429 dir="`$DIRNAME "$path"`" 61430 base="`$BASENAME "$path"`" 61431 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61432 fi 61433 fi 61434 fi 61435 61436 61437 # Only process if variable expands to non-empty 61438 61439 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61441 61442 # Input might be given as Windows format, start by converting to 61443 # unix format. 61444 path="$POTENTIAL_FREETYPE_LIB_PATH" 61445 new_path=`$CYGPATH -u "$path"` 61446 61447 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61448 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61449 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61450 # "foo.exe" is OK but "foo" is an error. 61451 # 61452 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61453 # It is also a way to make sure we got the proper file name for the real test later on. 61454 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61455 if test "x$test_shortpath" = x; then 61456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61457 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61458 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61459 fi 61460 61461 # Call helper function which possibly converts this using DOS-style short mode. 61462 # If so, the updated path is stored in $new_path. 61463 61464 input_path="$new_path" 61465 # Check if we need to convert this using DOS-style short mode. If the path 61466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61467 # take no chances and rewrite it. 61468 # Note: m4 eats our [], so we need to use [ and ] instead. 61469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61470 if test "x$has_forbidden_chars" != x; then 61471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61472 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61473 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61474 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61475 # Going to short mode and back again did indeed matter. Since short mode is 61476 # case insensitive, let's make it lowercase to improve readability. 61477 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61478 # Now convert it back to Unix-style (cygpath) 61479 input_path=`$CYGPATH -u "$shortmode_path"` 61480 new_path="$input_path" 61481 fi 61482 fi 61483 61484 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61485 if test "x$test_cygdrive_prefix" = x; then 61486 # As a simple fix, exclude /usr/bin since it's not a real path. 61487 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61488 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61489 # a path prefixed by /cygdrive for fixpath to work. 61490 new_path="$CYGWIN_ROOT_PATH$input_path" 61491 fi 61492 fi 61493 61494 61495 if test "x$path" != "x$new_path"; then 61496 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61497 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61498 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61499 fi 61500 61501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61502 61503 path="$POTENTIAL_FREETYPE_LIB_PATH" 61504 has_colon=`$ECHO $path | $GREP ^.:` 61505 new_path="$path" 61506 if test "x$has_colon" = x; then 61507 # Not in mixed or Windows style, start by that. 61508 new_path=`cmd //c echo $path` 61509 fi 61510 61511 61512 input_path="$new_path" 61513 # Check if we need to convert this using DOS-style short mode. If the path 61514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61515 # take no chances and rewrite it. 61516 # Note: m4 eats our [], so we need to use [ and ] instead. 61517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61518 if test "x$has_forbidden_chars" != x; then 61519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61520 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61521 fi 61522 61523 61524 windows_path="$new_path" 61525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61526 unix_path=`$CYGPATH -u "$windows_path"` 61527 new_path="$unix_path" 61528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61529 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61530 new_path="$unix_path" 61531 fi 61532 61533 if test "x$path" != "x$new_path"; then 61534 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61536 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61537 fi 61538 61539 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61540 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61541 61542 else 61543 # We're on a unix platform. Hooray! :) 61544 path="$POTENTIAL_FREETYPE_LIB_PATH" 61545 has_space=`$ECHO "$path" | $GREP " "` 61546 if test "x$has_space" != x; then 61547 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61548 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61549 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61550 fi 61551 61552 # Use eval to expand a potential ~ 61553 eval path="$path" 61554 if test ! -f "$path" && test ! -d "$path"; then 61555 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61556 fi 61557 61558 if test -d "$path"; then 61559 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61560 else 61561 dir="`$DIRNAME "$path"`" 61562 base="`$BASENAME "$path"`" 61563 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61564 fi 61565 fi 61566 fi 61567 61568 61569 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61571 $as_echo_n "checking for freetype includes... " >&6; } 61572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61573 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61574 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61576 $as_echo_n "checking for freetype libraries... " >&6; } 61577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61578 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61579 fi 61580 61581 fi 61582 fi 61583 61584 if test "x$FOUND_FREETYPE" != xyes; then 61585 FREETYPE_BASE_DIR="$SYSROOT/usr" 61586 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61587 61588 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61589 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 61590 METHOD="well-known location" 61591 61592 # Let's start with an optimistic view of the world :-) 61593 FOUND_FREETYPE=yes 61594 61595 # First look for the canonical freetype main include file ft2build.h. 61596 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61597 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61598 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61599 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61600 # Fail. 61601 FOUND_FREETYPE=no 61602 fi 61603 fi 61604 61605 if test "x$FOUND_FREETYPE" = xyes; then 61606 # Include file found, let's continue the sanity check. 61607 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61608 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61609 61610 # Reset to default value 61611 FREETYPE_BASE_NAME=freetype 61612 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61613 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61614 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61615 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61616 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61617 # for the .6 version explicitly. 61618 FREETYPE_BASE_NAME=freetype.6 61619 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61620 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61621 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61622 else 61623 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61624 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61625 FOUND_FREETYPE=no 61626 fi 61627 else 61628 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61629 # On Windows, we will need both .lib and .dll file. 61630 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61631 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61632 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61633 FOUND_FREETYPE=no 61634 fi 61635 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61636 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61637 # Found lib in isa dir, use that instead. 61638 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61639 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61640 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61641 fi 61642 fi 61643 fi 61644 61645 if test "x$FOUND_FREETYPE" = xyes; then 61646 61647 # Only process if variable expands to non-empty 61648 61649 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61651 61652 # Input might be given as Windows format, start by converting to 61653 # unix format. 61654 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61655 new_path=`$CYGPATH -u "$path"` 61656 61657 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61658 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61659 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61660 # "foo.exe" is OK but "foo" is an error. 61661 # 61662 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61663 # It is also a way to make sure we got the proper file name for the real test later on. 61664 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61665 if test "x$test_shortpath" = x; then 61666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61667 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61668 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61669 fi 61670 61671 # Call helper function which possibly converts this using DOS-style short mode. 61672 # If so, the updated path is stored in $new_path. 61673 61674 input_path="$new_path" 61675 # Check if we need to convert this using DOS-style short mode. If the path 61676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61677 # take no chances and rewrite it. 61678 # Note: m4 eats our [], so we need to use [ and ] instead. 61679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61680 if test "x$has_forbidden_chars" != x; then 61681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61682 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61683 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61684 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61685 # Going to short mode and back again did indeed matter. Since short mode is 61686 # case insensitive, let's make it lowercase to improve readability. 61687 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61688 # Now convert it back to Unix-style (cygpath) 61689 input_path=`$CYGPATH -u "$shortmode_path"` 61690 new_path="$input_path" 61691 fi 61692 fi 61693 61694 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61695 if test "x$test_cygdrive_prefix" = x; then 61696 # As a simple fix, exclude /usr/bin since it's not a real path. 61697 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61698 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61699 # a path prefixed by /cygdrive for fixpath to work. 61700 new_path="$CYGWIN_ROOT_PATH$input_path" 61701 fi 61702 fi 61703 61704 61705 if test "x$path" != "x$new_path"; then 61706 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61707 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61708 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61709 fi 61710 61711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61712 61713 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61714 has_colon=`$ECHO $path | $GREP ^.:` 61715 new_path="$path" 61716 if test "x$has_colon" = x; then 61717 # Not in mixed or Windows style, start by that. 61718 new_path=`cmd //c echo $path` 61719 fi 61720 61721 61722 input_path="$new_path" 61723 # Check if we need to convert this using DOS-style short mode. If the path 61724 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61725 # take no chances and rewrite it. 61726 # Note: m4 eats our [], so we need to use [ and ] instead. 61727 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61728 if test "x$has_forbidden_chars" != x; then 61729 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61730 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61731 fi 61732 61733 61734 windows_path="$new_path" 61735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61736 unix_path=`$CYGPATH -u "$windows_path"` 61737 new_path="$unix_path" 61738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61740 new_path="$unix_path" 61741 fi 61742 61743 if test "x$path" != "x$new_path"; then 61744 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61746 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61747 fi 61748 61749 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61750 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61751 61752 else 61753 # We're on a unix platform. Hooray! :) 61754 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61755 has_space=`$ECHO "$path" | $GREP " "` 61756 if test "x$has_space" != x; then 61757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61758 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61759 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61760 fi 61761 61762 # Use eval to expand a potential ~ 61763 eval path="$path" 61764 if test ! -f "$path" && test ! -d "$path"; then 61765 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61766 fi 61767 61768 if test -d "$path"; then 61769 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61770 else 61771 dir="`$DIRNAME "$path"`" 61772 base="`$BASENAME "$path"`" 61773 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61774 fi 61775 fi 61776 fi 61777 61778 61779 # Only process if variable expands to non-empty 61780 61781 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61783 61784 # Input might be given as Windows format, start by converting to 61785 # unix format. 61786 path="$POTENTIAL_FREETYPE_LIB_PATH" 61787 new_path=`$CYGPATH -u "$path"` 61788 61789 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61790 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61791 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61792 # "foo.exe" is OK but "foo" is an error. 61793 # 61794 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61795 # It is also a way to make sure we got the proper file name for the real test later on. 61796 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61797 if test "x$test_shortpath" = x; then 61798 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61799 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61800 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61801 fi 61802 61803 # Call helper function which possibly converts this using DOS-style short mode. 61804 # If so, the updated path is stored in $new_path. 61805 61806 input_path="$new_path" 61807 # Check if we need to convert this using DOS-style short mode. If the path 61808 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61809 # take no chances and rewrite it. 61810 # Note: m4 eats our [], so we need to use [ and ] instead. 61811 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61812 if test "x$has_forbidden_chars" != x; then 61813 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61814 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61815 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61816 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61817 # Going to short mode and back again did indeed matter. Since short mode is 61818 # case insensitive, let's make it lowercase to improve readability. 61819 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61820 # Now convert it back to Unix-style (cygpath) 61821 input_path=`$CYGPATH -u "$shortmode_path"` 61822 new_path="$input_path" 61823 fi 61824 fi 61825 61826 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61827 if test "x$test_cygdrive_prefix" = x; then 61828 # As a simple fix, exclude /usr/bin since it's not a real path. 61829 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61830 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61831 # a path prefixed by /cygdrive for fixpath to work. 61832 new_path="$CYGWIN_ROOT_PATH$input_path" 61833 fi 61834 fi 61835 61836 61837 if test "x$path" != "x$new_path"; then 61838 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61839 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61840 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61841 fi 61842 61843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61844 61845 path="$POTENTIAL_FREETYPE_LIB_PATH" 61846 has_colon=`$ECHO $path | $GREP ^.:` 61847 new_path="$path" 61848 if test "x$has_colon" = x; then 61849 # Not in mixed or Windows style, start by that. 61850 new_path=`cmd //c echo $path` 61851 fi 61852 61853 61854 input_path="$new_path" 61855 # Check if we need to convert this using DOS-style short mode. If the path 61856 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61857 # take no chances and rewrite it. 61858 # Note: m4 eats our [], so we need to use [ and ] instead. 61859 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61860 if test "x$has_forbidden_chars" != x; then 61861 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61862 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61863 fi 61864 61865 61866 windows_path="$new_path" 61867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61868 unix_path=`$CYGPATH -u "$windows_path"` 61869 new_path="$unix_path" 61870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61872 new_path="$unix_path" 61873 fi 61874 61875 if test "x$path" != "x$new_path"; then 61876 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61877 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61878 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61879 fi 61880 61881 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61882 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61883 61884 else 61885 # We're on a unix platform. Hooray! :) 61886 path="$POTENTIAL_FREETYPE_LIB_PATH" 61887 has_space=`$ECHO "$path" | $GREP " "` 61888 if test "x$has_space" != x; then 61889 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61890 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61891 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61892 fi 61893 61894 # Use eval to expand a potential ~ 61895 eval path="$path" 61896 if test ! -f "$path" && test ! -d "$path"; then 61897 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61898 fi 61899 61900 if test -d "$path"; then 61901 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61902 else 61903 dir="`$DIRNAME "$path"`" 61904 base="`$BASENAME "$path"`" 61905 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61906 fi 61907 fi 61908 fi 61909 61910 61911 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61913 $as_echo_n "checking for freetype includes... " >&6; } 61914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61915 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61916 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61918 $as_echo_n "checking for freetype libraries... " >&6; } 61919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61920 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61921 fi 61922 61923 else 61924 61925 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61926 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 61927 METHOD="well-known location" 61928 61929 # Let's start with an optimistic view of the world :-) 61930 FOUND_FREETYPE=yes 61931 61932 # First look for the canonical freetype main include file ft2build.h. 61933 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61934 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61935 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61936 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61937 # Fail. 61938 FOUND_FREETYPE=no 61939 fi 61940 fi 61941 61942 if test "x$FOUND_FREETYPE" = xyes; then 61943 # Include file found, let's continue the sanity check. 61944 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61945 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61946 61947 # Reset to default value 61948 FREETYPE_BASE_NAME=freetype 61949 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61950 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61951 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61952 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61953 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61954 # for the .6 version explicitly. 61955 FREETYPE_BASE_NAME=freetype.6 61956 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61957 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61958 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61959 else 61960 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61961 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61962 FOUND_FREETYPE=no 61963 fi 61964 else 61965 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61966 # On Windows, we will need both .lib and .dll file. 61967 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61968 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61969 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61970 FOUND_FREETYPE=no 61971 fi 61972 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61973 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61974 # Found lib in isa dir, use that instead. 61975 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61977 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61978 fi 61979 fi 61980 fi 61981 61982 if test "x$FOUND_FREETYPE" = xyes; then 61983 61984 # Only process if variable expands to non-empty 61985 61986 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61988 61989 # Input might be given as Windows format, start by converting to 61990 # unix format. 61991 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61992 new_path=`$CYGPATH -u "$path"` 61993 61994 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61995 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61996 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61997 # "foo.exe" is OK but "foo" is an error. 61998 # 61999 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62000 # It is also a way to make sure we got the proper file name for the real test later on. 62001 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62002 if test "x$test_shortpath" = x; then 62003 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62004 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62005 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62006 fi 62007 62008 # Call helper function which possibly converts this using DOS-style short mode. 62009 # If so, the updated path is stored in $new_path. 62010 62011 input_path="$new_path" 62012 # Check if we need to convert this using DOS-style short mode. If the path 62013 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62014 # take no chances and rewrite it. 62015 # Note: m4 eats our [], so we need to use [ and ] instead. 62016 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62017 if test "x$has_forbidden_chars" != x; then 62018 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62019 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62020 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62021 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62022 # Going to short mode and back again did indeed matter. Since short mode is 62023 # case insensitive, let's make it lowercase to improve readability. 62024 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62025 # Now convert it back to Unix-style (cygpath) 62026 input_path=`$CYGPATH -u "$shortmode_path"` 62027 new_path="$input_path" 62028 fi 62029 fi 62030 62031 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62032 if test "x$test_cygdrive_prefix" = x; then 62033 # As a simple fix, exclude /usr/bin since it's not a real path. 62034 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62035 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62036 # a path prefixed by /cygdrive for fixpath to work. 62037 new_path="$CYGWIN_ROOT_PATH$input_path" 62038 fi 62039 fi 62040 62041 62042 if test "x$path" != "x$new_path"; then 62043 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62044 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62045 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62046 fi 62047 62048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62049 62050 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62051 has_colon=`$ECHO $path | $GREP ^.:` 62052 new_path="$path" 62053 if test "x$has_colon" = x; then 62054 # Not in mixed or Windows style, start by that. 62055 new_path=`cmd //c echo $path` 62056 fi 62057 62058 62059 input_path="$new_path" 62060 # Check if we need to convert this using DOS-style short mode. If the path 62061 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62062 # take no chances and rewrite it. 62063 # Note: m4 eats our [], so we need to use [ and ] instead. 62064 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62065 if test "x$has_forbidden_chars" != x; then 62066 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62067 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62068 fi 62069 62070 62071 windows_path="$new_path" 62072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62073 unix_path=`$CYGPATH -u "$windows_path"` 62074 new_path="$unix_path" 62075 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62076 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62077 new_path="$unix_path" 62078 fi 62079 62080 if test "x$path" != "x$new_path"; then 62081 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62082 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62083 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62084 fi 62085 62086 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62087 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62088 62089 else 62090 # We're on a unix platform. Hooray! :) 62091 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62092 has_space=`$ECHO "$path" | $GREP " "` 62093 if test "x$has_space" != x; then 62094 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62095 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62096 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62097 fi 62098 62099 # Use eval to expand a potential ~ 62100 eval path="$path" 62101 if test ! -f "$path" && test ! -d "$path"; then 62102 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62103 fi 62104 62105 if test -d "$path"; then 62106 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62107 else 62108 dir="`$DIRNAME "$path"`" 62109 base="`$BASENAME "$path"`" 62110 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62111 fi 62112 fi 62113 fi 62114 62115 62116 # Only process if variable expands to non-empty 62117 62118 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62120 62121 # Input might be given as Windows format, start by converting to 62122 # unix format. 62123 path="$POTENTIAL_FREETYPE_LIB_PATH" 62124 new_path=`$CYGPATH -u "$path"` 62125 62126 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62127 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62128 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62129 # "foo.exe" is OK but "foo" is an error. 62130 # 62131 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62132 # It is also a way to make sure we got the proper file name for the real test later on. 62133 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62134 if test "x$test_shortpath" = x; then 62135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62136 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62137 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62138 fi 62139 62140 # Call helper function which possibly converts this using DOS-style short mode. 62141 # If so, the updated path is stored in $new_path. 62142 62143 input_path="$new_path" 62144 # Check if we need to convert this using DOS-style short mode. If the path 62145 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62146 # take no chances and rewrite it. 62147 # Note: m4 eats our [], so we need to use [ and ] instead. 62148 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62149 if test "x$has_forbidden_chars" != x; then 62150 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62151 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62152 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62153 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62154 # Going to short mode and back again did indeed matter. Since short mode is 62155 # case insensitive, let's make it lowercase to improve readability. 62156 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62157 # Now convert it back to Unix-style (cygpath) 62158 input_path=`$CYGPATH -u "$shortmode_path"` 62159 new_path="$input_path" 62160 fi 62161 fi 62162 62163 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62164 if test "x$test_cygdrive_prefix" = x; then 62165 # As a simple fix, exclude /usr/bin since it's not a real path. 62166 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62167 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62168 # a path prefixed by /cygdrive for fixpath to work. 62169 new_path="$CYGWIN_ROOT_PATH$input_path" 62170 fi 62171 fi 62172 62173 62174 if test "x$path" != "x$new_path"; then 62175 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62177 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62178 fi 62179 62180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62181 62182 path="$POTENTIAL_FREETYPE_LIB_PATH" 62183 has_colon=`$ECHO $path | $GREP ^.:` 62184 new_path="$path" 62185 if test "x$has_colon" = x; then 62186 # Not in mixed or Windows style, start by that. 62187 new_path=`cmd //c echo $path` 62188 fi 62189 62190 62191 input_path="$new_path" 62192 # Check if we need to convert this using DOS-style short mode. If the path 62193 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62194 # take no chances and rewrite it. 62195 # Note: m4 eats our [], so we need to use [ and ] instead. 62196 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62197 if test "x$has_forbidden_chars" != x; then 62198 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62199 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62200 fi 62201 62202 62203 windows_path="$new_path" 62204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62205 unix_path=`$CYGPATH -u "$windows_path"` 62206 new_path="$unix_path" 62207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62208 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62209 new_path="$unix_path" 62210 fi 62211 62212 if test "x$path" != "x$new_path"; then 62213 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62214 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62215 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62216 fi 62217 62218 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62219 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62220 62221 else 62222 # We're on a unix platform. Hooray! :) 62223 path="$POTENTIAL_FREETYPE_LIB_PATH" 62224 has_space=`$ECHO "$path" | $GREP " "` 62225 if test "x$has_space" != x; then 62226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62227 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62228 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62229 fi 62230 62231 # Use eval to expand a potential ~ 62232 eval path="$path" 62233 if test ! -f "$path" && test ! -d "$path"; then 62234 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62235 fi 62236 62237 if test -d "$path"; then 62238 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62239 else 62240 dir="`$DIRNAME "$path"`" 62241 base="`$BASENAME "$path"`" 62242 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62243 fi 62244 fi 62245 fi 62246 62247 62248 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62250 $as_echo_n "checking for freetype includes... " >&6; } 62251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62252 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62253 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62255 $as_echo_n "checking for freetype libraries... " >&6; } 62256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62257 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62258 fi 62259 62260 if test "x$FOUND_FREETYPE" != xyes; then 62261 62262 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62263 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 62264 METHOD="well-known location" 62265 62266 # Let's start with an optimistic view of the world :-) 62267 FOUND_FREETYPE=yes 62268 62269 # First look for the canonical freetype main include file ft2build.h. 62270 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62271 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62272 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62273 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62274 # Fail. 62275 FOUND_FREETYPE=no 62276 fi 62277 fi 62278 62279 if test "x$FOUND_FREETYPE" = xyes; then 62280 # Include file found, let's continue the sanity check. 62281 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62282 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62283 62284 # Reset to default value 62285 FREETYPE_BASE_NAME=freetype 62286 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62287 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62288 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62289 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62290 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62291 # for the .6 version explicitly. 62292 FREETYPE_BASE_NAME=freetype.6 62293 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62294 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62295 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62296 else 62297 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62298 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62299 FOUND_FREETYPE=no 62300 fi 62301 else 62302 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62303 # On Windows, we will need both .lib and .dll file. 62304 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62305 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62306 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62307 FOUND_FREETYPE=no 62308 fi 62309 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62310 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62311 # Found lib in isa dir, use that instead. 62312 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62313 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62314 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62315 fi 62316 fi 62317 fi 62318 62319 if test "x$FOUND_FREETYPE" = xyes; then 62320 62321 # Only process if variable expands to non-empty 62322 62323 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62325 62326 # Input might be given as Windows format, start by converting to 62327 # unix format. 62328 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62329 new_path=`$CYGPATH -u "$path"` 62330 62331 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62332 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62333 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62334 # "foo.exe" is OK but "foo" is an error. 62335 # 62336 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62337 # It is also a way to make sure we got the proper file name for the real test later on. 62338 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62339 if test "x$test_shortpath" = x; then 62340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62341 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62342 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62343 fi 62344 62345 # Call helper function which possibly converts this using DOS-style short mode. 62346 # If so, the updated path is stored in $new_path. 62347 62348 input_path="$new_path" 62349 # Check if we need to convert this using DOS-style short mode. If the path 62350 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62351 # take no chances and rewrite it. 62352 # Note: m4 eats our [], so we need to use [ and ] instead. 62353 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62354 if test "x$has_forbidden_chars" != x; then 62355 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62356 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62357 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62358 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62359 # Going to short mode and back again did indeed matter. Since short mode is 62360 # case insensitive, let's make it lowercase to improve readability. 62361 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62362 # Now convert it back to Unix-style (cygpath) 62363 input_path=`$CYGPATH -u "$shortmode_path"` 62364 new_path="$input_path" 62365 fi 62366 fi 62367 62368 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62369 if test "x$test_cygdrive_prefix" = x; then 62370 # As a simple fix, exclude /usr/bin since it's not a real path. 62371 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62372 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62373 # a path prefixed by /cygdrive for fixpath to work. 62374 new_path="$CYGWIN_ROOT_PATH$input_path" 62375 fi 62376 fi 62377 62378 62379 if test "x$path" != "x$new_path"; then 62380 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62381 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62382 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62383 fi 62384 62385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62386 62387 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62388 has_colon=`$ECHO $path | $GREP ^.:` 62389 new_path="$path" 62390 if test "x$has_colon" = x; then 62391 # Not in mixed or Windows style, start by that. 62392 new_path=`cmd //c echo $path` 62393 fi 62394 62395 62396 input_path="$new_path" 62397 # Check if we need to convert this using DOS-style short mode. If the path 62398 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62399 # take no chances and rewrite it. 62400 # Note: m4 eats our [], so we need to use [ and ] instead. 62401 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62402 if test "x$has_forbidden_chars" != x; then 62403 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62404 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62405 fi 62406 62407 62408 windows_path="$new_path" 62409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62410 unix_path=`$CYGPATH -u "$windows_path"` 62411 new_path="$unix_path" 62412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62414 new_path="$unix_path" 62415 fi 62416 62417 if test "x$path" != "x$new_path"; then 62418 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62419 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62420 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62421 fi 62422 62423 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62424 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62425 62426 else 62427 # We're on a unix platform. Hooray! :) 62428 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62429 has_space=`$ECHO "$path" | $GREP " "` 62430 if test "x$has_space" != x; then 62431 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62432 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62433 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62434 fi 62435 62436 # Use eval to expand a potential ~ 62437 eval path="$path" 62438 if test ! -f "$path" && test ! -d "$path"; then 62439 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62440 fi 62441 62442 if test -d "$path"; then 62443 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62444 else 62445 dir="`$DIRNAME "$path"`" 62446 base="`$BASENAME "$path"`" 62447 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62448 fi 62449 fi 62450 fi 62451 62452 62453 # Only process if variable expands to non-empty 62454 62455 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62457 62458 # Input might be given as Windows format, start by converting to 62459 # unix format. 62460 path="$POTENTIAL_FREETYPE_LIB_PATH" 62461 new_path=`$CYGPATH -u "$path"` 62462 62463 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62464 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62465 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62466 # "foo.exe" is OK but "foo" is an error. 62467 # 62468 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62469 # It is also a way to make sure we got the proper file name for the real test later on. 62470 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62471 if test "x$test_shortpath" = x; then 62472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62473 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62474 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62475 fi 62476 62477 # Call helper function which possibly converts this using DOS-style short mode. 62478 # If so, the updated path is stored in $new_path. 62479 62480 input_path="$new_path" 62481 # Check if we need to convert this using DOS-style short mode. If the path 62482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62483 # take no chances and rewrite it. 62484 # Note: m4 eats our [], so we need to use [ and ] instead. 62485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62486 if test "x$has_forbidden_chars" != x; then 62487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62488 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62489 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62490 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62491 # Going to short mode and back again did indeed matter. Since short mode is 62492 # case insensitive, let's make it lowercase to improve readability. 62493 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62494 # Now convert it back to Unix-style (cygpath) 62495 input_path=`$CYGPATH -u "$shortmode_path"` 62496 new_path="$input_path" 62497 fi 62498 fi 62499 62500 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62501 if test "x$test_cygdrive_prefix" = x; then 62502 # As a simple fix, exclude /usr/bin since it's not a real path. 62503 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62504 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62505 # a path prefixed by /cygdrive for fixpath to work. 62506 new_path="$CYGWIN_ROOT_PATH$input_path" 62507 fi 62508 fi 62509 62510 62511 if test "x$path" != "x$new_path"; then 62512 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62513 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62514 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62515 fi 62516 62517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62518 62519 path="$POTENTIAL_FREETYPE_LIB_PATH" 62520 has_colon=`$ECHO $path | $GREP ^.:` 62521 new_path="$path" 62522 if test "x$has_colon" = x; then 62523 # Not in mixed or Windows style, start by that. 62524 new_path=`cmd //c echo $path` 62525 fi 62526 62527 62528 input_path="$new_path" 62529 # Check if we need to convert this using DOS-style short mode. If the path 62530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62531 # take no chances and rewrite it. 62532 # Note: m4 eats our [], so we need to use [ and ] instead. 62533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62534 if test "x$has_forbidden_chars" != x; then 62535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62536 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62537 fi 62538 62539 62540 windows_path="$new_path" 62541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62542 unix_path=`$CYGPATH -u "$windows_path"` 62543 new_path="$unix_path" 62544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62545 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62546 new_path="$unix_path" 62547 fi 62548 62549 if test "x$path" != "x$new_path"; then 62550 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62551 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62552 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62553 fi 62554 62555 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62556 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62557 62558 else 62559 # We're on a unix platform. Hooray! :) 62560 path="$POTENTIAL_FREETYPE_LIB_PATH" 62561 has_space=`$ECHO "$path" | $GREP " "` 62562 if test "x$has_space" != x; then 62563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62564 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62565 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62566 fi 62567 62568 # Use eval to expand a potential ~ 62569 eval path="$path" 62570 if test ! -f "$path" && test ! -d "$path"; then 62571 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62572 fi 62573 62574 if test -d "$path"; then 62575 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62576 else 62577 dir="`$DIRNAME "$path"`" 62578 base="`$BASENAME "$path"`" 62579 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62580 fi 62581 fi 62582 fi 62583 62584 62585 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62587 $as_echo_n "checking for freetype includes... " >&6; } 62588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62589 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62590 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62592 $as_echo_n "checking for freetype libraries... " >&6; } 62593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62594 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62595 fi 62596 62597 fi 62598 fi 62599 fi 62600 fi 62601 fi # end check in well-known locations 62602 62603 if test "x$FOUND_FREETYPE" != xyes; then 62604 62605 # Print a helpful message on how to acquire the necessary build dependency. 62606 # freetype is the help tag: freetype, cups, alsa etc 62607 MISSING_DEPENDENCY=freetype 62608 62609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62610 cygwin_help $MISSING_DEPENDENCY 62611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62612 msys_help $MISSING_DEPENDENCY 62613 else 62614 PKGHANDLER_COMMAND= 62615 62616 case $PKGHANDLER in 62617 apt-get) 62618 apt_help $MISSING_DEPENDENCY ;; 62619 yum) 62620 yum_help $MISSING_DEPENDENCY ;; 62621 brew) 62622 brew_help $MISSING_DEPENDENCY ;; 62623 port) 62624 port_help $MISSING_DEPENDENCY ;; 62625 pkgutil) 62626 pkgutil_help $MISSING_DEPENDENCY ;; 62627 pkgadd) 62628 pkgadd_help $MISSING_DEPENDENCY ;; 62629 esac 62630 62631 if test "x$PKGHANDLER_COMMAND" != x; then 62632 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62633 fi 62634 fi 62635 62636 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 62637 fi 62638 fi # end user specified settings 62639 62640 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 62641 if test "x$FREETYPE_CFLAGS" = x; then 62642 62643 # Only process if variable expands to non-empty 62644 62645 if test "x$FREETYPE_INCLUDE_PATH" != x; then 62646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62647 62648 # Input might be given as Windows format, start by converting to 62649 # unix format. 62650 path="$FREETYPE_INCLUDE_PATH" 62651 new_path=`$CYGPATH -u "$path"` 62652 62653 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62654 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62655 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62656 # "foo.exe" is OK but "foo" is an error. 62657 # 62658 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62659 # It is also a way to make sure we got the proper file name for the real test later on. 62660 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62661 if test "x$test_shortpath" = x; then 62662 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62663 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62664 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 62665 fi 62666 62667 # Call helper function which possibly converts this using DOS-style short mode. 62668 # If so, the updated path is stored in $new_path. 62669 62670 input_path="$new_path" 62671 # Check if we need to convert this using DOS-style short mode. If the path 62672 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62673 # take no chances and rewrite it. 62674 # Note: m4 eats our [], so we need to use [ and ] instead. 62675 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62676 if test "x$has_forbidden_chars" != x; then 62677 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62678 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62679 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62680 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62681 # Going to short mode and back again did indeed matter. Since short mode is 62682 # case insensitive, let's make it lowercase to improve readability. 62683 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62684 # Now convert it back to Unix-style (cygpath) 62685 input_path=`$CYGPATH -u "$shortmode_path"` 62686 new_path="$input_path" 62687 fi 62688 fi 62689 62690 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62691 if test "x$test_cygdrive_prefix" = x; then 62692 # As a simple fix, exclude /usr/bin since it's not a real path. 62693 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62694 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62695 # a path prefixed by /cygdrive for fixpath to work. 62696 new_path="$CYGWIN_ROOT_PATH$input_path" 62697 fi 62698 fi 62699 62700 62701 if test "x$path" != "x$new_path"; then 62702 FREETYPE_INCLUDE_PATH="$new_path" 62703 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62704 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62705 fi 62706 62707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62708 62709 path="$FREETYPE_INCLUDE_PATH" 62710 has_colon=`$ECHO $path | $GREP ^.:` 62711 new_path="$path" 62712 if test "x$has_colon" = x; then 62713 # Not in mixed or Windows style, start by that. 62714 new_path=`cmd //c echo $path` 62715 fi 62716 62717 62718 input_path="$new_path" 62719 # Check if we need to convert this using DOS-style short mode. If the path 62720 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62721 # take no chances and rewrite it. 62722 # Note: m4 eats our [], so we need to use [ and ] instead. 62723 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62724 if test "x$has_forbidden_chars" != x; then 62725 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62726 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62727 fi 62728 62729 62730 windows_path="$new_path" 62731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62732 unix_path=`$CYGPATH -u "$windows_path"` 62733 new_path="$unix_path" 62734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62735 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62736 new_path="$unix_path" 62737 fi 62738 62739 if test "x$path" != "x$new_path"; then 62740 FREETYPE_INCLUDE_PATH="$new_path" 62741 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62742 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62743 fi 62744 62745 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62746 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62747 62748 else 62749 # We're on a unix platform. Hooray! :) 62750 path="$FREETYPE_INCLUDE_PATH" 62751 has_space=`$ECHO "$path" | $GREP " "` 62752 if test "x$has_space" != x; then 62753 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62754 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62755 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62756 fi 62757 62758 # Use eval to expand a potential ~ 62759 eval path="$path" 62760 if test ! -f "$path" && test ! -d "$path"; then 62761 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62762 fi 62763 62764 if test -d "$path"; then 62765 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62766 else 62767 dir="`$DIRNAME "$path"`" 62768 base="`$BASENAME "$path"`" 62769 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62770 fi 62771 fi 62772 fi 62773 62774 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 62775 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 62776 else 62777 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 62778 fi 62779 fi 62780 62781 if test "x$FREETYPE_LIBS" = x; then 62782 62783 # Only process if variable expands to non-empty 62784 62785 if test "x$FREETYPE_LIB_PATH" != x; then 62786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62787 62788 # Input might be given as Windows format, start by converting to 62789 # unix format. 62790 path="$FREETYPE_LIB_PATH" 62791 new_path=`$CYGPATH -u "$path"` 62792 62793 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62794 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62795 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62796 # "foo.exe" is OK but "foo" is an error. 62797 # 62798 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62799 # It is also a way to make sure we got the proper file name for the real test later on. 62800 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62801 if test "x$test_shortpath" = x; then 62802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62803 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62804 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 62805 fi 62806 62807 # Call helper function which possibly converts this using DOS-style short mode. 62808 # If so, the updated path is stored in $new_path. 62809 62810 input_path="$new_path" 62811 # Check if we need to convert this using DOS-style short mode. If the path 62812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62813 # take no chances and rewrite it. 62814 # Note: m4 eats our [], so we need to use [ and ] instead. 62815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62816 if test "x$has_forbidden_chars" != x; then 62817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62818 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62819 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62820 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62821 # Going to short mode and back again did indeed matter. Since short mode is 62822 # case insensitive, let's make it lowercase to improve readability. 62823 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62824 # Now convert it back to Unix-style (cygpath) 62825 input_path=`$CYGPATH -u "$shortmode_path"` 62826 new_path="$input_path" 62827 fi 62828 fi 62829 62830 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62831 if test "x$test_cygdrive_prefix" = x; then 62832 # As a simple fix, exclude /usr/bin since it's not a real path. 62833 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62834 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62835 # a path prefixed by /cygdrive for fixpath to work. 62836 new_path="$CYGWIN_ROOT_PATH$input_path" 62837 fi 62838 fi 62839 62840 62841 if test "x$path" != "x$new_path"; then 62842 FREETYPE_LIB_PATH="$new_path" 62843 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62844 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62845 fi 62846 62847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62848 62849 path="$FREETYPE_LIB_PATH" 62850 has_colon=`$ECHO $path | $GREP ^.:` 62851 new_path="$path" 62852 if test "x$has_colon" = x; then 62853 # Not in mixed or Windows style, start by that. 62854 new_path=`cmd //c echo $path` 62855 fi 62856 62857 62858 input_path="$new_path" 62859 # Check if we need to convert this using DOS-style short mode. If the path 62860 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62861 # take no chances and rewrite it. 62862 # Note: m4 eats our [], so we need to use [ and ] instead. 62863 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62864 if test "x$has_forbidden_chars" != x; then 62865 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62866 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62867 fi 62868 62869 62870 windows_path="$new_path" 62871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62872 unix_path=`$CYGPATH -u "$windows_path"` 62873 new_path="$unix_path" 62874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62875 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62876 new_path="$unix_path" 62877 fi 62878 62879 if test "x$path" != "x$new_path"; then 62880 FREETYPE_LIB_PATH="$new_path" 62881 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62882 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62883 fi 62884 62885 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62886 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62887 62888 else 62889 # We're on a unix platform. Hooray! :) 62890 path="$FREETYPE_LIB_PATH" 62891 has_space=`$ECHO "$path" | $GREP " "` 62892 if test "x$has_space" != x; then 62893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62894 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62895 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62896 fi 62897 62898 # Use eval to expand a potential ~ 62899 eval path="$path" 62900 if test ! -f "$path" && test ! -d "$path"; then 62901 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62902 fi 62903 62904 if test -d "$path"; then 62905 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62906 else 62907 dir="`$DIRNAME "$path"`" 62908 base="`$BASENAME "$path"`" 62909 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62910 fi 62911 fi 62912 fi 62913 62914 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62915 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 62916 else 62917 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 62918 fi 62919 fi 62920 62921 # Try to compile it 62922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 62923 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 62924 ac_ext=cpp 62925 ac_cpp='$CXXCPP $CPPFLAGS' 62926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62929 62930 PREV_CXXCFLAGS="$CXXFLAGS" 62931 PREV_LIBS="$LIBS" 62932 PREV_CXX="$CXX" 62933 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 62934 LIBS="$LIBS $FREETYPE_LIBS" 62935 CXX="$FIXPATH $CXX" 62936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62937 /* end confdefs.h. */ 62938 62939 #include<ft2build.h> 62940 #include FT_FREETYPE_H 62941 int main () { 62942 FT_Init_FreeType(NULL); 62943 return 0; 62944 } 62945 62946 _ACEOF 62947 if ac_fn_cxx_try_link "$LINENO"; then : 62948 62949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62950 $as_echo "yes" >&6; } 62951 62952 else 62953 62954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62955 $as_echo "no" >&6; } 62956 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 62957 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 62958 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 62959 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 62960 62961 62962 # Print a helpful message on how to acquire the necessary build dependency. 62963 # freetype is the help tag: freetype, cups, alsa etc 62964 MISSING_DEPENDENCY=freetype 62965 62966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62967 cygwin_help $MISSING_DEPENDENCY 62968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62969 msys_help $MISSING_DEPENDENCY 62970 else 62971 PKGHANDLER_COMMAND= 62972 62973 case $PKGHANDLER in 62974 apt-get) 62975 apt_help $MISSING_DEPENDENCY ;; 62976 yum) 62977 yum_help $MISSING_DEPENDENCY ;; 62978 brew) 62979 brew_help $MISSING_DEPENDENCY ;; 62980 port) 62981 port_help $MISSING_DEPENDENCY ;; 62982 pkgutil) 62983 pkgutil_help $MISSING_DEPENDENCY ;; 62984 pkgadd) 62985 pkgadd_help $MISSING_DEPENDENCY ;; 62986 esac 62987 62988 if test "x$PKGHANDLER_COMMAND" != x; then 62989 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62990 fi 62991 fi 62992 62993 62994 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 62995 62996 62997 fi 62998 rm -f core conftest.err conftest.$ac_objext \ 62999 conftest$ac_exeext conftest.$ac_ext 63000 CXXCFLAGS="$PREV_CXXFLAGS" 63001 LIBS="$PREV_LIBS" 63002 CXX="$PREV_CXX" 63003 ac_ext=cpp 63004 ac_cpp='$CXXCPP $CPPFLAGS' 63005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 63008 63009 63010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 63011 $as_echo_n "checking if we should bundle freetype... " >&6; } 63012 if test "x$BUNDLE_FREETYPE" = xyes; then 63013 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 63014 fi 63015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 63016 $as_echo "$BUNDLE_FREETYPE" >&6; } 63017 63018 fi # end freetype needed 63019 63020 63021 63022 63023 63024 63025 63026 # Check whether --with-alsa was given. 63027 if test "${with_alsa+set}" = set; then : 63028 withval=$with_alsa; 63029 fi 63030 63031 63032 # Check whether --with-alsa-include was given. 63033 if test "${with_alsa_include+set}" = set; then : 63034 withval=$with_alsa_include; 63035 fi 63036 63037 63038 # Check whether --with-alsa-lib was given. 63039 if test "${with_alsa_lib+set}" = set; then : 63040 withval=$with_alsa_lib; 63041 fi 63042 63043 63044 if test "x$NEEDS_LIB_ALSA" = xfalse; then 63045 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 63046 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 63047 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 63048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 63049 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 63050 fi 63051 ALSA_CFLAGS= 63052 ALSA_LIBS= 63053 else 63054 ALSA_FOUND=no 63055 63056 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 63057 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 63058 fi 63059 63060 if test "x${with_alsa}" != x; then 63061 ALSA_LIBS="-L${with_alsa}/lib -lasound" 63062 ALSA_CFLAGS="-I${with_alsa}/include" 63063 ALSA_FOUND=yes 63064 fi 63065 if test "x${with_alsa_include}" != x; then 63066 ALSA_CFLAGS="-I${with_alsa_include}" 63067 ALSA_FOUND=yes 63068 fi 63069 if test "x${with_alsa_lib}" != x; then 63070 ALSA_LIBS="-L${with_alsa_lib} -lasound" 63071 ALSA_FOUND=yes 63072 fi 63073 # Do not try pkg-config if we have a sysroot set. 63074 if test "x$SYSROOT" = x; then 63075 if test "x$ALSA_FOUND" = xno; then 63076 63077 pkg_failed=no 63078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 63079 $as_echo_n "checking for ALSA... " >&6; } 63080 63081 if test -n "$ALSA_CFLAGS"; then 63082 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 63083 elif test -n "$PKG_CONFIG"; then 63084 if test -n "$PKG_CONFIG" && \ 63085 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 63086 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 63087 ac_status=$? 63088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63089 test $ac_status = 0; }; then 63090 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 63091 else 63092 pkg_failed=yes 63093 fi 63094 else 63095 pkg_failed=untried 63096 fi 63097 if test -n "$ALSA_LIBS"; then 63098 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 63099 elif test -n "$PKG_CONFIG"; then 63100 if test -n "$PKG_CONFIG" && \ 63101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 63102 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 63103 ac_status=$? 63104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63105 test $ac_status = 0; }; then 63106 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 63107 else 63108 pkg_failed=yes 63109 fi 63110 else 63111 pkg_failed=untried 63112 fi 63113 63114 63115 63116 if test $pkg_failed = yes; then 63117 63118 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63119 _pkg_short_errors_supported=yes 63120 else 63121 _pkg_short_errors_supported=no 63122 fi 63123 if test $_pkg_short_errors_supported = yes; then 63124 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 63125 else 63126 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 63127 fi 63128 # Put the nasty error message in config.log where it belongs 63129 echo "$ALSA_PKG_ERRORS" >&5 63130 63131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63132 $as_echo "no" >&6; } 63133 ALSA_FOUND=no 63134 elif test $pkg_failed = untried; then 63135 ALSA_FOUND=no 63136 else 63137 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 63138 ALSA_LIBS=$pkg_cv_ALSA_LIBS 63139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63140 $as_echo "yes" >&6; } 63141 ALSA_FOUND=yes 63142 fi 63143 fi 63144 fi 63145 if test "x$ALSA_FOUND" = xno; then 63146 for ac_header in alsa/asoundlib.h 63147 do : 63148 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 63149 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 63150 cat >>confdefs.h <<_ACEOF 63151 #define HAVE_ALSA_ASOUNDLIB_H 1 63152 _ACEOF 63153 63154 ALSA_FOUND=yes 63155 ALSA_CFLAGS=-Iignoreme 63156 ALSA_LIBS=-lasound 63157 DEFAULT_ALSA=yes 63158 63159 else 63160 ALSA_FOUND=no 63161 63162 fi 63163 63164 done 63165 63166 fi 63167 if test "x$ALSA_FOUND" = xno; then 63168 63169 # Print a helpful message on how to acquire the necessary build dependency. 63170 # alsa is the help tag: freetype, cups, alsa etc 63171 MISSING_DEPENDENCY=alsa 63172 63173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63174 cygwin_help $MISSING_DEPENDENCY 63175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63176 msys_help $MISSING_DEPENDENCY 63177 else 63178 PKGHANDLER_COMMAND= 63179 63180 case $PKGHANDLER in 63181 apt-get) 63182 apt_help $MISSING_DEPENDENCY ;; 63183 yum) 63184 yum_help $MISSING_DEPENDENCY ;; 63185 brew) 63186 brew_help $MISSING_DEPENDENCY ;; 63187 port) 63188 port_help $MISSING_DEPENDENCY ;; 63189 pkgutil) 63190 pkgutil_help $MISSING_DEPENDENCY ;; 63191 pkgadd) 63192 pkgadd_help $MISSING_DEPENDENCY ;; 63193 esac 63194 63195 if test "x$PKGHANDLER_COMMAND" != x; then 63196 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63197 fi 63198 fi 63199 63200 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 63201 fi 63202 fi 63203 63204 63205 63206 63207 63208 63209 # Check whether --with-libffi was given. 63210 if test "${with_libffi+set}" = set; then : 63211 withval=$with_libffi; 63212 fi 63213 63214 63215 # Check whether --with-libffi-include was given. 63216 if test "${with_libffi_include+set}" = set; then : 63217 withval=$with_libffi_include; 63218 fi 63219 63220 63221 # Check whether --with-libffi-lib was given. 63222 if test "${with_libffi_lib+set}" = set; then : 63223 withval=$with_libffi_lib; 63224 fi 63225 63226 # Check whether --enable-libffi-bundling was given. 63227 if test "${enable_libffi_bundling+set}" = set; then : 63228 enableval=$enable_libffi_bundling; 63229 fi 63230 63231 63232 if test "x$NEEDS_LIB_FFI" = xfalse; then 63233 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 63234 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 63235 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 63236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 63237 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 63238 fi 63239 LIBFFI_CFLAGS= 63240 LIBFFI_LIBS= 63241 else 63242 LIBFFI_FOUND=no 63243 63244 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 63245 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 63246 fi 63247 63248 if test "x${with_libffi}" != x; then 63249 LIBFFI_LIB_PATH="${with_libffi}/lib" 63250 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 63251 LIBFFI_CFLAGS="-I${with_libffi}/include" 63252 LIBFFI_FOUND=yes 63253 fi 63254 if test "x${with_libffi_include}" != x; then 63255 LIBFFI_CFLAGS="-I${with_libffi_include}" 63256 LIBFFI_FOUND=yes 63257 fi 63258 if test "x${with_libffi_lib}" != x; then 63259 LIBFFI_LIB_PATH="${with_libffi_lib}" 63260 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 63261 LIBFFI_FOUND=yes 63262 fi 63263 # Do not try pkg-config if we have a sysroot set. 63264 if test "x$SYSROOT" = x; then 63265 if test "x$LIBFFI_FOUND" = xno; then 63266 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 63267 63268 pkg_failed=no 63269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 63270 $as_echo_n "checking for LIBFFI... " >&6; } 63271 63272 if test -n "$LIBFFI_CFLAGS"; then 63273 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 63274 elif test -n "$PKG_CONFIG"; then 63275 if test -n "$PKG_CONFIG" && \ 63276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 63277 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 63278 ac_status=$? 63279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63280 test $ac_status = 0; }; then 63281 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 63282 else 63283 pkg_failed=yes 63284 fi 63285 else 63286 pkg_failed=untried 63287 fi 63288 if test -n "$LIBFFI_LIBS"; then 63289 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 63290 elif test -n "$PKG_CONFIG"; then 63291 if test -n "$PKG_CONFIG" && \ 63292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 63293 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 63294 ac_status=$? 63295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63296 test $ac_status = 0; }; then 63297 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 63298 else 63299 pkg_failed=yes 63300 fi 63301 else 63302 pkg_failed=untried 63303 fi 63304 63305 63306 63307 if test $pkg_failed = yes; then 63308 63309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63310 _pkg_short_errors_supported=yes 63311 else 63312 _pkg_short_errors_supported=no 63313 fi 63314 if test $_pkg_short_errors_supported = yes; then 63315 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 63316 else 63317 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 63318 fi 63319 # Put the nasty error message in config.log where it belongs 63320 echo "$LIBFFI_PKG_ERRORS" >&5 63321 63322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63323 $as_echo "no" >&6; } 63324 LIBFFI_FOUND=no 63325 elif test $pkg_failed = untried; then 63326 LIBFFI_FOUND=no 63327 else 63328 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 63329 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 63330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63331 $as_echo "yes" >&6; } 63332 LIBFFI_FOUND=yes 63333 fi 63334 fi 63335 fi 63336 if test "x$LIBFFI_FOUND" = xno; then 63337 for ac_header in ffi.h 63338 do : 63339 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 63340 if test "x$ac_cv_header_ffi_h" = xyes; then : 63341 cat >>confdefs.h <<_ACEOF 63342 #define HAVE_FFI_H 1 63343 _ACEOF 63344 63345 LIBFFI_FOUND=yes 63346 LIBFFI_CFLAGS= 63347 LIBFFI_LIBS=-lffi 63348 63349 else 63350 LIBFFI_FOUND=no 63351 63352 fi 63353 63354 done 63355 63356 fi 63357 if test "x$LIBFFI_FOUND" = xno; then 63358 63359 # Print a helpful message on how to acquire the necessary build dependency. 63360 # ffi is the help tag: freetype, cups, alsa etc 63361 MISSING_DEPENDENCY=ffi 63362 63363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63364 cygwin_help $MISSING_DEPENDENCY 63365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63366 msys_help $MISSING_DEPENDENCY 63367 else 63368 PKGHANDLER_COMMAND= 63369 63370 case $PKGHANDLER in 63371 apt-get) 63372 apt_help $MISSING_DEPENDENCY ;; 63373 yum) 63374 yum_help $MISSING_DEPENDENCY ;; 63375 brew) 63376 brew_help $MISSING_DEPENDENCY ;; 63377 port) 63378 port_help $MISSING_DEPENDENCY ;; 63379 pkgutil) 63380 pkgutil_help $MISSING_DEPENDENCY ;; 63381 pkgadd) 63382 pkgadd_help $MISSING_DEPENDENCY ;; 63383 esac 63384 63385 if test "x$PKGHANDLER_COMMAND" != x; then 63386 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63387 fi 63388 fi 63389 63390 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 63391 fi 63392 63393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 63394 $as_echo_n "checking if libffi works... " >&6; } 63395 ac_ext=c 63396 ac_cpp='$CPP $CPPFLAGS' 63397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63399 ac_compiler_gnu=$ac_cv_c_compiler_gnu 63400 63401 OLD_CFLAGS="$CFLAGS" 63402 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 63403 OLD_LIBS="$LIBS" 63404 LIBS="$LIBS $LIBFFI_LIBS" 63405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63406 /* end confdefs.h. */ 63407 #include <ffi.h> 63408 int 63409 main () 63410 { 63411 63412 ffi_call(NULL, NULL, NULL, NULL); 63413 return 0; 63414 63415 ; 63416 return 0; 63417 } 63418 _ACEOF 63419 if ac_fn_c_try_link "$LINENO"; then : 63420 LIBFFI_WORKS=yes 63421 else 63422 LIBFFI_WORKS=no 63423 63424 fi 63425 rm -f core conftest.err conftest.$ac_objext \ 63426 conftest$ac_exeext conftest.$ac_ext 63427 CFLAGS="$OLD_CFLAGS" 63428 LIBS="$OLD_LIBS" 63429 ac_ext=cpp 63430 ac_cpp='$CXXCPP $CPPFLAGS' 63431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 63434 63435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 63436 $as_echo "$LIBFFI_WORKS" >&6; } 63437 63438 if test "x$LIBFFI_WORKS" = xno; then 63439 63440 # Print a helpful message on how to acquire the necessary build dependency. 63441 # ffi is the help tag: freetype, cups, alsa etc 63442 MISSING_DEPENDENCY=ffi 63443 63444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63445 cygwin_help $MISSING_DEPENDENCY 63446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63447 msys_help $MISSING_DEPENDENCY 63448 else 63449 PKGHANDLER_COMMAND= 63450 63451 case $PKGHANDLER in 63452 apt-get) 63453 apt_help $MISSING_DEPENDENCY ;; 63454 yum) 63455 yum_help $MISSING_DEPENDENCY ;; 63456 brew) 63457 brew_help $MISSING_DEPENDENCY ;; 63458 port) 63459 port_help $MISSING_DEPENDENCY ;; 63460 pkgutil) 63461 pkgutil_help $MISSING_DEPENDENCY ;; 63462 pkgadd) 63463 pkgadd_help $MISSING_DEPENDENCY ;; 63464 esac 63465 63466 if test "x$PKGHANDLER_COMMAND" != x; then 63467 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63468 fi 63469 fi 63470 63471 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 63472 fi 63473 63474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 63475 $as_echo_n "checking if libffi should be bundled... " >&6; } 63476 if test "x$enable_libffi_bundling" = "x"; then 63477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63478 $as_echo "no" >&6; } 63479 ENABLE_LIBFFI_BUNDLING=false 63480 elif test "x$enable_libffi_bundling" = "xno"; then 63481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 63482 $as_echo "no, forced" >&6; } 63483 ENABLE_LIBFFI_BUNDLING=false 63484 elif test "x$enable_libffi_bundling" = "xyes"; then 63485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 63486 $as_echo "yes, forced" >&6; } 63487 ENABLE_LIBFFI_BUNDLING=true 63488 else 63489 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 63490 fi 63491 63492 # Find the libffi.so.X to bundle 63493 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 63494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 63495 $as_echo_n "checking for libffi lib file location... " >&6; } 63496 if test "x${LIBFFI_LIB_PATH}" != x; then 63497 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 63498 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 63499 else 63500 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 63501 fi 63502 else 63503 # If we don't have an explicit path, look in a few obvious places 63504 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 63505 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 63506 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 63507 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 63508 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 63509 else 63510 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 63511 fi 63512 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 63513 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 63514 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 63515 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 63516 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 63517 else 63518 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 63519 fi 63520 else 63521 # Fallback on the default /usr/lib dir 63522 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 63523 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 63524 else 63525 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 63526 fi 63527 fi 63528 fi 63529 # Make sure the wildcard is evaluated 63530 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 63531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 63532 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 63533 fi 63534 fi 63535 63536 63537 63538 63539 63540 63541 63542 if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 63543 # Extract the first word of "llvm-config", so it can be a program name with args. 63544 set dummy llvm-config; ac_word=$2 63545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 63546 $as_echo_n "checking for $ac_word... " >&6; } 63547 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 63548 $as_echo_n "(cached) " >&6 63549 else 63550 if test -n "$LLVM_CONFIG"; then 63551 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 63552 else 63553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 63554 for as_dir in $PATH 63555 do 63556 IFS=$as_save_IFS 63557 test -z "$as_dir" && as_dir=. 63558 for ac_exec_ext in '' $ac_executable_extensions; do 63559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 63560 ac_cv_prog_LLVM_CONFIG="llvm-config" 63561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 63562 break 2 63563 fi 63564 done 63565 done 63566 IFS=$as_save_IFS 63567 63568 fi 63569 fi 63570 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 63571 if test -n "$LLVM_CONFIG"; then 63572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 63573 $as_echo "$LLVM_CONFIG" >&6; } 63574 else 63575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63576 $as_echo "no" >&6; } 63577 fi 63578 63579 63580 63581 if test "x$LLVM_CONFIG" != xllvm-config; then 63582 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 63583 fi 63584 63585 llvm_components="jit mcjit engine nativecodegen native" 63586 unset LLVM_CFLAGS 63587 for flag in $("$LLVM_CONFIG" --cxxflags); do 63588 if echo "${flag}" | grep -q '^-[ID]'; then 63589 if test "${flag}" != "-D_DEBUG" ; then 63590 if test "${LLVM_CFLAGS}" != "" ; then 63591 LLVM_CFLAGS="${LLVM_CFLAGS} " 63592 fi 63593 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 63594 fi 63595 fi 63596 done 63597 llvm_version=$("${LLVM_CONFIG}" --version | $SED 's/\.//; s/svn.*//') 63598 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 63599 63600 unset LLVM_LDFLAGS 63601 for flag in $("${LLVM_CONFIG}" --ldflags); do 63602 if echo "${flag}" | grep -q '^-L'; then 63603 if test "${LLVM_LDFLAGS}" != ""; then 63604 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 63605 fi 63606 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 63607 fi 63608 done 63609 63610 unset LLVM_LIBS 63611 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 63612 if echo "${flag}" | grep -q '^-l'; then 63613 if test "${LLVM_LIBS}" != ""; then 63614 LLVM_LIBS="${LLVM_LIBS} " 63615 fi 63616 LLVM_LIBS="${LLVM_LIBS}${flag}" 63617 fi 63618 done 63619 63620 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 63621 # always properly detect -ltinfo 63622 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 63623 63624 63625 63626 63627 fi 63628 63629 63630 63631 # Check whether --with-libjpeg was given. 63632 if test "${with_libjpeg+set}" = set; then : 63633 withval=$with_libjpeg; 63634 fi 63635 63636 63637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 63638 $as_echo_n "checking for which libjpeg to use... " >&6; } 63639 # default is bundled 63640 DEFAULT_LIBJPEG=bundled 63641 # if user didn't specify, use DEFAULT_LIBJPEG 63642 if test "x${with_libjpeg}" = "x"; then 63643 with_libjpeg=${DEFAULT_LIBJPEG} 63644 fi 63645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 63646 $as_echo "${with_libjpeg}" >&6; } 63647 63648 if test "x${with_libjpeg}" = "xbundled"; then 63649 USE_EXTERNAL_LIBJPEG=false 63650 elif test "x${with_libjpeg}" = "xsystem"; then 63651 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 63652 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 63653 63654 else 63655 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 63656 fi 63657 63658 63659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 63660 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 63661 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 63662 $as_echo_n "(cached) " >&6 63663 else 63664 ac_check_lib_save_LIBS=$LIBS 63665 LIBS="-ljpeg $LIBS" 63666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63667 /* end confdefs.h. */ 63668 63669 /* Override any GCC internal prototype to avoid an error. 63670 Use char because int might match the return type of a GCC 63671 builtin and then its argument prototype would still apply. */ 63672 #ifdef __cplusplus 63673 extern "C" 63674 #endif 63675 char jpeg_CreateDecompress (); 63676 int 63677 main () 63678 { 63679 return jpeg_CreateDecompress (); 63680 ; 63681 return 0; 63682 } 63683 _ACEOF 63684 if ac_fn_cxx_try_link "$LINENO"; then : 63685 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 63686 else 63687 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 63688 fi 63689 rm -f core conftest.err conftest.$ac_objext \ 63690 conftest$ac_exeext conftest.$ac_ext 63691 LIBS=$ac_check_lib_save_LIBS 63692 fi 63693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 63694 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 63695 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 63696 cat >>confdefs.h <<_ACEOF 63697 #define HAVE_LIBJPEG 1 63698 _ACEOF 63699 63700 LIBS="-ljpeg $LIBS" 63701 63702 else 63703 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 63704 fi 63705 63706 63707 USE_EXTERNAL_LIBJPEG=true 63708 else 63709 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 63710 fi 63711 63712 63713 63714 63715 63716 # Check whether --with-giflib was given. 63717 if test "${with_giflib+set}" = set; then : 63718 withval=$with_giflib; 63719 fi 63720 63721 63722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 63723 $as_echo_n "checking for which giflib to use... " >&6; } 63724 # default is bundled 63725 DEFAULT_GIFLIB=bundled 63726 # if user didn't specify, use DEFAULT_GIFLIB 63727 if test "x${with_giflib}" = "x"; then 63728 with_giflib=${DEFAULT_GIFLIB} 63729 fi 63730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 63731 $as_echo "${with_giflib}" >&6; } 63732 63733 if test "x${with_giflib}" = "xbundled"; then 63734 USE_EXTERNAL_LIBGIF=false 63735 elif test "x${with_giflib}" = "xsystem"; then 63736 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 63737 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 63738 63739 else 63740 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 63741 fi 63742 63743 63744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 63745 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 63746 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 63747 $as_echo_n "(cached) " >&6 63748 else 63749 ac_check_lib_save_LIBS=$LIBS 63750 LIBS="-lgif $LIBS" 63751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63752 /* end confdefs.h. */ 63753 63754 /* Override any GCC internal prototype to avoid an error. 63755 Use char because int might match the return type of a GCC 63756 builtin and then its argument prototype would still apply. */ 63757 #ifdef __cplusplus 63758 extern "C" 63759 #endif 63760 char DGifGetCode (); 63761 int 63762 main () 63763 { 63764 return DGifGetCode (); 63765 ; 63766 return 0; 63767 } 63768 _ACEOF 63769 if ac_fn_cxx_try_link "$LINENO"; then : 63770 ac_cv_lib_gif_DGifGetCode=yes 63771 else 63772 ac_cv_lib_gif_DGifGetCode=no 63773 fi 63774 rm -f core conftest.err conftest.$ac_objext \ 63775 conftest$ac_exeext conftest.$ac_ext 63776 LIBS=$ac_check_lib_save_LIBS 63777 fi 63778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 63779 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 63780 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 63781 cat >>confdefs.h <<_ACEOF 63782 #define HAVE_LIBGIF 1 63783 _ACEOF 63784 63785 LIBS="-lgif $LIBS" 63786 63787 else 63788 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 63789 fi 63790 63791 63792 USE_EXTERNAL_LIBGIF=true 63793 else 63794 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 63795 fi 63796 63797 63798 63799 63800 63801 # Check whether --with-libpng was given. 63802 if test "${with_libpng+set}" = set; then : 63803 withval=$with_libpng; 63804 fi 63805 63806 63807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 63808 $as_echo_n "checking for which libpng to use... " >&6; } 63809 63810 # default is bundled 63811 DEFAULT_LIBPNG=bundled 63812 # if user didn't specify, use DEFAULT_LIBPNG 63813 if test "x${with_libpng}" = "x"; then 63814 with_libpng=${DEFAULT_LIBPNG} 63815 fi 63816 63817 if test "x${with_libpng}" = "xbundled"; then 63818 USE_EXTERNAL_LIBPNG=false 63819 PNG_CFLAGS="" 63820 PNG_LIBS="" 63821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63822 $as_echo "bundled" >&6; } 63823 elif test "x${with_libpng}" = "xsystem"; then 63824 63825 pkg_failed=no 63826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 63827 $as_echo_n "checking for PNG... " >&6; } 63828 63829 if test -n "$PNG_CFLAGS"; then 63830 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 63831 elif test -n "$PKG_CONFIG"; then 63832 if test -n "$PKG_CONFIG" && \ 63833 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63834 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63835 ac_status=$? 63836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63837 test $ac_status = 0; }; then 63838 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 63839 else 63840 pkg_failed=yes 63841 fi 63842 else 63843 pkg_failed=untried 63844 fi 63845 if test -n "$PNG_LIBS"; then 63846 pkg_cv_PNG_LIBS="$PNG_LIBS" 63847 elif test -n "$PKG_CONFIG"; then 63848 if test -n "$PKG_CONFIG" && \ 63849 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63850 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63851 ac_status=$? 63852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63853 test $ac_status = 0; }; then 63854 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 63855 else 63856 pkg_failed=yes 63857 fi 63858 else 63859 pkg_failed=untried 63860 fi 63861 63862 63863 63864 if test $pkg_failed = yes; then 63865 63866 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63867 _pkg_short_errors_supported=yes 63868 else 63869 _pkg_short_errors_supported=no 63870 fi 63871 if test $_pkg_short_errors_supported = yes; then 63872 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 63873 else 63874 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 63875 fi 63876 # Put the nasty error message in config.log where it belongs 63877 echo "$PNG_PKG_ERRORS" >&5 63878 63879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63880 $as_echo "no" >&6; } 63881 LIBPNG_FOUND=no 63882 elif test $pkg_failed = untried; then 63883 LIBPNG_FOUND=no 63884 else 63885 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 63886 PNG_LIBS=$pkg_cv_PNG_LIBS 63887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63888 $as_echo "yes" >&6; } 63889 LIBPNG_FOUND=yes 63890 fi 63891 if test "x${LIBPNG_FOUND}" = "xyes"; then 63892 # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS 63893 USE_EXTERNAL_LIBPNG=true 63894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63895 $as_echo "system" >&6; } 63896 else 63897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63898 $as_echo "system not found" >&6; } 63899 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 63900 fi 63901 else 63902 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 63903 fi 63904 63905 63906 63907 63908 63909 63910 63911 # Check whether --with-zlib was given. 63912 if test "${with_zlib+set}" = set; then : 63913 withval=$with_zlib; 63914 fi 63915 63916 63917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 63918 $as_echo_n "checking for compress in -lz... " >&6; } 63919 if ${ac_cv_lib_z_compress+:} false; then : 63920 $as_echo_n "(cached) " >&6 63921 else 63922 ac_check_lib_save_LIBS=$LIBS 63923 LIBS="-lz $LIBS" 63924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63925 /* end confdefs.h. */ 63926 63927 /* Override any GCC internal prototype to avoid an error. 63928 Use char because int might match the return type of a GCC 63929 builtin and then its argument prototype would still apply. */ 63930 #ifdef __cplusplus 63931 extern "C" 63932 #endif 63933 char compress (); 63934 int 63935 main () 63936 { 63937 return compress (); 63938 ; 63939 return 0; 63940 } 63941 _ACEOF 63942 if ac_fn_cxx_try_link "$LINENO"; then : 63943 ac_cv_lib_z_compress=yes 63944 else 63945 ac_cv_lib_z_compress=no 63946 fi 63947 rm -f core conftest.err conftest.$ac_objext \ 63948 conftest$ac_exeext conftest.$ac_ext 63949 LIBS=$ac_check_lib_save_LIBS 63950 fi 63951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 63952 $as_echo "$ac_cv_lib_z_compress" >&6; } 63953 if test "x$ac_cv_lib_z_compress" = xyes; then : 63954 ZLIB_FOUND=yes 63955 else 63956 ZLIB_FOUND=no 63957 fi 63958 63959 63960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 63961 $as_echo_n "checking for which zlib to use... " >&6; } 63962 63963 DEFAULT_ZLIB=system 63964 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63965 # On windows default is bundled...on others default is system 63966 DEFAULT_ZLIB=bundled 63967 fi 63968 63969 if test "x${ZLIB_FOUND}" != "xyes"; then 63970 # If we don't find any system...set default to bundled 63971 DEFAULT_ZLIB=bundled 63972 fi 63973 63974 # If user didn't specify, use DEFAULT_ZLIB 63975 if test "x${with_zlib}" = "x"; then 63976 with_zlib=${DEFAULT_ZLIB} 63977 fi 63978 63979 if test "x${with_zlib}" = "xbundled"; then 63980 USE_EXTERNAL_LIBZ=false 63981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63982 $as_echo "bundled" >&6; } 63983 elif test "x${with_zlib}" = "xsystem"; then 63984 if test "x${ZLIB_FOUND}" = "xyes"; then 63985 USE_EXTERNAL_LIBZ=true 63986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63987 $as_echo "system" >&6; } 63988 else 63989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63990 $as_echo "system not found" >&6; } 63991 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 63992 fi 63993 else 63994 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 63995 fi 63996 63997 63998 63999 64000 64001 # Check whether --with-lcms was given. 64002 if test "${with_lcms+set}" = set; then : 64003 withval=$with_lcms; 64004 fi 64005 64006 64007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 64008 $as_echo_n "checking for which lcms to use... " >&6; } 64009 64010 DEFAULT_LCMS=bundled 64011 # If user didn't specify, use DEFAULT_LCMS 64012 if test "x${with_lcms}" = "x"; then 64013 with_lcms=${DEFAULT_LCMS} 64014 fi 64015 64016 if test "x${with_lcms}" = "xbundled"; then 64017 USE_EXTERNAL_LCMS=false 64018 LCMS_CFLAGS="" 64019 LCMS_LIBS="" 64020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 64021 $as_echo "bundled" >&6; } 64022 elif test "x${with_lcms}" = "xsystem"; then 64023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 64024 $as_echo "system" >&6; } 64025 64026 pkg_failed=no 64027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 64028 $as_echo_n "checking for LCMS... " >&6; } 64029 64030 if test -n "$LCMS_CFLAGS"; then 64031 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 64032 elif test -n "$PKG_CONFIG"; then 64033 if test -n "$PKG_CONFIG" && \ 64034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 64035 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 64036 ac_status=$? 64037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64038 test $ac_status = 0; }; then 64039 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 64040 else 64041 pkg_failed=yes 64042 fi 64043 else 64044 pkg_failed=untried 64045 fi 64046 if test -n "$LCMS_LIBS"; then 64047 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 64048 elif test -n "$PKG_CONFIG"; then 64049 if test -n "$PKG_CONFIG" && \ 64050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 64051 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 64052 ac_status=$? 64053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64054 test $ac_status = 0; }; then 64055 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 64056 else 64057 pkg_failed=yes 64058 fi 64059 else 64060 pkg_failed=untried 64061 fi 64062 64063 64064 64065 if test $pkg_failed = yes; then 64066 64067 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64068 _pkg_short_errors_supported=yes 64069 else 64070 _pkg_short_errors_supported=no 64071 fi 64072 if test $_pkg_short_errors_supported = yes; then 64073 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 64074 else 64075 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 64076 fi 64077 # Put the nasty error message in config.log where it belongs 64078 echo "$LCMS_PKG_ERRORS" >&5 64079 64080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64081 $as_echo "no" >&6; } 64082 LCMS_FOUND=no 64083 elif test $pkg_failed = untried; then 64084 LCMS_FOUND=no 64085 else 64086 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 64087 LCMS_LIBS=$pkg_cv_LCMS_LIBS 64088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64089 $as_echo "yes" >&6; } 64090 LCMS_FOUND=yes 64091 fi 64092 if test "x${LCMS_FOUND}" = "xyes"; then 64093 # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS 64094 USE_EXTERNAL_LCMS=true 64095 else 64096 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 64097 fi 64098 else 64099 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 64100 fi 64101 64102 64103 64104 64105 64106 64107 64108 64109 64110 64111 64112 64113 64114 # Setup libm (the maths library) 64115 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 64116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 64117 $as_echo_n "checking for cos in -lm... " >&6; } 64118 if ${ac_cv_lib_m_cos+:} false; then : 64119 $as_echo_n "(cached) " >&6 64120 else 64121 ac_check_lib_save_LIBS=$LIBS 64122 LIBS="-lm $LIBS" 64123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64124 /* end confdefs.h. */ 64125 64126 /* Override any GCC internal prototype to avoid an error. 64127 Use char because int might match the return type of a GCC 64128 builtin and then its argument prototype would still apply. */ 64129 #ifdef __cplusplus 64130 extern "C" 64131 #endif 64132 char cos (); 64133 int 64134 main () 64135 { 64136 return cos (); 64137 ; 64138 return 0; 64139 } 64140 _ACEOF 64141 if ac_fn_cxx_try_link "$LINENO"; then : 64142 ac_cv_lib_m_cos=yes 64143 else 64144 ac_cv_lib_m_cos=no 64145 fi 64146 rm -f core conftest.err conftest.$ac_objext \ 64147 conftest$ac_exeext conftest.$ac_ext 64148 LIBS=$ac_check_lib_save_LIBS 64149 fi 64150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 64151 $as_echo "$ac_cv_lib_m_cos" >&6; } 64152 if test "x$ac_cv_lib_m_cos" = xyes; then : 64153 cat >>confdefs.h <<_ACEOF 64154 #define HAVE_LIBM 1 64155 _ACEOF 64156 64157 LIBS="-lm $LIBS" 64158 64159 else 64160 64161 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 64162 $as_echo "$as_me: Maths library was not found" >&6;} 64163 64164 fi 64165 64166 LIBM="-lm" 64167 else 64168 LIBM="" 64169 fi 64170 64171 64172 # Setup libdl (for dynamic library loading) 64173 save_LIBS="$LIBS" 64174 LIBS="" 64175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 64176 $as_echo_n "checking for dlopen in -ldl... " >&6; } 64177 if ${ac_cv_lib_dl_dlopen+:} false; then : 64178 $as_echo_n "(cached) " >&6 64179 else 64180 ac_check_lib_save_LIBS=$LIBS 64181 LIBS="-ldl $LIBS" 64182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64183 /* end confdefs.h. */ 64184 64185 /* Override any GCC internal prototype to avoid an error. 64186 Use char because int might match the return type of a GCC 64187 builtin and then its argument prototype would still apply. */ 64188 #ifdef __cplusplus 64189 extern "C" 64190 #endif 64191 char dlopen (); 64192 int 64193 main () 64194 { 64195 return dlopen (); 64196 ; 64197 return 0; 64198 } 64199 _ACEOF 64200 if ac_fn_cxx_try_link "$LINENO"; then : 64201 ac_cv_lib_dl_dlopen=yes 64202 else 64203 ac_cv_lib_dl_dlopen=no 64204 fi 64205 rm -f core conftest.err conftest.$ac_objext \ 64206 conftest$ac_exeext conftest.$ac_ext 64207 LIBS=$ac_check_lib_save_LIBS 64208 fi 64209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 64210 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 64211 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 64212 cat >>confdefs.h <<_ACEOF 64213 #define HAVE_LIBDL 1 64214 _ACEOF 64215 64216 LIBS="-ldl $LIBS" 64217 64218 fi 64219 64220 LIBDL="$LIBS" 64221 64222 LIBS="$save_LIBS" 64223 64224 # Deprecated libraries, keep the flags for backwards compatibility 64225 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 64226 64227 64228 # Check whether --with-dxsdk was given. 64229 if test "${with_dxsdk+set}" = set; then : 64230 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 64231 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 64232 fi 64233 64234 64235 64236 64237 # Check whether --with-dxsdk-lib was given. 64238 if test "${with_dxsdk_lib+set}" = set; then : 64239 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 64240 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 64241 fi 64242 64243 64244 64245 64246 # Check whether --with-dxsdk-include was given. 64247 if test "${with_dxsdk_include+set}" = set; then : 64248 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 64249 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 64250 fi 64251 64252 64253 fi 64254 64255 # Control if libzip can use mmap. Available for purposes of overriding. 64256 LIBZIP_CAN_USE_MMAP=true 64257 64258 64259 64260 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 64261 # Find the root of the Solaris Studio installation from the compiler path 64262 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 64263 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 64264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 64265 $as_echo_n "checking for libstlport.so.1... " >&6; } 64266 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 64267 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 64268 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 64269 fi 64270 if test -f "$STLPORT_LIB"; then 64271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 64272 $as_echo "yes, $STLPORT_LIB" >&6; } 64273 64274 # Only process if variable expands to non-empty 64275 64276 if test "x$STLPORT_LIB" != x; then 64277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64278 64279 # Input might be given as Windows format, start by converting to 64280 # unix format. 64281 path="$STLPORT_LIB" 64282 new_path=`$CYGPATH -u "$path"` 64283 64284 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64285 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64286 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64287 # "foo.exe" is OK but "foo" is an error. 64288 # 64289 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64290 # It is also a way to make sure we got the proper file name for the real test later on. 64291 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64292 if test "x$test_shortpath" = x; then 64293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 64294 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 64295 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 64296 fi 64297 64298 # Call helper function which possibly converts this using DOS-style short mode. 64299 # If so, the updated path is stored in $new_path. 64300 64301 input_path="$new_path" 64302 # Check if we need to convert this using DOS-style short mode. If the path 64303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64304 # take no chances and rewrite it. 64305 # Note: m4 eats our [], so we need to use [ and ] instead. 64306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64307 if test "x$has_forbidden_chars" != x; then 64308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64309 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64310 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64311 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64312 # Going to short mode and back again did indeed matter. Since short mode is 64313 # case insensitive, let's make it lowercase to improve readability. 64314 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64315 # Now convert it back to Unix-style (cygpath) 64316 input_path=`$CYGPATH -u "$shortmode_path"` 64317 new_path="$input_path" 64318 fi 64319 fi 64320 64321 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64322 if test "x$test_cygdrive_prefix" = x; then 64323 # As a simple fix, exclude /usr/bin since it's not a real path. 64324 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64325 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64326 # a path prefixed by /cygdrive for fixpath to work. 64327 new_path="$CYGWIN_ROOT_PATH$input_path" 64328 fi 64329 fi 64330 64331 64332 if test "x$path" != "x$new_path"; then 64333 STLPORT_LIB="$new_path" 64334 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 64335 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 64336 fi 64337 64338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64339 64340 path="$STLPORT_LIB" 64341 has_colon=`$ECHO $path | $GREP ^.:` 64342 new_path="$path" 64343 if test "x$has_colon" = x; then 64344 # Not in mixed or Windows style, start by that. 64345 new_path=`cmd //c echo $path` 64346 fi 64347 64348 64349 input_path="$new_path" 64350 # Check if we need to convert this using DOS-style short mode. If the path 64351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64352 # take no chances and rewrite it. 64353 # Note: m4 eats our [], so we need to use [ and ] instead. 64354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64355 if test "x$has_forbidden_chars" != x; then 64356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64357 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64358 fi 64359 64360 64361 windows_path="$new_path" 64362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64363 unix_path=`$CYGPATH -u "$windows_path"` 64364 new_path="$unix_path" 64365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64367 new_path="$unix_path" 64368 fi 64369 64370 if test "x$path" != "x$new_path"; then 64371 STLPORT_LIB="$new_path" 64372 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 64373 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 64374 fi 64375 64376 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64377 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64378 64379 else 64380 # We're on a unix platform. Hooray! :) 64381 path="$STLPORT_LIB" 64382 has_space=`$ECHO "$path" | $GREP " "` 64383 if test "x$has_space" != x; then 64384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 64385 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 64386 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64387 fi 64388 64389 # Use eval to expand a potential ~ 64390 eval path="$path" 64391 if test ! -f "$path" && test ! -d "$path"; then 64392 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 64393 fi 64394 64395 if test -d "$path"; then 64396 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 64397 else 64398 dir="`$DIRNAME "$path"`" 64399 base="`$BASENAME "$path"`" 64400 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 64401 fi 64402 fi 64403 fi 64404 64405 else 64406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 64407 $as_echo "no, not found at $STLPORT_LIB" >&6; } 64408 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 64409 fi 64410 64411 fi 64412 64413 64414 64415 # Check whether --with-libelf was given. 64416 if test "${with_libelf+set}" = set; then : 64417 withval=$with_libelf; 64418 fi 64419 64420 64421 # Check whether --with-libelf-include was given. 64422 if test "${with_libelf_include+set}" = set; then : 64423 withval=$with_libelf_include; 64424 fi 64425 64426 64427 # Check whether --with-libelf-lib was given. 64428 if test "${with_libelf_lib+set}" = set; then : 64429 withval=$with_libelf_lib; 64430 fi 64431 64432 64433 if test "x$ENABLE_AOT" = xfalse; then 64434 if (test "x${with_libelf}" != x && test "x${with_libelf}" != xno) || \ 64435 (test "x${with_libelf_include}" != x && test "x${with_libelf_include}" != xno) || \ 64436 (test "x${with_libelf_lib}" != x && test "x${with_libelf_lib}" != xno); then 64437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libelf is not used, so --with-libelf[-*] is ignored" >&5 64438 $as_echo "$as_me: WARNING: libelf is not used, so --with-libelf[-*] is ignored" >&2;} 64439 fi 64440 LIBELF_CFLAGS= 64441 LIBELF_LIBS= 64442 else 64443 LIBELF_FOUND=no 64444 64445 if test "x${with_libelf}" = xno || test "x${with_libelf_include}" = xno || test "x${with_libelf_lib}" = xno; then 64446 ENABLE_AOT="false" 64447 if test "x${enable_aot}" = xyes; then 64448 as_fn_error $? "libelf is explicitly disabled, cannot build AOT. Enable libelf or remove --enable-aot to disable AOT." "$LINENO" 5 64449 fi 64450 else 64451 if test "x${with_libelf}" != x; then 64452 ELF_LIBS="-L${with_libelf}/lib -lelf" 64453 ELF_CFLAGS="-I${with_libelf}/include" 64454 LIBELF_FOUND=yes 64455 fi 64456 if test "x${with_libelf_include}" != x; then 64457 ELF_CFLAGS="-I${with_libelf_include}" 64458 LIBELF_FOUND=yes 64459 fi 64460 if test "x${with_libelf_lib}" != x; then 64461 ELF_LIBS="-L${with_libelf_lib} -lelf" 64462 LIBELF_FOUND=yes 64463 fi 64464 # Do not try pkg-config if we have a sysroot set. 64465 if test "x$SYSROOT" = x; then 64466 if test "x$LIBELF_FOUND" = xno; then 64467 # Figure out ELF_CFLAGS and ELF_LIBS 64468 64469 pkg_failed=no 64470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 64471 $as_echo_n "checking for ELF... " >&6; } 64472 64473 if test -n "$ELF_CFLAGS"; then 64474 pkg_cv_ELF_CFLAGS="$ELF_CFLAGS" 64475 elif test -n "$PKG_CONFIG"; then 64476 if test -n "$PKG_CONFIG" && \ 64477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5 64478 ($PKG_CONFIG --exists --print-errors "libelf") 2>&5 64479 ac_status=$? 64480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64481 test $ac_status = 0; }; then 64482 pkg_cv_ELF_CFLAGS=`$PKG_CONFIG --cflags "libelf" 2>/dev/null` 64483 else 64484 pkg_failed=yes 64485 fi 64486 else 64487 pkg_failed=untried 64488 fi 64489 if test -n "$ELF_LIBS"; then 64490 pkg_cv_ELF_LIBS="$ELF_LIBS" 64491 elif test -n "$PKG_CONFIG"; then 64492 if test -n "$PKG_CONFIG" && \ 64493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5 64494 ($PKG_CONFIG --exists --print-errors "libelf") 2>&5 64495 ac_status=$? 64496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64497 test $ac_status = 0; }; then 64498 pkg_cv_ELF_LIBS=`$PKG_CONFIG --libs "libelf" 2>/dev/null` 64499 else 64500 pkg_failed=yes 64501 fi 64502 else 64503 pkg_failed=untried 64504 fi 64505 64506 64507 64508 if test $pkg_failed = yes; then 64509 64510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64511 _pkg_short_errors_supported=yes 64512 else 64513 _pkg_short_errors_supported=no 64514 fi 64515 if test $_pkg_short_errors_supported = yes; then 64516 ELF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libelf" 2>&1` 64517 else 64518 ELF_PKG_ERRORS=`$PKG_CONFIG --print-errors "libelf" 2>&1` 64519 fi 64520 # Put the nasty error message in config.log where it belongs 64521 echo "$ELF_PKG_ERRORS" >&5 64522 64523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64524 $as_echo "no" >&6; } 64525 LIBELF_FOUND=no 64526 elif test $pkg_failed = untried; then 64527 LIBELF_FOUND=no 64528 else 64529 ELF_CFLAGS=$pkg_cv_ELF_CFLAGS 64530 ELF_LIBS=$pkg_cv_ELF_LIBS 64531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64532 $as_echo "yes" >&6; } 64533 LIBELF_FOUND=yes 64534 fi 64535 fi 64536 fi 64537 if test "x$LIBELF_FOUND" = xno; then 64538 for ac_header in libelf.h 64539 do : 64540 ac_fn_cxx_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default" 64541 if test "x$ac_cv_header_libelf_h" = xyes; then : 64542 cat >>confdefs.h <<_ACEOF 64543 #define HAVE_LIBELF_H 1 64544 _ACEOF 64545 64546 LIBELF_FOUND=yes 64547 ELF_CFLAGS= 64548 ELF_LIBS=-lelf 64549 64550 else 64551 LIBELF_FOUND=no 64552 64553 fi 64554 64555 done 64556 64557 fi 64558 if test "x$LIBELF_FOUND" = xno; then 64559 ENABLE_AOT="false" 64560 64561 # Print a helpful message on how to acquire the necessary build dependency. 64562 # elf is the help tag: freetype, cups, alsa etc 64563 MISSING_DEPENDENCY=elf 64564 64565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64566 cygwin_help $MISSING_DEPENDENCY 64567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64568 msys_help $MISSING_DEPENDENCY 64569 else 64570 PKGHANDLER_COMMAND= 64571 64572 case $PKGHANDLER in 64573 apt-get) 64574 apt_help $MISSING_DEPENDENCY ;; 64575 yum) 64576 yum_help $MISSING_DEPENDENCY ;; 64577 brew) 64578 brew_help $MISSING_DEPENDENCY ;; 64579 port) 64580 port_help $MISSING_DEPENDENCY ;; 64581 pkgutil) 64582 pkgutil_help $MISSING_DEPENDENCY ;; 64583 pkgadd) 64584 pkgadd_help $MISSING_DEPENDENCY ;; 64585 esac 64586 64587 if test "x$PKGHANDLER_COMMAND" != x; then 64588 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64589 fi 64590 fi 64591 64592 if test "x${enable_aot}" = xyes; then 64593 as_fn_error $? "libelf not found, cannot build AOT. Remove --enable-aot to disable AOT or: $HELP_MSG" "$LINENO" 5 64594 else 64595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libelf not found, cannot build AOT. $HELP_MSG" >&5 64596 $as_echo "$as_me: WARNING: libelf not found, cannot build AOT. $HELP_MSG" >&2;} 64597 fi 64598 else 64599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libelf works" >&5 64600 $as_echo_n "checking if libelf works... " >&6; } 64601 ac_ext=c 64602 ac_cpp='$CPP $CPPFLAGS' 64603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64605 ac_compiler_gnu=$ac_cv_c_compiler_gnu 64606 64607 OLD_CFLAGS="$CFLAGS" 64608 CFLAGS="$CFLAGS $ELF_CFLAGS" 64609 OLD_LIBS="$LIBS" 64610 LIBS="$LIBS $ELF_LIBS" 64611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64612 /* end confdefs.h. */ 64613 #include <libelf.h> 64614 int 64615 main () 64616 { 64617 64618 elf_version(0); 64619 return 0; 64620 64621 ; 64622 return 0; 64623 } 64624 _ACEOF 64625 if ac_fn_c_try_link "$LINENO"; then : 64626 LIBELF_WORKS=yes 64627 else 64628 LIBELF_WORKS=no 64629 64630 fi 64631 rm -f core conftest.err conftest.$ac_objext \ 64632 conftest$ac_exeext conftest.$ac_ext 64633 CFLAGS="$OLD_CFLAGS" 64634 LIBS="$OLD_LIBS" 64635 ac_ext=cpp 64636 ac_cpp='$CXXCPP $CPPFLAGS' 64637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64640 64641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBELF_WORKS" >&5 64642 $as_echo "$LIBELF_WORKS" >&6; } 64643 64644 if test "x$LIBELF_WORKS" = xno; then 64645 ENABLE_AOT="false" 64646 64647 # Print a helpful message on how to acquire the necessary build dependency. 64648 # elf is the help tag: freetype, cups, alsa etc 64649 MISSING_DEPENDENCY=elf 64650 64651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64652 cygwin_help $MISSING_DEPENDENCY 64653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64654 msys_help $MISSING_DEPENDENCY 64655 else 64656 PKGHANDLER_COMMAND= 64657 64658 case $PKGHANDLER in 64659 apt-get) 64660 apt_help $MISSING_DEPENDENCY ;; 64661 yum) 64662 yum_help $MISSING_DEPENDENCY ;; 64663 brew) 64664 brew_help $MISSING_DEPENDENCY ;; 64665 port) 64666 port_help $MISSING_DEPENDENCY ;; 64667 pkgutil) 64668 pkgutil_help $MISSING_DEPENDENCY ;; 64669 pkgadd) 64670 pkgadd_help $MISSING_DEPENDENCY ;; 64671 esac 64672 64673 if test "x$PKGHANDLER_COMMAND" != x; then 64674 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64675 fi 64676 fi 64677 64678 if test "x$enable_aot" = "xyes"; then 64679 as_fn_error $? "Found libelf but could not link and compile with it. Remove --enable-aot to disable AOT or: $HELP_MSG" "$LINENO" 5 64680 else 64681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found libelf but could not link and compile with it. $HELP_MSG" >&5 64682 $as_echo "$as_me: WARNING: Found libelf but could not link and compile with it. $HELP_MSG" >&2;} 64683 fi 64684 fi 64685 fi 64686 fi 64687 fi 64688 64689 64690 64691 64692 64693 64694 64695 64696 64697 64698 64699 64700 64701 64702 64703 64704 64705 64706 # Hotspot setup depends on lib checks (AOT needs libelf). 64707 64708 64709 # The user can in some cases supply additional jvm features. For the custom 64710 # variant, this defines the entire variant. 64711 64712 # Check whether --with-jvm-features was given. 64713 if test "${with_jvm_features+set}" = set; then : 64714 withval=$with_jvm_features; 64715 fi 64716 64717 if test "x$with_jvm_features" != x; then 64718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 64719 $as_echo_n "checking additional JVM features... " >&6; } 64720 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 64721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 64722 $as_echo "$JVM_FEATURES" >&6; } 64723 fi 64724 64725 # Override hotspot cpu definitions for ARM platforms 64726 if test "x$OPENJDK_TARGET_CPU" = xarm; then 64727 HOTSPOT_TARGET_CPU=arm_32 64728 HOTSPOT_TARGET_CPU_DEFINE="ARM32" 64729 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 64730 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 64731 elif test "x$OPENJDK_TARGET_CPU" = xaarch64 && test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then 64732 HOTSPOT_TARGET_CPU=arm_64 64733 HOTSPOT_TARGET_CPU_ARCH=arm 64734 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 64735 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 64736 fi 64737 64738 # Verify that dependencies are met for explicitly set features. 64739 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 64740 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 64741 fi 64742 64743 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 64744 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 64745 fi 64746 64747 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 64748 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 64749 fi 64750 64751 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 64752 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 64753 fi 64754 64755 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 64756 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 64757 fi 64758 64759 # Turn on additional features based on other parts of configure 64760 if test "x$INCLUDE_DTRACE" = "xtrue"; then 64761 JVM_FEATURES="$JVM_FEATURES dtrace" 64762 else 64763 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 64764 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 64765 fi 64766 fi 64767 64768 if test "x$STATIC_BUILD" = "xtrue"; then 64769 JVM_FEATURES="$JVM_FEATURES static-build" 64770 else 64771 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 64772 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 64773 fi 64774 fi 64775 64776 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 64777 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 64778 as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 64779 fi 64780 fi 64781 64782 if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 64783 if [[ " $JVM_FEATURES " =~ " shark " ]] ; then 64784 as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 64785 fi 64786 fi 64787 64788 # Only enable jvmci on x86_64, sparcv9 and aarch64. 64789 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 64790 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 64791 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 64792 JVM_FEATURES_jvmci="jvmci" 64793 else 64794 JVM_FEATURES_jvmci="" 64795 fi 64796 64797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.internal.vm.compiler should be built" >&5 64798 $as_echo_n "checking if jdk.internal.vm.compiler should be built... " >&6; } 64799 if [[ " $JVM_FEATURES " =~ " graal " ]] ; then 64800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64801 $as_echo "yes, forced" >&6; } 64802 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 64803 as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5 64804 fi 64805 INCLUDE_GRAAL="true" 64806 else 64807 # By default enable graal build where AOT is available 64808 if test "x$ENABLE_AOT" = "xtrue"; then 64809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64810 $as_echo "yes" >&6; } 64811 JVM_FEATURES_graal="graal" 64812 INCLUDE_GRAAL="true" 64813 else 64814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64815 $as_echo "no" >&6; } 64816 JVM_FEATURES_graal="" 64817 INCLUDE_GRAAL="false" 64818 fi 64819 fi 64820 64821 64822 64823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 64824 $as_echo_n "checking if aot should be enabled... " >&6; } 64825 if test "x$ENABLE_AOT" = "xtrue"; then 64826 if test "x$enable_aot" = "xyes"; then 64827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64828 $as_echo "yes, forced" >&6; } 64829 else 64830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64831 $as_echo "yes" >&6; } 64832 fi 64833 JVM_FEATURES_aot="aot" 64834 else 64835 if test "x$enable_aot" = "xno"; then 64836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64837 $as_echo "no, forced" >&6; } 64838 else 64839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64840 $as_echo "no" >&6; } 64841 fi 64842 JVM_FEATURES_aot="" 64843 fi 64844 64845 if test "x$OPENJDK_TARGET_CPU" = xarm ; then 64846 # Default to use link time optimizations on minimal on arm 64847 JVM_FEATURES_link_time_opt="link-time-opt" 64848 else 64849 JVM_FEATURES_link_time_opt="" 64850 fi 64851 64852 # All variants but minimal (and custom) get these features 64853 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds" 64854 64855 # Enable features depending on variant. 64856 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal" 64857 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 64858 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 64859 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt" 64860 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 64861 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" 64862 JVM_FEATURES_custom="$JVM_FEATURES" 64863 64864 64865 64866 64867 64868 64869 64870 64871 64872 # Used for verification of Makefiles by check-jvm-feature 64873 64874 64875 # We don't support --with-jvm-interpreter anymore, use zero instead. 64876 64877 64878 # Check whether --with-jvm-interpreter was given. 64879 if test "${with_jvm_interpreter+set}" = set; then : 64880 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 64881 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 64882 fi 64883 64884 64885 64886 64887 ############################################################################### 64888 # 64889 # We need to do some final tweaking, when everything else is done. 64890 # 64891 ############################################################################### 64892 64893 64894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 64895 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 64896 64897 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 64898 ENABLE_INTREE_EC=true 64899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64900 $as_echo "yes" >&6; } 64901 else 64902 ENABLE_INTREE_EC=false 64903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64904 $as_echo "no" >&6; } 64905 fi 64906 64907 64908 64909 64910 # Check whether --enable-jtreg-failure-handler was given. 64911 if test "${enable_jtreg_failure_handler+set}" = set; then : 64912 enableval=$enable_jtreg_failure_handler; 64913 fi 64914 64915 64916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 64917 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 64918 64919 if test "x$enable_jtreg_failure_handler" = "xyes"; then 64920 if test "x$JT_HOME" = "x"; then 64921 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 64922 else 64923 BUILD_FAILURE_HANDLER=true 64924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64925 $as_echo "yes, forced" >&6; } 64926 fi 64927 elif test "x$enable_jtreg_failure_handler" = "xno"; then 64928 BUILD_FAILURE_HANDLER=false 64929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64930 $as_echo "no, forced" >&6; } 64931 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 64932 || test "x$enable_jtreg_failure_handler" = "x"; then 64933 if test "x$JT_HOME" = "x"; then 64934 BUILD_FAILURE_HANDLER=false 64935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 64936 $as_echo "no, missing jtreg" >&6; } 64937 else 64938 BUILD_FAILURE_HANDLER=true 64939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 64940 $as_echo "yes, jtreg present" >&6; } 64941 fi 64942 else 64943 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 64944 fi 64945 64946 64947 64948 64949 # Check whether --enable-generate-classlist was given. 64950 if test "${enable_generate_classlist+set}" = set; then : 64951 enableval=$enable_generate_classlist; 64952 fi 64953 64954 64955 # Check if it's likely that it's possible to generate the classlist. Depending 64956 # on exact jvm configuration it could be possible anyway. 64957 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ; then 64958 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 64959 else 64960 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 64961 fi 64962 64963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 64964 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 64965 if test "x$enable_generate_classlist" = "xyes"; then 64966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64967 $as_echo "yes, forced" >&6; } 64968 ENABLE_GENERATE_CLASSLIST="true" 64969 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 64970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&5 64971 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&2;} 64972 fi 64973 elif test "x$enable_generate_classlist" = "xno"; then 64974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64975 $as_echo "no, forced" >&6; } 64976 ENABLE_GENERATE_CLASSLIST="false" 64977 elif test "x$enable_generate_classlist" = "x"; then 64978 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 64979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64980 $as_echo "yes" >&6; } 64981 ENABLE_GENERATE_CLASSLIST="true" 64982 else 64983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64984 $as_echo "no" >&6; } 64985 ENABLE_GENERATE_CLASSLIST="false" 64986 fi 64987 else 64988 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 64989 fi 64990 64991 64992 64993 64994 ############################################################################### 64995 # 64996 # Configure parts of the build that only affect the build performance, 64997 # not the result. 64998 # 64999 ############################################################################### 65000 65001 65002 # How many cores do we have on this build system? 65003 65004 # Check whether --with-num-cores was given. 65005 if test "${with_num_cores+set}" = set; then : 65006 withval=$with_num_cores; 65007 fi 65008 65009 if test "x$with_num_cores" = x; then 65010 # The number of cores were not specified, try to probe them. 65011 65012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 65013 $as_echo_n "checking for number of cores... " >&6; } 65014 NUM_CORES=1 65015 FOUND_CORES=no 65016 65017 if test -f /proc/cpuinfo; then 65018 # Looks like a Linux (or cygwin) system 65019 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 65020 FOUND_CORES=yes 65021 elif test -x /usr/sbin/psrinfo; then 65022 # Looks like a Solaris system 65023 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 65024 FOUND_CORES=yes 65025 elif test -x /usr/sbin/sysctl; then 65026 # Looks like a MacOSX system 65027 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 65028 FOUND_CORES=yes 65029 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 65030 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 65031 FOUND_CORES=yes 65032 elif test -n "$NUMBER_OF_PROCESSORS"; then 65033 # On windows, look in the env 65034 NUM_CORES=$NUMBER_OF_PROCESSORS 65035 FOUND_CORES=yes 65036 fi 65037 65038 if test "x$FOUND_CORES" = xyes; then 65039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 65040 $as_echo "$NUM_CORES" >&6; } 65041 else 65042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 65043 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 65044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 65045 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 65046 fi 65047 65048 else 65049 NUM_CORES=$with_num_cores 65050 fi 65051 65052 65053 65054 # How much memory do we have on this build system? 65055 65056 # Check whether --with-memory-size was given. 65057 if test "${with_memory_size+set}" = set; then : 65058 withval=$with_memory_size; 65059 fi 65060 65061 if test "x$with_memory_size" = x; then 65062 # The memory size was not specified, try to probe it. 65063 65064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 65065 $as_echo_n "checking for memory size... " >&6; } 65066 # Default to 1024 MB 65067 MEMORY_SIZE=1024 65068 FOUND_MEM=no 65069 65070 if test -f /proc/meminfo; then 65071 # Looks like a Linux (or cygwin) system 65072 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 65073 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 65074 FOUND_MEM=yes 65075 elif test -x /usr/sbin/prtconf; then 65076 # Looks like a Solaris or AIX system 65077 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 65078 FOUND_MEM=yes 65079 elif test -x /usr/sbin/sysctl; then 65080 # Looks like a MacOSX system 65081 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 65082 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 65083 FOUND_MEM=yes 65084 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 65085 # Windows, but without cygwin 65086 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 65087 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 65088 FOUND_MEM=yes 65089 fi 65090 65091 if test "x$FOUND_MEM" = xyes; then 65092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 65093 $as_echo "$MEMORY_SIZE MB" >&6; } 65094 else 65095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 65096 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 65097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 65098 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 65099 fi 65100 65101 else 65102 MEMORY_SIZE=$with_memory_size 65103 fi 65104 65105 65106 65107 # Provide a decent default number of parallel jobs for make depending on 65108 # number of cores, amount of memory and machine architecture. 65109 65110 # Check whether --with-jobs was given. 65111 if test "${with_jobs+set}" = set; then : 65112 withval=$with_jobs; 65113 fi 65114 65115 if test "x$with_jobs" = x; then 65116 # Number of jobs was not specified, calculate. 65117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 65118 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 65119 # Approximate memory in GB. 65120 memory_gb=`expr $MEMORY_SIZE / 1024` 65121 # Pick the lowest of memory in gb and number of cores. 65122 if test "$memory_gb" -lt "$NUM_CORES"; then 65123 JOBS="$memory_gb" 65124 else 65125 JOBS="$NUM_CORES" 65126 fi 65127 if test "$JOBS" -eq "0"; then 65128 JOBS=1 65129 fi 65130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 65131 $as_echo "$JOBS" >&6; } 65132 else 65133 JOBS=$with_jobs 65134 fi 65135 65136 65137 65138 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 65139 65140 # Check whether --with-test-jobs was given. 65141 if test "${with_test_jobs+set}" = set; then : 65142 withval=$with_test_jobs; 65143 fi 65144 65145 if test "x$with_test_jobs" = x; then 65146 TEST_JOBS=0 65147 else 65148 TEST_JOBS=$with_test_jobs 65149 fi 65150 65151 65152 65153 # Setup arguments for the boot jdk (after cores and memory have been setup) 65154 65155 ############################################################################## 65156 # 65157 # Specify jvm options for anything that is run with the Boot JDK. 65158 # Not all JVM:s accept the same arguments on the command line. 65159 # 65160 65161 # Check whether --with-boot-jdk-jvmargs was given. 65162 if test "${with_boot_jdk_jvmargs+set}" = set; then : 65163 withval=$with_boot_jdk_jvmargs; 65164 fi 65165 65166 65167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 65168 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 65169 65170 # Disable special log output when a debug build is used as Boot JDK... 65171 65172 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 65173 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 65174 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 65175 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65176 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65177 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65178 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 65179 JVM_ARG_OK=true 65180 else 65181 $ECHO "Arg failed:" >&5 65182 $ECHO "$OUTPUT" >&5 65183 JVM_ARG_OK=false 65184 fi 65185 65186 65187 # Force en-US environment 65188 65189 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 65190 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 65191 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 65192 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65193 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65194 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65195 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 65196 JVM_ARG_OK=true 65197 else 65198 $ECHO "Arg failed:" >&5 65199 $ECHO "$OUTPUT" >&5 65200 JVM_ARG_OK=false 65201 fi 65202 65203 65204 # Apply user provided options. 65205 65206 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 65207 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 65208 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 65209 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65210 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65211 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65212 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 65213 JVM_ARG_OK=true 65214 else 65215 $ECHO "Arg failed:" >&5 65216 $ECHO "$OUTPUT" >&5 65217 JVM_ARG_OK=false 65218 fi 65219 65220 65221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 65222 $as_echo "$boot_jdk_jvmargs" >&6; } 65223 65224 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 65225 JAVA_FLAGS=$boot_jdk_jvmargs 65226 65227 65228 65229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 65230 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 65231 65232 # Starting amount of heap memory. 65233 65234 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 65235 $ECHO "Command: $JAVA -Xms64M -version" >&5 65236 OUTPUT=`$JAVA -Xms64M -version 2>&1` 65237 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65238 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65239 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65240 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 65241 JVM_ARG_OK=true 65242 else 65243 $ECHO "Arg failed:" >&5 65244 $ECHO "$OUTPUT" >&5 65245 JVM_ARG_OK=false 65246 fi 65247 65248 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 65249 65250 # Maximum amount of heap memory and stack size. 65251 JVM_HEAP_LIMIT_32="1024" 65252 # Running a 64 bit JVM allows for and requires a bigger heap 65253 JVM_HEAP_LIMIT_64="1600" 65254 STACK_SIZE_32=768 65255 STACK_SIZE_64=1536 65256 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 65257 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 65258 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 65259 fi 65260 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 65261 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 65262 fi 65263 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 65264 JVM_HEAP_LIMIT_32=512 65265 JVM_HEAP_LIMIT_64=512 65266 fi 65267 65268 if test "x$BOOT_JDK_BITS" = "x32"; then 65269 STACK_SIZE=$STACK_SIZE_32 65270 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 65271 else 65272 STACK_SIZE=$STACK_SIZE_64 65273 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 65274 fi 65275 65276 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 65277 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 65278 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 65279 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65280 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65281 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65282 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 65283 JVM_ARG_OK=true 65284 else 65285 $ECHO "Arg failed:" >&5 65286 $ECHO "$OUTPUT" >&5 65287 JVM_ARG_OK=false 65288 fi 65289 65290 65291 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 65292 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 65293 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 65294 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65295 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65296 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65297 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 65298 JVM_ARG_OK=true 65299 else 65300 $ECHO "Arg failed:" >&5 65301 $ECHO "$OUTPUT" >&5 65302 JVM_ARG_OK=false 65303 fi 65304 65305 65306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 65307 $as_echo "$boot_jdk_jvmargs_big" >&6; } 65308 65309 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 65310 65311 65312 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 65313 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 65314 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 65315 else 65316 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 65317 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 65318 fi 65319 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 65320 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 65321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 65322 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 65323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 65324 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 65325 65326 65327 # By default, the main javac compilations use big 65328 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 65329 65330 65331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 65332 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 65333 65334 # Use serial gc for small short lived tools if possible 65335 65336 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 65337 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 65338 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 65339 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65340 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65341 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65342 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 65343 JVM_ARG_OK=true 65344 else 65345 $ECHO "Arg failed:" >&5 65346 $ECHO "$OUTPUT" >&5 65347 JVM_ARG_OK=false 65348 fi 65349 65350 65351 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 65352 $ECHO "Command: $JAVA -Xms32M -version" >&5 65353 OUTPUT=`$JAVA -Xms32M -version 2>&1` 65354 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65355 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65356 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65357 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 65358 JVM_ARG_OK=true 65359 else 65360 $ECHO "Arg failed:" >&5 65361 $ECHO "$OUTPUT" >&5 65362 JVM_ARG_OK=false 65363 fi 65364 65365 65366 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 65367 $ECHO "Command: $JAVA -Xmx512M -version" >&5 65368 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 65369 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65370 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65371 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65372 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 65373 JVM_ARG_OK=true 65374 else 65375 $ECHO "Arg failed:" >&5 65376 $ECHO "$OUTPUT" >&5 65377 JVM_ARG_OK=false 65378 fi 65379 65380 65381 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 65382 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 65383 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 65384 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65385 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65386 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65387 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 65388 JVM_ARG_OK=true 65389 else 65390 $ECHO "Arg failed:" >&5 65391 $ECHO "$OUTPUT" >&5 65392 JVM_ARG_OK=false 65393 fi 65394 65395 65396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 65397 $as_echo "$boot_jdk_jvmargs_small" >&6; } 65398 65399 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 65400 65401 65402 JAVA_TOOL_FLAGS_SMALL="" 65403 for f in $JAVA_FLAGS_SMALL; do 65404 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 65405 done 65406 65407 65408 65409 # Setup smart javac (after cores and memory have been setup) 65410 65411 65412 # Check whether --with-sjavac-server-java was given. 65413 if test "${with_sjavac_server_java+set}" = set; then : 65414 withval=$with_sjavac_server_java; 65415 fi 65416 65417 65418 if test "x$with_sjavac_server_java" != x; then 65419 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 65420 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 65421 if test "x$FOUND_VERSION" = x; then 65422 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 65423 fi 65424 else 65425 SJAVAC_SERVER_JAVA="$JAVA" 65426 fi 65427 65428 65429 if test "$MEMORY_SIZE" -gt "3000"; then 65430 65431 $ECHO "Check if jvm arg is ok: -d64" >&5 65432 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 65433 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 65434 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65435 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65436 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65437 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 65438 JVM_ARG_OK=true 65439 else 65440 $ECHO "Arg failed:" >&5 65441 $ECHO "$OUTPUT" >&5 65442 JVM_ARG_OK=false 65443 fi 65444 65445 if test "$JVM_ARG_OK" = true; then 65446 JVM_64BIT=true 65447 JVM_ARG_OK=false 65448 fi 65449 fi 65450 65451 MX_VALUE=`expr $MEMORY_SIZE / 2` 65452 if test "$JVM_64BIT" = true; then 65453 # Set ms lower than mx since more than one instance of the server might 65454 # get launched at the same time before they figure out which instance won. 65455 MS_VALUE=512 65456 if test "$MX_VALUE" -gt "2048"; then 65457 MX_VALUE=2048 65458 fi 65459 else 65460 MS_VALUE=256 65461 if test "$MX_VALUE" -gt "1500"; then 65462 MX_VALUE=1500 65463 fi 65464 fi 65465 if test "$MX_VALUE" -lt "512"; then 65466 MX_VALUE=512 65467 fi 65468 65469 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 65470 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 65471 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 65472 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65473 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65474 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65475 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 65476 JVM_ARG_OK=true 65477 else 65478 $ECHO "Arg failed:" >&5 65479 $ECHO "$OUTPUT" >&5 65480 JVM_ARG_OK=false 65481 fi 65482 65483 65484 65485 # Check whether --enable-sjavac was given. 65486 if test "${enable_sjavac+set}" = set; then : 65487 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 65488 else 65489 ENABLE_SJAVAC="no" 65490 fi 65491 65492 if test "x$JVM_ARG_OK" = "xfalse"; then 65493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 65494 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 65495 ENABLE_SJAVAC="no" 65496 fi 65497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 65498 $as_echo_n "checking whether to use sjavac... " >&6; } 65499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 65500 $as_echo "$ENABLE_SJAVAC" >&6; } 65501 65502 65503 # Check whether --enable-javac-server was given. 65504 if test "${enable_javac_server+set}" = set; then : 65505 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 65506 else 65507 ENABLE_JAVAC_SERVER="yes" 65508 fi 65509 65510 if test "x$JVM_ARG_OK" = "xfalse"; then 65511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 65512 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 65513 ENABLE_JAVAC_SERVER="no" 65514 fi 65515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 65516 $as_echo_n "checking whether to use javac server... " >&6; } 65517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 65518 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 65519 65520 65521 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 65522 # When using a server javac, the small client instances do not need much 65523 # resources. 65524 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 65525 fi 65526 65527 65528 # Setup use of icecc if requested 65529 65530 # Check whether --enable-icecc was given. 65531 if test "${enable_icecc+set}" = set; then : 65532 enableval=$enable_icecc; 65533 fi 65534 65535 65536 if test "x${enable_icecc}" = "xyes"; then 65537 65538 65539 65540 # Publish this variable in the help. 65541 65542 65543 if [ -z "${ICECC_CMD+x}" ]; then 65544 # The variable is not set by user, try to locate tool using the code snippet 65545 for ac_prog in icecc 65546 do 65547 # Extract the first word of "$ac_prog", so it can be a program name with args. 65548 set dummy $ac_prog; ac_word=$2 65549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65550 $as_echo_n "checking for $ac_word... " >&6; } 65551 if ${ac_cv_path_ICECC_CMD+:} false; then : 65552 $as_echo_n "(cached) " >&6 65553 else 65554 case $ICECC_CMD in 65555 [\\/]* | ?:[\\/]*) 65556 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 65557 ;; 65558 *) 65559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65560 for as_dir in $PATH 65561 do 65562 IFS=$as_save_IFS 65563 test -z "$as_dir" && as_dir=. 65564 for ac_exec_ext in '' $ac_executable_extensions; do 65565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65566 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 65567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65568 break 2 65569 fi 65570 done 65571 done 65572 IFS=$as_save_IFS 65573 65574 ;; 65575 esac 65576 fi 65577 ICECC_CMD=$ac_cv_path_ICECC_CMD 65578 if test -n "$ICECC_CMD"; then 65579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 65580 $as_echo "$ICECC_CMD" >&6; } 65581 else 65582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65583 $as_echo "no" >&6; } 65584 fi 65585 65586 65587 test -n "$ICECC_CMD" && break 65588 done 65589 65590 else 65591 # The variable is set, but is it from the command line or the environment? 65592 65593 # Try to remove the string !ICECC_CMD! from our list. 65594 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 65595 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65596 # If it failed, the variable was not from the command line. Ignore it, 65597 # but warn the user (except for BASH, which is always set by the calling BASH). 65598 if test "xICECC_CMD" != xBASH; then 65599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 65600 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 65601 fi 65602 # Try to locate tool using the code snippet 65603 for ac_prog in icecc 65604 do 65605 # Extract the first word of "$ac_prog", so it can be a program name with args. 65606 set dummy $ac_prog; ac_word=$2 65607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65608 $as_echo_n "checking for $ac_word... " >&6; } 65609 if ${ac_cv_path_ICECC_CMD+:} false; then : 65610 $as_echo_n "(cached) " >&6 65611 else 65612 case $ICECC_CMD in 65613 [\\/]* | ?:[\\/]*) 65614 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 65615 ;; 65616 *) 65617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65618 for as_dir in $PATH 65619 do 65620 IFS=$as_save_IFS 65621 test -z "$as_dir" && as_dir=. 65622 for ac_exec_ext in '' $ac_executable_extensions; do 65623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65624 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 65625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65626 break 2 65627 fi 65628 done 65629 done 65630 IFS=$as_save_IFS 65631 65632 ;; 65633 esac 65634 fi 65635 ICECC_CMD=$ac_cv_path_ICECC_CMD 65636 if test -n "$ICECC_CMD"; then 65637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 65638 $as_echo "$ICECC_CMD" >&6; } 65639 else 65640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65641 $as_echo "no" >&6; } 65642 fi 65643 65644 65645 test -n "$ICECC_CMD" && break 65646 done 65647 65648 else 65649 # If it succeeded, then it was overridden by the user. We will use it 65650 # for the tool. 65651 65652 # First remove it from the list of overridden variables, so we can test 65653 # for unknown variables in the end. 65654 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65655 65656 # Check if we try to supply an empty value 65657 if test "x$ICECC_CMD" = x; then 65658 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 65659 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 65660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 65661 $as_echo_n "checking for ICECC_CMD... " >&6; } 65662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65663 $as_echo "disabled" >&6; } 65664 else 65665 # Check if the provided tool contains a complete path. 65666 tool_specified="$ICECC_CMD" 65667 tool_basename="${tool_specified##*/}" 65668 if test "x$tool_basename" = "x$tool_specified"; then 65669 # A command without a complete path is provided, search $PATH. 65670 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 65671 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 65672 # Extract the first word of "$tool_basename", so it can be a program name with args. 65673 set dummy $tool_basename; ac_word=$2 65674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65675 $as_echo_n "checking for $ac_word... " >&6; } 65676 if ${ac_cv_path_ICECC_CMD+:} false; then : 65677 $as_echo_n "(cached) " >&6 65678 else 65679 case $ICECC_CMD in 65680 [\\/]* | ?:[\\/]*) 65681 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 65682 ;; 65683 *) 65684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65685 for as_dir in $PATH 65686 do 65687 IFS=$as_save_IFS 65688 test -z "$as_dir" && as_dir=. 65689 for ac_exec_ext in '' $ac_executable_extensions; do 65690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65691 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 65692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65693 break 2 65694 fi 65695 done 65696 done 65697 IFS=$as_save_IFS 65698 65699 ;; 65700 esac 65701 fi 65702 ICECC_CMD=$ac_cv_path_ICECC_CMD 65703 if test -n "$ICECC_CMD"; then 65704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 65705 $as_echo "$ICECC_CMD" >&6; } 65706 else 65707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65708 $as_echo "no" >&6; } 65709 fi 65710 65711 65712 if test "x$ICECC_CMD" = x; then 65713 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65714 fi 65715 else 65716 # Otherwise we believe it is a complete path. Use it as it is. 65717 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 65718 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 65719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 65720 $as_echo_n "checking for ICECC_CMD... " >&6; } 65721 if test ! -x "$tool_specified"; then 65722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65723 $as_echo "not found" >&6; } 65724 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 65725 fi 65726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65727 $as_echo "$tool_specified" >&6; } 65728 fi 65729 fi 65730 fi 65731 65732 fi 65733 65734 65735 65736 if test "x$ICECC_CMD" = x; then 65737 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 65738 fi 65739 65740 65741 old_path="$PATH" 65742 65743 # Look for icecc-create-env in some known places 65744 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 65745 65746 65747 65748 # Publish this variable in the help. 65749 65750 65751 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 65752 # The variable is not set by user, try to locate tool using the code snippet 65753 for ac_prog in icecc-create-env 65754 do 65755 # Extract the first word of "$ac_prog", so it can be a program name with args. 65756 set dummy $ac_prog; ac_word=$2 65757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65758 $as_echo_n "checking for $ac_word... " >&6; } 65759 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65760 $as_echo_n "(cached) " >&6 65761 else 65762 case $ICECC_CREATE_ENV in 65763 [\\/]* | ?:[\\/]*) 65764 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65765 ;; 65766 *) 65767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65768 for as_dir in $PATH 65769 do 65770 IFS=$as_save_IFS 65771 test -z "$as_dir" && as_dir=. 65772 for ac_exec_ext in '' $ac_executable_extensions; do 65773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65774 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65776 break 2 65777 fi 65778 done 65779 done 65780 IFS=$as_save_IFS 65781 65782 ;; 65783 esac 65784 fi 65785 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65786 if test -n "$ICECC_CREATE_ENV"; then 65787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65788 $as_echo "$ICECC_CREATE_ENV" >&6; } 65789 else 65790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65791 $as_echo "no" >&6; } 65792 fi 65793 65794 65795 test -n "$ICECC_CREATE_ENV" && break 65796 done 65797 65798 else 65799 # The variable is set, but is it from the command line or the environment? 65800 65801 # Try to remove the string !ICECC_CREATE_ENV! from our list. 65802 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 65803 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65804 # If it failed, the variable was not from the command line. Ignore it, 65805 # but warn the user (except for BASH, which is always set by the calling BASH). 65806 if test "xICECC_CREATE_ENV" != xBASH; then 65807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 65808 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 65809 fi 65810 # Try to locate tool using the code snippet 65811 for ac_prog in icecc-create-env 65812 do 65813 # Extract the first word of "$ac_prog", so it can be a program name with args. 65814 set dummy $ac_prog; ac_word=$2 65815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65816 $as_echo_n "checking for $ac_word... " >&6; } 65817 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65818 $as_echo_n "(cached) " >&6 65819 else 65820 case $ICECC_CREATE_ENV in 65821 [\\/]* | ?:[\\/]*) 65822 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65823 ;; 65824 *) 65825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65826 for as_dir in $PATH 65827 do 65828 IFS=$as_save_IFS 65829 test -z "$as_dir" && as_dir=. 65830 for ac_exec_ext in '' $ac_executable_extensions; do 65831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65832 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65834 break 2 65835 fi 65836 done 65837 done 65838 IFS=$as_save_IFS 65839 65840 ;; 65841 esac 65842 fi 65843 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65844 if test -n "$ICECC_CREATE_ENV"; then 65845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65846 $as_echo "$ICECC_CREATE_ENV" >&6; } 65847 else 65848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65849 $as_echo "no" >&6; } 65850 fi 65851 65852 65853 test -n "$ICECC_CREATE_ENV" && break 65854 done 65855 65856 else 65857 # If it succeeded, then it was overridden by the user. We will use it 65858 # for the tool. 65859 65860 # First remove it from the list of overridden variables, so we can test 65861 # for unknown variables in the end. 65862 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65863 65864 # Check if we try to supply an empty value 65865 if test "x$ICECC_CREATE_ENV" = x; then 65866 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 65867 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 65868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 65869 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 65870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65871 $as_echo "disabled" >&6; } 65872 else 65873 # Check if the provided tool contains a complete path. 65874 tool_specified="$ICECC_CREATE_ENV" 65875 tool_basename="${tool_specified##*/}" 65876 if test "x$tool_basename" = "x$tool_specified"; then 65877 # A command without a complete path is provided, search $PATH. 65878 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 65879 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 65880 # Extract the first word of "$tool_basename", so it can be a program name with args. 65881 set dummy $tool_basename; ac_word=$2 65882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65883 $as_echo_n "checking for $ac_word... " >&6; } 65884 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65885 $as_echo_n "(cached) " >&6 65886 else 65887 case $ICECC_CREATE_ENV in 65888 [\\/]* | ?:[\\/]*) 65889 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65890 ;; 65891 *) 65892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65893 for as_dir in $PATH 65894 do 65895 IFS=$as_save_IFS 65896 test -z "$as_dir" && as_dir=. 65897 for ac_exec_ext in '' $ac_executable_extensions; do 65898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65899 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65901 break 2 65902 fi 65903 done 65904 done 65905 IFS=$as_save_IFS 65906 65907 ;; 65908 esac 65909 fi 65910 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65911 if test -n "$ICECC_CREATE_ENV"; then 65912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65913 $as_echo "$ICECC_CREATE_ENV" >&6; } 65914 else 65915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65916 $as_echo "no" >&6; } 65917 fi 65918 65919 65920 if test "x$ICECC_CREATE_ENV" = x; then 65921 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65922 fi 65923 else 65924 # Otherwise we believe it is a complete path. Use it as it is. 65925 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 65926 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 65927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 65928 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 65929 if test ! -x "$tool_specified"; then 65930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65931 $as_echo "not found" >&6; } 65932 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 65933 fi 65934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65935 $as_echo "$tool_specified" >&6; } 65936 fi 65937 fi 65938 fi 65939 65940 fi 65941 65942 65943 65944 if test "x$ICECC_CREATE_ENV" = x; then 65945 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 65946 fi 65947 65948 65949 # Use icecc-create-env to create a minimal compilation environment that can 65950 # be sent to the other hosts in the icecream cluster. 65951 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 65952 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 65953 # Older versions of icecc does not have the --gcc parameter 65954 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 65955 icecc_gcc_arg="--gcc" 65956 fi 65957 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 65958 65959 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65960 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 65961 ${icecc_create_env_log} 2>&1 ) 65962 if test "$?" != "0"; then 65963 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65964 $as_echo "$as_me: icecc-create-env output:" >&6;} 65965 cat \ 65966 ${icecc_create_env_log} 65967 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65968 fi 65969 65970 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 65971 # For clang, the icecc compilerwrapper is needed. It usually resides next 65972 # to icecc-create-env. 65973 65974 65975 65976 # Publish this variable in the help. 65977 65978 65979 if [ -z "${ICECC_WRAPPER+x}" ]; then 65980 # The variable is not set by user, try to locate tool using the code snippet 65981 for ac_prog in compilerwrapper 65982 do 65983 # Extract the first word of "$ac_prog", so it can be a program name with args. 65984 set dummy $ac_prog; ac_word=$2 65985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65986 $as_echo_n "checking for $ac_word... " >&6; } 65987 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65988 $as_echo_n "(cached) " >&6 65989 else 65990 case $ICECC_WRAPPER in 65991 [\\/]* | ?:[\\/]*) 65992 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65993 ;; 65994 *) 65995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65996 for as_dir in $PATH 65997 do 65998 IFS=$as_save_IFS 65999 test -z "$as_dir" && as_dir=. 66000 for ac_exec_ext in '' $ac_executable_extensions; do 66001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66002 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 66003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66004 break 2 66005 fi 66006 done 66007 done 66008 IFS=$as_save_IFS 66009 66010 ;; 66011 esac 66012 fi 66013 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 66014 if test -n "$ICECC_WRAPPER"; then 66015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 66016 $as_echo "$ICECC_WRAPPER" >&6; } 66017 else 66018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66019 $as_echo "no" >&6; } 66020 fi 66021 66022 66023 test -n "$ICECC_WRAPPER" && break 66024 done 66025 66026 else 66027 # The variable is set, but is it from the command line or the environment? 66028 66029 # Try to remove the string !ICECC_WRAPPER! from our list. 66030 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 66031 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 66032 # If it failed, the variable was not from the command line. Ignore it, 66033 # but warn the user (except for BASH, which is always set by the calling BASH). 66034 if test "xICECC_WRAPPER" != xBASH; then 66035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 66036 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 66037 fi 66038 # Try to locate tool using the code snippet 66039 for ac_prog in compilerwrapper 66040 do 66041 # Extract the first word of "$ac_prog", so it can be a program name with args. 66042 set dummy $ac_prog; ac_word=$2 66043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66044 $as_echo_n "checking for $ac_word... " >&6; } 66045 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 66046 $as_echo_n "(cached) " >&6 66047 else 66048 case $ICECC_WRAPPER in 66049 [\\/]* | ?:[\\/]*) 66050 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 66051 ;; 66052 *) 66053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66054 for as_dir in $PATH 66055 do 66056 IFS=$as_save_IFS 66057 test -z "$as_dir" && as_dir=. 66058 for ac_exec_ext in '' $ac_executable_extensions; do 66059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66060 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 66061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66062 break 2 66063 fi 66064 done 66065 done 66066 IFS=$as_save_IFS 66067 66068 ;; 66069 esac 66070 fi 66071 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 66072 if test -n "$ICECC_WRAPPER"; then 66073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 66074 $as_echo "$ICECC_WRAPPER" >&6; } 66075 else 66076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66077 $as_echo "no" >&6; } 66078 fi 66079 66080 66081 test -n "$ICECC_WRAPPER" && break 66082 done 66083 66084 else 66085 # If it succeeded, then it was overridden by the user. We will use it 66086 # for the tool. 66087 66088 # First remove it from the list of overridden variables, so we can test 66089 # for unknown variables in the end. 66090 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66091 66092 # Check if we try to supply an empty value 66093 if test "x$ICECC_WRAPPER" = x; then 66094 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 66095 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 66096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 66097 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 66098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66099 $as_echo "disabled" >&6; } 66100 else 66101 # Check if the provided tool contains a complete path. 66102 tool_specified="$ICECC_WRAPPER" 66103 tool_basename="${tool_specified##*/}" 66104 if test "x$tool_basename" = "x$tool_specified"; then 66105 # A command without a complete path is provided, search $PATH. 66106 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 66107 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 66108 # Extract the first word of "$tool_basename", so it can be a program name with args. 66109 set dummy $tool_basename; ac_word=$2 66110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66111 $as_echo_n "checking for $ac_word... " >&6; } 66112 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 66113 $as_echo_n "(cached) " >&6 66114 else 66115 case $ICECC_WRAPPER in 66116 [\\/]* | ?:[\\/]*) 66117 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 66118 ;; 66119 *) 66120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66121 for as_dir in $PATH 66122 do 66123 IFS=$as_save_IFS 66124 test -z "$as_dir" && as_dir=. 66125 for ac_exec_ext in '' $ac_executable_extensions; do 66126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66127 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 66128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66129 break 2 66130 fi 66131 done 66132 done 66133 IFS=$as_save_IFS 66134 66135 ;; 66136 esac 66137 fi 66138 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 66139 if test -n "$ICECC_WRAPPER"; then 66140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 66141 $as_echo "$ICECC_WRAPPER" >&6; } 66142 else 66143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66144 $as_echo "no" >&6; } 66145 fi 66146 66147 66148 if test "x$ICECC_WRAPPER" = x; then 66149 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66150 fi 66151 else 66152 # Otherwise we believe it is a complete path. Use it as it is. 66153 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 66154 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 66155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 66156 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 66157 if test ! -x "$tool_specified"; then 66158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66159 $as_echo "not found" >&6; } 66160 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 66161 fi 66162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66163 $as_echo "$tool_specified" >&6; } 66164 fi 66165 fi 66166 fi 66167 66168 fi 66169 66170 66171 66172 if test "x$ICECC_WRAPPER" = x; then 66173 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 66174 fi 66175 66176 66177 66178 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 66179 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 66180 if test "$?" != "0"; then 66181 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 66182 $as_echo "$as_me: icecc-create-env output:" >&6;} 66183 cat ${icecc_create_env_log} 66184 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 66185 fi 66186 66187 else 66188 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 66189 fi 66190 PATH="$old_path" 66191 # The bundle with the compiler gets a name based on checksums. Parse log file 66192 # to find it. 66193 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 66194 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 66195 if test ! -f ${ICECC_ENV_BUNDLE}; then 66196 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 66197 fi 66198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 66199 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 66200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 66201 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 66202 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 66203 66204 if test "x${COMPILE_TYPE}" = "xcross"; then 66205 # If cross compiling, create a separate env package for the build compiler 66206 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 66207 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 66208 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 66209 66210 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 66211 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 66212 ${icecc_create_env_log_build} 2>&1 ) 66213 if test "$?" != "0"; then 66214 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 66215 $as_echo "$as_me: icecc-create-env output:" >&6;} 66216 cat \ 66217 ${icecc_create_env_log_build} 66218 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 66219 fi 66220 66221 elif test "x${BUILD_CC##*/}" = "xclang"; then 66222 66223 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 66224 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 66225 if test "$?" != "0"; then 66226 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 66227 $as_echo "$as_me: icecc-create-env output:" >&6;} 66228 cat ${icecc_create_env_log_build} 66229 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 66230 fi 66231 66232 else 66233 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 66234 fi 66235 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 66236 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 66237 if test ! -f ${ICECC_ENV_BUNDLE}; then 66238 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 66239 fi 66240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 66241 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 66242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 66243 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 66244 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 66245 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 66246 else 66247 BUILD_ICECC="${ICECC}" 66248 fi 66249 66250 66251 fi 66252 66253 66254 # Can the C/C++ compiler use precompiled headers? 66255 66256 66257 ############################################################################### 66258 # 66259 # Can the C/C++ compiler use precompiled headers? 66260 # 66261 # Check whether --enable-precompiled-headers was given. 66262 if test "${enable_precompiled_headers+set}" = set; then : 66263 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 66264 else 66265 ENABLE_PRECOMPH=yes 66266 fi 66267 66268 66269 USE_PRECOMPILED_HEADER=true 66270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 66271 $as_echo_n "checking If precompiled header is enabled... " >&6; } 66272 if test "x$ENABLE_PRECOMPH" = xno; then 66273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 66274 $as_echo "no, forced" >&6; } 66275 USE_PRECOMPILED_HEADER=false 66276 elif test "x$ICECC" != "x"; then 66277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 66278 $as_echo "no, does not work effectively with icecc" >&6; } 66279 USE_PRECOMPILED_HEADER=false 66280 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 66281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 66282 $as_echo "no, does not work with Solaris Studio" >&6; } 66283 USE_PRECOMPILED_HEADER=false 66284 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 66285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 66286 $as_echo "no, does not work with xlc" >&6; } 66287 USE_PRECOMPILED_HEADER=false 66288 else 66289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66290 $as_echo "yes" >&6; } 66291 fi 66292 66293 if test "x$ENABLE_PRECOMPH" = xyes; then 66294 # Check that the compiler actually supports precomp headers. 66295 if test "x$TOOLCHAIN_TYPE" = xgcc; then 66296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 66297 $as_echo_n "checking that precompiled headers work... " >&6; } 66298 echo "int alfa();" > conftest.h 66299 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 66300 if test ! -f conftest.hpp.gch; then 66301 USE_PRECOMPILED_HEADER=false 66302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66303 $as_echo "no" >&6; } 66304 else 66305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66306 $as_echo "yes" >&6; } 66307 fi 66308 $RM conftest.h conftest.hpp.gch 66309 fi 66310 fi 66311 66312 66313 66314 66315 # Setup use of ccache, if available 66316 66317 # Check whether --enable-ccache was given. 66318 if test "${enable_ccache+set}" = set; then : 66319 enableval=$enable_ccache; 66320 fi 66321 66322 66323 CCACHE_STATUS= 66324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 66325 $as_echo_n "checking is ccache enabled... " >&6; } 66326 if test "x$enable_ccache" = xyes; then 66327 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 66328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66329 $as_echo "yes" >&6; } 66330 OLD_PATH="$PATH" 66331 if test "x$TOOLCHAIN_PATH" != x; then 66332 PATH=$TOOLCHAIN_PATH:$PATH 66333 fi 66334 66335 66336 66337 # Publish this variable in the help. 66338 66339 66340 if [ -z "${CCACHE+x}" ]; then 66341 # The variable is not set by user, try to locate tool using the code snippet 66342 for ac_prog in ccache 66343 do 66344 # Extract the first word of "$ac_prog", so it can be a program name with args. 66345 set dummy $ac_prog; ac_word=$2 66346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66347 $as_echo_n "checking for $ac_word... " >&6; } 66348 if ${ac_cv_path_CCACHE+:} false; then : 66349 $as_echo_n "(cached) " >&6 66350 else 66351 case $CCACHE in 66352 [\\/]* | ?:[\\/]*) 66353 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 66354 ;; 66355 *) 66356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66357 for as_dir in $PATH 66358 do 66359 IFS=$as_save_IFS 66360 test -z "$as_dir" && as_dir=. 66361 for ac_exec_ext in '' $ac_executable_extensions; do 66362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66363 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 66364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66365 break 2 66366 fi 66367 done 66368 done 66369 IFS=$as_save_IFS 66370 66371 ;; 66372 esac 66373 fi 66374 CCACHE=$ac_cv_path_CCACHE 66375 if test -n "$CCACHE"; then 66376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 66377 $as_echo "$CCACHE" >&6; } 66378 else 66379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66380 $as_echo "no" >&6; } 66381 fi 66382 66383 66384 test -n "$CCACHE" && break 66385 done 66386 66387 else 66388 # The variable is set, but is it from the command line or the environment? 66389 66390 # Try to remove the string !CCACHE! from our list. 66391 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 66392 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 66393 # If it failed, the variable was not from the command line. Ignore it, 66394 # but warn the user (except for BASH, which is always set by the calling BASH). 66395 if test "xCCACHE" != xBASH; then 66396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 66397 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 66398 fi 66399 # Try to locate tool using the code snippet 66400 for ac_prog in ccache 66401 do 66402 # Extract the first word of "$ac_prog", so it can be a program name with args. 66403 set dummy $ac_prog; ac_word=$2 66404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66405 $as_echo_n "checking for $ac_word... " >&6; } 66406 if ${ac_cv_path_CCACHE+:} false; then : 66407 $as_echo_n "(cached) " >&6 66408 else 66409 case $CCACHE in 66410 [\\/]* | ?:[\\/]*) 66411 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 66412 ;; 66413 *) 66414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66415 for as_dir in $PATH 66416 do 66417 IFS=$as_save_IFS 66418 test -z "$as_dir" && as_dir=. 66419 for ac_exec_ext in '' $ac_executable_extensions; do 66420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66421 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 66422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66423 break 2 66424 fi 66425 done 66426 done 66427 IFS=$as_save_IFS 66428 66429 ;; 66430 esac 66431 fi 66432 CCACHE=$ac_cv_path_CCACHE 66433 if test -n "$CCACHE"; then 66434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 66435 $as_echo "$CCACHE" >&6; } 66436 else 66437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66438 $as_echo "no" >&6; } 66439 fi 66440 66441 66442 test -n "$CCACHE" && break 66443 done 66444 66445 else 66446 # If it succeeded, then it was overridden by the user. We will use it 66447 # for the tool. 66448 66449 # First remove it from the list of overridden variables, so we can test 66450 # for unknown variables in the end. 66451 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66452 66453 # Check if we try to supply an empty value 66454 if test "x$CCACHE" = x; then 66455 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 66456 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 66457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 66458 $as_echo_n "checking for CCACHE... " >&6; } 66459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66460 $as_echo "disabled" >&6; } 66461 else 66462 # Check if the provided tool contains a complete path. 66463 tool_specified="$CCACHE" 66464 tool_basename="${tool_specified##*/}" 66465 if test "x$tool_basename" = "x$tool_specified"; then 66466 # A command without a complete path is provided, search $PATH. 66467 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 66468 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 66469 # Extract the first word of "$tool_basename", so it can be a program name with args. 66470 set dummy $tool_basename; ac_word=$2 66471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66472 $as_echo_n "checking for $ac_word... " >&6; } 66473 if ${ac_cv_path_CCACHE+:} false; then : 66474 $as_echo_n "(cached) " >&6 66475 else 66476 case $CCACHE in 66477 [\\/]* | ?:[\\/]*) 66478 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 66479 ;; 66480 *) 66481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66482 for as_dir in $PATH 66483 do 66484 IFS=$as_save_IFS 66485 test -z "$as_dir" && as_dir=. 66486 for ac_exec_ext in '' $ac_executable_extensions; do 66487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66488 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 66489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66490 break 2 66491 fi 66492 done 66493 done 66494 IFS=$as_save_IFS 66495 66496 ;; 66497 esac 66498 fi 66499 CCACHE=$ac_cv_path_CCACHE 66500 if test -n "$CCACHE"; then 66501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 66502 $as_echo "$CCACHE" >&6; } 66503 else 66504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66505 $as_echo "no" >&6; } 66506 fi 66507 66508 66509 if test "x$CCACHE" = x; then 66510 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66511 fi 66512 else 66513 # Otherwise we believe it is a complete path. Use it as it is. 66514 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 66515 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 66516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 66517 $as_echo_n "checking for CCACHE... " >&6; } 66518 if test ! -x "$tool_specified"; then 66519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66520 $as_echo "not found" >&6; } 66521 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 66522 fi 66523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66524 $as_echo "$tool_specified" >&6; } 66525 fi 66526 fi 66527 fi 66528 66529 fi 66530 66531 66532 66533 if test "x$CCACHE" = x; then 66534 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 66535 fi 66536 66537 66538 PATH="$OLD_PATH" 66539 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 66540 CCACHE_STATUS="Active ($CCACHE_VERSION)" 66541 else 66542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66543 $as_echo "no" >&6; } 66544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 66545 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 66546 fi 66547 elif test "x$enable_ccache" = xno; then 66548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 66549 $as_echo "no, explicitly disabled" >&6; } 66550 CCACHE_STATUS="Disabled" 66551 elif test "x$enable_ccache" = x; then 66552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66553 $as_echo "no" >&6; } 66554 else 66555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 66556 $as_echo "unknown" >&6; } 66557 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 66558 fi 66559 66560 66561 66562 # Check whether --with-ccache-dir was given. 66563 if test "${with_ccache_dir+set}" = set; then : 66564 withval=$with_ccache_dir; 66565 fi 66566 66567 66568 if test "x$with_ccache_dir" != x; then 66569 # When using a non home ccache directory, assume the use is to share ccache files 66570 # with other users. Thus change the umask. 66571 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 66572 if test "x$CCACHE" = x; then 66573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 66574 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 66575 fi 66576 fi 66577 66578 if test "x$CCACHE" != x; then 66579 66580 if test "x$CCACHE" != x; then 66581 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 66582 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 66583 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 66584 if test "x$HAS_BAD_CCACHE" != "x"; then 66585 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 66586 fi 66587 fi 66588 if test "x$USE_PRECOMPILED_HEADER" = "xtrue"; then 66589 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 66590 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 66591 if test "x$HAS_BAD_CCACHE" != "x"; then 66592 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 66593 fi 66594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 66595 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 66596 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 66597 PUSHED_FLAGS="$CXXFLAGS" 66598 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 66599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66600 /* end confdefs.h. */ 66601 66602 int 66603 main () 66604 { 66605 66606 ; 66607 return 0; 66608 } 66609 _ACEOF 66610 if ac_fn_cxx_try_compile "$LINENO"; then : 66611 CC_KNOWS_CCACHE_TRICK=yes 66612 else 66613 CC_KNOWS_CCACHE_TRICK=no 66614 fi 66615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66616 CXXFLAGS="$PUSHED_FLAGS" 66617 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 66618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66619 $as_echo "yes" >&6; } 66620 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 66621 66622 CCACHE_SLOPPINESS=pch_defines,time_macros 66623 else 66624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66625 $as_echo "no" >&6; } 66626 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 66627 fi 66628 fi 66629 66630 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 66631 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 66632 66633 if test "x$SET_CCACHE_DIR" != x; then 66634 mkdir -p $CCACHE_DIR > /dev/null 2>&1 66635 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 66636 fi 66637 fi 66638 66639 fi 66640 66641 66642 ############################################################################### 66643 # 66644 # And now the finish... 66645 # 66646 ############################################################################### 66647 66648 # Check for some common pitfalls 66649 66650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66651 file_to_test="$SRC_ROOT/LICENSE" 66652 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 66653 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 66654 fi 66655 fi 66656 66657 66658 # Did user specify any unknown variables? 66659 66660 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 66661 # Replace the separating ! with spaces before presenting for end user. 66662 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 66663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 66664 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 66665 fi 66666 66667 66668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 66669 $as_echo_n "checking if build directory is on local disk... " >&6; } 66670 66671 # df -l lists only local disks; if the given directory is not found then 66672 # a non-zero exit code is given 66673 if test "x$DF" = x; then 66674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66675 # msys does not have df; use Windows "net use" instead. 66676 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 66677 if test "x$IS_NETWORK_DISK" = x; then 66678 OUTPUT_DIR_IS_LOCAL="yes" 66679 else 66680 OUTPUT_DIR_IS_LOCAL="no" 66681 fi 66682 else 66683 # No df here, say it's local 66684 OUTPUT_DIR_IS_LOCAL="yes" 66685 fi 66686 else 66687 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 66688 OUTPUT_DIR_IS_LOCAL="yes" 66689 else 66690 OUTPUT_DIR_IS_LOCAL="no" 66691 fi 66692 fi 66693 66694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 66695 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 66696 66697 66698 66699 # Check if the user has any old-style ALT_ variables set. 66700 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 66701 66702 # Before generating output files, test if they exist. If they do, this is a reconfigure. 66703 # Since we can't properly handle the dependencies for this, warn the user about the situation 66704 if test -e $OUTPUT_ROOT/spec.gmk; then 66705 IS_RECONFIGURE=yes 66706 else 66707 IS_RECONFIGURE=no 66708 fi 66709 66710 66711 # At the end, call the custom hook. (Dummy macro if no custom sources available) 66712 66713 66714 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 66715 66716 # Keep feature lists sorted and free of duplicates 66717 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 66718 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 66719 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 66720 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 66721 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 66722 JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" 66723 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 66724 66725 # Validate features 66726 for variant in $JVM_VARIANTS; do 66727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 66728 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 66729 features_var_name=JVM_FEATURES_$variant 66730 JVM_FEATURES_TO_TEST=${!features_var_name} 66731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 66732 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 66733 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 66734 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 66735 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 66736 if test "x$INVALID_FEATURES" != x; then 66737 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 66738 fi 66739 done 66740 66741 66742 # We're messing a bit with internal autoconf variables to put the config.status 66743 # in the output directory instead of the current directory. 66744 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 66745 66746 # Create the actual output files. Now the main work of configure is done. 66747 cat >confcache <<\_ACEOF 66748 # This file is a shell script that caches the results of configure 66749 # tests run on this system so they can be shared between configure 66750 # scripts and configure runs, see configure's option --config-cache. 66751 # It is not useful on other systems. If it contains results you don't 66752 # want to keep, you may remove or edit it. 66753 # 66754 # config.status only pays attention to the cache file if you give it 66755 # the --recheck option to rerun configure. 66756 # 66757 # `ac_cv_env_foo' variables (set or unset) will be overridden when 66758 # loading this file, other *unset* `ac_cv_foo' will be assigned the 66759 # following values. 66760 66761 _ACEOF 66762 66763 # The following way of writing the cache mishandles newlines in values, 66764 # but we know of no workaround that is simple, portable, and efficient. 66765 # So, we kill variables containing newlines. 66766 # Ultrix sh set writes to stderr and can't be redirected directly, 66767 # and sets the high bit in the cache file unless we assign to the vars. 66768 ( 66769 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 66770 eval ac_val=\$$ac_var 66771 case $ac_val in #( 66772 *${as_nl}*) 66773 case $ac_var in #( 66774 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 66775 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 66776 esac 66777 case $ac_var in #( 66778 _ | IFS | as_nl) ;; #( 66779 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 66780 *) { eval $ac_var=; unset $ac_var;} ;; 66781 esac ;; 66782 esac 66783 done 66784 66785 (set) 2>&1 | 66786 case $as_nl`(ac_space=' '; set) 2>&1` in #( 66787 *${as_nl}ac_space=\ *) 66788 # `set' does not quote correctly, so add quotes: double-quote 66789 # substitution turns \\\\ into \\, and sed turns \\ into \. 66790 sed -n \ 66791 "s/'/'\\\\''/g; 66792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 66793 ;; #( 66794 *) 66795 # `set' quotes correctly as required by POSIX, so do not add quotes. 66796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 66797 ;; 66798 esac | 66799 sort 66800 ) | 66801 sed ' 66802 /^ac_cv_env_/b end 66803 t clear 66804 :clear 66805 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 66806 t end 66807 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 66808 :end' >>confcache 66809 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 66810 if test -w "$cache_file"; then 66811 if test "x$cache_file" != "x/dev/null"; then 66812 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 66813 $as_echo "$as_me: updating cache $cache_file" >&6;} 66814 if test ! -f "$cache_file" || test -h "$cache_file"; then 66815 cat confcache >"$cache_file" 66816 else 66817 case $cache_file in #( 66818 */* | ?:*) 66819 mv -f confcache "$cache_file"$$ && 66820 mv -f "$cache_file"$$ "$cache_file" ;; #( 66821 *) 66822 mv -f confcache "$cache_file" ;; 66823 esac 66824 fi 66825 fi 66826 else 66827 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 66828 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 66829 fi 66830 fi 66831 rm -f confcache 66832 66833 test "x$prefix" = xNONE && prefix=$ac_default_prefix 66834 # Let make expand exec_prefix. 66835 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 66836 66837 # Transform confdefs.h into DEFS. 66838 # Protect against shell expansion while executing Makefile rules. 66839 # Protect against Makefile macro expansion. 66840 # 66841 # If the first sed substitution is executed (which looks for macros that 66842 # take arguments), then branch to the quote section. Otherwise, 66843 # look for a macro that doesn't take arguments. 66844 ac_script=' 66845 :mline 66846 /\\$/{ 66847 N 66848 s,\\\n,, 66849 b mline 66850 } 66851 t clear 66852 :clear 66853 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 66854 t quote 66855 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 66856 t quote 66857 b any 66858 :quote 66859 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 66860 s/\[/\\&/g 66861 s/\]/\\&/g 66862 s/\$/$$/g 66863 H 66864 :any 66865 ${ 66866 g 66867 s/^\n// 66868 s/\n/ /g 66869 p 66870 } 66871 ' 66872 DEFS=`sed -n "$ac_script" confdefs.h` 66873 66874 66875 ac_libobjs= 66876 ac_ltlibobjs= 66877 U= 66878 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 66879 # 1. Remove the extension, and $U if already installed. 66880 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 66881 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 66882 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 66883 # will be set to the directory where LIBOBJS objects are built. 66884 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 66885 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 66886 done 66887 LIBOBJS=$ac_libobjs 66888 66889 LTLIBOBJS=$ac_ltlibobjs 66890 66891 66892 66893 : "${CONFIG_STATUS=./config.status}" 66894 ac_write_fail=0 66895 ac_clean_files_save=$ac_clean_files 66896 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 66897 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 66898 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 66899 as_write_fail=0 66900 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 66901 #! $SHELL 66902 # Generated by $as_me. 66903 # Run this file to recreate the current configuration. 66904 # Compiler output produced by configure, useful for debugging 66905 # configure, is in config.log if it exists. 66906 66907 debug=false 66908 ac_cs_recheck=false 66909 ac_cs_silent=false 66910 66911 SHELL=\${CONFIG_SHELL-$SHELL} 66912 export SHELL 66913 _ASEOF 66914 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 66915 ## -------------------- ## 66916 ## M4sh Initialization. ## 66917 ## -------------------- ## 66918 66919 # Be more Bourne compatible 66920 DUALCASE=1; export DUALCASE # for MKS sh 66921 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 66922 emulate sh 66923 NULLCMD=: 66924 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 66925 # is contrary to our usage. Disable this feature. 66926 alias -g '${1+"$@"}'='"$@"' 66927 setopt NO_GLOB_SUBST 66928 else 66929 case `(set -o) 2>/dev/null` in #( 66930 *posix*) : 66931 set -o posix ;; #( 66932 *) : 66933 ;; 66934 esac 66935 fi 66936 66937 66938 as_nl=' 66939 ' 66940 export as_nl 66941 # Printing a long string crashes Solaris 7 /usr/bin/printf. 66942 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 66943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 66944 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 66945 # Prefer a ksh shell builtin over an external printf program on Solaris, 66946 # but without wasting forks for bash or zsh. 66947 if test -z "$BASH_VERSION$ZSH_VERSION" \ 66948 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 66949 as_echo='print -r --' 66950 as_echo_n='print -rn --' 66951 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 66952 as_echo='printf %s\n' 66953 as_echo_n='printf %s' 66954 else 66955 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 66956 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 66957 as_echo_n='/usr/ucb/echo -n' 66958 else 66959 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66960 as_echo_n_body='eval 66961 arg=$1; 66962 case $arg in #( 66963 *"$as_nl"*) 66964 expr "X$arg" : "X\\(.*\\)$as_nl"; 66965 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66966 esac; 66967 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66968 ' 66969 export as_echo_n_body 66970 as_echo_n='sh -c $as_echo_n_body as_echo' 66971 fi 66972 export as_echo_body 66973 as_echo='sh -c $as_echo_body as_echo' 66974 fi 66975 66976 # The user is always right. 66977 if test "${PATH_SEPARATOR+set}" != set; then 66978 PATH_SEPARATOR=: 66979 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 66980 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 66981 PATH_SEPARATOR=';' 66982 } 66983 fi 66984 66985 66986 # IFS 66987 # We need space, tab and new line, in precisely that order. Quoting is 66988 # there to prevent editors from complaining about space-tab. 66989 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 66990 # splitting by setting IFS to empty value.) 66991 IFS=" "" $as_nl" 66992 66993 # Find who we are. Look in the path if we contain no directory separator. 66994 as_myself= 66995 case $0 in #(( 66996 *[\\/]* ) as_myself=$0 ;; 66997 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66998 for as_dir in $PATH 66999 do 67000 IFS=$as_save_IFS 67001 test -z "$as_dir" && as_dir=. 67002 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 67003 done 67004 IFS=$as_save_IFS 67005 67006 ;; 67007 esac 67008 # We did not find ourselves, most probably we were run as `sh COMMAND' 67009 # in which case we are not to be found in the path. 67010 if test "x$as_myself" = x; then 67011 as_myself=$0 67012 fi 67013 if test ! -f "$as_myself"; then 67014 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 67015 exit 1 67016 fi 67017 67018 # Unset variables that we do not need and which cause bugs (e.g. in 67019 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 67020 # suppresses any "Segmentation fault" message there. '((' could 67021 # trigger a bug in pdksh 5.2.14. 67022 for as_var in BASH_ENV ENV MAIL MAILPATH 67023 do eval test x\${$as_var+set} = xset \ 67024 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 67025 done 67026 PS1='$ ' 67027 PS2='> ' 67028 PS4='+ ' 67029 67030 # NLS nuisances. 67031 LC_ALL=C 67032 export LC_ALL 67033 LANGUAGE=C 67034 export LANGUAGE 67035 67036 # CDPATH. 67037 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 67038 67039 67040 # as_fn_error STATUS ERROR [LINENO LOG_FD] 67041 # ---------------------------------------- 67042 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 67043 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 67044 # script with STATUS, using 1 if that was 0. 67045 as_fn_error () 67046 { 67047 as_status=$1; test $as_status -eq 0 && as_status=1 67048 if test "$4"; then 67049 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 67050 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 67051 fi 67052 $as_echo "$as_me: error: $2" >&2 67053 as_fn_exit $as_status 67054 } # as_fn_error 67055 67056 67057 # as_fn_set_status STATUS 67058 # ----------------------- 67059 # Set $? to STATUS, without forking. 67060 as_fn_set_status () 67061 { 67062 return $1 67063 } # as_fn_set_status 67064 67065 # as_fn_exit STATUS 67066 # ----------------- 67067 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 67068 as_fn_exit () 67069 { 67070 set +e 67071 as_fn_set_status $1 67072 exit $1 67073 } # as_fn_exit 67074 67075 # as_fn_unset VAR 67076 # --------------- 67077 # Portably unset VAR. 67078 as_fn_unset () 67079 { 67080 { eval $1=; unset $1;} 67081 } 67082 as_unset=as_fn_unset 67083 # as_fn_append VAR VALUE 67084 # ---------------------- 67085 # Append the text in VALUE to the end of the definition contained in VAR. Take 67086 # advantage of any shell optimizations that allow amortized linear growth over 67087 # repeated appends, instead of the typical quadratic growth present in naive 67088 # implementations. 67089 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 67090 eval 'as_fn_append () 67091 { 67092 eval $1+=\$2 67093 }' 67094 else 67095 as_fn_append () 67096 { 67097 eval $1=\$$1\$2 67098 } 67099 fi # as_fn_append 67100 67101 # as_fn_arith ARG... 67102 # ------------------ 67103 # Perform arithmetic evaluation on the ARGs, and store the result in the 67104 # global $as_val. Take advantage of shells that can avoid forks. The arguments 67105 # must be portable across $(()) and expr. 67106 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 67107 eval 'as_fn_arith () 67108 { 67109 as_val=$(( $* )) 67110 }' 67111 else 67112 as_fn_arith () 67113 { 67114 as_val=`expr "$@" || test $? -eq 1` 67115 } 67116 fi # as_fn_arith 67117 67118 67119 if expr a : '\(a\)' >/dev/null 2>&1 && 67120 test "X`expr 00001 : '.*\(...\)'`" = X001; then 67121 as_expr=expr 67122 else 67123 as_expr=false 67124 fi 67125 67126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 67127 as_basename=basename 67128 else 67129 as_basename=false 67130 fi 67131 67132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 67133 as_dirname=dirname 67134 else 67135 as_dirname=false 67136 fi 67137 67138 as_me=`$as_basename -- "$0" || 67139 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 67140 X"$0" : 'X\(//\)$' \| \ 67141 X"$0" : 'X\(/\)' \| . 2>/dev/null || 67142 $as_echo X/"$0" | 67143 sed '/^.*\/\([^/][^/]*\)\/*$/{ 67144 s//\1/ 67145 q 67146 } 67147 /^X\/\(\/\/\)$/{ 67148 s//\1/ 67149 q 67150 } 67151 /^X\/\(\/\).*/{ 67152 s//\1/ 67153 q 67154 } 67155 s/.*/./; q'` 67156 67157 # Avoid depending upon Character Ranges. 67158 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 67159 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 67160 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 67161 as_cr_digits='0123456789' 67162 as_cr_alnum=$as_cr_Letters$as_cr_digits 67163 67164 ECHO_C= ECHO_N= ECHO_T= 67165 case `echo -n x` in #((((( 67166 -n*) 67167 case `echo 'xy\c'` in 67168 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 67169 xy) ECHO_C='\c';; 67170 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 67171 ECHO_T=' ';; 67172 esac;; 67173 *) 67174 ECHO_N='-n';; 67175 esac 67176 67177 rm -f conf$$ conf$$.exe conf$$.file 67178 if test -d conf$$.dir; then 67179 rm -f conf$$.dir/conf$$.file 67180 else 67181 rm -f conf$$.dir 67182 mkdir conf$$.dir 2>/dev/null 67183 fi 67184 if (echo >conf$$.file) 2>/dev/null; then 67185 if ln -s conf$$.file conf$$ 2>/dev/null; then 67186 as_ln_s='ln -s' 67187 # ... but there are two gotchas: 67188 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 67189 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 67190 # In both cases, we have to default to `cp -pR'. 67191 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 67192 as_ln_s='cp -pR' 67193 elif ln conf$$.file conf$$ 2>/dev/null; then 67194 as_ln_s=ln 67195 else 67196 as_ln_s='cp -pR' 67197 fi 67198 else 67199 as_ln_s='cp -pR' 67200 fi 67201 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 67202 rmdir conf$$.dir 2>/dev/null 67203 67204 67205 # as_fn_mkdir_p 67206 # ------------- 67207 # Create "$as_dir" as a directory, including parents if necessary. 67208 as_fn_mkdir_p () 67209 { 67210 67211 case $as_dir in #( 67212 -*) as_dir=./$as_dir;; 67213 esac 67214 test -d "$as_dir" || eval $as_mkdir_p || { 67215 as_dirs= 67216 while :; do 67217 case $as_dir in #( 67218 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 67219 *) as_qdir=$as_dir;; 67220 esac 67221 as_dirs="'$as_qdir' $as_dirs" 67222 as_dir=`$as_dirname -- "$as_dir" || 67223 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 67224 X"$as_dir" : 'X\(//\)[^/]' \| \ 67225 X"$as_dir" : 'X\(//\)$' \| \ 67226 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 67227 $as_echo X"$as_dir" | 67228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 67229 s//\1/ 67230 q 67231 } 67232 /^X\(\/\/\)[^/].*/{ 67233 s//\1/ 67234 q 67235 } 67236 /^X\(\/\/\)$/{ 67237 s//\1/ 67238 q 67239 } 67240 /^X\(\/\).*/{ 67241 s//\1/ 67242 q 67243 } 67244 s/.*/./; q'` 67245 test -d "$as_dir" && break 67246 done 67247 test -z "$as_dirs" || eval "mkdir $as_dirs" 67248 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 67249 67250 67251 } # as_fn_mkdir_p 67252 if mkdir -p . 2>/dev/null; then 67253 as_mkdir_p='mkdir -p "$as_dir"' 67254 else 67255 test -d ./-p && rmdir ./-p 67256 as_mkdir_p=false 67257 fi 67258 67259 67260 # as_fn_executable_p FILE 67261 # ----------------------- 67262 # Test if FILE is an executable regular file. 67263 as_fn_executable_p () 67264 { 67265 test -f "$1" && test -x "$1" 67266 } # as_fn_executable_p 67267 as_test_x='test -x' 67268 as_executable_p=as_fn_executable_p 67269 67270 # Sed expression to map a string onto a valid CPP name. 67271 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 67272 67273 # Sed expression to map a string onto a valid variable name. 67274 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 67275 67276 67277 exec 6>&1 67278 ## ----------------------------------- ## 67279 ## Main body of $CONFIG_STATUS script. ## 67280 ## ----------------------------------- ## 67281 _ASEOF 67282 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 67283 67284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67285 # Save the log message, to keep $0 and so on meaningful, and to 67286 # report actual input values of CONFIG_FILES etc. instead of their 67287 # values after options handling. 67288 ac_log=" 67289 This file was extended by OpenJDK $as_me jdk9, which was 67290 generated by GNU Autoconf 2.69. Invocation command line was 67291 67292 CONFIG_FILES = $CONFIG_FILES 67293 CONFIG_HEADERS = $CONFIG_HEADERS 67294 CONFIG_LINKS = $CONFIG_LINKS 67295 CONFIG_COMMANDS = $CONFIG_COMMANDS 67296 $ $0 $@ 67297 67298 on `(hostname || uname -n) 2>/dev/null | sed 1q` 67299 " 67300 67301 _ACEOF 67302 67303 case $ac_config_files in *" 67304 "*) set x $ac_config_files; shift; ac_config_files=$*;; 67305 esac 67306 67307 67308 67309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67310 # Files that config.status was made for. 67311 config_files="$ac_config_files" 67312 67313 _ACEOF 67314 67315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67316 ac_cs_usage="\ 67317 \`$as_me' instantiates files and other configuration actions 67318 from templates according to the current configuration. Unless the files 67319 and actions are specified as TAGs, all are instantiated by default. 67320 67321 Usage: $0 [OPTION]... [TAG]... 67322 67323 -h, --help print this help, then exit 67324 -V, --version print version number and configuration settings, then exit 67325 --config print configuration, then exit 67326 -q, --quiet, --silent 67327 do not print progress messages 67328 -d, --debug don't remove temporary files 67329 --recheck update $as_me by reconfiguring in the same conditions 67330 --file=FILE[:TEMPLATE] 67331 instantiate the configuration file FILE 67332 67333 Configuration files: 67334 $config_files 67335 67336 Report bugs to <build-dev@openjdk.java.net>. 67337 OpenJDK home page: <http://openjdk.java.net>." 67338 67339 _ACEOF 67340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67341 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 67342 ac_cs_version="\\ 67343 OpenJDK config.status jdk9 67344 configured by $0, generated by GNU Autoconf 2.69, 67345 with options \\"\$ac_cs_config\\" 67346 67347 Copyright (C) 2012 Free Software Foundation, Inc. 67348 This config.status script is free software; the Free Software Foundation 67349 gives unlimited permission to copy, distribute and modify it." 67350 67351 ac_pwd='$ac_pwd' 67352 srcdir='$srcdir' 67353 AWK='$AWK' 67354 test -n "\$AWK" || AWK=awk 67355 _ACEOF 67356 67357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67358 # The default lists apply if the user does not specify any file. 67359 ac_need_defaults=: 67360 while test $# != 0 67361 do 67362 case $1 in 67363 --*=?*) 67364 ac_option=`expr "X$1" : 'X\([^=]*\)='` 67365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 67366 ac_shift=: 67367 ;; 67368 --*=) 67369 ac_option=`expr "X$1" : 'X\([^=]*\)='` 67370 ac_optarg= 67371 ac_shift=: 67372 ;; 67373 *) 67374 ac_option=$1 67375 ac_optarg=$2 67376 ac_shift=shift 67377 ;; 67378 esac 67379 67380 case $ac_option in 67381 # Handling of the options. 67382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 67383 ac_cs_recheck=: ;; 67384 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 67385 $as_echo "$ac_cs_version"; exit ;; 67386 --config | --confi | --conf | --con | --co | --c ) 67387 $as_echo "$ac_cs_config"; exit ;; 67388 --debug | --debu | --deb | --de | --d | -d ) 67389 debug=: ;; 67390 --file | --fil | --fi | --f ) 67391 $ac_shift 67392 case $ac_optarg in 67393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 67394 '') as_fn_error $? "missing file argument" ;; 67395 esac 67396 as_fn_append CONFIG_FILES " '$ac_optarg'" 67397 ac_need_defaults=false;; 67398 --he | --h | --help | --hel | -h ) 67399 $as_echo "$ac_cs_usage"; exit ;; 67400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 67401 | -silent | --silent | --silen | --sile | --sil | --si | --s) 67402 ac_cs_silent=: ;; 67403 67404 # This is an error. 67405 -*) as_fn_error $? "unrecognized option: \`$1' 67406 Try \`$0 --help' for more information." ;; 67407 67408 *) as_fn_append ac_config_targets " $1" 67409 ac_need_defaults=false ;; 67410 67411 esac 67412 shift 67413 done 67414 67415 ac_configure_extra_args= 67416 67417 if $ac_cs_silent; then 67418 exec 6>/dev/null 67419 ac_configure_extra_args="$ac_configure_extra_args --silent" 67420 fi 67421 67422 _ACEOF 67423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67424 if \$ac_cs_recheck; then 67425 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 67426 shift 67427 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 67428 CONFIG_SHELL='$SHELL' 67429 export CONFIG_SHELL 67430 exec "\$@" 67431 fi 67432 67433 _ACEOF 67434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67435 exec 5>>config.log 67436 { 67437 echo 67438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 67439 ## Running $as_me. ## 67440 _ASBOX 67441 $as_echo "$ac_log" 67442 } >&5 67443 67444 _ACEOF 67445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67446 _ACEOF 67447 67448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67449 67450 # Handling of arguments. 67451 for ac_config_target in $ac_config_targets 67452 do 67453 case $ac_config_target in 67454 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 67455 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 67456 "$OUTPUT_ROOT/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 67457 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 67458 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 67459 67460 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 67461 esac 67462 done 67463 67464 67465 # If the user did not use the arguments to specify the items to instantiate, 67466 # then the envvar interface is used. Set only those that are not. 67467 # We use the long form for the default assignment because of an extremely 67468 # bizarre bug on SunOS 4.1.3. 67469 if $ac_need_defaults; then 67470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 67471 fi 67472 67473 # Have a temporary directory for convenience. Make it in the build tree 67474 # simply because there is no reason against having it here, and in addition, 67475 # creating and moving files from /tmp can sometimes cause problems. 67476 # Hook for its removal unless debugging. 67477 # Note that there is a small window in which the directory will not be cleaned: 67478 # after its creation but before its name has been assigned to `$tmp'. 67479 $debug || 67480 { 67481 tmp= ac_tmp= 67482 trap 'exit_status=$? 67483 : "${ac_tmp:=$tmp}" 67484 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 67485 ' 0 67486 trap 'as_fn_exit 1' 1 2 13 15 67487 } 67488 # Create a (secure) tmp directory for tmp files. 67489 67490 { 67491 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 67492 test -d "$tmp" 67493 } || 67494 { 67495 tmp=./conf$$-$RANDOM 67496 (umask 077 && mkdir "$tmp") 67497 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 67498 ac_tmp=$tmp 67499 67500 # Set up the scripts for CONFIG_FILES section. 67501 # No need to generate them if there are no CONFIG_FILES. 67502 # This happens for instance with `./config.status config.h'. 67503 if test -n "$CONFIG_FILES"; then 67504 67505 67506 ac_cr=`echo X | tr X '\015'` 67507 # On cygwin, bash can eat \r inside `` if the user requested igncr. 67508 # But we know of no other shell where ac_cr would be empty at this 67509 # point, so we can use a bashism as a fallback. 67510 if test "x$ac_cr" = x; then 67511 eval ac_cr=\$\'\\r\' 67512 fi 67513 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 67514 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 67515 ac_cs_awk_cr='\\r' 67516 else 67517 ac_cs_awk_cr=$ac_cr 67518 fi 67519 67520 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 67521 _ACEOF 67522 67523 67524 { 67525 echo "cat >conf$$subs.awk <<_ACEOF" && 67526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 67527 echo "_ACEOF" 67528 } >conf$$subs.sh || 67529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 67530 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 67531 ac_delim='%!_!# ' 67532 for ac_last_try in false false false false false :; do 67533 . ./conf$$subs.sh || 67534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 67535 67536 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 67537 if test $ac_delim_n = $ac_delim_num; then 67538 break 67539 elif $ac_last_try; then 67540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 67541 else 67542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 67543 fi 67544 done 67545 rm -f conf$$subs.sh 67546 67547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67548 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 67549 _ACEOF 67550 sed -n ' 67551 h 67552 s/^/S["/; s/!.*/"]=/ 67553 p 67554 g 67555 s/^[^!]*!// 67556 :repl 67557 t repl 67558 s/'"$ac_delim"'$// 67559 t delim 67560 :nl 67561 h 67562 s/\(.\{148\}\)..*/\1/ 67563 t more1 67564 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 67565 p 67566 n 67567 b repl 67568 :more1 67569 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 67570 p 67571 g 67572 s/.\{148\}// 67573 t nl 67574 :delim 67575 h 67576 s/\(.\{148\}\)..*/\1/ 67577 t more2 67578 s/["\\]/\\&/g; s/^/"/; s/$/"/ 67579 p 67580 b 67581 :more2 67582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 67583 p 67584 g 67585 s/.\{148\}// 67586 t delim 67587 ' <conf$$subs.awk | sed ' 67588 /^[^""]/{ 67589 N 67590 s/\n// 67591 } 67592 ' >>$CONFIG_STATUS || ac_write_fail=1 67593 rm -f conf$$subs.awk 67594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67595 _ACAWK 67596 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 67597 for (key in S) S_is_set[key] = 1 67598 FS = "" 67599 67600 } 67601 { 67602 line = $ 0 67603 nfields = split(line, field, "@") 67604 substed = 0 67605 len = length(field[1]) 67606 for (i = 2; i < nfields; i++) { 67607 key = field[i] 67608 keylen = length(key) 67609 if (S_is_set[key]) { 67610 value = S[key] 67611 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 67612 len += length(value) + length(field[++i]) 67613 substed = 1 67614 } else 67615 len += 1 + keylen 67616 } 67617 67618 print line 67619 } 67620 67621 _ACAWK 67622 _ACEOF 67623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67624 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 67625 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 67626 else 67627 cat 67628 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 67629 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 67630 _ACEOF 67631 67632 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 67633 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 67634 # trailing colons and then remove the whole line if VPATH becomes empty 67635 # (actually we leave an empty line to preserve line numbers). 67636 if test "x$srcdir" = x.; then 67637 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 67638 h 67639 s/// 67640 s/^/:/ 67641 s/[ ]*$/:/ 67642 s/:\$(srcdir):/:/g 67643 s/:\${srcdir}:/:/g 67644 s/:@srcdir@:/:/g 67645 s/^:*// 67646 s/:*$// 67647 x 67648 s/\(=[ ]*\).*/\1/ 67649 G 67650 s/\n// 67651 s/^[^=]*=[ ]*$// 67652 }' 67653 fi 67654 67655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67656 fi # test -n "$CONFIG_FILES" 67657 67658 67659 eval set X " :F $CONFIG_FILES " 67660 shift 67661 for ac_tag 67662 do 67663 case $ac_tag in 67664 :[FHLC]) ac_mode=$ac_tag; continue;; 67665 esac 67666 case $ac_mode$ac_tag in 67667 :[FHL]*:*);; 67668 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 67669 :[FH]-) ac_tag=-:-;; 67670 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 67671 esac 67672 ac_save_IFS=$IFS 67673 IFS=: 67674 set x $ac_tag 67675 IFS=$ac_save_IFS 67676 shift 67677 ac_file=$1 67678 shift 67679 67680 case $ac_mode in 67681 :L) ac_source=$1;; 67682 :[FH]) 67683 ac_file_inputs= 67684 for ac_f 67685 do 67686 case $ac_f in 67687 -) ac_f="$ac_tmp/stdin";; 67688 *) # Look for the file first in the build tree, then in the source tree 67689 # (if the path is not absolute). The absolute path cannot be DOS-style, 67690 # because $ac_f cannot contain `:'. 67691 test -f "$ac_f" || 67692 case $ac_f in 67693 [\\/$]*) false;; 67694 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 67695 esac || 67696 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 67697 esac 67698 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 67699 as_fn_append ac_file_inputs " '$ac_f'" 67700 done 67701 67702 # Let's still pretend it is `configure' which instantiates (i.e., don't 67703 # use $as_me), people would be surprised to read: 67704 # /* config.h. Generated by config.status. */ 67705 configure_input='Generated from '` 67706 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 67707 `' by configure.' 67708 if test x"$ac_file" != x-; then 67709 configure_input="$ac_file. $configure_input" 67710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 67711 $as_echo "$as_me: creating $ac_file" >&6;} 67712 fi 67713 # Neutralize special characters interpreted by sed in replacement strings. 67714 case $configure_input in #( 67715 *\&* | *\|* | *\\* ) 67716 ac_sed_conf_input=`$as_echo "$configure_input" | 67717 sed 's/[\\\\&|]/\\\\&/g'`;; #( 67718 *) ac_sed_conf_input=$configure_input;; 67719 esac 67720 67721 case $ac_tag in 67722 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 67723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 67724 esac 67725 ;; 67726 esac 67727 67728 ac_dir=`$as_dirname -- "$ac_file" || 67729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 67730 X"$ac_file" : 'X\(//\)[^/]' \| \ 67731 X"$ac_file" : 'X\(//\)$' \| \ 67732 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 67733 $as_echo X"$ac_file" | 67734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 67735 s//\1/ 67736 q 67737 } 67738 /^X\(\/\/\)[^/].*/{ 67739 s//\1/ 67740 q 67741 } 67742 /^X\(\/\/\)$/{ 67743 s//\1/ 67744 q 67745 } 67746 /^X\(\/\).*/{ 67747 s//\1/ 67748 q 67749 } 67750 s/.*/./; q'` 67751 as_dir="$ac_dir"; as_fn_mkdir_p 67752 ac_builddir=. 67753 67754 case "$ac_dir" in 67755 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 67756 *) 67757 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 67758 # A ".." for each directory in $ac_dir_suffix. 67759 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 67760 case $ac_top_builddir_sub in 67761 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 67762 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 67763 esac ;; 67764 esac 67765 ac_abs_top_builddir=$ac_pwd 67766 ac_abs_builddir=$ac_pwd$ac_dir_suffix 67767 # for backward compatibility: 67768 ac_top_builddir=$ac_top_build_prefix 67769 67770 case $srcdir in 67771 .) # We are building in place. 67772 ac_srcdir=. 67773 ac_top_srcdir=$ac_top_builddir_sub 67774 ac_abs_top_srcdir=$ac_pwd ;; 67775 [\\/]* | ?:[\\/]* ) # Absolute name. 67776 ac_srcdir=$srcdir$ac_dir_suffix; 67777 ac_top_srcdir=$srcdir 67778 ac_abs_top_srcdir=$srcdir ;; 67779 *) # Relative name. 67780 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 67781 ac_top_srcdir=$ac_top_build_prefix$srcdir 67782 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 67783 esac 67784 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 67785 67786 67787 case $ac_mode in 67788 :F) 67789 # 67790 # CONFIG_FILE 67791 # 67792 67793 _ACEOF 67794 67795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67796 # If the template does not know about datarootdir, expand it. 67797 # FIXME: This hack should be removed a few years after 2.60. 67798 ac_datarootdir_hack=; ac_datarootdir_seen= 67799 ac_sed_dataroot=' 67800 /datarootdir/ { 67801 p 67802 q 67803 } 67804 /@datadir@/p 67805 /@docdir@/p 67806 /@infodir@/p 67807 /@localedir@/p 67808 /@mandir@/p' 67809 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 67810 *datarootdir*) ac_datarootdir_seen=yes;; 67811 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 67812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 67813 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 67814 _ACEOF 67815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67816 ac_datarootdir_hack=' 67817 s&@datadir@&$datadir&g 67818 s&@docdir@&$docdir&g 67819 s&@infodir@&$infodir&g 67820 s&@localedir@&$localedir&g 67821 s&@mandir@&$mandir&g 67822 s&\\\${datarootdir}&$datarootdir&g' ;; 67823 esac 67824 _ACEOF 67825 67826 # Neutralize VPATH when `$srcdir' = `.'. 67827 # Shell code in configure.ac might set extrasub. 67828 # FIXME: do we really want to maintain this feature? 67829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67830 ac_sed_extra="$ac_vpsub 67831 $extrasub 67832 _ACEOF 67833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67834 :t 67835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 67836 s|@configure_input@|$ac_sed_conf_input|;t t 67837 s&@top_builddir@&$ac_top_builddir_sub&;t t 67838 s&@top_build_prefix@&$ac_top_build_prefix&;t t 67839 s&@srcdir@&$ac_srcdir&;t t 67840 s&@abs_srcdir@&$ac_abs_srcdir&;t t 67841 s&@top_srcdir@&$ac_top_srcdir&;t t 67842 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 67843 s&@builddir@&$ac_builddir&;t t 67844 s&@abs_builddir@&$ac_abs_builddir&;t t 67845 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 67846 $ac_datarootdir_hack 67847 " 67848 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 67849 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67850 67851 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 67852 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 67853 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 67854 "$ac_tmp/out"`; test -z "$ac_out"; } && 67855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 67856 which seems to be undefined. Please make sure it is defined" >&5 67857 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 67858 which seems to be undefined. Please make sure it is defined" >&2;} 67859 67860 rm -f "$ac_tmp/stdin" 67861 case $ac_file in 67862 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 67863 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 67864 esac \ 67865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67866 ;; 67867 67868 67869 67870 esac 67871 67872 done # for ac_tag 67873 67874 67875 as_fn_exit 0 67876 _ACEOF 67877 ac_clean_files=$ac_clean_files_save 67878 67879 test $ac_write_fail = 0 || 67880 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 67881 67882 67883 # configure is writing to config.log, and then calls config.status. 67884 # config.status does its own redirection, appending to config.log. 67885 # Unfortunately, on DOS this fails, as config.log is still kept open 67886 # by configure, so config.status won't be able to write to it; its 67887 # output is simply discarded. So we exec the FD to /dev/null, 67888 # effectively closing config.log, so it can be properly (re)opened and 67889 # appended to by config.status. When coming back to configure, we 67890 # need to make the FD available again. 67891 if test "$no_create" != yes; then 67892 ac_cs_success=: 67893 ac_config_status_args= 67894 test "$silent" = yes && 67895 ac_config_status_args="$ac_config_status_args --quiet" 67896 exec 5>/dev/null 67897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 67898 exec 5>>config.log 67899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 67900 # would make configure fail if this is the last instruction. 67901 $ac_cs_success || as_fn_exit 1 67902 fi 67903 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 67904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 67905 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 67906 fi 67907 67908 67909 # After AC_OUTPUT, we need to do final work 67910 67911 67912 # Try to move config.log (generated by autoconf) to the configure-support directory. 67913 if test -e ./config.log; then 67914 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 67915 fi 67916 67917 # Rotate our log file (configure.log) 67918 if test -e "$OUTPUT_ROOT/configure.log.old"; then 67919 $RM -f "$OUTPUT_ROOT/configure.log.old" 67920 fi 67921 if test -e "$OUTPUT_ROOT/configure.log"; then 67922 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 67923 fi 67924 67925 # Move configure.log from current directory to the build output root 67926 if test -e ./configure.log; then 67927 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 67928 fi 67929 67930 # Make the compare script executable 67931 $CHMOD +x $OUTPUT_ROOT/compare.sh 67932 67933 67934 # Finally output some useful information to the user 67935 67936 # Finally output some useful information to the user 67937 67938 printf "\n" 67939 printf "====================================================\n" 67940 if test "x$no_create" != "xyes"; then 67941 if test "x$IS_RECONFIGURE" != "xyes"; then 67942 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 67943 else 67944 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 67945 fi 67946 else 67947 if test "x$IS_RECONFIGURE" != "xyes"; then 67948 printf "A configuration has been successfully checked but not created\n" 67949 else 67950 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 67951 fi 67952 fi 67953 if test "x$CONFIGURE_COMMAND_LINE" != x; then 67954 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 67955 else 67956 printf "using default settings.\n" 67957 fi 67958 67959 printf "\n" 67960 printf "Configuration summary:\n" 67961 printf "* Debug level: $DEBUG_LEVEL\n" 67962 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 67963 printf "* JDK variant: $JDK_VARIANT\n" 67964 printf "* JVM variants: $JVM_VARIANTS\n" 67965 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 67966 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 67967 67968 printf "\n" 67969 printf "Tools summary:\n" 67970 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 67971 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 67972 fi 67973 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 67974 if test "x$TOOLCHAIN_VERSION" != "x"; then 67975 print_version=" $TOOLCHAIN_VERSION" 67976 fi 67977 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 67978 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 67979 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 67980 67981 printf "\n" 67982 printf "Build performance summary:\n" 67983 printf "* Cores to use: $JOBS\n" 67984 printf "* Memory limit: $MEMORY_SIZE MB\n" 67985 if test "x$CCACHE_STATUS" != "x"; then 67986 printf "* ccache status: $CCACHE_STATUS\n" 67987 fi 67988 printf "\n" 67989 67990 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 67991 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 67992 printf "will result in longer build times.\n" 67993 printf "\n" 67994 fi 67995 67996 if test "x$FOUND_ALT_VARIABLES" != "x"; then 67997 printf "WARNING: You have old-style ALT_ environment variables set.\n" 67998 printf "These are not respected, and will be ignored. It is recommended\n" 67999 printf "that you clean your environment. The following variables are set:\n" 68000 printf "$FOUND_ALT_VARIABLES\n" 68001 printf "\n" 68002 fi 68003 68004 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 68005 printf "WARNING: Your build output directory is not on a local disk.\n" 68006 printf "This will severely degrade build performance!\n" 68007 printf "It is recommended that you create an output directory on a local disk,\n" 68008 printf "and run the configure script again from that directory.\n" 68009 printf "\n" 68010 fi 68011 68012 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 68013 printf "WARNING: The result of this configuration has overridden an older\n" 68014 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 68015 printf "proper build. Failure to do so might result in strange build problems.\n" 68016 printf "\n" 68017 fi 68018 68019 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 68020 printf "WARNING: The result of this configuration was not saved.\n" 68021 printf "You should run without '--no-create | -n' to create the configuration.\n" 68022 printf "\n" 68023 fi 68024 68025 68026 68027 # Locate config.log. 68028 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 68029 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 68030 elif test -e "./config.log"; then 68031 CONFIG_LOG_PATH="." 68032 fi 68033 68034 if test -e "$CONFIG_LOG_PATH/config.log"; then 68035 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 68036 if test $? -eq 0; then 68037 printf "The following warnings were produced. Repeated here for convenience:\n" 68038 # We must quote sed expression (using []) to stop m4 from eating the []. 68039 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 68040 printf "\n" 68041 fi 68042 fi 68043