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 STLPORT_LIB 658 LIBZIP_CAN_USE_MMAP 659 LIBDL 660 LIBM 661 USE_EXTERNAL_LCMS 662 LCMS_LIBS 663 LCMS_CFLAGS 664 USE_EXTERNAL_LIBZ 665 USE_EXTERNAL_LIBPNG 666 PNG_LIBS 667 PNG_CFLAGS 668 USE_EXTERNAL_LIBGIF 669 USE_EXTERNAL_LIBJPEG 670 LLVM_LIBS 671 LLVM_LDFLAGS 672 LLVM_CFLAGS 673 LLVM_CONFIG 674 LIBFFI_BUNDLE_LIB_PATH 675 LIBFFI_LIBS 676 LIBFFI_CFLAGS 677 ALSA_LIBS 678 ALSA_CFLAGS 679 FREETYPE_BUNDLE_LIB_PATH 680 FREETYPE_LIBS 681 FREETYPE_CFLAGS 682 CUPS_CFLAGS 683 X_EXTRA_LIBS 684 X_LIBS 685 X_PRE_LIBS 686 X_CFLAGS 687 XMKMF 688 MSVCP_DLL 689 MSVCR_DLL 690 LIBCXX 691 STATIC_CXX_SETTING 692 FIXPATH_DETACH_FLAG 693 FIXPATH 694 BUILD_GTEST 695 VALID_JVM_FEATURES 696 JVM_FEATURES_custom 697 JVM_FEATURES_zeroshark 698 JVM_FEATURES_zero 699 JVM_FEATURES_minimal 700 JVM_FEATURES_core 701 JVM_FEATURES_client 702 JVM_FEATURES_server 703 INCLUDE_DTRACE 704 GCOV_ENABLED 705 STRIP_POLICY 706 DEBUG_BINARIES 707 ZIP_EXTERNAL_DEBUG_SYMBOLS 708 COPY_DEBUG_SYMBOLS 709 COMPILE_WITH_DEBUG_SYMBOLS 710 CFLAGS_WARNINGS_ARE_ERRORS 711 BUILD_CC_DISABLE_WARNING_PREFIX 712 DISABLE_WARNING_PREFIX 713 HOTSPOT_SET_WARNINGS_AS_ERRORS 714 WARNINGS_AS_ERRORS 715 COMPILER_SUPPORTS_TARGET_BITS_FLAG 716 ZERO_ARCHFLAG 717 LDFLAGS_TESTEXE 718 LDFLAGS_TESTLIB 719 CXXFLAGS_TESTEXE 720 CXXFLAGS_TESTLIB 721 CFLAGS_TESTEXE 722 CFLAGS_TESTLIB 723 OPENJDK_BUILD_JVM_LIBS 724 OPENJDK_BUILD_JVM_ASFLAGS 725 OPENJDK_BUILD_JVM_LDFLAGS 726 OPENJDK_BUILD_JVM_CFLAGS 727 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 728 OPENJDK_BUILD_LDFLAGS_CXX_JDK 729 OPENJDK_BUILD_JDKEXE_LIBS 730 OPENJDK_BUILD_JDKLIB_LIBS 731 OPENJDK_BUILD_LDFLAGS_JDKEXE 732 OPENJDK_BUILD_LDFLAGS_JDKLIB 733 OPENJDK_BUILD_CXXFLAGS_JDKEXE 734 OPENJDK_BUILD_CXXFLAGS_JDKLIB 735 OPENJDK_BUILD_CFLAGS_JDKEXE 736 OPENJDK_BUILD_CFLAGS_JDKLIB 737 OPENJDK_BUILD_CXXSTD_CXXFLAG 738 JVM_LIBS 739 JVM_ASFLAGS 740 JVM_LDFLAGS 741 JVM_CFLAGS 742 LDFLAGS_HASH_STYLE 743 LDFLAGS_CXX_JDK 744 JDKEXE_LIBS 745 JDKLIB_LIBS 746 LDFLAGS_JDKEXE 747 LDFLAGS_JDKLIB 748 CXXFLAGS_JDKEXE 749 CXXFLAGS_JDKLIB 750 CFLAGS_JDKEXE 751 CFLAGS_JDKLIB 752 MACOSX_VERSION_MIN 753 CXXSTD_CXXFLAG 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 BUILD_SET_SHARED_LIBRARY_ORIGIN 777 BUILD_SET_EXECUTABLE_ORIGIN 778 SET_SHARED_LIBRARY_ORIGIN 779 SET_EXECUTABLE_ORIGIN 780 CXX_FLAG_REORDER 781 C_FLAG_REORDER 782 JVM_RCFLAGS 783 RC_FLAGS 784 AR_OUT_OPTION 785 LD_OUT_OPTION 786 EXE_OUT_OPTION 787 CC_OUT_OPTION 788 STRIPFLAGS 789 ARFLAGS 790 COMPILER_BINDCMD_FILE_FLAG 791 COMPILER_COMMAND_FILE_FLAG 792 COMPILER_TARGET_BITS_FLAG 793 JT_HOME 794 JTREGEXE 795 HOTSPOT_TOOLCHAIN_TYPE 796 USING_BROKEN_SUSE_LD 797 PACKAGE_PATH 798 USE_CLANG 799 HOTSPOT_LD 800 HOTSPOT_CXX 801 HOTSPOT_RC 802 HOTSPOT_MT 803 BUILD_AS 804 BUILD_LDCXX 805 BUILD_LD 806 BUILD_STRIP 807 BUILD_OBJCOPY 808 BUILD_AR 809 BUILD_NM 810 BUILD_CXX 811 BUILD_CC 812 BUILD_SYSROOT_LDFLAGS 813 BUILD_SYSROOT_CFLAGS 814 ac_ct_OBJDUMP 815 OBJDUMP 816 ac_ct_OBJCOPY 817 OBJCOPY 818 ac_ct_NM 819 ac_ct_STRIP 820 GNM 821 NM 822 STRIP 823 MSBUILD 824 DUMPBIN 825 RC 826 MT 827 LIPO 828 ac_ct_AR 829 AR 830 AS 831 LDCXX 832 LD 833 CXXCPP 834 CPP 835 CXX_VERSION_NUMBER 836 CC_VERSION_NUMBER 837 ac_ct_CXX 838 CXXFLAGS 839 CXX 840 TOOLCHAIN_PATH_CXX 841 POTENTIAL_CXX 842 OBJEXT 843 EXEEXT 844 ac_ct_CC 845 CPPFLAGS 846 LDFLAGS 847 CFLAGS 848 CC 849 TOOLCHAIN_PATH_CC 850 POTENTIAL_CC 851 TOOLCHAIN_VERSION 852 VS_LIB 853 VS_INCLUDE 854 VS_PATH 855 CYGWIN_LINK 856 SYSROOT_LDFLAGS 857 SYSROOT_CFLAGS 858 EXTRA_LDFLAGS 859 EXTRA_CXXFLAGS 860 EXTRA_CFLAGS 861 LEGACY_EXTRA_LDFLAGS 862 LEGACY_EXTRA_CXXFLAGS 863 LEGACY_EXTRA_CFLAGS 864 EXE_SUFFIX 865 OBJ_SUFFIX 866 STATIC_LIBRARY 867 BUILD_SHARED_LIBRARY 868 BUILD_SHARED_LIBRARY_SUFFIX 869 SHARED_LIBRARY 870 STATIC_LIBRARY_SUFFIX 871 SHARED_LIBRARY_SUFFIX 872 LIBRARY_PREFIX 873 TOOLCHAIN_NAME 874 TOOLCHAIN_TYPE 875 STATIC_BUILD 876 IMPORT_MODULES_MAKE 877 IMPORT_MODULES_SRC 878 IMPORT_MODULES_CONF 879 IMPORT_MODULES_LIBS 880 IMPORT_MODULES_CMDS 881 IMPORT_MODULES_CLASSES 882 BUILD_HOTSPOT 883 HOTSPOT_DIST 884 BUILD_OUTPUT 885 JDK_TOPDIR 886 NASHORN_TOPDIR 887 HOTSPOT_TOPDIR 888 JAXWS_TOPDIR 889 JAXP_TOPDIR 890 CORBA_TOPDIR 891 LANGTOOLS_TOPDIR 892 EXTERNAL_BUILDJDK 893 BUILD_JDK 894 CREATE_BUILDJDK 895 JLINK 896 JMOD 897 BOOT_JDK_BITS 898 JAVAC_FLAGS 899 BOOT_JDK_MODULAR 900 BOOT_JDK_SOURCETARGET 901 JARSIGNER 902 JAR 903 JAVAH 904 JAVAC 905 JAVA 906 BOOT_JDK 907 JAVA_CHECK 908 JAVAC_CHECK 909 VERSION_IS_GA 910 VERSION_SHORT 911 VERSION_STRING 912 VERSION_NUMBER_FOUR_POSITIONS 913 VERSION_NUMBER 914 VERSION_OPT 915 VERSION_BUILD 916 VERSION_PRE 917 VERSION_PATCH 918 VERSION_SECURITY 919 VERSION_MINOR 920 VERSION_MAJOR 921 MACOSX_BUNDLE_ID_BASE 922 MACOSX_BUNDLE_NAME_BASE 923 HOTSPOT_VM_DISTRO 924 COMPANY_NAME 925 JDK_RC_PLATFORM_NAME 926 PRODUCT_SUFFIX 927 PRODUCT_NAME 928 LAUNCHER_NAME 929 JLINK_KEEP_PACKAGED_MODULES 930 COPYRIGHT_YEAR 931 COMPRESS_JARS 932 INCLUDE_SA 933 UNLIMITED_CRYPTO 934 CACERTS_FILE 935 BUILD_HEADLESS 936 SUPPORT_HEADFUL 937 SUPPORT_HEADLESS 938 DEFAULT_MAKE_TARGET 939 OS_VERSION_MICRO 940 OS_VERSION_MINOR 941 OS_VERSION_MAJOR 942 PKG_CONFIG 943 BASH_ARGS 944 SETFILE 945 CODESIGN 946 XATTR 947 DSYMUTIL 948 IS_GNU_TIME 949 PATCH 950 DTRACE 951 TIME 952 STAT 953 HG 954 READELF 955 OTOOL 956 LDD 957 ZIP 958 UNZIP 959 TAR_SUPPORTS_TRANSFORM 960 TAR_INCLUDE_PARAM 961 TAR_CREATE_EXTRA_PARAM 962 TAR_TYPE 963 FIND_DELETE 964 OUTPUT_SYNC 965 OUTPUT_SYNC_SUPPORTED 966 CHECK_TOOLSDIR_MAKE 967 CHECK_TOOLSDIR_GMAKE 968 CHECK_MAKE 969 CHECK_GMAKE 970 MAKE 971 PKGHANDLER 972 CONFIGURESUPPORT_OUTPUTDIR 973 OUTPUT_ROOT 974 CONF_NAME 975 SPEC 976 SDKROOT 977 XCODEBUILD 978 VALID_JVM_VARIANTS 979 JVM_VARIANTS 980 DEBUG_LEVEL 981 HOTSPOT_DEBUG_LEVEL 982 JDK_VARIANT 983 USERNAME 984 CANONICAL_TOPDIR 985 ORIGINAL_TOPDIR 986 TOPDIR 987 PATH_SEP 988 ZERO_ARCHDEF 989 HOTSPOT_BUILD_CPU_DEFINE 990 HOTSPOT_BUILD_CPU_ARCH 991 HOTSPOT_BUILD_CPU 992 HOTSPOT_BUILD_OS_TYPE 993 HOTSPOT_BUILD_OS 994 OPENJDK_BUILD_BUNDLE_PLATFORM 995 OPENJDK_BUILD_CPU_BUNDLE 996 OPENJDK_BUILD_OS_BUNDLE 997 OPENJDK_BUILD_OS_EXPORT_DIR 998 OPENJDK_BUILD_CPU_JLI_CFLAGS 999 OPENJDK_BUILD_CPU_OSARCH 1000 OPENJDK_BUILD_CPU_ISADIR 1001 OPENJDK_BUILD_CPU_LIBDIR 1002 OPENJDK_BUILD_CPU_LEGACY_LIB 1003 OPENJDK_BUILD_CPU_LEGACY 1004 HOTSPOT_TARGET_CPU_DEFINE 1005 HOTSPOT_TARGET_CPU_ARCH 1006 HOTSPOT_TARGET_CPU 1007 HOTSPOT_TARGET_OS_TYPE 1008 HOTSPOT_TARGET_OS 1009 DEFINE_CROSS_COMPILE_ARCH 1010 LP64 1011 OPENJDK_TARGET_BUNDLE_PLATFORM 1012 OPENJDK_TARGET_CPU_BUNDLE 1013 OPENJDK_TARGET_OS_BUNDLE 1014 OPENJDK_TARGET_OS_EXPORT_DIR 1015 OPENJDK_TARGET_CPU_JLI_CFLAGS 1016 OPENJDK_TARGET_CPU_OSARCH 1017 OPENJDK_TARGET_CPU_ISADIR 1018 OPENJDK_TARGET_CPU_LIBDIR 1019 OPENJDK_TARGET_CPU_LEGACY_LIB 1020 OPENJDK_TARGET_CPU_LEGACY 1021 REQUIRED_OS_VERSION 1022 REQUIRED_OS_NAME 1023 COMPILE_TYPE 1024 OPENJDK_TARGET_CPU_ENDIAN 1025 OPENJDK_TARGET_CPU_BITS 1026 OPENJDK_TARGET_CPU_ARCH 1027 OPENJDK_TARGET_CPU 1028 OPENJDK_TARGET_OS_ENV 1029 OPENJDK_TARGET_OS_TYPE 1030 OPENJDK_TARGET_OS 1031 OPENJDK_BUILD_CPU_ENDIAN 1032 OPENJDK_BUILD_CPU_BITS 1033 OPENJDK_BUILD_CPU_ARCH 1034 OPENJDK_BUILD_CPU 1035 OPENJDK_BUILD_OS_ENV 1036 OPENJDK_BUILD_OS_TYPE 1037 OPENJDK_BUILD_OS 1038 OPENJDK_BUILD_AUTOCONF_NAME 1039 OPENJDK_TARGET_AUTOCONF_NAME 1040 target_os 1041 target_vendor 1042 target_cpu 1043 target 1044 host_os 1045 host_vendor 1046 host_cpu 1047 host 1048 build_os 1049 build_vendor 1050 build_cpu 1051 build 1052 NICE 1053 CPIO 1054 DF 1055 READLINK 1056 CYGPATH 1057 SED 1058 FGREP 1059 EGREP 1060 GREP 1061 AWK 1062 XARGS 1063 WHICH 1064 WC 1065 UNIQ 1066 UNAME 1067 TR 1068 TOUCH 1069 TEE 1070 TAR 1071 TAIL 1072 SORT 1073 SH 1074 RMDIR 1075 RM 1076 PRINTF 1077 NAWK 1078 MV 1079 MKTEMP 1080 MKDIR 1081 LS 1082 LN 1083 GZIP 1084 GUNZIP 1085 HEAD 1086 FIND 1087 FILE 1088 EXPR 1089 ECHO 1090 DIRNAME 1091 DIFF 1092 DATE 1093 CUT 1094 CP 1095 COMM 1096 CMP 1097 CHMOD 1098 CAT 1099 BASH 1100 BASENAME 1101 DATE_WHEN_CONFIGURED 1102 ORIGINAL_PATH 1103 CONFIGURE_COMMAND_LINE 1104 target_alias 1105 host_alias 1106 build_alias 1107 LIBS 1108 ECHO_T 1109 ECHO_N 1110 ECHO_C 1111 DEFS 1112 mandir 1113 localedir 1114 libdir 1115 psdir 1116 pdfdir 1117 dvidir 1118 htmldir 1119 infodir 1120 docdir 1121 oldincludedir 1122 includedir 1123 localstatedir 1124 sharedstatedir 1125 sysconfdir 1126 datadir 1127 datarootdir 1128 libexecdir 1129 sbindir 1130 bindir 1131 program_transform_name 1132 prefix 1133 exec_prefix 1134 PACKAGE_URL 1135 PACKAGE_BUGREPORT 1136 PACKAGE_STRING 1137 PACKAGE_VERSION 1138 PACKAGE_TARNAME 1139 PACKAGE_NAME 1140 PATH_SEPARATOR 1141 SHELL' 1142 ac_subst_files='' 1143 ac_user_opts=' 1144 enable_option_checking 1145 with_target_bits 1146 enable_openjdk_only 1147 with_custom_make_dir 1148 with_jdk_variant 1149 enable_debug 1150 with_debug_level 1151 with_jvm_variants 1152 with_devkit 1153 with_sys_root 1154 with_sysroot 1155 with_build_sysroot 1156 with_tools_dir 1157 with_toolchain_path 1158 with_extra_path 1159 with_sdk_name 1160 with_conf_name 1161 with_output_sync 1162 with_default_make_target 1163 enable_headful 1164 with_cacerts_file 1165 enable_unlimited_crypto 1166 with_copyright_year 1167 enable_keep_packaged_modules 1168 with_milestone 1169 with_update_version 1170 with_user_release_suffix 1171 with_build_number 1172 with_version_string 1173 with_version_pre 1174 with_version_opt 1175 with_version_build 1176 with_version_major 1177 with_version_minor 1178 with_version_security 1179 with_version_patch 1180 with_boot_jdk 1181 with_build_jdk 1182 with_add_source_root 1183 with_override_source_root 1184 with_adds_and_overrides 1185 with_override_langtools 1186 with_override_corba 1187 with_override_jaxp 1188 with_override_jaxws 1189 with_override_hotspot 1190 with_override_nashorn 1191 with_override_jdk 1192 with_import_hotspot 1193 with_import_modules 1194 enable_static_build 1195 with_toolchain_type 1196 with_extra_cflags 1197 with_extra_cxxflags 1198 with_extra_ldflags 1199 with_toolchain_version 1200 with_build_devkit 1201 with_jtreg 1202 enable_warnings_as_errors 1203 with_native_debug_symbols 1204 enable_debug_symbols 1205 enable_zip_debug_info 1206 enable_native_coverage 1207 enable_dtrace 1208 with_jvm_features 1209 with_jvm_interpreter 1210 enable_hotspot_gtest 1211 with_stdc__lib 1212 with_msvcr_dll 1213 with_msvcp_dll 1214 with_x 1215 with_cups 1216 with_cups_include 1217 with_freetype 1218 with_freetype_include 1219 with_freetype_lib 1220 with_freetype_src 1221 enable_freetype_bundling 1222 with_alsa 1223 with_alsa_include 1224 with_alsa_lib 1225 with_libffi 1226 with_libffi_include 1227 with_libffi_lib 1228 enable_libffi_bundling 1229 with_libjpeg 1230 with_giflib 1231 with_libpng 1232 with_zlib 1233 with_lcms 1234 with_dxsdk 1235 with_dxsdk_lib 1236 with_dxsdk_include 1237 enable_jtreg_failure_handler 1238 enable_generate_classlist 1239 with_num_cores 1240 with_memory_size 1241 with_jobs 1242 with_test_jobs 1243 with_boot_jdk_jvmargs 1244 with_sjavac_server_java 1245 enable_sjavac 1246 enable_javac_server 1247 enable_icecc 1248 enable_precompiled_headers 1249 enable_ccache 1250 with_ccache_dir 1251 ' 1252 ac_precious_vars='build_alias 1253 host_alias 1254 target_alias 1255 BASENAME 1256 BASH 1257 CAT 1258 CHMOD 1259 CMP 1260 COMM 1261 CP 1262 CUT 1263 DATE 1264 DIFF 1265 DIRNAME 1266 ECHO 1267 EXPR 1268 FILE 1269 FIND 1270 HEAD 1271 GUNZIP 1272 GZIP 1273 LN 1274 LS 1275 MKDIR 1276 MKTEMP 1277 MV 1278 NAWK 1279 PRINTF 1280 RM 1281 RMDIR 1282 SH 1283 SORT 1284 TAIL 1285 TAR 1286 TEE 1287 TOUCH 1288 TR 1289 UNAME 1290 UNIQ 1291 WC 1292 WHICH 1293 XARGS 1294 AWK 1295 GREP 1296 EGREP 1297 FGREP 1298 SED 1299 CYGPATH 1300 READLINK 1301 DF 1302 CPIO 1303 NICE 1304 MAKE 1305 UNZIP 1306 ZIP 1307 LDD 1308 OTOOL 1309 READELF 1310 HG 1311 STAT 1312 TIME 1313 DTRACE 1314 PATCH 1315 DSYMUTIL 1316 XATTR 1317 CODESIGN 1318 SETFILE 1319 PKG_CONFIG 1320 JAVA 1321 JAVAC 1322 JAVAH 1323 JAR 1324 JARSIGNER 1325 CC 1326 CFLAGS 1327 LDFLAGS 1328 LIBS 1329 CPPFLAGS 1330 CXX 1331 CXXFLAGS 1332 CCC 1333 CPP 1334 CXXCPP 1335 AS 1336 AR 1337 LIPO 1338 STRIP 1339 NM 1340 GNM 1341 OBJCOPY 1342 OBJDUMP 1343 BUILD_CC 1344 BUILD_CXX 1345 BUILD_NM 1346 BUILD_AR 1347 BUILD_OBJCOPY 1348 BUILD_STRIP 1349 JTREGEXE 1350 XMKMF 1351 FREETYPE_CFLAGS 1352 FREETYPE_LIBS 1353 ALSA_CFLAGS 1354 ALSA_LIBS 1355 LIBFFI_CFLAGS 1356 LIBFFI_LIBS 1357 PNG_CFLAGS 1358 PNG_LIBS 1359 LCMS_CFLAGS 1360 LCMS_LIBS 1361 ICECC_CMD 1362 ICECC_CREATE_ENV 1363 ICECC_WRAPPER 1364 CCACHE' 1365 1366 1367 # Initialize some variables set by options. 1368 ac_init_help= 1369 ac_init_version=false 1370 ac_unrecognized_opts= 1371 ac_unrecognized_sep= 1372 # The variables have the same names as the options, with 1373 # dashes changed to underlines. 1374 cache_file=/dev/null 1375 exec_prefix=NONE 1376 no_create= 1377 no_recursion= 1378 prefix=NONE 1379 program_prefix=NONE 1380 program_suffix=NONE 1381 program_transform_name=s,x,x, 1382 silent= 1383 site= 1384 srcdir= 1385 verbose= 1386 x_includes=NONE 1387 x_libraries=NONE 1388 1389 # Installation directory options. 1390 # These are left unexpanded so users can "make install exec_prefix=/foo" 1391 # and all the variables that are supposed to be based on exec_prefix 1392 # by default will actually change. 1393 # Use braces instead of parens because sh, perl, etc. also accept them. 1394 # (The list follows the same order as the GNU Coding Standards.) 1395 bindir='${exec_prefix}/bin' 1396 sbindir='${exec_prefix}/sbin' 1397 libexecdir='${exec_prefix}/libexec' 1398 datarootdir='${prefix}/share' 1399 datadir='${datarootdir}' 1400 sysconfdir='${prefix}/etc' 1401 sharedstatedir='${prefix}/com' 1402 localstatedir='${prefix}/var' 1403 includedir='${prefix}/include' 1404 oldincludedir='/usr/include' 1405 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1406 infodir='${datarootdir}/info' 1407 htmldir='${docdir}' 1408 dvidir='${docdir}' 1409 pdfdir='${docdir}' 1410 psdir='${docdir}' 1411 libdir='${exec_prefix}/lib' 1412 localedir='${datarootdir}/locale' 1413 mandir='${datarootdir}/man' 1414 1415 ac_prev= 1416 ac_dashdash= 1417 for ac_option 1418 do 1419 # If the previous option needs an argument, assign it. 1420 if test -n "$ac_prev"; then 1421 eval $ac_prev=\$ac_option 1422 ac_prev= 1423 continue 1424 fi 1425 1426 case $ac_option in 1427 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1428 *=) ac_optarg= ;; 1429 *) ac_optarg=yes ;; 1430 esac 1431 1432 # Accept the important Cygnus configure options, so we can diagnose typos. 1433 1434 case $ac_dashdash$ac_option in 1435 --) 1436 ac_dashdash=yes ;; 1437 1438 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1439 ac_prev=bindir ;; 1440 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1441 bindir=$ac_optarg ;; 1442 1443 -build | --build | --buil | --bui | --bu) 1444 ac_prev=build_alias ;; 1445 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1446 build_alias=$ac_optarg ;; 1447 1448 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1449 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1450 ac_prev=cache_file ;; 1451 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1452 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1453 cache_file=$ac_optarg ;; 1454 1455 --config-cache | -C) 1456 cache_file=config.cache ;; 1457 1458 -datadir | --datadir | --datadi | --datad) 1459 ac_prev=datadir ;; 1460 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1461 datadir=$ac_optarg ;; 1462 1463 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1464 | --dataroo | --dataro | --datar) 1465 ac_prev=datarootdir ;; 1466 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1467 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1468 datarootdir=$ac_optarg ;; 1469 1470 -disable-* | --disable-*) 1471 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1472 # Reject names that are not valid shell variable names. 1473 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1474 as_fn_error $? "invalid feature name: $ac_useropt" 1475 ac_useropt_orig=$ac_useropt 1476 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1477 case $ac_user_opts in 1478 *" 1479 "enable_$ac_useropt" 1480 "*) ;; 1481 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1482 ac_unrecognized_sep=', ';; 1483 esac 1484 eval enable_$ac_useropt=no ;; 1485 1486 -docdir | --docdir | --docdi | --doc | --do) 1487 ac_prev=docdir ;; 1488 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1489 docdir=$ac_optarg ;; 1490 1491 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1492 ac_prev=dvidir ;; 1493 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1494 dvidir=$ac_optarg ;; 1495 1496 -enable-* | --enable-*) 1497 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1498 # Reject names that are not valid shell variable names. 1499 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1500 as_fn_error $? "invalid feature name: $ac_useropt" 1501 ac_useropt_orig=$ac_useropt 1502 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1503 case $ac_user_opts in 1504 *" 1505 "enable_$ac_useropt" 1506 "*) ;; 1507 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1508 ac_unrecognized_sep=', ';; 1509 esac 1510 eval enable_$ac_useropt=\$ac_optarg ;; 1511 1512 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1513 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1514 | --exec | --exe | --ex) 1515 ac_prev=exec_prefix ;; 1516 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1517 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1518 | --exec=* | --exe=* | --ex=*) 1519 exec_prefix=$ac_optarg ;; 1520 1521 -gas | --gas | --ga | --g) 1522 # Obsolete; use --with-gas. 1523 with_gas=yes ;; 1524 1525 -help | --help | --hel | --he | -h) 1526 ac_init_help=long ;; 1527 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1528 ac_init_help=recursive ;; 1529 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1530 ac_init_help=short ;; 1531 1532 -host | --host | --hos | --ho) 1533 ac_prev=host_alias ;; 1534 -host=* | --host=* | --hos=* | --ho=*) 1535 host_alias=$ac_optarg ;; 1536 1537 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1538 ac_prev=htmldir ;; 1539 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1540 | --ht=*) 1541 htmldir=$ac_optarg ;; 1542 1543 -includedir | --includedir | --includedi | --included | --include \ 1544 | --includ | --inclu | --incl | --inc) 1545 ac_prev=includedir ;; 1546 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1547 | --includ=* | --inclu=* | --incl=* | --inc=*) 1548 includedir=$ac_optarg ;; 1549 1550 -infodir | --infodir | --infodi | --infod | --info | --inf) 1551 ac_prev=infodir ;; 1552 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1553 infodir=$ac_optarg ;; 1554 1555 -libdir | --libdir | --libdi | --libd) 1556 ac_prev=libdir ;; 1557 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1558 libdir=$ac_optarg ;; 1559 1560 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1561 | --libexe | --libex | --libe) 1562 ac_prev=libexecdir ;; 1563 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1564 | --libexe=* | --libex=* | --libe=*) 1565 libexecdir=$ac_optarg ;; 1566 1567 -localedir | --localedir | --localedi | --localed | --locale) 1568 ac_prev=localedir ;; 1569 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1570 localedir=$ac_optarg ;; 1571 1572 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1573 | --localstate | --localstat | --localsta | --localst | --locals) 1574 ac_prev=localstatedir ;; 1575 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1576 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1577 localstatedir=$ac_optarg ;; 1578 1579 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1580 ac_prev=mandir ;; 1581 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1582 mandir=$ac_optarg ;; 1583 1584 -nfp | --nfp | --nf) 1585 # Obsolete; use --without-fp. 1586 with_fp=no ;; 1587 1588 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1589 | --no-cr | --no-c | -n) 1590 no_create=yes ;; 1591 1592 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1593 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1594 no_recursion=yes ;; 1595 1596 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1597 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1598 | --oldin | --oldi | --old | --ol | --o) 1599 ac_prev=oldincludedir ;; 1600 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1601 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1602 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1603 oldincludedir=$ac_optarg ;; 1604 1605 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1606 ac_prev=prefix ;; 1607 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1608 prefix=$ac_optarg ;; 1609 1610 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1611 | --program-pre | --program-pr | --program-p) 1612 ac_prev=program_prefix ;; 1613 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1614 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1615 program_prefix=$ac_optarg ;; 1616 1617 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1618 | --program-suf | --program-su | --program-s) 1619 ac_prev=program_suffix ;; 1620 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1621 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1622 program_suffix=$ac_optarg ;; 1623 1624 -program-transform-name | --program-transform-name \ 1625 | --program-transform-nam | --program-transform-na \ 1626 | --program-transform-n | --program-transform- \ 1627 | --program-transform | --program-transfor \ 1628 | --program-transfo | --program-transf \ 1629 | --program-trans | --program-tran \ 1630 | --progr-tra | --program-tr | --program-t) 1631 ac_prev=program_transform_name ;; 1632 -program-transform-name=* | --program-transform-name=* \ 1633 | --program-transform-nam=* | --program-transform-na=* \ 1634 | --program-transform-n=* | --program-transform-=* \ 1635 | --program-transform=* | --program-transfor=* \ 1636 | --program-transfo=* | --program-transf=* \ 1637 | --program-trans=* | --program-tran=* \ 1638 | --progr-tra=* | --program-tr=* | --program-t=*) 1639 program_transform_name=$ac_optarg ;; 1640 1641 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1642 ac_prev=pdfdir ;; 1643 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1644 pdfdir=$ac_optarg ;; 1645 1646 -psdir | --psdir | --psdi | --psd | --ps) 1647 ac_prev=psdir ;; 1648 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1649 psdir=$ac_optarg ;; 1650 1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1652 | -silent | --silent | --silen | --sile | --sil) 1653 silent=yes ;; 1654 1655 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1656 ac_prev=sbindir ;; 1657 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1658 | --sbi=* | --sb=*) 1659 sbindir=$ac_optarg ;; 1660 1661 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1662 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1663 | --sharedst | --shareds | --shared | --share | --shar \ 1664 | --sha | --sh) 1665 ac_prev=sharedstatedir ;; 1666 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1667 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1668 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1669 | --sha=* | --sh=*) 1670 sharedstatedir=$ac_optarg ;; 1671 1672 -site | --site | --sit) 1673 ac_prev=site ;; 1674 -site=* | --site=* | --sit=*) 1675 site=$ac_optarg ;; 1676 1677 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1678 ac_prev=srcdir ;; 1679 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1680 srcdir=$ac_optarg ;; 1681 1682 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1683 | --syscon | --sysco | --sysc | --sys | --sy) 1684 ac_prev=sysconfdir ;; 1685 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1686 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1687 sysconfdir=$ac_optarg ;; 1688 1689 -target | --target | --targe | --targ | --tar | --ta | --t) 1690 ac_prev=target_alias ;; 1691 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1692 target_alias=$ac_optarg ;; 1693 1694 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1695 verbose=yes ;; 1696 1697 -version | --version | --versio | --versi | --vers | -V) 1698 ac_init_version=: ;; 1699 1700 -with-* | --with-*) 1701 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1702 # Reject names that are not valid shell variable names. 1703 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1704 as_fn_error $? "invalid package name: $ac_useropt" 1705 ac_useropt_orig=$ac_useropt 1706 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1707 case $ac_user_opts in 1708 *" 1709 "with_$ac_useropt" 1710 "*) ;; 1711 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1712 ac_unrecognized_sep=', ';; 1713 esac 1714 eval with_$ac_useropt=\$ac_optarg ;; 1715 1716 -without-* | --without-*) 1717 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1718 # Reject names that are not valid shell variable names. 1719 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1720 as_fn_error $? "invalid package name: $ac_useropt" 1721 ac_useropt_orig=$ac_useropt 1722 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1723 case $ac_user_opts in 1724 *" 1725 "with_$ac_useropt" 1726 "*) ;; 1727 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1728 ac_unrecognized_sep=', ';; 1729 esac 1730 eval with_$ac_useropt=no ;; 1731 1732 --x) 1733 # Obsolete; use --with-x. 1734 with_x=yes ;; 1735 1736 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1737 | --x-incl | --x-inc | --x-in | --x-i) 1738 ac_prev=x_includes ;; 1739 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1740 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1741 x_includes=$ac_optarg ;; 1742 1743 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1744 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1745 ac_prev=x_libraries ;; 1746 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1747 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1748 x_libraries=$ac_optarg ;; 1749 1750 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1751 Try \`$0 --help' for more information" 1752 ;; 1753 1754 *=*) 1755 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1756 # Reject names that are not valid shell variable names. 1757 case $ac_envvar in #( 1758 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1759 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1760 esac 1761 eval $ac_envvar=\$ac_optarg 1762 export $ac_envvar ;; 1763 1764 *) 1765 # FIXME: should be removed in autoconf 3.0. 1766 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1767 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1768 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1769 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1770 ;; 1771 1772 esac 1773 done 1774 1775 if test -n "$ac_prev"; then 1776 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1777 as_fn_error $? "missing argument to $ac_option" 1778 fi 1779 1780 if test -n "$ac_unrecognized_opts"; then 1781 case $enable_option_checking in 1782 no) ;; 1783 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1784 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1785 esac 1786 fi 1787 1788 # Check all directory arguments for consistency. 1789 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1790 datadir sysconfdir sharedstatedir localstatedir includedir \ 1791 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1792 libdir localedir mandir 1793 do 1794 eval ac_val=\$$ac_var 1795 # Remove trailing slashes. 1796 case $ac_val in 1797 */ ) 1798 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1799 eval $ac_var=\$ac_val;; 1800 esac 1801 # Be sure to have absolute directory names. 1802 case $ac_val in 1803 [\\/$]* | ?:[\\/]* ) continue;; 1804 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1805 esac 1806 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1807 done 1808 1809 # There might be people who depend on the old broken behavior: `$host' 1810 # used to hold the argument of --host etc. 1811 # FIXME: To remove some day. 1812 build=$build_alias 1813 host=$host_alias 1814 target=$target_alias 1815 1816 # FIXME: To remove some day. 1817 if test "x$host_alias" != x; then 1818 if test "x$build_alias" = x; then 1819 cross_compiling=maybe 1820 elif test "x$build_alias" != "x$host_alias"; then 1821 cross_compiling=yes 1822 fi 1823 fi 1824 1825 ac_tool_prefix= 1826 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1827 1828 test "$silent" = yes && exec 6>/dev/null 1829 1830 1831 ac_pwd=`pwd` && test -n "$ac_pwd" && 1832 ac_ls_di=`ls -di .` && 1833 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1834 as_fn_error $? "working directory cannot be determined" 1835 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1836 as_fn_error $? "pwd does not report name of working directory" 1837 1838 1839 # Find the source files, if location was not specified. 1840 if test -z "$srcdir"; then 1841 ac_srcdir_defaulted=yes 1842 # Try the directory containing this script, then the parent directory. 1843 ac_confdir=`$as_dirname -- "$as_myself" || 1844 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1845 X"$as_myself" : 'X\(//\)[^/]' \| \ 1846 X"$as_myself" : 'X\(//\)$' \| \ 1847 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1848 $as_echo X"$as_myself" | 1849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1850 s//\1/ 1851 q 1852 } 1853 /^X\(\/\/\)[^/].*/{ 1854 s//\1/ 1855 q 1856 } 1857 /^X\(\/\/\)$/{ 1858 s//\1/ 1859 q 1860 } 1861 /^X\(\/\).*/{ 1862 s//\1/ 1863 q 1864 } 1865 s/.*/./; q'` 1866 srcdir=$ac_confdir 1867 if test ! -r "$srcdir/$ac_unique_file"; then 1868 srcdir=.. 1869 fi 1870 else 1871 ac_srcdir_defaulted=no 1872 fi 1873 if test ! -r "$srcdir/$ac_unique_file"; then 1874 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1875 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1876 fi 1877 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1878 ac_abs_confdir=`( 1879 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1880 pwd)` 1881 # When building in place, set srcdir=. 1882 if test "$ac_abs_confdir" = "$ac_pwd"; then 1883 srcdir=. 1884 fi 1885 # Remove unnecessary trailing slashes from srcdir. 1886 # Double slashes in file names in object file debugging info 1887 # mess up M-x gdb in Emacs. 1888 case $srcdir in 1889 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1890 esac 1891 for ac_var in $ac_precious_vars; do 1892 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1893 eval ac_env_${ac_var}_value=\$${ac_var} 1894 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1895 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1896 done 1897 1898 # 1899 # Report the --help message. 1900 # 1901 if test "$ac_init_help" = "long"; then 1902 # Omit some internal or obsolete options to make the list less imposing. 1903 # This message is too long to be a string in the A/UX 3.1 sh. 1904 cat <<_ACEOF 1905 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1906 1907 Usage: $0 [OPTION]... [VAR=VALUE]... 1908 1909 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1910 VAR=VALUE. See below for descriptions of some of the useful variables. 1911 1912 Defaults for the options are specified in brackets. 1913 1914 Configuration: 1915 -h, --help display this help and exit 1916 --help=short display options specific to this package 1917 --help=recursive display the short help of all the included packages 1918 -V, --version display version information and exit 1919 -q, --quiet, --silent do not print \`checking ...' messages 1920 --cache-file=FILE cache test results in FILE [disabled] 1921 -C, --config-cache alias for \`--cache-file=config.cache' 1922 -n, --no-create do not create output files 1923 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1924 1925 Installation directories: 1926 --prefix=PREFIX install architecture-independent files in PREFIX 1927 [$ac_default_prefix] 1928 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1929 [PREFIX] 1930 1931 By default, \`make install' will install all the files in 1932 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1933 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1934 for instance \`--prefix=\$HOME'. 1935 1936 For better control, use the options below. 1937 1938 Fine tuning of the installation directories: 1939 --bindir=DIR user executables [EPREFIX/bin] 1940 --sbindir=DIR system admin executables [EPREFIX/sbin] 1941 --libexecdir=DIR program executables [EPREFIX/libexec] 1942 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1943 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1944 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1945 --libdir=DIR object code libraries [EPREFIX/lib] 1946 --includedir=DIR C header files [PREFIX/include] 1947 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1948 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1949 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1950 --infodir=DIR info documentation [DATAROOTDIR/info] 1951 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1952 --mandir=DIR man documentation [DATAROOTDIR/man] 1953 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1954 --htmldir=DIR html documentation [DOCDIR] 1955 --dvidir=DIR dvi documentation [DOCDIR] 1956 --pdfdir=DIR pdf documentation [DOCDIR] 1957 --psdir=DIR ps documentation [DOCDIR] 1958 _ACEOF 1959 1960 cat <<\_ACEOF 1961 1962 X features: 1963 --x-includes=DIR X include files are in DIR 1964 --x-libraries=DIR X library files are in DIR 1965 1966 System types: 1967 --build=BUILD configure for building on BUILD [guessed] 1968 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1969 --target=TARGET configure for building compilers for TARGET [HOST] 1970 _ACEOF 1971 fi 1972 1973 if test -n "$ac_init_help"; then 1974 case $ac_init_help in 1975 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1976 esac 1977 cat <<\_ACEOF 1978 1979 Optional Features: 1980 --disable-option-checking ignore unrecognized --enable/--with options 1981 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1982 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1983 --enable-openjdk-only suppress building custom source even if present 1984 [disabled] 1985 --enable-debug set the debug level to fastdebug (shorthand for 1986 --with-debug-level=fastdebug) [disabled] 1987 --disable-headful disable building headful support (graphical UI 1988 support) [enabled] 1989 --enable-unlimited-crypto 1990 Enable unlimited crypto policy [disabled] 1991 --disable-keep-packaged-modules 1992 Do not keep packaged modules in jdk image [enable] 1993 --enable-static-build enable static library build [disabled] 1994 --disable-warnings-as-errors 1995 do not consider native warnings to be an error 1996 [enabled] 1997 --enable-debug-symbols Deprecated. Option is kept for backwards 1998 compatibility and is ignored 1999 --enable-zip-debug-info Deprecated. Option is kept for backwards 2000 compatibility and is ignored 2001 --enable-native-coverage 2002 enable native compilation with code coverage 2003 data[disabled] 2004 --enable-dtrace[=yes/no/auto] 2005 enable dtrace. Default is auto, where dtrace is 2006 enabled if all dependencies are present. 2007 --disable-hotspot-gtest Disables building of the Hotspot unit tests 2008 --disable-freetype-bundling 2009 disable bundling of the freetype library with the 2010 build result [enabled on Windows or when using 2011 --with-freetype, disabled otherwise] 2012 --disable-libffi-bundling 2013 disable bundling of the libffi library with the 2014 build result [enabled on Android Zero, disabled 2015 otherwise] 2016 --enable-jtreg-failure-handler 2017 forces build of the jtreg failure handler to be 2018 enabled, missing dependencies become fatal errors. 2019 Default is auto, where the failure handler is built 2020 if all dependencies are present and otherwise just 2021 disabled. 2022 --disable-generate-classlist 2023 forces enabling or disabling of the generation of a 2024 CDS classlist at build time. Default is to generate 2025 it when either the server or client JVMs are built. 2026 --enable-sjavac use sjavac to do fast incremental compiles 2027 [disabled] 2028 --disable-javac-server disable javac server [enabled] 2029 --enable-icecc enable distribted compilation of native code using 2030 icecc/icecream [disabled] 2031 --disable-precompiled-headers 2032 disable using precompiled headers when compiling C++ 2033 [enabled] 2034 --enable-ccache enable using ccache to speed up recompilations 2035 [disabled] 2036 2037 Optional Packages: 2038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2040 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2041 support it), e.g. --with-target-bits=32 [guessed] 2042 --with-custom-make-dir Deprecated. Option is kept for backwards 2043 compatibility and is ignored 2044 --with-jdk-variant JDK variant to build (normal) [normal] 2045 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2046 optimized) [release] 2047 --with-jvm-variants JVM variants (separated by commas) to build 2048 (server,client,minimal,core,zero,zeroshark,custom) 2049 [server] 2050 --with-devkit use this devkit for compilers, tools and resources 2051 --with-sys-root alias for --with-sysroot for backwards compatability 2052 --with-sysroot use this directory as sysroot 2053 --with-build-sysroot use this directory as build_sysroot 2054 --with-tools-dir alias for --with-toolchain-path for backwards 2055 compatibility 2056 --with-toolchain-path prepend these directories when searching for 2057 toolchain binaries (compilers etc) 2058 --with-extra-path prepend these directories to the default path 2059 --with-sdk-name use the platform SDK of the given name. [macosx] 2060 --with-conf-name use this as the name of the configuration [generated 2061 from important configuration options] 2062 --with-output-sync set make output sync type if supported by make. 2063 [recurse] 2064 --with-default-make-target 2065 set the default make target [exploded-image] 2066 --with-cacerts-file specify alternative cacerts file 2067 --with-copyright-year Set copyright year value for build [current year] 2068 --with-milestone Deprecated. Option is kept for backwards 2069 compatibility and is ignored 2070 --with-update-version Deprecated. Option is kept for backwards 2071 compatibility and is ignored 2072 --with-user-release-suffix 2073 Deprecated. Option is kept for backwards 2074 compatibility and is ignored 2075 --with-build-number Deprecated. Option is kept for backwards 2076 compatibility and is ignored 2077 --with-version-string Set version string [calculated] 2078 --with-version-pre Set the base part of the version 'PRE' field 2079 (pre-release identifier) ['internal'] 2080 --with-version-opt Set version 'OPT' field (build metadata) 2081 [<timestamp>.<user>.<dirname>] 2082 --with-version-build Set version 'BUILD' field (build number) [not 2083 specified] 2084 --with-version-major Set version 'MAJOR' field (first number) [current 2085 source value] 2086 --with-version-minor Set version 'MINOR' field (second number) [current 2087 source value] 2088 --with-version-security Set version 'SECURITY' field (third number) [current 2089 source value] 2090 --with-version-patch Set version 'PATCH' field (fourth number) [not 2091 specified] 2092 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2093 --with-build-jdk path to JDK of same version as is being built[the 2094 newly built JDK] 2095 --with-add-source-root Deprecated. Option is kept for backwards 2096 compatibility and is ignored 2097 --with-override-source-root 2098 Deprecated. Option is kept for backwards 2099 compatibility and is ignored 2100 --with-adds-and-overrides 2101 Deprecated. Option is kept for backwards 2102 compatibility and is ignored 2103 --with-override-langtools 2104 Deprecated. Option is kept for backwards 2105 compatibility and is ignored 2106 --with-override-corba Deprecated. Option is kept for backwards 2107 compatibility and is ignored 2108 --with-override-jaxp Deprecated. Option is kept for backwards 2109 compatibility and is ignored 2110 --with-override-jaxws Deprecated. Option is kept for backwards 2111 compatibility and is ignored 2112 --with-override-hotspot Deprecated. Option is kept for backwards 2113 compatibility and is ignored 2114 --with-override-nashorn Deprecated. Option is kept for backwards 2115 compatibility and is ignored 2116 --with-override-jdk Deprecated. Option is kept for backwards 2117 compatibility and is ignored 2118 --with-import-hotspot import hotspot binaries from this jdk image or 2119 hotspot build dist dir instead of building from 2120 source 2121 --with-import-modules import a set of prebuilt modules either as a zip 2122 file or an exploded directory 2123 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2124 to show possible values [platform dependent] 2125 --with-extra-cflags extra flags to be used when compiling jdk c-files 2126 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2127 --with-extra-ldflags extra flags to be used when linking jdk 2128 --with-toolchain-version 2129 the version of the toolchain to look for, use 2130 '--help' to show possible values [platform 2131 dependent] 2132 --with-build-devkit Devkit to use for the build platform toolchain 2133 --with-jtreg Regression Test Harness [probed] 2134 --with-native-debug-symbols 2135 set the native debug symbol configuration (none, 2136 internal, external, zipped) [varying] 2137 --with-jvm-features additional JVM features to enable (separated by 2138 comma), use '--help' to show possible values [none] 2139 --with-jvm-interpreter Deprecated. Option is kept for backwards 2140 compatibility and is ignored 2141 --with-stdc++lib=<static>,<dynamic>,<default> 2142 force linking of the C++ runtime on Linux to either 2143 static or dynamic, default is static with dynamic as 2144 fallback 2145 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2146 (Windows only) [probed] 2147 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2148 (Windows only) [probed] 2149 --with-x use the X Window System 2150 --with-cups specify prefix directory for the cups package 2151 (expecting the headers under PATH/include) 2152 --with-cups-include specify directory for the cups include files 2153 --with-freetype specify prefix directory for the freetype package 2154 (expecting the libraries under PATH/lib and the 2155 headers under PATH/include) 2156 --with-freetype-include specify directory for the freetype include files 2157 --with-freetype-lib specify directory for the freetype library 2158 --with-freetype-src specify directory with freetype sources to 2159 automatically build the library (experimental, 2160 Windows-only) 2161 --with-alsa specify prefix directory for the alsa package 2162 (expecting the libraries under PATH/lib and the 2163 headers under PATH/include) 2164 --with-alsa-include specify directory for the alsa include files 2165 --with-alsa-lib specify directory for the alsa library 2166 --with-libffi specify prefix directory for the libffi package 2167 (expecting the libraries under PATH/lib and the 2168 headers under PATH/include) 2169 --with-libffi-include specify directory for the libffi include files 2170 --with-libffi-lib specify directory for the libffi library 2171 --with-libjpeg use libjpeg from build system or OpenJDK source 2172 (system, bundled) [bundled] 2173 --with-giflib use giflib from build system or OpenJDK source 2174 (system, bundled) [bundled] 2175 --with-libpng use libpng from build system or OpenJDK source 2176 (system, bundled) [bundled] 2177 --with-zlib use zlib from build system or OpenJDK source 2178 (system, bundled) [bundled] 2179 --with-lcms use lcms2 from build system or OpenJDK source 2180 (system, bundled) [bundled] 2181 --with-dxsdk Deprecated. Option is kept for backwards 2182 compatibility and is ignored 2183 --with-dxsdk-lib Deprecated. Option is kept for backwards 2184 compatibility and is ignored 2185 --with-dxsdk-include Deprecated. Option is kept for backwards 2186 compatibility and is ignored 2187 --with-num-cores number of cores in the build system, e.g. 2188 --with-num-cores=8 [probed] 2189 --with-memory-size memory (in MB) available in the build system, e.g. 2190 --with-memory-size=1024 [probed] 2191 --with-jobs number of parallel jobs to let make run [calculated 2192 based on cores and memory] 2193 --with-test-jobs number of parallel tests jobs to run [based on build 2194 jobs] 2195 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2196 invocations of boot JDK, overriding the default 2197 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2198 -enableassertions" 2199 --with-sjavac-server-java 2200 use this java binary for running the sjavac 2201 background server [Boot JDK java] 2202 --with-ccache-dir where to store ccache files [~/.ccache] 2203 2204 Some influential environment variables: 2205 BASENAME Override default value for BASENAME 2206 BASH Override default value for BASH 2207 CAT Override default value for CAT 2208 CHMOD Override default value for CHMOD 2209 CMP Override default value for CMP 2210 COMM Override default value for COMM 2211 CP Override default value for CP 2212 CUT Override default value for CUT 2213 DATE Override default value for DATE 2214 DIFF Override default value for DIFF 2215 DIRNAME Override default value for DIRNAME 2216 ECHO Override default value for ECHO 2217 EXPR Override default value for EXPR 2218 FILE Override default value for FILE 2219 FIND Override default value for FIND 2220 HEAD Override default value for HEAD 2221 GUNZIP Override default value for GUNZIP 2222 GZIP Override default value for GZIP 2223 LN Override default value for LN 2224 LS Override default value for LS 2225 MKDIR Override default value for MKDIR 2226 MKTEMP Override default value for MKTEMP 2227 MV Override default value for MV 2228 NAWK Override default value for NAWK 2229 PRINTF Override default value for PRINTF 2230 RM Override default value for RM 2231 RMDIR Override default value for RMDIR 2232 SH Override default value for SH 2233 SORT Override default value for SORT 2234 TAIL Override default value for TAIL 2235 TAR Override default value for TAR 2236 TEE Override default value for TEE 2237 TOUCH Override default value for TOUCH 2238 TR Override default value for TR 2239 UNAME Override default value for UNAME 2240 UNIQ Override default value for UNIQ 2241 WC Override default value for WC 2242 WHICH Override default value for WHICH 2243 XARGS Override default value for XARGS 2244 AWK Override default value for AWK 2245 GREP Override default value for GREP 2246 EGREP Override default value for EGREP 2247 FGREP Override default value for FGREP 2248 SED Override default value for SED 2249 CYGPATH Override default value for CYGPATH 2250 READLINK Override default value for READLINK 2251 DF Override default value for DF 2252 CPIO Override default value for CPIO 2253 NICE Override default value for NICE 2254 MAKE Override default value for MAKE 2255 UNZIP Override default value for UNZIP 2256 ZIP Override default value for ZIP 2257 LDD Override default value for LDD 2258 OTOOL Override default value for OTOOL 2259 READELF Override default value for READELF 2260 HG Override default value for HG 2261 STAT Override default value for STAT 2262 TIME Override default value for TIME 2263 DTRACE Override default value for DTRACE 2264 PATCH Override default value for PATCH 2265 DSYMUTIL Override default value for DSYMUTIL 2266 XATTR Override default value for XATTR 2267 CODESIGN Override default value for CODESIGN 2268 SETFILE Override default value for SETFILE 2269 PKG_CONFIG path to pkg-config utility 2270 JAVA Override default value for JAVA 2271 JAVAC Override default value for JAVAC 2272 JAVAH Override default value for JAVAH 2273 JAR Override default value for JAR 2274 JARSIGNER Override default value for JARSIGNER 2275 CC C compiler command 2276 CFLAGS C compiler flags 2277 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2278 nonstandard directory <lib dir> 2279 LIBS libraries to pass to the linker, e.g. -l<library> 2280 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2281 you have headers in a nonstandard directory <include dir> 2282 CXX C++ compiler command 2283 CXXFLAGS C++ compiler flags 2284 CPP C preprocessor 2285 CXXCPP C++ preprocessor 2286 AS Override default value for AS 2287 AR Override default value for AR 2288 LIPO Override default value for LIPO 2289 STRIP Override default value for STRIP 2290 NM Override default value for NM 2291 GNM Override default value for GNM 2292 OBJCOPY Override default value for OBJCOPY 2293 OBJDUMP Override default value for OBJDUMP 2294 BUILD_CC Override default value for BUILD_CC 2295 BUILD_CXX Override default value for BUILD_CXX 2296 BUILD_NM Override default value for BUILD_NM 2297 BUILD_AR Override default value for BUILD_AR 2298 BUILD_OBJCOPY 2299 Override default value for BUILD_OBJCOPY 2300 BUILD_STRIP Override default value for BUILD_STRIP 2301 JTREGEXE Override default value for JTREGEXE 2302 XMKMF Path to xmkmf, Makefile generator for X Window System 2303 FREETYPE_CFLAGS 2304 C compiler flags for FREETYPE, overriding pkg-config 2305 FREETYPE_LIBS 2306 linker flags for FREETYPE, overriding pkg-config 2307 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2308 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2309 LIBFFI_CFLAGS 2310 C compiler flags for LIBFFI, overriding pkg-config 2311 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2312 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2313 PNG_LIBS linker flags for PNG, overriding pkg-config 2314 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2315 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2316 ICECC_CMD Override default value for ICECC_CMD 2317 ICECC_CREATE_ENV 2318 Override default value for ICECC_CREATE_ENV 2319 ICECC_WRAPPER 2320 Override default value for ICECC_WRAPPER 2321 CCACHE Override default value for CCACHE 2322 2323 Use these variables to override the choices made by `configure' or to help 2324 it to find libraries and programs with nonstandard names/locations. 2325 2326 Report bugs to <build-dev@openjdk.java.net>. 2327 OpenJDK home page: <http://openjdk.java.net>. 2328 _ACEOF 2329 ac_status=$? 2330 fi 2331 2332 if test "$ac_init_help" = "recursive"; then 2333 # If there are subdirs, report their specific --help. 2334 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2335 test -d "$ac_dir" || 2336 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2337 continue 2338 ac_builddir=. 2339 2340 case "$ac_dir" in 2341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2342 *) 2343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2344 # A ".." for each directory in $ac_dir_suffix. 2345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2346 case $ac_top_builddir_sub in 2347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2349 esac ;; 2350 esac 2351 ac_abs_top_builddir=$ac_pwd 2352 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2353 # for backward compatibility: 2354 ac_top_builddir=$ac_top_build_prefix 2355 2356 case $srcdir in 2357 .) # We are building in place. 2358 ac_srcdir=. 2359 ac_top_srcdir=$ac_top_builddir_sub 2360 ac_abs_top_srcdir=$ac_pwd ;; 2361 [\\/]* | ?:[\\/]* ) # Absolute name. 2362 ac_srcdir=$srcdir$ac_dir_suffix; 2363 ac_top_srcdir=$srcdir 2364 ac_abs_top_srcdir=$srcdir ;; 2365 *) # Relative name. 2366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2367 ac_top_srcdir=$ac_top_build_prefix$srcdir 2368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2369 esac 2370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2371 2372 cd "$ac_dir" || { ac_status=$?; continue; } 2373 # Check for guested configure. 2374 if test -f "$ac_srcdir/configure.gnu"; then 2375 echo && 2376 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2377 elif test -f "$ac_srcdir/configure"; then 2378 echo && 2379 $SHELL "$ac_srcdir/configure" --help=recursive 2380 else 2381 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2382 fi || ac_status=$? 2383 cd "$ac_pwd" || { ac_status=$?; break; } 2384 done 2385 fi 2386 2387 test -n "$ac_init_help" && exit $ac_status 2388 if $ac_init_version; then 2389 cat <<\_ACEOF 2390 OpenJDK configure jdk9 2391 generated by GNU Autoconf 2.69 2392 2393 Copyright (C) 2012 Free Software Foundation, Inc. 2394 This configure script is free software; the Free Software Foundation 2395 gives unlimited permission to copy, distribute and modify it. 2396 _ACEOF 2397 exit 2398 fi 2399 2400 ## ------------------------ ## 2401 ## Autoconf initialization. ## 2402 ## ------------------------ ## 2403 2404 # ac_fn_c_try_compile LINENO 2405 # -------------------------- 2406 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2407 ac_fn_c_try_compile () 2408 { 2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2410 rm -f conftest.$ac_objext 2411 if { { ac_try="$ac_compile" 2412 case "(($ac_try" in 2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2414 *) ac_try_echo=$ac_try;; 2415 esac 2416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2417 $as_echo "$ac_try_echo"; } >&5 2418 (eval "$ac_compile") 2>conftest.err 2419 ac_status=$? 2420 if test -s conftest.err; then 2421 grep -v '^ *+' conftest.err >conftest.er1 2422 cat conftest.er1 >&5 2423 mv -f conftest.er1 conftest.err 2424 fi 2425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2426 test $ac_status = 0; } && { 2427 test -z "$ac_c_werror_flag" || 2428 test ! -s conftest.err 2429 } && test -s conftest.$ac_objext; then : 2430 ac_retval=0 2431 else 2432 $as_echo "$as_me: failed program was:" >&5 2433 sed 's/^/| /' conftest.$ac_ext >&5 2434 2435 ac_retval=1 2436 fi 2437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2438 as_fn_set_status $ac_retval 2439 2440 } # ac_fn_c_try_compile 2441 2442 # ac_fn_cxx_try_compile LINENO 2443 # ---------------------------- 2444 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2445 ac_fn_cxx_try_compile () 2446 { 2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2448 rm -f conftest.$ac_objext 2449 if { { ac_try="$ac_compile" 2450 case "(($ac_try" in 2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2452 *) ac_try_echo=$ac_try;; 2453 esac 2454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2455 $as_echo "$ac_try_echo"; } >&5 2456 (eval "$ac_compile") 2>conftest.err 2457 ac_status=$? 2458 if test -s conftest.err; then 2459 grep -v '^ *+' conftest.err >conftest.er1 2460 cat conftest.er1 >&5 2461 mv -f conftest.er1 conftest.err 2462 fi 2463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2464 test $ac_status = 0; } && { 2465 test -z "$ac_cxx_werror_flag" || 2466 test ! -s conftest.err 2467 } && test -s conftest.$ac_objext; then : 2468 ac_retval=0 2469 else 2470 $as_echo "$as_me: failed program was:" >&5 2471 sed 's/^/| /' conftest.$ac_ext >&5 2472 2473 ac_retval=1 2474 fi 2475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2476 as_fn_set_status $ac_retval 2477 2478 } # ac_fn_cxx_try_compile 2479 2480 # ac_fn_c_try_cpp LINENO 2481 # ---------------------- 2482 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2483 ac_fn_c_try_cpp () 2484 { 2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2486 if { { ac_try="$ac_cpp conftest.$ac_ext" 2487 case "(($ac_try" in 2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2489 *) ac_try_echo=$ac_try;; 2490 esac 2491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2492 $as_echo "$ac_try_echo"; } >&5 2493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2494 ac_status=$? 2495 if test -s conftest.err; then 2496 grep -v '^ *+' conftest.err >conftest.er1 2497 cat conftest.er1 >&5 2498 mv -f conftest.er1 conftest.err 2499 fi 2500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2501 test $ac_status = 0; } > conftest.i && { 2502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2503 test ! -s conftest.err 2504 }; then : 2505 ac_retval=0 2506 else 2507 $as_echo "$as_me: failed program was:" >&5 2508 sed 's/^/| /' conftest.$ac_ext >&5 2509 2510 ac_retval=1 2511 fi 2512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2513 as_fn_set_status $ac_retval 2514 2515 } # ac_fn_c_try_cpp 2516 2517 # ac_fn_cxx_try_cpp LINENO 2518 # ------------------------ 2519 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2520 ac_fn_cxx_try_cpp () 2521 { 2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2523 if { { ac_try="$ac_cpp conftest.$ac_ext" 2524 case "(($ac_try" in 2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2526 *) ac_try_echo=$ac_try;; 2527 esac 2528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2529 $as_echo "$ac_try_echo"; } >&5 2530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2531 ac_status=$? 2532 if test -s conftest.err; then 2533 grep -v '^ *+' conftest.err >conftest.er1 2534 cat conftest.er1 >&5 2535 mv -f conftest.er1 conftest.err 2536 fi 2537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2538 test $ac_status = 0; } > conftest.i && { 2539 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2540 test ! -s conftest.err 2541 }; then : 2542 ac_retval=0 2543 else 2544 $as_echo "$as_me: failed program was:" >&5 2545 sed 's/^/| /' conftest.$ac_ext >&5 2546 2547 ac_retval=1 2548 fi 2549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2550 as_fn_set_status $ac_retval 2551 2552 } # ac_fn_cxx_try_cpp 2553 2554 # ac_fn_c_try_link LINENO 2555 # ----------------------- 2556 # Try to link conftest.$ac_ext, and return whether this succeeded. 2557 ac_fn_c_try_link () 2558 { 2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2560 rm -f conftest.$ac_objext conftest$ac_exeext 2561 if { { ac_try="$ac_link" 2562 case "(($ac_try" in 2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2564 *) ac_try_echo=$ac_try;; 2565 esac 2566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2567 $as_echo "$ac_try_echo"; } >&5 2568 (eval "$ac_link") 2>conftest.err 2569 ac_status=$? 2570 if test -s conftest.err; then 2571 grep -v '^ *+' conftest.err >conftest.er1 2572 cat conftest.er1 >&5 2573 mv -f conftest.er1 conftest.err 2574 fi 2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2576 test $ac_status = 0; } && { 2577 test -z "$ac_c_werror_flag" || 2578 test ! -s conftest.err 2579 } && test -s conftest$ac_exeext && { 2580 test "$cross_compiling" = yes || 2581 test -x conftest$ac_exeext 2582 }; then : 2583 ac_retval=0 2584 else 2585 $as_echo "$as_me: failed program was:" >&5 2586 sed 's/^/| /' conftest.$ac_ext >&5 2587 2588 ac_retval=1 2589 fi 2590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2592 # interfere with the next link command; also delete a directory that is 2593 # left behind by Apple's compiler. We do this before executing the actions. 2594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2596 as_fn_set_status $ac_retval 2597 2598 } # ac_fn_c_try_link 2599 2600 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2601 # --------------------------------------------------------- 2602 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2603 # the include files in INCLUDES and setting the cache variable VAR 2604 # accordingly. 2605 ac_fn_cxx_check_header_mongrel () 2606 { 2607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2608 if eval \${$3+:} false; then : 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2610 $as_echo_n "checking for $2... " >&6; } 2611 if eval \${$3+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613 fi 2614 eval ac_res=\$$3 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2616 $as_echo "$ac_res" >&6; } 2617 else 2618 # Is the header compilable? 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2620 $as_echo_n "checking $2 usability... " >&6; } 2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2622 /* end confdefs.h. */ 2623 $4 2624 #include <$2> 2625 _ACEOF 2626 if ac_fn_cxx_try_compile "$LINENO"; then : 2627 ac_header_compiler=yes 2628 else 2629 ac_header_compiler=no 2630 fi 2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2633 $as_echo "$ac_header_compiler" >&6; } 2634 2635 # Is the header present? 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2637 $as_echo_n "checking $2 presence... " >&6; } 2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2639 /* end confdefs.h. */ 2640 #include <$2> 2641 _ACEOF 2642 if ac_fn_cxx_try_cpp "$LINENO"; then : 2643 ac_header_preproc=yes 2644 else 2645 ac_header_preproc=no 2646 fi 2647 rm -f conftest.err conftest.i conftest.$ac_ext 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2649 $as_echo "$ac_header_preproc" >&6; } 2650 2651 # So? What about this header? 2652 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2653 yes:no: ) 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2655 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2657 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2658 ;; 2659 no:yes:* ) 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2661 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2663 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2665 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2667 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2669 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2670 ( $as_echo "## ----------------------------------------- ## 2671 ## Report this to build-dev@openjdk.java.net ## 2672 ## ----------------------------------------- ##" 2673 ) | sed "s/^/$as_me: WARNING: /" >&2 2674 ;; 2675 esac 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2677 $as_echo_n "checking for $2... " >&6; } 2678 if eval \${$3+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680 else 2681 eval "$3=\$ac_header_compiler" 2682 fi 2683 eval ac_res=\$$3 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2685 $as_echo "$ac_res" >&6; } 2686 fi 2687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2688 2689 } # ac_fn_cxx_check_header_mongrel 2690 2691 # ac_fn_cxx_try_run LINENO 2692 # ------------------------ 2693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2694 # that executables *can* be run. 2695 ac_fn_cxx_try_run () 2696 { 2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2698 if { { ac_try="$ac_link" 2699 case "(($ac_try" in 2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2701 *) ac_try_echo=$ac_try;; 2702 esac 2703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2704 $as_echo "$ac_try_echo"; } >&5 2705 (eval "$ac_link") 2>&5 2706 ac_status=$? 2707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2709 { { case "(($ac_try" in 2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2711 *) ac_try_echo=$ac_try;; 2712 esac 2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2714 $as_echo "$ac_try_echo"; } >&5 2715 (eval "$ac_try") 2>&5 2716 ac_status=$? 2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2718 test $ac_status = 0; }; }; then : 2719 ac_retval=0 2720 else 2721 $as_echo "$as_me: program exited with status $ac_status" >&5 2722 $as_echo "$as_me: failed program was:" >&5 2723 sed 's/^/| /' conftest.$ac_ext >&5 2724 2725 ac_retval=$ac_status 2726 fi 2727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2729 as_fn_set_status $ac_retval 2730 2731 } # ac_fn_cxx_try_run 2732 2733 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2734 # --------------------------------------------------------- 2735 # Tests whether HEADER exists and can be compiled using the include files in 2736 # INCLUDES, setting the cache variable VAR accordingly. 2737 ac_fn_cxx_check_header_compile () 2738 { 2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2741 $as_echo_n "checking for $2... " >&6; } 2742 if eval \${$3+:} false; then : 2743 $as_echo_n "(cached) " >&6 2744 else 2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2746 /* end confdefs.h. */ 2747 $4 2748 #include <$2> 2749 _ACEOF 2750 if ac_fn_cxx_try_compile "$LINENO"; then : 2751 eval "$3=yes" 2752 else 2753 eval "$3=no" 2754 fi 2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2756 fi 2757 eval ac_res=\$$3 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2759 $as_echo "$ac_res" >&6; } 2760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2761 2762 } # ac_fn_cxx_check_header_compile 2763 2764 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2765 # ---------------------------------------------- 2766 # Tries to find the compile-time value of EXPR in a program that includes 2767 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2768 # computed 2769 ac_fn_cxx_compute_int () 2770 { 2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2772 if test "$cross_compiling" = yes; then 2773 # Depending upon the size, compute the lo and hi bounds. 2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2775 /* end confdefs.h. */ 2776 $4 2777 int 2778 main () 2779 { 2780 static int test_array [1 - 2 * !(($2) >= 0)]; 2781 test_array [0] = 0; 2782 return test_array [0]; 2783 2784 ; 2785 return 0; 2786 } 2787 _ACEOF 2788 if ac_fn_cxx_try_compile "$LINENO"; then : 2789 ac_lo=0 ac_mid=0 2790 while :; do 2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2792 /* end confdefs.h. */ 2793 $4 2794 int 2795 main () 2796 { 2797 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2798 test_array [0] = 0; 2799 return test_array [0]; 2800 2801 ; 2802 return 0; 2803 } 2804 _ACEOF 2805 if ac_fn_cxx_try_compile "$LINENO"; then : 2806 ac_hi=$ac_mid; break 2807 else 2808 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2809 if test $ac_lo -le $ac_mid; then 2810 ac_lo= ac_hi= 2811 break 2812 fi 2813 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2814 fi 2815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2816 done 2817 else 2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2819 /* end confdefs.h. */ 2820 $4 2821 int 2822 main () 2823 { 2824 static int test_array [1 - 2 * !(($2) < 0)]; 2825 test_array [0] = 0; 2826 return test_array [0]; 2827 2828 ; 2829 return 0; 2830 } 2831 _ACEOF 2832 if ac_fn_cxx_try_compile "$LINENO"; then : 2833 ac_hi=-1 ac_mid=-1 2834 while :; do 2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2836 /* end confdefs.h. */ 2837 $4 2838 int 2839 main () 2840 { 2841 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2842 test_array [0] = 0; 2843 return test_array [0]; 2844 2845 ; 2846 return 0; 2847 } 2848 _ACEOF 2849 if ac_fn_cxx_try_compile "$LINENO"; then : 2850 ac_lo=$ac_mid; break 2851 else 2852 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2853 if test $ac_mid -le $ac_hi; then 2854 ac_lo= ac_hi= 2855 break 2856 fi 2857 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2858 fi 2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2860 done 2861 else 2862 ac_lo= ac_hi= 2863 fi 2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2865 fi 2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2867 # Binary search between lo and hi bounds. 2868 while test "x$ac_lo" != "x$ac_hi"; do 2869 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2871 /* end confdefs.h. */ 2872 $4 2873 int 2874 main () 2875 { 2876 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2877 test_array [0] = 0; 2878 return test_array [0]; 2879 2880 ; 2881 return 0; 2882 } 2883 _ACEOF 2884 if ac_fn_cxx_try_compile "$LINENO"; then : 2885 ac_hi=$ac_mid 2886 else 2887 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2888 fi 2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2890 done 2891 case $ac_lo in #(( 2892 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2893 '') ac_retval=1 ;; 2894 esac 2895 else 2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2897 /* end confdefs.h. */ 2898 $4 2899 static long int longval () { return $2; } 2900 static unsigned long int ulongval () { return $2; } 2901 #include <stdio.h> 2902 #include <stdlib.h> 2903 int 2904 main () 2905 { 2906 2907 FILE *f = fopen ("conftest.val", "w"); 2908 if (! f) 2909 return 1; 2910 if (($2) < 0) 2911 { 2912 long int i = longval (); 2913 if (i != ($2)) 2914 return 1; 2915 fprintf (f, "%ld", i); 2916 } 2917 else 2918 { 2919 unsigned long int i = ulongval (); 2920 if (i != ($2)) 2921 return 1; 2922 fprintf (f, "%lu", i); 2923 } 2924 /* Do not output a trailing newline, as this causes \r\n confusion 2925 on some platforms. */ 2926 return ferror (f) || fclose (f) != 0; 2927 2928 ; 2929 return 0; 2930 } 2931 _ACEOF 2932 if ac_fn_cxx_try_run "$LINENO"; then : 2933 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2934 else 2935 ac_retval=1 2936 fi 2937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2938 conftest.$ac_objext conftest.beam conftest.$ac_ext 2939 rm -f conftest.val 2940 2941 fi 2942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2943 as_fn_set_status $ac_retval 2944 2945 } # ac_fn_cxx_compute_int 2946 2947 # ac_fn_cxx_try_link LINENO 2948 # ------------------------- 2949 # Try to link conftest.$ac_ext, and return whether this succeeded. 2950 ac_fn_cxx_try_link () 2951 { 2952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2953 rm -f conftest.$ac_objext conftest$ac_exeext 2954 if { { ac_try="$ac_link" 2955 case "(($ac_try" in 2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2957 *) ac_try_echo=$ac_try;; 2958 esac 2959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2960 $as_echo "$ac_try_echo"; } >&5 2961 (eval "$ac_link") 2>conftest.err 2962 ac_status=$? 2963 if test -s conftest.err; then 2964 grep -v '^ *+' conftest.err >conftest.er1 2965 cat conftest.er1 >&5 2966 mv -f conftest.er1 conftest.err 2967 fi 2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2969 test $ac_status = 0; } && { 2970 test -z "$ac_cxx_werror_flag" || 2971 test ! -s conftest.err 2972 } && test -s conftest$ac_exeext && { 2973 test "$cross_compiling" = yes || 2974 test -x conftest$ac_exeext 2975 }; then : 2976 ac_retval=0 2977 else 2978 $as_echo "$as_me: failed program was:" >&5 2979 sed 's/^/| /' conftest.$ac_ext >&5 2980 2981 ac_retval=1 2982 fi 2983 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2984 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2985 # interfere with the next link command; also delete a directory that is 2986 # left behind by Apple's compiler. We do this before executing the actions. 2987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2989 as_fn_set_status $ac_retval 2990 2991 } # ac_fn_cxx_try_link 2992 2993 # ac_fn_cxx_check_func LINENO FUNC VAR 2994 # ------------------------------------ 2995 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2996 ac_fn_cxx_check_func () 2997 { 2998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3000 $as_echo_n "checking for $2... " >&6; } 3001 if eval \${$3+:} false; then : 3002 $as_echo_n "(cached) " >&6 3003 else 3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3005 /* end confdefs.h. */ 3006 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3007 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3008 #define $2 innocuous_$2 3009 3010 /* System header to define __stub macros and hopefully few prototypes, 3011 which can conflict with char $2 (); below. 3012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3013 <limits.h> exists even on freestanding compilers. */ 3014 3015 #ifdef __STDC__ 3016 # include <limits.h> 3017 #else 3018 # include <assert.h> 3019 #endif 3020 3021 #undef $2 3022 3023 /* Override any GCC internal prototype to avoid an error. 3024 Use char because int might match the return type of a GCC 3025 builtin and then its argument prototype would still apply. */ 3026 #ifdef __cplusplus 3027 extern "C" 3028 #endif 3029 char $2 (); 3030 /* The GNU C library defines this for functions which it implements 3031 to always fail with ENOSYS. Some functions are actually named 3032 something starting with __ and the normal name is an alias. */ 3033 #if defined __stub_$2 || defined __stub___$2 3034 choke me 3035 #endif 3036 3037 int 3038 main () 3039 { 3040 return $2 (); 3041 ; 3042 return 0; 3043 } 3044 _ACEOF 3045 if ac_fn_cxx_try_link "$LINENO"; then : 3046 eval "$3=yes" 3047 else 3048 eval "$3=no" 3049 fi 3050 rm -f core conftest.err conftest.$ac_objext \ 3051 conftest$ac_exeext conftest.$ac_ext 3052 fi 3053 eval ac_res=\$$3 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3055 $as_echo "$ac_res" >&6; } 3056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3057 3058 } # ac_fn_cxx_check_func 3059 3060 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3061 # ------------------------------------------------------- 3062 # Tests whether HEADER exists and can be compiled using the include files in 3063 # INCLUDES, setting the cache variable VAR accordingly. 3064 ac_fn_c_check_header_compile () 3065 { 3066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3068 $as_echo_n "checking for $2... " >&6; } 3069 if eval \${$3+:} false; then : 3070 $as_echo_n "(cached) " >&6 3071 else 3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3073 /* end confdefs.h. */ 3074 $4 3075 #include <$2> 3076 _ACEOF 3077 if ac_fn_c_try_compile "$LINENO"; then : 3078 eval "$3=yes" 3079 else 3080 eval "$3=no" 3081 fi 3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3083 fi 3084 eval ac_res=\$$3 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3086 $as_echo "$ac_res" >&6; } 3087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3088 3089 } # ac_fn_c_check_header_compile 3090 cat >config.log <<_ACEOF 3091 This file contains any messages produced by compilers while 3092 running configure, to aid debugging if configure makes a mistake. 3093 3094 It was created by OpenJDK $as_me jdk9, which was 3095 generated by GNU Autoconf 2.69. Invocation command line was 3096 3097 $ $0 $@ 3098 3099 _ACEOF 3100 exec 5>>config.log 3101 { 3102 cat <<_ASUNAME 3103 ## --------- ## 3104 ## Platform. ## 3105 ## --------- ## 3106 3107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3108 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3109 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3110 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3111 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3112 3113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3115 3116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3123 3124 _ASUNAME 3125 3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127 for as_dir in $PATH 3128 do 3129 IFS=$as_save_IFS 3130 test -z "$as_dir" && as_dir=. 3131 $as_echo "PATH: $as_dir" 3132 done 3133 IFS=$as_save_IFS 3134 3135 } >&5 3136 3137 cat >&5 <<_ACEOF 3138 3139 3140 ## ----------- ## 3141 ## Core tests. ## 3142 ## ----------- ## 3143 3144 _ACEOF 3145 3146 3147 # Keep a trace of the command line. 3148 # Strip out --no-create and --no-recursion so they do not pile up. 3149 # Strip out --silent because we don't want to record it for future runs. 3150 # Also quote any args containing shell meta-characters. 3151 # Make two passes to allow for proper duplicate-argument suppression. 3152 ac_configure_args= 3153 ac_configure_args0= 3154 ac_configure_args1= 3155 ac_must_keep_next=false 3156 for ac_pass in 1 2 3157 do 3158 for ac_arg 3159 do 3160 case $ac_arg in 3161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3163 | -silent | --silent | --silen | --sile | --sil) 3164 continue ;; 3165 *\'*) 3166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3167 esac 3168 case $ac_pass in 3169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3170 2) 3171 as_fn_append ac_configure_args1 " '$ac_arg'" 3172 if test $ac_must_keep_next = true; then 3173 ac_must_keep_next=false # Got value, back to normal. 3174 else 3175 case $ac_arg in 3176 *=* | --config-cache | -C | -disable-* | --disable-* \ 3177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3179 | -with-* | --with-* | -without-* | --without-* | --x) 3180 case "$ac_configure_args0 " in 3181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3182 esac 3183 ;; 3184 -* ) ac_must_keep_next=true ;; 3185 esac 3186 fi 3187 as_fn_append ac_configure_args " '$ac_arg'" 3188 ;; 3189 esac 3190 done 3191 done 3192 { ac_configure_args0=; unset ac_configure_args0;} 3193 { ac_configure_args1=; unset ac_configure_args1;} 3194 3195 # When interrupted or exit'd, cleanup temporary files, and complete 3196 # config.log. We remove comments because anyway the quotes in there 3197 # would cause problems or look ugly. 3198 # WARNING: Use '\'' to represent an apostrophe within the trap. 3199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3200 trap 'exit_status=$? 3201 # Save into config.log some information that might help in debugging. 3202 { 3203 echo 3204 3205 $as_echo "## ---------------- ## 3206 ## Cache variables. ## 3207 ## ---------------- ##" 3208 echo 3209 # The following way of writing the cache mishandles newlines in values, 3210 ( 3211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3212 eval ac_val=\$$ac_var 3213 case $ac_val in #( 3214 *${as_nl}*) 3215 case $ac_var in #( 3216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3218 esac 3219 case $ac_var in #( 3220 _ | IFS | as_nl) ;; #( 3221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3222 *) { eval $ac_var=; unset $ac_var;} ;; 3223 esac ;; 3224 esac 3225 done 3226 (set) 2>&1 | 3227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3228 *${as_nl}ac_space=\ *) 3229 sed -n \ 3230 "s/'\''/'\''\\\\'\'''\''/g; 3231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3232 ;; #( 3233 *) 3234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3235 ;; 3236 esac | 3237 sort 3238 ) 3239 echo 3240 3241 $as_echo "## ----------------- ## 3242 ## Output variables. ## 3243 ## ----------------- ##" 3244 echo 3245 for ac_var in $ac_subst_vars 3246 do 3247 eval ac_val=\$$ac_var 3248 case $ac_val in 3249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3250 esac 3251 $as_echo "$ac_var='\''$ac_val'\''" 3252 done | sort 3253 echo 3254 3255 if test -n "$ac_subst_files"; then 3256 $as_echo "## ------------------- ## 3257 ## File substitutions. ## 3258 ## ------------------- ##" 3259 echo 3260 for ac_var in $ac_subst_files 3261 do 3262 eval ac_val=\$$ac_var 3263 case $ac_val in 3264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3265 esac 3266 $as_echo "$ac_var='\''$ac_val'\''" 3267 done | sort 3268 echo 3269 fi 3270 3271 if test -s confdefs.h; then 3272 $as_echo "## ----------- ## 3273 ## confdefs.h. ## 3274 ## ----------- ##" 3275 echo 3276 cat confdefs.h 3277 echo 3278 fi 3279 test "$ac_signal" != 0 && 3280 $as_echo "$as_me: caught signal $ac_signal" 3281 $as_echo "$as_me: exit $exit_status" 3282 } >&5 3283 rm -f core *.core core.conftest.* && 3284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3285 exit $exit_status 3286 ' 0 3287 for ac_signal in 1 2 13 15; do 3288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3289 done 3290 ac_signal=0 3291 3292 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3293 rm -f -r conftest* confdefs.h 3294 3295 $as_echo "/* confdefs.h */" > confdefs.h 3296 3297 # Predefined preprocessor variables. 3298 3299 cat >>confdefs.h <<_ACEOF 3300 #define PACKAGE_NAME "$PACKAGE_NAME" 3301 _ACEOF 3302 3303 cat >>confdefs.h <<_ACEOF 3304 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3305 _ACEOF 3306 3307 cat >>confdefs.h <<_ACEOF 3308 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3309 _ACEOF 3310 3311 cat >>confdefs.h <<_ACEOF 3312 #define PACKAGE_STRING "$PACKAGE_STRING" 3313 _ACEOF 3314 3315 cat >>confdefs.h <<_ACEOF 3316 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3317 _ACEOF 3318 3319 cat >>confdefs.h <<_ACEOF 3320 #define PACKAGE_URL "$PACKAGE_URL" 3321 _ACEOF 3322 3323 3324 # Let the site file select an alternate cache file if it wants to. 3325 # Prefer an explicitly selected file to automatically selected ones. 3326 ac_site_file1=NONE 3327 ac_site_file2=NONE 3328 if test -n "$CONFIG_SITE"; then 3329 # We do not want a PATH search for config.site. 3330 case $CONFIG_SITE in #(( 3331 -*) ac_site_file1=./$CONFIG_SITE;; 3332 */*) ac_site_file1=$CONFIG_SITE;; 3333 *) ac_site_file1=./$CONFIG_SITE;; 3334 esac 3335 elif test "x$prefix" != xNONE; then 3336 ac_site_file1=$prefix/share/config.site 3337 ac_site_file2=$prefix/etc/config.site 3338 else 3339 ac_site_file1=$ac_default_prefix/share/config.site 3340 ac_site_file2=$ac_default_prefix/etc/config.site 3341 fi 3342 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3343 do 3344 test "x$ac_site_file" = xNONE && continue 3345 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3347 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3348 sed 's/^/| /' "$ac_site_file" >&5 3349 . "$ac_site_file" \ 3350 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3352 as_fn_error $? "failed to load site script $ac_site_file 3353 See \`config.log' for more details" "$LINENO" 5; } 3354 fi 3355 done 3356 3357 if test -r "$cache_file"; then 3358 # Some versions of bash will fail to source /dev/null (special files 3359 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3362 $as_echo "$as_me: loading cache $cache_file" >&6;} 3363 case $cache_file in 3364 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3365 *) . "./$cache_file";; 3366 esac 3367 fi 3368 else 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3370 $as_echo "$as_me: creating cache $cache_file" >&6;} 3371 >$cache_file 3372 fi 3373 3374 # Check that the precious variables saved in the cache have kept the same 3375 # value. 3376 ac_cache_corrupted=false 3377 for ac_var in $ac_precious_vars; do 3378 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3379 eval ac_new_set=\$ac_env_${ac_var}_set 3380 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3381 eval ac_new_val=\$ac_env_${ac_var}_value 3382 case $ac_old_set,$ac_new_set in 3383 set,) 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3385 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3386 ac_cache_corrupted=: ;; 3387 ,set) 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3389 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3390 ac_cache_corrupted=: ;; 3391 ,);; 3392 *) 3393 if test "x$ac_old_val" != "x$ac_new_val"; then 3394 # differences in whitespace do not lead to failure. 3395 ac_old_val_w=`echo x $ac_old_val` 3396 ac_new_val_w=`echo x $ac_new_val` 3397 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3399 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3400 ac_cache_corrupted=: 3401 else 3402 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3403 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3404 eval $ac_var=\$ac_old_val 3405 fi 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3407 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3409 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3410 fi;; 3411 esac 3412 # Pass precious variables to config.status. 3413 if test "$ac_new_set" = set; then 3414 case $ac_new_val in 3415 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3416 *) ac_arg=$ac_var=$ac_new_val ;; 3417 esac 3418 case " $ac_configure_args " in 3419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3420 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3421 esac 3422 fi 3423 done 3424 if $ac_cache_corrupted; then 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3428 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3429 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3430 fi 3431 ## -------------------- ## 3432 ## Main body of script. ## 3433 ## -------------------- ## 3434 3435 ac_ext=c 3436 ac_cpp='$CPP $CPPFLAGS' 3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3440 3441 3442 3443 ac_aux_dir= 3444 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3445 if test -f "$ac_dir/install-sh"; then 3446 ac_aux_dir=$ac_dir 3447 ac_install_sh="$ac_aux_dir/install-sh -c" 3448 break 3449 elif test -f "$ac_dir/install.sh"; then 3450 ac_aux_dir=$ac_dir 3451 ac_install_sh="$ac_aux_dir/install.sh -c" 3452 break 3453 elif test -f "$ac_dir/shtool"; then 3454 ac_aux_dir=$ac_dir 3455 ac_install_sh="$ac_aux_dir/shtool install -c" 3456 break 3457 fi 3458 done 3459 if test -z "$ac_aux_dir"; then 3460 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 3461 fi 3462 3463 # These three variables are undocumented and unsupported, 3464 # and are intended to be withdrawn in a future Autoconf release. 3465 # They can cause serious problems if a builder's source tree is in a directory 3466 # whose full name contains unusual characters. 3467 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3468 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3469 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3470 3471 3472 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3473 3474 # 3475 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3476 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3477 # 3478 # This code is free software; you can redistribute it and/or modify it 3479 # under the terms of the GNU General Public License version 2 only, as 3480 # published by the Free Software Foundation. Oracle designates this 3481 # particular file as subject to the "Classpath" exception as provided 3482 # by Oracle in the LICENSE file that accompanied this code. 3483 # 3484 # This code is distributed in the hope that it will be useful, but WITHOUT 3485 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3486 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3487 # version 2 for more details (a copy is included in the LICENSE file that 3488 # accompanied this code). 3489 # 3490 # You should have received a copy of the GNU General Public License version 3491 # 2 along with this work; if not, write to the Free Software Foundation, 3492 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3493 # 3494 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3495 # or visit www.oracle.com if you need additional information or have any 3496 # questions. 3497 # 3498 3499 # 3500 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3501 # 3502 # This program is free software; you can redistribute it and/or modify 3503 # it under the terms of the GNU General Public License as published by 3504 # the Free Software Foundation; either version 2 of the License, or 3505 # (at your option) any later version. 3506 # 3507 # This program is distributed in the hope that it will be useful, but 3508 # WITHOUT ANY WARRANTY; without even the implied warranty of 3509 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3510 # General Public License for more details. 3511 # 3512 # You should have received a copy of the GNU General Public License 3513 # along with this program; if not, write to the Free Software 3514 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3515 # 3516 # As a special exception to the GNU General Public License, if you 3517 # distribute this file as part of a program that contains a 3518 # configuration script generated by Autoconf, you may include it under 3519 # the same distribution terms that you use for the rest of that program. 3520 3521 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3522 # ---------------------------------- 3523 # PKG_PROG_PKG_CONFIG 3524 3525 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3526 # 3527 # Check to see whether a particular set of modules exists. Similar 3528 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3529 # 3530 # 3531 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3532 # this or PKG_CHECK_MODULES is called, or make sure to call 3533 # PKG_CHECK_EXISTS manually 3534 # -------------------------------------------------------------- 3535 3536 3537 3538 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3539 # --------------------------------------------- 3540 # _PKG_CONFIG 3541 3542 # _PKG_SHORT_ERRORS_SUPPORTED 3543 # ----------------------------- 3544 # _PKG_SHORT_ERRORS_SUPPORTED 3545 3546 3547 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3548 # [ACTION-IF-NOT-FOUND]) 3549 # 3550 # 3551 # Note that if there is a possibility the first call to 3552 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3553 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3554 # 3555 # 3556 # -------------------------------------------------------------- 3557 # PKG_CHECK_MODULES 3558 3559 3560 # Include these first... 3561 # 3562 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3563 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3564 # 3565 # This code is free software; you can redistribute it and/or modify it 3566 # under the terms of the GNU General Public License version 2 only, as 3567 # published by the Free Software Foundation. Oracle designates this 3568 # particular file as subject to the "Classpath" exception as provided 3569 # by Oracle in the LICENSE file that accompanied this code. 3570 # 3571 # This code is distributed in the hope that it will be useful, but WITHOUT 3572 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3573 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3574 # version 2 for more details (a copy is included in the LICENSE file that 3575 # accompanied this code). 3576 # 3577 # You should have received a copy of the GNU General Public License version 3578 # 2 along with this work; if not, write to the Free Software Foundation, 3579 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3580 # 3581 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3582 # or visit www.oracle.com if you need additional information or have any 3583 # questions. 3584 # 3585 3586 # Create a function/macro that takes a series of named arguments. The call is 3587 # similar to AC_DEFUN, but the setup of the function looks like this: 3588 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3589 # ... do something 3590 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3591 # ]) 3592 # A star (*) in front of a named argument means that it is required and it's 3593 # presence will be verified. To pass e.g. the first value as a normal indexed 3594 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3595 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3596 # "ARG_FOO". 3597 # 3598 # The generated function can be called like this: 3599 # MYFUNC(FOO: [foo-val], 3600 # BAR: [ 3601 # $ECHO hello world 3602 # ]) 3603 # Note that the argument value must start on the same line as the argument name. 3604 # 3605 # Argument 1: Name of the function to define 3606 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3607 # Argument 3: Argument array to treat as named, typically $@ 3608 # Argument 4: The main function body 3609 3610 3611 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3612 # If so, then append $1 to $2 \ 3613 # Also set JVM_ARG_OK to true/false depending on outcome. 3614 3615 3616 # Appends a string to a path variable, only adding the : when needed. 3617 3618 3619 # Prepends a string to a path variable, only adding the : when needed. 3620 3621 3622 # This will make sure the given variable points to a full and proper 3623 # path. This means: 3624 # 1) There will be no spaces in the path. On unix platforms, 3625 # spaces in the path will result in an error. On Windows, 3626 # the path will be rewritten using short-style to be space-free. 3627 # 2) The path will be absolute, and it will be in unix-style (on 3628 # cygwin). 3629 # $1: The name of the variable to fix 3630 3631 3632 # This will make sure the given variable points to a executable 3633 # with a full and proper path. This means: 3634 # 1) There will be no spaces in the path. On unix platforms, 3635 # spaces in the path will result in an error. On Windows, 3636 # the path will be rewritten using short-style to be space-free. 3637 # 2) The path will be absolute, and it will be in unix-style (on 3638 # cygwin). 3639 # Any arguments given to the executable is preserved. 3640 # If the input variable does not have a directory specification, then 3641 # it need to be in the PATH. 3642 # $1: The name of the variable to fix 3643 3644 3645 3646 3647 # Register a --with argument but mark it as deprecated 3648 # $1: The name of the with argument to deprecate, not including --with- 3649 3650 3651 # Register a --enable argument but mark it as deprecated 3652 # $1: The name of the with argument to deprecate, not including --enable- 3653 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3654 # $3: Messages to user. 3655 3656 3657 3658 3659 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3660 # $1: variable to check 3661 3662 3663 # Check that there are no unprocessed overridden variables left. 3664 # If so, they are an incorrect argument and we will exit with an error. 3665 3666 3667 # Setup a tool for the given variable. If correctly specified by the user, 3668 # use that value, otherwise search for the tool using the supplied code snippet. 3669 # $1: variable to set 3670 # $2: code snippet to call to look for the tool 3671 # $3: code snippet to call if variable was used to find tool 3672 3673 3674 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3675 # $1: variable to set 3676 # $2: executable name (or list of names) to look for 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 3688 3689 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3690 # $1: variable to set 3691 # $2: autoconf macro to call to look for the special tool 3692 3693 3694 # Setup the most fundamental tools that relies on not much else to set up, 3695 # but is used by much of the early bootstrap code. 3696 3697 3698 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3699 3700 3701 # Evaluates platform specific overrides for devkit variables. 3702 # $1: Name of variable 3703 3704 3705 3706 3707 3708 3709 #%%% Simple tools %%% 3710 3711 # Check if we have found a usable version of make 3712 # $1: the path to a potential make binary (or empty) 3713 # $2: the description on how we found this 3714 3715 3716 3717 3718 # Goes looking for a usable version of GNU make. 3719 3720 3721 3722 3723 3724 3725 3726 3727 # Check if build directory is on local disk. If not possible to determine, 3728 # we prefer to claim it's local. 3729 # Argument 1: directory to test 3730 # Argument 2: what to do if it is on local disk 3731 # Argument 3: what to do otherwise (remote disk or failure) 3732 3733 3734 # Check that source files have basic read permissions set. This might 3735 # not be the case in cygwin in certain conditions. 3736 3737 3738 3739 3740 # Check for support for specific options in bash 3741 3742 3743 ################################################################################ 3744 # 3745 # Default make target 3746 # 3747 3748 3749 # Code to run after AC_OUTPUT 3750 3751 3752 # 3753 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3754 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3755 # 3756 # This code is free software; you can redistribute it and/or modify it 3757 # under the terms of the GNU General Public License version 2 only, as 3758 # published by the Free Software Foundation. Oracle designates this 3759 # particular file as subject to the "Classpath" exception as provided 3760 # by Oracle in the LICENSE file that accompanied this code. 3761 # 3762 # This code is distributed in the hope that it will be useful, but WITHOUT 3763 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3764 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3765 # version 2 for more details (a copy is included in the LICENSE file that 3766 # accompanied this code). 3767 # 3768 # You should have received a copy of the GNU General Public License version 3769 # 2 along with this work; if not, write to the Free Software Foundation, 3770 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3771 # 3772 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3773 # or visit www.oracle.com if you need additional information or have any 3774 # questions. 3775 # 3776 3777 3778 3779 3780 3781 # Helper function which possibly converts a path using DOS-style short mode. 3782 # If so, the updated path is stored in $new_path. 3783 # $1: The path to check 3784 3785 3786 # Helper function which possibly converts a path using DOS-style short mode. 3787 # If so, the updated path is stored in $new_path. 3788 # $1: The path to check 3789 3790 3791 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3792 # and could probably be heavily simplified. However, all changes in this 3793 # area tend to need lot of testing in different scenarios, and in lack of 3794 # proper unit testing, cleaning this up has not been deemed worth the effort 3795 # at the moment. 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3806 3807 3808 3809 3810 # ... then the rest 3811 # 3812 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3813 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3814 # 3815 # This code is free software; you can redistribute it and/or modify it 3816 # under the terms of the GNU General Public License version 2 only, as 3817 # published by the Free Software Foundation. Oracle designates this 3818 # particular file as subject to the "Classpath" exception as provided 3819 # by Oracle in the LICENSE file that accompanied this code. 3820 # 3821 # This code is distributed in the hope that it will be useful, but WITHOUT 3822 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3823 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3824 # version 2 for more details (a copy is included in the LICENSE file that 3825 # accompanied this code). 3826 # 3827 # You should have received a copy of the GNU General Public License version 3828 # 2 along with this work; if not, write to the Free Software Foundation, 3829 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3830 # 3831 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3832 # or visit www.oracle.com if you need additional information or have any 3833 # questions. 3834 # 3835 3836 ######################################################################## 3837 # This file handles detection of the Boot JDK. The Boot JDK detection 3838 # process has been developed as a response to solve a complex real-world 3839 # problem. Initially, it was simple, but it has grown as platform after 3840 # platform, idiosyncracy after idiosyncracy has been supported. 3841 # 3842 # The basic idea is this: 3843 # 1) You need an acceptable *) JDK to use as a Boot JDK 3844 # 2) There are several ways to locate a JDK, that are mostly platform 3845 # dependent **) 3846 # 3) You can have multiple JDKs installed 3847 # 4) If possible, configure should try to dig out an acceptable JDK 3848 # automatically, without having to resort to command-line options 3849 # 3850 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3851 # javac) and not a JRE, etc. 3852 # 3853 # **) On Windows we typically use a well-known path. 3854 # On MacOSX we typically use the tool java_home. 3855 # On Linux we typically find javac in the $PATH, and then follow a 3856 # chain of symlinks that often ends up in a real JDK. 3857 # 3858 # This leads to the code where we check in different ways to locate a 3859 # JDK, and if one is found, check if it is acceptable. If not, we print 3860 # our reasons for rejecting it (useful when debugging non-working 3861 # configure situations) and continue checking the next one. 3862 ######################################################################## 3863 3864 # Execute the check given as argument, and verify the result 3865 # If the Boot JDK was previously found, do nothing 3866 # $1 A command line (typically autoconf macro) to execute 3867 3868 3869 # Test: Is bootjdk explicitely set by command line arguments? 3870 3871 3872 # Test: Is $JAVA_HOME set? 3873 3874 3875 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3876 3877 3878 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3879 # $1: Argument to the java_home binary (optional) 3880 3881 3882 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3883 3884 3885 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3886 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3887 # $1 = Path to directory containing jdk installations. 3888 # $2 = String to append to the found JDK directory to get the proper JDK home 3889 3890 3891 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3892 # environmental variable as base for where to look. 3893 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3894 3895 3896 # Test: Is there a JDK installed in default, well-known locations? 3897 3898 3899 # Check that a command-line tool in the Boot JDK is correct 3900 # $1 = name of variable to assign 3901 # $2 = name of binary 3902 3903 3904 ############################################################################### 3905 # 3906 # We need a Boot JDK to bootstrap the build. 3907 # 3908 3909 3910 3911 3912 3913 # BUILD_JDK: the location of the latest JDK that can run 3914 # on the host system and supports the target class file version 3915 # generated in this JDK build. This variable should only be 3916 # used after the launchers are built. 3917 # 3918 3919 # Execute the check given as argument, and verify the result. 3920 # If the JDK was previously found, do nothing. 3921 # $1 A command line (typically autoconf macro) to execute 3922 3923 3924 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3925 # is different than the host system doing the build (e.g. cross-compilation), 3926 # a special BUILD_JDK is built as part of the build process. An external 3927 # prebuilt BUILD_JDK can also be supplied. 3928 3929 3930 # 3931 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3932 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3933 # 3934 # This code is free software; you can redistribute it and/or modify it 3935 # under the terms of the GNU General Public License version 2 only, as 3936 # published by the Free Software Foundation. Oracle designates this 3937 # particular file as subject to the "Classpath" exception as provided 3938 # by Oracle in the LICENSE file that accompanied this code. 3939 # 3940 # This code is distributed in the hope that it will be useful, but WITHOUT 3941 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3942 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3943 # version 2 for more details (a copy is included in the LICENSE file that 3944 # accompanied this code). 3945 # 3946 # You should have received a copy of the GNU General Public License version 3947 # 2 along with this work; if not, write to the Free Software Foundation, 3948 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3949 # 3950 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3951 # or visit www.oracle.com if you need additional information or have any 3952 # questions. 3953 # 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 ################################################################################ 3972 # 3973 # Runs icecc-create-env once and prints the error if it fails 3974 # 3975 # $1: arguments to icecc-create-env 3976 # $2: log file 3977 # 3978 3979 3980 ################################################################################ 3981 # 3982 # Optionally enable distributed compilation of native code using icecc/icecream 3983 # 3984 3985 3986 3987 3988 3989 3990 3991 # 3992 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3993 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3994 # 3995 # This code is free software; you can redistribute it and/or modify it 3996 # under the terms of the GNU General Public License version 2 only, as 3997 # published by the Free Software Foundation. Oracle designates this 3998 # particular file as subject to the "Classpath" exception as provided 3999 # by Oracle in the LICENSE file that accompanied this code. 4000 # 4001 # This code is distributed in the hope that it will be useful, but WITHOUT 4002 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4003 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4004 # version 2 for more details (a copy is included in the LICENSE file that 4005 # accompanied this code). 4006 # 4007 # You should have received a copy of the GNU General Public License version 4008 # 2 along with this work; if not, write to the Free Software Foundation, 4009 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4010 # 4011 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4012 # or visit www.oracle.com if you need additional information or have any 4013 # questions. 4014 # 4015 4016 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4017 # corresponding configure arguments instead 4018 4019 4020 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4021 # that configure can use them while detecting compilers. 4022 # TOOLCHAIN_TYPE is available here. 4023 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4024 4025 4026 4027 4028 4029 4030 # Documentation on common flags used for solstudio in HIGHEST. 4031 # 4032 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4033 # done with care, there are some assumptions below that need to 4034 # be understood about the use of pointers, and IEEE behavior. 4035 # 4036 # -fns: Use non-standard floating point mode (not IEEE 754) 4037 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4038 # -fsingle: Use single precision floating point with 'float' 4039 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4040 # (Source with excessing pointer casting and data access with mixed 4041 # pointer types are not recommended) 4042 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4043 # (If you expect perfect errno behavior, do not use this) 4044 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4045 # -xrestrict: Pointer parameters to functions do not overlap 4046 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4047 # If you pass in multiple pointers to the same data, do not use this) 4048 # -xlibmil: Inline some library routines 4049 # (If you expect perfect errno behavior, do not use this) 4050 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4051 # (If you expect perfect errno behavior, do not use this) 4052 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4053 4054 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4055 # Bug? 4056 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4057 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4058 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4059 #fi 4060 4061 4062 4063 4064 4065 4066 ################################################################################ 4067 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4068 # conditionals against. 4069 # $2 - Optional prefix for each variable defined. 4070 4071 4072 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4073 # IF_FALSE: [RUN-IF-FALSE]) 4074 # ------------------------------------------------------------ 4075 # Check that the C compiler supports an argument 4076 4077 4078 4079 4080 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4081 # IF_FALSE: [RUN-IF-FALSE]) 4082 # ------------------------------------------------------------ 4083 # Check that the C++ compiler supports an argument 4084 4085 4086 4087 4088 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4089 # IF_FALSE: [RUN-IF-FALSE]) 4090 # ------------------------------------------------------------ 4091 # Check that the C and C++ compilers support an argument 4092 4093 4094 4095 4096 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4097 # IF_FALSE: [RUN-IF-FALSE]) 4098 # ------------------------------------------------------------ 4099 # Check that the linker support an argument 4100 4101 4102 4103 4104 4105 4106 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4107 # Arguments: 4108 # $1 - Optional prefix for each variable defined. 4109 4110 4111 # 4112 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4113 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4114 # 4115 # This code is free software; you can redistribute it and/or modify it 4116 # under the terms of the GNU General Public License version 2 only, as 4117 # published by the Free Software Foundation. Oracle designates this 4118 # particular file as subject to the "Classpath" exception as provided 4119 # by Oracle in the LICENSE file that accompanied this code. 4120 # 4121 # This code is distributed in the hope that it will be useful, but WITHOUT 4122 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4123 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4124 # version 2 for more details (a copy is included in the LICENSE file that 4125 # accompanied this code). 4126 # 4127 # You should have received a copy of the GNU General Public License version 4128 # 2 along with this work; if not, write to the Free Software Foundation, 4129 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4130 # 4131 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4132 # or visit www.oracle.com if you need additional information or have any 4133 # questions. 4134 # 4135 4136 4137 4138 4139 4140 cygwin_help() { 4141 case $1 in 4142 unzip) 4143 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4144 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4145 ;; 4146 zip) 4147 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4148 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4149 ;; 4150 make) 4151 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4152 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4153 ;; 4154 freetype) 4155 HELP_MSG=" 4156 The freetype library can now be build during the configure process. 4157 Download the freetype sources and unpack them into an arbitrary directory: 4158 4159 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4160 tar -xzf freetype-2.5.3.tar.gz 4161 4162 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4163 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4164 builds or into '<freetype_src>/lib32' for 32-bit builds. 4165 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4166 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4167 4168 Alternatively you can unpack the sources like this to use the default directory: 4169 4170 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4171 ;; 4172 esac 4173 } 4174 4175 msys_help() { 4176 PKGHANDLER_COMMAND="" 4177 } 4178 4179 apt_help() { 4180 case $1 in 4181 reduced) 4182 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4183 devkit) 4184 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4185 openjdk) 4186 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4187 alsa) 4188 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4189 cups) 4190 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4191 freetype) 4192 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4193 ffi) 4194 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4195 x11) 4196 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4197 ccache) 4198 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4199 dtrace) 4200 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4201 esac 4202 } 4203 4204 yum_help() { 4205 case $1 in 4206 devkit) 4207 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4208 openjdk) 4209 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4210 alsa) 4211 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4212 cups) 4213 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4214 freetype) 4215 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4216 x11) 4217 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4218 ccache) 4219 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4220 esac 4221 } 4222 4223 port_help() { 4224 PKGHANDLER_COMMAND="" 4225 } 4226 4227 pkgutil_help() { 4228 PKGHANDLER_COMMAND="" 4229 } 4230 4231 pkgadd_help() { 4232 PKGHANDLER_COMMAND="" 4233 } 4234 4235 # This function will check if we're called from the "configure" wrapper while 4236 # printing --help. If so, we will print out additional information that can 4237 # only be extracted within the autoconf script, and then exit. This must be 4238 # called at the very beginning in configure.ac. 4239 4240 4241 4242 4243 4244 4245 # 4246 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4247 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4248 # 4249 # This code is free software; you can redistribute it and/or modify it 4250 # under the terms of the GNU General Public License version 2 only, as 4251 # published by the Free Software Foundation. Oracle designates this 4252 # particular file as subject to the "Classpath" exception as provided 4253 # by Oracle in the LICENSE file that accompanied this code. 4254 # 4255 # This code is distributed in the hope that it will be useful, but WITHOUT 4256 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4257 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4258 # version 2 for more details (a copy is included in the LICENSE file that 4259 # accompanied this code). 4260 # 4261 # You should have received a copy of the GNU General Public License version 4262 # 2 along with this work; if not, write to the Free Software Foundation, 4263 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4264 # 4265 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4266 # or visit www.oracle.com if you need additional information or have any 4267 # questions. 4268 # 4269 4270 # All valid JVM features, regardless of platform 4271 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \ 4272 fprof vm-structs jni-check services management all-gcs nmt cds static-build" 4273 4274 # All valid JVM variants 4275 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom" 4276 4277 ############################################################################### 4278 # Check if the specified JVM variant should be built. To be used in shell if 4279 # constructs, like this: 4280 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4281 # 4282 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4283 4284 # Definition kept in one line to allow inlining in if statements. 4285 # Additional [] needed to keep m4 from mangling shell constructs. 4286 4287 4288 ############################################################################### 4289 # Check if the specified JVM features are explicitly enabled. To be used in 4290 # shell if constructs, like this: 4291 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4292 # 4293 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4294 4295 # Definition kept in one line to allow inlining in if statements. 4296 # Additional [] needed to keep m4 from mangling shell constructs. 4297 4298 4299 ############################################################################### 4300 # Check which variants of the JVM that we want to build. Available variants are: 4301 # server: normal interpreter, and a tiered C1/C2 compiler 4302 # client: normal interpreter, and C1 (no C2 compiler) 4303 # minimal: reduced form of client with optional features stripped out 4304 # core: normal interpreter only, no compiler 4305 # zero: C++ based interpreter only, no compiler 4306 # zeroshark: C++ based interpreter, and a llvm-based compiler 4307 # custom: baseline JVM with no default features 4308 # 4309 4310 4311 ############################################################################### 4312 # Check if dtrace should be enabled and has all prerequisites present. 4313 # 4314 4315 4316 ############################################################################### 4317 # Set up all JVM features for each JVM variant. 4318 # 4319 4320 4321 ############################################################################### 4322 # Validate JVM features once all setup is complete, including custom setup. 4323 # 4324 4325 4326 ################################################################################ 4327 # Check if gtest should be built 4328 # 4329 4330 4331 # 4332 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4333 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4334 # 4335 # This code is free software; you can redistribute it and/or modify it 4336 # under the terms of the GNU General Public License version 2 only, as 4337 # published by the Free Software Foundation. Oracle designates this 4338 # particular file as subject to the "Classpath" exception as provided 4339 # by Oracle in the LICENSE file that accompanied this code. 4340 # 4341 # This code is distributed in the hope that it will be useful, but WITHOUT 4342 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4343 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4344 # version 2 for more details (a copy is included in the LICENSE file that 4345 # accompanied this code). 4346 # 4347 # You should have received a copy of the GNU General Public License version 4348 # 2 along with this work; if not, write to the Free Software Foundation, 4349 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4350 # 4351 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4352 # or visit www.oracle.com if you need additional information or have any 4353 # questions. 4354 # 4355 4356 ############################################################################### 4357 # Check which variant of the JDK that we want to build. 4358 # Currently we have: 4359 # normal: standard edition 4360 # but the custom make system may add other variants 4361 # 4362 # Effectively the JDK variant gives a name to a specific set of 4363 # modules to compile into the JDK. 4364 4365 4366 ############################################################################### 4367 4368 # Set the debug level 4369 # release: no debug information, all optimizations, no asserts. 4370 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4371 # fastdebug: debug information (-g), all optimizations, all asserts 4372 # slowdebug: debug information (-g), no optimizations, all asserts 4373 4374 4375 4376 ############################################################################### 4377 # 4378 # Should we build only OpenJDK even if closed sources are present? 4379 # 4380 4381 4382 4383 4384 ############################################################################### 4385 # 4386 # Enable or disable the elliptic curve crypto implementation 4387 # 4388 4389 4390 4391 4392 ################################################################################ 4393 # 4394 # Gcov coverage data for hotspot 4395 # 4396 4397 4398 ################################################################################ 4399 # 4400 # Static build support. When enabled will generate static 4401 # libraries instead of shared libraries for all JDK libs. 4402 # 4403 4404 4405 ################################################################################ 4406 # 4407 # jlink options. 4408 # We always keep packaged modules in JDK image. 4409 # 4410 4411 4412 ################################################################################ 4413 # 4414 # Check if building of the jtreg failure handler should be enabled. 4415 # 4416 4417 4418 ################################################################################ 4419 # 4420 # Enable or disable generation of the classlist at build time 4421 # 4422 4423 4424 # 4425 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4426 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4427 # 4428 # This code is free software; you can redistribute it and/or modify it 4429 # under the terms of the GNU General Public License version 2 only, as 4430 # published by the Free Software Foundation. Oracle designates this 4431 # particular file as subject to the "Classpath" exception as provided 4432 # by Oracle in the LICENSE file that accompanied this code. 4433 # 4434 # This code is distributed in the hope that it will be useful, but WITHOUT 4435 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4436 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4437 # version 2 for more details (a copy is included in the LICENSE file that 4438 # accompanied this code). 4439 # 4440 # You should have received a copy of the GNU General Public License version 4441 # 2 along with this work; if not, write to the Free Software Foundation, 4442 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4443 # 4444 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4445 # or visit www.oracle.com if you need additional information or have any 4446 # questions. 4447 # 4448 4449 ############################################################################### 4450 # 4451 # Setup version numbers 4452 # 4453 4454 # Verify that a given string represents a valid version number, and assign it 4455 # to a variable. 4456 4457 # Argument 1: the variable to assign to 4458 # Argument 2: the value given by the user 4459 4460 4461 4462 4463 # 4464 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4465 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4466 # 4467 # This code is free software; you can redistribute it and/or modify it 4468 # under the terms of the GNU General Public License version 2 only, as 4469 # published by the Free Software Foundation. Oracle designates this 4470 # particular file as subject to the "Classpath" exception as provided 4471 # by Oracle in the LICENSE file that accompanied this code. 4472 # 4473 # This code is distributed in the hope that it will be useful, but WITHOUT 4474 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4475 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4476 # version 2 for more details (a copy is included in the LICENSE file that 4477 # accompanied this code). 4478 # 4479 # You should have received a copy of the GNU General Public License version 4480 # 2 along with this work; if not, write to the Free Software Foundation, 4481 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4482 # 4483 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4484 # or visit www.oracle.com if you need additional information or have any 4485 # questions. 4486 # 4487 4488 # Major library component reside in separate files. 4489 # 4490 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4491 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4492 # 4493 # This code is free software; you can redistribute it and/or modify it 4494 # under the terms of the GNU General Public License version 2 only, as 4495 # published by the Free Software Foundation. Oracle designates this 4496 # particular file as subject to the "Classpath" exception as provided 4497 # by Oracle in the LICENSE file that accompanied this code. 4498 # 4499 # This code is distributed in the hope that it will be useful, but WITHOUT 4500 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4501 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4502 # version 2 for more details (a copy is included in the LICENSE file that 4503 # accompanied this code). 4504 # 4505 # You should have received a copy of the GNU General Public License version 4506 # 2 along with this work; if not, write to the Free Software Foundation, 4507 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4508 # 4509 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4510 # or visit www.oracle.com if you need additional information or have any 4511 # questions. 4512 # 4513 4514 ################################################################################ 4515 # Setup alsa (Advanced Linux Sound Architecture) 4516 ################################################################################ 4517 4518 4519 # 4520 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4521 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4522 # 4523 # This code is free software; you can redistribute it and/or modify it 4524 # under the terms of the GNU General Public License version 2 only, as 4525 # published by the Free Software Foundation. Oracle designates this 4526 # particular file as subject to the "Classpath" exception as provided 4527 # by Oracle in the LICENSE file that accompanied this code. 4528 # 4529 # This code is distributed in the hope that it will be useful, but WITHOUT 4530 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4531 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4532 # version 2 for more details (a copy is included in the LICENSE file that 4533 # accompanied this code). 4534 # 4535 # You should have received a copy of the GNU General Public License version 4536 # 2 along with this work; if not, write to the Free Software Foundation, 4537 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4538 # 4539 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4540 # or visit www.oracle.com if you need additional information or have any 4541 # questions. 4542 # 4543 4544 ################################################################################ 4545 # Setup bundled libraries. 4546 # 4547 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4548 # OpenJDK repository. Default is to use these libraries as bundled, but they 4549 # might be replaced by en external version by the user. 4550 ################################################################################ 4551 4552 4553 ################################################################################ 4554 # Setup libjpeg 4555 ################################################################################ 4556 4557 4558 ################################################################################ 4559 # Setup giflib 4560 ################################################################################ 4561 4562 4563 ################################################################################ 4564 # Setup libpng 4565 ################################################################################ 4566 4567 4568 ################################################################################ 4569 # Setup zlib 4570 ################################################################################ 4571 4572 4573 ################################################################################ 4574 # Setup lcms (Little CMS) 4575 ################################################################################ 4576 4577 4578 # 4579 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4580 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4581 # 4582 # This code is free software; you can redistribute it and/or modify it 4583 # under the terms of the GNU General Public License version 2 only, as 4584 # published by the Free Software Foundation. Oracle designates this 4585 # particular file as subject to the "Classpath" exception as provided 4586 # by Oracle in the LICENSE file that accompanied this code. 4587 # 4588 # This code is distributed in the hope that it will be useful, but WITHOUT 4589 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4590 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4591 # version 2 for more details (a copy is included in the LICENSE file that 4592 # accompanied this code). 4593 # 4594 # You should have received a copy of the GNU General Public License version 4595 # 2 along with this work; if not, write to the Free Software Foundation, 4596 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4597 # 4598 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4599 # or visit www.oracle.com if you need additional information or have any 4600 # questions. 4601 # 4602 4603 ################################################################################ 4604 # Setup cups (Common Unix Printing System) 4605 ################################################################################ 4606 4607 4608 # 4609 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4610 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4611 # 4612 # This code is free software; you can redistribute it and/or modify it 4613 # under the terms of the GNU General Public License version 2 only, as 4614 # published by the Free Software Foundation. Oracle designates this 4615 # particular file as subject to the "Classpath" exception as provided 4616 # by Oracle in the LICENSE file that accompanied this code. 4617 # 4618 # This code is distributed in the hope that it will be useful, but WITHOUT 4619 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4620 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4621 # version 2 for more details (a copy is included in the LICENSE file that 4622 # accompanied this code). 4623 # 4624 # You should have received a copy of the GNU General Public License version 4625 # 2 along with this work; if not, write to the Free Software Foundation, 4626 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4627 # 4628 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4629 # or visit www.oracle.com if you need additional information or have any 4630 # questions. 4631 # 4632 4633 ################################################################################ 4634 # Setup libffi (Foreign Function Interface) 4635 ################################################################################ 4636 4637 4638 # 4639 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4640 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4641 # 4642 # This code is free software; you can redistribute it and/or modify it 4643 # under the terms of the GNU General Public License version 2 only, as 4644 # published by the Free Software Foundation. Oracle designates this 4645 # particular file as subject to the "Classpath" exception as provided 4646 # by Oracle in the LICENSE file that accompanied this code. 4647 # 4648 # This code is distributed in the hope that it will be useful, but WITHOUT 4649 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4650 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4651 # version 2 for more details (a copy is included in the LICENSE file that 4652 # accompanied this code). 4653 # 4654 # You should have received a copy of the GNU General Public License version 4655 # 2 along with this work; if not, write to the Free Software Foundation, 4656 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4657 # 4658 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4659 # or visit www.oracle.com if you need additional information or have any 4660 # questions. 4661 # 4662 4663 ################################################################################ 4664 # Build the freetype lib from source 4665 ################################################################################ 4666 4667 4668 ################################################################################ 4669 # Check if a potential freeype library match is correct and usable 4670 ################################################################################ 4671 4672 4673 ################################################################################ 4674 # Setup freetype (The FreeType2 font rendering library) 4675 ################################################################################ 4676 4677 4678 # 4679 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4680 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4681 # 4682 # This code is free software; you can redistribute it and/or modify it 4683 # under the terms of the GNU General Public License version 2 only, as 4684 # published by the Free Software Foundation. Oracle designates this 4685 # particular file as subject to the "Classpath" exception as provided 4686 # by Oracle in the LICENSE file that accompanied this code. 4687 # 4688 # This code is distributed in the hope that it will be useful, but WITHOUT 4689 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4690 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4691 # version 2 for more details (a copy is included in the LICENSE file that 4692 # accompanied this code). 4693 # 4694 # You should have received a copy of the GNU General Public License version 4695 # 2 along with this work; if not, write to the Free Software Foundation, 4696 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4697 # 4698 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4699 # or visit www.oracle.com if you need additional information or have any 4700 # questions. 4701 # 4702 4703 ################################################################################ 4704 # Setup the standard C/C++ runtime libraries. 4705 # 4706 # Most importantly, determine if stdc++ should be linked statically or 4707 # dynamically. 4708 ################################################################################ 4709 4710 4711 # 4712 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4713 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4714 # 4715 # This code is free software; you can redistribute it and/or modify it 4716 # under the terms of the GNU General Public License version 2 only, as 4717 # published by the Free Software Foundation. Oracle designates this 4718 # particular file as subject to the "Classpath" exception as provided 4719 # by Oracle in the LICENSE file that accompanied this code. 4720 # 4721 # This code is distributed in the hope that it will be useful, but WITHOUT 4722 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4723 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4724 # version 2 for more details (a copy is included in the LICENSE file that 4725 # accompanied this code). 4726 # 4727 # You should have received a copy of the GNU General Public License version 4728 # 2 along with this work; if not, write to the Free Software Foundation, 4729 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4730 # 4731 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4732 # or visit www.oracle.com if you need additional information or have any 4733 # questions. 4734 # 4735 4736 ################################################################################ 4737 # Setup X11 Windows system 4738 ################################################################################ 4739 4740 4741 4742 ################################################################################ 4743 # Determine which libraries are needed for this configuration 4744 ################################################################################ 4745 4746 4747 ################################################################################ 4748 # Parse library options, and setup needed libraries 4749 ################################################################################ 4750 4751 4752 ################################################################################ 4753 # Setup llvm (Low-Level VM) 4754 ################################################################################ 4755 4756 4757 ################################################################################ 4758 # Setup various libraries, typically small system libraries 4759 ################################################################################ 4760 4761 4762 ################################################################################ 4763 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4764 # redistribute it in the test image. 4765 ################################################################################ 4766 4767 4768 4769 # 4770 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4771 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4772 # 4773 # This code is free software; you can redistribute it and/or modify it 4774 # under the terms of the GNU General Public License version 2 only, as 4775 # published by the Free Software Foundation. Oracle designates this 4776 # particular file as subject to the "Classpath" exception as provided 4777 # by Oracle in the LICENSE file that accompanied this code. 4778 # 4779 # This code is distributed in the hope that it will be useful, but WITHOUT 4780 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4781 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4782 # version 2 for more details (a copy is included in the LICENSE file that 4783 # accompanied this code). 4784 # 4785 # You should have received a copy of the GNU General Public License version 4786 # 2 along with this work; if not, write to the Free Software Foundation, 4787 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4788 # 4789 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4790 # or visit www.oracle.com if you need additional information or have any 4791 # questions. 4792 # 4793 4794 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4795 # Converts autoconf style CPU name to OpenJDK style, into 4796 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4797 4798 4799 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4800 # Converts autoconf style OS name to OpenJDK style, into 4801 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4802 4803 4804 # Expects $host_os $host_cpu $build_os and $build_cpu 4805 # and $with_target_bits to have been setup! 4806 # 4807 # Translate the standard triplet(quadruplet) definition 4808 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4809 # OPENJDK_BUILD_OS, etc. 4810 4811 4812 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4813 # accordingly. Must be done after setting up build and target system, but before 4814 # doing anything else with these values. 4815 4816 4817 # Setup the legacy variables, for controlling the old makefiles. 4818 # 4819 4820 4821 # $1 - Either TARGET or BUILD to setup the variables for. 4822 4823 4824 4825 4826 #%%% Build and target systems %%% 4827 4828 4829 4830 4831 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4832 # Add -mX to various FLAGS variables. 4833 4834 4835 4836 4837 4838 4839 # 4840 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4841 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4842 # 4843 # This code is free software; you can redistribute it and/or modify it 4844 # under the terms of the GNU General Public License version 2 only, as 4845 # published by the Free Software Foundation. Oracle designates this 4846 # particular file as subject to the "Classpath" exception as provided 4847 # by Oracle in the LICENSE file that accompanied this code. 4848 # 4849 # This code is distributed in the hope that it will be useful, but WITHOUT 4850 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4851 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4852 # version 2 for more details (a copy is included in the LICENSE file that 4853 # accompanied this code). 4854 # 4855 # You should have received a copy of the GNU General Public License version 4856 # 2 along with this work; if not, write to the Free Software Foundation, 4857 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4858 # 4859 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4860 # or visit www.oracle.com if you need additional information or have any 4861 # questions. 4862 # 4863 4864 4865 4866 4867 4868 4869 4870 ################################################################################ 4871 # Define a mechanism for importing extra prebuilt modules 4872 # 4873 4874 4875 4876 # 4877 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4878 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4879 # 4880 # This code is free software; you can redistribute it and/or modify it 4881 # under the terms of the GNU General Public License version 2 only, as 4882 # published by the Free Software Foundation. Oracle designates this 4883 # particular file as subject to the "Classpath" exception as provided 4884 # by Oracle in the LICENSE file that accompanied this code. 4885 # 4886 # This code is distributed in the hope that it will be useful, but WITHOUT 4887 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4888 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4889 # version 2 for more details (a copy is included in the LICENSE file that 4890 # accompanied this code). 4891 # 4892 # You should have received a copy of the GNU General Public License version 4893 # 2 along with this work; if not, write to the Free Software Foundation, 4894 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4895 # 4896 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4897 # or visit www.oracle.com if you need additional information or have any 4898 # questions. 4899 # 4900 4901 ######################################################################## 4902 # This file is responsible for detecting, verifying and setting up the 4903 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4904 # proper paths to the binaries, but it will not setup any flags. 4905 # 4906 # The binaries used is determined by the toolchain type, which is the family of 4907 # compilers and related tools that are used. 4908 ######################################################################## 4909 4910 4911 # All valid toolchains, regardless of platform (used by help.m4) 4912 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4913 4914 # These toolchains are valid on different platforms 4915 VALID_TOOLCHAINS_linux="gcc clang" 4916 VALID_TOOLCHAINS_solaris="solstudio" 4917 VALID_TOOLCHAINS_macosx="gcc clang" 4918 VALID_TOOLCHAINS_aix="xlc" 4919 VALID_TOOLCHAINS_windows="microsoft" 4920 4921 # Toolchain descriptions 4922 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4923 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4924 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4925 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4926 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4927 4928 # Minimum supported versions, empty means unspecified 4929 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4930 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3" 4931 TOOLCHAIN_MINIMUM_VERSION_microsoft="" 4932 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 4933 TOOLCHAIN_MINIMUM_VERSION_xlc="" 4934 4935 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4936 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4937 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4938 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4939 4940 4941 # Check if the configured compiler (C and C++) is of a specific version or 4942 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4943 # 4944 # Arguments: 4945 # VERSION: The version string to check against the found version 4946 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 4947 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 4948 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 4949 4950 4951 4952 4953 # Setup a number of variables describing how native output files are 4954 # named on this platform/toolchain. 4955 4956 4957 # Determine which toolchain type to use, and make sure it is valid for this 4958 # platform. Setup various information about the selected toolchain. 4959 4960 4961 # Before we start detecting the toolchain executables, we might need some 4962 # special setup, e.g. additional paths etc. 4963 4964 4965 # Restore path, etc 4966 4967 4968 # Check if a compiler is of the toolchain type we expect, and save the version 4969 # information from it. If the compiler does not match the expected type, 4970 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4971 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4972 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4973 # 4974 # $1 = compiler to test (CC or CXX) 4975 # $2 = human readable name of compiler (C or C++) 4976 4977 4978 # Try to locate the given C or C++ compiler in the path, or otherwise. 4979 # 4980 # $1 = compiler to test (CC or CXX) 4981 # $2 = human readable name of compiler (C or C++) 4982 # $3 = list of compiler names to search for 4983 4984 4985 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4986 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4987 # archiver (AR). Verify that the compilers are correct according to the 4988 # toolchain type. 4989 4990 4991 # Setup additional tools that is considered a part of the toolchain, but not the 4992 # core part. Many of these are highly platform-specific and do not exist, 4993 # and/or are not needed on all platforms. 4994 4995 4996 # Setup the build tools (i.e, the compiler and linker used to build programs 4997 # that should be run on the build platform, not the target platform, as a build 4998 # helper). Since the non-cross-compile case uses the normal, target compilers 4999 # for this, we can only do this after these have been setup. 5000 5001 5002 # Setup legacy variables that are still needed as alternative ways to refer to 5003 # parts of the toolchain. 5004 5005 5006 # Do some additional checks on the detected tools. 5007 5008 5009 # Setup the JTReg Regression Test Harness. 5010 5011 5012 # 5013 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5014 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5015 # 5016 # This code is free software; you can redistribute it and/or modify it 5017 # under the terms of the GNU General Public License version 2 only, as 5018 # published by the Free Software Foundation. Oracle designates this 5019 # particular file as subject to the "Classpath" exception as provided 5020 # by Oracle in the LICENSE file that accompanied this code. 5021 # 5022 # This code is distributed in the hope that it will be useful, but WITHOUT 5023 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5024 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5025 # version 2 for more details (a copy is included in the LICENSE file that 5026 # accompanied this code). 5027 # 5028 # You should have received a copy of the GNU General Public License version 5029 # 2 along with this work; if not, write to the Free Software Foundation, 5030 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5031 # 5032 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5033 # or visit www.oracle.com if you need additional information or have any 5034 # questions. 5035 # 5036 5037 ################################################################################ 5038 # The order of these defines the priority by which we try to find them. 5039 VALID_VS_VERSIONS="2013 2012 2010" 5040 5041 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5042 VS_VERSION_INTERNAL_2010=100 5043 VS_MSVCR_2010=msvcr100.dll 5044 # We don't use msvcp on Visual Studio 2010 5045 #VS_MSVCP_2010=msvcp100.dll 5046 VS_ENVVAR_2010="VS100COMNTOOLS" 5047 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5048 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5049 VS_VS_PLATFORM_NAME_2010="v100" 5050 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5051 5052 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5053 VS_VERSION_INTERNAL_2012=110 5054 VS_MSVCR_2012=msvcr110.dll 5055 VS_MSVCP_2012=msvcp110.dll 5056 VS_ENVVAR_2012="VS110COMNTOOLS" 5057 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5058 VS_SDK_INSTALLDIR_2012= 5059 VS_VS_PLATFORM_NAME_2012="v110" 5060 VS_SDK_PLATFORM_NAME_2012= 5061 5062 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5063 VS_VERSION_INTERNAL_2013=120 5064 VS_MSVCR_2013=msvcr120.dll 5065 VS_MSVCP_2013=msvcp120.dll 5066 VS_ENVVAR_2013="VS120COMNTOOLS" 5067 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5068 VS_SDK_INSTALLDIR_2013= 5069 VS_VS_PLATFORM_NAME_2013="v120" 5070 VS_SDK_PLATFORM_NAME_2013= 5071 5072 ################################################################################ 5073 5074 5075 5076 ################################################################################ 5077 5078 5079 5080 ################################################################################ 5081 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5082 # build environment and assigns it to VS_ENV_CMD 5083 5084 5085 ################################################################################ 5086 5087 5088 5089 ################################################################################ 5090 # Check if the VS env variables were setup prior to running configure. 5091 # If not, then find vcvarsall.bat and run it automatically, and integrate 5092 # the set env variables into the spec file. 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 # This line needs to be here, verbatim, after all includes and the dummy hook 5108 # definitions. It is replaced with custom functionality when building 5109 # custom sources. 5110 #CUSTOM_AUTOCONF_INCLUDE 5111 5112 # Do not change or remove the following line, it is needed for consistency checks: 5113 DATE_WHEN_GENERATED=1473766817 5114 5115 ############################################################################### 5116 # 5117 # Initialization / Boot-strapping 5118 # 5119 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5120 # thus it jumps back and forth, each time gaining something needed later on. 5121 # 5122 ############################################################################### 5123 5124 # If we are requested to print additional help, do that and then exit. 5125 # This must be the very first call. 5126 5127 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5128 5129 # Print available toolchains 5130 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5131 $PRINTF "Which are valid to use depends on the build platform.\n" 5132 for toolchain in $VALID_TOOLCHAINS_all; do 5133 # Use indirect variable referencing 5134 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5135 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5136 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5137 done 5138 $PRINTF "\n" 5139 5140 # Print available jvm features 5141 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5142 $PRINTF "Which are valid to use depends on the target platform.\n " 5143 $PRINTF "%s " $VALID_JVM_FEATURES 5144 $PRINTF "\n" 5145 5146 # And now exit directly 5147 exit 0 5148 fi 5149 5150 5151 # Basic initialization that must happen first of all in the normal process. 5152 5153 # Save the original command line. This is passed to us by the wrapper configure script. 5154 5155 # Save the path variable before it gets changed 5156 ORIGINAL_PATH="$PATH" 5157 5158 DATE_WHEN_CONFIGURED=`LANG=C date` 5159 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5161 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5163 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5164 5165 5166 # Start with tools that do not need have cross compilation support 5167 # and can be expected to be found in the default PATH. These tools are 5168 # used by configure. 5169 5170 # First are all the simple required tools. 5171 5172 5173 5174 # Publish this variable in the help. 5175 5176 5177 if [ -z "${BASENAME+x}" ]; then 5178 # The variable is not set by user, try to locate tool using the code snippet 5179 for ac_prog in basename 5180 do 5181 # Extract the first word of "$ac_prog", so it can be a program name with args. 5182 set dummy $ac_prog; ac_word=$2 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5184 $as_echo_n "checking for $ac_word... " >&6; } 5185 if ${ac_cv_path_BASENAME+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187 else 5188 case $BASENAME in 5189 [\\/]* | ?:[\\/]*) 5190 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5191 ;; 5192 *) 5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5194 for as_dir in $PATH 5195 do 5196 IFS=$as_save_IFS 5197 test -z "$as_dir" && as_dir=. 5198 for ac_exec_ext in '' $ac_executable_extensions; do 5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5200 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5202 break 2 5203 fi 5204 done 5205 done 5206 IFS=$as_save_IFS 5207 5208 ;; 5209 esac 5210 fi 5211 BASENAME=$ac_cv_path_BASENAME 5212 if test -n "$BASENAME"; then 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5214 $as_echo "$BASENAME" >&6; } 5215 else 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5217 $as_echo "no" >&6; } 5218 fi 5219 5220 5221 test -n "$BASENAME" && break 5222 done 5223 5224 else 5225 # The variable is set, but is it from the command line or the environment? 5226 5227 # Try to remove the string !BASENAME! from our list. 5228 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5229 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5230 # If it failed, the variable was not from the command line. Ignore it, 5231 # but warn the user (except for BASH, which is always set by the calling BASH). 5232 if test "xBASENAME" != xBASH; then 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5234 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5235 fi 5236 # Try to locate tool using the code snippet 5237 for ac_prog in basename 5238 do 5239 # Extract the first word of "$ac_prog", so it can be a program name with args. 5240 set dummy $ac_prog; ac_word=$2 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5242 $as_echo_n "checking for $ac_word... " >&6; } 5243 if ${ac_cv_path_BASENAME+:} false; then : 5244 $as_echo_n "(cached) " >&6 5245 else 5246 case $BASENAME in 5247 [\\/]* | ?:[\\/]*) 5248 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5249 ;; 5250 *) 5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5252 for as_dir in $PATH 5253 do 5254 IFS=$as_save_IFS 5255 test -z "$as_dir" && as_dir=. 5256 for ac_exec_ext in '' $ac_executable_extensions; do 5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5258 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5260 break 2 5261 fi 5262 done 5263 done 5264 IFS=$as_save_IFS 5265 5266 ;; 5267 esac 5268 fi 5269 BASENAME=$ac_cv_path_BASENAME 5270 if test -n "$BASENAME"; then 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5272 $as_echo "$BASENAME" >&6; } 5273 else 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5275 $as_echo "no" >&6; } 5276 fi 5277 5278 5279 test -n "$BASENAME" && break 5280 done 5281 5282 else 5283 # If it succeeded, then it was overridden by the user. We will use it 5284 # for the tool. 5285 5286 # First remove it from the list of overridden variables, so we can test 5287 # for unknown variables in the end. 5288 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5289 5290 # Check if we try to supply an empty value 5291 if test "x$BASENAME" = x; then 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5293 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5295 $as_echo_n "checking for BASENAME... " >&6; } 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5297 $as_echo "disabled" >&6; } 5298 else 5299 # Check if the provided tool contains a complete path. 5300 tool_specified="$BASENAME" 5301 tool_basename="${tool_specified##*/}" 5302 if test "x$tool_basename" = "x$tool_specified"; then 5303 # A command without a complete path is provided, search $PATH. 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5305 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5306 # Extract the first word of "$tool_basename", so it can be a program name with args. 5307 set dummy $tool_basename; ac_word=$2 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5309 $as_echo_n "checking for $ac_word... " >&6; } 5310 if ${ac_cv_path_BASENAME+:} false; then : 5311 $as_echo_n "(cached) " >&6 5312 else 5313 case $BASENAME in 5314 [\\/]* | ?:[\\/]*) 5315 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5316 ;; 5317 *) 5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5319 for as_dir in $PATH 5320 do 5321 IFS=$as_save_IFS 5322 test -z "$as_dir" && as_dir=. 5323 for ac_exec_ext in '' $ac_executable_extensions; do 5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5325 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5327 break 2 5328 fi 5329 done 5330 done 5331 IFS=$as_save_IFS 5332 5333 ;; 5334 esac 5335 fi 5336 BASENAME=$ac_cv_path_BASENAME 5337 if test -n "$BASENAME"; then 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5339 $as_echo "$BASENAME" >&6; } 5340 else 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5342 $as_echo "no" >&6; } 5343 fi 5344 5345 5346 if test "x$BASENAME" = x; then 5347 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5348 fi 5349 else 5350 # Otherwise we believe it is a complete path. Use it as it is. 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5352 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5354 $as_echo_n "checking for BASENAME... " >&6; } 5355 if test ! -x "$tool_specified"; then 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5357 $as_echo "not found" >&6; } 5358 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5359 fi 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5361 $as_echo "$tool_specified" >&6; } 5362 fi 5363 fi 5364 fi 5365 5366 fi 5367 5368 5369 5370 if test "x$BASENAME" = x; then 5371 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5372 fi 5373 5374 5375 5376 5377 5378 # Publish this variable in the help. 5379 5380 5381 if [ -z "${BASH+x}" ]; then 5382 # The variable is not set by user, try to locate tool using the code snippet 5383 for ac_prog in bash 5384 do 5385 # Extract the first word of "$ac_prog", so it can be a program name with args. 5386 set dummy $ac_prog; ac_word=$2 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5388 $as_echo_n "checking for $ac_word... " >&6; } 5389 if ${ac_cv_path_BASH+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391 else 5392 case $BASH in 5393 [\\/]* | ?:[\\/]*) 5394 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5395 ;; 5396 *) 5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5398 for as_dir in $PATH 5399 do 5400 IFS=$as_save_IFS 5401 test -z "$as_dir" && as_dir=. 5402 for ac_exec_ext in '' $ac_executable_extensions; do 5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5404 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5406 break 2 5407 fi 5408 done 5409 done 5410 IFS=$as_save_IFS 5411 5412 ;; 5413 esac 5414 fi 5415 BASH=$ac_cv_path_BASH 5416 if test -n "$BASH"; then 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5418 $as_echo "$BASH" >&6; } 5419 else 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5421 $as_echo "no" >&6; } 5422 fi 5423 5424 5425 test -n "$BASH" && break 5426 done 5427 5428 else 5429 # The variable is set, but is it from the command line or the environment? 5430 5431 # Try to remove the string !BASH! from our list. 5432 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5433 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5434 # If it failed, the variable was not from the command line. Ignore it, 5435 # but warn the user (except for BASH, which is always set by the calling BASH). 5436 if test "xBASH" != xBASH; then 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5438 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5439 fi 5440 # Try to locate tool using the code snippet 5441 for ac_prog in bash 5442 do 5443 # Extract the first word of "$ac_prog", so it can be a program name with args. 5444 set dummy $ac_prog; ac_word=$2 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5446 $as_echo_n "checking for $ac_word... " >&6; } 5447 if ${ac_cv_path_BASH+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449 else 5450 case $BASH in 5451 [\\/]* | ?:[\\/]*) 5452 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5453 ;; 5454 *) 5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5456 for as_dir in $PATH 5457 do 5458 IFS=$as_save_IFS 5459 test -z "$as_dir" && as_dir=. 5460 for ac_exec_ext in '' $ac_executable_extensions; do 5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5462 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5464 break 2 5465 fi 5466 done 5467 done 5468 IFS=$as_save_IFS 5469 5470 ;; 5471 esac 5472 fi 5473 BASH=$ac_cv_path_BASH 5474 if test -n "$BASH"; then 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5476 $as_echo "$BASH" >&6; } 5477 else 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5479 $as_echo "no" >&6; } 5480 fi 5481 5482 5483 test -n "$BASH" && break 5484 done 5485 5486 else 5487 # If it succeeded, then it was overridden by the user. We will use it 5488 # for the tool. 5489 5490 # First remove it from the list of overridden variables, so we can test 5491 # for unknown variables in the end. 5492 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5493 5494 # Check if we try to supply an empty value 5495 if test "x$BASH" = x; then 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5497 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5499 $as_echo_n "checking for BASH... " >&6; } 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5501 $as_echo "disabled" >&6; } 5502 else 5503 # Check if the provided tool contains a complete path. 5504 tool_specified="$BASH" 5505 tool_basename="${tool_specified##*/}" 5506 if test "x$tool_basename" = "x$tool_specified"; then 5507 # A command without a complete path is provided, search $PATH. 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5509 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5510 # Extract the first word of "$tool_basename", so it can be a program name with args. 5511 set dummy $tool_basename; ac_word=$2 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5513 $as_echo_n "checking for $ac_word... " >&6; } 5514 if ${ac_cv_path_BASH+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516 else 5517 case $BASH in 5518 [\\/]* | ?:[\\/]*) 5519 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5520 ;; 5521 *) 5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5523 for as_dir in $PATH 5524 do 5525 IFS=$as_save_IFS 5526 test -z "$as_dir" && as_dir=. 5527 for ac_exec_ext in '' $ac_executable_extensions; do 5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5529 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5531 break 2 5532 fi 5533 done 5534 done 5535 IFS=$as_save_IFS 5536 5537 ;; 5538 esac 5539 fi 5540 BASH=$ac_cv_path_BASH 5541 if test -n "$BASH"; then 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5543 $as_echo "$BASH" >&6; } 5544 else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5546 $as_echo "no" >&6; } 5547 fi 5548 5549 5550 if test "x$BASH" = x; then 5551 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5552 fi 5553 else 5554 # Otherwise we believe it is a complete path. Use it as it is. 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5556 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5558 $as_echo_n "checking for BASH... " >&6; } 5559 if test ! -x "$tool_specified"; then 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5561 $as_echo "not found" >&6; } 5562 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5563 fi 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5565 $as_echo "$tool_specified" >&6; } 5566 fi 5567 fi 5568 fi 5569 5570 fi 5571 5572 5573 5574 if test "x$BASH" = x; then 5575 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5576 fi 5577 5578 5579 5580 5581 5582 # Publish this variable in the help. 5583 5584 5585 if [ -z "${CAT+x}" ]; then 5586 # The variable is not set by user, try to locate tool using the code snippet 5587 for ac_prog in cat 5588 do 5589 # Extract the first word of "$ac_prog", so it can be a program name with args. 5590 set dummy $ac_prog; ac_word=$2 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5592 $as_echo_n "checking for $ac_word... " >&6; } 5593 if ${ac_cv_path_CAT+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595 else 5596 case $CAT in 5597 [\\/]* | ?:[\\/]*) 5598 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5599 ;; 5600 *) 5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5602 for as_dir in $PATH 5603 do 5604 IFS=$as_save_IFS 5605 test -z "$as_dir" && as_dir=. 5606 for ac_exec_ext in '' $ac_executable_extensions; do 5607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5608 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5610 break 2 5611 fi 5612 done 5613 done 5614 IFS=$as_save_IFS 5615 5616 ;; 5617 esac 5618 fi 5619 CAT=$ac_cv_path_CAT 5620 if test -n "$CAT"; then 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5622 $as_echo "$CAT" >&6; } 5623 else 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5625 $as_echo "no" >&6; } 5626 fi 5627 5628 5629 test -n "$CAT" && break 5630 done 5631 5632 else 5633 # The variable is set, but is it from the command line or the environment? 5634 5635 # Try to remove the string !CAT! from our list. 5636 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5637 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5638 # If it failed, the variable was not from the command line. Ignore it, 5639 # but warn the user (except for BASH, which is always set by the calling BASH). 5640 if test "xCAT" != xBASH; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5642 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5643 fi 5644 # Try to locate tool using the code snippet 5645 for ac_prog in cat 5646 do 5647 # Extract the first word of "$ac_prog", so it can be a program name with args. 5648 set dummy $ac_prog; ac_word=$2 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5650 $as_echo_n "checking for $ac_word... " >&6; } 5651 if ${ac_cv_path_CAT+:} false; then : 5652 $as_echo_n "(cached) " >&6 5653 else 5654 case $CAT in 5655 [\\/]* | ?:[\\/]*) 5656 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5657 ;; 5658 *) 5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5660 for as_dir in $PATH 5661 do 5662 IFS=$as_save_IFS 5663 test -z "$as_dir" && as_dir=. 5664 for ac_exec_ext in '' $ac_executable_extensions; do 5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5666 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5668 break 2 5669 fi 5670 done 5671 done 5672 IFS=$as_save_IFS 5673 5674 ;; 5675 esac 5676 fi 5677 CAT=$ac_cv_path_CAT 5678 if test -n "$CAT"; then 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5680 $as_echo "$CAT" >&6; } 5681 else 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5683 $as_echo "no" >&6; } 5684 fi 5685 5686 5687 test -n "$CAT" && break 5688 done 5689 5690 else 5691 # If it succeeded, then it was overridden by the user. We will use it 5692 # for the tool. 5693 5694 # First remove it from the list of overridden variables, so we can test 5695 # for unknown variables in the end. 5696 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5697 5698 # Check if we try to supply an empty value 5699 if test "x$CAT" = x; then 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5701 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5703 $as_echo_n "checking for CAT... " >&6; } 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5705 $as_echo "disabled" >&6; } 5706 else 5707 # Check if the provided tool contains a complete path. 5708 tool_specified="$CAT" 5709 tool_basename="${tool_specified##*/}" 5710 if test "x$tool_basename" = "x$tool_specified"; then 5711 # A command without a complete path is provided, search $PATH. 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5713 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5714 # Extract the first word of "$tool_basename", so it can be a program name with args. 5715 set dummy $tool_basename; ac_word=$2 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5717 $as_echo_n "checking for $ac_word... " >&6; } 5718 if ${ac_cv_path_CAT+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720 else 5721 case $CAT in 5722 [\\/]* | ?:[\\/]*) 5723 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5724 ;; 5725 *) 5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5727 for as_dir in $PATH 5728 do 5729 IFS=$as_save_IFS 5730 test -z "$as_dir" && as_dir=. 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5733 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5735 break 2 5736 fi 5737 done 5738 done 5739 IFS=$as_save_IFS 5740 5741 ;; 5742 esac 5743 fi 5744 CAT=$ac_cv_path_CAT 5745 if test -n "$CAT"; then 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5747 $as_echo "$CAT" >&6; } 5748 else 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5750 $as_echo "no" >&6; } 5751 fi 5752 5753 5754 if test "x$CAT" = x; then 5755 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5756 fi 5757 else 5758 # Otherwise we believe it is a complete path. Use it as it is. 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5760 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5762 $as_echo_n "checking for CAT... " >&6; } 5763 if test ! -x "$tool_specified"; then 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5765 $as_echo "not found" >&6; } 5766 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5767 fi 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5769 $as_echo "$tool_specified" >&6; } 5770 fi 5771 fi 5772 fi 5773 5774 fi 5775 5776 5777 5778 if test "x$CAT" = x; then 5779 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5780 fi 5781 5782 5783 5784 5785 5786 # Publish this variable in the help. 5787 5788 5789 if [ -z "${CHMOD+x}" ]; then 5790 # The variable is not set by user, try to locate tool using the code snippet 5791 for ac_prog in chmod 5792 do 5793 # Extract the first word of "$ac_prog", so it can be a program name with args. 5794 set dummy $ac_prog; ac_word=$2 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5796 $as_echo_n "checking for $ac_word... " >&6; } 5797 if ${ac_cv_path_CHMOD+:} false; then : 5798 $as_echo_n "(cached) " >&6 5799 else 5800 case $CHMOD in 5801 [\\/]* | ?:[\\/]*) 5802 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5803 ;; 5804 *) 5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5806 for as_dir in $PATH 5807 do 5808 IFS=$as_save_IFS 5809 test -z "$as_dir" && as_dir=. 5810 for ac_exec_ext in '' $ac_executable_extensions; do 5811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5812 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5814 break 2 5815 fi 5816 done 5817 done 5818 IFS=$as_save_IFS 5819 5820 ;; 5821 esac 5822 fi 5823 CHMOD=$ac_cv_path_CHMOD 5824 if test -n "$CHMOD"; then 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5826 $as_echo "$CHMOD" >&6; } 5827 else 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5829 $as_echo "no" >&6; } 5830 fi 5831 5832 5833 test -n "$CHMOD" && break 5834 done 5835 5836 else 5837 # The variable is set, but is it from the command line or the environment? 5838 5839 # Try to remove the string !CHMOD! from our list. 5840 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5841 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5842 # If it failed, the variable was not from the command line. Ignore it, 5843 # but warn the user (except for BASH, which is always set by the calling BASH). 5844 if test "xCHMOD" != xBASH; then 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5846 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5847 fi 5848 # Try to locate tool using the code snippet 5849 for ac_prog in chmod 5850 do 5851 # Extract the first word of "$ac_prog", so it can be a program name with args. 5852 set dummy $ac_prog; ac_word=$2 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5854 $as_echo_n "checking for $ac_word... " >&6; } 5855 if ${ac_cv_path_CHMOD+:} false; then : 5856 $as_echo_n "(cached) " >&6 5857 else 5858 case $CHMOD in 5859 [\\/]* | ?:[\\/]*) 5860 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5861 ;; 5862 *) 5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5864 for as_dir in $PATH 5865 do 5866 IFS=$as_save_IFS 5867 test -z "$as_dir" && as_dir=. 5868 for ac_exec_ext in '' $ac_executable_extensions; do 5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5870 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5872 break 2 5873 fi 5874 done 5875 done 5876 IFS=$as_save_IFS 5877 5878 ;; 5879 esac 5880 fi 5881 CHMOD=$ac_cv_path_CHMOD 5882 if test -n "$CHMOD"; then 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5884 $as_echo "$CHMOD" >&6; } 5885 else 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5887 $as_echo "no" >&6; } 5888 fi 5889 5890 5891 test -n "$CHMOD" && break 5892 done 5893 5894 else 5895 # If it succeeded, then it was overridden by the user. We will use it 5896 # for the tool. 5897 5898 # First remove it from the list of overridden variables, so we can test 5899 # for unknown variables in the end. 5900 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5901 5902 # Check if we try to supply an empty value 5903 if test "x$CHMOD" = x; then 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5905 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5907 $as_echo_n "checking for CHMOD... " >&6; } 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5909 $as_echo "disabled" >&6; } 5910 else 5911 # Check if the provided tool contains a complete path. 5912 tool_specified="$CHMOD" 5913 tool_basename="${tool_specified##*/}" 5914 if test "x$tool_basename" = "x$tool_specified"; then 5915 # A command without a complete path is provided, search $PATH. 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5917 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5918 # Extract the first word of "$tool_basename", so it can be a program name with args. 5919 set dummy $tool_basename; ac_word=$2 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5921 $as_echo_n "checking for $ac_word... " >&6; } 5922 if ${ac_cv_path_CHMOD+:} false; then : 5923 $as_echo_n "(cached) " >&6 5924 else 5925 case $CHMOD in 5926 [\\/]* | ?:[\\/]*) 5927 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5928 ;; 5929 *) 5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5931 for as_dir in $PATH 5932 do 5933 IFS=$as_save_IFS 5934 test -z "$as_dir" && as_dir=. 5935 for ac_exec_ext in '' $ac_executable_extensions; do 5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5937 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5939 break 2 5940 fi 5941 done 5942 done 5943 IFS=$as_save_IFS 5944 5945 ;; 5946 esac 5947 fi 5948 CHMOD=$ac_cv_path_CHMOD 5949 if test -n "$CHMOD"; then 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5951 $as_echo "$CHMOD" >&6; } 5952 else 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5954 $as_echo "no" >&6; } 5955 fi 5956 5957 5958 if test "x$CHMOD" = x; then 5959 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5960 fi 5961 else 5962 # Otherwise we believe it is a complete path. Use it as it is. 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5964 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5966 $as_echo_n "checking for CHMOD... " >&6; } 5967 if test ! -x "$tool_specified"; then 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5969 $as_echo "not found" >&6; } 5970 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5971 fi 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5973 $as_echo "$tool_specified" >&6; } 5974 fi 5975 fi 5976 fi 5977 5978 fi 5979 5980 5981 5982 if test "x$CHMOD" = x; then 5983 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5984 fi 5985 5986 5987 5988 5989 5990 # Publish this variable in the help. 5991 5992 5993 if [ -z "${CMP+x}" ]; then 5994 # The variable is not set by user, try to locate tool using the code snippet 5995 for ac_prog in cmp 5996 do 5997 # Extract the first word of "$ac_prog", so it can be a program name with args. 5998 set dummy $ac_prog; ac_word=$2 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6000 $as_echo_n "checking for $ac_word... " >&6; } 6001 if ${ac_cv_path_CMP+:} false; then : 6002 $as_echo_n "(cached) " >&6 6003 else 6004 case $CMP in 6005 [\\/]* | ?:[\\/]*) 6006 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6007 ;; 6008 *) 6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6010 for as_dir in $PATH 6011 do 6012 IFS=$as_save_IFS 6013 test -z "$as_dir" && as_dir=. 6014 for ac_exec_ext in '' $ac_executable_extensions; do 6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6016 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6018 break 2 6019 fi 6020 done 6021 done 6022 IFS=$as_save_IFS 6023 6024 ;; 6025 esac 6026 fi 6027 CMP=$ac_cv_path_CMP 6028 if test -n "$CMP"; then 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6030 $as_echo "$CMP" >&6; } 6031 else 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6033 $as_echo "no" >&6; } 6034 fi 6035 6036 6037 test -n "$CMP" && break 6038 done 6039 6040 else 6041 # The variable is set, but is it from the command line or the environment? 6042 6043 # Try to remove the string !CMP! from our list. 6044 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6045 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6046 # If it failed, the variable was not from the command line. Ignore it, 6047 # but warn the user (except for BASH, which is always set by the calling BASH). 6048 if test "xCMP" != xBASH; then 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6050 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6051 fi 6052 # Try to locate tool using the code snippet 6053 for ac_prog in cmp 6054 do 6055 # Extract the first word of "$ac_prog", so it can be a program name with args. 6056 set dummy $ac_prog; ac_word=$2 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6058 $as_echo_n "checking for $ac_word... " >&6; } 6059 if ${ac_cv_path_CMP+:} false; then : 6060 $as_echo_n "(cached) " >&6 6061 else 6062 case $CMP in 6063 [\\/]* | ?:[\\/]*) 6064 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6065 ;; 6066 *) 6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6068 for as_dir in $PATH 6069 do 6070 IFS=$as_save_IFS 6071 test -z "$as_dir" && as_dir=. 6072 for ac_exec_ext in '' $ac_executable_extensions; do 6073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6074 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6076 break 2 6077 fi 6078 done 6079 done 6080 IFS=$as_save_IFS 6081 6082 ;; 6083 esac 6084 fi 6085 CMP=$ac_cv_path_CMP 6086 if test -n "$CMP"; then 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6088 $as_echo "$CMP" >&6; } 6089 else 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6091 $as_echo "no" >&6; } 6092 fi 6093 6094 6095 test -n "$CMP" && break 6096 done 6097 6098 else 6099 # If it succeeded, then it was overridden by the user. We will use it 6100 # for the tool. 6101 6102 # First remove it from the list of overridden variables, so we can test 6103 # for unknown variables in the end. 6104 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6105 6106 # Check if we try to supply an empty value 6107 if test "x$CMP" = x; then 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6109 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6111 $as_echo_n "checking for CMP... " >&6; } 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6113 $as_echo "disabled" >&6; } 6114 else 6115 # Check if the provided tool contains a complete path. 6116 tool_specified="$CMP" 6117 tool_basename="${tool_specified##*/}" 6118 if test "x$tool_basename" = "x$tool_specified"; then 6119 # A command without a complete path is provided, search $PATH. 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6121 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6122 # Extract the first word of "$tool_basename", so it can be a program name with args. 6123 set dummy $tool_basename; ac_word=$2 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6125 $as_echo_n "checking for $ac_word... " >&6; } 6126 if ${ac_cv_path_CMP+:} false; then : 6127 $as_echo_n "(cached) " >&6 6128 else 6129 case $CMP in 6130 [\\/]* | ?:[\\/]*) 6131 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6132 ;; 6133 *) 6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6135 for as_dir in $PATH 6136 do 6137 IFS=$as_save_IFS 6138 test -z "$as_dir" && as_dir=. 6139 for ac_exec_ext in '' $ac_executable_extensions; do 6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6141 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6143 break 2 6144 fi 6145 done 6146 done 6147 IFS=$as_save_IFS 6148 6149 ;; 6150 esac 6151 fi 6152 CMP=$ac_cv_path_CMP 6153 if test -n "$CMP"; then 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6155 $as_echo "$CMP" >&6; } 6156 else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158 $as_echo "no" >&6; } 6159 fi 6160 6161 6162 if test "x$CMP" = x; then 6163 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6164 fi 6165 else 6166 # Otherwise we believe it is a complete path. Use it as it is. 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6168 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6170 $as_echo_n "checking for CMP... " >&6; } 6171 if test ! -x "$tool_specified"; then 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6173 $as_echo "not found" >&6; } 6174 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6175 fi 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6177 $as_echo "$tool_specified" >&6; } 6178 fi 6179 fi 6180 fi 6181 6182 fi 6183 6184 6185 6186 if test "x$CMP" = x; then 6187 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6188 fi 6189 6190 6191 6192 6193 6194 # Publish this variable in the help. 6195 6196 6197 if [ -z "${COMM+x}" ]; then 6198 # The variable is not set by user, try to locate tool using the code snippet 6199 for ac_prog in comm 6200 do 6201 # Extract the first word of "$ac_prog", so it can be a program name with args. 6202 set dummy $ac_prog; ac_word=$2 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6204 $as_echo_n "checking for $ac_word... " >&6; } 6205 if ${ac_cv_path_COMM+:} false; then : 6206 $as_echo_n "(cached) " >&6 6207 else 6208 case $COMM in 6209 [\\/]* | ?:[\\/]*) 6210 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6211 ;; 6212 *) 6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6214 for as_dir in $PATH 6215 do 6216 IFS=$as_save_IFS 6217 test -z "$as_dir" && as_dir=. 6218 for ac_exec_ext in '' $ac_executable_extensions; do 6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6220 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6222 break 2 6223 fi 6224 done 6225 done 6226 IFS=$as_save_IFS 6227 6228 ;; 6229 esac 6230 fi 6231 COMM=$ac_cv_path_COMM 6232 if test -n "$COMM"; then 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6234 $as_echo "$COMM" >&6; } 6235 else 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6237 $as_echo "no" >&6; } 6238 fi 6239 6240 6241 test -n "$COMM" && break 6242 done 6243 6244 else 6245 # The variable is set, but is it from the command line or the environment? 6246 6247 # Try to remove the string !COMM! from our list. 6248 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6249 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6250 # If it failed, the variable was not from the command line. Ignore it, 6251 # but warn the user (except for BASH, which is always set by the calling BASH). 6252 if test "xCOMM" != xBASH; then 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6254 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6255 fi 6256 # Try to locate tool using the code snippet 6257 for ac_prog in comm 6258 do 6259 # Extract the first word of "$ac_prog", so it can be a program name with args. 6260 set dummy $ac_prog; ac_word=$2 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6262 $as_echo_n "checking for $ac_word... " >&6; } 6263 if ${ac_cv_path_COMM+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265 else 6266 case $COMM in 6267 [\\/]* | ?:[\\/]*) 6268 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6269 ;; 6270 *) 6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6272 for as_dir in $PATH 6273 do 6274 IFS=$as_save_IFS 6275 test -z "$as_dir" && as_dir=. 6276 for ac_exec_ext in '' $ac_executable_extensions; do 6277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6278 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6280 break 2 6281 fi 6282 done 6283 done 6284 IFS=$as_save_IFS 6285 6286 ;; 6287 esac 6288 fi 6289 COMM=$ac_cv_path_COMM 6290 if test -n "$COMM"; then 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6292 $as_echo "$COMM" >&6; } 6293 else 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6295 $as_echo "no" >&6; } 6296 fi 6297 6298 6299 test -n "$COMM" && break 6300 done 6301 6302 else 6303 # If it succeeded, then it was overridden by the user. We will use it 6304 # for the tool. 6305 6306 # First remove it from the list of overridden variables, so we can test 6307 # for unknown variables in the end. 6308 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6309 6310 # Check if we try to supply an empty value 6311 if test "x$COMM" = x; then 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6313 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6315 $as_echo_n "checking for COMM... " >&6; } 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6317 $as_echo "disabled" >&6; } 6318 else 6319 # Check if the provided tool contains a complete path. 6320 tool_specified="$COMM" 6321 tool_basename="${tool_specified##*/}" 6322 if test "x$tool_basename" = "x$tool_specified"; then 6323 # A command without a complete path is provided, search $PATH. 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6325 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6326 # Extract the first word of "$tool_basename", so it can be a program name with args. 6327 set dummy $tool_basename; ac_word=$2 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6329 $as_echo_n "checking for $ac_word... " >&6; } 6330 if ${ac_cv_path_COMM+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332 else 6333 case $COMM in 6334 [\\/]* | ?:[\\/]*) 6335 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6336 ;; 6337 *) 6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6339 for as_dir in $PATH 6340 do 6341 IFS=$as_save_IFS 6342 test -z "$as_dir" && as_dir=. 6343 for ac_exec_ext in '' $ac_executable_extensions; do 6344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6345 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6347 break 2 6348 fi 6349 done 6350 done 6351 IFS=$as_save_IFS 6352 6353 ;; 6354 esac 6355 fi 6356 COMM=$ac_cv_path_COMM 6357 if test -n "$COMM"; then 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6359 $as_echo "$COMM" >&6; } 6360 else 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6362 $as_echo "no" >&6; } 6363 fi 6364 6365 6366 if test "x$COMM" = x; then 6367 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6368 fi 6369 else 6370 # Otherwise we believe it is a complete path. Use it as it is. 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6372 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6374 $as_echo_n "checking for COMM... " >&6; } 6375 if test ! -x "$tool_specified"; then 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6377 $as_echo "not found" >&6; } 6378 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6379 fi 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6381 $as_echo "$tool_specified" >&6; } 6382 fi 6383 fi 6384 fi 6385 6386 fi 6387 6388 6389 6390 if test "x$COMM" = x; then 6391 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6392 fi 6393 6394 6395 6396 6397 6398 # Publish this variable in the help. 6399 6400 6401 if [ -z "${CP+x}" ]; then 6402 # The variable is not set by user, try to locate tool using the code snippet 6403 for ac_prog in cp 6404 do 6405 # Extract the first word of "$ac_prog", so it can be a program name with args. 6406 set dummy $ac_prog; ac_word=$2 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6408 $as_echo_n "checking for $ac_word... " >&6; } 6409 if ${ac_cv_path_CP+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411 else 6412 case $CP in 6413 [\\/]* | ?:[\\/]*) 6414 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6415 ;; 6416 *) 6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6418 for as_dir in $PATH 6419 do 6420 IFS=$as_save_IFS 6421 test -z "$as_dir" && as_dir=. 6422 for ac_exec_ext in '' $ac_executable_extensions; do 6423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6424 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6426 break 2 6427 fi 6428 done 6429 done 6430 IFS=$as_save_IFS 6431 6432 ;; 6433 esac 6434 fi 6435 CP=$ac_cv_path_CP 6436 if test -n "$CP"; then 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6438 $as_echo "$CP" >&6; } 6439 else 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6441 $as_echo "no" >&6; } 6442 fi 6443 6444 6445 test -n "$CP" && break 6446 done 6447 6448 else 6449 # The variable is set, but is it from the command line or the environment? 6450 6451 # Try to remove the string !CP! from our list. 6452 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6453 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6454 # If it failed, the variable was not from the command line. Ignore it, 6455 # but warn the user (except for BASH, which is always set by the calling BASH). 6456 if test "xCP" != xBASH; then 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6458 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6459 fi 6460 # Try to locate tool using the code snippet 6461 for ac_prog in cp 6462 do 6463 # Extract the first word of "$ac_prog", so it can be a program name with args. 6464 set dummy $ac_prog; ac_word=$2 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6466 $as_echo_n "checking for $ac_word... " >&6; } 6467 if ${ac_cv_path_CP+:} false; then : 6468 $as_echo_n "(cached) " >&6 6469 else 6470 case $CP in 6471 [\\/]* | ?:[\\/]*) 6472 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6473 ;; 6474 *) 6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6476 for as_dir in $PATH 6477 do 6478 IFS=$as_save_IFS 6479 test -z "$as_dir" && as_dir=. 6480 for ac_exec_ext in '' $ac_executable_extensions; do 6481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6482 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6484 break 2 6485 fi 6486 done 6487 done 6488 IFS=$as_save_IFS 6489 6490 ;; 6491 esac 6492 fi 6493 CP=$ac_cv_path_CP 6494 if test -n "$CP"; then 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6496 $as_echo "$CP" >&6; } 6497 else 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6499 $as_echo "no" >&6; } 6500 fi 6501 6502 6503 test -n "$CP" && break 6504 done 6505 6506 else 6507 # If it succeeded, then it was overridden by the user. We will use it 6508 # for the tool. 6509 6510 # First remove it from the list of overridden variables, so we can test 6511 # for unknown variables in the end. 6512 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6513 6514 # Check if we try to supply an empty value 6515 if test "x$CP" = x; then 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6517 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6519 $as_echo_n "checking for CP... " >&6; } 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6521 $as_echo "disabled" >&6; } 6522 else 6523 # Check if the provided tool contains a complete path. 6524 tool_specified="$CP" 6525 tool_basename="${tool_specified##*/}" 6526 if test "x$tool_basename" = "x$tool_specified"; then 6527 # A command without a complete path is provided, search $PATH. 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6529 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6530 # Extract the first word of "$tool_basename", so it can be a program name with args. 6531 set dummy $tool_basename; ac_word=$2 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6533 $as_echo_n "checking for $ac_word... " >&6; } 6534 if ${ac_cv_path_CP+:} false; then : 6535 $as_echo_n "(cached) " >&6 6536 else 6537 case $CP in 6538 [\\/]* | ?:[\\/]*) 6539 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6540 ;; 6541 *) 6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6543 for as_dir in $PATH 6544 do 6545 IFS=$as_save_IFS 6546 test -z "$as_dir" && as_dir=. 6547 for ac_exec_ext in '' $ac_executable_extensions; do 6548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6549 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6551 break 2 6552 fi 6553 done 6554 done 6555 IFS=$as_save_IFS 6556 6557 ;; 6558 esac 6559 fi 6560 CP=$ac_cv_path_CP 6561 if test -n "$CP"; then 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6563 $as_echo "$CP" >&6; } 6564 else 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6566 $as_echo "no" >&6; } 6567 fi 6568 6569 6570 if test "x$CP" = x; then 6571 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6572 fi 6573 else 6574 # Otherwise we believe it is a complete path. Use it as it is. 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6576 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6578 $as_echo_n "checking for CP... " >&6; } 6579 if test ! -x "$tool_specified"; then 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6581 $as_echo "not found" >&6; } 6582 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6583 fi 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6585 $as_echo "$tool_specified" >&6; } 6586 fi 6587 fi 6588 fi 6589 6590 fi 6591 6592 6593 6594 if test "x$CP" = x; then 6595 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6596 fi 6597 6598 6599 6600 6601 6602 # Publish this variable in the help. 6603 6604 6605 if [ -z "${CUT+x}" ]; then 6606 # The variable is not set by user, try to locate tool using the code snippet 6607 for ac_prog in cut 6608 do 6609 # Extract the first word of "$ac_prog", so it can be a program name with args. 6610 set dummy $ac_prog; ac_word=$2 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6612 $as_echo_n "checking for $ac_word... " >&6; } 6613 if ${ac_cv_path_CUT+:} false; then : 6614 $as_echo_n "(cached) " >&6 6615 else 6616 case $CUT in 6617 [\\/]* | ?:[\\/]*) 6618 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6619 ;; 6620 *) 6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6622 for as_dir in $PATH 6623 do 6624 IFS=$as_save_IFS 6625 test -z "$as_dir" && as_dir=. 6626 for ac_exec_ext in '' $ac_executable_extensions; do 6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6628 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6630 break 2 6631 fi 6632 done 6633 done 6634 IFS=$as_save_IFS 6635 6636 ;; 6637 esac 6638 fi 6639 CUT=$ac_cv_path_CUT 6640 if test -n "$CUT"; then 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6642 $as_echo "$CUT" >&6; } 6643 else 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6645 $as_echo "no" >&6; } 6646 fi 6647 6648 6649 test -n "$CUT" && break 6650 done 6651 6652 else 6653 # The variable is set, but is it from the command line or the environment? 6654 6655 # Try to remove the string !CUT! from our list. 6656 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6657 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6658 # If it failed, the variable was not from the command line. Ignore it, 6659 # but warn the user (except for BASH, which is always set by the calling BASH). 6660 if test "xCUT" != xBASH; then 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6662 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6663 fi 6664 # Try to locate tool using the code snippet 6665 for ac_prog in cut 6666 do 6667 # Extract the first word of "$ac_prog", so it can be a program name with args. 6668 set dummy $ac_prog; ac_word=$2 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6670 $as_echo_n "checking for $ac_word... " >&6; } 6671 if ${ac_cv_path_CUT+:} false; then : 6672 $as_echo_n "(cached) " >&6 6673 else 6674 case $CUT in 6675 [\\/]* | ?:[\\/]*) 6676 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6677 ;; 6678 *) 6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6680 for as_dir in $PATH 6681 do 6682 IFS=$as_save_IFS 6683 test -z "$as_dir" && as_dir=. 6684 for ac_exec_ext in '' $ac_executable_extensions; do 6685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6686 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6688 break 2 6689 fi 6690 done 6691 done 6692 IFS=$as_save_IFS 6693 6694 ;; 6695 esac 6696 fi 6697 CUT=$ac_cv_path_CUT 6698 if test -n "$CUT"; then 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6700 $as_echo "$CUT" >&6; } 6701 else 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6703 $as_echo "no" >&6; } 6704 fi 6705 6706 6707 test -n "$CUT" && break 6708 done 6709 6710 else 6711 # If it succeeded, then it was overridden by the user. We will use it 6712 # for the tool. 6713 6714 # First remove it from the list of overridden variables, so we can test 6715 # for unknown variables in the end. 6716 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6717 6718 # Check if we try to supply an empty value 6719 if test "x$CUT" = x; then 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6721 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6723 $as_echo_n "checking for CUT... " >&6; } 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6725 $as_echo "disabled" >&6; } 6726 else 6727 # Check if the provided tool contains a complete path. 6728 tool_specified="$CUT" 6729 tool_basename="${tool_specified##*/}" 6730 if test "x$tool_basename" = "x$tool_specified"; then 6731 # A command without a complete path is provided, search $PATH. 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6733 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6734 # Extract the first word of "$tool_basename", so it can be a program name with args. 6735 set dummy $tool_basename; ac_word=$2 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6737 $as_echo_n "checking for $ac_word... " >&6; } 6738 if ${ac_cv_path_CUT+:} false; then : 6739 $as_echo_n "(cached) " >&6 6740 else 6741 case $CUT in 6742 [\\/]* | ?:[\\/]*) 6743 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6744 ;; 6745 *) 6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6747 for as_dir in $PATH 6748 do 6749 IFS=$as_save_IFS 6750 test -z "$as_dir" && as_dir=. 6751 for ac_exec_ext in '' $ac_executable_extensions; do 6752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6753 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6755 break 2 6756 fi 6757 done 6758 done 6759 IFS=$as_save_IFS 6760 6761 ;; 6762 esac 6763 fi 6764 CUT=$ac_cv_path_CUT 6765 if test -n "$CUT"; then 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6767 $as_echo "$CUT" >&6; } 6768 else 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6770 $as_echo "no" >&6; } 6771 fi 6772 6773 6774 if test "x$CUT" = x; then 6775 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6776 fi 6777 else 6778 # Otherwise we believe it is a complete path. Use it as it is. 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6780 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6782 $as_echo_n "checking for CUT... " >&6; } 6783 if test ! -x "$tool_specified"; then 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6785 $as_echo "not found" >&6; } 6786 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6787 fi 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6789 $as_echo "$tool_specified" >&6; } 6790 fi 6791 fi 6792 fi 6793 6794 fi 6795 6796 6797 6798 if test "x$CUT" = x; then 6799 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6800 fi 6801 6802 6803 6804 6805 6806 # Publish this variable in the help. 6807 6808 6809 if [ -z "${DATE+x}" ]; then 6810 # The variable is not set by user, try to locate tool using the code snippet 6811 for ac_prog in date 6812 do 6813 # Extract the first word of "$ac_prog", so it can be a program name with args. 6814 set dummy $ac_prog; ac_word=$2 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6816 $as_echo_n "checking for $ac_word... " >&6; } 6817 if ${ac_cv_path_DATE+:} false; then : 6818 $as_echo_n "(cached) " >&6 6819 else 6820 case $DATE in 6821 [\\/]* | ?:[\\/]*) 6822 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6823 ;; 6824 *) 6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826 for as_dir in $PATH 6827 do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6832 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6834 break 2 6835 fi 6836 done 6837 done 6838 IFS=$as_save_IFS 6839 6840 ;; 6841 esac 6842 fi 6843 DATE=$ac_cv_path_DATE 6844 if test -n "$DATE"; then 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6846 $as_echo "$DATE" >&6; } 6847 else 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6849 $as_echo "no" >&6; } 6850 fi 6851 6852 6853 test -n "$DATE" && break 6854 done 6855 6856 else 6857 # The variable is set, but is it from the command line or the environment? 6858 6859 # Try to remove the string !DATE! from our list. 6860 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6861 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6862 # If it failed, the variable was not from the command line. Ignore it, 6863 # but warn the user (except for BASH, which is always set by the calling BASH). 6864 if test "xDATE" != xBASH; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6866 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6867 fi 6868 # Try to locate tool using the code snippet 6869 for ac_prog in date 6870 do 6871 # Extract the first word of "$ac_prog", so it can be a program name with args. 6872 set dummy $ac_prog; ac_word=$2 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6874 $as_echo_n "checking for $ac_word... " >&6; } 6875 if ${ac_cv_path_DATE+:} false; then : 6876 $as_echo_n "(cached) " >&6 6877 else 6878 case $DATE in 6879 [\\/]* | ?:[\\/]*) 6880 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6881 ;; 6882 *) 6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6884 for as_dir in $PATH 6885 do 6886 IFS=$as_save_IFS 6887 test -z "$as_dir" && as_dir=. 6888 for ac_exec_ext in '' $ac_executable_extensions; do 6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6890 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6892 break 2 6893 fi 6894 done 6895 done 6896 IFS=$as_save_IFS 6897 6898 ;; 6899 esac 6900 fi 6901 DATE=$ac_cv_path_DATE 6902 if test -n "$DATE"; then 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6904 $as_echo "$DATE" >&6; } 6905 else 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6907 $as_echo "no" >&6; } 6908 fi 6909 6910 6911 test -n "$DATE" && break 6912 done 6913 6914 else 6915 # If it succeeded, then it was overridden by the user. We will use it 6916 # for the tool. 6917 6918 # First remove it from the list of overridden variables, so we can test 6919 # for unknown variables in the end. 6920 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6921 6922 # Check if we try to supply an empty value 6923 if test "x$DATE" = x; then 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6925 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6927 $as_echo_n "checking for DATE... " >&6; } 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6929 $as_echo "disabled" >&6; } 6930 else 6931 # Check if the provided tool contains a complete path. 6932 tool_specified="$DATE" 6933 tool_basename="${tool_specified##*/}" 6934 if test "x$tool_basename" = "x$tool_specified"; then 6935 # A command without a complete path is provided, search $PATH. 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6937 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6938 # Extract the first word of "$tool_basename", so it can be a program name with args. 6939 set dummy $tool_basename; ac_word=$2 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6941 $as_echo_n "checking for $ac_word... " >&6; } 6942 if ${ac_cv_path_DATE+:} false; then : 6943 $as_echo_n "(cached) " >&6 6944 else 6945 case $DATE in 6946 [\\/]* | ?:[\\/]*) 6947 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6948 ;; 6949 *) 6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951 for as_dir in $PATH 6952 do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 for ac_exec_ext in '' $ac_executable_extensions; do 6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6957 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6959 break 2 6960 fi 6961 done 6962 done 6963 IFS=$as_save_IFS 6964 6965 ;; 6966 esac 6967 fi 6968 DATE=$ac_cv_path_DATE 6969 if test -n "$DATE"; then 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6971 $as_echo "$DATE" >&6; } 6972 else 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6974 $as_echo "no" >&6; } 6975 fi 6976 6977 6978 if test "x$DATE" = x; then 6979 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6980 fi 6981 else 6982 # Otherwise we believe it is a complete path. Use it as it is. 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6984 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6986 $as_echo_n "checking for DATE... " >&6; } 6987 if test ! -x "$tool_specified"; then 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6989 $as_echo "not found" >&6; } 6990 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6991 fi 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6993 $as_echo "$tool_specified" >&6; } 6994 fi 6995 fi 6996 fi 6997 6998 fi 6999 7000 7001 7002 if test "x$DATE" = x; then 7003 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 7004 fi 7005 7006 7007 7008 7009 7010 # Publish this variable in the help. 7011 7012 7013 if [ -z "${DIFF+x}" ]; then 7014 # The variable is not set by user, try to locate tool using the code snippet 7015 for ac_prog in gdiff diff 7016 do 7017 # Extract the first word of "$ac_prog", so it can be a program name with args. 7018 set dummy $ac_prog; ac_word=$2 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7020 $as_echo_n "checking for $ac_word... " >&6; } 7021 if ${ac_cv_path_DIFF+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023 else 7024 case $DIFF in 7025 [\\/]* | ?:[\\/]*) 7026 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7027 ;; 7028 *) 7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7030 for as_dir in $PATH 7031 do 7032 IFS=$as_save_IFS 7033 test -z "$as_dir" && as_dir=. 7034 for ac_exec_ext in '' $ac_executable_extensions; do 7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7036 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7038 break 2 7039 fi 7040 done 7041 done 7042 IFS=$as_save_IFS 7043 7044 ;; 7045 esac 7046 fi 7047 DIFF=$ac_cv_path_DIFF 7048 if test -n "$DIFF"; then 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7050 $as_echo "$DIFF" >&6; } 7051 else 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7053 $as_echo "no" >&6; } 7054 fi 7055 7056 7057 test -n "$DIFF" && break 7058 done 7059 7060 else 7061 # The variable is set, but is it from the command line or the environment? 7062 7063 # Try to remove the string !DIFF! from our list. 7064 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7065 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7066 # If it failed, the variable was not from the command line. Ignore it, 7067 # but warn the user (except for BASH, which is always set by the calling BASH). 7068 if test "xDIFF" != xBASH; then 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7070 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7071 fi 7072 # Try to locate tool using the code snippet 7073 for ac_prog in gdiff diff 7074 do 7075 # Extract the first word of "$ac_prog", so it can be a program name with args. 7076 set dummy $ac_prog; ac_word=$2 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7078 $as_echo_n "checking for $ac_word... " >&6; } 7079 if ${ac_cv_path_DIFF+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081 else 7082 case $DIFF in 7083 [\\/]* | ?:[\\/]*) 7084 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7085 ;; 7086 *) 7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7088 for as_dir in $PATH 7089 do 7090 IFS=$as_save_IFS 7091 test -z "$as_dir" && as_dir=. 7092 for ac_exec_ext in '' $ac_executable_extensions; do 7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7094 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7096 break 2 7097 fi 7098 done 7099 done 7100 IFS=$as_save_IFS 7101 7102 ;; 7103 esac 7104 fi 7105 DIFF=$ac_cv_path_DIFF 7106 if test -n "$DIFF"; then 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7108 $as_echo "$DIFF" >&6; } 7109 else 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7111 $as_echo "no" >&6; } 7112 fi 7113 7114 7115 test -n "$DIFF" && break 7116 done 7117 7118 else 7119 # If it succeeded, then it was overridden by the user. We will use it 7120 # for the tool. 7121 7122 # First remove it from the list of overridden variables, so we can test 7123 # for unknown variables in the end. 7124 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7125 7126 # Check if we try to supply an empty value 7127 if test "x$DIFF" = x; then 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7129 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7131 $as_echo_n "checking for DIFF... " >&6; } 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7133 $as_echo "disabled" >&6; } 7134 else 7135 # Check if the provided tool contains a complete path. 7136 tool_specified="$DIFF" 7137 tool_basename="${tool_specified##*/}" 7138 if test "x$tool_basename" = "x$tool_specified"; then 7139 # A command without a complete path is provided, search $PATH. 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7141 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7142 # Extract the first word of "$tool_basename", so it can be a program name with args. 7143 set dummy $tool_basename; ac_word=$2 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7145 $as_echo_n "checking for $ac_word... " >&6; } 7146 if ${ac_cv_path_DIFF+:} false; then : 7147 $as_echo_n "(cached) " >&6 7148 else 7149 case $DIFF in 7150 [\\/]* | ?:[\\/]*) 7151 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7152 ;; 7153 *) 7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7155 for as_dir in $PATH 7156 do 7157 IFS=$as_save_IFS 7158 test -z "$as_dir" && as_dir=. 7159 for ac_exec_ext in '' $ac_executable_extensions; do 7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7161 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7163 break 2 7164 fi 7165 done 7166 done 7167 IFS=$as_save_IFS 7168 7169 ;; 7170 esac 7171 fi 7172 DIFF=$ac_cv_path_DIFF 7173 if test -n "$DIFF"; then 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7175 $as_echo "$DIFF" >&6; } 7176 else 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7178 $as_echo "no" >&6; } 7179 fi 7180 7181 7182 if test "x$DIFF" = x; then 7183 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7184 fi 7185 else 7186 # Otherwise we believe it is a complete path. Use it as it is. 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7188 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7190 $as_echo_n "checking for DIFF... " >&6; } 7191 if test ! -x "$tool_specified"; then 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7193 $as_echo "not found" >&6; } 7194 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7195 fi 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7197 $as_echo "$tool_specified" >&6; } 7198 fi 7199 fi 7200 fi 7201 7202 fi 7203 7204 7205 7206 if test "x$DIFF" = x; then 7207 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7208 fi 7209 7210 7211 7212 7213 7214 # Publish this variable in the help. 7215 7216 7217 if [ -z "${DIRNAME+x}" ]; then 7218 # The variable is not set by user, try to locate tool using the code snippet 7219 for ac_prog in dirname 7220 do 7221 # Extract the first word of "$ac_prog", so it can be a program name with args. 7222 set dummy $ac_prog; ac_word=$2 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7224 $as_echo_n "checking for $ac_word... " >&6; } 7225 if ${ac_cv_path_DIRNAME+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227 else 7228 case $DIRNAME in 7229 [\\/]* | ?:[\\/]*) 7230 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7231 ;; 7232 *) 7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7234 for as_dir in $PATH 7235 do 7236 IFS=$as_save_IFS 7237 test -z "$as_dir" && as_dir=. 7238 for ac_exec_ext in '' $ac_executable_extensions; do 7239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7240 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7242 break 2 7243 fi 7244 done 7245 done 7246 IFS=$as_save_IFS 7247 7248 ;; 7249 esac 7250 fi 7251 DIRNAME=$ac_cv_path_DIRNAME 7252 if test -n "$DIRNAME"; then 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7254 $as_echo "$DIRNAME" >&6; } 7255 else 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7257 $as_echo "no" >&6; } 7258 fi 7259 7260 7261 test -n "$DIRNAME" && break 7262 done 7263 7264 else 7265 # The variable is set, but is it from the command line or the environment? 7266 7267 # Try to remove the string !DIRNAME! from our list. 7268 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7269 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7270 # If it failed, the variable was not from the command line. Ignore it, 7271 # but warn the user (except for BASH, which is always set by the calling BASH). 7272 if test "xDIRNAME" != xBASH; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7274 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7275 fi 7276 # Try to locate tool using the code snippet 7277 for ac_prog in dirname 7278 do 7279 # Extract the first word of "$ac_prog", so it can be a program name with args. 7280 set dummy $ac_prog; ac_word=$2 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7282 $as_echo_n "checking for $ac_word... " >&6; } 7283 if ${ac_cv_path_DIRNAME+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285 else 7286 case $DIRNAME in 7287 [\\/]* | ?:[\\/]*) 7288 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7289 ;; 7290 *) 7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292 for as_dir in $PATH 7293 do 7294 IFS=$as_save_IFS 7295 test -z "$as_dir" && as_dir=. 7296 for ac_exec_ext in '' $ac_executable_extensions; do 7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7298 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7300 break 2 7301 fi 7302 done 7303 done 7304 IFS=$as_save_IFS 7305 7306 ;; 7307 esac 7308 fi 7309 DIRNAME=$ac_cv_path_DIRNAME 7310 if test -n "$DIRNAME"; then 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7312 $as_echo "$DIRNAME" >&6; } 7313 else 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7315 $as_echo "no" >&6; } 7316 fi 7317 7318 7319 test -n "$DIRNAME" && break 7320 done 7321 7322 else 7323 # If it succeeded, then it was overridden by the user. We will use it 7324 # for the tool. 7325 7326 # First remove it from the list of overridden variables, so we can test 7327 # for unknown variables in the end. 7328 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7329 7330 # Check if we try to supply an empty value 7331 if test "x$DIRNAME" = x; then 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7333 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7335 $as_echo_n "checking for DIRNAME... " >&6; } 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7337 $as_echo "disabled" >&6; } 7338 else 7339 # Check if the provided tool contains a complete path. 7340 tool_specified="$DIRNAME" 7341 tool_basename="${tool_specified##*/}" 7342 if test "x$tool_basename" = "x$tool_specified"; then 7343 # A command without a complete path is provided, search $PATH. 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7345 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7346 # Extract the first word of "$tool_basename", so it can be a program name with args. 7347 set dummy $tool_basename; ac_word=$2 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7349 $as_echo_n "checking for $ac_word... " >&6; } 7350 if ${ac_cv_path_DIRNAME+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352 else 7353 case $DIRNAME in 7354 [\\/]* | ?:[\\/]*) 7355 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7356 ;; 7357 *) 7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7359 for as_dir in $PATH 7360 do 7361 IFS=$as_save_IFS 7362 test -z "$as_dir" && as_dir=. 7363 for ac_exec_ext in '' $ac_executable_extensions; do 7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7365 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7367 break 2 7368 fi 7369 done 7370 done 7371 IFS=$as_save_IFS 7372 7373 ;; 7374 esac 7375 fi 7376 DIRNAME=$ac_cv_path_DIRNAME 7377 if test -n "$DIRNAME"; then 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7379 $as_echo "$DIRNAME" >&6; } 7380 else 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7382 $as_echo "no" >&6; } 7383 fi 7384 7385 7386 if test "x$DIRNAME" = x; then 7387 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7388 fi 7389 else 7390 # Otherwise we believe it is a complete path. Use it as it is. 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7392 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7394 $as_echo_n "checking for DIRNAME... " >&6; } 7395 if test ! -x "$tool_specified"; then 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7397 $as_echo "not found" >&6; } 7398 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7399 fi 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7401 $as_echo "$tool_specified" >&6; } 7402 fi 7403 fi 7404 fi 7405 7406 fi 7407 7408 7409 7410 if test "x$DIRNAME" = x; then 7411 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7412 fi 7413 7414 7415 7416 7417 7418 # Publish this variable in the help. 7419 7420 7421 if [ -z "${ECHO+x}" ]; then 7422 # The variable is not set by user, try to locate tool using the code snippet 7423 for ac_prog in echo 7424 do 7425 # Extract the first word of "$ac_prog", so it can be a program name with args. 7426 set dummy $ac_prog; ac_word=$2 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7428 $as_echo_n "checking for $ac_word... " >&6; } 7429 if ${ac_cv_path_ECHO+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431 else 7432 case $ECHO in 7433 [\\/]* | ?:[\\/]*) 7434 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7435 ;; 7436 *) 7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7438 for as_dir in $PATH 7439 do 7440 IFS=$as_save_IFS 7441 test -z "$as_dir" && as_dir=. 7442 for ac_exec_ext in '' $ac_executable_extensions; do 7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7444 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7446 break 2 7447 fi 7448 done 7449 done 7450 IFS=$as_save_IFS 7451 7452 ;; 7453 esac 7454 fi 7455 ECHO=$ac_cv_path_ECHO 7456 if test -n "$ECHO"; then 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7458 $as_echo "$ECHO" >&6; } 7459 else 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7461 $as_echo "no" >&6; } 7462 fi 7463 7464 7465 test -n "$ECHO" && break 7466 done 7467 7468 else 7469 # The variable is set, but is it from the command line or the environment? 7470 7471 # Try to remove the string !ECHO! from our list. 7472 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7473 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7474 # If it failed, the variable was not from the command line. Ignore it, 7475 # but warn the user (except for BASH, which is always set by the calling BASH). 7476 if test "xECHO" != xBASH; then 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7478 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7479 fi 7480 # Try to locate tool using the code snippet 7481 for ac_prog in echo 7482 do 7483 # Extract the first word of "$ac_prog", so it can be a program name with args. 7484 set dummy $ac_prog; ac_word=$2 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7486 $as_echo_n "checking for $ac_word... " >&6; } 7487 if ${ac_cv_path_ECHO+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489 else 7490 case $ECHO in 7491 [\\/]* | ?:[\\/]*) 7492 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7493 ;; 7494 *) 7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7496 for as_dir in $PATH 7497 do 7498 IFS=$as_save_IFS 7499 test -z "$as_dir" && as_dir=. 7500 for ac_exec_ext in '' $ac_executable_extensions; do 7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7502 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7504 break 2 7505 fi 7506 done 7507 done 7508 IFS=$as_save_IFS 7509 7510 ;; 7511 esac 7512 fi 7513 ECHO=$ac_cv_path_ECHO 7514 if test -n "$ECHO"; then 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7516 $as_echo "$ECHO" >&6; } 7517 else 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7519 $as_echo "no" >&6; } 7520 fi 7521 7522 7523 test -n "$ECHO" && break 7524 done 7525 7526 else 7527 # If it succeeded, then it was overridden by the user. We will use it 7528 # for the tool. 7529 7530 # First remove it from the list of overridden variables, so we can test 7531 # for unknown variables in the end. 7532 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7533 7534 # Check if we try to supply an empty value 7535 if test "x$ECHO" = x; then 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7537 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7539 $as_echo_n "checking for ECHO... " >&6; } 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7541 $as_echo "disabled" >&6; } 7542 else 7543 # Check if the provided tool contains a complete path. 7544 tool_specified="$ECHO" 7545 tool_basename="${tool_specified##*/}" 7546 if test "x$tool_basename" = "x$tool_specified"; then 7547 # A command without a complete path is provided, search $PATH. 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7549 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7550 # Extract the first word of "$tool_basename", so it can be a program name with args. 7551 set dummy $tool_basename; ac_word=$2 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7553 $as_echo_n "checking for $ac_word... " >&6; } 7554 if ${ac_cv_path_ECHO+:} false; then : 7555 $as_echo_n "(cached) " >&6 7556 else 7557 case $ECHO in 7558 [\\/]* | ?:[\\/]*) 7559 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7560 ;; 7561 *) 7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7563 for as_dir in $PATH 7564 do 7565 IFS=$as_save_IFS 7566 test -z "$as_dir" && as_dir=. 7567 for ac_exec_ext in '' $ac_executable_extensions; do 7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7569 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7571 break 2 7572 fi 7573 done 7574 done 7575 IFS=$as_save_IFS 7576 7577 ;; 7578 esac 7579 fi 7580 ECHO=$ac_cv_path_ECHO 7581 if test -n "$ECHO"; then 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7583 $as_echo "$ECHO" >&6; } 7584 else 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7586 $as_echo "no" >&6; } 7587 fi 7588 7589 7590 if test "x$ECHO" = x; then 7591 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7592 fi 7593 else 7594 # Otherwise we believe it is a complete path. Use it as it is. 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7596 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7598 $as_echo_n "checking for ECHO... " >&6; } 7599 if test ! -x "$tool_specified"; then 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7601 $as_echo "not found" >&6; } 7602 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7603 fi 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7605 $as_echo "$tool_specified" >&6; } 7606 fi 7607 fi 7608 fi 7609 7610 fi 7611 7612 7613 7614 if test "x$ECHO" = x; then 7615 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7616 fi 7617 7618 7619 7620 7621 7622 # Publish this variable in the help. 7623 7624 7625 if [ -z "${EXPR+x}" ]; then 7626 # The variable is not set by user, try to locate tool using the code snippet 7627 for ac_prog in expr 7628 do 7629 # Extract the first word of "$ac_prog", so it can be a program name with args. 7630 set dummy $ac_prog; ac_word=$2 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7632 $as_echo_n "checking for $ac_word... " >&6; } 7633 if ${ac_cv_path_EXPR+:} false; then : 7634 $as_echo_n "(cached) " >&6 7635 else 7636 case $EXPR in 7637 [\\/]* | ?:[\\/]*) 7638 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7639 ;; 7640 *) 7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7642 for as_dir in $PATH 7643 do 7644 IFS=$as_save_IFS 7645 test -z "$as_dir" && as_dir=. 7646 for ac_exec_ext in '' $ac_executable_extensions; do 7647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7648 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7650 break 2 7651 fi 7652 done 7653 done 7654 IFS=$as_save_IFS 7655 7656 ;; 7657 esac 7658 fi 7659 EXPR=$ac_cv_path_EXPR 7660 if test -n "$EXPR"; then 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7662 $as_echo "$EXPR" >&6; } 7663 else 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7665 $as_echo "no" >&6; } 7666 fi 7667 7668 7669 test -n "$EXPR" && break 7670 done 7671 7672 else 7673 # The variable is set, but is it from the command line or the environment? 7674 7675 # Try to remove the string !EXPR! from our list. 7676 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7677 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7678 # If it failed, the variable was not from the command line. Ignore it, 7679 # but warn the user (except for BASH, which is always set by the calling BASH). 7680 if test "xEXPR" != xBASH; then 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7682 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7683 fi 7684 # Try to locate tool using the code snippet 7685 for ac_prog in expr 7686 do 7687 # Extract the first word of "$ac_prog", so it can be a program name with args. 7688 set dummy $ac_prog; ac_word=$2 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7690 $as_echo_n "checking for $ac_word... " >&6; } 7691 if ${ac_cv_path_EXPR+:} false; then : 7692 $as_echo_n "(cached) " >&6 7693 else 7694 case $EXPR in 7695 [\\/]* | ?:[\\/]*) 7696 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7697 ;; 7698 *) 7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7700 for as_dir in $PATH 7701 do 7702 IFS=$as_save_IFS 7703 test -z "$as_dir" && as_dir=. 7704 for ac_exec_ext in '' $ac_executable_extensions; do 7705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7706 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7708 break 2 7709 fi 7710 done 7711 done 7712 IFS=$as_save_IFS 7713 7714 ;; 7715 esac 7716 fi 7717 EXPR=$ac_cv_path_EXPR 7718 if test -n "$EXPR"; then 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7720 $as_echo "$EXPR" >&6; } 7721 else 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7723 $as_echo "no" >&6; } 7724 fi 7725 7726 7727 test -n "$EXPR" && break 7728 done 7729 7730 else 7731 # If it succeeded, then it was overridden by the user. We will use it 7732 # for the tool. 7733 7734 # First remove it from the list of overridden variables, so we can test 7735 # for unknown variables in the end. 7736 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7737 7738 # Check if we try to supply an empty value 7739 if test "x$EXPR" = x; then 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7741 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7743 $as_echo_n "checking for EXPR... " >&6; } 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7745 $as_echo "disabled" >&6; } 7746 else 7747 # Check if the provided tool contains a complete path. 7748 tool_specified="$EXPR" 7749 tool_basename="${tool_specified##*/}" 7750 if test "x$tool_basename" = "x$tool_specified"; then 7751 # A command without a complete path is provided, search $PATH. 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7753 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7754 # Extract the first word of "$tool_basename", so it can be a program name with args. 7755 set dummy $tool_basename; ac_word=$2 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7757 $as_echo_n "checking for $ac_word... " >&6; } 7758 if ${ac_cv_path_EXPR+:} false; then : 7759 $as_echo_n "(cached) " >&6 7760 else 7761 case $EXPR in 7762 [\\/]* | ?:[\\/]*) 7763 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7764 ;; 7765 *) 7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7767 for as_dir in $PATH 7768 do 7769 IFS=$as_save_IFS 7770 test -z "$as_dir" && as_dir=. 7771 for ac_exec_ext in '' $ac_executable_extensions; do 7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7773 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7775 break 2 7776 fi 7777 done 7778 done 7779 IFS=$as_save_IFS 7780 7781 ;; 7782 esac 7783 fi 7784 EXPR=$ac_cv_path_EXPR 7785 if test -n "$EXPR"; then 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7787 $as_echo "$EXPR" >&6; } 7788 else 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7790 $as_echo "no" >&6; } 7791 fi 7792 7793 7794 if test "x$EXPR" = x; then 7795 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7796 fi 7797 else 7798 # Otherwise we believe it is a complete path. Use it as it is. 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7800 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7802 $as_echo_n "checking for EXPR... " >&6; } 7803 if test ! -x "$tool_specified"; then 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7805 $as_echo "not found" >&6; } 7806 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7807 fi 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7809 $as_echo "$tool_specified" >&6; } 7810 fi 7811 fi 7812 fi 7813 7814 fi 7815 7816 7817 7818 if test "x$EXPR" = x; then 7819 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7820 fi 7821 7822 7823 7824 7825 7826 # Publish this variable in the help. 7827 7828 7829 if [ -z "${FILE+x}" ]; then 7830 # The variable is not set by user, try to locate tool using the code snippet 7831 for ac_prog in file 7832 do 7833 # Extract the first word of "$ac_prog", so it can be a program name with args. 7834 set dummy $ac_prog; ac_word=$2 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7836 $as_echo_n "checking for $ac_word... " >&6; } 7837 if ${ac_cv_path_FILE+:} false; then : 7838 $as_echo_n "(cached) " >&6 7839 else 7840 case $FILE in 7841 [\\/]* | ?:[\\/]*) 7842 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7843 ;; 7844 *) 7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7846 for as_dir in $PATH 7847 do 7848 IFS=$as_save_IFS 7849 test -z "$as_dir" && as_dir=. 7850 for ac_exec_ext in '' $ac_executable_extensions; do 7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7852 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7854 break 2 7855 fi 7856 done 7857 done 7858 IFS=$as_save_IFS 7859 7860 ;; 7861 esac 7862 fi 7863 FILE=$ac_cv_path_FILE 7864 if test -n "$FILE"; then 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7866 $as_echo "$FILE" >&6; } 7867 else 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7869 $as_echo "no" >&6; } 7870 fi 7871 7872 7873 test -n "$FILE" && break 7874 done 7875 7876 else 7877 # The variable is set, but is it from the command line or the environment? 7878 7879 # Try to remove the string !FILE! from our list. 7880 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7881 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7882 # If it failed, the variable was not from the command line. Ignore it, 7883 # but warn the user (except for BASH, which is always set by the calling BASH). 7884 if test "xFILE" != xBASH; then 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7886 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7887 fi 7888 # Try to locate tool using the code snippet 7889 for ac_prog in file 7890 do 7891 # Extract the first word of "$ac_prog", so it can be a program name with args. 7892 set dummy $ac_prog; ac_word=$2 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7894 $as_echo_n "checking for $ac_word... " >&6; } 7895 if ${ac_cv_path_FILE+:} false; then : 7896 $as_echo_n "(cached) " >&6 7897 else 7898 case $FILE in 7899 [\\/]* | ?:[\\/]*) 7900 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7901 ;; 7902 *) 7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7904 for as_dir in $PATH 7905 do 7906 IFS=$as_save_IFS 7907 test -z "$as_dir" && as_dir=. 7908 for ac_exec_ext in '' $ac_executable_extensions; do 7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7910 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7912 break 2 7913 fi 7914 done 7915 done 7916 IFS=$as_save_IFS 7917 7918 ;; 7919 esac 7920 fi 7921 FILE=$ac_cv_path_FILE 7922 if test -n "$FILE"; then 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7924 $as_echo "$FILE" >&6; } 7925 else 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7927 $as_echo "no" >&6; } 7928 fi 7929 7930 7931 test -n "$FILE" && break 7932 done 7933 7934 else 7935 # If it succeeded, then it was overridden by the user. We will use it 7936 # for the tool. 7937 7938 # First remove it from the list of overridden variables, so we can test 7939 # for unknown variables in the end. 7940 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7941 7942 # Check if we try to supply an empty value 7943 if test "x$FILE" = x; then 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7945 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7947 $as_echo_n "checking for FILE... " >&6; } 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7949 $as_echo "disabled" >&6; } 7950 else 7951 # Check if the provided tool contains a complete path. 7952 tool_specified="$FILE" 7953 tool_basename="${tool_specified##*/}" 7954 if test "x$tool_basename" = "x$tool_specified"; then 7955 # A command without a complete path is provided, search $PATH. 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7957 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7958 # Extract the first word of "$tool_basename", so it can be a program name with args. 7959 set dummy $tool_basename; ac_word=$2 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7961 $as_echo_n "checking for $ac_word... " >&6; } 7962 if ${ac_cv_path_FILE+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964 else 7965 case $FILE in 7966 [\\/]* | ?:[\\/]*) 7967 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7968 ;; 7969 *) 7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7971 for as_dir in $PATH 7972 do 7973 IFS=$as_save_IFS 7974 test -z "$as_dir" && as_dir=. 7975 for ac_exec_ext in '' $ac_executable_extensions; do 7976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7977 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7979 break 2 7980 fi 7981 done 7982 done 7983 IFS=$as_save_IFS 7984 7985 ;; 7986 esac 7987 fi 7988 FILE=$ac_cv_path_FILE 7989 if test -n "$FILE"; then 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7991 $as_echo "$FILE" >&6; } 7992 else 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7994 $as_echo "no" >&6; } 7995 fi 7996 7997 7998 if test "x$FILE" = x; then 7999 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8000 fi 8001 else 8002 # Otherwise we believe it is a complete path. Use it as it is. 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 8004 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8006 $as_echo_n "checking for FILE... " >&6; } 8007 if test ! -x "$tool_specified"; then 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8009 $as_echo "not found" >&6; } 8010 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8011 fi 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8013 $as_echo "$tool_specified" >&6; } 8014 fi 8015 fi 8016 fi 8017 8018 fi 8019 8020 8021 8022 if test "x$FILE" = x; then 8023 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8024 fi 8025 8026 8027 8028 8029 8030 # Publish this variable in the help. 8031 8032 8033 if [ -z "${FIND+x}" ]; then 8034 # The variable is not set by user, try to locate tool using the code snippet 8035 for ac_prog in find 8036 do 8037 # Extract the first word of "$ac_prog", so it can be a program name with args. 8038 set dummy $ac_prog; ac_word=$2 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8040 $as_echo_n "checking for $ac_word... " >&6; } 8041 if ${ac_cv_path_FIND+:} false; then : 8042 $as_echo_n "(cached) " >&6 8043 else 8044 case $FIND in 8045 [\\/]* | ?:[\\/]*) 8046 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8047 ;; 8048 *) 8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8050 for as_dir in $PATH 8051 do 8052 IFS=$as_save_IFS 8053 test -z "$as_dir" && as_dir=. 8054 for ac_exec_ext in '' $ac_executable_extensions; do 8055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8056 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8058 break 2 8059 fi 8060 done 8061 done 8062 IFS=$as_save_IFS 8063 8064 ;; 8065 esac 8066 fi 8067 FIND=$ac_cv_path_FIND 8068 if test -n "$FIND"; then 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8070 $as_echo "$FIND" >&6; } 8071 else 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8073 $as_echo "no" >&6; } 8074 fi 8075 8076 8077 test -n "$FIND" && break 8078 done 8079 8080 else 8081 # The variable is set, but is it from the command line or the environment? 8082 8083 # Try to remove the string !FIND! from our list. 8084 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8085 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8086 # If it failed, the variable was not from the command line. Ignore it, 8087 # but warn the user (except for BASH, which is always set by the calling BASH). 8088 if test "xFIND" != xBASH; then 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8090 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8091 fi 8092 # Try to locate tool using the code snippet 8093 for ac_prog in find 8094 do 8095 # Extract the first word of "$ac_prog", so it can be a program name with args. 8096 set dummy $ac_prog; ac_word=$2 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8098 $as_echo_n "checking for $ac_word... " >&6; } 8099 if ${ac_cv_path_FIND+:} false; then : 8100 $as_echo_n "(cached) " >&6 8101 else 8102 case $FIND in 8103 [\\/]* | ?:[\\/]*) 8104 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8105 ;; 8106 *) 8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8108 for as_dir in $PATH 8109 do 8110 IFS=$as_save_IFS 8111 test -z "$as_dir" && as_dir=. 8112 for ac_exec_ext in '' $ac_executable_extensions; do 8113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8114 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8116 break 2 8117 fi 8118 done 8119 done 8120 IFS=$as_save_IFS 8121 8122 ;; 8123 esac 8124 fi 8125 FIND=$ac_cv_path_FIND 8126 if test -n "$FIND"; then 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8128 $as_echo "$FIND" >&6; } 8129 else 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8131 $as_echo "no" >&6; } 8132 fi 8133 8134 8135 test -n "$FIND" && break 8136 done 8137 8138 else 8139 # If it succeeded, then it was overridden by the user. We will use it 8140 # for the tool. 8141 8142 # First remove it from the list of overridden variables, so we can test 8143 # for unknown variables in the end. 8144 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8145 8146 # Check if we try to supply an empty value 8147 if test "x$FIND" = x; then 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8149 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8151 $as_echo_n "checking for FIND... " >&6; } 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8153 $as_echo "disabled" >&6; } 8154 else 8155 # Check if the provided tool contains a complete path. 8156 tool_specified="$FIND" 8157 tool_basename="${tool_specified##*/}" 8158 if test "x$tool_basename" = "x$tool_specified"; then 8159 # A command without a complete path is provided, search $PATH. 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8161 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8162 # Extract the first word of "$tool_basename", so it can be a program name with args. 8163 set dummy $tool_basename; ac_word=$2 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8165 $as_echo_n "checking for $ac_word... " >&6; } 8166 if ${ac_cv_path_FIND+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168 else 8169 case $FIND in 8170 [\\/]* | ?:[\\/]*) 8171 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8172 ;; 8173 *) 8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8175 for as_dir in $PATH 8176 do 8177 IFS=$as_save_IFS 8178 test -z "$as_dir" && as_dir=. 8179 for ac_exec_ext in '' $ac_executable_extensions; do 8180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8181 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8183 break 2 8184 fi 8185 done 8186 done 8187 IFS=$as_save_IFS 8188 8189 ;; 8190 esac 8191 fi 8192 FIND=$ac_cv_path_FIND 8193 if test -n "$FIND"; then 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8195 $as_echo "$FIND" >&6; } 8196 else 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8198 $as_echo "no" >&6; } 8199 fi 8200 8201 8202 if test "x$FIND" = x; then 8203 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8204 fi 8205 else 8206 # Otherwise we believe it is a complete path. Use it as it is. 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8208 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8210 $as_echo_n "checking for FIND... " >&6; } 8211 if test ! -x "$tool_specified"; then 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8213 $as_echo "not found" >&6; } 8214 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8215 fi 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8217 $as_echo "$tool_specified" >&6; } 8218 fi 8219 fi 8220 fi 8221 8222 fi 8223 8224 8225 8226 if test "x$FIND" = x; then 8227 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8228 fi 8229 8230 8231 8232 8233 8234 # Publish this variable in the help. 8235 8236 8237 if [ -z "${HEAD+x}" ]; then 8238 # The variable is not set by user, try to locate tool using the code snippet 8239 for ac_prog in head 8240 do 8241 # Extract the first word of "$ac_prog", so it can be a program name with args. 8242 set dummy $ac_prog; ac_word=$2 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8244 $as_echo_n "checking for $ac_word... " >&6; } 8245 if ${ac_cv_path_HEAD+:} false; then : 8246 $as_echo_n "(cached) " >&6 8247 else 8248 case $HEAD in 8249 [\\/]* | ?:[\\/]*) 8250 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8251 ;; 8252 *) 8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8254 for as_dir in $PATH 8255 do 8256 IFS=$as_save_IFS 8257 test -z "$as_dir" && as_dir=. 8258 for ac_exec_ext in '' $ac_executable_extensions; do 8259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8260 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8262 break 2 8263 fi 8264 done 8265 done 8266 IFS=$as_save_IFS 8267 8268 ;; 8269 esac 8270 fi 8271 HEAD=$ac_cv_path_HEAD 8272 if test -n "$HEAD"; then 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8274 $as_echo "$HEAD" >&6; } 8275 else 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8277 $as_echo "no" >&6; } 8278 fi 8279 8280 8281 test -n "$HEAD" && break 8282 done 8283 8284 else 8285 # The variable is set, but is it from the command line or the environment? 8286 8287 # Try to remove the string !HEAD! from our list. 8288 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8289 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8290 # If it failed, the variable was not from the command line. Ignore it, 8291 # but warn the user (except for BASH, which is always set by the calling BASH). 8292 if test "xHEAD" != xBASH; then 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8294 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8295 fi 8296 # Try to locate tool using the code snippet 8297 for ac_prog in head 8298 do 8299 # Extract the first word of "$ac_prog", so it can be a program name with args. 8300 set dummy $ac_prog; ac_word=$2 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8302 $as_echo_n "checking for $ac_word... " >&6; } 8303 if ${ac_cv_path_HEAD+:} false; then : 8304 $as_echo_n "(cached) " >&6 8305 else 8306 case $HEAD in 8307 [\\/]* | ?:[\\/]*) 8308 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8309 ;; 8310 *) 8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8312 for as_dir in $PATH 8313 do 8314 IFS=$as_save_IFS 8315 test -z "$as_dir" && as_dir=. 8316 for ac_exec_ext in '' $ac_executable_extensions; do 8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8318 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8320 break 2 8321 fi 8322 done 8323 done 8324 IFS=$as_save_IFS 8325 8326 ;; 8327 esac 8328 fi 8329 HEAD=$ac_cv_path_HEAD 8330 if test -n "$HEAD"; then 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8332 $as_echo "$HEAD" >&6; } 8333 else 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8335 $as_echo "no" >&6; } 8336 fi 8337 8338 8339 test -n "$HEAD" && break 8340 done 8341 8342 else 8343 # If it succeeded, then it was overridden by the user. We will use it 8344 # for the tool. 8345 8346 # First remove it from the list of overridden variables, so we can test 8347 # for unknown variables in the end. 8348 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8349 8350 # Check if we try to supply an empty value 8351 if test "x$HEAD" = x; then 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8353 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8355 $as_echo_n "checking for HEAD... " >&6; } 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8357 $as_echo "disabled" >&6; } 8358 else 8359 # Check if the provided tool contains a complete path. 8360 tool_specified="$HEAD" 8361 tool_basename="${tool_specified##*/}" 8362 if test "x$tool_basename" = "x$tool_specified"; then 8363 # A command without a complete path is provided, search $PATH. 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8365 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8366 # Extract the first word of "$tool_basename", so it can be a program name with args. 8367 set dummy $tool_basename; ac_word=$2 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8369 $as_echo_n "checking for $ac_word... " >&6; } 8370 if ${ac_cv_path_HEAD+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372 else 8373 case $HEAD in 8374 [\\/]* | ?:[\\/]*) 8375 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8376 ;; 8377 *) 8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8379 for as_dir in $PATH 8380 do 8381 IFS=$as_save_IFS 8382 test -z "$as_dir" && as_dir=. 8383 for ac_exec_ext in '' $ac_executable_extensions; do 8384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8385 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8387 break 2 8388 fi 8389 done 8390 done 8391 IFS=$as_save_IFS 8392 8393 ;; 8394 esac 8395 fi 8396 HEAD=$ac_cv_path_HEAD 8397 if test -n "$HEAD"; then 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8399 $as_echo "$HEAD" >&6; } 8400 else 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8402 $as_echo "no" >&6; } 8403 fi 8404 8405 8406 if test "x$HEAD" = x; then 8407 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8408 fi 8409 else 8410 # Otherwise we believe it is a complete path. Use it as it is. 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8412 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8414 $as_echo_n "checking for HEAD... " >&6; } 8415 if test ! -x "$tool_specified"; then 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8417 $as_echo "not found" >&6; } 8418 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8419 fi 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8421 $as_echo "$tool_specified" >&6; } 8422 fi 8423 fi 8424 fi 8425 8426 fi 8427 8428 8429 8430 if test "x$HEAD" = x; then 8431 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8432 fi 8433 8434 8435 8436 8437 8438 # Publish this variable in the help. 8439 8440 8441 if [ -z "${GUNZIP+x}" ]; then 8442 # The variable is not set by user, try to locate tool using the code snippet 8443 for ac_prog in gunzip 8444 do 8445 # Extract the first word of "$ac_prog", so it can be a program name with args. 8446 set dummy $ac_prog; ac_word=$2 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8448 $as_echo_n "checking for $ac_word... " >&6; } 8449 if ${ac_cv_path_GUNZIP+:} false; then : 8450 $as_echo_n "(cached) " >&6 8451 else 8452 case $GUNZIP in 8453 [\\/]* | ?:[\\/]*) 8454 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8455 ;; 8456 *) 8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8458 for as_dir in $PATH 8459 do 8460 IFS=$as_save_IFS 8461 test -z "$as_dir" && as_dir=. 8462 for ac_exec_ext in '' $ac_executable_extensions; do 8463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8464 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8466 break 2 8467 fi 8468 done 8469 done 8470 IFS=$as_save_IFS 8471 8472 ;; 8473 esac 8474 fi 8475 GUNZIP=$ac_cv_path_GUNZIP 8476 if test -n "$GUNZIP"; then 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8478 $as_echo "$GUNZIP" >&6; } 8479 else 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8481 $as_echo "no" >&6; } 8482 fi 8483 8484 8485 test -n "$GUNZIP" && break 8486 done 8487 8488 else 8489 # The variable is set, but is it from the command line or the environment? 8490 8491 # Try to remove the string !GUNZIP! from our list. 8492 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8493 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8494 # If it failed, the variable was not from the command line. Ignore it, 8495 # but warn the user (except for BASH, which is always set by the calling BASH). 8496 if test "xGUNZIP" != xBASH; then 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8498 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8499 fi 8500 # Try to locate tool using the code snippet 8501 for ac_prog in gunzip 8502 do 8503 # Extract the first word of "$ac_prog", so it can be a program name with args. 8504 set dummy $ac_prog; ac_word=$2 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8506 $as_echo_n "checking for $ac_word... " >&6; } 8507 if ${ac_cv_path_GUNZIP+:} false; then : 8508 $as_echo_n "(cached) " >&6 8509 else 8510 case $GUNZIP in 8511 [\\/]* | ?:[\\/]*) 8512 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8513 ;; 8514 *) 8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8516 for as_dir in $PATH 8517 do 8518 IFS=$as_save_IFS 8519 test -z "$as_dir" && as_dir=. 8520 for ac_exec_ext in '' $ac_executable_extensions; do 8521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8522 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8524 break 2 8525 fi 8526 done 8527 done 8528 IFS=$as_save_IFS 8529 8530 ;; 8531 esac 8532 fi 8533 GUNZIP=$ac_cv_path_GUNZIP 8534 if test -n "$GUNZIP"; then 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8536 $as_echo "$GUNZIP" >&6; } 8537 else 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8539 $as_echo "no" >&6; } 8540 fi 8541 8542 8543 test -n "$GUNZIP" && break 8544 done 8545 8546 else 8547 # If it succeeded, then it was overridden by the user. We will use it 8548 # for the tool. 8549 8550 # First remove it from the list of overridden variables, so we can test 8551 # for unknown variables in the end. 8552 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8553 8554 # Check if we try to supply an empty value 8555 if test "x$GUNZIP" = x; then 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8557 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8559 $as_echo_n "checking for GUNZIP... " >&6; } 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8561 $as_echo "disabled" >&6; } 8562 else 8563 # Check if the provided tool contains a complete path. 8564 tool_specified="$GUNZIP" 8565 tool_basename="${tool_specified##*/}" 8566 if test "x$tool_basename" = "x$tool_specified"; then 8567 # A command without a complete path is provided, search $PATH. 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8569 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8570 # Extract the first word of "$tool_basename", so it can be a program name with args. 8571 set dummy $tool_basename; ac_word=$2 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8573 $as_echo_n "checking for $ac_word... " >&6; } 8574 if ${ac_cv_path_GUNZIP+:} false; then : 8575 $as_echo_n "(cached) " >&6 8576 else 8577 case $GUNZIP in 8578 [\\/]* | ?:[\\/]*) 8579 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8580 ;; 8581 *) 8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8583 for as_dir in $PATH 8584 do 8585 IFS=$as_save_IFS 8586 test -z "$as_dir" && as_dir=. 8587 for ac_exec_ext in '' $ac_executable_extensions; do 8588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8589 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8591 break 2 8592 fi 8593 done 8594 done 8595 IFS=$as_save_IFS 8596 8597 ;; 8598 esac 8599 fi 8600 GUNZIP=$ac_cv_path_GUNZIP 8601 if test -n "$GUNZIP"; then 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8603 $as_echo "$GUNZIP" >&6; } 8604 else 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8606 $as_echo "no" >&6; } 8607 fi 8608 8609 8610 if test "x$GUNZIP" = x; then 8611 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8612 fi 8613 else 8614 # Otherwise we believe it is a complete path. Use it as it is. 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8616 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8618 $as_echo_n "checking for GUNZIP... " >&6; } 8619 if test ! -x "$tool_specified"; then 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8621 $as_echo "not found" >&6; } 8622 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8623 fi 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8625 $as_echo "$tool_specified" >&6; } 8626 fi 8627 fi 8628 fi 8629 8630 fi 8631 8632 8633 8634 if test "x$GUNZIP" = x; then 8635 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8636 fi 8637 8638 8639 8640 8641 8642 # Publish this variable in the help. 8643 8644 8645 if [ -z "${GZIP+x}" ]; then 8646 # The variable is not set by user, try to locate tool using the code snippet 8647 for ac_prog in pigz gzip 8648 do 8649 # Extract the first word of "$ac_prog", so it can be a program name with args. 8650 set dummy $ac_prog; ac_word=$2 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8652 $as_echo_n "checking for $ac_word... " >&6; } 8653 if ${ac_cv_path_GZIP+:} false; then : 8654 $as_echo_n "(cached) " >&6 8655 else 8656 case $GZIP in 8657 [\\/]* | ?:[\\/]*) 8658 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8659 ;; 8660 *) 8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8662 for as_dir in $PATH 8663 do 8664 IFS=$as_save_IFS 8665 test -z "$as_dir" && as_dir=. 8666 for ac_exec_ext in '' $ac_executable_extensions; do 8667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8668 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8670 break 2 8671 fi 8672 done 8673 done 8674 IFS=$as_save_IFS 8675 8676 ;; 8677 esac 8678 fi 8679 GZIP=$ac_cv_path_GZIP 8680 if test -n "$GZIP"; then 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8682 $as_echo "$GZIP" >&6; } 8683 else 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8685 $as_echo "no" >&6; } 8686 fi 8687 8688 8689 test -n "$GZIP" && break 8690 done 8691 8692 else 8693 # The variable is set, but is it from the command line or the environment? 8694 8695 # Try to remove the string !GZIP! from our list. 8696 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8697 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8698 # If it failed, the variable was not from the command line. Ignore it, 8699 # but warn the user (except for BASH, which is always set by the calling BASH). 8700 if test "xGZIP" != xBASH; then 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8702 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8703 fi 8704 # Try to locate tool using the code snippet 8705 for ac_prog in pigz gzip 8706 do 8707 # Extract the first word of "$ac_prog", so it can be a program name with args. 8708 set dummy $ac_prog; ac_word=$2 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8710 $as_echo_n "checking for $ac_word... " >&6; } 8711 if ${ac_cv_path_GZIP+:} false; then : 8712 $as_echo_n "(cached) " >&6 8713 else 8714 case $GZIP in 8715 [\\/]* | ?:[\\/]*) 8716 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8717 ;; 8718 *) 8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8720 for as_dir in $PATH 8721 do 8722 IFS=$as_save_IFS 8723 test -z "$as_dir" && as_dir=. 8724 for ac_exec_ext in '' $ac_executable_extensions; do 8725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8726 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8728 break 2 8729 fi 8730 done 8731 done 8732 IFS=$as_save_IFS 8733 8734 ;; 8735 esac 8736 fi 8737 GZIP=$ac_cv_path_GZIP 8738 if test -n "$GZIP"; then 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8740 $as_echo "$GZIP" >&6; } 8741 else 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8743 $as_echo "no" >&6; } 8744 fi 8745 8746 8747 test -n "$GZIP" && break 8748 done 8749 8750 else 8751 # If it succeeded, then it was overridden by the user. We will use it 8752 # for the tool. 8753 8754 # First remove it from the list of overridden variables, so we can test 8755 # for unknown variables in the end. 8756 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8757 8758 # Check if we try to supply an empty value 8759 if test "x$GZIP" = x; then 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8761 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8763 $as_echo_n "checking for GZIP... " >&6; } 8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8765 $as_echo "disabled" >&6; } 8766 else 8767 # Check if the provided tool contains a complete path. 8768 tool_specified="$GZIP" 8769 tool_basename="${tool_specified##*/}" 8770 if test "x$tool_basename" = "x$tool_specified"; then 8771 # A command without a complete path is provided, search $PATH. 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8773 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8774 # Extract the first word of "$tool_basename", so it can be a program name with args. 8775 set dummy $tool_basename; ac_word=$2 8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8777 $as_echo_n "checking for $ac_word... " >&6; } 8778 if ${ac_cv_path_GZIP+:} false; then : 8779 $as_echo_n "(cached) " >&6 8780 else 8781 case $GZIP in 8782 [\\/]* | ?:[\\/]*) 8783 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8784 ;; 8785 *) 8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8787 for as_dir in $PATH 8788 do 8789 IFS=$as_save_IFS 8790 test -z "$as_dir" && as_dir=. 8791 for ac_exec_ext in '' $ac_executable_extensions; do 8792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8793 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8795 break 2 8796 fi 8797 done 8798 done 8799 IFS=$as_save_IFS 8800 8801 ;; 8802 esac 8803 fi 8804 GZIP=$ac_cv_path_GZIP 8805 if test -n "$GZIP"; then 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8807 $as_echo "$GZIP" >&6; } 8808 else 8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8810 $as_echo "no" >&6; } 8811 fi 8812 8813 8814 if test "x$GZIP" = x; then 8815 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8816 fi 8817 else 8818 # Otherwise we believe it is a complete path. Use it as it is. 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8820 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8822 $as_echo_n "checking for GZIP... " >&6; } 8823 if test ! -x "$tool_specified"; then 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8825 $as_echo "not found" >&6; } 8826 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8827 fi 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8829 $as_echo "$tool_specified" >&6; } 8830 fi 8831 fi 8832 fi 8833 8834 fi 8835 8836 8837 8838 if test "x$GZIP" = x; then 8839 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8840 fi 8841 8842 8843 8844 8845 8846 # Publish this variable in the help. 8847 8848 8849 if [ -z "${LN+x}" ]; then 8850 # The variable is not set by user, try to locate tool using the code snippet 8851 for ac_prog in ln 8852 do 8853 # Extract the first word of "$ac_prog", so it can be a program name with args. 8854 set dummy $ac_prog; ac_word=$2 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8856 $as_echo_n "checking for $ac_word... " >&6; } 8857 if ${ac_cv_path_LN+:} false; then : 8858 $as_echo_n "(cached) " >&6 8859 else 8860 case $LN in 8861 [\\/]* | ?:[\\/]*) 8862 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8863 ;; 8864 *) 8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8866 for as_dir in $PATH 8867 do 8868 IFS=$as_save_IFS 8869 test -z "$as_dir" && as_dir=. 8870 for ac_exec_ext in '' $ac_executable_extensions; do 8871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8872 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8874 break 2 8875 fi 8876 done 8877 done 8878 IFS=$as_save_IFS 8879 8880 ;; 8881 esac 8882 fi 8883 LN=$ac_cv_path_LN 8884 if test -n "$LN"; then 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8886 $as_echo "$LN" >&6; } 8887 else 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8889 $as_echo "no" >&6; } 8890 fi 8891 8892 8893 test -n "$LN" && break 8894 done 8895 8896 else 8897 # The variable is set, but is it from the command line or the environment? 8898 8899 # Try to remove the string !LN! from our list. 8900 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8901 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8902 # If it failed, the variable was not from the command line. Ignore it, 8903 # but warn the user (except for BASH, which is always set by the calling BASH). 8904 if test "xLN" != xBASH; then 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8906 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8907 fi 8908 # Try to locate tool using the code snippet 8909 for ac_prog in ln 8910 do 8911 # Extract the first word of "$ac_prog", so it can be a program name with args. 8912 set dummy $ac_prog; ac_word=$2 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8914 $as_echo_n "checking for $ac_word... " >&6; } 8915 if ${ac_cv_path_LN+:} false; then : 8916 $as_echo_n "(cached) " >&6 8917 else 8918 case $LN in 8919 [\\/]* | ?:[\\/]*) 8920 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8921 ;; 8922 *) 8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8924 for as_dir in $PATH 8925 do 8926 IFS=$as_save_IFS 8927 test -z "$as_dir" && as_dir=. 8928 for ac_exec_ext in '' $ac_executable_extensions; do 8929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8930 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8932 break 2 8933 fi 8934 done 8935 done 8936 IFS=$as_save_IFS 8937 8938 ;; 8939 esac 8940 fi 8941 LN=$ac_cv_path_LN 8942 if test -n "$LN"; then 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8944 $as_echo "$LN" >&6; } 8945 else 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8947 $as_echo "no" >&6; } 8948 fi 8949 8950 8951 test -n "$LN" && break 8952 done 8953 8954 else 8955 # If it succeeded, then it was overridden by the user. We will use it 8956 # for the tool. 8957 8958 # First remove it from the list of overridden variables, so we can test 8959 # for unknown variables in the end. 8960 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8961 8962 # Check if we try to supply an empty value 8963 if test "x$LN" = x; then 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 8965 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8967 $as_echo_n "checking for LN... " >&6; } 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8969 $as_echo "disabled" >&6; } 8970 else 8971 # Check if the provided tool contains a complete path. 8972 tool_specified="$LN" 8973 tool_basename="${tool_specified##*/}" 8974 if test "x$tool_basename" = "x$tool_specified"; then 8975 # A command without a complete path is provided, search $PATH. 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 8977 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 8978 # Extract the first word of "$tool_basename", so it can be a program name with args. 8979 set dummy $tool_basename; ac_word=$2 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8981 $as_echo_n "checking for $ac_word... " >&6; } 8982 if ${ac_cv_path_LN+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984 else 8985 case $LN in 8986 [\\/]* | ?:[\\/]*) 8987 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8988 ;; 8989 *) 8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8991 for as_dir in $PATH 8992 do 8993 IFS=$as_save_IFS 8994 test -z "$as_dir" && as_dir=. 8995 for ac_exec_ext in '' $ac_executable_extensions; do 8996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8997 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8999 break 2 9000 fi 9001 done 9002 done 9003 IFS=$as_save_IFS 9004 9005 ;; 9006 esac 9007 fi 9008 LN=$ac_cv_path_LN 9009 if test -n "$LN"; then 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9011 $as_echo "$LN" >&6; } 9012 else 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9014 $as_echo "no" >&6; } 9015 fi 9016 9017 9018 if test "x$LN" = x; then 9019 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9020 fi 9021 else 9022 # Otherwise we believe it is a complete path. Use it as it is. 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9024 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9026 $as_echo_n "checking for LN... " >&6; } 9027 if test ! -x "$tool_specified"; then 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9029 $as_echo "not found" >&6; } 9030 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9031 fi 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9033 $as_echo "$tool_specified" >&6; } 9034 fi 9035 fi 9036 fi 9037 9038 fi 9039 9040 9041 9042 if test "x$LN" = x; then 9043 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9044 fi 9045 9046 9047 9048 9049 9050 # Publish this variable in the help. 9051 9052 9053 if [ -z "${LS+x}" ]; then 9054 # The variable is not set by user, try to locate tool using the code snippet 9055 for ac_prog in ls 9056 do 9057 # Extract the first word of "$ac_prog", so it can be a program name with args. 9058 set dummy $ac_prog; ac_word=$2 9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9060 $as_echo_n "checking for $ac_word... " >&6; } 9061 if ${ac_cv_path_LS+:} false; then : 9062 $as_echo_n "(cached) " >&6 9063 else 9064 case $LS in 9065 [\\/]* | ?:[\\/]*) 9066 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9067 ;; 9068 *) 9069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9070 for as_dir in $PATH 9071 do 9072 IFS=$as_save_IFS 9073 test -z "$as_dir" && as_dir=. 9074 for ac_exec_ext in '' $ac_executable_extensions; do 9075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9076 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9078 break 2 9079 fi 9080 done 9081 done 9082 IFS=$as_save_IFS 9083 9084 ;; 9085 esac 9086 fi 9087 LS=$ac_cv_path_LS 9088 if test -n "$LS"; then 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9090 $as_echo "$LS" >&6; } 9091 else 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9093 $as_echo "no" >&6; } 9094 fi 9095 9096 9097 test -n "$LS" && break 9098 done 9099 9100 else 9101 # The variable is set, but is it from the command line or the environment? 9102 9103 # Try to remove the string !LS! from our list. 9104 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9105 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9106 # If it failed, the variable was not from the command line. Ignore it, 9107 # but warn the user (except for BASH, which is always set by the calling BASH). 9108 if test "xLS" != xBASH; then 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9110 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9111 fi 9112 # Try to locate tool using the code snippet 9113 for ac_prog in ls 9114 do 9115 # Extract the first word of "$ac_prog", so it can be a program name with args. 9116 set dummy $ac_prog; ac_word=$2 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9118 $as_echo_n "checking for $ac_word... " >&6; } 9119 if ${ac_cv_path_LS+:} false; then : 9120 $as_echo_n "(cached) " >&6 9121 else 9122 case $LS in 9123 [\\/]* | ?:[\\/]*) 9124 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9125 ;; 9126 *) 9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9128 for as_dir in $PATH 9129 do 9130 IFS=$as_save_IFS 9131 test -z "$as_dir" && as_dir=. 9132 for ac_exec_ext in '' $ac_executable_extensions; do 9133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9134 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9136 break 2 9137 fi 9138 done 9139 done 9140 IFS=$as_save_IFS 9141 9142 ;; 9143 esac 9144 fi 9145 LS=$ac_cv_path_LS 9146 if test -n "$LS"; then 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9148 $as_echo "$LS" >&6; } 9149 else 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9151 $as_echo "no" >&6; } 9152 fi 9153 9154 9155 test -n "$LS" && break 9156 done 9157 9158 else 9159 # If it succeeded, then it was overridden by the user. We will use it 9160 # for the tool. 9161 9162 # First remove it from the list of overridden variables, so we can test 9163 # for unknown variables in the end. 9164 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9165 9166 # Check if we try to supply an empty value 9167 if test "x$LS" = x; then 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9169 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9171 $as_echo_n "checking for LS... " >&6; } 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9173 $as_echo "disabled" >&6; } 9174 else 9175 # Check if the provided tool contains a complete path. 9176 tool_specified="$LS" 9177 tool_basename="${tool_specified##*/}" 9178 if test "x$tool_basename" = "x$tool_specified"; then 9179 # A command without a complete path is provided, search $PATH. 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9181 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9182 # Extract the first word of "$tool_basename", so it can be a program name with args. 9183 set dummy $tool_basename; ac_word=$2 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9185 $as_echo_n "checking for $ac_word... " >&6; } 9186 if ${ac_cv_path_LS+:} false; then : 9187 $as_echo_n "(cached) " >&6 9188 else 9189 case $LS in 9190 [\\/]* | ?:[\\/]*) 9191 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9192 ;; 9193 *) 9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9195 for as_dir in $PATH 9196 do 9197 IFS=$as_save_IFS 9198 test -z "$as_dir" && as_dir=. 9199 for ac_exec_ext in '' $ac_executable_extensions; do 9200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9201 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9203 break 2 9204 fi 9205 done 9206 done 9207 IFS=$as_save_IFS 9208 9209 ;; 9210 esac 9211 fi 9212 LS=$ac_cv_path_LS 9213 if test -n "$LS"; then 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9215 $as_echo "$LS" >&6; } 9216 else 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9218 $as_echo "no" >&6; } 9219 fi 9220 9221 9222 if test "x$LS" = x; then 9223 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9224 fi 9225 else 9226 # Otherwise we believe it is a complete path. Use it as it is. 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9228 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9230 $as_echo_n "checking for LS... " >&6; } 9231 if test ! -x "$tool_specified"; then 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9233 $as_echo "not found" >&6; } 9234 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9235 fi 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9237 $as_echo "$tool_specified" >&6; } 9238 fi 9239 fi 9240 fi 9241 9242 fi 9243 9244 9245 9246 if test "x$LS" = x; then 9247 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9248 fi 9249 9250 9251 9252 9253 9254 # Publish this variable in the help. 9255 9256 9257 if [ -z "${MKDIR+x}" ]; then 9258 # The variable is not set by user, try to locate tool using the code snippet 9259 for ac_prog in mkdir 9260 do 9261 # Extract the first word of "$ac_prog", so it can be a program name with args. 9262 set dummy $ac_prog; ac_word=$2 9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9264 $as_echo_n "checking for $ac_word... " >&6; } 9265 if ${ac_cv_path_MKDIR+:} false; then : 9266 $as_echo_n "(cached) " >&6 9267 else 9268 case $MKDIR in 9269 [\\/]* | ?:[\\/]*) 9270 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9271 ;; 9272 *) 9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9274 for as_dir in $PATH 9275 do 9276 IFS=$as_save_IFS 9277 test -z "$as_dir" && as_dir=. 9278 for ac_exec_ext in '' $ac_executable_extensions; do 9279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9280 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9282 break 2 9283 fi 9284 done 9285 done 9286 IFS=$as_save_IFS 9287 9288 ;; 9289 esac 9290 fi 9291 MKDIR=$ac_cv_path_MKDIR 9292 if test -n "$MKDIR"; then 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9294 $as_echo "$MKDIR" >&6; } 9295 else 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9297 $as_echo "no" >&6; } 9298 fi 9299 9300 9301 test -n "$MKDIR" && break 9302 done 9303 9304 else 9305 # The variable is set, but is it from the command line or the environment? 9306 9307 # Try to remove the string !MKDIR! from our list. 9308 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9309 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9310 # If it failed, the variable was not from the command line. Ignore it, 9311 # but warn the user (except for BASH, which is always set by the calling BASH). 9312 if test "xMKDIR" != xBASH; then 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9314 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9315 fi 9316 # Try to locate tool using the code snippet 9317 for ac_prog in mkdir 9318 do 9319 # Extract the first word of "$ac_prog", so it can be a program name with args. 9320 set dummy $ac_prog; ac_word=$2 9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9322 $as_echo_n "checking for $ac_word... " >&6; } 9323 if ${ac_cv_path_MKDIR+:} false; then : 9324 $as_echo_n "(cached) " >&6 9325 else 9326 case $MKDIR in 9327 [\\/]* | ?:[\\/]*) 9328 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9329 ;; 9330 *) 9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9332 for as_dir in $PATH 9333 do 9334 IFS=$as_save_IFS 9335 test -z "$as_dir" && as_dir=. 9336 for ac_exec_ext in '' $ac_executable_extensions; do 9337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9338 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9340 break 2 9341 fi 9342 done 9343 done 9344 IFS=$as_save_IFS 9345 9346 ;; 9347 esac 9348 fi 9349 MKDIR=$ac_cv_path_MKDIR 9350 if test -n "$MKDIR"; then 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9352 $as_echo "$MKDIR" >&6; } 9353 else 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9355 $as_echo "no" >&6; } 9356 fi 9357 9358 9359 test -n "$MKDIR" && break 9360 done 9361 9362 else 9363 # If it succeeded, then it was overridden by the user. We will use it 9364 # for the tool. 9365 9366 # First remove it from the list of overridden variables, so we can test 9367 # for unknown variables in the end. 9368 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9369 9370 # Check if we try to supply an empty value 9371 if test "x$MKDIR" = x; then 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9373 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9375 $as_echo_n "checking for MKDIR... " >&6; } 9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9377 $as_echo "disabled" >&6; } 9378 else 9379 # Check if the provided tool contains a complete path. 9380 tool_specified="$MKDIR" 9381 tool_basename="${tool_specified##*/}" 9382 if test "x$tool_basename" = "x$tool_specified"; then 9383 # A command without a complete path is provided, search $PATH. 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9385 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9386 # Extract the first word of "$tool_basename", so it can be a program name with args. 9387 set dummy $tool_basename; ac_word=$2 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9389 $as_echo_n "checking for $ac_word... " >&6; } 9390 if ${ac_cv_path_MKDIR+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392 else 9393 case $MKDIR in 9394 [\\/]* | ?:[\\/]*) 9395 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9396 ;; 9397 *) 9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9399 for as_dir in $PATH 9400 do 9401 IFS=$as_save_IFS 9402 test -z "$as_dir" && as_dir=. 9403 for ac_exec_ext in '' $ac_executable_extensions; do 9404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9405 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9407 break 2 9408 fi 9409 done 9410 done 9411 IFS=$as_save_IFS 9412 9413 ;; 9414 esac 9415 fi 9416 MKDIR=$ac_cv_path_MKDIR 9417 if test -n "$MKDIR"; then 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9419 $as_echo "$MKDIR" >&6; } 9420 else 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9422 $as_echo "no" >&6; } 9423 fi 9424 9425 9426 if test "x$MKDIR" = x; then 9427 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9428 fi 9429 else 9430 # Otherwise we believe it is a complete path. Use it as it is. 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9432 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9434 $as_echo_n "checking for MKDIR... " >&6; } 9435 if test ! -x "$tool_specified"; then 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9437 $as_echo "not found" >&6; } 9438 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9439 fi 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9441 $as_echo "$tool_specified" >&6; } 9442 fi 9443 fi 9444 fi 9445 9446 fi 9447 9448 9449 9450 if test "x$MKDIR" = x; then 9451 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9452 fi 9453 9454 9455 9456 9457 9458 # Publish this variable in the help. 9459 9460 9461 if [ -z "${MKTEMP+x}" ]; then 9462 # The variable is not set by user, try to locate tool using the code snippet 9463 for ac_prog in mktemp 9464 do 9465 # Extract the first word of "$ac_prog", so it can be a program name with args. 9466 set dummy $ac_prog; ac_word=$2 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9468 $as_echo_n "checking for $ac_word... " >&6; } 9469 if ${ac_cv_path_MKTEMP+:} false; then : 9470 $as_echo_n "(cached) " >&6 9471 else 9472 case $MKTEMP in 9473 [\\/]* | ?:[\\/]*) 9474 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9475 ;; 9476 *) 9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9478 for as_dir in $PATH 9479 do 9480 IFS=$as_save_IFS 9481 test -z "$as_dir" && as_dir=. 9482 for ac_exec_ext in '' $ac_executable_extensions; do 9483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9484 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9486 break 2 9487 fi 9488 done 9489 done 9490 IFS=$as_save_IFS 9491 9492 ;; 9493 esac 9494 fi 9495 MKTEMP=$ac_cv_path_MKTEMP 9496 if test -n "$MKTEMP"; then 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9498 $as_echo "$MKTEMP" >&6; } 9499 else 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9501 $as_echo "no" >&6; } 9502 fi 9503 9504 9505 test -n "$MKTEMP" && break 9506 done 9507 9508 else 9509 # The variable is set, but is it from the command line or the environment? 9510 9511 # Try to remove the string !MKTEMP! from our list. 9512 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9513 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9514 # If it failed, the variable was not from the command line. Ignore it, 9515 # but warn the user (except for BASH, which is always set by the calling BASH). 9516 if test "xMKTEMP" != xBASH; then 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9518 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9519 fi 9520 # Try to locate tool using the code snippet 9521 for ac_prog in mktemp 9522 do 9523 # Extract the first word of "$ac_prog", so it can be a program name with args. 9524 set dummy $ac_prog; ac_word=$2 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9526 $as_echo_n "checking for $ac_word... " >&6; } 9527 if ${ac_cv_path_MKTEMP+:} false; then : 9528 $as_echo_n "(cached) " >&6 9529 else 9530 case $MKTEMP in 9531 [\\/]* | ?:[\\/]*) 9532 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9533 ;; 9534 *) 9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9536 for as_dir in $PATH 9537 do 9538 IFS=$as_save_IFS 9539 test -z "$as_dir" && as_dir=. 9540 for ac_exec_ext in '' $ac_executable_extensions; do 9541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9542 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9544 break 2 9545 fi 9546 done 9547 done 9548 IFS=$as_save_IFS 9549 9550 ;; 9551 esac 9552 fi 9553 MKTEMP=$ac_cv_path_MKTEMP 9554 if test -n "$MKTEMP"; then 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9556 $as_echo "$MKTEMP" >&6; } 9557 else 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9559 $as_echo "no" >&6; } 9560 fi 9561 9562 9563 test -n "$MKTEMP" && break 9564 done 9565 9566 else 9567 # If it succeeded, then it was overridden by the user. We will use it 9568 # for the tool. 9569 9570 # First remove it from the list of overridden variables, so we can test 9571 # for unknown variables in the end. 9572 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9573 9574 # Check if we try to supply an empty value 9575 if test "x$MKTEMP" = x; then 9576 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9577 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9579 $as_echo_n "checking for MKTEMP... " >&6; } 9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9581 $as_echo "disabled" >&6; } 9582 else 9583 # Check if the provided tool contains a complete path. 9584 tool_specified="$MKTEMP" 9585 tool_basename="${tool_specified##*/}" 9586 if test "x$tool_basename" = "x$tool_specified"; then 9587 # A command without a complete path is provided, search $PATH. 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9589 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9590 # Extract the first word of "$tool_basename", so it can be a program name with args. 9591 set dummy $tool_basename; ac_word=$2 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9593 $as_echo_n "checking for $ac_word... " >&6; } 9594 if ${ac_cv_path_MKTEMP+:} false; then : 9595 $as_echo_n "(cached) " >&6 9596 else 9597 case $MKTEMP in 9598 [\\/]* | ?:[\\/]*) 9599 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9600 ;; 9601 *) 9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9603 for as_dir in $PATH 9604 do 9605 IFS=$as_save_IFS 9606 test -z "$as_dir" && as_dir=. 9607 for ac_exec_ext in '' $ac_executable_extensions; do 9608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9609 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9611 break 2 9612 fi 9613 done 9614 done 9615 IFS=$as_save_IFS 9616 9617 ;; 9618 esac 9619 fi 9620 MKTEMP=$ac_cv_path_MKTEMP 9621 if test -n "$MKTEMP"; then 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9623 $as_echo "$MKTEMP" >&6; } 9624 else 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9626 $as_echo "no" >&6; } 9627 fi 9628 9629 9630 if test "x$MKTEMP" = x; then 9631 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9632 fi 9633 else 9634 # Otherwise we believe it is a complete path. Use it as it is. 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9636 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9638 $as_echo_n "checking for MKTEMP... " >&6; } 9639 if test ! -x "$tool_specified"; then 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9641 $as_echo "not found" >&6; } 9642 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9643 fi 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9645 $as_echo "$tool_specified" >&6; } 9646 fi 9647 fi 9648 fi 9649 9650 fi 9651 9652 9653 9654 if test "x$MKTEMP" = x; then 9655 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9656 fi 9657 9658 9659 9660 9661 9662 # Publish this variable in the help. 9663 9664 9665 if [ -z "${MV+x}" ]; then 9666 # The variable is not set by user, try to locate tool using the code snippet 9667 for ac_prog in mv 9668 do 9669 # Extract the first word of "$ac_prog", so it can be a program name with args. 9670 set dummy $ac_prog; ac_word=$2 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9672 $as_echo_n "checking for $ac_word... " >&6; } 9673 if ${ac_cv_path_MV+:} false; then : 9674 $as_echo_n "(cached) " >&6 9675 else 9676 case $MV in 9677 [\\/]* | ?:[\\/]*) 9678 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9679 ;; 9680 *) 9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9682 for as_dir in $PATH 9683 do 9684 IFS=$as_save_IFS 9685 test -z "$as_dir" && as_dir=. 9686 for ac_exec_ext in '' $ac_executable_extensions; do 9687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9688 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9690 break 2 9691 fi 9692 done 9693 done 9694 IFS=$as_save_IFS 9695 9696 ;; 9697 esac 9698 fi 9699 MV=$ac_cv_path_MV 9700 if test -n "$MV"; then 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9702 $as_echo "$MV" >&6; } 9703 else 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9705 $as_echo "no" >&6; } 9706 fi 9707 9708 9709 test -n "$MV" && break 9710 done 9711 9712 else 9713 # The variable is set, but is it from the command line or the environment? 9714 9715 # Try to remove the string !MV! from our list. 9716 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9717 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9718 # If it failed, the variable was not from the command line. Ignore it, 9719 # but warn the user (except for BASH, which is always set by the calling BASH). 9720 if test "xMV" != xBASH; then 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9722 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9723 fi 9724 # Try to locate tool using the code snippet 9725 for ac_prog in mv 9726 do 9727 # Extract the first word of "$ac_prog", so it can be a program name with args. 9728 set dummy $ac_prog; ac_word=$2 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9730 $as_echo_n "checking for $ac_word... " >&6; } 9731 if ${ac_cv_path_MV+:} false; then : 9732 $as_echo_n "(cached) " >&6 9733 else 9734 case $MV in 9735 [\\/]* | ?:[\\/]*) 9736 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9737 ;; 9738 *) 9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9740 for as_dir in $PATH 9741 do 9742 IFS=$as_save_IFS 9743 test -z "$as_dir" && as_dir=. 9744 for ac_exec_ext in '' $ac_executable_extensions; do 9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9746 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9748 break 2 9749 fi 9750 done 9751 done 9752 IFS=$as_save_IFS 9753 9754 ;; 9755 esac 9756 fi 9757 MV=$ac_cv_path_MV 9758 if test -n "$MV"; then 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9760 $as_echo "$MV" >&6; } 9761 else 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9763 $as_echo "no" >&6; } 9764 fi 9765 9766 9767 test -n "$MV" && break 9768 done 9769 9770 else 9771 # If it succeeded, then it was overridden by the user. We will use it 9772 # for the tool. 9773 9774 # First remove it from the list of overridden variables, so we can test 9775 # for unknown variables in the end. 9776 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9777 9778 # Check if we try to supply an empty value 9779 if test "x$MV" = x; then 9780 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9781 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9783 $as_echo_n "checking for MV... " >&6; } 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9785 $as_echo "disabled" >&6; } 9786 else 9787 # Check if the provided tool contains a complete path. 9788 tool_specified="$MV" 9789 tool_basename="${tool_specified##*/}" 9790 if test "x$tool_basename" = "x$tool_specified"; then 9791 # A command without a complete path is provided, search $PATH. 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9793 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9794 # Extract the first word of "$tool_basename", so it can be a program name with args. 9795 set dummy $tool_basename; ac_word=$2 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9797 $as_echo_n "checking for $ac_word... " >&6; } 9798 if ${ac_cv_path_MV+:} false; then : 9799 $as_echo_n "(cached) " >&6 9800 else 9801 case $MV in 9802 [\\/]* | ?:[\\/]*) 9803 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9804 ;; 9805 *) 9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9807 for as_dir in $PATH 9808 do 9809 IFS=$as_save_IFS 9810 test -z "$as_dir" && as_dir=. 9811 for ac_exec_ext in '' $ac_executable_extensions; do 9812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9813 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9815 break 2 9816 fi 9817 done 9818 done 9819 IFS=$as_save_IFS 9820 9821 ;; 9822 esac 9823 fi 9824 MV=$ac_cv_path_MV 9825 if test -n "$MV"; then 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9827 $as_echo "$MV" >&6; } 9828 else 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9830 $as_echo "no" >&6; } 9831 fi 9832 9833 9834 if test "x$MV" = x; then 9835 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9836 fi 9837 else 9838 # Otherwise we believe it is a complete path. Use it as it is. 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9840 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9842 $as_echo_n "checking for MV... " >&6; } 9843 if test ! -x "$tool_specified"; then 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9845 $as_echo "not found" >&6; } 9846 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9847 fi 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9849 $as_echo "$tool_specified" >&6; } 9850 fi 9851 fi 9852 fi 9853 9854 fi 9855 9856 9857 9858 if test "x$MV" = x; then 9859 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9860 fi 9861 9862 9863 9864 9865 9866 # Publish this variable in the help. 9867 9868 9869 if [ -z "${NAWK+x}" ]; then 9870 # The variable is not set by user, try to locate tool using the code snippet 9871 for ac_prog in nawk gawk awk 9872 do 9873 # Extract the first word of "$ac_prog", so it can be a program name with args. 9874 set dummy $ac_prog; ac_word=$2 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9876 $as_echo_n "checking for $ac_word... " >&6; } 9877 if ${ac_cv_path_NAWK+:} false; then : 9878 $as_echo_n "(cached) " >&6 9879 else 9880 case $NAWK in 9881 [\\/]* | ?:[\\/]*) 9882 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9883 ;; 9884 *) 9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9886 for as_dir in $PATH 9887 do 9888 IFS=$as_save_IFS 9889 test -z "$as_dir" && as_dir=. 9890 for ac_exec_ext in '' $ac_executable_extensions; do 9891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9892 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9894 break 2 9895 fi 9896 done 9897 done 9898 IFS=$as_save_IFS 9899 9900 ;; 9901 esac 9902 fi 9903 NAWK=$ac_cv_path_NAWK 9904 if test -n "$NAWK"; then 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9906 $as_echo "$NAWK" >&6; } 9907 else 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9909 $as_echo "no" >&6; } 9910 fi 9911 9912 9913 test -n "$NAWK" && break 9914 done 9915 9916 else 9917 # The variable is set, but is it from the command line or the environment? 9918 9919 # Try to remove the string !NAWK! from our list. 9920 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9921 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9922 # If it failed, the variable was not from the command line. Ignore it, 9923 # but warn the user (except for BASH, which is always set by the calling BASH). 9924 if test "xNAWK" != xBASH; then 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9926 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9927 fi 9928 # Try to locate tool using the code snippet 9929 for ac_prog in nawk gawk awk 9930 do 9931 # Extract the first word of "$ac_prog", so it can be a program name with args. 9932 set dummy $ac_prog; ac_word=$2 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9934 $as_echo_n "checking for $ac_word... " >&6; } 9935 if ${ac_cv_path_NAWK+:} false; then : 9936 $as_echo_n "(cached) " >&6 9937 else 9938 case $NAWK in 9939 [\\/]* | ?:[\\/]*) 9940 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9941 ;; 9942 *) 9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9944 for as_dir in $PATH 9945 do 9946 IFS=$as_save_IFS 9947 test -z "$as_dir" && as_dir=. 9948 for ac_exec_ext in '' $ac_executable_extensions; do 9949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9950 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9952 break 2 9953 fi 9954 done 9955 done 9956 IFS=$as_save_IFS 9957 9958 ;; 9959 esac 9960 fi 9961 NAWK=$ac_cv_path_NAWK 9962 if test -n "$NAWK"; then 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9964 $as_echo "$NAWK" >&6; } 9965 else 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9967 $as_echo "no" >&6; } 9968 fi 9969 9970 9971 test -n "$NAWK" && break 9972 done 9973 9974 else 9975 # If it succeeded, then it was overridden by the user. We will use it 9976 # for the tool. 9977 9978 # First remove it from the list of overridden variables, so we can test 9979 # for unknown variables in the end. 9980 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9981 9982 # Check if we try to supply an empty value 9983 if test "x$NAWK" = x; then 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 9985 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9987 $as_echo_n "checking for NAWK... " >&6; } 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9989 $as_echo "disabled" >&6; } 9990 else 9991 # Check if the provided tool contains a complete path. 9992 tool_specified="$NAWK" 9993 tool_basename="${tool_specified##*/}" 9994 if test "x$tool_basename" = "x$tool_specified"; then 9995 # A command without a complete path is provided, search $PATH. 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 9997 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 9998 # Extract the first word of "$tool_basename", so it can be a program name with args. 9999 set dummy $tool_basename; ac_word=$2 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10001 $as_echo_n "checking for $ac_word... " >&6; } 10002 if ${ac_cv_path_NAWK+:} false; then : 10003 $as_echo_n "(cached) " >&6 10004 else 10005 case $NAWK in 10006 [\\/]* | ?:[\\/]*) 10007 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10008 ;; 10009 *) 10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10011 for as_dir in $PATH 10012 do 10013 IFS=$as_save_IFS 10014 test -z "$as_dir" && as_dir=. 10015 for ac_exec_ext in '' $ac_executable_extensions; do 10016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10017 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10019 break 2 10020 fi 10021 done 10022 done 10023 IFS=$as_save_IFS 10024 10025 ;; 10026 esac 10027 fi 10028 NAWK=$ac_cv_path_NAWK 10029 if test -n "$NAWK"; then 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10031 $as_echo "$NAWK" >&6; } 10032 else 10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10034 $as_echo "no" >&6; } 10035 fi 10036 10037 10038 if test "x$NAWK" = x; then 10039 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10040 fi 10041 else 10042 # Otherwise we believe it is a complete path. Use it as it is. 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10044 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10046 $as_echo_n "checking for NAWK... " >&6; } 10047 if test ! -x "$tool_specified"; then 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10049 $as_echo "not found" >&6; } 10050 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10051 fi 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10053 $as_echo "$tool_specified" >&6; } 10054 fi 10055 fi 10056 fi 10057 10058 fi 10059 10060 10061 10062 if test "x$NAWK" = x; then 10063 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10064 fi 10065 10066 10067 10068 10069 10070 # Publish this variable in the help. 10071 10072 10073 if [ -z "${PRINTF+x}" ]; then 10074 # The variable is not set by user, try to locate tool using the code snippet 10075 for ac_prog in printf 10076 do 10077 # Extract the first word of "$ac_prog", so it can be a program name with args. 10078 set dummy $ac_prog; ac_word=$2 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10080 $as_echo_n "checking for $ac_word... " >&6; } 10081 if ${ac_cv_path_PRINTF+:} false; then : 10082 $as_echo_n "(cached) " >&6 10083 else 10084 case $PRINTF in 10085 [\\/]* | ?:[\\/]*) 10086 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10087 ;; 10088 *) 10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10090 for as_dir in $PATH 10091 do 10092 IFS=$as_save_IFS 10093 test -z "$as_dir" && as_dir=. 10094 for ac_exec_ext in '' $ac_executable_extensions; do 10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10096 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10098 break 2 10099 fi 10100 done 10101 done 10102 IFS=$as_save_IFS 10103 10104 ;; 10105 esac 10106 fi 10107 PRINTF=$ac_cv_path_PRINTF 10108 if test -n "$PRINTF"; then 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10110 $as_echo "$PRINTF" >&6; } 10111 else 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10113 $as_echo "no" >&6; } 10114 fi 10115 10116 10117 test -n "$PRINTF" && break 10118 done 10119 10120 else 10121 # The variable is set, but is it from the command line or the environment? 10122 10123 # Try to remove the string !PRINTF! from our list. 10124 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10125 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10126 # If it failed, the variable was not from the command line. Ignore it, 10127 # but warn the user (except for BASH, which is always set by the calling BASH). 10128 if test "xPRINTF" != xBASH; then 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10130 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10131 fi 10132 # Try to locate tool using the code snippet 10133 for ac_prog in printf 10134 do 10135 # Extract the first word of "$ac_prog", so it can be a program name with args. 10136 set dummy $ac_prog; ac_word=$2 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10138 $as_echo_n "checking for $ac_word... " >&6; } 10139 if ${ac_cv_path_PRINTF+:} false; then : 10140 $as_echo_n "(cached) " >&6 10141 else 10142 case $PRINTF in 10143 [\\/]* | ?:[\\/]*) 10144 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10145 ;; 10146 *) 10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10148 for as_dir in $PATH 10149 do 10150 IFS=$as_save_IFS 10151 test -z "$as_dir" && as_dir=. 10152 for ac_exec_ext in '' $ac_executable_extensions; do 10153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10154 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10156 break 2 10157 fi 10158 done 10159 done 10160 IFS=$as_save_IFS 10161 10162 ;; 10163 esac 10164 fi 10165 PRINTF=$ac_cv_path_PRINTF 10166 if test -n "$PRINTF"; then 10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10168 $as_echo "$PRINTF" >&6; } 10169 else 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10171 $as_echo "no" >&6; } 10172 fi 10173 10174 10175 test -n "$PRINTF" && break 10176 done 10177 10178 else 10179 # If it succeeded, then it was overridden by the user. We will use it 10180 # for the tool. 10181 10182 # First remove it from the list of overridden variables, so we can test 10183 # for unknown variables in the end. 10184 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10185 10186 # Check if we try to supply an empty value 10187 if test "x$PRINTF" = x; then 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10189 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10191 $as_echo_n "checking for PRINTF... " >&6; } 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10193 $as_echo "disabled" >&6; } 10194 else 10195 # Check if the provided tool contains a complete path. 10196 tool_specified="$PRINTF" 10197 tool_basename="${tool_specified##*/}" 10198 if test "x$tool_basename" = "x$tool_specified"; then 10199 # A command without a complete path is provided, search $PATH. 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10201 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10202 # Extract the first word of "$tool_basename", so it can be a program name with args. 10203 set dummy $tool_basename; ac_word=$2 10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10205 $as_echo_n "checking for $ac_word... " >&6; } 10206 if ${ac_cv_path_PRINTF+:} false; then : 10207 $as_echo_n "(cached) " >&6 10208 else 10209 case $PRINTF in 10210 [\\/]* | ?:[\\/]*) 10211 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10212 ;; 10213 *) 10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10215 for as_dir in $PATH 10216 do 10217 IFS=$as_save_IFS 10218 test -z "$as_dir" && as_dir=. 10219 for ac_exec_ext in '' $ac_executable_extensions; do 10220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10221 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10223 break 2 10224 fi 10225 done 10226 done 10227 IFS=$as_save_IFS 10228 10229 ;; 10230 esac 10231 fi 10232 PRINTF=$ac_cv_path_PRINTF 10233 if test -n "$PRINTF"; then 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10235 $as_echo "$PRINTF" >&6; } 10236 else 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10238 $as_echo "no" >&6; } 10239 fi 10240 10241 10242 if test "x$PRINTF" = x; then 10243 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10244 fi 10245 else 10246 # Otherwise we believe it is a complete path. Use it as it is. 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10248 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10250 $as_echo_n "checking for PRINTF... " >&6; } 10251 if test ! -x "$tool_specified"; then 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10253 $as_echo "not found" >&6; } 10254 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10255 fi 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10257 $as_echo "$tool_specified" >&6; } 10258 fi 10259 fi 10260 fi 10261 10262 fi 10263 10264 10265 10266 if test "x$PRINTF" = x; then 10267 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10268 fi 10269 10270 10271 10272 10273 10274 # Publish this variable in the help. 10275 10276 10277 if [ -z "${RM+x}" ]; then 10278 # The variable is not set by user, try to locate tool using the code snippet 10279 for ac_prog in rm 10280 do 10281 # Extract the first word of "$ac_prog", so it can be a program name with args. 10282 set dummy $ac_prog; ac_word=$2 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10284 $as_echo_n "checking for $ac_word... " >&6; } 10285 if ${ac_cv_path_RM+:} false; then : 10286 $as_echo_n "(cached) " >&6 10287 else 10288 case $RM in 10289 [\\/]* | ?:[\\/]*) 10290 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10291 ;; 10292 *) 10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10294 for as_dir in $PATH 10295 do 10296 IFS=$as_save_IFS 10297 test -z "$as_dir" && as_dir=. 10298 for ac_exec_ext in '' $ac_executable_extensions; do 10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10300 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10302 break 2 10303 fi 10304 done 10305 done 10306 IFS=$as_save_IFS 10307 10308 ;; 10309 esac 10310 fi 10311 RM=$ac_cv_path_RM 10312 if test -n "$RM"; then 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10314 $as_echo "$RM" >&6; } 10315 else 10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10317 $as_echo "no" >&6; } 10318 fi 10319 10320 10321 test -n "$RM" && break 10322 done 10323 10324 else 10325 # The variable is set, but is it from the command line or the environment? 10326 10327 # Try to remove the string !RM! from our list. 10328 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10329 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10330 # If it failed, the variable was not from the command line. Ignore it, 10331 # but warn the user (except for BASH, which is always set by the calling BASH). 10332 if test "xRM" != xBASH; then 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10334 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10335 fi 10336 # Try to locate tool using the code snippet 10337 for ac_prog in rm 10338 do 10339 # Extract the first word of "$ac_prog", so it can be a program name with args. 10340 set dummy $ac_prog; ac_word=$2 10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10342 $as_echo_n "checking for $ac_word... " >&6; } 10343 if ${ac_cv_path_RM+:} false; then : 10344 $as_echo_n "(cached) " >&6 10345 else 10346 case $RM in 10347 [\\/]* | ?:[\\/]*) 10348 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10349 ;; 10350 *) 10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10352 for as_dir in $PATH 10353 do 10354 IFS=$as_save_IFS 10355 test -z "$as_dir" && as_dir=. 10356 for ac_exec_ext in '' $ac_executable_extensions; do 10357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10358 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10360 break 2 10361 fi 10362 done 10363 done 10364 IFS=$as_save_IFS 10365 10366 ;; 10367 esac 10368 fi 10369 RM=$ac_cv_path_RM 10370 if test -n "$RM"; then 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10372 $as_echo "$RM" >&6; } 10373 else 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10375 $as_echo "no" >&6; } 10376 fi 10377 10378 10379 test -n "$RM" && break 10380 done 10381 10382 else 10383 # If it succeeded, then it was overridden by the user. We will use it 10384 # for the tool. 10385 10386 # First remove it from the list of overridden variables, so we can test 10387 # for unknown variables in the end. 10388 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10389 10390 # Check if we try to supply an empty value 10391 if test "x$RM" = x; then 10392 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10393 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10395 $as_echo_n "checking for RM... " >&6; } 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10397 $as_echo "disabled" >&6; } 10398 else 10399 # Check if the provided tool contains a complete path. 10400 tool_specified="$RM" 10401 tool_basename="${tool_specified##*/}" 10402 if test "x$tool_basename" = "x$tool_specified"; then 10403 # A command without a complete path is provided, search $PATH. 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10405 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10406 # Extract the first word of "$tool_basename", so it can be a program name with args. 10407 set dummy $tool_basename; ac_word=$2 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10409 $as_echo_n "checking for $ac_word... " >&6; } 10410 if ${ac_cv_path_RM+:} false; then : 10411 $as_echo_n "(cached) " >&6 10412 else 10413 case $RM in 10414 [\\/]* | ?:[\\/]*) 10415 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10416 ;; 10417 *) 10418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10419 for as_dir in $PATH 10420 do 10421 IFS=$as_save_IFS 10422 test -z "$as_dir" && as_dir=. 10423 for ac_exec_ext in '' $ac_executable_extensions; do 10424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10425 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10427 break 2 10428 fi 10429 done 10430 done 10431 IFS=$as_save_IFS 10432 10433 ;; 10434 esac 10435 fi 10436 RM=$ac_cv_path_RM 10437 if test -n "$RM"; then 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10439 $as_echo "$RM" >&6; } 10440 else 10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10442 $as_echo "no" >&6; } 10443 fi 10444 10445 10446 if test "x$RM" = x; then 10447 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10448 fi 10449 else 10450 # Otherwise we believe it is a complete path. Use it as it is. 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10452 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10454 $as_echo_n "checking for RM... " >&6; } 10455 if test ! -x "$tool_specified"; then 10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10457 $as_echo "not found" >&6; } 10458 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10459 fi 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10461 $as_echo "$tool_specified" >&6; } 10462 fi 10463 fi 10464 fi 10465 10466 fi 10467 10468 10469 10470 if test "x$RM" = x; then 10471 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10472 fi 10473 10474 10475 10476 10477 10478 # Publish this variable in the help. 10479 10480 10481 if [ -z "${RMDIR+x}" ]; then 10482 # The variable is not set by user, try to locate tool using the code snippet 10483 for ac_prog in rmdir 10484 do 10485 # Extract the first word of "$ac_prog", so it can be a program name with args. 10486 set dummy $ac_prog; ac_word=$2 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10488 $as_echo_n "checking for $ac_word... " >&6; } 10489 if ${ac_cv_path_RMDIR+:} false; then : 10490 $as_echo_n "(cached) " >&6 10491 else 10492 case $RMDIR in 10493 [\\/]* | ?:[\\/]*) 10494 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10495 ;; 10496 *) 10497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10498 for as_dir in $PATH 10499 do 10500 IFS=$as_save_IFS 10501 test -z "$as_dir" && as_dir=. 10502 for ac_exec_ext in '' $ac_executable_extensions; do 10503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10504 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10506 break 2 10507 fi 10508 done 10509 done 10510 IFS=$as_save_IFS 10511 10512 ;; 10513 esac 10514 fi 10515 RMDIR=$ac_cv_path_RMDIR 10516 if test -n "$RMDIR"; then 10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10518 $as_echo "$RMDIR" >&6; } 10519 else 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10521 $as_echo "no" >&6; } 10522 fi 10523 10524 10525 test -n "$RMDIR" && break 10526 done 10527 10528 else 10529 # The variable is set, but is it from the command line or the environment? 10530 10531 # Try to remove the string !RMDIR! from our list. 10532 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10533 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10534 # If it failed, the variable was not from the command line. Ignore it, 10535 # but warn the user (except for BASH, which is always set by the calling BASH). 10536 if test "xRMDIR" != xBASH; then 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10538 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10539 fi 10540 # Try to locate tool using the code snippet 10541 for ac_prog in rmdir 10542 do 10543 # Extract the first word of "$ac_prog", so it can be a program name with args. 10544 set dummy $ac_prog; ac_word=$2 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10546 $as_echo_n "checking for $ac_word... " >&6; } 10547 if ${ac_cv_path_RMDIR+:} false; then : 10548 $as_echo_n "(cached) " >&6 10549 else 10550 case $RMDIR in 10551 [\\/]* | ?:[\\/]*) 10552 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10553 ;; 10554 *) 10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10556 for as_dir in $PATH 10557 do 10558 IFS=$as_save_IFS 10559 test -z "$as_dir" && as_dir=. 10560 for ac_exec_ext in '' $ac_executable_extensions; do 10561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10562 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10564 break 2 10565 fi 10566 done 10567 done 10568 IFS=$as_save_IFS 10569 10570 ;; 10571 esac 10572 fi 10573 RMDIR=$ac_cv_path_RMDIR 10574 if test -n "$RMDIR"; then 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10576 $as_echo "$RMDIR" >&6; } 10577 else 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10579 $as_echo "no" >&6; } 10580 fi 10581 10582 10583 test -n "$RMDIR" && break 10584 done 10585 10586 else 10587 # If it succeeded, then it was overridden by the user. We will use it 10588 # for the tool. 10589 10590 # First remove it from the list of overridden variables, so we can test 10591 # for unknown variables in the end. 10592 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10593 10594 # Check if we try to supply an empty value 10595 if test "x$RMDIR" = x; then 10596 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10597 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10599 $as_echo_n "checking for RMDIR... " >&6; } 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10601 $as_echo "disabled" >&6; } 10602 else 10603 # Check if the provided tool contains a complete path. 10604 tool_specified="$RMDIR" 10605 tool_basename="${tool_specified##*/}" 10606 if test "x$tool_basename" = "x$tool_specified"; then 10607 # A command without a complete path is provided, search $PATH. 10608 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10609 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10610 # Extract the first word of "$tool_basename", so it can be a program name with args. 10611 set dummy $tool_basename; ac_word=$2 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10613 $as_echo_n "checking for $ac_word... " >&6; } 10614 if ${ac_cv_path_RMDIR+:} false; then : 10615 $as_echo_n "(cached) " >&6 10616 else 10617 case $RMDIR in 10618 [\\/]* | ?:[\\/]*) 10619 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10620 ;; 10621 *) 10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10623 for as_dir in $PATH 10624 do 10625 IFS=$as_save_IFS 10626 test -z "$as_dir" && as_dir=. 10627 for ac_exec_ext in '' $ac_executable_extensions; do 10628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10629 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10631 break 2 10632 fi 10633 done 10634 done 10635 IFS=$as_save_IFS 10636 10637 ;; 10638 esac 10639 fi 10640 RMDIR=$ac_cv_path_RMDIR 10641 if test -n "$RMDIR"; then 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10643 $as_echo "$RMDIR" >&6; } 10644 else 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10646 $as_echo "no" >&6; } 10647 fi 10648 10649 10650 if test "x$RMDIR" = x; then 10651 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10652 fi 10653 else 10654 # Otherwise we believe it is a complete path. Use it as it is. 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10656 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10658 $as_echo_n "checking for RMDIR... " >&6; } 10659 if test ! -x "$tool_specified"; then 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10661 $as_echo "not found" >&6; } 10662 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10663 fi 10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10665 $as_echo "$tool_specified" >&6; } 10666 fi 10667 fi 10668 fi 10669 10670 fi 10671 10672 10673 10674 if test "x$RMDIR" = x; then 10675 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10676 fi 10677 10678 10679 10680 10681 10682 # Publish this variable in the help. 10683 10684 10685 if [ -z "${SH+x}" ]; then 10686 # The variable is not set by user, try to locate tool using the code snippet 10687 for ac_prog in sh 10688 do 10689 # Extract the first word of "$ac_prog", so it can be a program name with args. 10690 set dummy $ac_prog; ac_word=$2 10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10692 $as_echo_n "checking for $ac_word... " >&6; } 10693 if ${ac_cv_path_SH+:} false; then : 10694 $as_echo_n "(cached) " >&6 10695 else 10696 case $SH in 10697 [\\/]* | ?:[\\/]*) 10698 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10699 ;; 10700 *) 10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10702 for as_dir in $PATH 10703 do 10704 IFS=$as_save_IFS 10705 test -z "$as_dir" && as_dir=. 10706 for ac_exec_ext in '' $ac_executable_extensions; do 10707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10708 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10710 break 2 10711 fi 10712 done 10713 done 10714 IFS=$as_save_IFS 10715 10716 ;; 10717 esac 10718 fi 10719 SH=$ac_cv_path_SH 10720 if test -n "$SH"; then 10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10722 $as_echo "$SH" >&6; } 10723 else 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10725 $as_echo "no" >&6; } 10726 fi 10727 10728 10729 test -n "$SH" && break 10730 done 10731 10732 else 10733 # The variable is set, but is it from the command line or the environment? 10734 10735 # Try to remove the string !SH! from our list. 10736 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10737 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10738 # If it failed, the variable was not from the command line. Ignore it, 10739 # but warn the user (except for BASH, which is always set by the calling BASH). 10740 if test "xSH" != xBASH; then 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10742 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10743 fi 10744 # Try to locate tool using the code snippet 10745 for ac_prog in sh 10746 do 10747 # Extract the first word of "$ac_prog", so it can be a program name with args. 10748 set dummy $ac_prog; ac_word=$2 10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10750 $as_echo_n "checking for $ac_word... " >&6; } 10751 if ${ac_cv_path_SH+:} false; then : 10752 $as_echo_n "(cached) " >&6 10753 else 10754 case $SH in 10755 [\\/]* | ?:[\\/]*) 10756 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10757 ;; 10758 *) 10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10760 for as_dir in $PATH 10761 do 10762 IFS=$as_save_IFS 10763 test -z "$as_dir" && as_dir=. 10764 for ac_exec_ext in '' $ac_executable_extensions; do 10765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10766 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10768 break 2 10769 fi 10770 done 10771 done 10772 IFS=$as_save_IFS 10773 10774 ;; 10775 esac 10776 fi 10777 SH=$ac_cv_path_SH 10778 if test -n "$SH"; then 10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10780 $as_echo "$SH" >&6; } 10781 else 10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10783 $as_echo "no" >&6; } 10784 fi 10785 10786 10787 test -n "$SH" && break 10788 done 10789 10790 else 10791 # If it succeeded, then it was overridden by the user. We will use it 10792 # for the tool. 10793 10794 # First remove it from the list of overridden variables, so we can test 10795 # for unknown variables in the end. 10796 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10797 10798 # Check if we try to supply an empty value 10799 if test "x$SH" = x; then 10800 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10801 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10803 $as_echo_n "checking for SH... " >&6; } 10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10805 $as_echo "disabled" >&6; } 10806 else 10807 # Check if the provided tool contains a complete path. 10808 tool_specified="$SH" 10809 tool_basename="${tool_specified##*/}" 10810 if test "x$tool_basename" = "x$tool_specified"; then 10811 # A command without a complete path is provided, search $PATH. 10812 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10813 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10814 # Extract the first word of "$tool_basename", so it can be a program name with args. 10815 set dummy $tool_basename; ac_word=$2 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10817 $as_echo_n "checking for $ac_word... " >&6; } 10818 if ${ac_cv_path_SH+:} false; then : 10819 $as_echo_n "(cached) " >&6 10820 else 10821 case $SH in 10822 [\\/]* | ?:[\\/]*) 10823 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10824 ;; 10825 *) 10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10827 for as_dir in $PATH 10828 do 10829 IFS=$as_save_IFS 10830 test -z "$as_dir" && as_dir=. 10831 for ac_exec_ext in '' $ac_executable_extensions; do 10832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10833 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10835 break 2 10836 fi 10837 done 10838 done 10839 IFS=$as_save_IFS 10840 10841 ;; 10842 esac 10843 fi 10844 SH=$ac_cv_path_SH 10845 if test -n "$SH"; then 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10847 $as_echo "$SH" >&6; } 10848 else 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10850 $as_echo "no" >&6; } 10851 fi 10852 10853 10854 if test "x$SH" = x; then 10855 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10856 fi 10857 else 10858 # Otherwise we believe it is a complete path. Use it as it is. 10859 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10860 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10862 $as_echo_n "checking for SH... " >&6; } 10863 if test ! -x "$tool_specified"; then 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10865 $as_echo "not found" >&6; } 10866 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10867 fi 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10869 $as_echo "$tool_specified" >&6; } 10870 fi 10871 fi 10872 fi 10873 10874 fi 10875 10876 10877 10878 if test "x$SH" = x; then 10879 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10880 fi 10881 10882 10883 10884 10885 10886 # Publish this variable in the help. 10887 10888 10889 if [ -z "${SORT+x}" ]; then 10890 # The variable is not set by user, try to locate tool using the code snippet 10891 for ac_prog in sort 10892 do 10893 # Extract the first word of "$ac_prog", so it can be a program name with args. 10894 set dummy $ac_prog; ac_word=$2 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10896 $as_echo_n "checking for $ac_word... " >&6; } 10897 if ${ac_cv_path_SORT+:} false; then : 10898 $as_echo_n "(cached) " >&6 10899 else 10900 case $SORT in 10901 [\\/]* | ?:[\\/]*) 10902 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10903 ;; 10904 *) 10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10906 for as_dir in $PATH 10907 do 10908 IFS=$as_save_IFS 10909 test -z "$as_dir" && as_dir=. 10910 for ac_exec_ext in '' $ac_executable_extensions; do 10911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10912 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10914 break 2 10915 fi 10916 done 10917 done 10918 IFS=$as_save_IFS 10919 10920 ;; 10921 esac 10922 fi 10923 SORT=$ac_cv_path_SORT 10924 if test -n "$SORT"; then 10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10926 $as_echo "$SORT" >&6; } 10927 else 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10929 $as_echo "no" >&6; } 10930 fi 10931 10932 10933 test -n "$SORT" && break 10934 done 10935 10936 else 10937 # The variable is set, but is it from the command line or the environment? 10938 10939 # Try to remove the string !SORT! from our list. 10940 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 10941 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10942 # If it failed, the variable was not from the command line. Ignore it, 10943 # but warn the user (except for BASH, which is always set by the calling BASH). 10944 if test "xSORT" != xBASH; then 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 10946 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 10947 fi 10948 # Try to locate tool using the code snippet 10949 for ac_prog in sort 10950 do 10951 # Extract the first word of "$ac_prog", so it can be a program name with args. 10952 set dummy $ac_prog; ac_word=$2 10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10954 $as_echo_n "checking for $ac_word... " >&6; } 10955 if ${ac_cv_path_SORT+:} false; then : 10956 $as_echo_n "(cached) " >&6 10957 else 10958 case $SORT in 10959 [\\/]* | ?:[\\/]*) 10960 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10961 ;; 10962 *) 10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10964 for as_dir in $PATH 10965 do 10966 IFS=$as_save_IFS 10967 test -z "$as_dir" && as_dir=. 10968 for ac_exec_ext in '' $ac_executable_extensions; do 10969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10970 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10972 break 2 10973 fi 10974 done 10975 done 10976 IFS=$as_save_IFS 10977 10978 ;; 10979 esac 10980 fi 10981 SORT=$ac_cv_path_SORT 10982 if test -n "$SORT"; then 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10984 $as_echo "$SORT" >&6; } 10985 else 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10987 $as_echo "no" >&6; } 10988 fi 10989 10990 10991 test -n "$SORT" && break 10992 done 10993 10994 else 10995 # If it succeeded, then it was overridden by the user. We will use it 10996 # for the tool. 10997 10998 # First remove it from the list of overridden variables, so we can test 10999 # for unknown variables in the end. 11000 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11001 11002 # Check if we try to supply an empty value 11003 if test "x$SORT" = x; then 11004 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11005 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11007 $as_echo_n "checking for SORT... " >&6; } 11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11009 $as_echo "disabled" >&6; } 11010 else 11011 # Check if the provided tool contains a complete path. 11012 tool_specified="$SORT" 11013 tool_basename="${tool_specified##*/}" 11014 if test "x$tool_basename" = "x$tool_specified"; then 11015 # A command without a complete path is provided, search $PATH. 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11017 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11018 # Extract the first word of "$tool_basename", so it can be a program name with args. 11019 set dummy $tool_basename; ac_word=$2 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11021 $as_echo_n "checking for $ac_word... " >&6; } 11022 if ${ac_cv_path_SORT+:} false; then : 11023 $as_echo_n "(cached) " >&6 11024 else 11025 case $SORT in 11026 [\\/]* | ?:[\\/]*) 11027 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11028 ;; 11029 *) 11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11031 for as_dir in $PATH 11032 do 11033 IFS=$as_save_IFS 11034 test -z "$as_dir" && as_dir=. 11035 for ac_exec_ext in '' $ac_executable_extensions; do 11036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11037 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11039 break 2 11040 fi 11041 done 11042 done 11043 IFS=$as_save_IFS 11044 11045 ;; 11046 esac 11047 fi 11048 SORT=$ac_cv_path_SORT 11049 if test -n "$SORT"; then 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11051 $as_echo "$SORT" >&6; } 11052 else 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11054 $as_echo "no" >&6; } 11055 fi 11056 11057 11058 if test "x$SORT" = x; then 11059 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11060 fi 11061 else 11062 # Otherwise we believe it is a complete path. Use it as it is. 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11064 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11066 $as_echo_n "checking for SORT... " >&6; } 11067 if test ! -x "$tool_specified"; then 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11069 $as_echo "not found" >&6; } 11070 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11071 fi 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11073 $as_echo "$tool_specified" >&6; } 11074 fi 11075 fi 11076 fi 11077 11078 fi 11079 11080 11081 11082 if test "x$SORT" = x; then 11083 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11084 fi 11085 11086 11087 11088 11089 11090 # Publish this variable in the help. 11091 11092 11093 if [ -z "${TAIL+x}" ]; then 11094 # The variable is not set by user, try to locate tool using the code snippet 11095 for ac_prog in tail 11096 do 11097 # Extract the first word of "$ac_prog", so it can be a program name with args. 11098 set dummy $ac_prog; ac_word=$2 11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11100 $as_echo_n "checking for $ac_word... " >&6; } 11101 if ${ac_cv_path_TAIL+:} false; then : 11102 $as_echo_n "(cached) " >&6 11103 else 11104 case $TAIL in 11105 [\\/]* | ?:[\\/]*) 11106 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11107 ;; 11108 *) 11109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11110 for as_dir in $PATH 11111 do 11112 IFS=$as_save_IFS 11113 test -z "$as_dir" && as_dir=. 11114 for ac_exec_ext in '' $ac_executable_extensions; do 11115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11116 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11118 break 2 11119 fi 11120 done 11121 done 11122 IFS=$as_save_IFS 11123 11124 ;; 11125 esac 11126 fi 11127 TAIL=$ac_cv_path_TAIL 11128 if test -n "$TAIL"; then 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11130 $as_echo "$TAIL" >&6; } 11131 else 11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11133 $as_echo "no" >&6; } 11134 fi 11135 11136 11137 test -n "$TAIL" && break 11138 done 11139 11140 else 11141 # The variable is set, but is it from the command line or the environment? 11142 11143 # Try to remove the string !TAIL! from our list. 11144 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11145 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11146 # If it failed, the variable was not from the command line. Ignore it, 11147 # but warn the user (except for BASH, which is always set by the calling BASH). 11148 if test "xTAIL" != xBASH; then 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11150 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11151 fi 11152 # Try to locate tool using the code snippet 11153 for ac_prog in tail 11154 do 11155 # Extract the first word of "$ac_prog", so it can be a program name with args. 11156 set dummy $ac_prog; ac_word=$2 11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11158 $as_echo_n "checking for $ac_word... " >&6; } 11159 if ${ac_cv_path_TAIL+:} false; then : 11160 $as_echo_n "(cached) " >&6 11161 else 11162 case $TAIL in 11163 [\\/]* | ?:[\\/]*) 11164 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11165 ;; 11166 *) 11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11168 for as_dir in $PATH 11169 do 11170 IFS=$as_save_IFS 11171 test -z "$as_dir" && as_dir=. 11172 for ac_exec_ext in '' $ac_executable_extensions; do 11173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11174 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11176 break 2 11177 fi 11178 done 11179 done 11180 IFS=$as_save_IFS 11181 11182 ;; 11183 esac 11184 fi 11185 TAIL=$ac_cv_path_TAIL 11186 if test -n "$TAIL"; then 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11188 $as_echo "$TAIL" >&6; } 11189 else 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11191 $as_echo "no" >&6; } 11192 fi 11193 11194 11195 test -n "$TAIL" && break 11196 done 11197 11198 else 11199 # If it succeeded, then it was overridden by the user. We will use it 11200 # for the tool. 11201 11202 # First remove it from the list of overridden variables, so we can test 11203 # for unknown variables in the end. 11204 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11205 11206 # Check if we try to supply an empty value 11207 if test "x$TAIL" = x; then 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11209 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11211 $as_echo_n "checking for TAIL... " >&6; } 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11213 $as_echo "disabled" >&6; } 11214 else 11215 # Check if the provided tool contains a complete path. 11216 tool_specified="$TAIL" 11217 tool_basename="${tool_specified##*/}" 11218 if test "x$tool_basename" = "x$tool_specified"; then 11219 # A command without a complete path is provided, search $PATH. 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11221 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11222 # Extract the first word of "$tool_basename", so it can be a program name with args. 11223 set dummy $tool_basename; ac_word=$2 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11225 $as_echo_n "checking for $ac_word... " >&6; } 11226 if ${ac_cv_path_TAIL+:} false; then : 11227 $as_echo_n "(cached) " >&6 11228 else 11229 case $TAIL in 11230 [\\/]* | ?:[\\/]*) 11231 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11232 ;; 11233 *) 11234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11235 for as_dir in $PATH 11236 do 11237 IFS=$as_save_IFS 11238 test -z "$as_dir" && as_dir=. 11239 for ac_exec_ext in '' $ac_executable_extensions; do 11240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11241 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11243 break 2 11244 fi 11245 done 11246 done 11247 IFS=$as_save_IFS 11248 11249 ;; 11250 esac 11251 fi 11252 TAIL=$ac_cv_path_TAIL 11253 if test -n "$TAIL"; then 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11255 $as_echo "$TAIL" >&6; } 11256 else 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11258 $as_echo "no" >&6; } 11259 fi 11260 11261 11262 if test "x$TAIL" = x; then 11263 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11264 fi 11265 else 11266 # Otherwise we believe it is a complete path. Use it as it is. 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11268 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11270 $as_echo_n "checking for TAIL... " >&6; } 11271 if test ! -x "$tool_specified"; then 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11273 $as_echo "not found" >&6; } 11274 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11275 fi 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11277 $as_echo "$tool_specified" >&6; } 11278 fi 11279 fi 11280 fi 11281 11282 fi 11283 11284 11285 11286 if test "x$TAIL" = x; then 11287 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11288 fi 11289 11290 11291 11292 11293 11294 # Publish this variable in the help. 11295 11296 11297 if [ -z "${TAR+x}" ]; then 11298 # The variable is not set by user, try to locate tool using the code snippet 11299 for ac_prog in gtar tar 11300 do 11301 # Extract the first word of "$ac_prog", so it can be a program name with args. 11302 set dummy $ac_prog; ac_word=$2 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11304 $as_echo_n "checking for $ac_word... " >&6; } 11305 if ${ac_cv_path_TAR+:} false; then : 11306 $as_echo_n "(cached) " >&6 11307 else 11308 case $TAR in 11309 [\\/]* | ?:[\\/]*) 11310 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11311 ;; 11312 *) 11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11314 for as_dir in $PATH 11315 do 11316 IFS=$as_save_IFS 11317 test -z "$as_dir" && as_dir=. 11318 for ac_exec_ext in '' $ac_executable_extensions; do 11319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11320 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11322 break 2 11323 fi 11324 done 11325 done 11326 IFS=$as_save_IFS 11327 11328 ;; 11329 esac 11330 fi 11331 TAR=$ac_cv_path_TAR 11332 if test -n "$TAR"; then 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11334 $as_echo "$TAR" >&6; } 11335 else 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11337 $as_echo "no" >&6; } 11338 fi 11339 11340 11341 test -n "$TAR" && break 11342 done 11343 11344 else 11345 # The variable is set, but is it from the command line or the environment? 11346 11347 # Try to remove the string !TAR! from our list. 11348 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11349 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11350 # If it failed, the variable was not from the command line. Ignore it, 11351 # but warn the user (except for BASH, which is always set by the calling BASH). 11352 if test "xTAR" != xBASH; then 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11354 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11355 fi 11356 # Try to locate tool using the code snippet 11357 for ac_prog in gtar tar 11358 do 11359 # Extract the first word of "$ac_prog", so it can be a program name with args. 11360 set dummy $ac_prog; ac_word=$2 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11362 $as_echo_n "checking for $ac_word... " >&6; } 11363 if ${ac_cv_path_TAR+:} false; then : 11364 $as_echo_n "(cached) " >&6 11365 else 11366 case $TAR in 11367 [\\/]* | ?:[\\/]*) 11368 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11369 ;; 11370 *) 11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11372 for as_dir in $PATH 11373 do 11374 IFS=$as_save_IFS 11375 test -z "$as_dir" && as_dir=. 11376 for ac_exec_ext in '' $ac_executable_extensions; do 11377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11378 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11380 break 2 11381 fi 11382 done 11383 done 11384 IFS=$as_save_IFS 11385 11386 ;; 11387 esac 11388 fi 11389 TAR=$ac_cv_path_TAR 11390 if test -n "$TAR"; then 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11392 $as_echo "$TAR" >&6; } 11393 else 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11395 $as_echo "no" >&6; } 11396 fi 11397 11398 11399 test -n "$TAR" && break 11400 done 11401 11402 else 11403 # If it succeeded, then it was overridden by the user. We will use it 11404 # for the tool. 11405 11406 # First remove it from the list of overridden variables, so we can test 11407 # for unknown variables in the end. 11408 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11409 11410 # Check if we try to supply an empty value 11411 if test "x$TAR" = x; then 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11413 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11415 $as_echo_n "checking for TAR... " >&6; } 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11417 $as_echo "disabled" >&6; } 11418 else 11419 # Check if the provided tool contains a complete path. 11420 tool_specified="$TAR" 11421 tool_basename="${tool_specified##*/}" 11422 if test "x$tool_basename" = "x$tool_specified"; then 11423 # A command without a complete path is provided, search $PATH. 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11425 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11426 # Extract the first word of "$tool_basename", so it can be a program name with args. 11427 set dummy $tool_basename; ac_word=$2 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11429 $as_echo_n "checking for $ac_word... " >&6; } 11430 if ${ac_cv_path_TAR+:} false; then : 11431 $as_echo_n "(cached) " >&6 11432 else 11433 case $TAR in 11434 [\\/]* | ?:[\\/]*) 11435 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11436 ;; 11437 *) 11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11439 for as_dir in $PATH 11440 do 11441 IFS=$as_save_IFS 11442 test -z "$as_dir" && as_dir=. 11443 for ac_exec_ext in '' $ac_executable_extensions; do 11444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11445 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11447 break 2 11448 fi 11449 done 11450 done 11451 IFS=$as_save_IFS 11452 11453 ;; 11454 esac 11455 fi 11456 TAR=$ac_cv_path_TAR 11457 if test -n "$TAR"; then 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11459 $as_echo "$TAR" >&6; } 11460 else 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11462 $as_echo "no" >&6; } 11463 fi 11464 11465 11466 if test "x$TAR" = x; then 11467 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11468 fi 11469 else 11470 # Otherwise we believe it is a complete path. Use it as it is. 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11472 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11474 $as_echo_n "checking for TAR... " >&6; } 11475 if test ! -x "$tool_specified"; then 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11477 $as_echo "not found" >&6; } 11478 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11479 fi 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11481 $as_echo "$tool_specified" >&6; } 11482 fi 11483 fi 11484 fi 11485 11486 fi 11487 11488 11489 11490 if test "x$TAR" = x; then 11491 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11492 fi 11493 11494 11495 11496 11497 11498 # Publish this variable in the help. 11499 11500 11501 if [ -z "${TEE+x}" ]; then 11502 # The variable is not set by user, try to locate tool using the code snippet 11503 for ac_prog in tee 11504 do 11505 # Extract the first word of "$ac_prog", so it can be a program name with args. 11506 set dummy $ac_prog; ac_word=$2 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11508 $as_echo_n "checking for $ac_word... " >&6; } 11509 if ${ac_cv_path_TEE+:} false; then : 11510 $as_echo_n "(cached) " >&6 11511 else 11512 case $TEE in 11513 [\\/]* | ?:[\\/]*) 11514 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11515 ;; 11516 *) 11517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11518 for as_dir in $PATH 11519 do 11520 IFS=$as_save_IFS 11521 test -z "$as_dir" && as_dir=. 11522 for ac_exec_ext in '' $ac_executable_extensions; do 11523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11524 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11526 break 2 11527 fi 11528 done 11529 done 11530 IFS=$as_save_IFS 11531 11532 ;; 11533 esac 11534 fi 11535 TEE=$ac_cv_path_TEE 11536 if test -n "$TEE"; then 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11538 $as_echo "$TEE" >&6; } 11539 else 11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11541 $as_echo "no" >&6; } 11542 fi 11543 11544 11545 test -n "$TEE" && break 11546 done 11547 11548 else 11549 # The variable is set, but is it from the command line or the environment? 11550 11551 # Try to remove the string !TEE! from our list. 11552 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11553 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11554 # If it failed, the variable was not from the command line. Ignore it, 11555 # but warn the user (except for BASH, which is always set by the calling BASH). 11556 if test "xTEE" != xBASH; then 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11558 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11559 fi 11560 # Try to locate tool using the code snippet 11561 for ac_prog in tee 11562 do 11563 # Extract the first word of "$ac_prog", so it can be a program name with args. 11564 set dummy $ac_prog; ac_word=$2 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11566 $as_echo_n "checking for $ac_word... " >&6; } 11567 if ${ac_cv_path_TEE+:} false; then : 11568 $as_echo_n "(cached) " >&6 11569 else 11570 case $TEE in 11571 [\\/]* | ?:[\\/]*) 11572 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11573 ;; 11574 *) 11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11576 for as_dir in $PATH 11577 do 11578 IFS=$as_save_IFS 11579 test -z "$as_dir" && as_dir=. 11580 for ac_exec_ext in '' $ac_executable_extensions; do 11581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11582 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11584 break 2 11585 fi 11586 done 11587 done 11588 IFS=$as_save_IFS 11589 11590 ;; 11591 esac 11592 fi 11593 TEE=$ac_cv_path_TEE 11594 if test -n "$TEE"; then 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11596 $as_echo "$TEE" >&6; } 11597 else 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11599 $as_echo "no" >&6; } 11600 fi 11601 11602 11603 test -n "$TEE" && break 11604 done 11605 11606 else 11607 # If it succeeded, then it was overridden by the user. We will use it 11608 # for the tool. 11609 11610 # First remove it from the list of overridden variables, so we can test 11611 # for unknown variables in the end. 11612 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11613 11614 # Check if we try to supply an empty value 11615 if test "x$TEE" = x; then 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11617 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11619 $as_echo_n "checking for TEE... " >&6; } 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11621 $as_echo "disabled" >&6; } 11622 else 11623 # Check if the provided tool contains a complete path. 11624 tool_specified="$TEE" 11625 tool_basename="${tool_specified##*/}" 11626 if test "x$tool_basename" = "x$tool_specified"; then 11627 # A command without a complete path is provided, search $PATH. 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11629 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11630 # Extract the first word of "$tool_basename", so it can be a program name with args. 11631 set dummy $tool_basename; ac_word=$2 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11633 $as_echo_n "checking for $ac_word... " >&6; } 11634 if ${ac_cv_path_TEE+:} false; then : 11635 $as_echo_n "(cached) " >&6 11636 else 11637 case $TEE in 11638 [\\/]* | ?:[\\/]*) 11639 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11640 ;; 11641 *) 11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11643 for as_dir in $PATH 11644 do 11645 IFS=$as_save_IFS 11646 test -z "$as_dir" && as_dir=. 11647 for ac_exec_ext in '' $ac_executable_extensions; do 11648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11649 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11651 break 2 11652 fi 11653 done 11654 done 11655 IFS=$as_save_IFS 11656 11657 ;; 11658 esac 11659 fi 11660 TEE=$ac_cv_path_TEE 11661 if test -n "$TEE"; then 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11663 $as_echo "$TEE" >&6; } 11664 else 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11666 $as_echo "no" >&6; } 11667 fi 11668 11669 11670 if test "x$TEE" = x; then 11671 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11672 fi 11673 else 11674 # Otherwise we believe it is a complete path. Use it as it is. 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11676 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11678 $as_echo_n "checking for TEE... " >&6; } 11679 if test ! -x "$tool_specified"; then 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11681 $as_echo "not found" >&6; } 11682 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11683 fi 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11685 $as_echo "$tool_specified" >&6; } 11686 fi 11687 fi 11688 fi 11689 11690 fi 11691 11692 11693 11694 if test "x$TEE" = x; then 11695 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11696 fi 11697 11698 11699 11700 11701 11702 # Publish this variable in the help. 11703 11704 11705 if [ -z "${TOUCH+x}" ]; then 11706 # The variable is not set by user, try to locate tool using the code snippet 11707 for ac_prog in touch 11708 do 11709 # Extract the first word of "$ac_prog", so it can be a program name with args. 11710 set dummy $ac_prog; ac_word=$2 11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11712 $as_echo_n "checking for $ac_word... " >&6; } 11713 if ${ac_cv_path_TOUCH+:} false; then : 11714 $as_echo_n "(cached) " >&6 11715 else 11716 case $TOUCH in 11717 [\\/]* | ?:[\\/]*) 11718 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11719 ;; 11720 *) 11721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11722 for as_dir in $PATH 11723 do 11724 IFS=$as_save_IFS 11725 test -z "$as_dir" && as_dir=. 11726 for ac_exec_ext in '' $ac_executable_extensions; do 11727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11728 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11730 break 2 11731 fi 11732 done 11733 done 11734 IFS=$as_save_IFS 11735 11736 ;; 11737 esac 11738 fi 11739 TOUCH=$ac_cv_path_TOUCH 11740 if test -n "$TOUCH"; then 11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11742 $as_echo "$TOUCH" >&6; } 11743 else 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11745 $as_echo "no" >&6; } 11746 fi 11747 11748 11749 test -n "$TOUCH" && break 11750 done 11751 11752 else 11753 # The variable is set, but is it from the command line or the environment? 11754 11755 # Try to remove the string !TOUCH! from our list. 11756 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11757 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11758 # If it failed, the variable was not from the command line. Ignore it, 11759 # but warn the user (except for BASH, which is always set by the calling BASH). 11760 if test "xTOUCH" != xBASH; then 11761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11762 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11763 fi 11764 # Try to locate tool using the code snippet 11765 for ac_prog in touch 11766 do 11767 # Extract the first word of "$ac_prog", so it can be a program name with args. 11768 set dummy $ac_prog; ac_word=$2 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11770 $as_echo_n "checking for $ac_word... " >&6; } 11771 if ${ac_cv_path_TOUCH+:} false; then : 11772 $as_echo_n "(cached) " >&6 11773 else 11774 case $TOUCH in 11775 [\\/]* | ?:[\\/]*) 11776 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11777 ;; 11778 *) 11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11780 for as_dir in $PATH 11781 do 11782 IFS=$as_save_IFS 11783 test -z "$as_dir" && as_dir=. 11784 for ac_exec_ext in '' $ac_executable_extensions; do 11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11786 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11788 break 2 11789 fi 11790 done 11791 done 11792 IFS=$as_save_IFS 11793 11794 ;; 11795 esac 11796 fi 11797 TOUCH=$ac_cv_path_TOUCH 11798 if test -n "$TOUCH"; then 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11800 $as_echo "$TOUCH" >&6; } 11801 else 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11803 $as_echo "no" >&6; } 11804 fi 11805 11806 11807 test -n "$TOUCH" && break 11808 done 11809 11810 else 11811 # If it succeeded, then it was overridden by the user. We will use it 11812 # for the tool. 11813 11814 # First remove it from the list of overridden variables, so we can test 11815 # for unknown variables in the end. 11816 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11817 11818 # Check if we try to supply an empty value 11819 if test "x$TOUCH" = x; then 11820 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11821 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11823 $as_echo_n "checking for TOUCH... " >&6; } 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11825 $as_echo "disabled" >&6; } 11826 else 11827 # Check if the provided tool contains a complete path. 11828 tool_specified="$TOUCH" 11829 tool_basename="${tool_specified##*/}" 11830 if test "x$tool_basename" = "x$tool_specified"; then 11831 # A command without a complete path is provided, search $PATH. 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11833 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11834 # Extract the first word of "$tool_basename", so it can be a program name with args. 11835 set dummy $tool_basename; ac_word=$2 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11837 $as_echo_n "checking for $ac_word... " >&6; } 11838 if ${ac_cv_path_TOUCH+:} false; then : 11839 $as_echo_n "(cached) " >&6 11840 else 11841 case $TOUCH in 11842 [\\/]* | ?:[\\/]*) 11843 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11844 ;; 11845 *) 11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11847 for as_dir in $PATH 11848 do 11849 IFS=$as_save_IFS 11850 test -z "$as_dir" && as_dir=. 11851 for ac_exec_ext in '' $ac_executable_extensions; do 11852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11853 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11855 break 2 11856 fi 11857 done 11858 done 11859 IFS=$as_save_IFS 11860 11861 ;; 11862 esac 11863 fi 11864 TOUCH=$ac_cv_path_TOUCH 11865 if test -n "$TOUCH"; then 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11867 $as_echo "$TOUCH" >&6; } 11868 else 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11870 $as_echo "no" >&6; } 11871 fi 11872 11873 11874 if test "x$TOUCH" = x; then 11875 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11876 fi 11877 else 11878 # Otherwise we believe it is a complete path. Use it as it is. 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11880 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11882 $as_echo_n "checking for TOUCH... " >&6; } 11883 if test ! -x "$tool_specified"; then 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11885 $as_echo "not found" >&6; } 11886 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11887 fi 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11889 $as_echo "$tool_specified" >&6; } 11890 fi 11891 fi 11892 fi 11893 11894 fi 11895 11896 11897 11898 if test "x$TOUCH" = x; then 11899 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11900 fi 11901 11902 11903 11904 11905 11906 # Publish this variable in the help. 11907 11908 11909 if [ -z "${TR+x}" ]; then 11910 # The variable is not set by user, try to locate tool using the code snippet 11911 for ac_prog in tr 11912 do 11913 # Extract the first word of "$ac_prog", so it can be a program name with args. 11914 set dummy $ac_prog; ac_word=$2 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11916 $as_echo_n "checking for $ac_word... " >&6; } 11917 if ${ac_cv_path_TR+:} false; then : 11918 $as_echo_n "(cached) " >&6 11919 else 11920 case $TR in 11921 [\\/]* | ?:[\\/]*) 11922 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11923 ;; 11924 *) 11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11926 for as_dir in $PATH 11927 do 11928 IFS=$as_save_IFS 11929 test -z "$as_dir" && as_dir=. 11930 for ac_exec_ext in '' $ac_executable_extensions; do 11931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11932 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11934 break 2 11935 fi 11936 done 11937 done 11938 IFS=$as_save_IFS 11939 11940 ;; 11941 esac 11942 fi 11943 TR=$ac_cv_path_TR 11944 if test -n "$TR"; then 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11946 $as_echo "$TR" >&6; } 11947 else 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11949 $as_echo "no" >&6; } 11950 fi 11951 11952 11953 test -n "$TR" && break 11954 done 11955 11956 else 11957 # The variable is set, but is it from the command line or the environment? 11958 11959 # Try to remove the string !TR! from our list. 11960 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 11961 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11962 # If it failed, the variable was not from the command line. Ignore it, 11963 # but warn the user (except for BASH, which is always set by the calling BASH). 11964 if test "xTR" != xBASH; then 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 11966 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 11967 fi 11968 # Try to locate tool using the code snippet 11969 for ac_prog in tr 11970 do 11971 # Extract the first word of "$ac_prog", so it can be a program name with args. 11972 set dummy $ac_prog; ac_word=$2 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11974 $as_echo_n "checking for $ac_word... " >&6; } 11975 if ${ac_cv_path_TR+:} false; then : 11976 $as_echo_n "(cached) " >&6 11977 else 11978 case $TR in 11979 [\\/]* | ?:[\\/]*) 11980 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11981 ;; 11982 *) 11983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11984 for as_dir in $PATH 11985 do 11986 IFS=$as_save_IFS 11987 test -z "$as_dir" && as_dir=. 11988 for ac_exec_ext in '' $ac_executable_extensions; do 11989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11990 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11992 break 2 11993 fi 11994 done 11995 done 11996 IFS=$as_save_IFS 11997 11998 ;; 11999 esac 12000 fi 12001 TR=$ac_cv_path_TR 12002 if test -n "$TR"; then 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12004 $as_echo "$TR" >&6; } 12005 else 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12007 $as_echo "no" >&6; } 12008 fi 12009 12010 12011 test -n "$TR" && break 12012 done 12013 12014 else 12015 # If it succeeded, then it was overridden by the user. We will use it 12016 # for the tool. 12017 12018 # First remove it from the list of overridden variables, so we can test 12019 # for unknown variables in the end. 12020 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12021 12022 # Check if we try to supply an empty value 12023 if test "x$TR" = x; then 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12025 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12027 $as_echo_n "checking for TR... " >&6; } 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12029 $as_echo "disabled" >&6; } 12030 else 12031 # Check if the provided tool contains a complete path. 12032 tool_specified="$TR" 12033 tool_basename="${tool_specified##*/}" 12034 if test "x$tool_basename" = "x$tool_specified"; then 12035 # A command without a complete path is provided, search $PATH. 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12037 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12038 # Extract the first word of "$tool_basename", so it can be a program name with args. 12039 set dummy $tool_basename; ac_word=$2 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12041 $as_echo_n "checking for $ac_word... " >&6; } 12042 if ${ac_cv_path_TR+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044 else 12045 case $TR in 12046 [\\/]* | ?:[\\/]*) 12047 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12048 ;; 12049 *) 12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12051 for as_dir in $PATH 12052 do 12053 IFS=$as_save_IFS 12054 test -z "$as_dir" && as_dir=. 12055 for ac_exec_ext in '' $ac_executable_extensions; do 12056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12057 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12059 break 2 12060 fi 12061 done 12062 done 12063 IFS=$as_save_IFS 12064 12065 ;; 12066 esac 12067 fi 12068 TR=$ac_cv_path_TR 12069 if test -n "$TR"; then 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12071 $as_echo "$TR" >&6; } 12072 else 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12074 $as_echo "no" >&6; } 12075 fi 12076 12077 12078 if test "x$TR" = x; then 12079 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12080 fi 12081 else 12082 # Otherwise we believe it is a complete path. Use it as it is. 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12084 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12086 $as_echo_n "checking for TR... " >&6; } 12087 if test ! -x "$tool_specified"; then 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12089 $as_echo "not found" >&6; } 12090 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12091 fi 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12093 $as_echo "$tool_specified" >&6; } 12094 fi 12095 fi 12096 fi 12097 12098 fi 12099 12100 12101 12102 if test "x$TR" = x; then 12103 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12104 fi 12105 12106 12107 12108 12109 12110 # Publish this variable in the help. 12111 12112 12113 if [ -z "${UNAME+x}" ]; then 12114 # The variable is not set by user, try to locate tool using the code snippet 12115 for ac_prog in uname 12116 do 12117 # Extract the first word of "$ac_prog", so it can be a program name with args. 12118 set dummy $ac_prog; ac_word=$2 12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12120 $as_echo_n "checking for $ac_word... " >&6; } 12121 if ${ac_cv_path_UNAME+:} false; then : 12122 $as_echo_n "(cached) " >&6 12123 else 12124 case $UNAME in 12125 [\\/]* | ?:[\\/]*) 12126 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12127 ;; 12128 *) 12129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12130 for as_dir in $PATH 12131 do 12132 IFS=$as_save_IFS 12133 test -z "$as_dir" && as_dir=. 12134 for ac_exec_ext in '' $ac_executable_extensions; do 12135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12136 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12138 break 2 12139 fi 12140 done 12141 done 12142 IFS=$as_save_IFS 12143 12144 ;; 12145 esac 12146 fi 12147 UNAME=$ac_cv_path_UNAME 12148 if test -n "$UNAME"; then 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12150 $as_echo "$UNAME" >&6; } 12151 else 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12153 $as_echo "no" >&6; } 12154 fi 12155 12156 12157 test -n "$UNAME" && break 12158 done 12159 12160 else 12161 # The variable is set, but is it from the command line or the environment? 12162 12163 # Try to remove the string !UNAME! from our list. 12164 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12165 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12166 # If it failed, the variable was not from the command line. Ignore it, 12167 # but warn the user (except for BASH, which is always set by the calling BASH). 12168 if test "xUNAME" != xBASH; then 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12170 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12171 fi 12172 # Try to locate tool using the code snippet 12173 for ac_prog in uname 12174 do 12175 # Extract the first word of "$ac_prog", so it can be a program name with args. 12176 set dummy $ac_prog; ac_word=$2 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12178 $as_echo_n "checking for $ac_word... " >&6; } 12179 if ${ac_cv_path_UNAME+:} false; then : 12180 $as_echo_n "(cached) " >&6 12181 else 12182 case $UNAME in 12183 [\\/]* | ?:[\\/]*) 12184 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12185 ;; 12186 *) 12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12188 for as_dir in $PATH 12189 do 12190 IFS=$as_save_IFS 12191 test -z "$as_dir" && as_dir=. 12192 for ac_exec_ext in '' $ac_executable_extensions; do 12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12194 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12196 break 2 12197 fi 12198 done 12199 done 12200 IFS=$as_save_IFS 12201 12202 ;; 12203 esac 12204 fi 12205 UNAME=$ac_cv_path_UNAME 12206 if test -n "$UNAME"; then 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12208 $as_echo "$UNAME" >&6; } 12209 else 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12211 $as_echo "no" >&6; } 12212 fi 12213 12214 12215 test -n "$UNAME" && break 12216 done 12217 12218 else 12219 # If it succeeded, then it was overridden by the user. We will use it 12220 # for the tool. 12221 12222 # First remove it from the list of overridden variables, so we can test 12223 # for unknown variables in the end. 12224 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12225 12226 # Check if we try to supply an empty value 12227 if test "x$UNAME" = x; then 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12229 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12231 $as_echo_n "checking for UNAME... " >&6; } 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12233 $as_echo "disabled" >&6; } 12234 else 12235 # Check if the provided tool contains a complete path. 12236 tool_specified="$UNAME" 12237 tool_basename="${tool_specified##*/}" 12238 if test "x$tool_basename" = "x$tool_specified"; then 12239 # A command without a complete path is provided, search $PATH. 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12241 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12242 # Extract the first word of "$tool_basename", so it can be a program name with args. 12243 set dummy $tool_basename; ac_word=$2 12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12245 $as_echo_n "checking for $ac_word... " >&6; } 12246 if ${ac_cv_path_UNAME+:} false; then : 12247 $as_echo_n "(cached) " >&6 12248 else 12249 case $UNAME in 12250 [\\/]* | ?:[\\/]*) 12251 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12252 ;; 12253 *) 12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12255 for as_dir in $PATH 12256 do 12257 IFS=$as_save_IFS 12258 test -z "$as_dir" && as_dir=. 12259 for ac_exec_ext in '' $ac_executable_extensions; do 12260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12261 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12263 break 2 12264 fi 12265 done 12266 done 12267 IFS=$as_save_IFS 12268 12269 ;; 12270 esac 12271 fi 12272 UNAME=$ac_cv_path_UNAME 12273 if test -n "$UNAME"; then 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12275 $as_echo "$UNAME" >&6; } 12276 else 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12278 $as_echo "no" >&6; } 12279 fi 12280 12281 12282 if test "x$UNAME" = x; then 12283 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12284 fi 12285 else 12286 # Otherwise we believe it is a complete path. Use it as it is. 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12288 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12290 $as_echo_n "checking for UNAME... " >&6; } 12291 if test ! -x "$tool_specified"; then 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12293 $as_echo "not found" >&6; } 12294 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12295 fi 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12297 $as_echo "$tool_specified" >&6; } 12298 fi 12299 fi 12300 fi 12301 12302 fi 12303 12304 12305 12306 if test "x$UNAME" = x; then 12307 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12308 fi 12309 12310 12311 12312 12313 12314 # Publish this variable in the help. 12315 12316 12317 if [ -z "${UNIQ+x}" ]; then 12318 # The variable is not set by user, try to locate tool using the code snippet 12319 for ac_prog in uniq 12320 do 12321 # Extract the first word of "$ac_prog", so it can be a program name with args. 12322 set dummy $ac_prog; ac_word=$2 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12324 $as_echo_n "checking for $ac_word... " >&6; } 12325 if ${ac_cv_path_UNIQ+:} false; then : 12326 $as_echo_n "(cached) " >&6 12327 else 12328 case $UNIQ in 12329 [\\/]* | ?:[\\/]*) 12330 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12331 ;; 12332 *) 12333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12334 for as_dir in $PATH 12335 do 12336 IFS=$as_save_IFS 12337 test -z "$as_dir" && as_dir=. 12338 for ac_exec_ext in '' $ac_executable_extensions; do 12339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12340 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12342 break 2 12343 fi 12344 done 12345 done 12346 IFS=$as_save_IFS 12347 12348 ;; 12349 esac 12350 fi 12351 UNIQ=$ac_cv_path_UNIQ 12352 if test -n "$UNIQ"; then 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12354 $as_echo "$UNIQ" >&6; } 12355 else 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12357 $as_echo "no" >&6; } 12358 fi 12359 12360 12361 test -n "$UNIQ" && break 12362 done 12363 12364 else 12365 # The variable is set, but is it from the command line or the environment? 12366 12367 # Try to remove the string !UNIQ! from our list. 12368 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12369 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12370 # If it failed, the variable was not from the command line. Ignore it, 12371 # but warn the user (except for BASH, which is always set by the calling BASH). 12372 if test "xUNIQ" != xBASH; then 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12374 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12375 fi 12376 # Try to locate tool using the code snippet 12377 for ac_prog in uniq 12378 do 12379 # Extract the first word of "$ac_prog", so it can be a program name with args. 12380 set dummy $ac_prog; ac_word=$2 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12382 $as_echo_n "checking for $ac_word... " >&6; } 12383 if ${ac_cv_path_UNIQ+:} false; then : 12384 $as_echo_n "(cached) " >&6 12385 else 12386 case $UNIQ in 12387 [\\/]* | ?:[\\/]*) 12388 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12389 ;; 12390 *) 12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12392 for as_dir in $PATH 12393 do 12394 IFS=$as_save_IFS 12395 test -z "$as_dir" && as_dir=. 12396 for ac_exec_ext in '' $ac_executable_extensions; do 12397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12398 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12400 break 2 12401 fi 12402 done 12403 done 12404 IFS=$as_save_IFS 12405 12406 ;; 12407 esac 12408 fi 12409 UNIQ=$ac_cv_path_UNIQ 12410 if test -n "$UNIQ"; then 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12412 $as_echo "$UNIQ" >&6; } 12413 else 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12415 $as_echo "no" >&6; } 12416 fi 12417 12418 12419 test -n "$UNIQ" && break 12420 done 12421 12422 else 12423 # If it succeeded, then it was overridden by the user. We will use it 12424 # for the tool. 12425 12426 # First remove it from the list of overridden variables, so we can test 12427 # for unknown variables in the end. 12428 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12429 12430 # Check if we try to supply an empty value 12431 if test "x$UNIQ" = x; then 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12433 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12435 $as_echo_n "checking for UNIQ... " >&6; } 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12437 $as_echo "disabled" >&6; } 12438 else 12439 # Check if the provided tool contains a complete path. 12440 tool_specified="$UNIQ" 12441 tool_basename="${tool_specified##*/}" 12442 if test "x$tool_basename" = "x$tool_specified"; then 12443 # A command without a complete path is provided, search $PATH. 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12445 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12446 # Extract the first word of "$tool_basename", so it can be a program name with args. 12447 set dummy $tool_basename; ac_word=$2 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12449 $as_echo_n "checking for $ac_word... " >&6; } 12450 if ${ac_cv_path_UNIQ+:} false; then : 12451 $as_echo_n "(cached) " >&6 12452 else 12453 case $UNIQ in 12454 [\\/]* | ?:[\\/]*) 12455 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12456 ;; 12457 *) 12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12459 for as_dir in $PATH 12460 do 12461 IFS=$as_save_IFS 12462 test -z "$as_dir" && as_dir=. 12463 for ac_exec_ext in '' $ac_executable_extensions; do 12464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12465 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12467 break 2 12468 fi 12469 done 12470 done 12471 IFS=$as_save_IFS 12472 12473 ;; 12474 esac 12475 fi 12476 UNIQ=$ac_cv_path_UNIQ 12477 if test -n "$UNIQ"; then 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12479 $as_echo "$UNIQ" >&6; } 12480 else 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12482 $as_echo "no" >&6; } 12483 fi 12484 12485 12486 if test "x$UNIQ" = x; then 12487 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12488 fi 12489 else 12490 # Otherwise we believe it is a complete path. Use it as it is. 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12492 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12494 $as_echo_n "checking for UNIQ... " >&6; } 12495 if test ! -x "$tool_specified"; then 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12497 $as_echo "not found" >&6; } 12498 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12499 fi 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12501 $as_echo "$tool_specified" >&6; } 12502 fi 12503 fi 12504 fi 12505 12506 fi 12507 12508 12509 12510 if test "x$UNIQ" = x; then 12511 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12512 fi 12513 12514 12515 12516 12517 12518 # Publish this variable in the help. 12519 12520 12521 if [ -z "${WC+x}" ]; then 12522 # The variable is not set by user, try to locate tool using the code snippet 12523 for ac_prog in wc 12524 do 12525 # Extract the first word of "$ac_prog", so it can be a program name with args. 12526 set dummy $ac_prog; ac_word=$2 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12528 $as_echo_n "checking for $ac_word... " >&6; } 12529 if ${ac_cv_path_WC+:} false; then : 12530 $as_echo_n "(cached) " >&6 12531 else 12532 case $WC in 12533 [\\/]* | ?:[\\/]*) 12534 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12535 ;; 12536 *) 12537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12538 for as_dir in $PATH 12539 do 12540 IFS=$as_save_IFS 12541 test -z "$as_dir" && as_dir=. 12542 for ac_exec_ext in '' $ac_executable_extensions; do 12543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12544 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12546 break 2 12547 fi 12548 done 12549 done 12550 IFS=$as_save_IFS 12551 12552 ;; 12553 esac 12554 fi 12555 WC=$ac_cv_path_WC 12556 if test -n "$WC"; then 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12558 $as_echo "$WC" >&6; } 12559 else 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12561 $as_echo "no" >&6; } 12562 fi 12563 12564 12565 test -n "$WC" && break 12566 done 12567 12568 else 12569 # The variable is set, but is it from the command line or the environment? 12570 12571 # Try to remove the string !WC! from our list. 12572 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12573 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12574 # If it failed, the variable was not from the command line. Ignore it, 12575 # but warn the user (except for BASH, which is always set by the calling BASH). 12576 if test "xWC" != xBASH; then 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12578 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12579 fi 12580 # Try to locate tool using the code snippet 12581 for ac_prog in wc 12582 do 12583 # Extract the first word of "$ac_prog", so it can be a program name with args. 12584 set dummy $ac_prog; ac_word=$2 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12586 $as_echo_n "checking for $ac_word... " >&6; } 12587 if ${ac_cv_path_WC+:} false; then : 12588 $as_echo_n "(cached) " >&6 12589 else 12590 case $WC in 12591 [\\/]* | ?:[\\/]*) 12592 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12593 ;; 12594 *) 12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12596 for as_dir in $PATH 12597 do 12598 IFS=$as_save_IFS 12599 test -z "$as_dir" && as_dir=. 12600 for ac_exec_ext in '' $ac_executable_extensions; do 12601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12602 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12604 break 2 12605 fi 12606 done 12607 done 12608 IFS=$as_save_IFS 12609 12610 ;; 12611 esac 12612 fi 12613 WC=$ac_cv_path_WC 12614 if test -n "$WC"; then 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12616 $as_echo "$WC" >&6; } 12617 else 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12619 $as_echo "no" >&6; } 12620 fi 12621 12622 12623 test -n "$WC" && break 12624 done 12625 12626 else 12627 # If it succeeded, then it was overridden by the user. We will use it 12628 # for the tool. 12629 12630 # First remove it from the list of overridden variables, so we can test 12631 # for unknown variables in the end. 12632 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12633 12634 # Check if we try to supply an empty value 12635 if test "x$WC" = x; then 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12637 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12639 $as_echo_n "checking for WC... " >&6; } 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12641 $as_echo "disabled" >&6; } 12642 else 12643 # Check if the provided tool contains a complete path. 12644 tool_specified="$WC" 12645 tool_basename="${tool_specified##*/}" 12646 if test "x$tool_basename" = "x$tool_specified"; then 12647 # A command without a complete path is provided, search $PATH. 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12649 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12650 # Extract the first word of "$tool_basename", so it can be a program name with args. 12651 set dummy $tool_basename; ac_word=$2 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12653 $as_echo_n "checking for $ac_word... " >&6; } 12654 if ${ac_cv_path_WC+:} false; then : 12655 $as_echo_n "(cached) " >&6 12656 else 12657 case $WC in 12658 [\\/]* | ?:[\\/]*) 12659 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12660 ;; 12661 *) 12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12663 for as_dir in $PATH 12664 do 12665 IFS=$as_save_IFS 12666 test -z "$as_dir" && as_dir=. 12667 for ac_exec_ext in '' $ac_executable_extensions; do 12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12669 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12671 break 2 12672 fi 12673 done 12674 done 12675 IFS=$as_save_IFS 12676 12677 ;; 12678 esac 12679 fi 12680 WC=$ac_cv_path_WC 12681 if test -n "$WC"; then 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12683 $as_echo "$WC" >&6; } 12684 else 12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12686 $as_echo "no" >&6; } 12687 fi 12688 12689 12690 if test "x$WC" = x; then 12691 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12692 fi 12693 else 12694 # Otherwise we believe it is a complete path. Use it as it is. 12695 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12696 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12698 $as_echo_n "checking for WC... " >&6; } 12699 if test ! -x "$tool_specified"; then 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12701 $as_echo "not found" >&6; } 12702 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12703 fi 12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12705 $as_echo "$tool_specified" >&6; } 12706 fi 12707 fi 12708 fi 12709 12710 fi 12711 12712 12713 12714 if test "x$WC" = x; then 12715 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12716 fi 12717 12718 12719 12720 12721 12722 # Publish this variable in the help. 12723 12724 12725 if [ -z "${WHICH+x}" ]; then 12726 # The variable is not set by user, try to locate tool using the code snippet 12727 for ac_prog in which 12728 do 12729 # Extract the first word of "$ac_prog", so it can be a program name with args. 12730 set dummy $ac_prog; ac_word=$2 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12732 $as_echo_n "checking for $ac_word... " >&6; } 12733 if ${ac_cv_path_WHICH+:} false; then : 12734 $as_echo_n "(cached) " >&6 12735 else 12736 case $WHICH in 12737 [\\/]* | ?:[\\/]*) 12738 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12739 ;; 12740 *) 12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12742 for as_dir in $PATH 12743 do 12744 IFS=$as_save_IFS 12745 test -z "$as_dir" && as_dir=. 12746 for ac_exec_ext in '' $ac_executable_extensions; do 12747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12748 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12750 break 2 12751 fi 12752 done 12753 done 12754 IFS=$as_save_IFS 12755 12756 ;; 12757 esac 12758 fi 12759 WHICH=$ac_cv_path_WHICH 12760 if test -n "$WHICH"; then 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12762 $as_echo "$WHICH" >&6; } 12763 else 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12765 $as_echo "no" >&6; } 12766 fi 12767 12768 12769 test -n "$WHICH" && break 12770 done 12771 12772 else 12773 # The variable is set, but is it from the command line or the environment? 12774 12775 # Try to remove the string !WHICH! from our list. 12776 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12777 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12778 # If it failed, the variable was not from the command line. Ignore it, 12779 # but warn the user (except for BASH, which is always set by the calling BASH). 12780 if test "xWHICH" != xBASH; then 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12782 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12783 fi 12784 # Try to locate tool using the code snippet 12785 for ac_prog in which 12786 do 12787 # Extract the first word of "$ac_prog", so it can be a program name with args. 12788 set dummy $ac_prog; ac_word=$2 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12790 $as_echo_n "checking for $ac_word... " >&6; } 12791 if ${ac_cv_path_WHICH+:} false; then : 12792 $as_echo_n "(cached) " >&6 12793 else 12794 case $WHICH in 12795 [\\/]* | ?:[\\/]*) 12796 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12797 ;; 12798 *) 12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12800 for as_dir in $PATH 12801 do 12802 IFS=$as_save_IFS 12803 test -z "$as_dir" && as_dir=. 12804 for ac_exec_ext in '' $ac_executable_extensions; do 12805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12806 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12808 break 2 12809 fi 12810 done 12811 done 12812 IFS=$as_save_IFS 12813 12814 ;; 12815 esac 12816 fi 12817 WHICH=$ac_cv_path_WHICH 12818 if test -n "$WHICH"; then 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12820 $as_echo "$WHICH" >&6; } 12821 else 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12823 $as_echo "no" >&6; } 12824 fi 12825 12826 12827 test -n "$WHICH" && break 12828 done 12829 12830 else 12831 # If it succeeded, then it was overridden by the user. We will use it 12832 # for the tool. 12833 12834 # First remove it from the list of overridden variables, so we can test 12835 # for unknown variables in the end. 12836 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12837 12838 # Check if we try to supply an empty value 12839 if test "x$WHICH" = x; then 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12841 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12843 $as_echo_n "checking for WHICH... " >&6; } 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12845 $as_echo "disabled" >&6; } 12846 else 12847 # Check if the provided tool contains a complete path. 12848 tool_specified="$WHICH" 12849 tool_basename="${tool_specified##*/}" 12850 if test "x$tool_basename" = "x$tool_specified"; then 12851 # A command without a complete path is provided, search $PATH. 12852 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12853 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12854 # Extract the first word of "$tool_basename", so it can be a program name with args. 12855 set dummy $tool_basename; ac_word=$2 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12857 $as_echo_n "checking for $ac_word... " >&6; } 12858 if ${ac_cv_path_WHICH+:} false; then : 12859 $as_echo_n "(cached) " >&6 12860 else 12861 case $WHICH in 12862 [\\/]* | ?:[\\/]*) 12863 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12864 ;; 12865 *) 12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12867 for as_dir in $PATH 12868 do 12869 IFS=$as_save_IFS 12870 test -z "$as_dir" && as_dir=. 12871 for ac_exec_ext in '' $ac_executable_extensions; do 12872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12873 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12875 break 2 12876 fi 12877 done 12878 done 12879 IFS=$as_save_IFS 12880 12881 ;; 12882 esac 12883 fi 12884 WHICH=$ac_cv_path_WHICH 12885 if test -n "$WHICH"; then 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12887 $as_echo "$WHICH" >&6; } 12888 else 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12890 $as_echo "no" >&6; } 12891 fi 12892 12893 12894 if test "x$WHICH" = x; then 12895 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12896 fi 12897 else 12898 # Otherwise we believe it is a complete path. Use it as it is. 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12900 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12902 $as_echo_n "checking for WHICH... " >&6; } 12903 if test ! -x "$tool_specified"; then 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12905 $as_echo "not found" >&6; } 12906 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12907 fi 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12909 $as_echo "$tool_specified" >&6; } 12910 fi 12911 fi 12912 fi 12913 12914 fi 12915 12916 12917 12918 if test "x$WHICH" = x; then 12919 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12920 fi 12921 12922 12923 12924 12925 12926 # Publish this variable in the help. 12927 12928 12929 if [ -z "${XARGS+x}" ]; then 12930 # The variable is not set by user, try to locate tool using the code snippet 12931 for ac_prog in xargs 12932 do 12933 # Extract the first word of "$ac_prog", so it can be a program name with args. 12934 set dummy $ac_prog; ac_word=$2 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12936 $as_echo_n "checking for $ac_word... " >&6; } 12937 if ${ac_cv_path_XARGS+:} false; then : 12938 $as_echo_n "(cached) " >&6 12939 else 12940 case $XARGS in 12941 [\\/]* | ?:[\\/]*) 12942 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12943 ;; 12944 *) 12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12946 for as_dir in $PATH 12947 do 12948 IFS=$as_save_IFS 12949 test -z "$as_dir" && as_dir=. 12950 for ac_exec_ext in '' $ac_executable_extensions; do 12951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12952 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12954 break 2 12955 fi 12956 done 12957 done 12958 IFS=$as_save_IFS 12959 12960 ;; 12961 esac 12962 fi 12963 XARGS=$ac_cv_path_XARGS 12964 if test -n "$XARGS"; then 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12966 $as_echo "$XARGS" >&6; } 12967 else 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12969 $as_echo "no" >&6; } 12970 fi 12971 12972 12973 test -n "$XARGS" && break 12974 done 12975 12976 else 12977 # The variable is set, but is it from the command line or the environment? 12978 12979 # Try to remove the string !XARGS! from our list. 12980 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 12981 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12982 # If it failed, the variable was not from the command line. Ignore it, 12983 # but warn the user (except for BASH, which is always set by the calling BASH). 12984 if test "xXARGS" != xBASH; then 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 12986 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 12987 fi 12988 # Try to locate tool using the code snippet 12989 for ac_prog in xargs 12990 do 12991 # Extract the first word of "$ac_prog", so it can be a program name with args. 12992 set dummy $ac_prog; ac_word=$2 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12994 $as_echo_n "checking for $ac_word... " >&6; } 12995 if ${ac_cv_path_XARGS+:} false; then : 12996 $as_echo_n "(cached) " >&6 12997 else 12998 case $XARGS in 12999 [\\/]* | ?:[\\/]*) 13000 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13001 ;; 13002 *) 13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13004 for as_dir in $PATH 13005 do 13006 IFS=$as_save_IFS 13007 test -z "$as_dir" && as_dir=. 13008 for ac_exec_ext in '' $ac_executable_extensions; do 13009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13010 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13012 break 2 13013 fi 13014 done 13015 done 13016 IFS=$as_save_IFS 13017 13018 ;; 13019 esac 13020 fi 13021 XARGS=$ac_cv_path_XARGS 13022 if test -n "$XARGS"; then 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13024 $as_echo "$XARGS" >&6; } 13025 else 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13027 $as_echo "no" >&6; } 13028 fi 13029 13030 13031 test -n "$XARGS" && break 13032 done 13033 13034 else 13035 # If it succeeded, then it was overridden by the user. We will use it 13036 # for the tool. 13037 13038 # First remove it from the list of overridden variables, so we can test 13039 # for unknown variables in the end. 13040 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13041 13042 # Check if we try to supply an empty value 13043 if test "x$XARGS" = x; then 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13045 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13047 $as_echo_n "checking for XARGS... " >&6; } 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13049 $as_echo "disabled" >&6; } 13050 else 13051 # Check if the provided tool contains a complete path. 13052 tool_specified="$XARGS" 13053 tool_basename="${tool_specified##*/}" 13054 if test "x$tool_basename" = "x$tool_specified"; then 13055 # A command without a complete path is provided, search $PATH. 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13057 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13058 # Extract the first word of "$tool_basename", so it can be a program name with args. 13059 set dummy $tool_basename; ac_word=$2 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13061 $as_echo_n "checking for $ac_word... " >&6; } 13062 if ${ac_cv_path_XARGS+:} false; then : 13063 $as_echo_n "(cached) " >&6 13064 else 13065 case $XARGS in 13066 [\\/]* | ?:[\\/]*) 13067 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13068 ;; 13069 *) 13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13071 for as_dir in $PATH 13072 do 13073 IFS=$as_save_IFS 13074 test -z "$as_dir" && as_dir=. 13075 for ac_exec_ext in '' $ac_executable_extensions; do 13076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13077 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13079 break 2 13080 fi 13081 done 13082 done 13083 IFS=$as_save_IFS 13084 13085 ;; 13086 esac 13087 fi 13088 XARGS=$ac_cv_path_XARGS 13089 if test -n "$XARGS"; then 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13091 $as_echo "$XARGS" >&6; } 13092 else 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13094 $as_echo "no" >&6; } 13095 fi 13096 13097 13098 if test "x$XARGS" = x; then 13099 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13100 fi 13101 else 13102 # Otherwise we believe it is a complete path. Use it as it is. 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13104 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13106 $as_echo_n "checking for XARGS... " >&6; } 13107 if test ! -x "$tool_specified"; then 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13109 $as_echo "not found" >&6; } 13110 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13111 fi 13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13113 $as_echo "$tool_specified" >&6; } 13114 fi 13115 fi 13116 fi 13117 13118 fi 13119 13120 13121 13122 if test "x$XARGS" = x; then 13123 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13124 fi 13125 13126 13127 13128 # Then required tools that require some special treatment. 13129 13130 13131 # Publish this variable in the help. 13132 13133 13134 if [ -z "${AWK+x}" ]; then 13135 # The variable is not set by user, try to locate tool using the code snippet 13136 for ac_prog in gawk mawk nawk awk 13137 do 13138 # Extract the first word of "$ac_prog", so it can be a program name with args. 13139 set dummy $ac_prog; ac_word=$2 13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13141 $as_echo_n "checking for $ac_word... " >&6; } 13142 if ${ac_cv_prog_AWK+:} false; then : 13143 $as_echo_n "(cached) " >&6 13144 else 13145 if test -n "$AWK"; then 13146 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13147 else 13148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13149 for as_dir in $PATH 13150 do 13151 IFS=$as_save_IFS 13152 test -z "$as_dir" && as_dir=. 13153 for ac_exec_ext in '' $ac_executable_extensions; do 13154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13155 ac_cv_prog_AWK="$ac_prog" 13156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13157 break 2 13158 fi 13159 done 13160 done 13161 IFS=$as_save_IFS 13162 13163 fi 13164 fi 13165 AWK=$ac_cv_prog_AWK 13166 if test -n "$AWK"; then 13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13168 $as_echo "$AWK" >&6; } 13169 else 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13171 $as_echo "no" >&6; } 13172 fi 13173 13174 13175 test -n "$AWK" && break 13176 done 13177 13178 else 13179 # The variable is set, but is it from the command line or the environment? 13180 13181 # Try to remove the string !AWK! from our list. 13182 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13183 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13184 # If it failed, the variable was not from the command line. Ignore it, 13185 # but warn the user (except for BASH, which is always set by the calling BASH). 13186 if test "xAWK" != xBASH; then 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13188 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13189 fi 13190 # Try to locate tool using the code snippet 13191 for ac_prog in gawk mawk nawk awk 13192 do 13193 # Extract the first word of "$ac_prog", so it can be a program name with args. 13194 set dummy $ac_prog; ac_word=$2 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13196 $as_echo_n "checking for $ac_word... " >&6; } 13197 if ${ac_cv_prog_AWK+:} false; then : 13198 $as_echo_n "(cached) " >&6 13199 else 13200 if test -n "$AWK"; then 13201 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13202 else 13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13204 for as_dir in $PATH 13205 do 13206 IFS=$as_save_IFS 13207 test -z "$as_dir" && as_dir=. 13208 for ac_exec_ext in '' $ac_executable_extensions; do 13209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13210 ac_cv_prog_AWK="$ac_prog" 13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13212 break 2 13213 fi 13214 done 13215 done 13216 IFS=$as_save_IFS 13217 13218 fi 13219 fi 13220 AWK=$ac_cv_prog_AWK 13221 if test -n "$AWK"; then 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13223 $as_echo "$AWK" >&6; } 13224 else 13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13226 $as_echo "no" >&6; } 13227 fi 13228 13229 13230 test -n "$AWK" && break 13231 done 13232 13233 else 13234 # If it succeeded, then it was overridden by the user. We will use it 13235 # for the tool. 13236 13237 # First remove it from the list of overridden variables, so we can test 13238 # for unknown variables in the end. 13239 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13240 13241 # Check if we try to supply an empty value 13242 if test "x$AWK" = x; then 13243 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13244 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13246 $as_echo_n "checking for AWK... " >&6; } 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13248 $as_echo "disabled" >&6; } 13249 else 13250 # Check if the provided tool contains a complete path. 13251 tool_specified="$AWK" 13252 tool_basename="${tool_specified##*/}" 13253 if test "x$tool_basename" = "x$tool_specified"; then 13254 # A command without a complete path is provided, search $PATH. 13255 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13256 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13257 # Extract the first word of "$tool_basename", so it can be a program name with args. 13258 set dummy $tool_basename; ac_word=$2 13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13260 $as_echo_n "checking for $ac_word... " >&6; } 13261 if ${ac_cv_path_AWK+:} false; then : 13262 $as_echo_n "(cached) " >&6 13263 else 13264 case $AWK in 13265 [\\/]* | ?:[\\/]*) 13266 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13267 ;; 13268 *) 13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13270 for as_dir in $PATH 13271 do 13272 IFS=$as_save_IFS 13273 test -z "$as_dir" && as_dir=. 13274 for ac_exec_ext in '' $ac_executable_extensions; do 13275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13276 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13278 break 2 13279 fi 13280 done 13281 done 13282 IFS=$as_save_IFS 13283 13284 ;; 13285 esac 13286 fi 13287 AWK=$ac_cv_path_AWK 13288 if test -n "$AWK"; then 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13290 $as_echo "$AWK" >&6; } 13291 else 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13293 $as_echo "no" >&6; } 13294 fi 13295 13296 13297 if test "x$AWK" = x; then 13298 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13299 fi 13300 else 13301 # Otherwise we believe it is a complete path. Use it as it is. 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13303 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13305 $as_echo_n "checking for AWK... " >&6; } 13306 if test ! -x "$tool_specified"; then 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13308 $as_echo "not found" >&6; } 13309 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13310 fi 13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13312 $as_echo "$tool_specified" >&6; } 13313 fi 13314 fi 13315 fi 13316 13317 fi 13318 13319 13320 if test "x$AWK" = x; then 13321 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13322 fi 13323 13324 13325 13326 13327 # Publish this variable in the help. 13328 13329 13330 if [ -z "${GREP+x}" ]; then 13331 # The variable is not set by user, try to locate tool using the code snippet 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13333 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13334 if ${ac_cv_path_GREP+:} false; then : 13335 $as_echo_n "(cached) " >&6 13336 else 13337 if test -z "$GREP"; then 13338 ac_path_GREP_found=false 13339 # Loop through the user's path and test for each of PROGNAME-LIST 13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13342 do 13343 IFS=$as_save_IFS 13344 test -z "$as_dir" && as_dir=. 13345 for ac_prog in grep ggrep; do 13346 for ac_exec_ext in '' $ac_executable_extensions; do 13347 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13348 as_fn_executable_p "$ac_path_GREP" || continue 13349 # Check for GNU ac_path_GREP and select it if it is found. 13350 # Check for GNU $ac_path_GREP 13351 case `"$ac_path_GREP" --version 2>&1` in 13352 *GNU*) 13353 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13354 *) 13355 ac_count=0 13356 $as_echo_n 0123456789 >"conftest.in" 13357 while : 13358 do 13359 cat "conftest.in" "conftest.in" >"conftest.tmp" 13360 mv "conftest.tmp" "conftest.in" 13361 cp "conftest.in" "conftest.nl" 13362 $as_echo 'GREP' >> "conftest.nl" 13363 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13365 as_fn_arith $ac_count + 1 && ac_count=$as_val 13366 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13367 # Best one so far, save it but keep looking for a better one 13368 ac_cv_path_GREP="$ac_path_GREP" 13369 ac_path_GREP_max=$ac_count 13370 fi 13371 # 10*(2^10) chars as input seems more than enough 13372 test $ac_count -gt 10 && break 13373 done 13374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13375 esac 13376 13377 $ac_path_GREP_found && break 3 13378 done 13379 done 13380 done 13381 IFS=$as_save_IFS 13382 if test -z "$ac_cv_path_GREP"; then 13383 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13384 fi 13385 else 13386 ac_cv_path_GREP=$GREP 13387 fi 13388 13389 fi 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13391 $as_echo "$ac_cv_path_GREP" >&6; } 13392 GREP="$ac_cv_path_GREP" 13393 13394 13395 else 13396 # The variable is set, but is it from the command line or the environment? 13397 13398 # Try to remove the string !GREP! from our list. 13399 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13400 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13401 # If it failed, the variable was not from the command line. Ignore it, 13402 # but warn the user (except for BASH, which is always set by the calling BASH). 13403 if test "xGREP" != xBASH; then 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13405 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13406 fi 13407 # Try to locate tool using the code snippet 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13409 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13410 if ${ac_cv_path_GREP+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412 else 13413 if test -z "$GREP"; then 13414 ac_path_GREP_found=false 13415 # Loop through the user's path and test for each of PROGNAME-LIST 13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13418 do 13419 IFS=$as_save_IFS 13420 test -z "$as_dir" && as_dir=. 13421 for ac_prog in grep ggrep; do 13422 for ac_exec_ext in '' $ac_executable_extensions; do 13423 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13424 as_fn_executable_p "$ac_path_GREP" || continue 13425 # Check for GNU ac_path_GREP and select it if it is found. 13426 # Check for GNU $ac_path_GREP 13427 case `"$ac_path_GREP" --version 2>&1` in 13428 *GNU*) 13429 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13430 *) 13431 ac_count=0 13432 $as_echo_n 0123456789 >"conftest.in" 13433 while : 13434 do 13435 cat "conftest.in" "conftest.in" >"conftest.tmp" 13436 mv "conftest.tmp" "conftest.in" 13437 cp "conftest.in" "conftest.nl" 13438 $as_echo 'GREP' >> "conftest.nl" 13439 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13441 as_fn_arith $ac_count + 1 && ac_count=$as_val 13442 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13443 # Best one so far, save it but keep looking for a better one 13444 ac_cv_path_GREP="$ac_path_GREP" 13445 ac_path_GREP_max=$ac_count 13446 fi 13447 # 10*(2^10) chars as input seems more than enough 13448 test $ac_count -gt 10 && break 13449 done 13450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13451 esac 13452 13453 $ac_path_GREP_found && break 3 13454 done 13455 done 13456 done 13457 IFS=$as_save_IFS 13458 if test -z "$ac_cv_path_GREP"; then 13459 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13460 fi 13461 else 13462 ac_cv_path_GREP=$GREP 13463 fi 13464 13465 fi 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13467 $as_echo "$ac_cv_path_GREP" >&6; } 13468 GREP="$ac_cv_path_GREP" 13469 13470 13471 else 13472 # If it succeeded, then it was overridden by the user. We will use it 13473 # for the tool. 13474 13475 # First remove it from the list of overridden variables, so we can test 13476 # for unknown variables in the end. 13477 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13478 13479 # Check if we try to supply an empty value 13480 if test "x$GREP" = x; then 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13482 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13484 $as_echo_n "checking for GREP... " >&6; } 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13486 $as_echo "disabled" >&6; } 13487 else 13488 # Check if the provided tool contains a complete path. 13489 tool_specified="$GREP" 13490 tool_basename="${tool_specified##*/}" 13491 if test "x$tool_basename" = "x$tool_specified"; then 13492 # A command without a complete path is provided, search $PATH. 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13494 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13495 # Extract the first word of "$tool_basename", so it can be a program name with args. 13496 set dummy $tool_basename; ac_word=$2 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13498 $as_echo_n "checking for $ac_word... " >&6; } 13499 if ${ac_cv_path_GREP+:} false; then : 13500 $as_echo_n "(cached) " >&6 13501 else 13502 case $GREP in 13503 [\\/]* | ?:[\\/]*) 13504 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13505 ;; 13506 *) 13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13508 for as_dir in $PATH 13509 do 13510 IFS=$as_save_IFS 13511 test -z "$as_dir" && as_dir=. 13512 for ac_exec_ext in '' $ac_executable_extensions; do 13513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13514 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13516 break 2 13517 fi 13518 done 13519 done 13520 IFS=$as_save_IFS 13521 13522 ;; 13523 esac 13524 fi 13525 GREP=$ac_cv_path_GREP 13526 if test -n "$GREP"; then 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13528 $as_echo "$GREP" >&6; } 13529 else 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13531 $as_echo "no" >&6; } 13532 fi 13533 13534 13535 if test "x$GREP" = x; then 13536 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13537 fi 13538 else 13539 # Otherwise we believe it is a complete path. Use it as it is. 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13541 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13543 $as_echo_n "checking for GREP... " >&6; } 13544 if test ! -x "$tool_specified"; then 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13546 $as_echo "not found" >&6; } 13547 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13548 fi 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13550 $as_echo "$tool_specified" >&6; } 13551 fi 13552 fi 13553 fi 13554 13555 fi 13556 13557 13558 if test "x$GREP" = x; then 13559 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13560 fi 13561 13562 13563 13564 13565 # Publish this variable in the help. 13566 13567 13568 if [ -z "${EGREP+x}" ]; then 13569 # The variable is not set by user, try to locate tool using the code snippet 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13571 $as_echo_n "checking for egrep... " >&6; } 13572 if ${ac_cv_path_EGREP+:} false; then : 13573 $as_echo_n "(cached) " >&6 13574 else 13575 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13576 then ac_cv_path_EGREP="$GREP -E" 13577 else 13578 if test -z "$EGREP"; then 13579 ac_path_EGREP_found=false 13580 # Loop through the user's path and test for each of PROGNAME-LIST 13581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13583 do 13584 IFS=$as_save_IFS 13585 test -z "$as_dir" && as_dir=. 13586 for ac_prog in egrep; do 13587 for ac_exec_ext in '' $ac_executable_extensions; do 13588 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13589 as_fn_executable_p "$ac_path_EGREP" || continue 13590 # Check for GNU ac_path_EGREP and select it if it is found. 13591 # Check for GNU $ac_path_EGREP 13592 case `"$ac_path_EGREP" --version 2>&1` in 13593 *GNU*) 13594 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13595 *) 13596 ac_count=0 13597 $as_echo_n 0123456789 >"conftest.in" 13598 while : 13599 do 13600 cat "conftest.in" "conftest.in" >"conftest.tmp" 13601 mv "conftest.tmp" "conftest.in" 13602 cp "conftest.in" "conftest.nl" 13603 $as_echo 'EGREP' >> "conftest.nl" 13604 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13606 as_fn_arith $ac_count + 1 && ac_count=$as_val 13607 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13608 # Best one so far, save it but keep looking for a better one 13609 ac_cv_path_EGREP="$ac_path_EGREP" 13610 ac_path_EGREP_max=$ac_count 13611 fi 13612 # 10*(2^10) chars as input seems more than enough 13613 test $ac_count -gt 10 && break 13614 done 13615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13616 esac 13617 13618 $ac_path_EGREP_found && break 3 13619 done 13620 done 13621 done 13622 IFS=$as_save_IFS 13623 if test -z "$ac_cv_path_EGREP"; then 13624 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13625 fi 13626 else 13627 ac_cv_path_EGREP=$EGREP 13628 fi 13629 13630 fi 13631 fi 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13633 $as_echo "$ac_cv_path_EGREP" >&6; } 13634 EGREP="$ac_cv_path_EGREP" 13635 13636 13637 else 13638 # The variable is set, but is it from the command line or the environment? 13639 13640 # Try to remove the string !EGREP! from our list. 13641 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13642 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13643 # If it failed, the variable was not from the command line. Ignore it, 13644 # but warn the user (except for BASH, which is always set by the calling BASH). 13645 if test "xEGREP" != xBASH; then 13646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13647 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13648 fi 13649 # Try to locate tool using the code snippet 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13651 $as_echo_n "checking for egrep... " >&6; } 13652 if ${ac_cv_path_EGREP+:} false; then : 13653 $as_echo_n "(cached) " >&6 13654 else 13655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13656 then ac_cv_path_EGREP="$GREP -E" 13657 else 13658 if test -z "$EGREP"; then 13659 ac_path_EGREP_found=false 13660 # Loop through the user's path and test for each of PROGNAME-LIST 13661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13663 do 13664 IFS=$as_save_IFS 13665 test -z "$as_dir" && as_dir=. 13666 for ac_prog in egrep; do 13667 for ac_exec_ext in '' $ac_executable_extensions; do 13668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13669 as_fn_executable_p "$ac_path_EGREP" || continue 13670 # Check for GNU ac_path_EGREP and select it if it is found. 13671 # Check for GNU $ac_path_EGREP 13672 case `"$ac_path_EGREP" --version 2>&1` in 13673 *GNU*) 13674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13675 *) 13676 ac_count=0 13677 $as_echo_n 0123456789 >"conftest.in" 13678 while : 13679 do 13680 cat "conftest.in" "conftest.in" >"conftest.tmp" 13681 mv "conftest.tmp" "conftest.in" 13682 cp "conftest.in" "conftest.nl" 13683 $as_echo 'EGREP' >> "conftest.nl" 13684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13686 as_fn_arith $ac_count + 1 && ac_count=$as_val 13687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13688 # Best one so far, save it but keep looking for a better one 13689 ac_cv_path_EGREP="$ac_path_EGREP" 13690 ac_path_EGREP_max=$ac_count 13691 fi 13692 # 10*(2^10) chars as input seems more than enough 13693 test $ac_count -gt 10 && break 13694 done 13695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13696 esac 13697 13698 $ac_path_EGREP_found && break 3 13699 done 13700 done 13701 done 13702 IFS=$as_save_IFS 13703 if test -z "$ac_cv_path_EGREP"; then 13704 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13705 fi 13706 else 13707 ac_cv_path_EGREP=$EGREP 13708 fi 13709 13710 fi 13711 fi 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13713 $as_echo "$ac_cv_path_EGREP" >&6; } 13714 EGREP="$ac_cv_path_EGREP" 13715 13716 13717 else 13718 # If it succeeded, then it was overridden by the user. We will use it 13719 # for the tool. 13720 13721 # First remove it from the list of overridden variables, so we can test 13722 # for unknown variables in the end. 13723 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13724 13725 # Check if we try to supply an empty value 13726 if test "x$EGREP" = x; then 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13728 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13730 $as_echo_n "checking for EGREP... " >&6; } 13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13732 $as_echo "disabled" >&6; } 13733 else 13734 # Check if the provided tool contains a complete path. 13735 tool_specified="$EGREP" 13736 tool_basename="${tool_specified##*/}" 13737 if test "x$tool_basename" = "x$tool_specified"; then 13738 # A command without a complete path is provided, search $PATH. 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13740 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13741 # Extract the first word of "$tool_basename", so it can be a program name with args. 13742 set dummy $tool_basename; ac_word=$2 13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13744 $as_echo_n "checking for $ac_word... " >&6; } 13745 if ${ac_cv_path_EGREP+:} false; then : 13746 $as_echo_n "(cached) " >&6 13747 else 13748 case $EGREP in 13749 [\\/]* | ?:[\\/]*) 13750 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13751 ;; 13752 *) 13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13754 for as_dir in $PATH 13755 do 13756 IFS=$as_save_IFS 13757 test -z "$as_dir" && as_dir=. 13758 for ac_exec_ext in '' $ac_executable_extensions; do 13759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13760 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13762 break 2 13763 fi 13764 done 13765 done 13766 IFS=$as_save_IFS 13767 13768 ;; 13769 esac 13770 fi 13771 EGREP=$ac_cv_path_EGREP 13772 if test -n "$EGREP"; then 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13774 $as_echo "$EGREP" >&6; } 13775 else 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13777 $as_echo "no" >&6; } 13778 fi 13779 13780 13781 if test "x$EGREP" = x; then 13782 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13783 fi 13784 else 13785 # Otherwise we believe it is a complete path. Use it as it is. 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13787 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13789 $as_echo_n "checking for EGREP... " >&6; } 13790 if test ! -x "$tool_specified"; then 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13792 $as_echo "not found" >&6; } 13793 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13794 fi 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13796 $as_echo "$tool_specified" >&6; } 13797 fi 13798 fi 13799 fi 13800 13801 fi 13802 13803 13804 if test "x$EGREP" = x; then 13805 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13806 fi 13807 13808 13809 13810 13811 # Publish this variable in the help. 13812 13813 13814 if [ -z "${FGREP+x}" ]; then 13815 # The variable is not set by user, try to locate tool using the code snippet 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13817 $as_echo_n "checking for fgrep... " >&6; } 13818 if ${ac_cv_path_FGREP+:} false; then : 13819 $as_echo_n "(cached) " >&6 13820 else 13821 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13822 then ac_cv_path_FGREP="$GREP -F" 13823 else 13824 if test -z "$FGREP"; then 13825 ac_path_FGREP_found=false 13826 # Loop through the user's path and test for each of PROGNAME-LIST 13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13828 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13829 do 13830 IFS=$as_save_IFS 13831 test -z "$as_dir" && as_dir=. 13832 for ac_prog in fgrep; do 13833 for ac_exec_ext in '' $ac_executable_extensions; do 13834 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13835 as_fn_executable_p "$ac_path_FGREP" || continue 13836 # Check for GNU ac_path_FGREP and select it if it is found. 13837 # Check for GNU $ac_path_FGREP 13838 case `"$ac_path_FGREP" --version 2>&1` in 13839 *GNU*) 13840 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13841 *) 13842 ac_count=0 13843 $as_echo_n 0123456789 >"conftest.in" 13844 while : 13845 do 13846 cat "conftest.in" "conftest.in" >"conftest.tmp" 13847 mv "conftest.tmp" "conftest.in" 13848 cp "conftest.in" "conftest.nl" 13849 $as_echo 'FGREP' >> "conftest.nl" 13850 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13852 as_fn_arith $ac_count + 1 && ac_count=$as_val 13853 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13854 # Best one so far, save it but keep looking for a better one 13855 ac_cv_path_FGREP="$ac_path_FGREP" 13856 ac_path_FGREP_max=$ac_count 13857 fi 13858 # 10*(2^10) chars as input seems more than enough 13859 test $ac_count -gt 10 && break 13860 done 13861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13862 esac 13863 13864 $ac_path_FGREP_found && break 3 13865 done 13866 done 13867 done 13868 IFS=$as_save_IFS 13869 if test -z "$ac_cv_path_FGREP"; then 13870 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13871 fi 13872 else 13873 ac_cv_path_FGREP=$FGREP 13874 fi 13875 13876 fi 13877 fi 13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13879 $as_echo "$ac_cv_path_FGREP" >&6; } 13880 FGREP="$ac_cv_path_FGREP" 13881 13882 13883 else 13884 # The variable is set, but is it from the command line or the environment? 13885 13886 # Try to remove the string !FGREP! from our list. 13887 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13888 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13889 # If it failed, the variable was not from the command line. Ignore it, 13890 # but warn the user (except for BASH, which is always set by the calling BASH). 13891 if test "xFGREP" != xBASH; then 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13893 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13894 fi 13895 # Try to locate tool using the code snippet 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13897 $as_echo_n "checking for fgrep... " >&6; } 13898 if ${ac_cv_path_FGREP+:} false; then : 13899 $as_echo_n "(cached) " >&6 13900 else 13901 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13902 then ac_cv_path_FGREP="$GREP -F" 13903 else 13904 if test -z "$FGREP"; then 13905 ac_path_FGREP_found=false 13906 # Loop through the user's path and test for each of PROGNAME-LIST 13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13909 do 13910 IFS=$as_save_IFS 13911 test -z "$as_dir" && as_dir=. 13912 for ac_prog in fgrep; do 13913 for ac_exec_ext in '' $ac_executable_extensions; do 13914 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13915 as_fn_executable_p "$ac_path_FGREP" || continue 13916 # Check for GNU ac_path_FGREP and select it if it is found. 13917 # Check for GNU $ac_path_FGREP 13918 case `"$ac_path_FGREP" --version 2>&1` in 13919 *GNU*) 13920 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13921 *) 13922 ac_count=0 13923 $as_echo_n 0123456789 >"conftest.in" 13924 while : 13925 do 13926 cat "conftest.in" "conftest.in" >"conftest.tmp" 13927 mv "conftest.tmp" "conftest.in" 13928 cp "conftest.in" "conftest.nl" 13929 $as_echo 'FGREP' >> "conftest.nl" 13930 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13932 as_fn_arith $ac_count + 1 && ac_count=$as_val 13933 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13934 # Best one so far, save it but keep looking for a better one 13935 ac_cv_path_FGREP="$ac_path_FGREP" 13936 ac_path_FGREP_max=$ac_count 13937 fi 13938 # 10*(2^10) chars as input seems more than enough 13939 test $ac_count -gt 10 && break 13940 done 13941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13942 esac 13943 13944 $ac_path_FGREP_found && break 3 13945 done 13946 done 13947 done 13948 IFS=$as_save_IFS 13949 if test -z "$ac_cv_path_FGREP"; then 13950 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13951 fi 13952 else 13953 ac_cv_path_FGREP=$FGREP 13954 fi 13955 13956 fi 13957 fi 13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13959 $as_echo "$ac_cv_path_FGREP" >&6; } 13960 FGREP="$ac_cv_path_FGREP" 13961 13962 13963 else 13964 # If it succeeded, then it was overridden by the user. We will use it 13965 # for the tool. 13966 13967 # First remove it from the list of overridden variables, so we can test 13968 # for unknown variables in the end. 13969 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13970 13971 # Check if we try to supply an empty value 13972 if test "x$FGREP" = x; then 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 13974 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13976 $as_echo_n "checking for FGREP... " >&6; } 13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13978 $as_echo "disabled" >&6; } 13979 else 13980 # Check if the provided tool contains a complete path. 13981 tool_specified="$FGREP" 13982 tool_basename="${tool_specified##*/}" 13983 if test "x$tool_basename" = "x$tool_specified"; then 13984 # A command without a complete path is provided, search $PATH. 13985 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 13986 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 13987 # Extract the first word of "$tool_basename", so it can be a program name with args. 13988 set dummy $tool_basename; ac_word=$2 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13990 $as_echo_n "checking for $ac_word... " >&6; } 13991 if ${ac_cv_path_FGREP+:} false; then : 13992 $as_echo_n "(cached) " >&6 13993 else 13994 case $FGREP in 13995 [\\/]* | ?:[\\/]*) 13996 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 13997 ;; 13998 *) 13999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14000 for as_dir in $PATH 14001 do 14002 IFS=$as_save_IFS 14003 test -z "$as_dir" && as_dir=. 14004 for ac_exec_ext in '' $ac_executable_extensions; do 14005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14006 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14008 break 2 14009 fi 14010 done 14011 done 14012 IFS=$as_save_IFS 14013 14014 ;; 14015 esac 14016 fi 14017 FGREP=$ac_cv_path_FGREP 14018 if test -n "$FGREP"; then 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14020 $as_echo "$FGREP" >&6; } 14021 else 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14023 $as_echo "no" >&6; } 14024 fi 14025 14026 14027 if test "x$FGREP" = x; then 14028 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14029 fi 14030 else 14031 # Otherwise we believe it is a complete path. Use it as it is. 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14033 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14035 $as_echo_n "checking for FGREP... " >&6; } 14036 if test ! -x "$tool_specified"; then 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14038 $as_echo "not found" >&6; } 14039 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14040 fi 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14042 $as_echo "$tool_specified" >&6; } 14043 fi 14044 fi 14045 fi 14046 14047 fi 14048 14049 14050 if test "x$FGREP" = x; then 14051 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14052 fi 14053 14054 14055 14056 14057 # Publish this variable in the help. 14058 14059 14060 if [ -z "${SED+x}" ]; then 14061 # The variable is not set by user, try to locate tool using the code snippet 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14063 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14064 if ${ac_cv_path_SED+:} false; then : 14065 $as_echo_n "(cached) " >&6 14066 else 14067 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14068 for ac_i in 1 2 3 4 5 6 7; do 14069 ac_script="$ac_script$as_nl$ac_script" 14070 done 14071 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14072 { ac_script=; unset ac_script;} 14073 if test -z "$SED"; then 14074 ac_path_SED_found=false 14075 # Loop through the user's path and test for each of PROGNAME-LIST 14076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14077 for as_dir in $PATH 14078 do 14079 IFS=$as_save_IFS 14080 test -z "$as_dir" && as_dir=. 14081 for ac_prog in sed gsed; do 14082 for ac_exec_ext in '' $ac_executable_extensions; do 14083 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14084 as_fn_executable_p "$ac_path_SED" || continue 14085 # Check for GNU ac_path_SED and select it if it is found. 14086 # Check for GNU $ac_path_SED 14087 case `"$ac_path_SED" --version 2>&1` in 14088 *GNU*) 14089 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14090 *) 14091 ac_count=0 14092 $as_echo_n 0123456789 >"conftest.in" 14093 while : 14094 do 14095 cat "conftest.in" "conftest.in" >"conftest.tmp" 14096 mv "conftest.tmp" "conftest.in" 14097 cp "conftest.in" "conftest.nl" 14098 $as_echo '' >> "conftest.nl" 14099 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14101 as_fn_arith $ac_count + 1 && ac_count=$as_val 14102 if test $ac_count -gt ${ac_path_SED_max-0}; then 14103 # Best one so far, save it but keep looking for a better one 14104 ac_cv_path_SED="$ac_path_SED" 14105 ac_path_SED_max=$ac_count 14106 fi 14107 # 10*(2^10) chars as input seems more than enough 14108 test $ac_count -gt 10 && break 14109 done 14110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14111 esac 14112 14113 $ac_path_SED_found && break 3 14114 done 14115 done 14116 done 14117 IFS=$as_save_IFS 14118 if test -z "$ac_cv_path_SED"; then 14119 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14120 fi 14121 else 14122 ac_cv_path_SED=$SED 14123 fi 14124 14125 fi 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14127 $as_echo "$ac_cv_path_SED" >&6; } 14128 SED="$ac_cv_path_SED" 14129 rm -f conftest.sed 14130 14131 else 14132 # The variable is set, but is it from the command line or the environment? 14133 14134 # Try to remove the string !SED! from our list. 14135 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14136 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14137 # If it failed, the variable was not from the command line. Ignore it, 14138 # but warn the user (except for BASH, which is always set by the calling BASH). 14139 if test "xSED" != xBASH; then 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14141 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14142 fi 14143 # Try to locate tool using the code snippet 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14145 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14146 if ${ac_cv_path_SED+:} false; then : 14147 $as_echo_n "(cached) " >&6 14148 else 14149 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14150 for ac_i in 1 2 3 4 5 6 7; do 14151 ac_script="$ac_script$as_nl$ac_script" 14152 done 14153 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14154 { ac_script=; unset ac_script;} 14155 if test -z "$SED"; then 14156 ac_path_SED_found=false 14157 # Loop through the user's path and test for each of PROGNAME-LIST 14158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14159 for as_dir in $PATH 14160 do 14161 IFS=$as_save_IFS 14162 test -z "$as_dir" && as_dir=. 14163 for ac_prog in sed gsed; do 14164 for ac_exec_ext in '' $ac_executable_extensions; do 14165 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14166 as_fn_executable_p "$ac_path_SED" || continue 14167 # Check for GNU ac_path_SED and select it if it is found. 14168 # Check for GNU $ac_path_SED 14169 case `"$ac_path_SED" --version 2>&1` in 14170 *GNU*) 14171 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14172 *) 14173 ac_count=0 14174 $as_echo_n 0123456789 >"conftest.in" 14175 while : 14176 do 14177 cat "conftest.in" "conftest.in" >"conftest.tmp" 14178 mv "conftest.tmp" "conftest.in" 14179 cp "conftest.in" "conftest.nl" 14180 $as_echo '' >> "conftest.nl" 14181 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14183 as_fn_arith $ac_count + 1 && ac_count=$as_val 14184 if test $ac_count -gt ${ac_path_SED_max-0}; then 14185 # Best one so far, save it but keep looking for a better one 14186 ac_cv_path_SED="$ac_path_SED" 14187 ac_path_SED_max=$ac_count 14188 fi 14189 # 10*(2^10) chars as input seems more than enough 14190 test $ac_count -gt 10 && break 14191 done 14192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14193 esac 14194 14195 $ac_path_SED_found && break 3 14196 done 14197 done 14198 done 14199 IFS=$as_save_IFS 14200 if test -z "$ac_cv_path_SED"; then 14201 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14202 fi 14203 else 14204 ac_cv_path_SED=$SED 14205 fi 14206 14207 fi 14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14209 $as_echo "$ac_cv_path_SED" >&6; } 14210 SED="$ac_cv_path_SED" 14211 rm -f conftest.sed 14212 14213 else 14214 # If it succeeded, then it was overridden by the user. We will use it 14215 # for the tool. 14216 14217 # First remove it from the list of overridden variables, so we can test 14218 # for unknown variables in the end. 14219 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14220 14221 # Check if we try to supply an empty value 14222 if test "x$SED" = x; then 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14224 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14226 $as_echo_n "checking for SED... " >&6; } 14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14228 $as_echo "disabled" >&6; } 14229 else 14230 # Check if the provided tool contains a complete path. 14231 tool_specified="$SED" 14232 tool_basename="${tool_specified##*/}" 14233 if test "x$tool_basename" = "x$tool_specified"; then 14234 # A command without a complete path is provided, search $PATH. 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14236 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14237 # Extract the first word of "$tool_basename", so it can be a program name with args. 14238 set dummy $tool_basename; ac_word=$2 14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14240 $as_echo_n "checking for $ac_word... " >&6; } 14241 if ${ac_cv_path_SED+:} false; then : 14242 $as_echo_n "(cached) " >&6 14243 else 14244 case $SED in 14245 [\\/]* | ?:[\\/]*) 14246 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14247 ;; 14248 *) 14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14250 for as_dir in $PATH 14251 do 14252 IFS=$as_save_IFS 14253 test -z "$as_dir" && as_dir=. 14254 for ac_exec_ext in '' $ac_executable_extensions; do 14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14256 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14258 break 2 14259 fi 14260 done 14261 done 14262 IFS=$as_save_IFS 14263 14264 ;; 14265 esac 14266 fi 14267 SED=$ac_cv_path_SED 14268 if test -n "$SED"; then 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14270 $as_echo "$SED" >&6; } 14271 else 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14273 $as_echo "no" >&6; } 14274 fi 14275 14276 14277 if test "x$SED" = x; then 14278 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14279 fi 14280 else 14281 # Otherwise we believe it is a complete path. Use it as it is. 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14283 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14285 $as_echo_n "checking for SED... " >&6; } 14286 if test ! -x "$tool_specified"; then 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14288 $as_echo "not found" >&6; } 14289 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14290 fi 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14292 $as_echo "$tool_specified" >&6; } 14293 fi 14294 fi 14295 fi 14296 14297 fi 14298 14299 14300 if test "x$SED" = x; then 14301 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14302 fi 14303 14304 14305 14306 # Always force rm. 14307 RM="$RM -f" 14308 14309 # pwd behaves differently on various platforms and some don't support the -L flag. 14310 # Always use the bash builtin pwd to get uniform behavior. 14311 THEPWDCMD=pwd 14312 14313 # These are not required on all platforms 14314 14315 14316 # Publish this variable in the help. 14317 14318 14319 if [ -z "${CYGPATH+x}" ]; then 14320 # The variable is not set by user, try to locate tool using the code snippet 14321 for ac_prog in cygpath 14322 do 14323 # Extract the first word of "$ac_prog", so it can be a program name with args. 14324 set dummy $ac_prog; ac_word=$2 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14326 $as_echo_n "checking for $ac_word... " >&6; } 14327 if ${ac_cv_path_CYGPATH+:} false; then : 14328 $as_echo_n "(cached) " >&6 14329 else 14330 case $CYGPATH in 14331 [\\/]* | ?:[\\/]*) 14332 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14333 ;; 14334 *) 14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14336 for as_dir in $PATH 14337 do 14338 IFS=$as_save_IFS 14339 test -z "$as_dir" && as_dir=. 14340 for ac_exec_ext in '' $ac_executable_extensions; do 14341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14342 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14344 break 2 14345 fi 14346 done 14347 done 14348 IFS=$as_save_IFS 14349 14350 ;; 14351 esac 14352 fi 14353 CYGPATH=$ac_cv_path_CYGPATH 14354 if test -n "$CYGPATH"; then 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14356 $as_echo "$CYGPATH" >&6; } 14357 else 14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14359 $as_echo "no" >&6; } 14360 fi 14361 14362 14363 test -n "$CYGPATH" && break 14364 done 14365 14366 else 14367 # The variable is set, but is it from the command line or the environment? 14368 14369 # Try to remove the string !CYGPATH! from our list. 14370 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14371 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14372 # If it failed, the variable was not from the command line. Ignore it, 14373 # but warn the user (except for BASH, which is always set by the calling BASH). 14374 if test "xCYGPATH" != xBASH; then 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14376 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14377 fi 14378 # Try to locate tool using the code snippet 14379 for ac_prog in cygpath 14380 do 14381 # Extract the first word of "$ac_prog", so it can be a program name with args. 14382 set dummy $ac_prog; ac_word=$2 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14384 $as_echo_n "checking for $ac_word... " >&6; } 14385 if ${ac_cv_path_CYGPATH+:} false; then : 14386 $as_echo_n "(cached) " >&6 14387 else 14388 case $CYGPATH in 14389 [\\/]* | ?:[\\/]*) 14390 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14391 ;; 14392 *) 14393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14394 for as_dir in $PATH 14395 do 14396 IFS=$as_save_IFS 14397 test -z "$as_dir" && as_dir=. 14398 for ac_exec_ext in '' $ac_executable_extensions; do 14399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14400 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14402 break 2 14403 fi 14404 done 14405 done 14406 IFS=$as_save_IFS 14407 14408 ;; 14409 esac 14410 fi 14411 CYGPATH=$ac_cv_path_CYGPATH 14412 if test -n "$CYGPATH"; then 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14414 $as_echo "$CYGPATH" >&6; } 14415 else 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14417 $as_echo "no" >&6; } 14418 fi 14419 14420 14421 test -n "$CYGPATH" && break 14422 done 14423 14424 else 14425 # If it succeeded, then it was overridden by the user. We will use it 14426 # for the tool. 14427 14428 # First remove it from the list of overridden variables, so we can test 14429 # for unknown variables in the end. 14430 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14431 14432 # Check if we try to supply an empty value 14433 if test "x$CYGPATH" = x; then 14434 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14435 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14437 $as_echo_n "checking for CYGPATH... " >&6; } 14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14439 $as_echo "disabled" >&6; } 14440 else 14441 # Check if the provided tool contains a complete path. 14442 tool_specified="$CYGPATH" 14443 tool_basename="${tool_specified##*/}" 14444 if test "x$tool_basename" = "x$tool_specified"; then 14445 # A command without a complete path is provided, search $PATH. 14446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14447 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14448 # Extract the first word of "$tool_basename", so it can be a program name with args. 14449 set dummy $tool_basename; ac_word=$2 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14451 $as_echo_n "checking for $ac_word... " >&6; } 14452 if ${ac_cv_path_CYGPATH+:} false; then : 14453 $as_echo_n "(cached) " >&6 14454 else 14455 case $CYGPATH in 14456 [\\/]* | ?:[\\/]*) 14457 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14458 ;; 14459 *) 14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14461 for as_dir in $PATH 14462 do 14463 IFS=$as_save_IFS 14464 test -z "$as_dir" && as_dir=. 14465 for ac_exec_ext in '' $ac_executable_extensions; do 14466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14467 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14469 break 2 14470 fi 14471 done 14472 done 14473 IFS=$as_save_IFS 14474 14475 ;; 14476 esac 14477 fi 14478 CYGPATH=$ac_cv_path_CYGPATH 14479 if test -n "$CYGPATH"; then 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14481 $as_echo "$CYGPATH" >&6; } 14482 else 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14484 $as_echo "no" >&6; } 14485 fi 14486 14487 14488 if test "x$CYGPATH" = x; then 14489 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14490 fi 14491 else 14492 # Otherwise we believe it is a complete path. Use it as it is. 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14494 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14496 $as_echo_n "checking for CYGPATH... " >&6; } 14497 if test ! -x "$tool_specified"; then 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14499 $as_echo "not found" >&6; } 14500 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14501 fi 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14503 $as_echo "$tool_specified" >&6; } 14504 fi 14505 fi 14506 fi 14507 14508 fi 14509 14510 14511 14512 14513 # Publish this variable in the help. 14514 14515 14516 if [ -z "${READLINK+x}" ]; then 14517 # The variable is not set by user, try to locate tool using the code snippet 14518 for ac_prog in greadlink readlink 14519 do 14520 # Extract the first word of "$ac_prog", so it can be a program name with args. 14521 set dummy $ac_prog; ac_word=$2 14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14523 $as_echo_n "checking for $ac_word... " >&6; } 14524 if ${ac_cv_path_READLINK+:} false; then : 14525 $as_echo_n "(cached) " >&6 14526 else 14527 case $READLINK in 14528 [\\/]* | ?:[\\/]*) 14529 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14530 ;; 14531 *) 14532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14533 for as_dir in $PATH 14534 do 14535 IFS=$as_save_IFS 14536 test -z "$as_dir" && as_dir=. 14537 for ac_exec_ext in '' $ac_executable_extensions; do 14538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14539 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14541 break 2 14542 fi 14543 done 14544 done 14545 IFS=$as_save_IFS 14546 14547 ;; 14548 esac 14549 fi 14550 READLINK=$ac_cv_path_READLINK 14551 if test -n "$READLINK"; then 14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14553 $as_echo "$READLINK" >&6; } 14554 else 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14556 $as_echo "no" >&6; } 14557 fi 14558 14559 14560 test -n "$READLINK" && break 14561 done 14562 14563 else 14564 # The variable is set, but is it from the command line or the environment? 14565 14566 # Try to remove the string !READLINK! from our list. 14567 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14568 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14569 # If it failed, the variable was not from the command line. Ignore it, 14570 # but warn the user (except for BASH, which is always set by the calling BASH). 14571 if test "xREADLINK" != xBASH; then 14572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14573 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14574 fi 14575 # Try to locate tool using the code snippet 14576 for ac_prog in greadlink readlink 14577 do 14578 # Extract the first word of "$ac_prog", so it can be a program name with args. 14579 set dummy $ac_prog; ac_word=$2 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14581 $as_echo_n "checking for $ac_word... " >&6; } 14582 if ${ac_cv_path_READLINK+:} false; then : 14583 $as_echo_n "(cached) " >&6 14584 else 14585 case $READLINK in 14586 [\\/]* | ?:[\\/]*) 14587 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14588 ;; 14589 *) 14590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14591 for as_dir in $PATH 14592 do 14593 IFS=$as_save_IFS 14594 test -z "$as_dir" && as_dir=. 14595 for ac_exec_ext in '' $ac_executable_extensions; do 14596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14597 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14599 break 2 14600 fi 14601 done 14602 done 14603 IFS=$as_save_IFS 14604 14605 ;; 14606 esac 14607 fi 14608 READLINK=$ac_cv_path_READLINK 14609 if test -n "$READLINK"; then 14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14611 $as_echo "$READLINK" >&6; } 14612 else 14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14614 $as_echo "no" >&6; } 14615 fi 14616 14617 14618 test -n "$READLINK" && break 14619 done 14620 14621 else 14622 # If it succeeded, then it was overridden by the user. We will use it 14623 # for the tool. 14624 14625 # First remove it from the list of overridden variables, so we can test 14626 # for unknown variables in the end. 14627 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14628 14629 # Check if we try to supply an empty value 14630 if test "x$READLINK" = x; then 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14632 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14634 $as_echo_n "checking for READLINK... " >&6; } 14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14636 $as_echo "disabled" >&6; } 14637 else 14638 # Check if the provided tool contains a complete path. 14639 tool_specified="$READLINK" 14640 tool_basename="${tool_specified##*/}" 14641 if test "x$tool_basename" = "x$tool_specified"; then 14642 # A command without a complete path is provided, search $PATH. 14643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14644 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14645 # Extract the first word of "$tool_basename", so it can be a program name with args. 14646 set dummy $tool_basename; ac_word=$2 14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14648 $as_echo_n "checking for $ac_word... " >&6; } 14649 if ${ac_cv_path_READLINK+:} false; then : 14650 $as_echo_n "(cached) " >&6 14651 else 14652 case $READLINK in 14653 [\\/]* | ?:[\\/]*) 14654 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14655 ;; 14656 *) 14657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14658 for as_dir in $PATH 14659 do 14660 IFS=$as_save_IFS 14661 test -z "$as_dir" && as_dir=. 14662 for ac_exec_ext in '' $ac_executable_extensions; do 14663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14664 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14666 break 2 14667 fi 14668 done 14669 done 14670 IFS=$as_save_IFS 14671 14672 ;; 14673 esac 14674 fi 14675 READLINK=$ac_cv_path_READLINK 14676 if test -n "$READLINK"; then 14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14678 $as_echo "$READLINK" >&6; } 14679 else 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14681 $as_echo "no" >&6; } 14682 fi 14683 14684 14685 if test "x$READLINK" = x; then 14686 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14687 fi 14688 else 14689 # Otherwise we believe it is a complete path. Use it as it is. 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14691 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14693 $as_echo_n "checking for READLINK... " >&6; } 14694 if test ! -x "$tool_specified"; then 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14696 $as_echo "not found" >&6; } 14697 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14698 fi 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14700 $as_echo "$tool_specified" >&6; } 14701 fi 14702 fi 14703 fi 14704 14705 fi 14706 14707 14708 14709 14710 # Publish this variable in the help. 14711 14712 14713 if [ -z "${DF+x}" ]; then 14714 # The variable is not set by user, try to locate tool using the code snippet 14715 for ac_prog in df 14716 do 14717 # Extract the first word of "$ac_prog", so it can be a program name with args. 14718 set dummy $ac_prog; ac_word=$2 14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14720 $as_echo_n "checking for $ac_word... " >&6; } 14721 if ${ac_cv_path_DF+:} false; then : 14722 $as_echo_n "(cached) " >&6 14723 else 14724 case $DF in 14725 [\\/]* | ?:[\\/]*) 14726 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14727 ;; 14728 *) 14729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14730 for as_dir in $PATH 14731 do 14732 IFS=$as_save_IFS 14733 test -z "$as_dir" && as_dir=. 14734 for ac_exec_ext in '' $ac_executable_extensions; do 14735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14736 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14738 break 2 14739 fi 14740 done 14741 done 14742 IFS=$as_save_IFS 14743 14744 ;; 14745 esac 14746 fi 14747 DF=$ac_cv_path_DF 14748 if test -n "$DF"; then 14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14750 $as_echo "$DF" >&6; } 14751 else 14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14753 $as_echo "no" >&6; } 14754 fi 14755 14756 14757 test -n "$DF" && break 14758 done 14759 14760 else 14761 # The variable is set, but is it from the command line or the environment? 14762 14763 # Try to remove the string !DF! from our list. 14764 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14765 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14766 # If it failed, the variable was not from the command line. Ignore it, 14767 # but warn the user (except for BASH, which is always set by the calling BASH). 14768 if test "xDF" != xBASH; then 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14770 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14771 fi 14772 # Try to locate tool using the code snippet 14773 for ac_prog in df 14774 do 14775 # Extract the first word of "$ac_prog", so it can be a program name with args. 14776 set dummy $ac_prog; ac_word=$2 14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14778 $as_echo_n "checking for $ac_word... " >&6; } 14779 if ${ac_cv_path_DF+:} false; then : 14780 $as_echo_n "(cached) " >&6 14781 else 14782 case $DF in 14783 [\\/]* | ?:[\\/]*) 14784 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14785 ;; 14786 *) 14787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14788 for as_dir in $PATH 14789 do 14790 IFS=$as_save_IFS 14791 test -z "$as_dir" && as_dir=. 14792 for ac_exec_ext in '' $ac_executable_extensions; do 14793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14794 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14796 break 2 14797 fi 14798 done 14799 done 14800 IFS=$as_save_IFS 14801 14802 ;; 14803 esac 14804 fi 14805 DF=$ac_cv_path_DF 14806 if test -n "$DF"; then 14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14808 $as_echo "$DF" >&6; } 14809 else 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14811 $as_echo "no" >&6; } 14812 fi 14813 14814 14815 test -n "$DF" && break 14816 done 14817 14818 else 14819 # If it succeeded, then it was overridden by the user. We will use it 14820 # for the tool. 14821 14822 # First remove it from the list of overridden variables, so we can test 14823 # for unknown variables in the end. 14824 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14825 14826 # Check if we try to supply an empty value 14827 if test "x$DF" = x; then 14828 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14829 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14831 $as_echo_n "checking for DF... " >&6; } 14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14833 $as_echo "disabled" >&6; } 14834 else 14835 # Check if the provided tool contains a complete path. 14836 tool_specified="$DF" 14837 tool_basename="${tool_specified##*/}" 14838 if test "x$tool_basename" = "x$tool_specified"; then 14839 # A command without a complete path is provided, search $PATH. 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14841 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14842 # Extract the first word of "$tool_basename", so it can be a program name with args. 14843 set dummy $tool_basename; ac_word=$2 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14845 $as_echo_n "checking for $ac_word... " >&6; } 14846 if ${ac_cv_path_DF+:} false; then : 14847 $as_echo_n "(cached) " >&6 14848 else 14849 case $DF in 14850 [\\/]* | ?:[\\/]*) 14851 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14852 ;; 14853 *) 14854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14855 for as_dir in $PATH 14856 do 14857 IFS=$as_save_IFS 14858 test -z "$as_dir" && as_dir=. 14859 for ac_exec_ext in '' $ac_executable_extensions; do 14860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14861 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14863 break 2 14864 fi 14865 done 14866 done 14867 IFS=$as_save_IFS 14868 14869 ;; 14870 esac 14871 fi 14872 DF=$ac_cv_path_DF 14873 if test -n "$DF"; then 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14875 $as_echo "$DF" >&6; } 14876 else 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14878 $as_echo "no" >&6; } 14879 fi 14880 14881 14882 if test "x$DF" = x; then 14883 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14884 fi 14885 else 14886 # Otherwise we believe it is a complete path. Use it as it is. 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14888 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14890 $as_echo_n "checking for DF... " >&6; } 14891 if test ! -x "$tool_specified"; then 14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14893 $as_echo "not found" >&6; } 14894 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14895 fi 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14897 $as_echo "$tool_specified" >&6; } 14898 fi 14899 fi 14900 fi 14901 14902 fi 14903 14904 14905 14906 14907 # Publish this variable in the help. 14908 14909 14910 if [ -z "${CPIO+x}" ]; then 14911 # The variable is not set by user, try to locate tool using the code snippet 14912 for ac_prog in cpio bsdcpio 14913 do 14914 # Extract the first word of "$ac_prog", so it can be a program name with args. 14915 set dummy $ac_prog; ac_word=$2 14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14917 $as_echo_n "checking for $ac_word... " >&6; } 14918 if ${ac_cv_path_CPIO+:} false; then : 14919 $as_echo_n "(cached) " >&6 14920 else 14921 case $CPIO in 14922 [\\/]* | ?:[\\/]*) 14923 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14924 ;; 14925 *) 14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14927 for as_dir in $PATH 14928 do 14929 IFS=$as_save_IFS 14930 test -z "$as_dir" && as_dir=. 14931 for ac_exec_ext in '' $ac_executable_extensions; do 14932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14933 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14935 break 2 14936 fi 14937 done 14938 done 14939 IFS=$as_save_IFS 14940 14941 ;; 14942 esac 14943 fi 14944 CPIO=$ac_cv_path_CPIO 14945 if test -n "$CPIO"; then 14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14947 $as_echo "$CPIO" >&6; } 14948 else 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14950 $as_echo "no" >&6; } 14951 fi 14952 14953 14954 test -n "$CPIO" && break 14955 done 14956 14957 else 14958 # The variable is set, but is it from the command line or the environment? 14959 14960 # Try to remove the string !CPIO! from our list. 14961 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 14962 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14963 # If it failed, the variable was not from the command line. Ignore it, 14964 # but warn the user (except for BASH, which is always set by the calling BASH). 14965 if test "xCPIO" != xBASH; then 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 14967 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 14968 fi 14969 # Try to locate tool using the code snippet 14970 for ac_prog in cpio bsdcpio 14971 do 14972 # Extract the first word of "$ac_prog", so it can be a program name with args. 14973 set dummy $ac_prog; ac_word=$2 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14975 $as_echo_n "checking for $ac_word... " >&6; } 14976 if ${ac_cv_path_CPIO+:} false; then : 14977 $as_echo_n "(cached) " >&6 14978 else 14979 case $CPIO in 14980 [\\/]* | ?:[\\/]*) 14981 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14982 ;; 14983 *) 14984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14985 for as_dir in $PATH 14986 do 14987 IFS=$as_save_IFS 14988 test -z "$as_dir" && as_dir=. 14989 for ac_exec_ext in '' $ac_executable_extensions; do 14990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14991 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14993 break 2 14994 fi 14995 done 14996 done 14997 IFS=$as_save_IFS 14998 14999 ;; 15000 esac 15001 fi 15002 CPIO=$ac_cv_path_CPIO 15003 if test -n "$CPIO"; then 15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15005 $as_echo "$CPIO" >&6; } 15006 else 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15008 $as_echo "no" >&6; } 15009 fi 15010 15011 15012 test -n "$CPIO" && break 15013 done 15014 15015 else 15016 # If it succeeded, then it was overridden by the user. We will use it 15017 # for the tool. 15018 15019 # First remove it from the list of overridden variables, so we can test 15020 # for unknown variables in the end. 15021 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15022 15023 # Check if we try to supply an empty value 15024 if test "x$CPIO" = x; then 15025 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15026 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15028 $as_echo_n "checking for CPIO... " >&6; } 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15030 $as_echo "disabled" >&6; } 15031 else 15032 # Check if the provided tool contains a complete path. 15033 tool_specified="$CPIO" 15034 tool_basename="${tool_specified##*/}" 15035 if test "x$tool_basename" = "x$tool_specified"; then 15036 # A command without a complete path is provided, search $PATH. 15037 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15038 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15039 # Extract the first word of "$tool_basename", so it can be a program name with args. 15040 set dummy $tool_basename; ac_word=$2 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15042 $as_echo_n "checking for $ac_word... " >&6; } 15043 if ${ac_cv_path_CPIO+:} false; then : 15044 $as_echo_n "(cached) " >&6 15045 else 15046 case $CPIO in 15047 [\\/]* | ?:[\\/]*) 15048 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15049 ;; 15050 *) 15051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15052 for as_dir in $PATH 15053 do 15054 IFS=$as_save_IFS 15055 test -z "$as_dir" && as_dir=. 15056 for ac_exec_ext in '' $ac_executable_extensions; do 15057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15058 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15060 break 2 15061 fi 15062 done 15063 done 15064 IFS=$as_save_IFS 15065 15066 ;; 15067 esac 15068 fi 15069 CPIO=$ac_cv_path_CPIO 15070 if test -n "$CPIO"; then 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15072 $as_echo "$CPIO" >&6; } 15073 else 15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15075 $as_echo "no" >&6; } 15076 fi 15077 15078 15079 if test "x$CPIO" = x; then 15080 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15081 fi 15082 else 15083 # Otherwise we believe it is a complete path. Use it as it is. 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15085 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15087 $as_echo_n "checking for CPIO... " >&6; } 15088 if test ! -x "$tool_specified"; then 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15090 $as_echo "not found" >&6; } 15091 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15092 fi 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15094 $as_echo "$tool_specified" >&6; } 15095 fi 15096 fi 15097 fi 15098 15099 fi 15100 15101 15102 15103 15104 # Publish this variable in the help. 15105 15106 15107 if [ -z "${NICE+x}" ]; then 15108 # The variable is not set by user, try to locate tool using the code snippet 15109 for ac_prog in nice 15110 do 15111 # Extract the first word of "$ac_prog", so it can be a program name with args. 15112 set dummy $ac_prog; ac_word=$2 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15114 $as_echo_n "checking for $ac_word... " >&6; } 15115 if ${ac_cv_path_NICE+:} false; then : 15116 $as_echo_n "(cached) " >&6 15117 else 15118 case $NICE in 15119 [\\/]* | ?:[\\/]*) 15120 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15121 ;; 15122 *) 15123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15124 for as_dir in $PATH 15125 do 15126 IFS=$as_save_IFS 15127 test -z "$as_dir" && as_dir=. 15128 for ac_exec_ext in '' $ac_executable_extensions; do 15129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15130 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15132 break 2 15133 fi 15134 done 15135 done 15136 IFS=$as_save_IFS 15137 15138 ;; 15139 esac 15140 fi 15141 NICE=$ac_cv_path_NICE 15142 if test -n "$NICE"; then 15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15144 $as_echo "$NICE" >&6; } 15145 else 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15147 $as_echo "no" >&6; } 15148 fi 15149 15150 15151 test -n "$NICE" && break 15152 done 15153 15154 else 15155 # The variable is set, but is it from the command line or the environment? 15156 15157 # Try to remove the string !NICE! from our list. 15158 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15159 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15160 # If it failed, the variable was not from the command line. Ignore it, 15161 # but warn the user (except for BASH, which is always set by the calling BASH). 15162 if test "xNICE" != xBASH; then 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15164 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15165 fi 15166 # Try to locate tool using the code snippet 15167 for ac_prog in nice 15168 do 15169 # Extract the first word of "$ac_prog", so it can be a program name with args. 15170 set dummy $ac_prog; ac_word=$2 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15172 $as_echo_n "checking for $ac_word... " >&6; } 15173 if ${ac_cv_path_NICE+:} false; then : 15174 $as_echo_n "(cached) " >&6 15175 else 15176 case $NICE in 15177 [\\/]* | ?:[\\/]*) 15178 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15179 ;; 15180 *) 15181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15182 for as_dir in $PATH 15183 do 15184 IFS=$as_save_IFS 15185 test -z "$as_dir" && as_dir=. 15186 for ac_exec_ext in '' $ac_executable_extensions; do 15187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15188 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15190 break 2 15191 fi 15192 done 15193 done 15194 IFS=$as_save_IFS 15195 15196 ;; 15197 esac 15198 fi 15199 NICE=$ac_cv_path_NICE 15200 if test -n "$NICE"; then 15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15202 $as_echo "$NICE" >&6; } 15203 else 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15205 $as_echo "no" >&6; } 15206 fi 15207 15208 15209 test -n "$NICE" && break 15210 done 15211 15212 else 15213 # If it succeeded, then it was overridden by the user. We will use it 15214 # for the tool. 15215 15216 # First remove it from the list of overridden variables, so we can test 15217 # for unknown variables in the end. 15218 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15219 15220 # Check if we try to supply an empty value 15221 if test "x$NICE" = x; then 15222 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15223 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15225 $as_echo_n "checking for NICE... " >&6; } 15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15227 $as_echo "disabled" >&6; } 15228 else 15229 # Check if the provided tool contains a complete path. 15230 tool_specified="$NICE" 15231 tool_basename="${tool_specified##*/}" 15232 if test "x$tool_basename" = "x$tool_specified"; then 15233 # A command without a complete path is provided, search $PATH. 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15235 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15236 # Extract the first word of "$tool_basename", so it can be a program name with args. 15237 set dummy $tool_basename; ac_word=$2 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15239 $as_echo_n "checking for $ac_word... " >&6; } 15240 if ${ac_cv_path_NICE+:} false; then : 15241 $as_echo_n "(cached) " >&6 15242 else 15243 case $NICE in 15244 [\\/]* | ?:[\\/]*) 15245 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15246 ;; 15247 *) 15248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15249 for as_dir in $PATH 15250 do 15251 IFS=$as_save_IFS 15252 test -z "$as_dir" && as_dir=. 15253 for ac_exec_ext in '' $ac_executable_extensions; do 15254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15255 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15257 break 2 15258 fi 15259 done 15260 done 15261 IFS=$as_save_IFS 15262 15263 ;; 15264 esac 15265 fi 15266 NICE=$ac_cv_path_NICE 15267 if test -n "$NICE"; then 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15269 $as_echo "$NICE" >&6; } 15270 else 15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15272 $as_echo "no" >&6; } 15273 fi 15274 15275 15276 if test "x$NICE" = x; then 15277 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15278 fi 15279 else 15280 # Otherwise we believe it is a complete path. Use it as it is. 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15282 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15284 $as_echo_n "checking for NICE... " >&6; } 15285 if test ! -x "$tool_specified"; then 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15287 $as_echo "not found" >&6; } 15288 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15289 fi 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15291 $as_echo "$tool_specified" >&6; } 15292 fi 15293 fi 15294 fi 15295 15296 fi 15297 15298 15299 15300 15301 # Now we can determine OpenJDK build and target platforms. This is required to 15302 # have early on. 15303 # Make sure we can run config.sub. 15304 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15305 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15306 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15308 $as_echo_n "checking build system type... " >&6; } 15309 if ${ac_cv_build+:} false; then : 15310 $as_echo_n "(cached) " >&6 15311 else 15312 ac_build_alias=$build_alias 15313 test "x$ac_build_alias" = x && 15314 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15315 test "x$ac_build_alias" = x && 15316 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15317 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15318 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15319 15320 fi 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15322 $as_echo "$ac_cv_build" >&6; } 15323 case $ac_cv_build in 15324 *-*-*) ;; 15325 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15326 esac 15327 build=$ac_cv_build 15328 ac_save_IFS=$IFS; IFS='-' 15329 set x $ac_cv_build 15330 shift 15331 build_cpu=$1 15332 build_vendor=$2 15333 shift; shift 15334 # Remember, the first character of IFS is used to create $*, 15335 # except with old shells: 15336 build_os=$* 15337 IFS=$ac_save_IFS 15338 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15339 15340 15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15342 $as_echo_n "checking host system type... " >&6; } 15343 if ${ac_cv_host+:} false; then : 15344 $as_echo_n "(cached) " >&6 15345 else 15346 if test "x$host_alias" = x; then 15347 ac_cv_host=$ac_cv_build 15348 else 15349 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15351 fi 15352 15353 fi 15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15355 $as_echo "$ac_cv_host" >&6; } 15356 case $ac_cv_host in 15357 *-*-*) ;; 15358 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15359 esac 15360 host=$ac_cv_host 15361 ac_save_IFS=$IFS; IFS='-' 15362 set x $ac_cv_host 15363 shift 15364 host_cpu=$1 15365 host_vendor=$2 15366 shift; shift 15367 # Remember, the first character of IFS is used to create $*, 15368 # except with old shells: 15369 host_os=$* 15370 IFS=$ac_save_IFS 15371 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15372 15373 15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15375 $as_echo_n "checking target system type... " >&6; } 15376 if ${ac_cv_target+:} false; then : 15377 $as_echo_n "(cached) " >&6 15378 else 15379 if test "x$target_alias" = x; then 15380 ac_cv_target=$ac_cv_host 15381 else 15382 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15384 fi 15385 15386 fi 15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15388 $as_echo "$ac_cv_target" >&6; } 15389 case $ac_cv_target in 15390 *-*-*) ;; 15391 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15392 esac 15393 target=$ac_cv_target 15394 ac_save_IFS=$IFS; IFS='-' 15395 set x $ac_cv_target 15396 shift 15397 target_cpu=$1 15398 target_vendor=$2 15399 shift; shift 15400 # Remember, the first character of IFS is used to create $*, 15401 # except with old shells: 15402 target_os=$* 15403 IFS=$ac_save_IFS 15404 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15405 15406 15407 # The aliases save the names the user supplied, while $host etc. 15408 # will get canonicalized. 15409 test -n "$target_alias" && 15410 test "$program_prefix$program_suffix$program_transform_name" = \ 15411 NONENONEs,x,x, && 15412 program_prefix=${target_alias}- 15413 15414 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15415 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15416 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15417 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15418 # to use the configure naming style. 15419 15420 15421 15422 15423 15424 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15425 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15426 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15427 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15428 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15429 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15430 15431 15432 15433 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15434 15435 case "$build_os" in 15436 *linux*) 15437 VAR_OS=linux 15438 VAR_OS_TYPE=unix 15439 ;; 15440 *android*) 15441 VAR_OS=android 15442 VAR_OS_TYPE=unix 15443 ;; 15444 *solaris*) 15445 VAR_OS=solaris 15446 VAR_OS_TYPE=unix 15447 ;; 15448 *darwin*) 15449 VAR_OS=macosx 15450 VAR_OS_TYPE=unix 15451 ;; 15452 *ios*) 15453 VAR_OS=ios 15454 VAR_OS_TYPE=unix 15455 ;; 15456 *bsd*) 15457 VAR_OS=bsd 15458 VAR_OS_TYPE=unix 15459 ;; 15460 *cygwin*) 15461 VAR_OS=windows 15462 VAR_OS_ENV=windows.cygwin 15463 ;; 15464 *mingw*) 15465 VAR_OS=windows 15466 VAR_OS_ENV=windows.msys 15467 ;; 15468 *aix*) 15469 VAR_OS=aix 15470 VAR_OS_TYPE=unix 15471 ;; 15472 *) 15473 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15474 ;; 15475 esac 15476 15477 15478 # First argument is the cpu name from the trip/quad 15479 case "$build_cpu" in 15480 x86_64) 15481 VAR_CPU=x86_64 15482 VAR_CPU_ARCH=x86 15483 VAR_CPU_BITS=64 15484 VAR_CPU_ENDIAN=little 15485 ;; 15486 i?86) 15487 VAR_CPU=x86 15488 VAR_CPU_ARCH=x86 15489 VAR_CPU_BITS=32 15490 VAR_CPU_ENDIAN=little 15491 ;; 15492 arm*) 15493 VAR_CPU=arm 15494 VAR_CPU_ARCH=arm 15495 VAR_CPU_BITS=32 15496 VAR_CPU_ENDIAN=little 15497 ;; 15498 aarch64) 15499 VAR_CPU=aarch64 15500 VAR_CPU_ARCH=aarch64 15501 VAR_CPU_BITS=64 15502 VAR_CPU_ENDIAN=little 15503 ;; 15504 powerpc) 15505 VAR_CPU=ppc 15506 VAR_CPU_ARCH=ppc 15507 VAR_CPU_BITS=32 15508 VAR_CPU_ENDIAN=big 15509 ;; 15510 powerpc64) 15511 VAR_CPU=ppc64 15512 VAR_CPU_ARCH=ppc 15513 VAR_CPU_BITS=64 15514 VAR_CPU_ENDIAN=big 15515 ;; 15516 powerpc64le) 15517 VAR_CPU=ppc64le 15518 VAR_CPU_ARCH=ppc 15519 VAR_CPU_BITS=64 15520 VAR_CPU_ENDIAN=little 15521 ;; 15522 s390) 15523 VAR_CPU=s390 15524 VAR_CPU_ARCH=s390 15525 VAR_CPU_BITS=32 15526 VAR_CPU_ENDIAN=big 15527 ;; 15528 s390x) 15529 VAR_CPU=s390x 15530 VAR_CPU_ARCH=s390 15531 VAR_CPU_BITS=64 15532 VAR_CPU_ENDIAN=big 15533 ;; 15534 sparc) 15535 VAR_CPU=sparc 15536 VAR_CPU_ARCH=sparc 15537 VAR_CPU_BITS=32 15538 VAR_CPU_ENDIAN=big 15539 ;; 15540 sparcv9|sparc64) 15541 VAR_CPU=sparcv9 15542 VAR_CPU_ARCH=sparc 15543 VAR_CPU_BITS=64 15544 VAR_CPU_ENDIAN=big 15545 ;; 15546 *) 15547 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15548 ;; 15549 esac 15550 15551 # ..and setup our own variables. (Do this explicitely to facilitate searching) 15552 OPENJDK_BUILD_OS="$VAR_OS" 15553 if test "x$VAR_OS_TYPE" != x; then 15554 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15555 else 15556 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15557 fi 15558 if test "x$VAR_OS_ENV" != x; then 15559 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15560 else 15561 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15562 fi 15563 OPENJDK_BUILD_CPU="$VAR_CPU" 15564 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15565 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15566 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15567 15568 15569 15570 15571 15572 15573 15574 15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15576 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15578 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15579 15580 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15581 15582 case "$host_os" in 15583 *linux*) 15584 VAR_OS=linux 15585 VAR_OS_TYPE=unix 15586 ;; 15587 *android*) 15588 VAR_OS=android 15589 VAR_OS_TYPE=unix 15590 ;; 15591 *solaris*) 15592 VAR_OS=solaris 15593 VAR_OS_TYPE=unix 15594 ;; 15595 *darwin*) 15596 VAR_OS=macosx 15597 VAR_OS_TYPE=unix 15598 ;; 15599 *ios*) 15600 VAR_OS=ios 15601 VAR_OS_TYPE=unix 15602 ;; 15603 *bsd*) 15604 VAR_OS=bsd 15605 VAR_OS_TYPE=unix 15606 ;; 15607 *cygwin*) 15608 VAR_OS=windows 15609 VAR_OS_ENV=windows.cygwin 15610 ;; 15611 *mingw*) 15612 VAR_OS=windows 15613 VAR_OS_ENV=windows.msys 15614 ;; 15615 *aix*) 15616 VAR_OS=aix 15617 VAR_OS_TYPE=unix 15618 ;; 15619 *) 15620 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15621 ;; 15622 esac 15623 15624 15625 # First argument is the cpu name from the trip/quad 15626 case "$host_cpu" in 15627 x86_64) 15628 VAR_CPU=x86_64 15629 VAR_CPU_ARCH=x86 15630 VAR_CPU_BITS=64 15631 VAR_CPU_ENDIAN=little 15632 ;; 15633 i?86) 15634 VAR_CPU=x86 15635 VAR_CPU_ARCH=x86 15636 VAR_CPU_BITS=32 15637 VAR_CPU_ENDIAN=little 15638 ;; 15639 arm*) 15640 VAR_CPU=arm 15641 VAR_CPU_ARCH=arm 15642 VAR_CPU_BITS=32 15643 VAR_CPU_ENDIAN=little 15644 ;; 15645 aarch64) 15646 VAR_CPU=aarch64 15647 VAR_CPU_ARCH=aarch64 15648 VAR_CPU_BITS=64 15649 VAR_CPU_ENDIAN=little 15650 ;; 15651 powerpc) 15652 VAR_CPU=ppc 15653 VAR_CPU_ARCH=ppc 15654 VAR_CPU_BITS=32 15655 VAR_CPU_ENDIAN=big 15656 ;; 15657 powerpc64) 15658 VAR_CPU=ppc64 15659 VAR_CPU_ARCH=ppc 15660 VAR_CPU_BITS=64 15661 VAR_CPU_ENDIAN=big 15662 ;; 15663 powerpc64le) 15664 VAR_CPU=ppc64le 15665 VAR_CPU_ARCH=ppc 15666 VAR_CPU_BITS=64 15667 VAR_CPU_ENDIAN=little 15668 ;; 15669 s390) 15670 VAR_CPU=s390 15671 VAR_CPU_ARCH=s390 15672 VAR_CPU_BITS=32 15673 VAR_CPU_ENDIAN=big 15674 ;; 15675 s390x) 15676 VAR_CPU=s390x 15677 VAR_CPU_ARCH=s390 15678 VAR_CPU_BITS=64 15679 VAR_CPU_ENDIAN=big 15680 ;; 15681 sparc) 15682 VAR_CPU=sparc 15683 VAR_CPU_ARCH=sparc 15684 VAR_CPU_BITS=32 15685 VAR_CPU_ENDIAN=big 15686 ;; 15687 sparcv9|sparc64) 15688 VAR_CPU=sparcv9 15689 VAR_CPU_ARCH=sparc 15690 VAR_CPU_BITS=64 15691 VAR_CPU_ENDIAN=big 15692 ;; 15693 *) 15694 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 15695 ;; 15696 esac 15697 15698 # ... and setup our own variables. (Do this explicitely to facilitate searching) 15699 OPENJDK_TARGET_OS="$VAR_OS" 15700 if test "x$VAR_OS_TYPE" != x; then 15701 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 15702 else 15703 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 15704 fi 15705 if test "x$VAR_OS_ENV" != x; then 15706 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 15707 else 15708 OPENJDK_TARGET_OS_ENV="$VAR_OS" 15709 fi 15710 OPENJDK_TARGET_CPU="$VAR_CPU" 15711 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 15712 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 15713 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15714 15715 15716 15717 15718 15719 15720 15721 15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 15723 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 15725 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 15726 15727 15728 15729 # Check whether --with-target-bits was given. 15730 if test "${with_target_bits+set}" = set; then : 15731 withval=$with_target_bits; 15732 fi 15733 15734 15735 # We have three types of compiles: 15736 # native == normal compilation, target system == build system 15737 # cross == traditional cross compilation, target system != build system; special toolchain needed 15738 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 15739 # 15740 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 15741 # We're doing a proper cross-compilation 15742 COMPILE_TYPE="cross" 15743 else 15744 COMPILE_TYPE="native" 15745 fi 15746 15747 if test "x$with_target_bits" != x; then 15748 if test "x$COMPILE_TYPE" = "xcross"; then 15749 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 15750 fi 15751 15752 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15753 # A reduced build is requested 15754 COMPILE_TYPE="reduced" 15755 OPENJDK_TARGET_CPU_BITS=32 15756 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 15757 OPENJDK_TARGET_CPU=x86 15758 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 15759 OPENJDK_TARGET_CPU=sparc 15760 else 15761 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 15762 fi 15763 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 15764 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 15765 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 15766 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 15767 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 15768 else 15769 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 15770 fi 15771 fi 15772 15773 15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 15775 $as_echo_n "checking compilation type... " >&6; } 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 15777 $as_echo "$COMPILE_TYPE" >&6; } 15778 15779 15780 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 15781 REQUIRED_OS_NAME=SunOS 15782 REQUIRED_OS_VERSION=5.10 15783 fi 15784 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 15785 REQUIRED_OS_NAME=Linux 15786 REQUIRED_OS_VERSION=2.6 15787 fi 15788 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 15789 REQUIRED_OS_NAME=Windows 15790 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 15791 REQUIRED_OS_VERSION=5.2 15792 else 15793 REQUIRED_OS_VERSION=5.1 15794 fi 15795 fi 15796 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15797 REQUIRED_OS_NAME=Darwin 15798 REQUIRED_OS_VERSION=11.2 15799 fi 15800 if test "x$OPENJDK_TARGET_OS" = "xios"; then 15801 REQUIRED_OS_NAME=iOS 15802 REQUIRED_OS_VERSION=8.0 15803 fi 15804 if test "x$OPENJDK_TARGET_OS" = "xandroid"; then 15805 REQUIRED_OS_NAME=Android 15806 REQUIRED_OS_VERSION=4.4 15807 fi 15808 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 15809 REQUIRED_OS_NAME=AIX 15810 REQUIRED_OS_VERSION=7.1 15811 fi 15812 15813 15814 15815 15816 15817 15818 # Also store the legacy naming of the cpu. 15819 # Ie i586 and amd64 instead of x86 and x86_64 15820 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 15821 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15822 OPENJDK_TARGET_CPU_LEGACY="i586" 15823 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15824 # On all platforms except MacOSX replace x86_64 with amd64. 15825 OPENJDK_TARGET_CPU_LEGACY="amd64" 15826 fi 15827 15828 15829 # And the second legacy naming of the cpu. 15830 # Ie i386 and amd64 instead of x86 and x86_64. 15831 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 15832 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15833 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 15834 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15835 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 15836 fi 15837 15838 15839 # This is the name of the cpu (but using i386 and amd64 instead of 15840 # x86 and x86_64, respectively), preceeded by a /, to be used when 15841 # locating libraries. On macosx, it's empty, though. 15842 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 15843 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15844 OPENJDK_TARGET_CPU_LIBDIR="" 15845 fi 15846 15847 15848 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 15849 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 15850 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 15851 OPENJDK_TARGET_CPU_ISADIR="" 15852 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15853 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15854 OPENJDK_TARGET_CPU_ISADIR="/amd64" 15855 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15856 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 15857 fi 15858 fi 15859 15860 15861 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 15862 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 15863 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 15864 # On linux only, we replace x86 with i386. 15865 OPENJDK_TARGET_CPU_OSARCH="i386" 15866 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15867 # On all platforms except macosx, we replace x86_64 with amd64. 15868 OPENJDK_TARGET_CPU_OSARCH="amd64" 15869 fi 15870 15871 15872 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 15873 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15874 OPENJDK_TARGET_CPU_JLI="i386" 15875 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15876 # On all platforms except macosx, we replace x86_64 with amd64. 15877 OPENJDK_TARGET_CPU_JLI="amd64" 15878 fi 15879 # Now setup the -D flags for building libjli. 15880 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 15881 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15882 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 15883 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 15884 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 15885 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 15886 fi 15887 fi 15888 15889 15890 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15891 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 15892 else 15893 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 15894 fi 15895 15896 15897 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 15898 # Macosx is osx and x86_64 is x64 15899 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15900 OPENJDK_TARGET_OS_BUNDLE="osx" 15901 else 15902 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 15903 fi 15904 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15905 OPENJDK_TARGET_CPU_BUNDLE="x64" 15906 else 15907 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 15908 fi 15909 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 15910 15911 15912 15913 15914 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15915 A_LP64="LP64:=" 15916 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 15917 # unpack200.exe 15918 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 15919 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 15920 fi 15921 fi 15922 LP64=$A_LP64 15923 15924 15925 if test "x$COMPILE_TYPE" = "xcross"; then 15926 # FIXME: ... or should this include reduced builds..? 15927 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 15928 else 15929 DEFINE_CROSS_COMPILE_ARCH="" 15930 fi 15931 15932 15933 # Convert openjdk platform names to hotspot names 15934 15935 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 15936 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15937 HOTSPOT_TARGET_OS=bsd 15938 fi 15939 if test "x$OPENJDK_TARGET_OS" = xios; then 15940 HOTSPOT_TARGET_OS=bsd 15941 fi 15942 15943 15944 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 15945 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 15946 HOTSPOT_TARGET_OS_TYPE=posix 15947 fi 15948 15949 15950 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 15951 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15952 HOTSPOT_TARGET_CPU=x86_32 15953 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15954 HOTSPOT_TARGET_CPU=sparc 15955 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 15956 HOTSPOT_TARGET_CPU=ppc_64 15957 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 15958 HOTSPOT_TARGET_CPU=ppc_64 15959 fi 15960 15961 15962 # This is identical with OPENJDK_*, but define anyway for consistency. 15963 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 15964 15965 15966 # Setup HOTSPOT_TARGET_CPU_DEFINE 15967 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15968 HOTSPOT_TARGET_CPU_DEFINE=IA32 15969 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15970 HOTSPOT_TARGET_CPU_DEFINE=AMD64 15971 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15972 HOTSPOT_TARGET_CPU_DEFINE=SPARC 15973 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 15974 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 15975 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 15976 HOTSPOT_TARGET_CPU_DEFINE=PPC64 15977 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 15978 HOTSPOT_TARGET_CPU_DEFINE=PPC64 15979 15980 # The cpu defines below are for zero, we don't support them directly. 15981 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 15982 HOTSPOT_TARGET_CPU_DEFINE=SPARC 15983 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 15984 HOTSPOT_TARGET_CPU_DEFINE=PPC32 15985 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 15986 HOTSPOT_TARGET_CPU_DEFINE=S390 15987 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 15988 HOTSPOT_TARGET_CPU_DEFINE=S390 15989 fi 15990 15991 15992 15993 15994 # Also store the legacy naming of the cpu. 15995 # Ie i586 and amd64 instead of x86 and x86_64 15996 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 15997 if test "x$OPENJDK_BUILD_CPU" = xx86; then 15998 OPENJDK_BUILD_CPU_LEGACY="i586" 15999 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16000 # On all platforms except MacOSX replace x86_64 with amd64. 16001 OPENJDK_BUILD_CPU_LEGACY="amd64" 16002 fi 16003 16004 16005 # And the second legacy naming of the cpu. 16006 # Ie i386 and amd64 instead of x86 and x86_64. 16007 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16008 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16009 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16010 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16011 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16012 fi 16013 16014 16015 # This is the name of the cpu (but using i386 and amd64 instead of 16016 # x86 and x86_64, respectively), preceeded by a /, to be used when 16017 # locating libraries. On macosx, it's empty, though. 16018 OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB" 16019 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16020 OPENJDK_BUILD_CPU_LIBDIR="" 16021 fi 16022 16023 16024 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16025 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16026 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16027 OPENJDK_BUILD_CPU_ISADIR="" 16028 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16029 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16030 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16031 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16032 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16033 fi 16034 fi 16035 16036 16037 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16038 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16039 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16040 # On linux only, we replace x86 with i386. 16041 OPENJDK_BUILD_CPU_OSARCH="i386" 16042 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16043 # On all platforms except macosx, we replace x86_64 with amd64. 16044 OPENJDK_BUILD_CPU_OSARCH="amd64" 16045 fi 16046 16047 16048 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16049 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16050 OPENJDK_BUILD_CPU_JLI="i386" 16051 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16052 # On all platforms except macosx, we replace x86_64 with amd64. 16053 OPENJDK_BUILD_CPU_JLI="amd64" 16054 fi 16055 # Now setup the -D flags for building libjli. 16056 OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'" 16057 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16058 if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then 16059 OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 16060 elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 16061 OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 16062 fi 16063 fi 16064 16065 16066 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16067 OPENJDK_BUILD_OS_EXPORT_DIR=macosx 16068 else 16069 OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE} 16070 fi 16071 16072 16073 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16074 # Macosx is osx and x86_64 is x64 16075 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16076 OPENJDK_BUILD_OS_BUNDLE="osx" 16077 else 16078 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16079 fi 16080 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16081 OPENJDK_BUILD_CPU_BUNDLE="x64" 16082 else 16083 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16084 fi 16085 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16086 16087 16088 16089 16090 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16091 A_LP64="LP64:=" 16092 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16093 # unpack200.exe 16094 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16095 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16096 fi 16097 fi 16098 LP64=$A_LP64 16099 16100 16101 if test "x$COMPILE_TYPE" = "xcross"; then 16102 # FIXME: ... or should this include reduced builds..? 16103 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 16104 else 16105 DEFINE_CROSS_COMPILE_ARCH="" 16106 fi 16107 16108 16109 # Convert openjdk platform names to hotspot names 16110 16111 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16112 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16113 HOTSPOT_BUILD_OS=bsd 16114 fi 16115 if test "x$OPENJDK_BUILD_OS" = xios; then 16116 HOTSPOT_BUILD_OS=bsd 16117 fi 16118 16119 16120 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16121 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16122 HOTSPOT_BUILD_OS_TYPE=posix 16123 fi 16124 16125 16126 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16127 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16128 HOTSPOT_BUILD_CPU=x86_32 16129 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16130 HOTSPOT_BUILD_CPU=sparc 16131 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16132 HOTSPOT_BUILD_CPU=ppc_64 16133 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16134 HOTSPOT_BUILD_CPU=ppc_64 16135 fi 16136 16137 16138 # This is identical with OPENJDK_*, but define anyway for consistency. 16139 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16140 16141 16142 # Setup HOTSPOT_BUILD_CPU_DEFINE 16143 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16144 HOTSPOT_BUILD_CPU_DEFINE=IA32 16145 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16146 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16147 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16148 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16149 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16150 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16151 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16152 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16153 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16154 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16155 16156 # The cpu defines below are for zero, we don't support them directly. 16157 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16158 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16159 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16160 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16161 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16162 HOTSPOT_BUILD_CPU_DEFINE=S390 16163 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16164 HOTSPOT_BUILD_CPU_DEFINE=S390 16165 fi 16166 16167 16168 16169 16170 # ZERO_ARCHDEF is used to enable architecture-specific code. 16171 # This is used in legacy hotspot build. 16172 if test "x$OPENJDK_TARGET_CPU" = xarm; then 16173 HOTSPOT_TARGET_CPU_DEFINE="ARM32" 16174 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 16175 HOTSPOT_TARGET_CPU_DEFINE="AARCH64" 16176 fi 16177 16178 ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE" 16179 16180 16181 16182 16183 16184 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16185 16186 # Save the current directory this script was started from 16187 CURDIR="$PWD" 16188 16189 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16190 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16191 # was not available at that time. 16192 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16193 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16194 ORIGINAL_PATH="$REWRITTEN_PATH" 16195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16196 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16197 fi 16198 16199 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16200 PATH_SEP=";" 16201 16202 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16203 if test $SRC_ROOT_LENGTH -gt 100; then 16204 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16205 fi 16206 16207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16209 $as_echo_n "checking cygwin release... " >&6; } 16210 CYGWIN_VERSION=`$UNAME -r` 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16212 $as_echo "$CYGWIN_VERSION" >&6; } 16213 WINDOWS_ENV_VENDOR='cygwin' 16214 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16215 16216 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16217 if test "x$CYGWIN_VERSION_OLD" != x; then 16218 { $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 16219 $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;} 16220 as_fn_error $? "Cannot continue" "$LINENO" 5 16221 fi 16222 if test "x$CYGPATH" = x; then 16223 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16224 fi 16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16226 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16227 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16228 cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"` 16229 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16230 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16232 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16233 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16234 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16235 if test "x$test_cygdrive_prefix" = x; then 16236 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16237 fi 16238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16240 $as_echo_n "checking msys release... " >&6; } 16241 MSYS_VERSION=`$UNAME -r` 16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16243 $as_echo "$MSYS_VERSION" >&6; } 16244 16245 WINDOWS_ENV_VENDOR='msys' 16246 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16247 16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16249 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16250 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16251 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16252 16253 windows_path="$MSYS_ROOT_PATH" 16254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16255 unix_path=`$CYGPATH -u "$windows_path"` 16256 MSYS_ROOT_PATH="$unix_path" 16257 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16258 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16259 MSYS_ROOT_PATH="$unix_path" 16260 fi 16261 16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16263 $as_echo "$MSYS_ROOT_PATH" >&6; } 16264 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16265 else 16266 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16267 fi 16268 16269 # Test if windows or unix (cygwin/msys) find is first in path. 16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16271 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16272 FIND_BINARY_OUTPUT=`find --version 2>&1` 16273 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16275 $as_echo "unix style" >&6; } 16276 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16278 $as_echo "Windows" >&6; } 16279 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16280 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16281 { $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 16282 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16283 as_fn_error $? "Cannot continue" "$LINENO" 5 16284 else 16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16286 $as_echo "unknown" >&6; } 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16288 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16289 fi 16290 16291 else 16292 PATH_SEP=":" 16293 fi 16294 16295 16296 # We get the top-level directory from the supporting wrappers. 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16298 $as_echo_n "checking for top-level directory... " >&6; } 16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16300 $as_echo "$TOPDIR" >&6; } 16301 16302 16303 # Save the original version of TOPDIR for string comparisons 16304 ORIGINAL_TOPDIR="$TOPDIR" 16305 16306 16307 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16308 16309 # Only process if variable expands to non-empty 16310 16311 if test "x$CURDIR" != x; then 16312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16313 16314 # Input might be given as Windows format, start by converting to 16315 # unix format. 16316 path="$CURDIR" 16317 new_path=`$CYGPATH -u "$path"` 16318 16319 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16320 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16321 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16322 # "foo.exe" is OK but "foo" is an error. 16323 # 16324 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16325 # It is also a way to make sure we got the proper file name for the real test later on. 16326 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16327 if test "x$test_shortpath" = x; then 16328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16329 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16330 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16331 fi 16332 16333 # Call helper function which possibly converts this using DOS-style short mode. 16334 # If so, the updated path is stored in $new_path. 16335 16336 input_path="$new_path" 16337 # Check if we need to convert this using DOS-style short mode. If the path 16338 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16339 # take no chances and rewrite it. 16340 # Note: m4 eats our [], so we need to use [ and ] instead. 16341 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16342 if test "x$has_forbidden_chars" != x; then 16343 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16344 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16345 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16346 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16347 # Going to short mode and back again did indeed matter. Since short mode is 16348 # case insensitive, let's make it lowercase to improve readability. 16349 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16350 # Now convert it back to Unix-style (cygpath) 16351 input_path=`$CYGPATH -u "$shortmode_path"` 16352 new_path="$input_path" 16353 fi 16354 fi 16355 16356 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16357 if test "x$test_cygdrive_prefix" = x; then 16358 # As a simple fix, exclude /usr/bin since it's not a real path. 16359 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16360 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16361 # a path prefixed by /cygdrive for fixpath to work. 16362 new_path="$CYGWIN_ROOT_PATH$input_path" 16363 fi 16364 fi 16365 16366 16367 if test "x$path" != "x$new_path"; then 16368 CURDIR="$new_path" 16369 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16370 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16371 fi 16372 16373 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16374 16375 path="$CURDIR" 16376 has_colon=`$ECHO $path | $GREP ^.:` 16377 new_path="$path" 16378 if test "x$has_colon" = x; then 16379 # Not in mixed or Windows style, start by that. 16380 new_path=`cmd //c echo $path` 16381 fi 16382 16383 16384 input_path="$new_path" 16385 # Check if we need to convert this using DOS-style short mode. If the path 16386 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16387 # take no chances and rewrite it. 16388 # Note: m4 eats our [], so we need to use [ and ] instead. 16389 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16390 if test "x$has_forbidden_chars" != x; then 16391 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16392 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16393 fi 16394 16395 16396 windows_path="$new_path" 16397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16398 unix_path=`$CYGPATH -u "$windows_path"` 16399 new_path="$unix_path" 16400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16401 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16402 new_path="$unix_path" 16403 fi 16404 16405 if test "x$path" != "x$new_path"; then 16406 CURDIR="$new_path" 16407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16408 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16409 fi 16410 16411 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16412 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16413 16414 else 16415 # We're on a unix platform. Hooray! :) 16416 path="$CURDIR" 16417 has_space=`$ECHO "$path" | $GREP " "` 16418 if test "x$has_space" != x; then 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16420 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16421 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16422 fi 16423 16424 # Use eval to expand a potential ~ 16425 eval path="$path" 16426 if test ! -f "$path" && test ! -d "$path"; then 16427 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16428 fi 16429 16430 if test -d "$path"; then 16431 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16432 else 16433 dir="`$DIRNAME "$path"`" 16434 base="`$BASENAME "$path"`" 16435 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16436 fi 16437 fi 16438 fi 16439 16440 16441 # Only process if variable expands to non-empty 16442 16443 if test "x$TOPDIR" != x; then 16444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16445 16446 # Input might be given as Windows format, start by converting to 16447 # unix format. 16448 path="$TOPDIR" 16449 new_path=`$CYGPATH -u "$path"` 16450 16451 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16452 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16453 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16454 # "foo.exe" is OK but "foo" is an error. 16455 # 16456 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16457 # It is also a way to make sure we got the proper file name for the real test later on. 16458 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16459 if test "x$test_shortpath" = x; then 16460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16461 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16462 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16463 fi 16464 16465 # Call helper function which possibly converts this using DOS-style short mode. 16466 # If so, the updated path is stored in $new_path. 16467 16468 input_path="$new_path" 16469 # Check if we need to convert this using DOS-style short mode. If the path 16470 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16471 # take no chances and rewrite it. 16472 # Note: m4 eats our [], so we need to use [ and ] instead. 16473 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16474 if test "x$has_forbidden_chars" != x; then 16475 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16476 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16477 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16478 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16479 # Going to short mode and back again did indeed matter. Since short mode is 16480 # case insensitive, let's make it lowercase to improve readability. 16481 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16482 # Now convert it back to Unix-style (cygpath) 16483 input_path=`$CYGPATH -u "$shortmode_path"` 16484 new_path="$input_path" 16485 fi 16486 fi 16487 16488 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16489 if test "x$test_cygdrive_prefix" = x; then 16490 # As a simple fix, exclude /usr/bin since it's not a real path. 16491 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16492 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16493 # a path prefixed by /cygdrive for fixpath to work. 16494 new_path="$CYGWIN_ROOT_PATH$input_path" 16495 fi 16496 fi 16497 16498 16499 if test "x$path" != "x$new_path"; then 16500 TOPDIR="$new_path" 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16502 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16503 fi 16504 16505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16506 16507 path="$TOPDIR" 16508 has_colon=`$ECHO $path | $GREP ^.:` 16509 new_path="$path" 16510 if test "x$has_colon" = x; then 16511 # Not in mixed or Windows style, start by that. 16512 new_path=`cmd //c echo $path` 16513 fi 16514 16515 16516 input_path="$new_path" 16517 # Check if we need to convert this using DOS-style short mode. If the path 16518 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16519 # take no chances and rewrite it. 16520 # Note: m4 eats our [], so we need to use [ and ] instead. 16521 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16522 if test "x$has_forbidden_chars" != x; then 16523 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16524 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16525 fi 16526 16527 16528 windows_path="$new_path" 16529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16530 unix_path=`$CYGPATH -u "$windows_path"` 16531 new_path="$unix_path" 16532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16534 new_path="$unix_path" 16535 fi 16536 16537 if test "x$path" != "x$new_path"; then 16538 TOPDIR="$new_path" 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16540 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16541 fi 16542 16543 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16544 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16545 16546 else 16547 # We're on a unix platform. Hooray! :) 16548 path="$TOPDIR" 16549 has_space=`$ECHO "$path" | $GREP " "` 16550 if test "x$has_space" != x; then 16551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16552 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16553 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16554 fi 16555 16556 # Use eval to expand a potential ~ 16557 eval path="$path" 16558 if test ! -f "$path" && test ! -d "$path"; then 16559 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16560 fi 16561 16562 if test -d "$path"; then 16563 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16564 else 16565 dir="`$DIRNAME "$path"`" 16566 base="`$BASENAME "$path"`" 16567 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16568 fi 16569 fi 16570 fi 16571 16572 # SRC_ROOT is a traditional alias for TOPDIR. 16573 SRC_ROOT=$TOPDIR 16574 16575 # Calculate a canonical version of TOPDIR for string comparisons 16576 CANONICAL_TOPDIR=$TOPDIR 16577 16578 if test "x$OPENJDK_BUILD_OS" != xwindows; then 16579 # Follow a chain of symbolic links. Use readlink 16580 # where it exists, else fall back to horribly 16581 # complicated shell code. 16582 if test "x$READLINK_TESTED" != yes; then 16583 # On MacOSX there is a readlink tool with a different 16584 # purpose than the GNU readlink tool. Check the found readlink. 16585 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 16586 if test "x$ISGNU" = x; then 16587 # A readlink that we do not know how to use. 16588 # Are there other non-GNU readlinks out there? 16589 READLINK_TESTED=yes 16590 READLINK= 16591 fi 16592 fi 16593 16594 if test "x$READLINK" != x; then 16595 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 16596 else 16597 # Save the current directory for restoring afterwards 16598 STARTDIR=$PWD 16599 COUNTER=0 16600 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 16601 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 16602 cd $sym_link_dir 16603 # Use -P flag to resolve symlinks in directories. 16604 cd `$THEPWDCMD -P` 16605 sym_link_dir=`$THEPWDCMD -P` 16606 # Resolve file symlinks 16607 while test $COUNTER -lt 20; do 16608 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 16609 if test "x$ISLINK" == x; then 16610 # This is not a symbolic link! We are done! 16611 break 16612 fi 16613 # Again resolve directory symlinks since the target of the just found 16614 # link could be in a different directory 16615 cd `$DIRNAME $ISLINK` 16616 sym_link_dir=`$THEPWDCMD -P` 16617 sym_link_file=`$BASENAME $ISLINK` 16618 let COUNTER=COUNTER+1 16619 done 16620 cd $STARTDIR 16621 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 16622 fi 16623 fi 16624 16625 16626 16627 # Locate the directory of this script. 16628 AUTOCONF_DIR=$TOPDIR/common/autoconf 16629 16630 # Setup username (for use in adhoc version strings etc) 16631 # Outer [ ] to quote m4. 16632 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16633 16634 16635 16636 # Check if it's a pure open build or if custom sources are to be used. 16637 16638 # Check whether --enable-openjdk-only was given. 16639 if test "${enable_openjdk_only+set}" = set; then : 16640 enableval=$enable_openjdk_only; 16641 else 16642 enable_openjdk_only="no" 16643 fi 16644 16645 16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16647 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16649 $as_echo "$enable_openjdk_only" >&6; } 16650 if test "x$enable_openjdk_only" = "xyes"; then 16651 SUPPRESS_CUSTOM_EXTENSIONS="true" 16652 elif test "x$enable_openjdk_only" = "xno"; then 16653 SUPPRESS_CUSTOM_EXTENSIONS="false" 16654 else 16655 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16656 fi 16657 16658 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16659 # the IncludeCustomExtension macro. 16660 16661 16662 # Check whether --with-custom-make-dir was given. 16663 if test "${with_custom_make_dir+set}" = set; then : 16664 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 16665 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16666 fi 16667 16668 16669 16670 16671 # These are needed to be able to create a configuration name (and thus the output directory) 16672 16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16674 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16675 16676 # Check whether --with-jdk-variant was given. 16677 if test "${with_jdk_variant+set}" = set; then : 16678 withval=$with_jdk_variant; 16679 fi 16680 16681 16682 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16683 JDK_VARIANT="normal" 16684 else 16685 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16686 fi 16687 16688 16689 16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16691 $as_echo "$JDK_VARIANT" >&6; } 16692 16693 16694 DEBUG_LEVEL="release" 16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16696 $as_echo_n "checking which debug level to use... " >&6; } 16697 # Check whether --enable-debug was given. 16698 if test "${enable_debug+set}" = set; then : 16699 enableval=$enable_debug; 16700 ENABLE_DEBUG="${enableval}" 16701 DEBUG_LEVEL="fastdebug" 16702 16703 else 16704 ENABLE_DEBUG="no" 16705 fi 16706 16707 16708 16709 # Check whether --with-debug-level was given. 16710 if test "${with_debug_level+set}" = set; then : 16711 withval=$with_debug_level; 16712 DEBUG_LEVEL="${withval}" 16713 if test "x$ENABLE_DEBUG" = xyes; then 16714 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16715 fi 16716 16717 fi 16718 16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16720 $as_echo "$DEBUG_LEVEL" >&6; } 16721 16722 if test "x$DEBUG_LEVEL" != xrelease && \ 16723 test "x$DEBUG_LEVEL" != xoptimized && \ 16724 test "x$DEBUG_LEVEL" != xfastdebug && \ 16725 test "x$DEBUG_LEVEL" != xslowdebug; then 16726 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16727 fi 16728 16729 # Translate DEBUG_LEVEL to debug level used by Hotspot 16730 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16731 if test "x$DEBUG_LEVEL" = xrelease; then 16732 HOTSPOT_DEBUG_LEVEL="product" 16733 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16734 HOTSPOT_DEBUG_LEVEL="debug" 16735 fi 16736 16737 if test "x$DEBUG_LEVEL" = xoptimized; then 16738 # The debug level 'optimized' is a little special because it is currently only 16739 # applicable to the HotSpot build where it means to build a completely 16740 # optimized version of the VM without any debugging code (like for the 16741 # 'release' debug level which is called 'product' in the HotSpot build) but 16742 # with the exception that it can contain additional code which is otherwise 16743 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16744 # test new and/or experimental features which are not intended for customer 16745 # shipment. Because these new features need to be tested and benchmarked in 16746 # real world scenarios, we want to build the containing JDK at the 'release' 16747 # debug level. 16748 DEBUG_LEVEL="release" 16749 fi 16750 16751 16752 16753 16754 16755 16756 # Check whether --with-jvm-variants was given. 16757 if test "${with_jvm_variants+set}" = set; then : 16758 withval=$with_jvm_variants; 16759 fi 16760 16761 16762 if test "x$with_jvm_variants" = x; then 16763 with_jvm_variants="server" 16764 fi 16765 JVM_VARIANTS_OPT="$with_jvm_variants" 16766 16767 # Has the user listed more than one variant? 16768 # Additional [] needed to keep m4 from mangling shell constructs. 16769 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 16770 BUILDING_MULTIPLE_JVM_VARIANTS=true 16771 else 16772 BUILDING_MULTIPLE_JVM_VARIANTS=false 16773 fi 16774 # Replace the commas with AND for use in the build directory name. 16775 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 16776 16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 16778 $as_echo_n "checking which variants of the JVM to build... " >&6; } 16779 # JVM_VARIANTS is a space-separated list. 16780 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 16781 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 16783 $as_echo "$JVM_VARIANTS" >&6; } 16784 16785 # Check that the selected variants are valid 16786 16787 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 16788 # Notice that the original variant failes on SLES 10 and 11 16789 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 16790 STACK=${JVM_VARIANTS// /$'\n'} 16791 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16792 if test "x$INVALID_VARIANTS" != x; then 16793 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 16794 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 16795 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 16796 fi 16797 16798 # All "special" variants share the same output directory ("server") 16799 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 16800 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 16801 STACK=${JVM_VARIANTS// /$'\n'} 16802 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16803 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 16804 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 16805 fi 16806 16807 16808 16809 16810 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 16811 # zero behaves as a platform and rewrites these values. This is really weird. :( 16812 # We are guaranteed that we do not build any other variants when building zero. 16813 HOTSPOT_TARGET_CPU=zero 16814 HOTSPOT_TARGET_CPU_ARCH=zero 16815 fi 16816 16817 16818 # With basic setup done, call the custom early hook. 16819 16820 16821 # Check if we have devkits, extra paths or sysroot set. 16822 16823 16824 # Check whether --with-devkit was given. 16825 if test "${with_devkit+set}" = set; then : 16826 withval=$with_devkit; 16827 16828 # Only process if variable expands to non-empty 16829 16830 if test "x$with_devkit" != x; then 16831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16832 16833 # Input might be given as Windows format, start by converting to 16834 # unix format. 16835 path="$with_devkit" 16836 new_path=`$CYGPATH -u "$path"` 16837 16838 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16839 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16840 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16841 # "foo.exe" is OK but "foo" is an error. 16842 # 16843 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16844 # It is also a way to make sure we got the proper file name for the real test later on. 16845 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16846 if test "x$test_shortpath" = x; then 16847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16848 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16849 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 16850 fi 16851 16852 # Call helper function which possibly converts this using DOS-style short mode. 16853 # If so, the updated path is stored in $new_path. 16854 16855 input_path="$new_path" 16856 # Check if we need to convert this using DOS-style short mode. If the path 16857 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16858 # take no chances and rewrite it. 16859 # Note: m4 eats our [], so we need to use [ and ] instead. 16860 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16861 if test "x$has_forbidden_chars" != x; then 16862 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16863 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16864 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16865 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16866 # Going to short mode and back again did indeed matter. Since short mode is 16867 # case insensitive, let's make it lowercase to improve readability. 16868 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16869 # Now convert it back to Unix-style (cygpath) 16870 input_path=`$CYGPATH -u "$shortmode_path"` 16871 new_path="$input_path" 16872 fi 16873 fi 16874 16875 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16876 if test "x$test_cygdrive_prefix" = x; then 16877 # As a simple fix, exclude /usr/bin since it's not a real path. 16878 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16879 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16880 # a path prefixed by /cygdrive for fixpath to work. 16881 new_path="$CYGWIN_ROOT_PATH$input_path" 16882 fi 16883 fi 16884 16885 16886 if test "x$path" != "x$new_path"; then 16887 with_devkit="$new_path" 16888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16889 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16890 fi 16891 16892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16893 16894 path="$with_devkit" 16895 has_colon=`$ECHO $path | $GREP ^.:` 16896 new_path="$path" 16897 if test "x$has_colon" = x; then 16898 # Not in mixed or Windows style, start by that. 16899 new_path=`cmd //c echo $path` 16900 fi 16901 16902 16903 input_path="$new_path" 16904 # Check if we need to convert this using DOS-style short mode. If the path 16905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16906 # take no chances and rewrite it. 16907 # Note: m4 eats our [], so we need to use [ and ] instead. 16908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16909 if test "x$has_forbidden_chars" != x; then 16910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16911 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16912 fi 16913 16914 16915 windows_path="$new_path" 16916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16917 unix_path=`$CYGPATH -u "$windows_path"` 16918 new_path="$unix_path" 16919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16921 new_path="$unix_path" 16922 fi 16923 16924 if test "x$path" != "x$new_path"; then 16925 with_devkit="$new_path" 16926 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16927 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16928 fi 16929 16930 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16931 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16932 16933 else 16934 # We're on a unix platform. Hooray! :) 16935 path="$with_devkit" 16936 has_space=`$ECHO "$path" | $GREP " "` 16937 if test "x$has_space" != x; then 16938 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16939 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16940 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16941 fi 16942 16943 # Use eval to expand a potential ~ 16944 eval path="$path" 16945 if test ! -f "$path" && test ! -d "$path"; then 16946 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 16947 fi 16948 16949 if test -d "$path"; then 16950 with_devkit="`cd "$path"; $THEPWDCMD -L`" 16951 else 16952 dir="`$DIRNAME "$path"`" 16953 base="`$BASENAME "$path"`" 16954 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 16955 fi 16956 fi 16957 fi 16958 16959 DEVKIT_ROOT="$with_devkit" 16960 # Check for a meta data info file in the root of the devkit 16961 if test -f "$DEVKIT_ROOT/devkit.info"; then 16962 . $DEVKIT_ROOT/devkit.info 16963 # This potentially sets the following: 16964 # A descriptive name of the devkit 16965 16966 if test "x$DEVKIT_NAME" = x; then 16967 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 16968 fi 16969 16970 # Corresponds to --with-extra-path 16971 16972 if test "x$DEVKIT_EXTRA_PATH" = x; then 16973 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 16974 fi 16975 16976 # Corresponds to --with-toolchain-path 16977 16978 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16979 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 16980 fi 16981 16982 # Corresponds to --with-sysroot 16983 16984 if test "x$DEVKIT_SYSROOT" = x; then 16985 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 16986 fi 16987 16988 16989 # Identifies the Visual Studio version in the devkit 16990 16991 if test "x$DEVKIT_VS_VERSION" = x; then 16992 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 16993 fi 16994 16995 # The Visual Studio include environment variable 16996 16997 if test "x$DEVKIT_VS_INCLUDE" = x; then 16998 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 16999 fi 17000 17001 # The Visual Studio lib environment variable 17002 17003 if test "x$DEVKIT_VS_LIB" = x; then 17004 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17005 fi 17006 17007 # Corresponds to --with-msvcr-dll 17008 17009 if test "x$DEVKIT_MSVCR_DLL" = x; then 17010 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17011 fi 17012 17013 # Corresponds to --with-msvcp-dll 17014 17015 if test "x$DEVKIT_MSVCP_DLL" = x; then 17016 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17017 fi 17018 17019 fi 17020 17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17022 $as_echo_n "checking for devkit... " >&6; } 17023 if test "x$DEVKIT_NAME" != x; then 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17025 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17026 else 17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17028 $as_echo "$DEVKIT_ROOT" >&6; } 17029 fi 17030 17031 17032 if test "x$DEVKIT_EXTRA_PATH" != x; then 17033 if test "x$EXTRA_PATH" = x; then 17034 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17035 else 17036 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17037 fi 17038 fi 17039 17040 17041 # Fallback default of just /bin if DEVKIT_PATH is not defined 17042 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17043 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17044 fi 17045 17046 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17047 if test "x$TOOLCHAIN_PATH" = x; then 17048 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17049 else 17050 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17051 fi 17052 fi 17053 17054 17055 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17056 # places for backwards compatiblity. 17057 if test "x$DEVKIT_SYSROOT" != x; then 17058 SYSROOT="$DEVKIT_SYSROOT" 17059 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17060 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17061 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17062 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17063 fi 17064 17065 17066 fi 17067 17068 17069 # You can force the sysroot if the sysroot encoded into the compiler tools 17070 # is not correct. 17071 17072 # Check whether --with-sys-root was given. 17073 if test "${with_sys_root+set}" = set; then : 17074 withval=$with_sys_root; SYSROOT=$with_sys_root 17075 17076 fi 17077 17078 17079 17080 # Check whether --with-sysroot was given. 17081 if test "${with_sysroot+set}" = set; then : 17082 withval=$with_sysroot; SYSROOT=$with_sysroot 17083 17084 fi 17085 17086 17087 17088 # Check whether --with-build_sysroot was given. 17089 if test "${with_build_sysroot+set}" = set; then : 17090 withval=$with_build_sysroot; BUILD_SYSROOT=$with_build_sysroot 17091 17092 fi 17093 17094 17095 17096 # Check whether --with-tools-dir was given. 17097 if test "${with_tools_dir+set}" = set; then : 17098 withval=$with_tools_dir; 17099 if test "x$with_tools_dir" != x; then 17100 if test "x$TOOLCHAIN_PATH" = x; then 17101 TOOLCHAIN_PATH="$with_tools_dir" 17102 else 17103 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17104 fi 17105 fi 17106 17107 17108 fi 17109 17110 17111 17112 # Check whether --with-toolchain-path was given. 17113 if test "${with_toolchain_path+set}" = set; then : 17114 withval=$with_toolchain_path; 17115 if test "x$with_toolchain_path" != x; then 17116 if test "x$TOOLCHAIN_PATH" = x; then 17117 TOOLCHAIN_PATH="$with_toolchain_path" 17118 else 17119 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17120 fi 17121 fi 17122 17123 17124 fi 17125 17126 17127 17128 # Check whether --with-extra-path was given. 17129 if test "${with_extra_path+set}" = set; then : 17130 withval=$with_extra_path; 17131 if test "x$with_extra_path" != x; then 17132 if test "x$EXTRA_PATH" = x; then 17133 EXTRA_PATH="$with_extra_path" 17134 else 17135 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17136 fi 17137 fi 17138 17139 17140 fi 17141 17142 17143 if test "x$OPENJDK_TARGET_OS" = "xmacosx" || test "x$OPENJDK_TARGET_OS" = "xios" ; then 17144 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17145 # If not, detect if Xcode is installed by running xcodebuild -version 17146 # if no Xcode installed, xcodebuild exits with 1 17147 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17148 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17149 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17150 # fall back on the stub binary in /usr/bin/xcodebuild 17151 # Extract the first word of "xcodebuild", so it can be a program name with args. 17152 set dummy xcodebuild; ac_word=$2 17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17154 $as_echo_n "checking for $ac_word... " >&6; } 17155 if ${ac_cv_path_XCODEBUILD+:} false; then : 17156 $as_echo_n "(cached) " >&6 17157 else 17158 case $XCODEBUILD in 17159 [\\/]* | ?:[\\/]*) 17160 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17161 ;; 17162 *) 17163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17164 for as_dir in $TOOLCHAIN_PATH 17165 do 17166 IFS=$as_save_IFS 17167 test -z "$as_dir" && as_dir=. 17168 for ac_exec_ext in '' $ac_executable_extensions; do 17169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17170 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17172 break 2 17173 fi 17174 done 17175 done 17176 IFS=$as_save_IFS 17177 17178 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17179 ;; 17180 esac 17181 fi 17182 XCODEBUILD=$ac_cv_path_XCODEBUILD 17183 if test -n "$XCODEBUILD"; then 17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17185 $as_echo "$XCODEBUILD" >&6; } 17186 else 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17188 $as_echo "no" >&6; } 17189 fi 17190 17191 17192 else 17193 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17194 # when only the command line tools are installed there are no SDKs, so headers 17195 # are copied into the system frameworks 17196 XCODEBUILD= 17197 17198 fi 17199 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17201 $as_echo_n "checking for sdk name... " >&6; } 17202 17203 # Check whether --with-sdk-name was given. 17204 if test "${with_sdk_name+set}" = set; then : 17205 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17206 17207 fi 17208 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17210 $as_echo "$SDKNAME" >&6; } 17211 17212 # if toolchain path is specified then don't rely on system headers, they may not compile 17213 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17214 test -z "$TOOLCHAIN_PATH" && \ 17215 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17216 17217 if test -z "$SYSROOT"; then 17218 if test -n "$XCODEBUILD"; then 17219 # if we don't have system headers, use default SDK name (last resort) 17220 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17221 SDKNAME=${SDKNAME:-macosx} 17222 fi 17223 17224 if test -n "$SDKNAME"; then 17225 # Call xcodebuild to determine SYSROOT 17226 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17227 fi 17228 else 17229 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17230 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 17231 fi 17232 fi 17233 else 17234 # warn user if --with-sdk-name was also set 17235 if test -n "$with_sdk_name"; then 17236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17237 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17238 fi 17239 fi 17240 17241 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17242 # If no system framework headers, then SYSROOT must be set, or we won't build 17243 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 17244 fi 17245 17246 # Perform a basic sanity test 17247 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17248 if test -z "$SYSROOT"; then 17249 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 17250 else 17251 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17252 fi 17253 fi 17254 17255 # set SDKROOT too, Xcode tools will pick it up 17256 SDKROOT=$SYSROOT 17257 17258 fi 17259 17260 # Prepend the extra path to the global path 17261 17262 if test "x$EXTRA_PATH" != x; then 17263 if test "x$PATH" = x; then 17264 PATH="$EXTRA_PATH" 17265 else 17266 PATH="$EXTRA_PATH:$PATH" 17267 fi 17268 fi 17269 17270 17271 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 17272 # Add extra search paths on solaris for utilities like ar, as, dtrace etc... 17273 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:/usr/sbin" 17274 fi 17275 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17277 $as_echo_n "checking for sysroot... " >&6; } 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17279 $as_echo "$SYSROOT" >&6; } 17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17281 $as_echo_n "checking for toolchain path... " >&6; } 17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17283 $as_echo "$TOOLCHAIN_PATH" >&6; } 17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17285 $as_echo_n "checking for extra path... " >&6; } 17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17287 $as_echo "$EXTRA_PATH" >&6; } 17288 17289 17290 # To properly create a configuration name, we need to have the OpenJDK target 17291 # and options (variants and debug level) parsed. 17292 17293 17294 17295 # Check whether --with-conf-name was given. 17296 if test "${with_conf_name+set}" = set; then : 17297 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17298 fi 17299 17300 17301 # Test from where we are running configure, in or outside of src root. 17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17303 $as_echo_n "checking where to store configuration... " >&6; } 17304 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 17305 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 17306 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 17307 # We are running configure from the src root. 17308 # Create a default ./build/target-variant-debuglevel output root. 17309 if test "x${CONF_NAME}" = x; then 17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17311 $as_echo "in default location" >&6; } 17312 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17313 else 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17315 $as_echo "in build directory with custom name" >&6; } 17316 fi 17317 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 17318 $MKDIR -p "$OUTPUT_ROOT" 17319 if test ! -d "$OUTPUT_ROOT"; then 17320 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 17321 fi 17322 else 17323 # We are running configure from outside of the src dir. 17324 # Then use the current directory as output dir! 17325 # If configuration is situated in normal build directory, just use the build 17326 # directory name as configuration name, otherwise use the complete path. 17327 if test "x${CONF_NAME}" = x; then 17328 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 17329 fi 17330 OUTPUT_ROOT="$CURDIR" 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17332 $as_echo "in current directory" >&6; } 17333 17334 # WARNING: This might be a bad thing to do. You need to be sure you want to 17335 # have a configuration in this directory. Do some sanity checks! 17336 17337 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 17338 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17339 # other files 17340 files_present=`$LS $OUTPUT_ROOT` 17341 # Configure has already touched config.log and confdefs.h in the current dir when this check 17342 # is performed. 17343 filtered_files=`$ECHO "$files_present" \ 17344 | $SED -e 's/config.log//g' \ 17345 -e 's/configure.log//g' \ 17346 -e 's/confdefs.h//g' \ 17347 -e 's/ //g' \ 17348 | $TR -d '\n'` 17349 if test "x$filtered_files" != x; then 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17351 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17352 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17353 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17355 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17356 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17357 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17359 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17360 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 17361 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 17362 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17363 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17364 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17365 fi 17366 fi 17367 fi 17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17369 $as_echo_n "checking what configuration name to use... " >&6; } 17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17371 $as_echo "$CONF_NAME" >&6; } 17372 17373 17374 # Only process if variable expands to non-empty 17375 17376 if test "x$OUTPUT_ROOT" != x; then 17377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17378 17379 # Input might be given as Windows format, start by converting to 17380 # unix format. 17381 path="$OUTPUT_ROOT" 17382 new_path=`$CYGPATH -u "$path"` 17383 17384 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17385 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17386 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17387 # "foo.exe" is OK but "foo" is an error. 17388 # 17389 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17390 # It is also a way to make sure we got the proper file name for the real test later on. 17391 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17392 if test "x$test_shortpath" = x; then 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17394 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17395 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 17396 fi 17397 17398 # Call helper function which possibly converts this using DOS-style short mode. 17399 # If so, the updated path is stored in $new_path. 17400 17401 input_path="$new_path" 17402 # Check if we need to convert this using DOS-style short mode. If the path 17403 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17404 # take no chances and rewrite it. 17405 # Note: m4 eats our [], so we need to use [ and ] instead. 17406 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17407 if test "x$has_forbidden_chars" != x; then 17408 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17409 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17410 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17411 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17412 # Going to short mode and back again did indeed matter. Since short mode is 17413 # case insensitive, let's make it lowercase to improve readability. 17414 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17415 # Now convert it back to Unix-style (cygpath) 17416 input_path=`$CYGPATH -u "$shortmode_path"` 17417 new_path="$input_path" 17418 fi 17419 fi 17420 17421 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17422 if test "x$test_cygdrive_prefix" = x; then 17423 # As a simple fix, exclude /usr/bin since it's not a real path. 17424 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17425 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17426 # a path prefixed by /cygdrive for fixpath to work. 17427 new_path="$CYGWIN_ROOT_PATH$input_path" 17428 fi 17429 fi 17430 17431 17432 if test "x$path" != "x$new_path"; then 17433 OUTPUT_ROOT="$new_path" 17434 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17435 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17436 fi 17437 17438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17439 17440 path="$OUTPUT_ROOT" 17441 has_colon=`$ECHO $path | $GREP ^.:` 17442 new_path="$path" 17443 if test "x$has_colon" = x; then 17444 # Not in mixed or Windows style, start by that. 17445 new_path=`cmd //c echo $path` 17446 fi 17447 17448 17449 input_path="$new_path" 17450 # Check if we need to convert this using DOS-style short mode. If the path 17451 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17452 # take no chances and rewrite it. 17453 # Note: m4 eats our [], so we need to use [ and ] instead. 17454 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17455 if test "x$has_forbidden_chars" != x; then 17456 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17457 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17458 fi 17459 17460 17461 windows_path="$new_path" 17462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17463 unix_path=`$CYGPATH -u "$windows_path"` 17464 new_path="$unix_path" 17465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17466 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17467 new_path="$unix_path" 17468 fi 17469 17470 if test "x$path" != "x$new_path"; then 17471 OUTPUT_ROOT="$new_path" 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17473 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17474 fi 17475 17476 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17477 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17478 17479 else 17480 # We're on a unix platform. Hooray! :) 17481 path="$OUTPUT_ROOT" 17482 has_space=`$ECHO "$path" | $GREP " "` 17483 if test "x$has_space" != x; then 17484 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17485 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17486 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17487 fi 17488 17489 # Use eval to expand a potential ~ 17490 eval path="$path" 17491 if test ! -f "$path" && test ! -d "$path"; then 17492 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 17493 fi 17494 17495 if test -d "$path"; then 17496 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 17497 else 17498 dir="`$DIRNAME "$path"`" 17499 base="`$BASENAME "$path"`" 17500 OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base" 17501 fi 17502 fi 17503 fi 17504 17505 17506 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 17507 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17508 17509 SPEC=$OUTPUT_ROOT/spec.gmk 17510 17511 CONF_NAME=$CONF_NAME 17512 17513 OUTPUT_ROOT=$OUTPUT_ROOT 17514 17515 17516 17517 # The spec.gmk file contains all variables for the make system. 17518 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17519 17520 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17521 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17522 17523 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17524 ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17525 17526 # The compare.sh is used to compare the build output to other builds. 17527 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17528 17529 # The generated Makefile knows where the spec.gmk is and where the source is. 17530 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 17531 # which will look for generated configurations 17532 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 17533 17534 17535 17536 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17537 17538 for ac_prog in apt-get yum port pkgutil pkgadd 17539 do 17540 # Extract the first word of "$ac_prog", so it can be a program name with args. 17541 set dummy $ac_prog; ac_word=$2 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17543 $as_echo_n "checking for $ac_word... " >&6; } 17544 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17545 $as_echo_n "(cached) " >&6 17546 else 17547 if test -n "$PKGHANDLER"; then 17548 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17549 else 17550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17551 for as_dir in $PATH 17552 do 17553 IFS=$as_save_IFS 17554 test -z "$as_dir" && as_dir=. 17555 for ac_exec_ext in '' $ac_executable_extensions; do 17556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17557 ac_cv_prog_PKGHANDLER="$ac_prog" 17558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17559 break 2 17560 fi 17561 done 17562 done 17563 IFS=$as_save_IFS 17564 17565 fi 17566 fi 17567 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17568 if test -n "$PKGHANDLER"; then 17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17570 $as_echo "$PKGHANDLER" >&6; } 17571 else 17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17573 $as_echo "no" >&6; } 17574 fi 17575 17576 17577 test -n "$PKGHANDLER" && break 17578 done 17579 17580 17581 17582 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17583 17584 17585 17586 # Publish this variable in the help. 17587 17588 17589 if [ -z "${MAKE+x}" ]; then 17590 # The variable is not set by user, try to locate tool using the code snippet 17591 17592 # Try our hardest to locate a correct version of GNU make 17593 for ac_prog in gmake 17594 do 17595 # Extract the first word of "$ac_prog", so it can be a program name with args. 17596 set dummy $ac_prog; ac_word=$2 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17598 $as_echo_n "checking for $ac_word... " >&6; } 17599 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17600 $as_echo_n "(cached) " >&6 17601 else 17602 case $CHECK_GMAKE in 17603 [\\/]* | ?:[\\/]*) 17604 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17605 ;; 17606 *) 17607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17608 for as_dir in $PATH 17609 do 17610 IFS=$as_save_IFS 17611 test -z "$as_dir" && as_dir=. 17612 for ac_exec_ext in '' $ac_executable_extensions; do 17613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17614 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17616 break 2 17617 fi 17618 done 17619 done 17620 IFS=$as_save_IFS 17621 17622 ;; 17623 esac 17624 fi 17625 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17626 if test -n "$CHECK_GMAKE"; then 17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17628 $as_echo "$CHECK_GMAKE" >&6; } 17629 else 17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17631 $as_echo "no" >&6; } 17632 fi 17633 17634 17635 test -n "$CHECK_GMAKE" && break 17636 done 17637 17638 17639 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17640 DESCRIPTION="gmake in PATH" 17641 17642 # On Cygwin, we require a newer version of make than on other platforms 17643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17644 MAKE_VERSION_EXPR="-e 4\." 17645 MAKE_REQUIRED_VERSION="4.0" 17646 else 17647 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17648 MAKE_REQUIRED_VERSION="3.81" 17649 fi 17650 17651 if test "x$MAKE_CANDIDATE" != x; then 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17653 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17654 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17655 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17656 if test "x$IS_GNU_MAKE" = x; then 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17658 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17659 else 17660 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17661 if test "x$IS_MODERN_MAKE" = x; then 17662 { $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 17663 $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;} 17664 else 17665 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17667 MAKE_EXPECTED_ENV='cygwin' 17668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17669 MAKE_EXPECTED_ENV='msys' 17670 else 17671 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17672 fi 17673 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17674 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17675 else 17676 # Not relevant for non-Windows 17677 IS_MAKE_CORRECT_ENV=true 17678 fi 17679 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17680 { $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 17681 $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;} 17682 else 17683 FOUND_MAKE=$MAKE_CANDIDATE 17684 17685 # Only process if variable expands to non-empty 17686 17687 if test "x$FOUND_MAKE" != x; then 17688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17689 17690 # First separate the path from the arguments. This will split at the first 17691 # space. 17692 complete="$FOUND_MAKE" 17693 path="${complete%% *}" 17694 tmp="$complete EOL" 17695 arguments="${tmp#* }" 17696 17697 # Input might be given as Windows format, start by converting to 17698 # unix format. 17699 new_path=`$CYGPATH -u "$path"` 17700 17701 # Now try to locate executable using which 17702 new_path=`$WHICH "$new_path" 2> /dev/null` 17703 # bat and cmd files are not always considered executable in cygwin causing which 17704 # to not find them 17705 if test "x$new_path" = x \ 17706 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17707 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17708 new_path=`$CYGPATH -u "$path"` 17709 fi 17710 if test "x$new_path" = x; then 17711 # Oops. Which didn't find the executable. 17712 # The splitting of arguments from the executable at a space might have been incorrect, 17713 # since paths with space are more likely in Windows. Give it another try with the whole 17714 # argument. 17715 path="$complete" 17716 arguments="EOL" 17717 new_path=`$CYGPATH -u "$path"` 17718 new_path=`$WHICH "$new_path" 2> /dev/null` 17719 # bat and cmd files are not always considered executable in cygwin causing which 17720 # to not find them 17721 if test "x$new_path" = x \ 17722 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17723 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17724 new_path=`$CYGPATH -u "$path"` 17725 fi 17726 if test "x$new_path" = x; then 17727 # It's still not found. Now this is an unrecoverable error. 17728 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17729 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17730 has_space=`$ECHO "$complete" | $GREP " "` 17731 if test "x$has_space" != x; then 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17733 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17734 fi 17735 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17736 fi 17737 fi 17738 17739 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17740 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17741 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17742 # "foo.exe" is OK but "foo" is an error. 17743 # 17744 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17745 # It is also a way to make sure we got the proper file name for the real test later on. 17746 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17747 if test "x$test_shortpath" = x; then 17748 # Short path failed, file does not exist as specified. 17749 # Try adding .exe or .cmd 17750 if test -f "${new_path}.exe"; then 17751 input_to_shortpath="${new_path}.exe" 17752 elif test -f "${new_path}.cmd"; then 17753 input_to_shortpath="${new_path}.cmd" 17754 else 17755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17756 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17757 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17758 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17759 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17760 fi 17761 else 17762 input_to_shortpath="$new_path" 17763 fi 17764 17765 # Call helper function which possibly converts this using DOS-style short mode. 17766 # If so, the updated path is stored in $new_path. 17767 new_path="$input_to_shortpath" 17768 17769 input_path="$input_to_shortpath" 17770 # Check if we need to convert this using DOS-style short mode. If the path 17771 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17772 # take no chances and rewrite it. 17773 # Note: m4 eats our [], so we need to use [ and ] instead. 17774 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17775 if test "x$has_forbidden_chars" != x; then 17776 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17777 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17778 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17779 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17780 # Going to short mode and back again did indeed matter. Since short mode is 17781 # case insensitive, let's make it lowercase to improve readability. 17782 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17783 # Now convert it back to Unix-style (cygpath) 17784 input_path=`$CYGPATH -u "$shortmode_path"` 17785 new_path="$input_path" 17786 fi 17787 fi 17788 17789 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17790 if test "x$test_cygdrive_prefix" = x; then 17791 # As a simple fix, exclude /usr/bin since it's not a real path. 17792 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17793 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17794 # a path prefixed by /cygdrive for fixpath to work. 17795 new_path="$CYGWIN_ROOT_PATH$input_path" 17796 fi 17797 fi 17798 17799 # remove trailing .exe if any 17800 new_path="${new_path/%.exe/}" 17801 17802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17803 17804 # First separate the path from the arguments. This will split at the first 17805 # space. 17806 complete="$FOUND_MAKE" 17807 path="${complete%% *}" 17808 tmp="$complete EOL" 17809 arguments="${tmp#* }" 17810 17811 # Input might be given as Windows format, start by converting to 17812 # unix format. 17813 new_path="$path" 17814 17815 windows_path="$new_path" 17816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17817 unix_path=`$CYGPATH -u "$windows_path"` 17818 new_path="$unix_path" 17819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17821 new_path="$unix_path" 17822 fi 17823 17824 17825 # Now try to locate executable using which 17826 new_path=`$WHICH "$new_path" 2> /dev/null` 17827 17828 if test "x$new_path" = x; then 17829 # Oops. Which didn't find the executable. 17830 # The splitting of arguments from the executable at a space might have been incorrect, 17831 # since paths with space are more likely in Windows. Give it another try with the whole 17832 # argument. 17833 path="$complete" 17834 arguments="EOL" 17835 new_path="$path" 17836 17837 windows_path="$new_path" 17838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17839 unix_path=`$CYGPATH -u "$windows_path"` 17840 new_path="$unix_path" 17841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17842 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17843 new_path="$unix_path" 17844 fi 17845 17846 17847 new_path=`$WHICH "$new_path" 2> /dev/null` 17848 # bat and cmd files are not always considered executable in MSYS causing which 17849 # to not find them 17850 if test "x$new_path" = x \ 17851 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17852 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17853 new_path="$path" 17854 17855 windows_path="$new_path" 17856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17857 unix_path=`$CYGPATH -u "$windows_path"` 17858 new_path="$unix_path" 17859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17860 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17861 new_path="$unix_path" 17862 fi 17863 17864 fi 17865 17866 if test "x$new_path" = x; then 17867 # It's still not found. Now this is an unrecoverable error. 17868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17869 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17870 has_space=`$ECHO "$complete" | $GREP " "` 17871 if test "x$has_space" != x; then 17872 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17873 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17874 fi 17875 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17876 fi 17877 fi 17878 17879 # Now new_path has a complete unix path to the binary 17880 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17881 # Keep paths in /bin as-is, but remove trailing .exe if any 17882 new_path="${new_path/%.exe/}" 17883 # Do not save /bin paths to all_fixpath_prefixes! 17884 else 17885 # Not in mixed or Windows style, start by that. 17886 new_path=`cmd //c echo $new_path` 17887 17888 input_path="$new_path" 17889 # Check if we need to convert this using DOS-style short mode. If the path 17890 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17891 # take no chances and rewrite it. 17892 # Note: m4 eats our [], so we need to use [ and ] instead. 17893 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17894 if test "x$has_forbidden_chars" != x; then 17895 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17896 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17897 fi 17898 17899 # Output is in $new_path 17900 17901 windows_path="$new_path" 17902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17903 unix_path=`$CYGPATH -u "$windows_path"` 17904 new_path="$unix_path" 17905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17906 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17907 new_path="$unix_path" 17908 fi 17909 17910 # remove trailing .exe if any 17911 new_path="${new_path/%.exe/}" 17912 17913 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17914 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17915 fi 17916 17917 else 17918 # We're on a unix platform. Hooray! :) 17919 # First separate the path from the arguments. This will split at the first 17920 # space. 17921 complete="$FOUND_MAKE" 17922 path="${complete%% *}" 17923 tmp="$complete EOL" 17924 arguments="${tmp#* }" 17925 17926 # Cannot rely on the command "which" here since it doesn't always work. 17927 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17928 if test -z "$is_absolute_path"; then 17929 # Path to executable is not absolute. Find it. 17930 IFS_save="$IFS" 17931 IFS=: 17932 for p in $PATH; do 17933 if test -f "$p/$path" && test -x "$p/$path"; then 17934 new_path="$p/$path" 17935 break 17936 fi 17937 done 17938 IFS="$IFS_save" 17939 else 17940 # This is an absolute path, we can use it without further modifications. 17941 new_path="$path" 17942 fi 17943 17944 if test "x$new_path" = x; then 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17946 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17947 has_space=`$ECHO "$complete" | $GREP " "` 17948 if test "x$has_space" != x; then 17949 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17950 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17951 fi 17952 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17953 fi 17954 fi 17955 17956 # Now join together the path and the arguments once again 17957 if test "x$arguments" != xEOL; then 17958 new_complete="$new_path ${arguments% *}" 17959 else 17960 new_complete="$new_path" 17961 fi 17962 17963 if test "x$complete" != "x$new_complete"; then 17964 FOUND_MAKE="$new_complete" 17965 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17966 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17967 fi 17968 fi 17969 17970 fi 17971 fi 17972 fi 17973 fi 17974 17975 17976 if test "x$FOUND_MAKE" = x; then 17977 for ac_prog in make 17978 do 17979 # Extract the first word of "$ac_prog", so it can be a program name with args. 17980 set dummy $ac_prog; ac_word=$2 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17982 $as_echo_n "checking for $ac_word... " >&6; } 17983 if ${ac_cv_path_CHECK_MAKE+:} false; then : 17984 $as_echo_n "(cached) " >&6 17985 else 17986 case $CHECK_MAKE in 17987 [\\/]* | ?:[\\/]*) 17988 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 17989 ;; 17990 *) 17991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17992 for as_dir in $PATH 17993 do 17994 IFS=$as_save_IFS 17995 test -z "$as_dir" && as_dir=. 17996 for ac_exec_ext in '' $ac_executable_extensions; do 17997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17998 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 17999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18000 break 2 18001 fi 18002 done 18003 done 18004 IFS=$as_save_IFS 18005 18006 ;; 18007 esac 18008 fi 18009 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18010 if test -n "$CHECK_MAKE"; then 18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18012 $as_echo "$CHECK_MAKE" >&6; } 18013 else 18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18015 $as_echo "no" >&6; } 18016 fi 18017 18018 18019 test -n "$CHECK_MAKE" && break 18020 done 18021 18022 18023 MAKE_CANDIDATE=""$CHECK_MAKE"" 18024 DESCRIPTION="make in PATH" 18025 18026 # On Cygwin, we require a newer version of make than on other platforms 18027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18028 MAKE_VERSION_EXPR="-e 4\." 18029 MAKE_REQUIRED_VERSION="4.0" 18030 else 18031 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18032 MAKE_REQUIRED_VERSION="3.81" 18033 fi 18034 18035 if test "x$MAKE_CANDIDATE" != x; then 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18037 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18038 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18039 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18040 if test "x$IS_GNU_MAKE" = x; then 18041 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18042 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18043 else 18044 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18045 if test "x$IS_MODERN_MAKE" = x; then 18046 { $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 18047 $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;} 18048 else 18049 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18051 MAKE_EXPECTED_ENV='cygwin' 18052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18053 MAKE_EXPECTED_ENV='msys' 18054 else 18055 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18056 fi 18057 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18058 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18059 else 18060 # Not relevant for non-Windows 18061 IS_MAKE_CORRECT_ENV=true 18062 fi 18063 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18064 { $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 18065 $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;} 18066 else 18067 FOUND_MAKE=$MAKE_CANDIDATE 18068 18069 # Only process if variable expands to non-empty 18070 18071 if test "x$FOUND_MAKE" != x; then 18072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18073 18074 # First separate the path from the arguments. This will split at the first 18075 # space. 18076 complete="$FOUND_MAKE" 18077 path="${complete%% *}" 18078 tmp="$complete EOL" 18079 arguments="${tmp#* }" 18080 18081 # Input might be given as Windows format, start by converting to 18082 # unix format. 18083 new_path=`$CYGPATH -u "$path"` 18084 18085 # Now try to locate executable using which 18086 new_path=`$WHICH "$new_path" 2> /dev/null` 18087 # bat and cmd files are not always considered executable in cygwin causing which 18088 # to not find them 18089 if test "x$new_path" = x \ 18090 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18091 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18092 new_path=`$CYGPATH -u "$path"` 18093 fi 18094 if test "x$new_path" = x; then 18095 # Oops. Which didn't find the executable. 18096 # The splitting of arguments from the executable at a space might have been incorrect, 18097 # since paths with space are more likely in Windows. Give it another try with the whole 18098 # argument. 18099 path="$complete" 18100 arguments="EOL" 18101 new_path=`$CYGPATH -u "$path"` 18102 new_path=`$WHICH "$new_path" 2> /dev/null` 18103 # bat and cmd files are not always considered executable in cygwin causing which 18104 # to not find them 18105 if test "x$new_path" = x \ 18106 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18107 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18108 new_path=`$CYGPATH -u "$path"` 18109 fi 18110 if test "x$new_path" = x; then 18111 # It's still not found. Now this is an unrecoverable error. 18112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18113 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18114 has_space=`$ECHO "$complete" | $GREP " "` 18115 if test "x$has_space" != x; then 18116 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18117 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18118 fi 18119 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18120 fi 18121 fi 18122 18123 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18124 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18125 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18126 # "foo.exe" is OK but "foo" is an error. 18127 # 18128 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18129 # It is also a way to make sure we got the proper file name for the real test later on. 18130 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18131 if test "x$test_shortpath" = x; then 18132 # Short path failed, file does not exist as specified. 18133 # Try adding .exe or .cmd 18134 if test -f "${new_path}.exe"; then 18135 input_to_shortpath="${new_path}.exe" 18136 elif test -f "${new_path}.cmd"; then 18137 input_to_shortpath="${new_path}.cmd" 18138 else 18139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18140 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18141 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18142 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18143 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18144 fi 18145 else 18146 input_to_shortpath="$new_path" 18147 fi 18148 18149 # Call helper function which possibly converts this using DOS-style short mode. 18150 # If so, the updated path is stored in $new_path. 18151 new_path="$input_to_shortpath" 18152 18153 input_path="$input_to_shortpath" 18154 # Check if we need to convert this using DOS-style short mode. If the path 18155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18156 # take no chances and rewrite it. 18157 # Note: m4 eats our [], so we need to use [ and ] instead. 18158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18159 if test "x$has_forbidden_chars" != x; then 18160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18161 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18162 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18163 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18164 # Going to short mode and back again did indeed matter. Since short mode is 18165 # case insensitive, let's make it lowercase to improve readability. 18166 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18167 # Now convert it back to Unix-style (cygpath) 18168 input_path=`$CYGPATH -u "$shortmode_path"` 18169 new_path="$input_path" 18170 fi 18171 fi 18172 18173 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18174 if test "x$test_cygdrive_prefix" = x; then 18175 # As a simple fix, exclude /usr/bin since it's not a real path. 18176 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18177 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18178 # a path prefixed by /cygdrive for fixpath to work. 18179 new_path="$CYGWIN_ROOT_PATH$input_path" 18180 fi 18181 fi 18182 18183 # remove trailing .exe if any 18184 new_path="${new_path/%.exe/}" 18185 18186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18187 18188 # First separate the path from the arguments. This will split at the first 18189 # space. 18190 complete="$FOUND_MAKE" 18191 path="${complete%% *}" 18192 tmp="$complete EOL" 18193 arguments="${tmp#* }" 18194 18195 # Input might be given as Windows format, start by converting to 18196 # unix format. 18197 new_path="$path" 18198 18199 windows_path="$new_path" 18200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18201 unix_path=`$CYGPATH -u "$windows_path"` 18202 new_path="$unix_path" 18203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18205 new_path="$unix_path" 18206 fi 18207 18208 18209 # Now try to locate executable using which 18210 new_path=`$WHICH "$new_path" 2> /dev/null` 18211 18212 if test "x$new_path" = x; then 18213 # Oops. Which didn't find the executable. 18214 # The splitting of arguments from the executable at a space might have been incorrect, 18215 # since paths with space are more likely in Windows. Give it another try with the whole 18216 # argument. 18217 path="$complete" 18218 arguments="EOL" 18219 new_path="$path" 18220 18221 windows_path="$new_path" 18222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18223 unix_path=`$CYGPATH -u "$windows_path"` 18224 new_path="$unix_path" 18225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18227 new_path="$unix_path" 18228 fi 18229 18230 18231 new_path=`$WHICH "$new_path" 2> /dev/null` 18232 # bat and cmd files are not always considered executable in MSYS causing which 18233 # to not find them 18234 if test "x$new_path" = x \ 18235 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18236 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18237 new_path="$path" 18238 18239 windows_path="$new_path" 18240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18241 unix_path=`$CYGPATH -u "$windows_path"` 18242 new_path="$unix_path" 18243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18244 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18245 new_path="$unix_path" 18246 fi 18247 18248 fi 18249 18250 if test "x$new_path" = x; then 18251 # It's still not found. Now this is an unrecoverable error. 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18253 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18254 has_space=`$ECHO "$complete" | $GREP " "` 18255 if test "x$has_space" != x; then 18256 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18257 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18258 fi 18259 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18260 fi 18261 fi 18262 18263 # Now new_path has a complete unix path to the binary 18264 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18265 # Keep paths in /bin as-is, but remove trailing .exe if any 18266 new_path="${new_path/%.exe/}" 18267 # Do not save /bin paths to all_fixpath_prefixes! 18268 else 18269 # Not in mixed or Windows style, start by that. 18270 new_path=`cmd //c echo $new_path` 18271 18272 input_path="$new_path" 18273 # Check if we need to convert this using DOS-style short mode. If the path 18274 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18275 # take no chances and rewrite it. 18276 # Note: m4 eats our [], so we need to use [ and ] instead. 18277 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18278 if test "x$has_forbidden_chars" != x; then 18279 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18280 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18281 fi 18282 18283 # Output is in $new_path 18284 18285 windows_path="$new_path" 18286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18287 unix_path=`$CYGPATH -u "$windows_path"` 18288 new_path="$unix_path" 18289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18290 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18291 new_path="$unix_path" 18292 fi 18293 18294 # remove trailing .exe if any 18295 new_path="${new_path/%.exe/}" 18296 18297 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18298 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18299 fi 18300 18301 else 18302 # We're on a unix platform. Hooray! :) 18303 # First separate the path from the arguments. This will split at the first 18304 # space. 18305 complete="$FOUND_MAKE" 18306 path="${complete%% *}" 18307 tmp="$complete EOL" 18308 arguments="${tmp#* }" 18309 18310 # Cannot rely on the command "which" here since it doesn't always work. 18311 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18312 if test -z "$is_absolute_path"; then 18313 # Path to executable is not absolute. Find it. 18314 IFS_save="$IFS" 18315 IFS=: 18316 for p in $PATH; do 18317 if test -f "$p/$path" && test -x "$p/$path"; then 18318 new_path="$p/$path" 18319 break 18320 fi 18321 done 18322 IFS="$IFS_save" 18323 else 18324 # This is an absolute path, we can use it without further modifications. 18325 new_path="$path" 18326 fi 18327 18328 if test "x$new_path" = x; then 18329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18330 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18331 has_space=`$ECHO "$complete" | $GREP " "` 18332 if test "x$has_space" != x; then 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18334 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18335 fi 18336 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18337 fi 18338 fi 18339 18340 # Now join together the path and the arguments once again 18341 if test "x$arguments" != xEOL; then 18342 new_complete="$new_path ${arguments% *}" 18343 else 18344 new_complete="$new_path" 18345 fi 18346 18347 if test "x$complete" != "x$new_complete"; then 18348 FOUND_MAKE="$new_complete" 18349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18350 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18351 fi 18352 fi 18353 18354 fi 18355 fi 18356 fi 18357 fi 18358 18359 fi 18360 18361 if test "x$FOUND_MAKE" = x; then 18362 if test "x$TOOLCHAIN_PATH" != x; then 18363 # We have a toolchain path, check that as well before giving up. 18364 OLD_PATH=$PATH 18365 PATH=$TOOLCHAIN_PATH:$PATH 18366 for ac_prog in gmake 18367 do 18368 # Extract the first word of "$ac_prog", so it can be a program name with args. 18369 set dummy $ac_prog; ac_word=$2 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18371 $as_echo_n "checking for $ac_word... " >&6; } 18372 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18373 $as_echo_n "(cached) " >&6 18374 else 18375 case $CHECK_TOOLSDIR_GMAKE in 18376 [\\/]* | ?:[\\/]*) 18377 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18378 ;; 18379 *) 18380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18381 for as_dir in $PATH 18382 do 18383 IFS=$as_save_IFS 18384 test -z "$as_dir" && as_dir=. 18385 for ac_exec_ext in '' $ac_executable_extensions; do 18386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18387 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18389 break 2 18390 fi 18391 done 18392 done 18393 IFS=$as_save_IFS 18394 18395 ;; 18396 esac 18397 fi 18398 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18399 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18401 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18402 else 18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18404 $as_echo "no" >&6; } 18405 fi 18406 18407 18408 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18409 done 18410 18411 18412 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18413 DESCRIPTION="gmake in tools-dir" 18414 18415 # On Cygwin, we require a newer version of make than on other platforms 18416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18417 MAKE_VERSION_EXPR="-e 4\." 18418 MAKE_REQUIRED_VERSION="4.0" 18419 else 18420 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18421 MAKE_REQUIRED_VERSION="3.81" 18422 fi 18423 18424 if test "x$MAKE_CANDIDATE" != x; then 18425 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18426 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18427 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18428 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18429 if test "x$IS_GNU_MAKE" = x; then 18430 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18431 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18432 else 18433 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18434 if test "x$IS_MODERN_MAKE" = x; then 18435 { $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 18436 $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;} 18437 else 18438 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18440 MAKE_EXPECTED_ENV='cygwin' 18441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18442 MAKE_EXPECTED_ENV='msys' 18443 else 18444 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18445 fi 18446 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18447 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18448 else 18449 # Not relevant for non-Windows 18450 IS_MAKE_CORRECT_ENV=true 18451 fi 18452 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18453 { $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 18454 $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;} 18455 else 18456 FOUND_MAKE=$MAKE_CANDIDATE 18457 18458 # Only process if variable expands to non-empty 18459 18460 if test "x$FOUND_MAKE" != x; then 18461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18462 18463 # First separate the path from the arguments. This will split at the first 18464 # space. 18465 complete="$FOUND_MAKE" 18466 path="${complete%% *}" 18467 tmp="$complete EOL" 18468 arguments="${tmp#* }" 18469 18470 # Input might be given as Windows format, start by converting to 18471 # unix format. 18472 new_path=`$CYGPATH -u "$path"` 18473 18474 # Now try to locate executable using which 18475 new_path=`$WHICH "$new_path" 2> /dev/null` 18476 # bat and cmd files are not always considered executable in cygwin causing which 18477 # to not find them 18478 if test "x$new_path" = x \ 18479 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18480 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18481 new_path=`$CYGPATH -u "$path"` 18482 fi 18483 if test "x$new_path" = x; then 18484 # Oops. Which didn't find the executable. 18485 # The splitting of arguments from the executable at a space might have been incorrect, 18486 # since paths with space are more likely in Windows. Give it another try with the whole 18487 # argument. 18488 path="$complete" 18489 arguments="EOL" 18490 new_path=`$CYGPATH -u "$path"` 18491 new_path=`$WHICH "$new_path" 2> /dev/null` 18492 # bat and cmd files are not always considered executable in cygwin causing which 18493 # to not find them 18494 if test "x$new_path" = x \ 18495 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18496 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18497 new_path=`$CYGPATH -u "$path"` 18498 fi 18499 if test "x$new_path" = x; then 18500 # It's still not found. Now this is an unrecoverable error. 18501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18502 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18503 has_space=`$ECHO "$complete" | $GREP " "` 18504 if test "x$has_space" != x; then 18505 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18506 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18507 fi 18508 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18509 fi 18510 fi 18511 18512 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18513 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18514 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18515 # "foo.exe" is OK but "foo" is an error. 18516 # 18517 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18518 # It is also a way to make sure we got the proper file name for the real test later on. 18519 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18520 if test "x$test_shortpath" = x; then 18521 # Short path failed, file does not exist as specified. 18522 # Try adding .exe or .cmd 18523 if test -f "${new_path}.exe"; then 18524 input_to_shortpath="${new_path}.exe" 18525 elif test -f "${new_path}.cmd"; then 18526 input_to_shortpath="${new_path}.cmd" 18527 else 18528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18529 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18530 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18531 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18532 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18533 fi 18534 else 18535 input_to_shortpath="$new_path" 18536 fi 18537 18538 # Call helper function which possibly converts this using DOS-style short mode. 18539 # If so, the updated path is stored in $new_path. 18540 new_path="$input_to_shortpath" 18541 18542 input_path="$input_to_shortpath" 18543 # Check if we need to convert this using DOS-style short mode. If the path 18544 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18545 # take no chances and rewrite it. 18546 # Note: m4 eats our [], so we need to use [ and ] instead. 18547 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18548 if test "x$has_forbidden_chars" != x; then 18549 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18550 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18551 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18552 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18553 # Going to short mode and back again did indeed matter. Since short mode is 18554 # case insensitive, let's make it lowercase to improve readability. 18555 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18556 # Now convert it back to Unix-style (cygpath) 18557 input_path=`$CYGPATH -u "$shortmode_path"` 18558 new_path="$input_path" 18559 fi 18560 fi 18561 18562 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18563 if test "x$test_cygdrive_prefix" = x; then 18564 # As a simple fix, exclude /usr/bin since it's not a real path. 18565 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18566 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18567 # a path prefixed by /cygdrive for fixpath to work. 18568 new_path="$CYGWIN_ROOT_PATH$input_path" 18569 fi 18570 fi 18571 18572 # remove trailing .exe if any 18573 new_path="${new_path/%.exe/}" 18574 18575 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18576 18577 # First separate the path from the arguments. This will split at the first 18578 # space. 18579 complete="$FOUND_MAKE" 18580 path="${complete%% *}" 18581 tmp="$complete EOL" 18582 arguments="${tmp#* }" 18583 18584 # Input might be given as Windows format, start by converting to 18585 # unix format. 18586 new_path="$path" 18587 18588 windows_path="$new_path" 18589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18590 unix_path=`$CYGPATH -u "$windows_path"` 18591 new_path="$unix_path" 18592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18594 new_path="$unix_path" 18595 fi 18596 18597 18598 # Now try to locate executable using which 18599 new_path=`$WHICH "$new_path" 2> /dev/null` 18600 18601 if test "x$new_path" = x; then 18602 # Oops. Which didn't find the executable. 18603 # The splitting of arguments from the executable at a space might have been incorrect, 18604 # since paths with space are more likely in Windows. Give it another try with the whole 18605 # argument. 18606 path="$complete" 18607 arguments="EOL" 18608 new_path="$path" 18609 18610 windows_path="$new_path" 18611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18612 unix_path=`$CYGPATH -u "$windows_path"` 18613 new_path="$unix_path" 18614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18616 new_path="$unix_path" 18617 fi 18618 18619 18620 new_path=`$WHICH "$new_path" 2> /dev/null` 18621 # bat and cmd files are not always considered executable in MSYS causing which 18622 # to not find them 18623 if test "x$new_path" = x \ 18624 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18625 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18626 new_path="$path" 18627 18628 windows_path="$new_path" 18629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18630 unix_path=`$CYGPATH -u "$windows_path"` 18631 new_path="$unix_path" 18632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18634 new_path="$unix_path" 18635 fi 18636 18637 fi 18638 18639 if test "x$new_path" = x; then 18640 # It's still not found. Now this is an unrecoverable error. 18641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18642 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18643 has_space=`$ECHO "$complete" | $GREP " "` 18644 if test "x$has_space" != x; then 18645 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18646 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18647 fi 18648 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18649 fi 18650 fi 18651 18652 # Now new_path has a complete unix path to the binary 18653 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18654 # Keep paths in /bin as-is, but remove trailing .exe if any 18655 new_path="${new_path/%.exe/}" 18656 # Do not save /bin paths to all_fixpath_prefixes! 18657 else 18658 # Not in mixed or Windows style, start by that. 18659 new_path=`cmd //c echo $new_path` 18660 18661 input_path="$new_path" 18662 # Check if we need to convert this using DOS-style short mode. If the path 18663 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18664 # take no chances and rewrite it. 18665 # Note: m4 eats our [], so we need to use [ and ] instead. 18666 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18667 if test "x$has_forbidden_chars" != x; then 18668 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18669 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18670 fi 18671 18672 # Output is in $new_path 18673 18674 windows_path="$new_path" 18675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18676 unix_path=`$CYGPATH -u "$windows_path"` 18677 new_path="$unix_path" 18678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18680 new_path="$unix_path" 18681 fi 18682 18683 # remove trailing .exe if any 18684 new_path="${new_path/%.exe/}" 18685 18686 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18687 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18688 fi 18689 18690 else 18691 # We're on a unix platform. Hooray! :) 18692 # First separate the path from the arguments. This will split at the first 18693 # space. 18694 complete="$FOUND_MAKE" 18695 path="${complete%% *}" 18696 tmp="$complete EOL" 18697 arguments="${tmp#* }" 18698 18699 # Cannot rely on the command "which" here since it doesn't always work. 18700 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18701 if test -z "$is_absolute_path"; then 18702 # Path to executable is not absolute. Find it. 18703 IFS_save="$IFS" 18704 IFS=: 18705 for p in $PATH; do 18706 if test -f "$p/$path" && test -x "$p/$path"; then 18707 new_path="$p/$path" 18708 break 18709 fi 18710 done 18711 IFS="$IFS_save" 18712 else 18713 # This is an absolute path, we can use it without further modifications. 18714 new_path="$path" 18715 fi 18716 18717 if test "x$new_path" = x; then 18718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18719 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18720 has_space=`$ECHO "$complete" | $GREP " "` 18721 if test "x$has_space" != x; then 18722 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18723 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18724 fi 18725 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18726 fi 18727 fi 18728 18729 # Now join together the path and the arguments once again 18730 if test "x$arguments" != xEOL; then 18731 new_complete="$new_path ${arguments% *}" 18732 else 18733 new_complete="$new_path" 18734 fi 18735 18736 if test "x$complete" != "x$new_complete"; then 18737 FOUND_MAKE="$new_complete" 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18739 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18740 fi 18741 fi 18742 18743 fi 18744 fi 18745 fi 18746 fi 18747 18748 if test "x$FOUND_MAKE" = x; then 18749 for ac_prog in make 18750 do 18751 # Extract the first word of "$ac_prog", so it can be a program name with args. 18752 set dummy $ac_prog; ac_word=$2 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18754 $as_echo_n "checking for $ac_word... " >&6; } 18755 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 18756 $as_echo_n "(cached) " >&6 18757 else 18758 case $CHECK_TOOLSDIR_MAKE in 18759 [\\/]* | ?:[\\/]*) 18760 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 18761 ;; 18762 *) 18763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18764 for as_dir in $PATH 18765 do 18766 IFS=$as_save_IFS 18767 test -z "$as_dir" && as_dir=. 18768 for ac_exec_ext in '' $ac_executable_extensions; do 18769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18770 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 18771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18772 break 2 18773 fi 18774 done 18775 done 18776 IFS=$as_save_IFS 18777 18778 ;; 18779 esac 18780 fi 18781 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 18782 if test -n "$CHECK_TOOLSDIR_MAKE"; then 18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 18784 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 18785 else 18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18787 $as_echo "no" >&6; } 18788 fi 18789 18790 18791 test -n "$CHECK_TOOLSDIR_MAKE" && break 18792 done 18793 18794 18795 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 18796 DESCRIPTION="make in tools-dir" 18797 18798 # On Cygwin, we require a newer version of make than on other platforms 18799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18800 MAKE_VERSION_EXPR="-e 4\." 18801 MAKE_REQUIRED_VERSION="4.0" 18802 else 18803 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18804 MAKE_REQUIRED_VERSION="3.81" 18805 fi 18806 18807 if test "x$MAKE_CANDIDATE" != x; then 18808 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18809 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18810 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18811 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18812 if test "x$IS_GNU_MAKE" = x; then 18813 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18814 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18815 else 18816 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18817 if test "x$IS_MODERN_MAKE" = x; then 18818 { $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 18819 $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;} 18820 else 18821 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18823 MAKE_EXPECTED_ENV='cygwin' 18824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18825 MAKE_EXPECTED_ENV='msys' 18826 else 18827 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18828 fi 18829 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18830 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18831 else 18832 # Not relevant for non-Windows 18833 IS_MAKE_CORRECT_ENV=true 18834 fi 18835 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18836 { $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 18837 $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;} 18838 else 18839 FOUND_MAKE=$MAKE_CANDIDATE 18840 18841 # Only process if variable expands to non-empty 18842 18843 if test "x$FOUND_MAKE" != x; then 18844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18845 18846 # First separate the path from the arguments. This will split at the first 18847 # space. 18848 complete="$FOUND_MAKE" 18849 path="${complete%% *}" 18850 tmp="$complete EOL" 18851 arguments="${tmp#* }" 18852 18853 # Input might be given as Windows format, start by converting to 18854 # unix format. 18855 new_path=`$CYGPATH -u "$path"` 18856 18857 # Now try to locate executable using which 18858 new_path=`$WHICH "$new_path" 2> /dev/null` 18859 # bat and cmd files are not always considered executable in cygwin causing which 18860 # to not find them 18861 if test "x$new_path" = x \ 18862 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18863 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18864 new_path=`$CYGPATH -u "$path"` 18865 fi 18866 if test "x$new_path" = x; then 18867 # Oops. Which didn't find the executable. 18868 # The splitting of arguments from the executable at a space might have been incorrect, 18869 # since paths with space are more likely in Windows. Give it another try with the whole 18870 # argument. 18871 path="$complete" 18872 arguments="EOL" 18873 new_path=`$CYGPATH -u "$path"` 18874 new_path=`$WHICH "$new_path" 2> /dev/null` 18875 # bat and cmd files are not always considered executable in cygwin causing which 18876 # to not find them 18877 if test "x$new_path" = x \ 18878 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18879 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18880 new_path=`$CYGPATH -u "$path"` 18881 fi 18882 if test "x$new_path" = x; then 18883 # It's still not found. Now this is an unrecoverable error. 18884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18885 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18886 has_space=`$ECHO "$complete" | $GREP " "` 18887 if test "x$has_space" != x; then 18888 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18889 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18890 fi 18891 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18892 fi 18893 fi 18894 18895 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18896 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18897 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18898 # "foo.exe" is OK but "foo" is an error. 18899 # 18900 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18901 # It is also a way to make sure we got the proper file name for the real test later on. 18902 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18903 if test "x$test_shortpath" = x; then 18904 # Short path failed, file does not exist as specified. 18905 # Try adding .exe or .cmd 18906 if test -f "${new_path}.exe"; then 18907 input_to_shortpath="${new_path}.exe" 18908 elif test -f "${new_path}.cmd"; then 18909 input_to_shortpath="${new_path}.cmd" 18910 else 18911 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18912 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18913 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18914 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18915 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18916 fi 18917 else 18918 input_to_shortpath="$new_path" 18919 fi 18920 18921 # Call helper function which possibly converts this using DOS-style short mode. 18922 # If so, the updated path is stored in $new_path. 18923 new_path="$input_to_shortpath" 18924 18925 input_path="$input_to_shortpath" 18926 # Check if we need to convert this using DOS-style short mode. If the path 18927 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18928 # take no chances and rewrite it. 18929 # Note: m4 eats our [], so we need to use [ and ] instead. 18930 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18931 if test "x$has_forbidden_chars" != x; then 18932 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18933 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18934 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18935 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18936 # Going to short mode and back again did indeed matter. Since short mode is 18937 # case insensitive, let's make it lowercase to improve readability. 18938 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18939 # Now convert it back to Unix-style (cygpath) 18940 input_path=`$CYGPATH -u "$shortmode_path"` 18941 new_path="$input_path" 18942 fi 18943 fi 18944 18945 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18946 if test "x$test_cygdrive_prefix" = x; then 18947 # As a simple fix, exclude /usr/bin since it's not a real path. 18948 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18949 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18950 # a path prefixed by /cygdrive for fixpath to work. 18951 new_path="$CYGWIN_ROOT_PATH$input_path" 18952 fi 18953 fi 18954 18955 # remove trailing .exe if any 18956 new_path="${new_path/%.exe/}" 18957 18958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18959 18960 # First separate the path from the arguments. This will split at the first 18961 # space. 18962 complete="$FOUND_MAKE" 18963 path="${complete%% *}" 18964 tmp="$complete EOL" 18965 arguments="${tmp#* }" 18966 18967 # Input might be given as Windows format, start by converting to 18968 # unix format. 18969 new_path="$path" 18970 18971 windows_path="$new_path" 18972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18973 unix_path=`$CYGPATH -u "$windows_path"` 18974 new_path="$unix_path" 18975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18976 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18977 new_path="$unix_path" 18978 fi 18979 18980 18981 # Now try to locate executable using which 18982 new_path=`$WHICH "$new_path" 2> /dev/null` 18983 18984 if test "x$new_path" = x; then 18985 # Oops. Which didn't find the executable. 18986 # The splitting of arguments from the executable at a space might have been incorrect, 18987 # since paths with space are more likely in Windows. Give it another try with the whole 18988 # argument. 18989 path="$complete" 18990 arguments="EOL" 18991 new_path="$path" 18992 18993 windows_path="$new_path" 18994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18995 unix_path=`$CYGPATH -u "$windows_path"` 18996 new_path="$unix_path" 18997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18998 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18999 new_path="$unix_path" 19000 fi 19001 19002 19003 new_path=`$WHICH "$new_path" 2> /dev/null` 19004 # bat and cmd files are not always considered executable in MSYS causing which 19005 # to not find them 19006 if test "x$new_path" = x \ 19007 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19008 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19009 new_path="$path" 19010 19011 windows_path="$new_path" 19012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19013 unix_path=`$CYGPATH -u "$windows_path"` 19014 new_path="$unix_path" 19015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19016 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19017 new_path="$unix_path" 19018 fi 19019 19020 fi 19021 19022 if test "x$new_path" = x; then 19023 # It's still not found. Now this is an unrecoverable error. 19024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19025 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19026 has_space=`$ECHO "$complete" | $GREP " "` 19027 if test "x$has_space" != x; then 19028 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19029 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19030 fi 19031 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19032 fi 19033 fi 19034 19035 # Now new_path has a complete unix path to the binary 19036 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19037 # Keep paths in /bin as-is, but remove trailing .exe if any 19038 new_path="${new_path/%.exe/}" 19039 # Do not save /bin paths to all_fixpath_prefixes! 19040 else 19041 # Not in mixed or Windows style, start by that. 19042 new_path=`cmd //c echo $new_path` 19043 19044 input_path="$new_path" 19045 # Check if we need to convert this using DOS-style short mode. If the path 19046 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19047 # take no chances and rewrite it. 19048 # Note: m4 eats our [], so we need to use [ and ] instead. 19049 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19050 if test "x$has_forbidden_chars" != x; then 19051 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19052 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19053 fi 19054 19055 # Output is in $new_path 19056 19057 windows_path="$new_path" 19058 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19059 unix_path=`$CYGPATH -u "$windows_path"` 19060 new_path="$unix_path" 19061 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19062 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19063 new_path="$unix_path" 19064 fi 19065 19066 # remove trailing .exe if any 19067 new_path="${new_path/%.exe/}" 19068 19069 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19070 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19071 fi 19072 19073 else 19074 # We're on a unix platform. Hooray! :) 19075 # First separate the path from the arguments. This will split at the first 19076 # space. 19077 complete="$FOUND_MAKE" 19078 path="${complete%% *}" 19079 tmp="$complete EOL" 19080 arguments="${tmp#* }" 19081 19082 # Cannot rely on the command "which" here since it doesn't always work. 19083 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19084 if test -z "$is_absolute_path"; then 19085 # Path to executable is not absolute. Find it. 19086 IFS_save="$IFS" 19087 IFS=: 19088 for p in $PATH; do 19089 if test -f "$p/$path" && test -x "$p/$path"; then 19090 new_path="$p/$path" 19091 break 19092 fi 19093 done 19094 IFS="$IFS_save" 19095 else 19096 # This is an absolute path, we can use it without further modifications. 19097 new_path="$path" 19098 fi 19099 19100 if test "x$new_path" = x; then 19101 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19102 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19103 has_space=`$ECHO "$complete" | $GREP " "` 19104 if test "x$has_space" != x; then 19105 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19106 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19107 fi 19108 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19109 fi 19110 fi 19111 19112 # Now join together the path and the arguments once again 19113 if test "x$arguments" != xEOL; then 19114 new_complete="$new_path ${arguments% *}" 19115 else 19116 new_complete="$new_path" 19117 fi 19118 19119 if test "x$complete" != "x$new_complete"; then 19120 FOUND_MAKE="$new_complete" 19121 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19122 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19123 fi 19124 fi 19125 19126 fi 19127 fi 19128 fi 19129 fi 19130 19131 fi 19132 PATH=$OLD_PATH 19133 fi 19134 fi 19135 19136 if test "x$FOUND_MAKE" = x; then 19137 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 19138 fi 19139 19140 else 19141 # The variable is set, but is it from the command line or the environment? 19142 19143 # Try to remove the string !MAKE! from our list. 19144 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19145 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19146 # If it failed, the variable was not from the command line. Ignore it, 19147 # but warn the user (except for BASH, which is always set by the calling BASH). 19148 if test "xMAKE" != xBASH; then 19149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19150 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19151 fi 19152 # Try to locate tool using the code snippet 19153 19154 # Try our hardest to locate a correct version of GNU make 19155 for ac_prog in gmake 19156 do 19157 # Extract the first word of "$ac_prog", so it can be a program name with args. 19158 set dummy $ac_prog; ac_word=$2 19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19160 $as_echo_n "checking for $ac_word... " >&6; } 19161 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19162 $as_echo_n "(cached) " >&6 19163 else 19164 case $CHECK_GMAKE in 19165 [\\/]* | ?:[\\/]*) 19166 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19167 ;; 19168 *) 19169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19170 for as_dir in $PATH 19171 do 19172 IFS=$as_save_IFS 19173 test -z "$as_dir" && as_dir=. 19174 for ac_exec_ext in '' $ac_executable_extensions; do 19175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19176 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19178 break 2 19179 fi 19180 done 19181 done 19182 IFS=$as_save_IFS 19183 19184 ;; 19185 esac 19186 fi 19187 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19188 if test -n "$CHECK_GMAKE"; then 19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19190 $as_echo "$CHECK_GMAKE" >&6; } 19191 else 19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19193 $as_echo "no" >&6; } 19194 fi 19195 19196 19197 test -n "$CHECK_GMAKE" && break 19198 done 19199 19200 19201 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19202 DESCRIPTION="gmake in PATH" 19203 19204 # On Cygwin, we require a newer version of make than on other platforms 19205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19206 MAKE_VERSION_EXPR="-e 4\." 19207 MAKE_REQUIRED_VERSION="4.0" 19208 else 19209 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19210 MAKE_REQUIRED_VERSION="3.81" 19211 fi 19212 19213 if test "x$MAKE_CANDIDATE" != x; then 19214 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19215 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19216 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19217 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19218 if test "x$IS_GNU_MAKE" = x; then 19219 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19220 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19221 else 19222 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19223 if test "x$IS_MODERN_MAKE" = x; then 19224 { $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 19225 $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;} 19226 else 19227 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19229 MAKE_EXPECTED_ENV='cygwin' 19230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19231 MAKE_EXPECTED_ENV='msys' 19232 else 19233 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19234 fi 19235 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19236 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19237 else 19238 # Not relevant for non-Windows 19239 IS_MAKE_CORRECT_ENV=true 19240 fi 19241 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19242 { $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 19243 $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;} 19244 else 19245 FOUND_MAKE=$MAKE_CANDIDATE 19246 19247 # Only process if variable expands to non-empty 19248 19249 if test "x$FOUND_MAKE" != x; then 19250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19251 19252 # First separate the path from the arguments. This will split at the first 19253 # space. 19254 complete="$FOUND_MAKE" 19255 path="${complete%% *}" 19256 tmp="$complete EOL" 19257 arguments="${tmp#* }" 19258 19259 # Input might be given as Windows format, start by converting to 19260 # unix format. 19261 new_path=`$CYGPATH -u "$path"` 19262 19263 # Now try to locate executable using which 19264 new_path=`$WHICH "$new_path" 2> /dev/null` 19265 # bat and cmd files are not always considered executable in cygwin causing which 19266 # to not find them 19267 if test "x$new_path" = x \ 19268 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19269 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19270 new_path=`$CYGPATH -u "$path"` 19271 fi 19272 if test "x$new_path" = x; then 19273 # Oops. Which didn't find the executable. 19274 # The splitting of arguments from the executable at a space might have been incorrect, 19275 # since paths with space are more likely in Windows. Give it another try with the whole 19276 # argument. 19277 path="$complete" 19278 arguments="EOL" 19279 new_path=`$CYGPATH -u "$path"` 19280 new_path=`$WHICH "$new_path" 2> /dev/null` 19281 # bat and cmd files are not always considered executable in cygwin causing which 19282 # to not find them 19283 if test "x$new_path" = x \ 19284 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19285 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19286 new_path=`$CYGPATH -u "$path"` 19287 fi 19288 if test "x$new_path" = x; then 19289 # It's still not found. Now this is an unrecoverable error. 19290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19291 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19292 has_space=`$ECHO "$complete" | $GREP " "` 19293 if test "x$has_space" != x; then 19294 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19295 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19296 fi 19297 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19298 fi 19299 fi 19300 19301 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19302 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19303 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19304 # "foo.exe" is OK but "foo" is an error. 19305 # 19306 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19307 # It is also a way to make sure we got the proper file name for the real test later on. 19308 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19309 if test "x$test_shortpath" = x; then 19310 # Short path failed, file does not exist as specified. 19311 # Try adding .exe or .cmd 19312 if test -f "${new_path}.exe"; then 19313 input_to_shortpath="${new_path}.exe" 19314 elif test -f "${new_path}.cmd"; then 19315 input_to_shortpath="${new_path}.cmd" 19316 else 19317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19318 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19319 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19320 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19321 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19322 fi 19323 else 19324 input_to_shortpath="$new_path" 19325 fi 19326 19327 # Call helper function which possibly converts this using DOS-style short mode. 19328 # If so, the updated path is stored in $new_path. 19329 new_path="$input_to_shortpath" 19330 19331 input_path="$input_to_shortpath" 19332 # Check if we need to convert this using DOS-style short mode. If the path 19333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19334 # take no chances and rewrite it. 19335 # Note: m4 eats our [], so we need to use [ and ] instead. 19336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19337 if test "x$has_forbidden_chars" != x; then 19338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19339 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19340 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19341 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19342 # Going to short mode and back again did indeed matter. Since short mode is 19343 # case insensitive, let's make it lowercase to improve readability. 19344 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19345 # Now convert it back to Unix-style (cygpath) 19346 input_path=`$CYGPATH -u "$shortmode_path"` 19347 new_path="$input_path" 19348 fi 19349 fi 19350 19351 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19352 if test "x$test_cygdrive_prefix" = x; then 19353 # As a simple fix, exclude /usr/bin since it's not a real path. 19354 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19355 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19356 # a path prefixed by /cygdrive for fixpath to work. 19357 new_path="$CYGWIN_ROOT_PATH$input_path" 19358 fi 19359 fi 19360 19361 # remove trailing .exe if any 19362 new_path="${new_path/%.exe/}" 19363 19364 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19365 19366 # First separate the path from the arguments. This will split at the first 19367 # space. 19368 complete="$FOUND_MAKE" 19369 path="${complete%% *}" 19370 tmp="$complete EOL" 19371 arguments="${tmp#* }" 19372 19373 # Input might be given as Windows format, start by converting to 19374 # unix format. 19375 new_path="$path" 19376 19377 windows_path="$new_path" 19378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19379 unix_path=`$CYGPATH -u "$windows_path"` 19380 new_path="$unix_path" 19381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19382 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19383 new_path="$unix_path" 19384 fi 19385 19386 19387 # Now try to locate executable using which 19388 new_path=`$WHICH "$new_path" 2> /dev/null` 19389 19390 if test "x$new_path" = x; then 19391 # Oops. Which didn't find the executable. 19392 # The splitting of arguments from the executable at a space might have been incorrect, 19393 # since paths with space are more likely in Windows. Give it another try with the whole 19394 # argument. 19395 path="$complete" 19396 arguments="EOL" 19397 new_path="$path" 19398 19399 windows_path="$new_path" 19400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19401 unix_path=`$CYGPATH -u "$windows_path"` 19402 new_path="$unix_path" 19403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19404 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19405 new_path="$unix_path" 19406 fi 19407 19408 19409 new_path=`$WHICH "$new_path" 2> /dev/null` 19410 # bat and cmd files are not always considered executable in MSYS causing which 19411 # to not find them 19412 if test "x$new_path" = x \ 19413 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19414 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19415 new_path="$path" 19416 19417 windows_path="$new_path" 19418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19419 unix_path=`$CYGPATH -u "$windows_path"` 19420 new_path="$unix_path" 19421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19423 new_path="$unix_path" 19424 fi 19425 19426 fi 19427 19428 if test "x$new_path" = x; then 19429 # It's still not found. Now this is an unrecoverable error. 19430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19431 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19432 has_space=`$ECHO "$complete" | $GREP " "` 19433 if test "x$has_space" != x; then 19434 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19435 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19436 fi 19437 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19438 fi 19439 fi 19440 19441 # Now new_path has a complete unix path to the binary 19442 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19443 # Keep paths in /bin as-is, but remove trailing .exe if any 19444 new_path="${new_path/%.exe/}" 19445 # Do not save /bin paths to all_fixpath_prefixes! 19446 else 19447 # Not in mixed or Windows style, start by that. 19448 new_path=`cmd //c echo $new_path` 19449 19450 input_path="$new_path" 19451 # Check if we need to convert this using DOS-style short mode. If the path 19452 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19453 # take no chances and rewrite it. 19454 # Note: m4 eats our [], so we need to use [ and ] instead. 19455 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19456 if test "x$has_forbidden_chars" != x; then 19457 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19458 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19459 fi 19460 19461 # Output is in $new_path 19462 19463 windows_path="$new_path" 19464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19465 unix_path=`$CYGPATH -u "$windows_path"` 19466 new_path="$unix_path" 19467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19468 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19469 new_path="$unix_path" 19470 fi 19471 19472 # remove trailing .exe if any 19473 new_path="${new_path/%.exe/}" 19474 19475 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19476 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19477 fi 19478 19479 else 19480 # We're on a unix platform. Hooray! :) 19481 # First separate the path from the arguments. This will split at the first 19482 # space. 19483 complete="$FOUND_MAKE" 19484 path="${complete%% *}" 19485 tmp="$complete EOL" 19486 arguments="${tmp#* }" 19487 19488 # Cannot rely on the command "which" here since it doesn't always work. 19489 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19490 if test -z "$is_absolute_path"; then 19491 # Path to executable is not absolute. Find it. 19492 IFS_save="$IFS" 19493 IFS=: 19494 for p in $PATH; do 19495 if test -f "$p/$path" && test -x "$p/$path"; then 19496 new_path="$p/$path" 19497 break 19498 fi 19499 done 19500 IFS="$IFS_save" 19501 else 19502 # This is an absolute path, we can use it without further modifications. 19503 new_path="$path" 19504 fi 19505 19506 if test "x$new_path" = x; then 19507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19508 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19509 has_space=`$ECHO "$complete" | $GREP " "` 19510 if test "x$has_space" != x; then 19511 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19512 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19513 fi 19514 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19515 fi 19516 fi 19517 19518 # Now join together the path and the arguments once again 19519 if test "x$arguments" != xEOL; then 19520 new_complete="$new_path ${arguments% *}" 19521 else 19522 new_complete="$new_path" 19523 fi 19524 19525 if test "x$complete" != "x$new_complete"; then 19526 FOUND_MAKE="$new_complete" 19527 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19528 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19529 fi 19530 fi 19531 19532 fi 19533 fi 19534 fi 19535 fi 19536 19537 19538 if test "x$FOUND_MAKE" = x; then 19539 for ac_prog in make 19540 do 19541 # Extract the first word of "$ac_prog", so it can be a program name with args. 19542 set dummy $ac_prog; ac_word=$2 19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19544 $as_echo_n "checking for $ac_word... " >&6; } 19545 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19546 $as_echo_n "(cached) " >&6 19547 else 19548 case $CHECK_MAKE in 19549 [\\/]* | ?:[\\/]*) 19550 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19551 ;; 19552 *) 19553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19554 for as_dir in $PATH 19555 do 19556 IFS=$as_save_IFS 19557 test -z "$as_dir" && as_dir=. 19558 for ac_exec_ext in '' $ac_executable_extensions; do 19559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19560 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19562 break 2 19563 fi 19564 done 19565 done 19566 IFS=$as_save_IFS 19567 19568 ;; 19569 esac 19570 fi 19571 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19572 if test -n "$CHECK_MAKE"; then 19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19574 $as_echo "$CHECK_MAKE" >&6; } 19575 else 19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19577 $as_echo "no" >&6; } 19578 fi 19579 19580 19581 test -n "$CHECK_MAKE" && break 19582 done 19583 19584 19585 MAKE_CANDIDATE=""$CHECK_MAKE"" 19586 DESCRIPTION="make in PATH" 19587 19588 # On Cygwin, we require a newer version of make than on other platforms 19589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19590 MAKE_VERSION_EXPR="-e 4\." 19591 MAKE_REQUIRED_VERSION="4.0" 19592 else 19593 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19594 MAKE_REQUIRED_VERSION="3.81" 19595 fi 19596 19597 if test "x$MAKE_CANDIDATE" != x; then 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19599 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19600 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19601 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19602 if test "x$IS_GNU_MAKE" = x; then 19603 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19604 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19605 else 19606 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19607 if test "x$IS_MODERN_MAKE" = x; then 19608 { $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 19609 $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;} 19610 else 19611 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19613 MAKE_EXPECTED_ENV='cygwin' 19614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19615 MAKE_EXPECTED_ENV='msys' 19616 else 19617 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19618 fi 19619 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19620 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19621 else 19622 # Not relevant for non-Windows 19623 IS_MAKE_CORRECT_ENV=true 19624 fi 19625 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19626 { $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 19627 $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;} 19628 else 19629 FOUND_MAKE=$MAKE_CANDIDATE 19630 19631 # Only process if variable expands to non-empty 19632 19633 if test "x$FOUND_MAKE" != x; then 19634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19635 19636 # First separate the path from the arguments. This will split at the first 19637 # space. 19638 complete="$FOUND_MAKE" 19639 path="${complete%% *}" 19640 tmp="$complete EOL" 19641 arguments="${tmp#* }" 19642 19643 # Input might be given as Windows format, start by converting to 19644 # unix format. 19645 new_path=`$CYGPATH -u "$path"` 19646 19647 # Now try to locate executable using which 19648 new_path=`$WHICH "$new_path" 2> /dev/null` 19649 # bat and cmd files are not always considered executable in cygwin causing which 19650 # to not find them 19651 if test "x$new_path" = x \ 19652 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19653 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19654 new_path=`$CYGPATH -u "$path"` 19655 fi 19656 if test "x$new_path" = x; then 19657 # Oops. Which didn't find the executable. 19658 # The splitting of arguments from the executable at a space might have been incorrect, 19659 # since paths with space are more likely in Windows. Give it another try with the whole 19660 # argument. 19661 path="$complete" 19662 arguments="EOL" 19663 new_path=`$CYGPATH -u "$path"` 19664 new_path=`$WHICH "$new_path" 2> /dev/null` 19665 # bat and cmd files are not always considered executable in cygwin causing which 19666 # to not find them 19667 if test "x$new_path" = x \ 19668 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19669 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19670 new_path=`$CYGPATH -u "$path"` 19671 fi 19672 if test "x$new_path" = x; then 19673 # It's still not found. Now this is an unrecoverable error. 19674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19675 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19676 has_space=`$ECHO "$complete" | $GREP " "` 19677 if test "x$has_space" != x; then 19678 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19679 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19680 fi 19681 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19682 fi 19683 fi 19684 19685 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19686 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19687 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19688 # "foo.exe" is OK but "foo" is an error. 19689 # 19690 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19691 # It is also a way to make sure we got the proper file name for the real test later on. 19692 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19693 if test "x$test_shortpath" = x; then 19694 # Short path failed, file does not exist as specified. 19695 # Try adding .exe or .cmd 19696 if test -f "${new_path}.exe"; then 19697 input_to_shortpath="${new_path}.exe" 19698 elif test -f "${new_path}.cmd"; then 19699 input_to_shortpath="${new_path}.cmd" 19700 else 19701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19702 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19703 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19704 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19705 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19706 fi 19707 else 19708 input_to_shortpath="$new_path" 19709 fi 19710 19711 # Call helper function which possibly converts this using DOS-style short mode. 19712 # If so, the updated path is stored in $new_path. 19713 new_path="$input_to_shortpath" 19714 19715 input_path="$input_to_shortpath" 19716 # Check if we need to convert this using DOS-style short mode. If the path 19717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19718 # take no chances and rewrite it. 19719 # Note: m4 eats our [], so we need to use [ and ] instead. 19720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19721 if test "x$has_forbidden_chars" != x; then 19722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19723 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19724 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19725 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19726 # Going to short mode and back again did indeed matter. Since short mode is 19727 # case insensitive, let's make it lowercase to improve readability. 19728 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19729 # Now convert it back to Unix-style (cygpath) 19730 input_path=`$CYGPATH -u "$shortmode_path"` 19731 new_path="$input_path" 19732 fi 19733 fi 19734 19735 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19736 if test "x$test_cygdrive_prefix" = x; then 19737 # As a simple fix, exclude /usr/bin since it's not a real path. 19738 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19739 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19740 # a path prefixed by /cygdrive for fixpath to work. 19741 new_path="$CYGWIN_ROOT_PATH$input_path" 19742 fi 19743 fi 19744 19745 # remove trailing .exe if any 19746 new_path="${new_path/%.exe/}" 19747 19748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19749 19750 # First separate the path from the arguments. This will split at the first 19751 # space. 19752 complete="$FOUND_MAKE" 19753 path="${complete%% *}" 19754 tmp="$complete EOL" 19755 arguments="${tmp#* }" 19756 19757 # Input might be given as Windows format, start by converting to 19758 # unix format. 19759 new_path="$path" 19760 19761 windows_path="$new_path" 19762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19763 unix_path=`$CYGPATH -u "$windows_path"` 19764 new_path="$unix_path" 19765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19767 new_path="$unix_path" 19768 fi 19769 19770 19771 # Now try to locate executable using which 19772 new_path=`$WHICH "$new_path" 2> /dev/null` 19773 19774 if test "x$new_path" = x; then 19775 # Oops. Which didn't find the executable. 19776 # The splitting of arguments from the executable at a space might have been incorrect, 19777 # since paths with space are more likely in Windows. Give it another try with the whole 19778 # argument. 19779 path="$complete" 19780 arguments="EOL" 19781 new_path="$path" 19782 19783 windows_path="$new_path" 19784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19785 unix_path=`$CYGPATH -u "$windows_path"` 19786 new_path="$unix_path" 19787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19789 new_path="$unix_path" 19790 fi 19791 19792 19793 new_path=`$WHICH "$new_path" 2> /dev/null` 19794 # bat and cmd files are not always considered executable in MSYS causing which 19795 # to not find them 19796 if test "x$new_path" = x \ 19797 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19798 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19799 new_path="$path" 19800 19801 windows_path="$new_path" 19802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19803 unix_path=`$CYGPATH -u "$windows_path"` 19804 new_path="$unix_path" 19805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19806 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19807 new_path="$unix_path" 19808 fi 19809 19810 fi 19811 19812 if test "x$new_path" = x; then 19813 # It's still not found. Now this is an unrecoverable error. 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19815 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19816 has_space=`$ECHO "$complete" | $GREP " "` 19817 if test "x$has_space" != x; then 19818 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19819 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19820 fi 19821 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19822 fi 19823 fi 19824 19825 # Now new_path has a complete unix path to the binary 19826 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19827 # Keep paths in /bin as-is, but remove trailing .exe if any 19828 new_path="${new_path/%.exe/}" 19829 # Do not save /bin paths to all_fixpath_prefixes! 19830 else 19831 # Not in mixed or Windows style, start by that. 19832 new_path=`cmd //c echo $new_path` 19833 19834 input_path="$new_path" 19835 # Check if we need to convert this using DOS-style short mode. If the path 19836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19837 # take no chances and rewrite it. 19838 # Note: m4 eats our [], so we need to use [ and ] instead. 19839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19840 if test "x$has_forbidden_chars" != x; then 19841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19842 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19843 fi 19844 19845 # Output is in $new_path 19846 19847 windows_path="$new_path" 19848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19849 unix_path=`$CYGPATH -u "$windows_path"` 19850 new_path="$unix_path" 19851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19853 new_path="$unix_path" 19854 fi 19855 19856 # remove trailing .exe if any 19857 new_path="${new_path/%.exe/}" 19858 19859 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19860 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19861 fi 19862 19863 else 19864 # We're on a unix platform. Hooray! :) 19865 # First separate the path from the arguments. This will split at the first 19866 # space. 19867 complete="$FOUND_MAKE" 19868 path="${complete%% *}" 19869 tmp="$complete EOL" 19870 arguments="${tmp#* }" 19871 19872 # Cannot rely on the command "which" here since it doesn't always work. 19873 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19874 if test -z "$is_absolute_path"; then 19875 # Path to executable is not absolute. Find it. 19876 IFS_save="$IFS" 19877 IFS=: 19878 for p in $PATH; do 19879 if test -f "$p/$path" && test -x "$p/$path"; then 19880 new_path="$p/$path" 19881 break 19882 fi 19883 done 19884 IFS="$IFS_save" 19885 else 19886 # This is an absolute path, we can use it without further modifications. 19887 new_path="$path" 19888 fi 19889 19890 if test "x$new_path" = x; then 19891 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19892 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19893 has_space=`$ECHO "$complete" | $GREP " "` 19894 if test "x$has_space" != x; then 19895 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19896 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19897 fi 19898 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19899 fi 19900 fi 19901 19902 # Now join together the path and the arguments once again 19903 if test "x$arguments" != xEOL; then 19904 new_complete="$new_path ${arguments% *}" 19905 else 19906 new_complete="$new_path" 19907 fi 19908 19909 if test "x$complete" != "x$new_complete"; then 19910 FOUND_MAKE="$new_complete" 19911 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19912 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19913 fi 19914 fi 19915 19916 fi 19917 fi 19918 fi 19919 fi 19920 19921 fi 19922 19923 if test "x$FOUND_MAKE" = x; then 19924 if test "x$TOOLCHAIN_PATH" != x; then 19925 # We have a toolchain path, check that as well before giving up. 19926 OLD_PATH=$PATH 19927 PATH=$TOOLCHAIN_PATH:$PATH 19928 for ac_prog in gmake 19929 do 19930 # Extract the first word of "$ac_prog", so it can be a program name with args. 19931 set dummy $ac_prog; ac_word=$2 19932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19933 $as_echo_n "checking for $ac_word... " >&6; } 19934 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 19935 $as_echo_n "(cached) " >&6 19936 else 19937 case $CHECK_TOOLSDIR_GMAKE in 19938 [\\/]* | ?:[\\/]*) 19939 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 19940 ;; 19941 *) 19942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19943 for as_dir in $PATH 19944 do 19945 IFS=$as_save_IFS 19946 test -z "$as_dir" && as_dir=. 19947 for ac_exec_ext in '' $ac_executable_extensions; do 19948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19949 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19951 break 2 19952 fi 19953 done 19954 done 19955 IFS=$as_save_IFS 19956 19957 ;; 19958 esac 19959 fi 19960 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 19961 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 19963 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 19964 else 19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19966 $as_echo "no" >&6; } 19967 fi 19968 19969 19970 test -n "$CHECK_TOOLSDIR_GMAKE" && break 19971 done 19972 19973 19974 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 19975 DESCRIPTION="gmake in tools-dir" 19976 19977 # On Cygwin, we require a newer version of make than on other platforms 19978 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19979 MAKE_VERSION_EXPR="-e 4\." 19980 MAKE_REQUIRED_VERSION="4.0" 19981 else 19982 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19983 MAKE_REQUIRED_VERSION="3.81" 19984 fi 19985 19986 if test "x$MAKE_CANDIDATE" != x; then 19987 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19988 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19989 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19990 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19991 if test "x$IS_GNU_MAKE" = x; then 19992 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19993 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19994 else 19995 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19996 if test "x$IS_MODERN_MAKE" = x; then 19997 { $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 19998 $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;} 19999 else 20000 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20001 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20002 MAKE_EXPECTED_ENV='cygwin' 20003 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20004 MAKE_EXPECTED_ENV='msys' 20005 else 20006 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20007 fi 20008 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20009 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20010 else 20011 # Not relevant for non-Windows 20012 IS_MAKE_CORRECT_ENV=true 20013 fi 20014 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20015 { $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 20016 $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;} 20017 else 20018 FOUND_MAKE=$MAKE_CANDIDATE 20019 20020 # Only process if variable expands to non-empty 20021 20022 if test "x$FOUND_MAKE" != x; then 20023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20024 20025 # First separate the path from the arguments. This will split at the first 20026 # space. 20027 complete="$FOUND_MAKE" 20028 path="${complete%% *}" 20029 tmp="$complete EOL" 20030 arguments="${tmp#* }" 20031 20032 # Input might be given as Windows format, start by converting to 20033 # unix format. 20034 new_path=`$CYGPATH -u "$path"` 20035 20036 # Now try to locate executable using which 20037 new_path=`$WHICH "$new_path" 2> /dev/null` 20038 # bat and cmd files are not always considered executable in cygwin causing which 20039 # to not find them 20040 if test "x$new_path" = x \ 20041 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20042 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20043 new_path=`$CYGPATH -u "$path"` 20044 fi 20045 if test "x$new_path" = x; then 20046 # Oops. Which didn't find the executable. 20047 # The splitting of arguments from the executable at a space might have been incorrect, 20048 # since paths with space are more likely in Windows. Give it another try with the whole 20049 # argument. 20050 path="$complete" 20051 arguments="EOL" 20052 new_path=`$CYGPATH -u "$path"` 20053 new_path=`$WHICH "$new_path" 2> /dev/null` 20054 # bat and cmd files are not always considered executable in cygwin causing which 20055 # to not find them 20056 if test "x$new_path" = x \ 20057 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20058 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20059 new_path=`$CYGPATH -u "$path"` 20060 fi 20061 if test "x$new_path" = x; then 20062 # It's still not found. Now this is an unrecoverable error. 20063 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20064 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20065 has_space=`$ECHO "$complete" | $GREP " "` 20066 if test "x$has_space" != x; then 20067 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20068 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20069 fi 20070 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20071 fi 20072 fi 20073 20074 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20075 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20076 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20077 # "foo.exe" is OK but "foo" is an error. 20078 # 20079 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20080 # It is also a way to make sure we got the proper file name for the real test later on. 20081 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20082 if test "x$test_shortpath" = x; then 20083 # Short path failed, file does not exist as specified. 20084 # Try adding .exe or .cmd 20085 if test -f "${new_path}.exe"; then 20086 input_to_shortpath="${new_path}.exe" 20087 elif test -f "${new_path}.cmd"; then 20088 input_to_shortpath="${new_path}.cmd" 20089 else 20090 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20091 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20092 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20093 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20094 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20095 fi 20096 else 20097 input_to_shortpath="$new_path" 20098 fi 20099 20100 # Call helper function which possibly converts this using DOS-style short mode. 20101 # If so, the updated path is stored in $new_path. 20102 new_path="$input_to_shortpath" 20103 20104 input_path="$input_to_shortpath" 20105 # Check if we need to convert this using DOS-style short mode. If the path 20106 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20107 # take no chances and rewrite it. 20108 # Note: m4 eats our [], so we need to use [ and ] instead. 20109 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20110 if test "x$has_forbidden_chars" != x; then 20111 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20112 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20113 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20114 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20115 # Going to short mode and back again did indeed matter. Since short mode is 20116 # case insensitive, let's make it lowercase to improve readability. 20117 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20118 # Now convert it back to Unix-style (cygpath) 20119 input_path=`$CYGPATH -u "$shortmode_path"` 20120 new_path="$input_path" 20121 fi 20122 fi 20123 20124 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20125 if test "x$test_cygdrive_prefix" = x; then 20126 # As a simple fix, exclude /usr/bin since it's not a real path. 20127 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20128 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20129 # a path prefixed by /cygdrive for fixpath to work. 20130 new_path="$CYGWIN_ROOT_PATH$input_path" 20131 fi 20132 fi 20133 20134 # remove trailing .exe if any 20135 new_path="${new_path/%.exe/}" 20136 20137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20138 20139 # First separate the path from the arguments. This will split at the first 20140 # space. 20141 complete="$FOUND_MAKE" 20142 path="${complete%% *}" 20143 tmp="$complete EOL" 20144 arguments="${tmp#* }" 20145 20146 # Input might be given as Windows format, start by converting to 20147 # unix format. 20148 new_path="$path" 20149 20150 windows_path="$new_path" 20151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20152 unix_path=`$CYGPATH -u "$windows_path"` 20153 new_path="$unix_path" 20154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20155 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20156 new_path="$unix_path" 20157 fi 20158 20159 20160 # Now try to locate executable using which 20161 new_path=`$WHICH "$new_path" 2> /dev/null` 20162 20163 if test "x$new_path" = x; then 20164 # Oops. Which didn't find the executable. 20165 # The splitting of arguments from the executable at a space might have been incorrect, 20166 # since paths with space are more likely in Windows. Give it another try with the whole 20167 # argument. 20168 path="$complete" 20169 arguments="EOL" 20170 new_path="$path" 20171 20172 windows_path="$new_path" 20173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20174 unix_path=`$CYGPATH -u "$windows_path"` 20175 new_path="$unix_path" 20176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20177 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20178 new_path="$unix_path" 20179 fi 20180 20181 20182 new_path=`$WHICH "$new_path" 2> /dev/null` 20183 # bat and cmd files are not always considered executable in MSYS causing which 20184 # to not find them 20185 if test "x$new_path" = x \ 20186 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20187 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20188 new_path="$path" 20189 20190 windows_path="$new_path" 20191 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20192 unix_path=`$CYGPATH -u "$windows_path"` 20193 new_path="$unix_path" 20194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20195 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20196 new_path="$unix_path" 20197 fi 20198 20199 fi 20200 20201 if test "x$new_path" = x; then 20202 # It's still not found. Now this is an unrecoverable error. 20203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20204 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20205 has_space=`$ECHO "$complete" | $GREP " "` 20206 if test "x$has_space" != x; then 20207 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20208 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20209 fi 20210 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20211 fi 20212 fi 20213 20214 # Now new_path has a complete unix path to the binary 20215 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20216 # Keep paths in /bin as-is, but remove trailing .exe if any 20217 new_path="${new_path/%.exe/}" 20218 # Do not save /bin paths to all_fixpath_prefixes! 20219 else 20220 # Not in mixed or Windows style, start by that. 20221 new_path=`cmd //c echo $new_path` 20222 20223 input_path="$new_path" 20224 # Check if we need to convert this using DOS-style short mode. If the path 20225 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20226 # take no chances and rewrite it. 20227 # Note: m4 eats our [], so we need to use [ and ] instead. 20228 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20229 if test "x$has_forbidden_chars" != x; then 20230 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20231 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20232 fi 20233 20234 # Output is in $new_path 20235 20236 windows_path="$new_path" 20237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20238 unix_path=`$CYGPATH -u "$windows_path"` 20239 new_path="$unix_path" 20240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20242 new_path="$unix_path" 20243 fi 20244 20245 # remove trailing .exe if any 20246 new_path="${new_path/%.exe/}" 20247 20248 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20249 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20250 fi 20251 20252 else 20253 # We're on a unix platform. Hooray! :) 20254 # First separate the path from the arguments. This will split at the first 20255 # space. 20256 complete="$FOUND_MAKE" 20257 path="${complete%% *}" 20258 tmp="$complete EOL" 20259 arguments="${tmp#* }" 20260 20261 # Cannot rely on the command "which" here since it doesn't always work. 20262 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20263 if test -z "$is_absolute_path"; then 20264 # Path to executable is not absolute. Find it. 20265 IFS_save="$IFS" 20266 IFS=: 20267 for p in $PATH; do 20268 if test -f "$p/$path" && test -x "$p/$path"; then 20269 new_path="$p/$path" 20270 break 20271 fi 20272 done 20273 IFS="$IFS_save" 20274 else 20275 # This is an absolute path, we can use it without further modifications. 20276 new_path="$path" 20277 fi 20278 20279 if test "x$new_path" = x; then 20280 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20281 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20282 has_space=`$ECHO "$complete" | $GREP " "` 20283 if test "x$has_space" != x; then 20284 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20285 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20286 fi 20287 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20288 fi 20289 fi 20290 20291 # Now join together the path and the arguments once again 20292 if test "x$arguments" != xEOL; then 20293 new_complete="$new_path ${arguments% *}" 20294 else 20295 new_complete="$new_path" 20296 fi 20297 20298 if test "x$complete" != "x$new_complete"; then 20299 FOUND_MAKE="$new_complete" 20300 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20301 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20302 fi 20303 fi 20304 20305 fi 20306 fi 20307 fi 20308 fi 20309 20310 if test "x$FOUND_MAKE" = x; then 20311 for ac_prog in make 20312 do 20313 # Extract the first word of "$ac_prog", so it can be a program name with args. 20314 set dummy $ac_prog; ac_word=$2 20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20316 $as_echo_n "checking for $ac_word... " >&6; } 20317 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20318 $as_echo_n "(cached) " >&6 20319 else 20320 case $CHECK_TOOLSDIR_MAKE in 20321 [\\/]* | ?:[\\/]*) 20322 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20323 ;; 20324 *) 20325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20326 for as_dir in $PATH 20327 do 20328 IFS=$as_save_IFS 20329 test -z "$as_dir" && as_dir=. 20330 for ac_exec_ext in '' $ac_executable_extensions; do 20331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20332 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20334 break 2 20335 fi 20336 done 20337 done 20338 IFS=$as_save_IFS 20339 20340 ;; 20341 esac 20342 fi 20343 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20344 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20346 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20347 else 20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20349 $as_echo "no" >&6; } 20350 fi 20351 20352 20353 test -n "$CHECK_TOOLSDIR_MAKE" && break 20354 done 20355 20356 20357 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20358 DESCRIPTION="make in tools-dir" 20359 20360 # On Cygwin, we require a newer version of make than on other platforms 20361 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20362 MAKE_VERSION_EXPR="-e 4\." 20363 MAKE_REQUIRED_VERSION="4.0" 20364 else 20365 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20366 MAKE_REQUIRED_VERSION="3.81" 20367 fi 20368 20369 if test "x$MAKE_CANDIDATE" != x; then 20370 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20371 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20372 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20373 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20374 if test "x$IS_GNU_MAKE" = x; then 20375 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20376 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20377 else 20378 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20379 if test "x$IS_MODERN_MAKE" = x; then 20380 { $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 20381 $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;} 20382 else 20383 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20384 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20385 MAKE_EXPECTED_ENV='cygwin' 20386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20387 MAKE_EXPECTED_ENV='msys' 20388 else 20389 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20390 fi 20391 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20392 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20393 else 20394 # Not relevant for non-Windows 20395 IS_MAKE_CORRECT_ENV=true 20396 fi 20397 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20398 { $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 20399 $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;} 20400 else 20401 FOUND_MAKE=$MAKE_CANDIDATE 20402 20403 # Only process if variable expands to non-empty 20404 20405 if test "x$FOUND_MAKE" != x; then 20406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20407 20408 # First separate the path from the arguments. This will split at the first 20409 # space. 20410 complete="$FOUND_MAKE" 20411 path="${complete%% *}" 20412 tmp="$complete EOL" 20413 arguments="${tmp#* }" 20414 20415 # Input might be given as Windows format, start by converting to 20416 # unix format. 20417 new_path=`$CYGPATH -u "$path"` 20418 20419 # Now try to locate executable using which 20420 new_path=`$WHICH "$new_path" 2> /dev/null` 20421 # bat and cmd files are not always considered executable in cygwin causing which 20422 # to not find them 20423 if test "x$new_path" = x \ 20424 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20425 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20426 new_path=`$CYGPATH -u "$path"` 20427 fi 20428 if test "x$new_path" = x; then 20429 # Oops. Which didn't find the executable. 20430 # The splitting of arguments from the executable at a space might have been incorrect, 20431 # since paths with space are more likely in Windows. Give it another try with the whole 20432 # argument. 20433 path="$complete" 20434 arguments="EOL" 20435 new_path=`$CYGPATH -u "$path"` 20436 new_path=`$WHICH "$new_path" 2> /dev/null` 20437 # bat and cmd files are not always considered executable in cygwin causing which 20438 # to not find them 20439 if test "x$new_path" = x \ 20440 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20441 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20442 new_path=`$CYGPATH -u "$path"` 20443 fi 20444 if test "x$new_path" = x; then 20445 # It's still not found. Now this is an unrecoverable error. 20446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20447 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20448 has_space=`$ECHO "$complete" | $GREP " "` 20449 if test "x$has_space" != x; then 20450 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20451 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20452 fi 20453 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20454 fi 20455 fi 20456 20457 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20458 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20459 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20460 # "foo.exe" is OK but "foo" is an error. 20461 # 20462 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20463 # It is also a way to make sure we got the proper file name for the real test later on. 20464 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20465 if test "x$test_shortpath" = x; then 20466 # Short path failed, file does not exist as specified. 20467 # Try adding .exe or .cmd 20468 if test -f "${new_path}.exe"; then 20469 input_to_shortpath="${new_path}.exe" 20470 elif test -f "${new_path}.cmd"; then 20471 input_to_shortpath="${new_path}.cmd" 20472 else 20473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20474 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20475 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20476 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20477 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20478 fi 20479 else 20480 input_to_shortpath="$new_path" 20481 fi 20482 20483 # Call helper function which possibly converts this using DOS-style short mode. 20484 # If so, the updated path is stored in $new_path. 20485 new_path="$input_to_shortpath" 20486 20487 input_path="$input_to_shortpath" 20488 # Check if we need to convert this using DOS-style short mode. If the path 20489 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20490 # take no chances and rewrite it. 20491 # Note: m4 eats our [], so we need to use [ and ] instead. 20492 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20493 if test "x$has_forbidden_chars" != x; then 20494 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20495 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20496 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20497 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20498 # Going to short mode and back again did indeed matter. Since short mode is 20499 # case insensitive, let's make it lowercase to improve readability. 20500 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20501 # Now convert it back to Unix-style (cygpath) 20502 input_path=`$CYGPATH -u "$shortmode_path"` 20503 new_path="$input_path" 20504 fi 20505 fi 20506 20507 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20508 if test "x$test_cygdrive_prefix" = x; then 20509 # As a simple fix, exclude /usr/bin since it's not a real path. 20510 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20511 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20512 # a path prefixed by /cygdrive for fixpath to work. 20513 new_path="$CYGWIN_ROOT_PATH$input_path" 20514 fi 20515 fi 20516 20517 # remove trailing .exe if any 20518 new_path="${new_path/%.exe/}" 20519 20520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20521 20522 # First separate the path from the arguments. This will split at the first 20523 # space. 20524 complete="$FOUND_MAKE" 20525 path="${complete%% *}" 20526 tmp="$complete EOL" 20527 arguments="${tmp#* }" 20528 20529 # Input might be given as Windows format, start by converting to 20530 # unix format. 20531 new_path="$path" 20532 20533 windows_path="$new_path" 20534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20535 unix_path=`$CYGPATH -u "$windows_path"` 20536 new_path="$unix_path" 20537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20538 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20539 new_path="$unix_path" 20540 fi 20541 20542 20543 # Now try to locate executable using which 20544 new_path=`$WHICH "$new_path" 2> /dev/null` 20545 20546 if test "x$new_path" = x; then 20547 # Oops. Which didn't find the executable. 20548 # The splitting of arguments from the executable at a space might have been incorrect, 20549 # since paths with space are more likely in Windows. Give it another try with the whole 20550 # argument. 20551 path="$complete" 20552 arguments="EOL" 20553 new_path="$path" 20554 20555 windows_path="$new_path" 20556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20557 unix_path=`$CYGPATH -u "$windows_path"` 20558 new_path="$unix_path" 20559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20561 new_path="$unix_path" 20562 fi 20563 20564 20565 new_path=`$WHICH "$new_path" 2> /dev/null` 20566 # bat and cmd files are not always considered executable in MSYS causing which 20567 # to not find them 20568 if test "x$new_path" = x \ 20569 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20570 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20571 new_path="$path" 20572 20573 windows_path="$new_path" 20574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20575 unix_path=`$CYGPATH -u "$windows_path"` 20576 new_path="$unix_path" 20577 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20578 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20579 new_path="$unix_path" 20580 fi 20581 20582 fi 20583 20584 if test "x$new_path" = x; then 20585 # It's still not found. Now this is an unrecoverable error. 20586 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20587 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20588 has_space=`$ECHO "$complete" | $GREP " "` 20589 if test "x$has_space" != x; then 20590 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20591 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20592 fi 20593 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20594 fi 20595 fi 20596 20597 # Now new_path has a complete unix path to the binary 20598 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20599 # Keep paths in /bin as-is, but remove trailing .exe if any 20600 new_path="${new_path/%.exe/}" 20601 # Do not save /bin paths to all_fixpath_prefixes! 20602 else 20603 # Not in mixed or Windows style, start by that. 20604 new_path=`cmd //c echo $new_path` 20605 20606 input_path="$new_path" 20607 # Check if we need to convert this using DOS-style short mode. If the path 20608 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20609 # take no chances and rewrite it. 20610 # Note: m4 eats our [], so we need to use [ and ] instead. 20611 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20612 if test "x$has_forbidden_chars" != x; then 20613 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20614 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20615 fi 20616 20617 # Output is in $new_path 20618 20619 windows_path="$new_path" 20620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20621 unix_path=`$CYGPATH -u "$windows_path"` 20622 new_path="$unix_path" 20623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20625 new_path="$unix_path" 20626 fi 20627 20628 # remove trailing .exe if any 20629 new_path="${new_path/%.exe/}" 20630 20631 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20632 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20633 fi 20634 20635 else 20636 # We're on a unix platform. Hooray! :) 20637 # First separate the path from the arguments. This will split at the first 20638 # space. 20639 complete="$FOUND_MAKE" 20640 path="${complete%% *}" 20641 tmp="$complete EOL" 20642 arguments="${tmp#* }" 20643 20644 # Cannot rely on the command "which" here since it doesn't always work. 20645 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20646 if test -z "$is_absolute_path"; then 20647 # Path to executable is not absolute. Find it. 20648 IFS_save="$IFS" 20649 IFS=: 20650 for p in $PATH; do 20651 if test -f "$p/$path" && test -x "$p/$path"; then 20652 new_path="$p/$path" 20653 break 20654 fi 20655 done 20656 IFS="$IFS_save" 20657 else 20658 # This is an absolute path, we can use it without further modifications. 20659 new_path="$path" 20660 fi 20661 20662 if test "x$new_path" = x; then 20663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20664 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20665 has_space=`$ECHO "$complete" | $GREP " "` 20666 if test "x$has_space" != x; then 20667 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20668 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20669 fi 20670 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20671 fi 20672 fi 20673 20674 # Now join together the path and the arguments once again 20675 if test "x$arguments" != xEOL; then 20676 new_complete="$new_path ${arguments% *}" 20677 else 20678 new_complete="$new_path" 20679 fi 20680 20681 if test "x$complete" != "x$new_complete"; then 20682 FOUND_MAKE="$new_complete" 20683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20684 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20685 fi 20686 fi 20687 20688 fi 20689 fi 20690 fi 20691 fi 20692 20693 fi 20694 PATH=$OLD_PATH 20695 fi 20696 fi 20697 20698 if test "x$FOUND_MAKE" = x; then 20699 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 20700 fi 20701 20702 else 20703 # If it succeeded, then it was overridden by the user. We will use it 20704 # for the tool. 20705 20706 # First remove it from the list of overridden variables, so we can test 20707 # for unknown variables in the end. 20708 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20709 20710 # Check if we try to supply an empty value 20711 if test "x$MAKE" = x; then 20712 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 20713 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20715 $as_echo_n "checking for MAKE... " >&6; } 20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20717 $as_echo "disabled" >&6; } 20718 else 20719 # Check if the provided tool contains a complete path. 20720 tool_specified="$MAKE" 20721 tool_basename="${tool_specified##*/}" 20722 if test "x$tool_basename" = "x$tool_specified"; then 20723 # A command without a complete path is provided, search $PATH. 20724 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 20725 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 20726 # Extract the first word of "$tool_basename", so it can be a program name with args. 20727 set dummy $tool_basename; ac_word=$2 20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20729 $as_echo_n "checking for $ac_word... " >&6; } 20730 if ${ac_cv_path_MAKE+:} false; then : 20731 $as_echo_n "(cached) " >&6 20732 else 20733 case $MAKE in 20734 [\\/]* | ?:[\\/]*) 20735 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 20736 ;; 20737 *) 20738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20739 for as_dir in $PATH 20740 do 20741 IFS=$as_save_IFS 20742 test -z "$as_dir" && as_dir=. 20743 for ac_exec_ext in '' $ac_executable_extensions; do 20744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20745 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 20746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20747 break 2 20748 fi 20749 done 20750 done 20751 IFS=$as_save_IFS 20752 20753 ;; 20754 esac 20755 fi 20756 MAKE=$ac_cv_path_MAKE 20757 if test -n "$MAKE"; then 20758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 20759 $as_echo "$MAKE" >&6; } 20760 else 20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20762 $as_echo "no" >&6; } 20763 fi 20764 20765 20766 if test "x$MAKE" = x; then 20767 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20768 fi 20769 else 20770 # Otherwise we believe it is a complete path. Use it as it is. 20771 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 20772 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 20773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20774 $as_echo_n "checking for MAKE... " >&6; } 20775 if test ! -x "$tool_specified"; then 20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20777 $as_echo "not found" >&6; } 20778 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 20779 fi 20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20781 $as_echo "$tool_specified" >&6; } 20782 fi 20783 fi 20784 fi 20785 20786 # If MAKE was set by user, verify the version 20787 20788 MAKE_CANDIDATE=""$MAKE"" 20789 DESCRIPTION="user supplied MAKE=$MAKE" 20790 20791 # On Cygwin, we require a newer version of make than on other platforms 20792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20793 MAKE_VERSION_EXPR="-e 4\." 20794 MAKE_REQUIRED_VERSION="4.0" 20795 else 20796 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20797 MAKE_REQUIRED_VERSION="3.81" 20798 fi 20799 20800 if test "x$MAKE_CANDIDATE" != x; then 20801 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20802 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20803 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20804 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20805 if test "x$IS_GNU_MAKE" = x; then 20806 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20807 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20808 else 20809 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20810 if test "x$IS_MODERN_MAKE" = x; then 20811 { $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 20812 $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;} 20813 else 20814 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20815 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20816 MAKE_EXPECTED_ENV='cygwin' 20817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20818 MAKE_EXPECTED_ENV='msys' 20819 else 20820 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20821 fi 20822 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20823 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20824 else 20825 # Not relevant for non-Windows 20826 IS_MAKE_CORRECT_ENV=true 20827 fi 20828 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20829 { $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 20830 $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;} 20831 else 20832 FOUND_MAKE=$MAKE_CANDIDATE 20833 20834 # Only process if variable expands to non-empty 20835 20836 if test "x$FOUND_MAKE" != x; then 20837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20838 20839 # First separate the path from the arguments. This will split at the first 20840 # space. 20841 complete="$FOUND_MAKE" 20842 path="${complete%% *}" 20843 tmp="$complete EOL" 20844 arguments="${tmp#* }" 20845 20846 # Input might be given as Windows format, start by converting to 20847 # unix format. 20848 new_path=`$CYGPATH -u "$path"` 20849 20850 # Now try to locate executable using which 20851 new_path=`$WHICH "$new_path" 2> /dev/null` 20852 # bat and cmd files are not always considered executable in cygwin causing which 20853 # to not find them 20854 if test "x$new_path" = x \ 20855 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20856 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20857 new_path=`$CYGPATH -u "$path"` 20858 fi 20859 if test "x$new_path" = x; then 20860 # Oops. Which didn't find the executable. 20861 # The splitting of arguments from the executable at a space might have been incorrect, 20862 # since paths with space are more likely in Windows. Give it another try with the whole 20863 # argument. 20864 path="$complete" 20865 arguments="EOL" 20866 new_path=`$CYGPATH -u "$path"` 20867 new_path=`$WHICH "$new_path" 2> /dev/null` 20868 # bat and cmd files are not always considered executable in cygwin causing which 20869 # to not find them 20870 if test "x$new_path" = x \ 20871 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20872 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20873 new_path=`$CYGPATH -u "$path"` 20874 fi 20875 if test "x$new_path" = x; then 20876 # It's still not found. Now this is an unrecoverable error. 20877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20878 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20879 has_space=`$ECHO "$complete" | $GREP " "` 20880 if test "x$has_space" != x; then 20881 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20882 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20883 fi 20884 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20885 fi 20886 fi 20887 20888 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20889 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20890 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20891 # "foo.exe" is OK but "foo" is an error. 20892 # 20893 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20894 # It is also a way to make sure we got the proper file name for the real test later on. 20895 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20896 if test "x$test_shortpath" = x; then 20897 # Short path failed, file does not exist as specified. 20898 # Try adding .exe or .cmd 20899 if test -f "${new_path}.exe"; then 20900 input_to_shortpath="${new_path}.exe" 20901 elif test -f "${new_path}.cmd"; then 20902 input_to_shortpath="${new_path}.cmd" 20903 else 20904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20905 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20906 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20907 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20908 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20909 fi 20910 else 20911 input_to_shortpath="$new_path" 20912 fi 20913 20914 # Call helper function which possibly converts this using DOS-style short mode. 20915 # If so, the updated path is stored in $new_path. 20916 new_path="$input_to_shortpath" 20917 20918 input_path="$input_to_shortpath" 20919 # Check if we need to convert this using DOS-style short mode. If the path 20920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20921 # take no chances and rewrite it. 20922 # Note: m4 eats our [], so we need to use [ and ] instead. 20923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20924 if test "x$has_forbidden_chars" != x; then 20925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20926 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20927 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20928 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20929 # Going to short mode and back again did indeed matter. Since short mode is 20930 # case insensitive, let's make it lowercase to improve readability. 20931 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20932 # Now convert it back to Unix-style (cygpath) 20933 input_path=`$CYGPATH -u "$shortmode_path"` 20934 new_path="$input_path" 20935 fi 20936 fi 20937 20938 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20939 if test "x$test_cygdrive_prefix" = x; then 20940 # As a simple fix, exclude /usr/bin since it's not a real path. 20941 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20942 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20943 # a path prefixed by /cygdrive for fixpath to work. 20944 new_path="$CYGWIN_ROOT_PATH$input_path" 20945 fi 20946 fi 20947 20948 # remove trailing .exe if any 20949 new_path="${new_path/%.exe/}" 20950 20951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20952 20953 # First separate the path from the arguments. This will split at the first 20954 # space. 20955 complete="$FOUND_MAKE" 20956 path="${complete%% *}" 20957 tmp="$complete EOL" 20958 arguments="${tmp#* }" 20959 20960 # Input might be given as Windows format, start by converting to 20961 # unix format. 20962 new_path="$path" 20963 20964 windows_path="$new_path" 20965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20966 unix_path=`$CYGPATH -u "$windows_path"` 20967 new_path="$unix_path" 20968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20969 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20970 new_path="$unix_path" 20971 fi 20972 20973 20974 # Now try to locate executable using which 20975 new_path=`$WHICH "$new_path" 2> /dev/null` 20976 20977 if test "x$new_path" = x; then 20978 # Oops. Which didn't find the executable. 20979 # The splitting of arguments from the executable at a space might have been incorrect, 20980 # since paths with space are more likely in Windows. Give it another try with the whole 20981 # argument. 20982 path="$complete" 20983 arguments="EOL" 20984 new_path="$path" 20985 20986 windows_path="$new_path" 20987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20988 unix_path=`$CYGPATH -u "$windows_path"` 20989 new_path="$unix_path" 20990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20991 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20992 new_path="$unix_path" 20993 fi 20994 20995 20996 new_path=`$WHICH "$new_path" 2> /dev/null` 20997 # bat and cmd files are not always considered executable in MSYS causing which 20998 # to not find them 20999 if test "x$new_path" = x \ 21000 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21001 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21002 new_path="$path" 21003 21004 windows_path="$new_path" 21005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21006 unix_path=`$CYGPATH -u "$windows_path"` 21007 new_path="$unix_path" 21008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21010 new_path="$unix_path" 21011 fi 21012 21013 fi 21014 21015 if test "x$new_path" = x; then 21016 # It's still not found. Now this is an unrecoverable error. 21017 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21018 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21019 has_space=`$ECHO "$complete" | $GREP " "` 21020 if test "x$has_space" != x; then 21021 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21022 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21023 fi 21024 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21025 fi 21026 fi 21027 21028 # Now new_path has a complete unix path to the binary 21029 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21030 # Keep paths in /bin as-is, but remove trailing .exe if any 21031 new_path="${new_path/%.exe/}" 21032 # Do not save /bin paths to all_fixpath_prefixes! 21033 else 21034 # Not in mixed or Windows style, start by that. 21035 new_path=`cmd //c echo $new_path` 21036 21037 input_path="$new_path" 21038 # Check if we need to convert this using DOS-style short mode. If the path 21039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21040 # take no chances and rewrite it. 21041 # Note: m4 eats our [], so we need to use [ and ] instead. 21042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21043 if test "x$has_forbidden_chars" != x; then 21044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21045 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21046 fi 21047 21048 # Output is in $new_path 21049 21050 windows_path="$new_path" 21051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21052 unix_path=`$CYGPATH -u "$windows_path"` 21053 new_path="$unix_path" 21054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21055 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21056 new_path="$unix_path" 21057 fi 21058 21059 # remove trailing .exe if any 21060 new_path="${new_path/%.exe/}" 21061 21062 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21063 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21064 fi 21065 21066 else 21067 # We're on a unix platform. Hooray! :) 21068 # First separate the path from the arguments. This will split at the first 21069 # space. 21070 complete="$FOUND_MAKE" 21071 path="${complete%% *}" 21072 tmp="$complete EOL" 21073 arguments="${tmp#* }" 21074 21075 # Cannot rely on the command "which" here since it doesn't always work. 21076 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21077 if test -z "$is_absolute_path"; then 21078 # Path to executable is not absolute. Find it. 21079 IFS_save="$IFS" 21080 IFS=: 21081 for p in $PATH; do 21082 if test -f "$p/$path" && test -x "$p/$path"; then 21083 new_path="$p/$path" 21084 break 21085 fi 21086 done 21087 IFS="$IFS_save" 21088 else 21089 # This is an absolute path, we can use it without further modifications. 21090 new_path="$path" 21091 fi 21092 21093 if test "x$new_path" = x; then 21094 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21095 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21096 has_space=`$ECHO "$complete" | $GREP " "` 21097 if test "x$has_space" != x; then 21098 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21099 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21100 fi 21101 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21102 fi 21103 fi 21104 21105 # Now join together the path and the arguments once again 21106 if test "x$arguments" != xEOL; then 21107 new_complete="$new_path ${arguments% *}" 21108 else 21109 new_complete="$new_path" 21110 fi 21111 21112 if test "x$complete" != "x$new_complete"; then 21113 FOUND_MAKE="$new_complete" 21114 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21115 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21116 fi 21117 fi 21118 21119 fi 21120 fi 21121 fi 21122 fi 21123 21124 if test "x$FOUND_MAKE" = x; then 21125 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21126 fi 21127 21128 fi 21129 21130 21131 MAKE=$FOUND_MAKE 21132 21133 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21134 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21135 21136 21137 # Check if make supports the output sync option and if so, setup using it. 21138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21139 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21140 if $MAKE --version -O > /dev/null 2>&1; then 21141 OUTPUT_SYNC_SUPPORTED=true 21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21143 $as_echo "yes" >&6; } 21144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21145 $as_echo_n "checking for output-sync value... " >&6; } 21146 21147 # Check whether --with-output-sync was given. 21148 if test "${with_output_sync+set}" = set; then : 21149 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21150 fi 21151 21152 if test "x$OUTPUT_SYNC" = "x"; then 21153 OUTPUT_SYNC=none 21154 fi 21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21156 $as_echo "$OUTPUT_SYNC" >&6; } 21157 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21158 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21159 fi 21160 else 21161 OUTPUT_SYNC_SUPPORTED=false 21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21163 $as_echo "no" >&6; } 21164 fi 21165 21166 21167 21168 21169 21170 21171 # Test if find supports -delete 21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21173 $as_echo_n "checking if find supports -delete... " >&6; } 21174 FIND_DELETE="-delete" 21175 21176 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21177 21178 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21179 21180 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21181 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21182 # No, it does not. 21183 $RM $DELETEDIR/TestIfFindSupportsDelete 21184 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21185 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21186 FIND_DELETE="-print | $XARGS $RM" 21187 else 21188 FIND_DELETE="-exec $RM \{\} \+" 21189 fi 21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21191 $as_echo "no" >&6; } 21192 else 21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21194 $as_echo "yes" >&6; } 21195 fi 21196 $RMDIR $DELETEDIR 21197 21198 21199 21200 # Test which kind of tar was found 21201 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21202 TAR_TYPE="gnu" 21203 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21204 TAR_TYPE="bsd" 21205 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21206 TAR_TYPE="solaris" 21207 fi 21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21209 $as_echo_n "checking what type of tar was found... " >&6; } 21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21211 $as_echo "$TAR_TYPE" >&6; } 21212 21213 TAR_CREATE_FILE_PARAM="" 21214 21215 if test "x$TAR_TYPE" = "xgnu"; then 21216 TAR_INCLUDE_PARAM="T" 21217 TAR_SUPPORTS_TRANSFORM="true" 21218 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21219 # When using gnu tar for Solaris targets, need to use compatibility mode 21220 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21221 fi 21222 else 21223 TAR_INCLUDE_PARAM="I" 21224 TAR_SUPPORTS_TRANSFORM="false" 21225 fi 21226 21227 21228 21229 21230 21231 21232 # These tools might not be installed by default, 21233 # need hint on how to install them. 21234 21235 21236 21237 # Publish this variable in the help. 21238 21239 21240 if [ -z "${UNZIP+x}" ]; then 21241 # The variable is not set by user, try to locate tool using the code snippet 21242 for ac_prog in unzip 21243 do 21244 # Extract the first word of "$ac_prog", so it can be a program name with args. 21245 set dummy $ac_prog; ac_word=$2 21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21247 $as_echo_n "checking for $ac_word... " >&6; } 21248 if ${ac_cv_path_UNZIP+:} false; then : 21249 $as_echo_n "(cached) " >&6 21250 else 21251 case $UNZIP in 21252 [\\/]* | ?:[\\/]*) 21253 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21254 ;; 21255 *) 21256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21257 for as_dir in $PATH 21258 do 21259 IFS=$as_save_IFS 21260 test -z "$as_dir" && as_dir=. 21261 for ac_exec_ext in '' $ac_executable_extensions; do 21262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21263 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21265 break 2 21266 fi 21267 done 21268 done 21269 IFS=$as_save_IFS 21270 21271 ;; 21272 esac 21273 fi 21274 UNZIP=$ac_cv_path_UNZIP 21275 if test -n "$UNZIP"; then 21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21277 $as_echo "$UNZIP" >&6; } 21278 else 21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21280 $as_echo "no" >&6; } 21281 fi 21282 21283 21284 test -n "$UNZIP" && break 21285 done 21286 21287 else 21288 # The variable is set, but is it from the command line or the environment? 21289 21290 # Try to remove the string !UNZIP! from our list. 21291 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21292 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21293 # If it failed, the variable was not from the command line. Ignore it, 21294 # but warn the user (except for BASH, which is always set by the calling BASH). 21295 if test "xUNZIP" != xBASH; then 21296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21297 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21298 fi 21299 # Try to locate tool using the code snippet 21300 for ac_prog in unzip 21301 do 21302 # Extract the first word of "$ac_prog", so it can be a program name with args. 21303 set dummy $ac_prog; ac_word=$2 21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21305 $as_echo_n "checking for $ac_word... " >&6; } 21306 if ${ac_cv_path_UNZIP+:} false; then : 21307 $as_echo_n "(cached) " >&6 21308 else 21309 case $UNZIP in 21310 [\\/]* | ?:[\\/]*) 21311 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21312 ;; 21313 *) 21314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21315 for as_dir in $PATH 21316 do 21317 IFS=$as_save_IFS 21318 test -z "$as_dir" && as_dir=. 21319 for ac_exec_ext in '' $ac_executable_extensions; do 21320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21321 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21323 break 2 21324 fi 21325 done 21326 done 21327 IFS=$as_save_IFS 21328 21329 ;; 21330 esac 21331 fi 21332 UNZIP=$ac_cv_path_UNZIP 21333 if test -n "$UNZIP"; then 21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21335 $as_echo "$UNZIP" >&6; } 21336 else 21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21338 $as_echo "no" >&6; } 21339 fi 21340 21341 21342 test -n "$UNZIP" && break 21343 done 21344 21345 else 21346 # If it succeeded, then it was overridden by the user. We will use it 21347 # for the tool. 21348 21349 # First remove it from the list of overridden variables, so we can test 21350 # for unknown variables in the end. 21351 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21352 21353 # Check if we try to supply an empty value 21354 if test "x$UNZIP" = x; then 21355 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21356 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21358 $as_echo_n "checking for UNZIP... " >&6; } 21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21360 $as_echo "disabled" >&6; } 21361 else 21362 # Check if the provided tool contains a complete path. 21363 tool_specified="$UNZIP" 21364 tool_basename="${tool_specified##*/}" 21365 if test "x$tool_basename" = "x$tool_specified"; then 21366 # A command without a complete path is provided, search $PATH. 21367 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21368 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21369 # Extract the first word of "$tool_basename", so it can be a program name with args. 21370 set dummy $tool_basename; ac_word=$2 21371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21372 $as_echo_n "checking for $ac_word... " >&6; } 21373 if ${ac_cv_path_UNZIP+:} false; then : 21374 $as_echo_n "(cached) " >&6 21375 else 21376 case $UNZIP in 21377 [\\/]* | ?:[\\/]*) 21378 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21379 ;; 21380 *) 21381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21382 for as_dir in $PATH 21383 do 21384 IFS=$as_save_IFS 21385 test -z "$as_dir" && as_dir=. 21386 for ac_exec_ext in '' $ac_executable_extensions; do 21387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21388 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21390 break 2 21391 fi 21392 done 21393 done 21394 IFS=$as_save_IFS 21395 21396 ;; 21397 esac 21398 fi 21399 UNZIP=$ac_cv_path_UNZIP 21400 if test -n "$UNZIP"; then 21401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21402 $as_echo "$UNZIP" >&6; } 21403 else 21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21405 $as_echo "no" >&6; } 21406 fi 21407 21408 21409 if test "x$UNZIP" = x; then 21410 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21411 fi 21412 else 21413 # Otherwise we believe it is a complete path. Use it as it is. 21414 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21415 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21417 $as_echo_n "checking for UNZIP... " >&6; } 21418 if test ! -x "$tool_specified"; then 21419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21420 $as_echo "not found" >&6; } 21421 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21422 fi 21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21424 $as_echo "$tool_specified" >&6; } 21425 fi 21426 fi 21427 fi 21428 21429 fi 21430 21431 21432 21433 if test "x$UNZIP" = x; then 21434 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21435 fi 21436 21437 21438 21439 21440 21441 # Publish this variable in the help. 21442 21443 21444 if [ -z "${ZIP+x}" ]; then 21445 # The variable is not set by user, try to locate tool using the code snippet 21446 for ac_prog in zip 21447 do 21448 # Extract the first word of "$ac_prog", so it can be a program name with args. 21449 set dummy $ac_prog; ac_word=$2 21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21451 $as_echo_n "checking for $ac_word... " >&6; } 21452 if ${ac_cv_path_ZIP+:} false; then : 21453 $as_echo_n "(cached) " >&6 21454 else 21455 case $ZIP in 21456 [\\/]* | ?:[\\/]*) 21457 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 21458 ;; 21459 *) 21460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21461 for as_dir in $PATH 21462 do 21463 IFS=$as_save_IFS 21464 test -z "$as_dir" && as_dir=. 21465 for ac_exec_ext in '' $ac_executable_extensions; do 21466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21467 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21469 break 2 21470 fi 21471 done 21472 done 21473 IFS=$as_save_IFS 21474 21475 ;; 21476 esac 21477 fi 21478 ZIP=$ac_cv_path_ZIP 21479 if test -n "$ZIP"; then 21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21481 $as_echo "$ZIP" >&6; } 21482 else 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21484 $as_echo "no" >&6; } 21485 fi 21486 21487 21488 test -n "$ZIP" && break 21489 done 21490 21491 else 21492 # The variable is set, but is it from the command line or the environment? 21493 21494 # Try to remove the string !ZIP! from our list. 21495 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 21496 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21497 # If it failed, the variable was not from the command line. Ignore it, 21498 # but warn the user (except for BASH, which is always set by the calling BASH). 21499 if test "xZIP" != xBASH; then 21500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 21501 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 21502 fi 21503 # Try to locate tool using the code snippet 21504 for ac_prog in zip 21505 do 21506 # Extract the first word of "$ac_prog", so it can be a program name with args. 21507 set dummy $ac_prog; ac_word=$2 21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21509 $as_echo_n "checking for $ac_word... " >&6; } 21510 if ${ac_cv_path_ZIP+:} false; then : 21511 $as_echo_n "(cached) " >&6 21512 else 21513 case $ZIP in 21514 [\\/]* | ?:[\\/]*) 21515 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 21516 ;; 21517 *) 21518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21519 for as_dir in $PATH 21520 do 21521 IFS=$as_save_IFS 21522 test -z "$as_dir" && as_dir=. 21523 for ac_exec_ext in '' $ac_executable_extensions; do 21524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21525 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21527 break 2 21528 fi 21529 done 21530 done 21531 IFS=$as_save_IFS 21532 21533 ;; 21534 esac 21535 fi 21536 ZIP=$ac_cv_path_ZIP 21537 if test -n "$ZIP"; then 21538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21539 $as_echo "$ZIP" >&6; } 21540 else 21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21542 $as_echo "no" >&6; } 21543 fi 21544 21545 21546 test -n "$ZIP" && break 21547 done 21548 21549 else 21550 # If it succeeded, then it was overridden by the user. We will use it 21551 # for the tool. 21552 21553 # First remove it from the list of overridden variables, so we can test 21554 # for unknown variables in the end. 21555 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21556 21557 # Check if we try to supply an empty value 21558 if test "x$ZIP" = x; then 21559 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5 21560 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;} 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 21562 $as_echo_n "checking for ZIP... " >&6; } 21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21564 $as_echo "disabled" >&6; } 21565 else 21566 # Check if the provided tool contains a complete path. 21567 tool_specified="$ZIP" 21568 tool_basename="${tool_specified##*/}" 21569 if test "x$tool_basename" = "x$tool_specified"; then 21570 # A command without a complete path is provided, search $PATH. 21571 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 21572 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 21573 # Extract the first word of "$tool_basename", so it can be a program name with args. 21574 set dummy $tool_basename; ac_word=$2 21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21576 $as_echo_n "checking for $ac_word... " >&6; } 21577 if ${ac_cv_path_ZIP+:} false; then : 21578 $as_echo_n "(cached) " >&6 21579 else 21580 case $ZIP in 21581 [\\/]* | ?:[\\/]*) 21582 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 21583 ;; 21584 *) 21585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21586 for as_dir in $PATH 21587 do 21588 IFS=$as_save_IFS 21589 test -z "$as_dir" && as_dir=. 21590 for ac_exec_ext in '' $ac_executable_extensions; do 21591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21592 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21594 break 2 21595 fi 21596 done 21597 done 21598 IFS=$as_save_IFS 21599 21600 ;; 21601 esac 21602 fi 21603 ZIP=$ac_cv_path_ZIP 21604 if test -n "$ZIP"; then 21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21606 $as_echo "$ZIP" >&6; } 21607 else 21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21609 $as_echo "no" >&6; } 21610 fi 21611 21612 21613 if test "x$ZIP" = x; then 21614 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21615 fi 21616 else 21617 # Otherwise we believe it is a complete path. Use it as it is. 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 21619 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 21621 $as_echo_n "checking for ZIP... " >&6; } 21622 if test ! -x "$tool_specified"; then 21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21624 $as_echo "not found" >&6; } 21625 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21626 fi 21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21628 $as_echo "$tool_specified" >&6; } 21629 fi 21630 fi 21631 fi 21632 21633 fi 21634 21635 21636 21637 if test "x$ZIP" = x; then 21638 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 21639 fi 21640 21641 21642 21643 # Non-required basic tools 21644 21645 21646 21647 # Publish this variable in the help. 21648 21649 21650 if [ -z "${LDD+x}" ]; then 21651 # The variable is not set by user, try to locate tool using the code snippet 21652 for ac_prog in ldd 21653 do 21654 # Extract the first word of "$ac_prog", so it can be a program name with args. 21655 set dummy $ac_prog; ac_word=$2 21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21657 $as_echo_n "checking for $ac_word... " >&6; } 21658 if ${ac_cv_path_LDD+:} false; then : 21659 $as_echo_n "(cached) " >&6 21660 else 21661 case $LDD in 21662 [\\/]* | ?:[\\/]*) 21663 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21664 ;; 21665 *) 21666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21667 for as_dir in $PATH 21668 do 21669 IFS=$as_save_IFS 21670 test -z "$as_dir" && as_dir=. 21671 for ac_exec_ext in '' $ac_executable_extensions; do 21672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21673 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21675 break 2 21676 fi 21677 done 21678 done 21679 IFS=$as_save_IFS 21680 21681 ;; 21682 esac 21683 fi 21684 LDD=$ac_cv_path_LDD 21685 if test -n "$LDD"; then 21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21687 $as_echo "$LDD" >&6; } 21688 else 21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21690 $as_echo "no" >&6; } 21691 fi 21692 21693 21694 test -n "$LDD" && break 21695 done 21696 21697 else 21698 # The variable is set, but is it from the command line or the environment? 21699 21700 # Try to remove the string !LDD! from our list. 21701 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 21702 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21703 # If it failed, the variable was not from the command line. Ignore it, 21704 # but warn the user (except for BASH, which is always set by the calling BASH). 21705 if test "xLDD" != xBASH; then 21706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 21707 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 21708 fi 21709 # Try to locate tool using the code snippet 21710 for ac_prog in ldd 21711 do 21712 # Extract the first word of "$ac_prog", so it can be a program name with args. 21713 set dummy $ac_prog; ac_word=$2 21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21715 $as_echo_n "checking for $ac_word... " >&6; } 21716 if ${ac_cv_path_LDD+:} false; then : 21717 $as_echo_n "(cached) " >&6 21718 else 21719 case $LDD in 21720 [\\/]* | ?:[\\/]*) 21721 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21722 ;; 21723 *) 21724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21725 for as_dir in $PATH 21726 do 21727 IFS=$as_save_IFS 21728 test -z "$as_dir" && as_dir=. 21729 for ac_exec_ext in '' $ac_executable_extensions; do 21730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21731 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21733 break 2 21734 fi 21735 done 21736 done 21737 IFS=$as_save_IFS 21738 21739 ;; 21740 esac 21741 fi 21742 LDD=$ac_cv_path_LDD 21743 if test -n "$LDD"; then 21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21745 $as_echo "$LDD" >&6; } 21746 else 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21748 $as_echo "no" >&6; } 21749 fi 21750 21751 21752 test -n "$LDD" && break 21753 done 21754 21755 else 21756 # If it succeeded, then it was overridden by the user. We will use it 21757 # for the tool. 21758 21759 # First remove it from the list of overridden variables, so we can test 21760 # for unknown variables in the end. 21761 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21762 21763 # Check if we try to supply an empty value 21764 if test "x$LDD" = x; then 21765 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 21766 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21768 $as_echo_n "checking for LDD... " >&6; } 21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21770 $as_echo "disabled" >&6; } 21771 else 21772 # Check if the provided tool contains a complete path. 21773 tool_specified="$LDD" 21774 tool_basename="${tool_specified##*/}" 21775 if test "x$tool_basename" = "x$tool_specified"; then 21776 # A command without a complete path is provided, search $PATH. 21777 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 21778 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 21779 # Extract the first word of "$tool_basename", so it can be a program name with args. 21780 set dummy $tool_basename; ac_word=$2 21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21782 $as_echo_n "checking for $ac_word... " >&6; } 21783 if ${ac_cv_path_LDD+:} false; then : 21784 $as_echo_n "(cached) " >&6 21785 else 21786 case $LDD in 21787 [\\/]* | ?:[\\/]*) 21788 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21789 ;; 21790 *) 21791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21792 for as_dir in $PATH 21793 do 21794 IFS=$as_save_IFS 21795 test -z "$as_dir" && as_dir=. 21796 for ac_exec_ext in '' $ac_executable_extensions; do 21797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21798 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21800 break 2 21801 fi 21802 done 21803 done 21804 IFS=$as_save_IFS 21805 21806 ;; 21807 esac 21808 fi 21809 LDD=$ac_cv_path_LDD 21810 if test -n "$LDD"; then 21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21812 $as_echo "$LDD" >&6; } 21813 else 21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21815 $as_echo "no" >&6; } 21816 fi 21817 21818 21819 if test "x$LDD" = x; then 21820 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21821 fi 21822 else 21823 # Otherwise we believe it is a complete path. Use it as it is. 21824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 21825 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21827 $as_echo_n "checking for LDD... " >&6; } 21828 if test ! -x "$tool_specified"; then 21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21830 $as_echo "not found" >&6; } 21831 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 21832 fi 21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21834 $as_echo "$tool_specified" >&6; } 21835 fi 21836 fi 21837 fi 21838 21839 fi 21840 21841 21842 if test "x$LDD" = "x"; then 21843 # List shared lib dependencies is used for 21844 # debug output and checking for forbidden dependencies. 21845 # We can build without it. 21846 LDD="true" 21847 fi 21848 21849 21850 # Publish this variable in the help. 21851 21852 21853 if [ -z "${OTOOL+x}" ]; then 21854 # The variable is not set by user, try to locate tool using the code snippet 21855 for ac_prog in otool 21856 do 21857 # Extract the first word of "$ac_prog", so it can be a program name with args. 21858 set dummy $ac_prog; ac_word=$2 21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21860 $as_echo_n "checking for $ac_word... " >&6; } 21861 if ${ac_cv_path_OTOOL+:} false; then : 21862 $as_echo_n "(cached) " >&6 21863 else 21864 case $OTOOL in 21865 [\\/]* | ?:[\\/]*) 21866 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21867 ;; 21868 *) 21869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21870 for as_dir in $PATH 21871 do 21872 IFS=$as_save_IFS 21873 test -z "$as_dir" && as_dir=. 21874 for ac_exec_ext in '' $ac_executable_extensions; do 21875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21876 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21878 break 2 21879 fi 21880 done 21881 done 21882 IFS=$as_save_IFS 21883 21884 ;; 21885 esac 21886 fi 21887 OTOOL=$ac_cv_path_OTOOL 21888 if test -n "$OTOOL"; then 21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21890 $as_echo "$OTOOL" >&6; } 21891 else 21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21893 $as_echo "no" >&6; } 21894 fi 21895 21896 21897 test -n "$OTOOL" && break 21898 done 21899 21900 else 21901 # The variable is set, but is it from the command line or the environment? 21902 21903 # Try to remove the string !OTOOL! from our list. 21904 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 21905 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21906 # If it failed, the variable was not from the command line. Ignore it, 21907 # but warn the user (except for BASH, which is always set by the calling BASH). 21908 if test "xOTOOL" != xBASH; then 21909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 21910 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 21911 fi 21912 # Try to locate tool using the code snippet 21913 for ac_prog in otool 21914 do 21915 # Extract the first word of "$ac_prog", so it can be a program name with args. 21916 set dummy $ac_prog; ac_word=$2 21917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21918 $as_echo_n "checking for $ac_word... " >&6; } 21919 if ${ac_cv_path_OTOOL+:} false; then : 21920 $as_echo_n "(cached) " >&6 21921 else 21922 case $OTOOL in 21923 [\\/]* | ?:[\\/]*) 21924 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21925 ;; 21926 *) 21927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21928 for as_dir in $PATH 21929 do 21930 IFS=$as_save_IFS 21931 test -z "$as_dir" && as_dir=. 21932 for ac_exec_ext in '' $ac_executable_extensions; do 21933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21934 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21936 break 2 21937 fi 21938 done 21939 done 21940 IFS=$as_save_IFS 21941 21942 ;; 21943 esac 21944 fi 21945 OTOOL=$ac_cv_path_OTOOL 21946 if test -n "$OTOOL"; then 21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21948 $as_echo "$OTOOL" >&6; } 21949 else 21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21951 $as_echo "no" >&6; } 21952 fi 21953 21954 21955 test -n "$OTOOL" && break 21956 done 21957 21958 else 21959 # If it succeeded, then it was overridden by the user. We will use it 21960 # for the tool. 21961 21962 # First remove it from the list of overridden variables, so we can test 21963 # for unknown variables in the end. 21964 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21965 21966 # Check if we try to supply an empty value 21967 if test "x$OTOOL" = x; then 21968 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 21969 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21971 $as_echo_n "checking for OTOOL... " >&6; } 21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21973 $as_echo "disabled" >&6; } 21974 else 21975 # Check if the provided tool contains a complete path. 21976 tool_specified="$OTOOL" 21977 tool_basename="${tool_specified##*/}" 21978 if test "x$tool_basename" = "x$tool_specified"; then 21979 # A command without a complete path is provided, search $PATH. 21980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 21981 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 21982 # Extract the first word of "$tool_basename", so it can be a program name with args. 21983 set dummy $tool_basename; ac_word=$2 21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21985 $as_echo_n "checking for $ac_word... " >&6; } 21986 if ${ac_cv_path_OTOOL+:} false; then : 21987 $as_echo_n "(cached) " >&6 21988 else 21989 case $OTOOL in 21990 [\\/]* | ?:[\\/]*) 21991 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21992 ;; 21993 *) 21994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21995 for as_dir in $PATH 21996 do 21997 IFS=$as_save_IFS 21998 test -z "$as_dir" && as_dir=. 21999 for ac_exec_ext in '' $ac_executable_extensions; do 22000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22001 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22003 break 2 22004 fi 22005 done 22006 done 22007 IFS=$as_save_IFS 22008 22009 ;; 22010 esac 22011 fi 22012 OTOOL=$ac_cv_path_OTOOL 22013 if test -n "$OTOOL"; then 22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22015 $as_echo "$OTOOL" >&6; } 22016 else 22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22018 $as_echo "no" >&6; } 22019 fi 22020 22021 22022 if test "x$OTOOL" = x; then 22023 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22024 fi 22025 else 22026 # Otherwise we believe it is a complete path. Use it as it is. 22027 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 22028 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22030 $as_echo_n "checking for OTOOL... " >&6; } 22031 if test ! -x "$tool_specified"; then 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22033 $as_echo "not found" >&6; } 22034 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 22035 fi 22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22037 $as_echo "$tool_specified" >&6; } 22038 fi 22039 fi 22040 fi 22041 22042 fi 22043 22044 22045 if test "x$OTOOL" = "x"; then 22046 OTOOL="true" 22047 fi 22048 22049 22050 # Publish this variable in the help. 22051 22052 22053 if [ -z "${READELF+x}" ]; then 22054 # The variable is not set by user, try to locate tool using the code snippet 22055 for ac_prog in greadelf readelf 22056 do 22057 # Extract the first word of "$ac_prog", so it can be a program name with args. 22058 set dummy $ac_prog; ac_word=$2 22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22060 $as_echo_n "checking for $ac_word... " >&6; } 22061 if ${ac_cv_path_READELF+:} false; then : 22062 $as_echo_n "(cached) " >&6 22063 else 22064 case $READELF in 22065 [\\/]* | ?:[\\/]*) 22066 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22067 ;; 22068 *) 22069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22070 for as_dir in $PATH 22071 do 22072 IFS=$as_save_IFS 22073 test -z "$as_dir" && as_dir=. 22074 for ac_exec_ext in '' $ac_executable_extensions; do 22075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22076 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22078 break 2 22079 fi 22080 done 22081 done 22082 IFS=$as_save_IFS 22083 22084 ;; 22085 esac 22086 fi 22087 READELF=$ac_cv_path_READELF 22088 if test -n "$READELF"; then 22089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22090 $as_echo "$READELF" >&6; } 22091 else 22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22093 $as_echo "no" >&6; } 22094 fi 22095 22096 22097 test -n "$READELF" && break 22098 done 22099 22100 else 22101 # The variable is set, but is it from the command line or the environment? 22102 22103 # Try to remove the string !READELF! from our list. 22104 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22105 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22106 # If it failed, the variable was not from the command line. Ignore it, 22107 # but warn the user (except for BASH, which is always set by the calling BASH). 22108 if test "xREADELF" != xBASH; then 22109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22110 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22111 fi 22112 # Try to locate tool using the code snippet 22113 for ac_prog in greadelf readelf 22114 do 22115 # Extract the first word of "$ac_prog", so it can be a program name with args. 22116 set dummy $ac_prog; ac_word=$2 22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22118 $as_echo_n "checking for $ac_word... " >&6; } 22119 if ${ac_cv_path_READELF+:} false; then : 22120 $as_echo_n "(cached) " >&6 22121 else 22122 case $READELF in 22123 [\\/]* | ?:[\\/]*) 22124 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22125 ;; 22126 *) 22127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22128 for as_dir in $PATH 22129 do 22130 IFS=$as_save_IFS 22131 test -z "$as_dir" && as_dir=. 22132 for ac_exec_ext in '' $ac_executable_extensions; do 22133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22134 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22136 break 2 22137 fi 22138 done 22139 done 22140 IFS=$as_save_IFS 22141 22142 ;; 22143 esac 22144 fi 22145 READELF=$ac_cv_path_READELF 22146 if test -n "$READELF"; then 22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22148 $as_echo "$READELF" >&6; } 22149 else 22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22151 $as_echo "no" >&6; } 22152 fi 22153 22154 22155 test -n "$READELF" && break 22156 done 22157 22158 else 22159 # If it succeeded, then it was overridden by the user. We will use it 22160 # for the tool. 22161 22162 # First remove it from the list of overridden variables, so we can test 22163 # for unknown variables in the end. 22164 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22165 22166 # Check if we try to supply an empty value 22167 if test "x$READELF" = x; then 22168 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22169 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22171 $as_echo_n "checking for READELF... " >&6; } 22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22173 $as_echo "disabled" >&6; } 22174 else 22175 # Check if the provided tool contains a complete path. 22176 tool_specified="$READELF" 22177 tool_basename="${tool_specified##*/}" 22178 if test "x$tool_basename" = "x$tool_specified"; then 22179 # A command without a complete path is provided, search $PATH. 22180 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22181 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22182 # Extract the first word of "$tool_basename", so it can be a program name with args. 22183 set dummy $tool_basename; ac_word=$2 22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22185 $as_echo_n "checking for $ac_word... " >&6; } 22186 if ${ac_cv_path_READELF+:} false; then : 22187 $as_echo_n "(cached) " >&6 22188 else 22189 case $READELF in 22190 [\\/]* | ?:[\\/]*) 22191 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22192 ;; 22193 *) 22194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22195 for as_dir in $PATH 22196 do 22197 IFS=$as_save_IFS 22198 test -z "$as_dir" && as_dir=. 22199 for ac_exec_ext in '' $ac_executable_extensions; do 22200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22201 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22203 break 2 22204 fi 22205 done 22206 done 22207 IFS=$as_save_IFS 22208 22209 ;; 22210 esac 22211 fi 22212 READELF=$ac_cv_path_READELF 22213 if test -n "$READELF"; then 22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22215 $as_echo "$READELF" >&6; } 22216 else 22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22218 $as_echo "no" >&6; } 22219 fi 22220 22221 22222 if test "x$READELF" = x; then 22223 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22224 fi 22225 else 22226 # Otherwise we believe it is a complete path. Use it as it is. 22227 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22228 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22230 $as_echo_n "checking for READELF... " >&6; } 22231 if test ! -x "$tool_specified"; then 22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22233 $as_echo "not found" >&6; } 22234 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22235 fi 22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22237 $as_echo "$tool_specified" >&6; } 22238 fi 22239 fi 22240 fi 22241 22242 fi 22243 22244 22245 22246 22247 # Publish this variable in the help. 22248 22249 22250 if [ -z "${HG+x}" ]; then 22251 # The variable is not set by user, try to locate tool using the code snippet 22252 for ac_prog in hg 22253 do 22254 # Extract the first word of "$ac_prog", so it can be a program name with args. 22255 set dummy $ac_prog; ac_word=$2 22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22257 $as_echo_n "checking for $ac_word... " >&6; } 22258 if ${ac_cv_path_HG+:} false; then : 22259 $as_echo_n "(cached) " >&6 22260 else 22261 case $HG in 22262 [\\/]* | ?:[\\/]*) 22263 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22264 ;; 22265 *) 22266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22267 for as_dir in $PATH 22268 do 22269 IFS=$as_save_IFS 22270 test -z "$as_dir" && as_dir=. 22271 for ac_exec_ext in '' $ac_executable_extensions; do 22272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22273 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22275 break 2 22276 fi 22277 done 22278 done 22279 IFS=$as_save_IFS 22280 22281 ;; 22282 esac 22283 fi 22284 HG=$ac_cv_path_HG 22285 if test -n "$HG"; then 22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22287 $as_echo "$HG" >&6; } 22288 else 22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22290 $as_echo "no" >&6; } 22291 fi 22292 22293 22294 test -n "$HG" && break 22295 done 22296 22297 else 22298 # The variable is set, but is it from the command line or the environment? 22299 22300 # Try to remove the string !HG! from our list. 22301 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22302 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22303 # If it failed, the variable was not from the command line. Ignore it, 22304 # but warn the user (except for BASH, which is always set by the calling BASH). 22305 if test "xHG" != xBASH; then 22306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22307 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22308 fi 22309 # Try to locate tool using the code snippet 22310 for ac_prog in hg 22311 do 22312 # Extract the first word of "$ac_prog", so it can be a program name with args. 22313 set dummy $ac_prog; ac_word=$2 22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22315 $as_echo_n "checking for $ac_word... " >&6; } 22316 if ${ac_cv_path_HG+:} false; then : 22317 $as_echo_n "(cached) " >&6 22318 else 22319 case $HG in 22320 [\\/]* | ?:[\\/]*) 22321 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22322 ;; 22323 *) 22324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22325 for as_dir in $PATH 22326 do 22327 IFS=$as_save_IFS 22328 test -z "$as_dir" && as_dir=. 22329 for ac_exec_ext in '' $ac_executable_extensions; do 22330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22331 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22333 break 2 22334 fi 22335 done 22336 done 22337 IFS=$as_save_IFS 22338 22339 ;; 22340 esac 22341 fi 22342 HG=$ac_cv_path_HG 22343 if test -n "$HG"; then 22344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22345 $as_echo "$HG" >&6; } 22346 else 22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22348 $as_echo "no" >&6; } 22349 fi 22350 22351 22352 test -n "$HG" && break 22353 done 22354 22355 else 22356 # If it succeeded, then it was overridden by the user. We will use it 22357 # for the tool. 22358 22359 # First remove it from the list of overridden variables, so we can test 22360 # for unknown variables in the end. 22361 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22362 22363 # Check if we try to supply an empty value 22364 if test "x$HG" = x; then 22365 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22366 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22368 $as_echo_n "checking for HG... " >&6; } 22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22370 $as_echo "disabled" >&6; } 22371 else 22372 # Check if the provided tool contains a complete path. 22373 tool_specified="$HG" 22374 tool_basename="${tool_specified##*/}" 22375 if test "x$tool_basename" = "x$tool_specified"; then 22376 # A command without a complete path is provided, search $PATH. 22377 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22378 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22379 # Extract the first word of "$tool_basename", so it can be a program name with args. 22380 set dummy $tool_basename; ac_word=$2 22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22382 $as_echo_n "checking for $ac_word... " >&6; } 22383 if ${ac_cv_path_HG+:} false; then : 22384 $as_echo_n "(cached) " >&6 22385 else 22386 case $HG in 22387 [\\/]* | ?:[\\/]*) 22388 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22389 ;; 22390 *) 22391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22392 for as_dir in $PATH 22393 do 22394 IFS=$as_save_IFS 22395 test -z "$as_dir" && as_dir=. 22396 for ac_exec_ext in '' $ac_executable_extensions; do 22397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22398 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22400 break 2 22401 fi 22402 done 22403 done 22404 IFS=$as_save_IFS 22405 22406 ;; 22407 esac 22408 fi 22409 HG=$ac_cv_path_HG 22410 if test -n "$HG"; then 22411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22412 $as_echo "$HG" >&6; } 22413 else 22414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22415 $as_echo "no" >&6; } 22416 fi 22417 22418 22419 if test "x$HG" = x; then 22420 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22421 fi 22422 else 22423 # Otherwise we believe it is a complete path. Use it as it is. 22424 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22425 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22427 $as_echo_n "checking for HG... " >&6; } 22428 if test ! -x "$tool_specified"; then 22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22430 $as_echo "not found" >&6; } 22431 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22432 fi 22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22434 $as_echo "$tool_specified" >&6; } 22435 fi 22436 fi 22437 fi 22438 22439 fi 22440 22441 22442 22443 22444 # Publish this variable in the help. 22445 22446 22447 if [ -z "${STAT+x}" ]; then 22448 # The variable is not set by user, try to locate tool using the code snippet 22449 for ac_prog in stat 22450 do 22451 # Extract the first word of "$ac_prog", so it can be a program name with args. 22452 set dummy $ac_prog; ac_word=$2 22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22454 $as_echo_n "checking for $ac_word... " >&6; } 22455 if ${ac_cv_path_STAT+:} false; then : 22456 $as_echo_n "(cached) " >&6 22457 else 22458 case $STAT in 22459 [\\/]* | ?:[\\/]*) 22460 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22461 ;; 22462 *) 22463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22464 for as_dir in $PATH 22465 do 22466 IFS=$as_save_IFS 22467 test -z "$as_dir" && as_dir=. 22468 for ac_exec_ext in '' $ac_executable_extensions; do 22469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22470 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22472 break 2 22473 fi 22474 done 22475 done 22476 IFS=$as_save_IFS 22477 22478 ;; 22479 esac 22480 fi 22481 STAT=$ac_cv_path_STAT 22482 if test -n "$STAT"; then 22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22484 $as_echo "$STAT" >&6; } 22485 else 22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22487 $as_echo "no" >&6; } 22488 fi 22489 22490 22491 test -n "$STAT" && break 22492 done 22493 22494 else 22495 # The variable is set, but is it from the command line or the environment? 22496 22497 # Try to remove the string !STAT! from our list. 22498 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22499 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22500 # If it failed, the variable was not from the command line. Ignore it, 22501 # but warn the user (except for BASH, which is always set by the calling BASH). 22502 if test "xSTAT" != xBASH; then 22503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22504 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22505 fi 22506 # Try to locate tool using the code snippet 22507 for ac_prog in stat 22508 do 22509 # Extract the first word of "$ac_prog", so it can be a program name with args. 22510 set dummy $ac_prog; ac_word=$2 22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22512 $as_echo_n "checking for $ac_word... " >&6; } 22513 if ${ac_cv_path_STAT+:} false; then : 22514 $as_echo_n "(cached) " >&6 22515 else 22516 case $STAT in 22517 [\\/]* | ?:[\\/]*) 22518 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22519 ;; 22520 *) 22521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22522 for as_dir in $PATH 22523 do 22524 IFS=$as_save_IFS 22525 test -z "$as_dir" && as_dir=. 22526 for ac_exec_ext in '' $ac_executable_extensions; do 22527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22528 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22530 break 2 22531 fi 22532 done 22533 done 22534 IFS=$as_save_IFS 22535 22536 ;; 22537 esac 22538 fi 22539 STAT=$ac_cv_path_STAT 22540 if test -n "$STAT"; then 22541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22542 $as_echo "$STAT" >&6; } 22543 else 22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22545 $as_echo "no" >&6; } 22546 fi 22547 22548 22549 test -n "$STAT" && break 22550 done 22551 22552 else 22553 # If it succeeded, then it was overridden by the user. We will use it 22554 # for the tool. 22555 22556 # First remove it from the list of overridden variables, so we can test 22557 # for unknown variables in the end. 22558 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22559 22560 # Check if we try to supply an empty value 22561 if test "x$STAT" = x; then 22562 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 22563 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 22564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22565 $as_echo_n "checking for STAT... " >&6; } 22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22567 $as_echo "disabled" >&6; } 22568 else 22569 # Check if the provided tool contains a complete path. 22570 tool_specified="$STAT" 22571 tool_basename="${tool_specified##*/}" 22572 if test "x$tool_basename" = "x$tool_specified"; then 22573 # A command without a complete path is provided, search $PATH. 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 22575 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 22576 # Extract the first word of "$tool_basename", so it can be a program name with args. 22577 set dummy $tool_basename; ac_word=$2 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22579 $as_echo_n "checking for $ac_word... " >&6; } 22580 if ${ac_cv_path_STAT+:} false; then : 22581 $as_echo_n "(cached) " >&6 22582 else 22583 case $STAT in 22584 [\\/]* | ?:[\\/]*) 22585 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22586 ;; 22587 *) 22588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22589 for as_dir in $PATH 22590 do 22591 IFS=$as_save_IFS 22592 test -z "$as_dir" && as_dir=. 22593 for ac_exec_ext in '' $ac_executable_extensions; do 22594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22595 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22597 break 2 22598 fi 22599 done 22600 done 22601 IFS=$as_save_IFS 22602 22603 ;; 22604 esac 22605 fi 22606 STAT=$ac_cv_path_STAT 22607 if test -n "$STAT"; then 22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22609 $as_echo "$STAT" >&6; } 22610 else 22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22612 $as_echo "no" >&6; } 22613 fi 22614 22615 22616 if test "x$STAT" = x; then 22617 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22618 fi 22619 else 22620 # Otherwise we believe it is a complete path. Use it as it is. 22621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 22622 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22624 $as_echo_n "checking for STAT... " >&6; } 22625 if test ! -x "$tool_specified"; then 22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22627 $as_echo "not found" >&6; } 22628 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 22629 fi 22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22631 $as_echo "$tool_specified" >&6; } 22632 fi 22633 fi 22634 fi 22635 22636 fi 22637 22638 22639 22640 22641 # Publish this variable in the help. 22642 22643 22644 if [ -z "${TIME+x}" ]; then 22645 # The variable is not set by user, try to locate tool using the code snippet 22646 for ac_prog in time 22647 do 22648 # Extract the first word of "$ac_prog", so it can be a program name with args. 22649 set dummy $ac_prog; ac_word=$2 22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22651 $as_echo_n "checking for $ac_word... " >&6; } 22652 if ${ac_cv_path_TIME+:} false; then : 22653 $as_echo_n "(cached) " >&6 22654 else 22655 case $TIME in 22656 [\\/]* | ?:[\\/]*) 22657 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22658 ;; 22659 *) 22660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22661 for as_dir in $PATH 22662 do 22663 IFS=$as_save_IFS 22664 test -z "$as_dir" && as_dir=. 22665 for ac_exec_ext in '' $ac_executable_extensions; do 22666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22667 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22669 break 2 22670 fi 22671 done 22672 done 22673 IFS=$as_save_IFS 22674 22675 ;; 22676 esac 22677 fi 22678 TIME=$ac_cv_path_TIME 22679 if test -n "$TIME"; then 22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22681 $as_echo "$TIME" >&6; } 22682 else 22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22684 $as_echo "no" >&6; } 22685 fi 22686 22687 22688 test -n "$TIME" && break 22689 done 22690 22691 else 22692 # The variable is set, but is it from the command line or the environment? 22693 22694 # Try to remove the string !TIME! from our list. 22695 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 22696 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22697 # If it failed, the variable was not from the command line. Ignore it, 22698 # but warn the user (except for BASH, which is always set by the calling BASH). 22699 if test "xTIME" != xBASH; then 22700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 22701 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 22702 fi 22703 # Try to locate tool using the code snippet 22704 for ac_prog in time 22705 do 22706 # Extract the first word of "$ac_prog", so it can be a program name with args. 22707 set dummy $ac_prog; ac_word=$2 22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22709 $as_echo_n "checking for $ac_word... " >&6; } 22710 if ${ac_cv_path_TIME+:} false; then : 22711 $as_echo_n "(cached) " >&6 22712 else 22713 case $TIME in 22714 [\\/]* | ?:[\\/]*) 22715 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22716 ;; 22717 *) 22718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22719 for as_dir in $PATH 22720 do 22721 IFS=$as_save_IFS 22722 test -z "$as_dir" && as_dir=. 22723 for ac_exec_ext in '' $ac_executable_extensions; do 22724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22725 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22727 break 2 22728 fi 22729 done 22730 done 22731 IFS=$as_save_IFS 22732 22733 ;; 22734 esac 22735 fi 22736 TIME=$ac_cv_path_TIME 22737 if test -n "$TIME"; then 22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22739 $as_echo "$TIME" >&6; } 22740 else 22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22742 $as_echo "no" >&6; } 22743 fi 22744 22745 22746 test -n "$TIME" && break 22747 done 22748 22749 else 22750 # If it succeeded, then it was overridden by the user. We will use it 22751 # for the tool. 22752 22753 # First remove it from the list of overridden variables, so we can test 22754 # for unknown variables in the end. 22755 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22756 22757 # Check if we try to supply an empty value 22758 if test "x$TIME" = x; then 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 22760 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 22761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22762 $as_echo_n "checking for TIME... " >&6; } 22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22764 $as_echo "disabled" >&6; } 22765 else 22766 # Check if the provided tool contains a complete path. 22767 tool_specified="$TIME" 22768 tool_basename="${tool_specified##*/}" 22769 if test "x$tool_basename" = "x$tool_specified"; then 22770 # A command without a complete path is provided, search $PATH. 22771 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 22772 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 22773 # Extract the first word of "$tool_basename", so it can be a program name with args. 22774 set dummy $tool_basename; ac_word=$2 22775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22776 $as_echo_n "checking for $ac_word... " >&6; } 22777 if ${ac_cv_path_TIME+:} false; then : 22778 $as_echo_n "(cached) " >&6 22779 else 22780 case $TIME in 22781 [\\/]* | ?:[\\/]*) 22782 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22783 ;; 22784 *) 22785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22786 for as_dir in $PATH 22787 do 22788 IFS=$as_save_IFS 22789 test -z "$as_dir" && as_dir=. 22790 for ac_exec_ext in '' $ac_executable_extensions; do 22791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22792 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22794 break 2 22795 fi 22796 done 22797 done 22798 IFS=$as_save_IFS 22799 22800 ;; 22801 esac 22802 fi 22803 TIME=$ac_cv_path_TIME 22804 if test -n "$TIME"; then 22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22806 $as_echo "$TIME" >&6; } 22807 else 22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22809 $as_echo "no" >&6; } 22810 fi 22811 22812 22813 if test "x$TIME" = x; then 22814 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22815 fi 22816 else 22817 # Otherwise we believe it is a complete path. Use it as it is. 22818 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 22819 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 22820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22821 $as_echo_n "checking for TIME... " >&6; } 22822 if test ! -x "$tool_specified"; then 22823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22824 $as_echo "not found" >&6; } 22825 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 22826 fi 22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22828 $as_echo "$tool_specified" >&6; } 22829 fi 22830 fi 22831 fi 22832 22833 fi 22834 22835 22836 22837 22838 # Publish this variable in the help. 22839 22840 22841 if [ -z "${DTRACE+x}" ]; then 22842 # The variable is not set by user, try to locate tool using the code snippet 22843 for ac_prog in dtrace 22844 do 22845 # Extract the first word of "$ac_prog", so it can be a program name with args. 22846 set dummy $ac_prog; ac_word=$2 22847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22848 $as_echo_n "checking for $ac_word... " >&6; } 22849 if ${ac_cv_path_DTRACE+:} false; then : 22850 $as_echo_n "(cached) " >&6 22851 else 22852 case $DTRACE in 22853 [\\/]* | ?:[\\/]*) 22854 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22855 ;; 22856 *) 22857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22858 for as_dir in $PATH 22859 do 22860 IFS=$as_save_IFS 22861 test -z "$as_dir" && as_dir=. 22862 for ac_exec_ext in '' $ac_executable_extensions; do 22863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22864 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22866 break 2 22867 fi 22868 done 22869 done 22870 IFS=$as_save_IFS 22871 22872 ;; 22873 esac 22874 fi 22875 DTRACE=$ac_cv_path_DTRACE 22876 if test -n "$DTRACE"; then 22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22878 $as_echo "$DTRACE" >&6; } 22879 else 22880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22881 $as_echo "no" >&6; } 22882 fi 22883 22884 22885 test -n "$DTRACE" && break 22886 done 22887 22888 else 22889 # The variable is set, but is it from the command line or the environment? 22890 22891 # Try to remove the string !DTRACE! from our list. 22892 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 22893 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22894 # If it failed, the variable was not from the command line. Ignore it, 22895 # but warn the user (except for BASH, which is always set by the calling BASH). 22896 if test "xDTRACE" != xBASH; then 22897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 22898 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 22899 fi 22900 # Try to locate tool using the code snippet 22901 for ac_prog in dtrace 22902 do 22903 # Extract the first word of "$ac_prog", so it can be a program name with args. 22904 set dummy $ac_prog; ac_word=$2 22905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22906 $as_echo_n "checking for $ac_word... " >&6; } 22907 if ${ac_cv_path_DTRACE+:} false; then : 22908 $as_echo_n "(cached) " >&6 22909 else 22910 case $DTRACE in 22911 [\\/]* | ?:[\\/]*) 22912 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22913 ;; 22914 *) 22915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22916 for as_dir in $PATH 22917 do 22918 IFS=$as_save_IFS 22919 test -z "$as_dir" && as_dir=. 22920 for ac_exec_ext in '' $ac_executable_extensions; do 22921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22922 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22924 break 2 22925 fi 22926 done 22927 done 22928 IFS=$as_save_IFS 22929 22930 ;; 22931 esac 22932 fi 22933 DTRACE=$ac_cv_path_DTRACE 22934 if test -n "$DTRACE"; then 22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22936 $as_echo "$DTRACE" >&6; } 22937 else 22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22939 $as_echo "no" >&6; } 22940 fi 22941 22942 22943 test -n "$DTRACE" && break 22944 done 22945 22946 else 22947 # If it succeeded, then it was overridden by the user. We will use it 22948 # for the tool. 22949 22950 # First remove it from the list of overridden variables, so we can test 22951 # for unknown variables in the end. 22952 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22953 22954 # Check if we try to supply an empty value 22955 if test "x$DTRACE" = x; then 22956 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 22957 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 22959 $as_echo_n "checking for DTRACE... " >&6; } 22960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22961 $as_echo "disabled" >&6; } 22962 else 22963 # Check if the provided tool contains a complete path. 22964 tool_specified="$DTRACE" 22965 tool_basename="${tool_specified##*/}" 22966 if test "x$tool_basename" = "x$tool_specified"; then 22967 # A command without a complete path is provided, search $PATH. 22968 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 22969 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 22970 # Extract the first word of "$tool_basename", so it can be a program name with args. 22971 set dummy $tool_basename; ac_word=$2 22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22973 $as_echo_n "checking for $ac_word... " >&6; } 22974 if ${ac_cv_path_DTRACE+:} false; then : 22975 $as_echo_n "(cached) " >&6 22976 else 22977 case $DTRACE in 22978 [\\/]* | ?:[\\/]*) 22979 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22980 ;; 22981 *) 22982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22983 for as_dir in $PATH 22984 do 22985 IFS=$as_save_IFS 22986 test -z "$as_dir" && as_dir=. 22987 for ac_exec_ext in '' $ac_executable_extensions; do 22988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22989 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22991 break 2 22992 fi 22993 done 22994 done 22995 IFS=$as_save_IFS 22996 22997 ;; 22998 esac 22999 fi 23000 DTRACE=$ac_cv_path_DTRACE 23001 if test -n "$DTRACE"; then 23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23003 $as_echo "$DTRACE" >&6; } 23004 else 23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23006 $as_echo "no" >&6; } 23007 fi 23008 23009 23010 if test "x$DTRACE" = x; then 23011 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23012 fi 23013 else 23014 # Otherwise we believe it is a complete path. Use it as it is. 23015 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23016 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23018 $as_echo_n "checking for DTRACE... " >&6; } 23019 if test ! -x "$tool_specified"; then 23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23021 $as_echo "not found" >&6; } 23022 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23023 fi 23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23025 $as_echo "$tool_specified" >&6; } 23026 fi 23027 fi 23028 fi 23029 23030 fi 23031 23032 23033 23034 23035 # Publish this variable in the help. 23036 23037 23038 if [ -z "${PATCH+x}" ]; then 23039 # The variable is not set by user, try to locate tool using the code snippet 23040 for ac_prog in gpatch patch 23041 do 23042 # Extract the first word of "$ac_prog", so it can be a program name with args. 23043 set dummy $ac_prog; ac_word=$2 23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23045 $as_echo_n "checking for $ac_word... " >&6; } 23046 if ${ac_cv_path_PATCH+:} false; then : 23047 $as_echo_n "(cached) " >&6 23048 else 23049 case $PATCH in 23050 [\\/]* | ?:[\\/]*) 23051 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23052 ;; 23053 *) 23054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23055 for as_dir in $PATH 23056 do 23057 IFS=$as_save_IFS 23058 test -z "$as_dir" && as_dir=. 23059 for ac_exec_ext in '' $ac_executable_extensions; do 23060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23061 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23063 break 2 23064 fi 23065 done 23066 done 23067 IFS=$as_save_IFS 23068 23069 ;; 23070 esac 23071 fi 23072 PATCH=$ac_cv_path_PATCH 23073 if test -n "$PATCH"; then 23074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23075 $as_echo "$PATCH" >&6; } 23076 else 23077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23078 $as_echo "no" >&6; } 23079 fi 23080 23081 23082 test -n "$PATCH" && break 23083 done 23084 23085 else 23086 # The variable is set, but is it from the command line or the environment? 23087 23088 # Try to remove the string !PATCH! from our list. 23089 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23090 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23091 # If it failed, the variable was not from the command line. Ignore it, 23092 # but warn the user (except for BASH, which is always set by the calling BASH). 23093 if test "xPATCH" != xBASH; then 23094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23095 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23096 fi 23097 # Try to locate tool using the code snippet 23098 for ac_prog in gpatch patch 23099 do 23100 # Extract the first word of "$ac_prog", so it can be a program name with args. 23101 set dummy $ac_prog; ac_word=$2 23102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23103 $as_echo_n "checking for $ac_word... " >&6; } 23104 if ${ac_cv_path_PATCH+:} false; then : 23105 $as_echo_n "(cached) " >&6 23106 else 23107 case $PATCH in 23108 [\\/]* | ?:[\\/]*) 23109 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23110 ;; 23111 *) 23112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23113 for as_dir in $PATH 23114 do 23115 IFS=$as_save_IFS 23116 test -z "$as_dir" && as_dir=. 23117 for ac_exec_ext in '' $ac_executable_extensions; do 23118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23119 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23121 break 2 23122 fi 23123 done 23124 done 23125 IFS=$as_save_IFS 23126 23127 ;; 23128 esac 23129 fi 23130 PATCH=$ac_cv_path_PATCH 23131 if test -n "$PATCH"; then 23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23133 $as_echo "$PATCH" >&6; } 23134 else 23135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23136 $as_echo "no" >&6; } 23137 fi 23138 23139 23140 test -n "$PATCH" && break 23141 done 23142 23143 else 23144 # If it succeeded, then it was overridden by the user. We will use it 23145 # for the tool. 23146 23147 # First remove it from the list of overridden variables, so we can test 23148 # for unknown variables in the end. 23149 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23150 23151 # Check if we try to supply an empty value 23152 if test "x$PATCH" = x; then 23153 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23154 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23156 $as_echo_n "checking for PATCH... " >&6; } 23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23158 $as_echo "disabled" >&6; } 23159 else 23160 # Check if the provided tool contains a complete path. 23161 tool_specified="$PATCH" 23162 tool_basename="${tool_specified##*/}" 23163 if test "x$tool_basename" = "x$tool_specified"; then 23164 # A command without a complete path is provided, search $PATH. 23165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23166 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23167 # Extract the first word of "$tool_basename", so it can be a program name with args. 23168 set dummy $tool_basename; ac_word=$2 23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23170 $as_echo_n "checking for $ac_word... " >&6; } 23171 if ${ac_cv_path_PATCH+:} false; then : 23172 $as_echo_n "(cached) " >&6 23173 else 23174 case $PATCH in 23175 [\\/]* | ?:[\\/]*) 23176 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23177 ;; 23178 *) 23179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23180 for as_dir in $PATH 23181 do 23182 IFS=$as_save_IFS 23183 test -z "$as_dir" && as_dir=. 23184 for ac_exec_ext in '' $ac_executable_extensions; do 23185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23186 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23188 break 2 23189 fi 23190 done 23191 done 23192 IFS=$as_save_IFS 23193 23194 ;; 23195 esac 23196 fi 23197 PATCH=$ac_cv_path_PATCH 23198 if test -n "$PATCH"; then 23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23200 $as_echo "$PATCH" >&6; } 23201 else 23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23203 $as_echo "no" >&6; } 23204 fi 23205 23206 23207 if test "x$PATCH" = x; then 23208 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23209 fi 23210 else 23211 # Otherwise we believe it is a complete path. Use it as it is. 23212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23213 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23215 $as_echo_n "checking for PATCH... " >&6; } 23216 if test ! -x "$tool_specified"; then 23217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23218 $as_echo "not found" >&6; } 23219 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23220 fi 23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23222 $as_echo "$tool_specified" >&6; } 23223 fi 23224 fi 23225 fi 23226 23227 fi 23228 23229 23230 # Check if it's GNU time 23231 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23232 if test "x$IS_GNU_TIME" != x; then 23233 IS_GNU_TIME=yes 23234 else 23235 IS_GNU_TIME=no 23236 fi 23237 23238 23239 if test "x$OPENJDK_TARGET_OS" = "xmacosx" || test "x$OPENJDK_TARGET_OS" = "xios" ; then 23240 23241 23242 23243 # Publish this variable in the help. 23244 23245 23246 if [ -z "${DSYMUTIL+x}" ]; then 23247 # The variable is not set by user, try to locate tool using the code snippet 23248 for ac_prog in dsymutil 23249 do 23250 # Extract the first word of "$ac_prog", so it can be a program name with args. 23251 set dummy $ac_prog; ac_word=$2 23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23253 $as_echo_n "checking for $ac_word... " >&6; } 23254 if ${ac_cv_path_DSYMUTIL+:} false; then : 23255 $as_echo_n "(cached) " >&6 23256 else 23257 case $DSYMUTIL in 23258 [\\/]* | ?:[\\/]*) 23259 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23260 ;; 23261 *) 23262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23263 for as_dir in $PATH 23264 do 23265 IFS=$as_save_IFS 23266 test -z "$as_dir" && as_dir=. 23267 for ac_exec_ext in '' $ac_executable_extensions; do 23268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23269 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23271 break 2 23272 fi 23273 done 23274 done 23275 IFS=$as_save_IFS 23276 23277 ;; 23278 esac 23279 fi 23280 DSYMUTIL=$ac_cv_path_DSYMUTIL 23281 if test -n "$DSYMUTIL"; then 23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23283 $as_echo "$DSYMUTIL" >&6; } 23284 else 23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23286 $as_echo "no" >&6; } 23287 fi 23288 23289 23290 test -n "$DSYMUTIL" && break 23291 done 23292 23293 else 23294 # The variable is set, but is it from the command line or the environment? 23295 23296 # Try to remove the string !DSYMUTIL! from our list. 23297 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23298 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23299 # If it failed, the variable was not from the command line. Ignore it, 23300 # but warn the user (except for BASH, which is always set by the calling BASH). 23301 if test "xDSYMUTIL" != xBASH; then 23302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23303 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23304 fi 23305 # Try to locate tool using the code snippet 23306 for ac_prog in dsymutil 23307 do 23308 # Extract the first word of "$ac_prog", so it can be a program name with args. 23309 set dummy $ac_prog; ac_word=$2 23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23311 $as_echo_n "checking for $ac_word... " >&6; } 23312 if ${ac_cv_path_DSYMUTIL+:} false; then : 23313 $as_echo_n "(cached) " >&6 23314 else 23315 case $DSYMUTIL in 23316 [\\/]* | ?:[\\/]*) 23317 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23318 ;; 23319 *) 23320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23321 for as_dir in $PATH 23322 do 23323 IFS=$as_save_IFS 23324 test -z "$as_dir" && as_dir=. 23325 for ac_exec_ext in '' $ac_executable_extensions; do 23326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23327 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23329 break 2 23330 fi 23331 done 23332 done 23333 IFS=$as_save_IFS 23334 23335 ;; 23336 esac 23337 fi 23338 DSYMUTIL=$ac_cv_path_DSYMUTIL 23339 if test -n "$DSYMUTIL"; then 23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23341 $as_echo "$DSYMUTIL" >&6; } 23342 else 23343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23344 $as_echo "no" >&6; } 23345 fi 23346 23347 23348 test -n "$DSYMUTIL" && break 23349 done 23350 23351 else 23352 # If it succeeded, then it was overridden by the user. We will use it 23353 # for the tool. 23354 23355 # First remove it from the list of overridden variables, so we can test 23356 # for unknown variables in the end. 23357 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23358 23359 # Check if we try to supply an empty value 23360 if test "x$DSYMUTIL" = x; then 23361 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 23362 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23364 $as_echo_n "checking for DSYMUTIL... " >&6; } 23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23366 $as_echo "disabled" >&6; } 23367 else 23368 # Check if the provided tool contains a complete path. 23369 tool_specified="$DSYMUTIL" 23370 tool_basename="${tool_specified##*/}" 23371 if test "x$tool_basename" = "x$tool_specified"; then 23372 # A command without a complete path is provided, search $PATH. 23373 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 23374 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 23375 # Extract the first word of "$tool_basename", so it can be a program name with args. 23376 set dummy $tool_basename; ac_word=$2 23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23378 $as_echo_n "checking for $ac_word... " >&6; } 23379 if ${ac_cv_path_DSYMUTIL+:} false; then : 23380 $as_echo_n "(cached) " >&6 23381 else 23382 case $DSYMUTIL in 23383 [\\/]* | ?:[\\/]*) 23384 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23385 ;; 23386 *) 23387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23388 for as_dir in $PATH 23389 do 23390 IFS=$as_save_IFS 23391 test -z "$as_dir" && as_dir=. 23392 for ac_exec_ext in '' $ac_executable_extensions; do 23393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23394 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23396 break 2 23397 fi 23398 done 23399 done 23400 IFS=$as_save_IFS 23401 23402 ;; 23403 esac 23404 fi 23405 DSYMUTIL=$ac_cv_path_DSYMUTIL 23406 if test -n "$DSYMUTIL"; then 23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23408 $as_echo "$DSYMUTIL" >&6; } 23409 else 23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23411 $as_echo "no" >&6; } 23412 fi 23413 23414 23415 if test "x$DSYMUTIL" = x; then 23416 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23417 fi 23418 else 23419 # Otherwise we believe it is a complete path. Use it as it is. 23420 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 23421 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23423 $as_echo_n "checking for DSYMUTIL... " >&6; } 23424 if test ! -x "$tool_specified"; then 23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23426 $as_echo "not found" >&6; } 23427 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 23428 fi 23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23430 $as_echo "$tool_specified" >&6; } 23431 fi 23432 fi 23433 fi 23434 23435 fi 23436 23437 23438 23439 if test "x$DSYMUTIL" = x; then 23440 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 23441 fi 23442 23443 23444 23445 23446 23447 # Publish this variable in the help. 23448 23449 23450 if [ -z "${XATTR+x}" ]; then 23451 # The variable is not set by user, try to locate tool using the code snippet 23452 for ac_prog in xattr 23453 do 23454 # Extract the first word of "$ac_prog", so it can be a program name with args. 23455 set dummy $ac_prog; ac_word=$2 23456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23457 $as_echo_n "checking for $ac_word... " >&6; } 23458 if ${ac_cv_path_XATTR+:} false; then : 23459 $as_echo_n "(cached) " >&6 23460 else 23461 case $XATTR in 23462 [\\/]* | ?:[\\/]*) 23463 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23464 ;; 23465 *) 23466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23467 for as_dir in $PATH 23468 do 23469 IFS=$as_save_IFS 23470 test -z "$as_dir" && as_dir=. 23471 for ac_exec_ext in '' $ac_executable_extensions; do 23472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23473 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23475 break 2 23476 fi 23477 done 23478 done 23479 IFS=$as_save_IFS 23480 23481 ;; 23482 esac 23483 fi 23484 XATTR=$ac_cv_path_XATTR 23485 if test -n "$XATTR"; then 23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23487 $as_echo "$XATTR" >&6; } 23488 else 23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23490 $as_echo "no" >&6; } 23491 fi 23492 23493 23494 test -n "$XATTR" && break 23495 done 23496 23497 else 23498 # The variable is set, but is it from the command line or the environment? 23499 23500 # Try to remove the string !XATTR! from our list. 23501 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 23502 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23503 # If it failed, the variable was not from the command line. Ignore it, 23504 # but warn the user (except for BASH, which is always set by the calling BASH). 23505 if test "xXATTR" != xBASH; then 23506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 23507 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 23508 fi 23509 # Try to locate tool using the code snippet 23510 for ac_prog in xattr 23511 do 23512 # Extract the first word of "$ac_prog", so it can be a program name with args. 23513 set dummy $ac_prog; ac_word=$2 23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23515 $as_echo_n "checking for $ac_word... " >&6; } 23516 if ${ac_cv_path_XATTR+:} false; then : 23517 $as_echo_n "(cached) " >&6 23518 else 23519 case $XATTR in 23520 [\\/]* | ?:[\\/]*) 23521 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23522 ;; 23523 *) 23524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23525 for as_dir in $PATH 23526 do 23527 IFS=$as_save_IFS 23528 test -z "$as_dir" && as_dir=. 23529 for ac_exec_ext in '' $ac_executable_extensions; do 23530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23531 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23533 break 2 23534 fi 23535 done 23536 done 23537 IFS=$as_save_IFS 23538 23539 ;; 23540 esac 23541 fi 23542 XATTR=$ac_cv_path_XATTR 23543 if test -n "$XATTR"; then 23544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23545 $as_echo "$XATTR" >&6; } 23546 else 23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23548 $as_echo "no" >&6; } 23549 fi 23550 23551 23552 test -n "$XATTR" && break 23553 done 23554 23555 else 23556 # If it succeeded, then it was overridden by the user. We will use it 23557 # for the tool. 23558 23559 # First remove it from the list of overridden variables, so we can test 23560 # for unknown variables in the end. 23561 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23562 23563 # Check if we try to supply an empty value 23564 if test "x$XATTR" = x; then 23565 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 23566 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23568 $as_echo_n "checking for XATTR... " >&6; } 23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23570 $as_echo "disabled" >&6; } 23571 else 23572 # Check if the provided tool contains a complete path. 23573 tool_specified="$XATTR" 23574 tool_basename="${tool_specified##*/}" 23575 if test "x$tool_basename" = "x$tool_specified"; then 23576 # A command without a complete path is provided, search $PATH. 23577 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 23578 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 23579 # Extract the first word of "$tool_basename", so it can be a program name with args. 23580 set dummy $tool_basename; ac_word=$2 23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23582 $as_echo_n "checking for $ac_word... " >&6; } 23583 if ${ac_cv_path_XATTR+:} false; then : 23584 $as_echo_n "(cached) " >&6 23585 else 23586 case $XATTR in 23587 [\\/]* | ?:[\\/]*) 23588 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23589 ;; 23590 *) 23591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23592 for as_dir in $PATH 23593 do 23594 IFS=$as_save_IFS 23595 test -z "$as_dir" && as_dir=. 23596 for ac_exec_ext in '' $ac_executable_extensions; do 23597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23598 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23600 break 2 23601 fi 23602 done 23603 done 23604 IFS=$as_save_IFS 23605 23606 ;; 23607 esac 23608 fi 23609 XATTR=$ac_cv_path_XATTR 23610 if test -n "$XATTR"; then 23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23612 $as_echo "$XATTR" >&6; } 23613 else 23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23615 $as_echo "no" >&6; } 23616 fi 23617 23618 23619 if test "x$XATTR" = x; then 23620 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23621 fi 23622 else 23623 # Otherwise we believe it is a complete path. Use it as it is. 23624 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 23625 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23627 $as_echo_n "checking for XATTR... " >&6; } 23628 if test ! -x "$tool_specified"; then 23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23630 $as_echo "not found" >&6; } 23631 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 23632 fi 23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23634 $as_echo "$tool_specified" >&6; } 23635 fi 23636 fi 23637 fi 23638 23639 fi 23640 23641 23642 23643 if test "x$XATTR" = x; then 23644 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 23645 fi 23646 23647 23648 23649 23650 # Publish this variable in the help. 23651 23652 23653 if [ -z "${CODESIGN+x}" ]; then 23654 # The variable is not set by user, try to locate tool using the code snippet 23655 for ac_prog in codesign 23656 do 23657 # Extract the first word of "$ac_prog", so it can be a program name with args. 23658 set dummy $ac_prog; ac_word=$2 23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23660 $as_echo_n "checking for $ac_word... " >&6; } 23661 if ${ac_cv_path_CODESIGN+:} false; then : 23662 $as_echo_n "(cached) " >&6 23663 else 23664 case $CODESIGN in 23665 [\\/]* | ?:[\\/]*) 23666 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23667 ;; 23668 *) 23669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23670 for as_dir in $PATH 23671 do 23672 IFS=$as_save_IFS 23673 test -z "$as_dir" && as_dir=. 23674 for ac_exec_ext in '' $ac_executable_extensions; do 23675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23676 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23678 break 2 23679 fi 23680 done 23681 done 23682 IFS=$as_save_IFS 23683 23684 ;; 23685 esac 23686 fi 23687 CODESIGN=$ac_cv_path_CODESIGN 23688 if test -n "$CODESIGN"; then 23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23690 $as_echo "$CODESIGN" >&6; } 23691 else 23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23693 $as_echo "no" >&6; } 23694 fi 23695 23696 23697 test -n "$CODESIGN" && break 23698 done 23699 23700 else 23701 # The variable is set, but is it from the command line or the environment? 23702 23703 # Try to remove the string !CODESIGN! from our list. 23704 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 23705 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23706 # If it failed, the variable was not from the command line. Ignore it, 23707 # but warn the user (except for BASH, which is always set by the calling BASH). 23708 if test "xCODESIGN" != xBASH; then 23709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 23710 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 23711 fi 23712 # Try to locate tool using the code snippet 23713 for ac_prog in codesign 23714 do 23715 # Extract the first word of "$ac_prog", so it can be a program name with args. 23716 set dummy $ac_prog; ac_word=$2 23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23718 $as_echo_n "checking for $ac_word... " >&6; } 23719 if ${ac_cv_path_CODESIGN+:} false; then : 23720 $as_echo_n "(cached) " >&6 23721 else 23722 case $CODESIGN in 23723 [\\/]* | ?:[\\/]*) 23724 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23725 ;; 23726 *) 23727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23728 for as_dir in $PATH 23729 do 23730 IFS=$as_save_IFS 23731 test -z "$as_dir" && as_dir=. 23732 for ac_exec_ext in '' $ac_executable_extensions; do 23733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23734 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23736 break 2 23737 fi 23738 done 23739 done 23740 IFS=$as_save_IFS 23741 23742 ;; 23743 esac 23744 fi 23745 CODESIGN=$ac_cv_path_CODESIGN 23746 if test -n "$CODESIGN"; then 23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23748 $as_echo "$CODESIGN" >&6; } 23749 else 23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23751 $as_echo "no" >&6; } 23752 fi 23753 23754 23755 test -n "$CODESIGN" && break 23756 done 23757 23758 else 23759 # If it succeeded, then it was overridden by the user. We will use it 23760 # for the tool. 23761 23762 # First remove it from the list of overridden variables, so we can test 23763 # for unknown variables in the end. 23764 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23765 23766 # Check if we try to supply an empty value 23767 if test "x$CODESIGN" = x; then 23768 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 23769 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 23771 $as_echo_n "checking for CODESIGN... " >&6; } 23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23773 $as_echo "disabled" >&6; } 23774 else 23775 # Check if the provided tool contains a complete path. 23776 tool_specified="$CODESIGN" 23777 tool_basename="${tool_specified##*/}" 23778 if test "x$tool_basename" = "x$tool_specified"; then 23779 # A command without a complete path is provided, search $PATH. 23780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 23781 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 23782 # Extract the first word of "$tool_basename", so it can be a program name with args. 23783 set dummy $tool_basename; ac_word=$2 23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23785 $as_echo_n "checking for $ac_word... " >&6; } 23786 if ${ac_cv_path_CODESIGN+:} false; then : 23787 $as_echo_n "(cached) " >&6 23788 else 23789 case $CODESIGN in 23790 [\\/]* | ?:[\\/]*) 23791 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23792 ;; 23793 *) 23794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23795 for as_dir in $PATH 23796 do 23797 IFS=$as_save_IFS 23798 test -z "$as_dir" && as_dir=. 23799 for ac_exec_ext in '' $ac_executable_extensions; do 23800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23801 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23803 break 2 23804 fi 23805 done 23806 done 23807 IFS=$as_save_IFS 23808 23809 ;; 23810 esac 23811 fi 23812 CODESIGN=$ac_cv_path_CODESIGN 23813 if test -n "$CODESIGN"; then 23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23815 $as_echo "$CODESIGN" >&6; } 23816 else 23817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23818 $as_echo "no" >&6; } 23819 fi 23820 23821 23822 if test "x$CODESIGN" = x; then 23823 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23824 fi 23825 else 23826 # Otherwise we believe it is a complete path. Use it as it is. 23827 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 23828 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 23829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 23830 $as_echo_n "checking for CODESIGN... " >&6; } 23831 if test ! -x "$tool_specified"; then 23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23833 $as_echo "not found" >&6; } 23834 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 23835 fi 23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23837 $as_echo "$tool_specified" >&6; } 23838 fi 23839 fi 23840 fi 23841 23842 fi 23843 23844 23845 if test "x$CODESIGN" != "x"; then 23846 # Verify that the openjdk_codesign certificate is present 23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 23848 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 23849 $RM codesign-testfile 23850 $TOUCH codesign-testfile 23851 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 23852 $RM codesign-testfile 23853 if test "x$CODESIGN" = x; then 23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23855 $as_echo "no" >&6; } 23856 else 23857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23858 $as_echo "yes" >&6; } 23859 fi 23860 fi 23861 23862 23863 23864 # Publish this variable in the help. 23865 23866 23867 if [ -z "${SETFILE+x}" ]; then 23868 # The variable is not set by user, try to locate tool using the code snippet 23869 for ac_prog in SetFile 23870 do 23871 # Extract the first word of "$ac_prog", so it can be a program name with args. 23872 set dummy $ac_prog; ac_word=$2 23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23874 $as_echo_n "checking for $ac_word... " >&6; } 23875 if ${ac_cv_path_SETFILE+:} false; then : 23876 $as_echo_n "(cached) " >&6 23877 else 23878 case $SETFILE in 23879 [\\/]* | ?:[\\/]*) 23880 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23881 ;; 23882 *) 23883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23884 for as_dir in $PATH 23885 do 23886 IFS=$as_save_IFS 23887 test -z "$as_dir" && as_dir=. 23888 for ac_exec_ext in '' $ac_executable_extensions; do 23889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23890 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23892 break 2 23893 fi 23894 done 23895 done 23896 IFS=$as_save_IFS 23897 23898 ;; 23899 esac 23900 fi 23901 SETFILE=$ac_cv_path_SETFILE 23902 if test -n "$SETFILE"; then 23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23904 $as_echo "$SETFILE" >&6; } 23905 else 23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23907 $as_echo "no" >&6; } 23908 fi 23909 23910 23911 test -n "$SETFILE" && break 23912 done 23913 23914 else 23915 # The variable is set, but is it from the command line or the environment? 23916 23917 # Try to remove the string !SETFILE! from our list. 23918 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 23919 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23920 # If it failed, the variable was not from the command line. Ignore it, 23921 # but warn the user (except for BASH, which is always set by the calling BASH). 23922 if test "xSETFILE" != xBASH; then 23923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 23924 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 23925 fi 23926 # Try to locate tool using the code snippet 23927 for ac_prog in SetFile 23928 do 23929 # Extract the first word of "$ac_prog", so it can be a program name with args. 23930 set dummy $ac_prog; ac_word=$2 23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23932 $as_echo_n "checking for $ac_word... " >&6; } 23933 if ${ac_cv_path_SETFILE+:} false; then : 23934 $as_echo_n "(cached) " >&6 23935 else 23936 case $SETFILE in 23937 [\\/]* | ?:[\\/]*) 23938 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23939 ;; 23940 *) 23941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23942 for as_dir in $PATH 23943 do 23944 IFS=$as_save_IFS 23945 test -z "$as_dir" && as_dir=. 23946 for ac_exec_ext in '' $ac_executable_extensions; do 23947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23948 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23950 break 2 23951 fi 23952 done 23953 done 23954 IFS=$as_save_IFS 23955 23956 ;; 23957 esac 23958 fi 23959 SETFILE=$ac_cv_path_SETFILE 23960 if test -n "$SETFILE"; then 23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23962 $as_echo "$SETFILE" >&6; } 23963 else 23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23965 $as_echo "no" >&6; } 23966 fi 23967 23968 23969 test -n "$SETFILE" && break 23970 done 23971 23972 else 23973 # If it succeeded, then it was overridden by the user. We will use it 23974 # for the tool. 23975 23976 # First remove it from the list of overridden variables, so we can test 23977 # for unknown variables in the end. 23978 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23979 23980 # Check if we try to supply an empty value 23981 if test "x$SETFILE" = x; then 23982 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 23983 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 23984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 23985 $as_echo_n "checking for SETFILE... " >&6; } 23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23987 $as_echo "disabled" >&6; } 23988 else 23989 # Check if the provided tool contains a complete path. 23990 tool_specified="$SETFILE" 23991 tool_basename="${tool_specified##*/}" 23992 if test "x$tool_basename" = "x$tool_specified"; then 23993 # A command without a complete path is provided, search $PATH. 23994 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 23995 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 23996 # Extract the first word of "$tool_basename", so it can be a program name with args. 23997 set dummy $tool_basename; ac_word=$2 23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23999 $as_echo_n "checking for $ac_word... " >&6; } 24000 if ${ac_cv_path_SETFILE+:} false; then : 24001 $as_echo_n "(cached) " >&6 24002 else 24003 case $SETFILE in 24004 [\\/]* | ?:[\\/]*) 24005 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24006 ;; 24007 *) 24008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24009 for as_dir in $PATH 24010 do 24011 IFS=$as_save_IFS 24012 test -z "$as_dir" && as_dir=. 24013 for ac_exec_ext in '' $ac_executable_extensions; do 24014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24015 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24017 break 2 24018 fi 24019 done 24020 done 24021 IFS=$as_save_IFS 24022 24023 ;; 24024 esac 24025 fi 24026 SETFILE=$ac_cv_path_SETFILE 24027 if test -n "$SETFILE"; then 24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24029 $as_echo "$SETFILE" >&6; } 24030 else 24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24032 $as_echo "no" >&6; } 24033 fi 24034 24035 24036 if test "x$SETFILE" = x; then 24037 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24038 fi 24039 else 24040 # Otherwise we believe it is a complete path. Use it as it is. 24041 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24042 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24044 $as_echo_n "checking for SETFILE... " >&6; } 24045 if test ! -x "$tool_specified"; then 24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24047 $as_echo "not found" >&6; } 24048 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24049 fi 24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24051 $as_echo "$tool_specified" >&6; } 24052 fi 24053 fi 24054 fi 24055 24056 fi 24057 24058 24059 24060 if test "x$SETFILE" = x; then 24061 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24062 fi 24063 24064 24065 fi 24066 24067 24068 # Test if bash supports pipefail. 24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24070 $as_echo_n "checking if bash supports pipefail... " >&6; } 24071 if ${BASH} -c 'set -o pipefail'; then 24072 BASH_ARGS="$BASH_ARGS -o pipefail" 24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24074 $as_echo "yes" >&6; } 24075 else 24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24077 $as_echo "no" >&6; } 24078 fi 24079 24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24081 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24082 if ${BASH} -e -c 'true'; then 24083 BASH_ARGS="$BASH_ARGS -e" 24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24085 $as_echo "yes" >&6; } 24086 else 24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24088 $as_echo "no" >&6; } 24089 fi 24090 24091 24092 24093 24094 # Check if pkg-config is available. 24095 24096 24097 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24098 if test -n "$ac_tool_prefix"; then 24099 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24100 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24102 $as_echo_n "checking for $ac_word... " >&6; } 24103 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24104 $as_echo_n "(cached) " >&6 24105 else 24106 case $PKG_CONFIG in 24107 [\\/]* | ?:[\\/]*) 24108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24109 ;; 24110 *) 24111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24112 for as_dir in $PATH 24113 do 24114 IFS=$as_save_IFS 24115 test -z "$as_dir" && as_dir=. 24116 for ac_exec_ext in '' $ac_executable_extensions; do 24117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24118 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24120 break 2 24121 fi 24122 done 24123 done 24124 IFS=$as_save_IFS 24125 24126 ;; 24127 esac 24128 fi 24129 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24130 if test -n "$PKG_CONFIG"; then 24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24132 $as_echo "$PKG_CONFIG" >&6; } 24133 else 24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24135 $as_echo "no" >&6; } 24136 fi 24137 24138 24139 fi 24140 if test -z "$ac_cv_path_PKG_CONFIG"; then 24141 ac_pt_PKG_CONFIG=$PKG_CONFIG 24142 # Extract the first word of "pkg-config", so it can be a program name with args. 24143 set dummy pkg-config; ac_word=$2 24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24145 $as_echo_n "checking for $ac_word... " >&6; } 24146 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24147 $as_echo_n "(cached) " >&6 24148 else 24149 case $ac_pt_PKG_CONFIG in 24150 [\\/]* | ?:[\\/]*) 24151 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24152 ;; 24153 *) 24154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24155 for as_dir in $PATH 24156 do 24157 IFS=$as_save_IFS 24158 test -z "$as_dir" && as_dir=. 24159 for ac_exec_ext in '' $ac_executable_extensions; do 24160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24161 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24163 break 2 24164 fi 24165 done 24166 done 24167 IFS=$as_save_IFS 24168 24169 ;; 24170 esac 24171 fi 24172 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24173 if test -n "$ac_pt_PKG_CONFIG"; then 24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24175 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24176 else 24177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24178 $as_echo "no" >&6; } 24179 fi 24180 24181 if test "x$ac_pt_PKG_CONFIG" = x; then 24182 PKG_CONFIG="" 24183 else 24184 case $cross_compiling:$ac_tool_warned in 24185 yes:) 24186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24188 ac_tool_warned=yes ;; 24189 esac 24190 PKG_CONFIG=$ac_pt_PKG_CONFIG 24191 fi 24192 else 24193 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24194 fi 24195 24196 fi 24197 if test -n "$PKG_CONFIG"; then 24198 _pkg_min_version=0.9.0 24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24200 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24201 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24203 $as_echo "yes" >&6; } 24204 else 24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24206 $as_echo "no" >&6; } 24207 PKG_CONFIG="" 24208 fi 24209 24210 fi 24211 24212 # After basic tools have been setup, we can check build os specific details. 24213 24214 ############################################################################### 24215 24216 # Note that this is the build platform OS version! 24217 24218 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24219 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24220 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24221 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24222 24223 24224 24225 24226 24227 # Misc basic settings 24228 24229 24230 # Check whether --with-default-make-target was given. 24231 if test "${with_default_make_target+set}" = set; then : 24232 withval=$with_default_make_target; 24233 fi 24234 24235 if test "x$with_default_make_target" = "x" \ 24236 || test "x$with_default_make_target" = "xyes"; then 24237 DEFAULT_MAKE_TARGET="exploded-image" 24238 elif test "x$with_default_make_target" = "xno"; then 24239 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24240 else 24241 DEFAULT_MAKE_TARGET="$with_default_make_target" 24242 fi 24243 24244 24245 24246 24247 ############################################################################### 24248 # 24249 # Determine OpenJDK variants, options and version numbers. 24250 # 24251 ############################################################################### 24252 24253 # We need build & target for this. 24254 24255 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 24256 # We always build headless support. 24257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 24258 $as_echo_n "checking headful support... " >&6; } 24259 # Check whether --enable-headful was given. 24260 if test "${enable_headful+set}" = set; then : 24261 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 24262 else 24263 SUPPORT_HEADFUL=yes 24264 fi 24265 24266 24267 SUPPORT_HEADLESS=yes 24268 BUILD_HEADLESS="BUILD_HEADLESS:=true" 24269 24270 if test "x$SUPPORT_HEADFUL" = xyes; then 24271 # We are building both headful and headless. 24272 headful_msg="include support for both headful and headless" 24273 fi 24274 24275 if test "x$SUPPORT_HEADFUL" = xno; then 24276 # Thus we are building headless only. 24277 BUILD_HEADLESS="BUILD_HEADLESS:=true" 24278 headful_msg="headless only" 24279 fi 24280 24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 24282 $as_echo "$headful_msg" >&6; } 24283 24284 24285 24286 24287 24288 # Choose cacerts source file 24289 24290 # Check whether --with-cacerts-file was given. 24291 if test "${with_cacerts_file+set}" = set; then : 24292 withval=$with_cacerts_file; 24293 fi 24294 24295 if test "x$with_cacerts_file" != x; then 24296 CACERTS_FILE=$with_cacerts_file 24297 fi 24298 24299 24300 # Enable or disable unlimited crypto 24301 # Check whether --enable-unlimited-crypto was given. 24302 if test "${enable_unlimited_crypto+set}" = set; then : 24303 enableval=$enable_unlimited_crypto; 24304 else 24305 enable_unlimited_crypto=no 24306 fi 24307 24308 if test "x$enable_unlimited_crypto" = "xyes"; then 24309 UNLIMITED_CRYPTO=true 24310 else 24311 UNLIMITED_CRYPTO=false 24312 fi 24313 24314 24315 # Should we build the serviceability agent (SA)? 24316 INCLUDE_SA=true 24317 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 24318 INCLUDE_SA=false 24319 fi 24320 if test "x$OPENJDK_TARGET_OS" = xaix ; then 24321 INCLUDE_SA=false 24322 fi 24323 if test "x$OPENJDK_TARGET_OS" = xios; then 24324 INCLUDE_SA=false 24325 fi 24326 if test "x$OPENJDK_TARGET_OS" = xandroid; then 24327 INCLUDE_SA=false 24328 fi 24329 24330 24331 # Compress jars 24332 COMPRESS_JARS=false 24333 24334 24335 24336 # Setup default copyright year. Mostly overridden when building close to a new year. 24337 24338 # Check whether --with-copyright-year was given. 24339 if test "${with_copyright_year+set}" = set; then : 24340 withval=$with_copyright_year; 24341 fi 24342 24343 if test "x$with_copyright_year" = xyes; then 24344 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 24345 elif test "x$with_copyright_year" != x; then 24346 COPYRIGHT_YEAR="$with_copyright_year" 24347 else 24348 COPYRIGHT_YEAR=`$DATE +'%Y'` 24349 fi 24350 24351 24352 24353 # Check whether --enable-keep-packaged-modules was given. 24354 if test "${enable_keep_packaged_modules+set}" = set; then : 24355 enableval=$enable_keep_packaged_modules; 24356 fi 24357 24358 24359 if test "x$enable_keep_packaged_modules" = "xyes"; then 24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24361 $as_echo_n "checking if packaged modules are kept... " >&6; } 24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24363 $as_echo "yes" >&6; } 24364 JLINK_KEEP_PACKAGED_MODULES=true 24365 elif test "x$enable_keep_packaged_modules" = "xno"; then 24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24367 $as_echo_n "checking if packaged modules are kept... " >&6; } 24368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24369 $as_echo "no" >&6; } 24370 JLINK_KEEP_PACKAGED_MODULES=false 24371 elif test "x$enable_keep_packaged_modules" = "x"; then 24372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 24373 $as_echo "yes (default)" >&6; } 24374 JLINK_KEEP_PACKAGED_MODULES=true 24375 else 24376 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 24377 fi 24378 24379 24380 24381 24382 # Warn user that old version arguments are deprecated. 24383 24384 24385 # Check whether --with-milestone was given. 24386 if test "${with_milestone+set}" = set; then : 24387 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 24388 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 24389 fi 24390 24391 24392 24393 24394 # Check whether --with-update-version was given. 24395 if test "${with_update_version+set}" = set; then : 24396 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 24397 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 24398 fi 24399 24400 24401 24402 24403 # Check whether --with-user-release-suffix was given. 24404 if test "${with_user_release_suffix+set}" = set; then : 24405 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 24406 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 24407 fi 24408 24409 24410 24411 24412 # Check whether --with-build-number was given. 24413 if test "${with_build_number+set}" = set; then : 24414 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 24415 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 24416 fi 24417 24418 24419 24420 # Source the version numbers file 24421 . $AUTOCONF_DIR/version-numbers 24422 24423 # Some non-version number information is set in that file 24424 24425 24426 24427 24428 24429 24430 24431 24432 24433 # Override version from arguments 24434 24435 # If --with-version-string is set, process it first. It is possible to 24436 # override parts with more specific flags, since these are processed later. 24437 24438 # Check whether --with-version-string was given. 24439 if test "${with_version_string+set}" = set; then : 24440 withval=$with_version_string; 24441 fi 24442 24443 if test "x$with_version_string" = xyes; then 24444 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 24445 elif test "x$with_version_string" != x; then 24446 # Additional [] needed to keep m4 from mangling shell constructs. 24447 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 24448 VERSION_MAJOR=${BASH_REMATCH[1]} 24449 VERSION_MINOR=${BASH_REMATCH[3]} 24450 VERSION_SECURITY=${BASH_REMATCH[5]} 24451 VERSION_PATCH=${BASH_REMATCH[7]} 24452 VERSION_PRE=${BASH_REMATCH[9]} 24453 version_plus_separator=${BASH_REMATCH[11]} 24454 VERSION_BUILD=${BASH_REMATCH[12]} 24455 VERSION_OPT=${BASH_REMATCH[14]} 24456 # Unspecified numerical fields are interpreted as 0. 24457 if test "x$VERSION_MINOR" = x; then 24458 VERSION_MINOR=0 24459 fi 24460 if test "x$VERSION_SECURITY" = x; then 24461 VERSION_SECURITY=0 24462 fi 24463 if test "x$VERSION_PATCH" = x; then 24464 VERSION_PATCH=0 24465 fi 24466 if test "x$version_plus_separator" != x \ 24467 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 24468 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 24469 fi 24470 # Stop the version part process from setting default values. 24471 # We still allow them to explicitely override though. 24472 NO_DEFAULT_VERSION_PARTS=true 24473 else 24474 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 24475 fi 24476 fi 24477 24478 24479 # Check whether --with-version-pre was given. 24480 if test "${with_version_pre+set}" = set; then : 24481 withval=$with_version_pre; with_version_pre_present=true 24482 else 24483 with_version_pre_present=false 24484 fi 24485 24486 24487 if test "x$with_version_pre_present" = xtrue; then 24488 if test "x$with_version_pre" = xyes; then 24489 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 24490 elif test "x$with_version_pre" = xno; then 24491 # Interpret --without-* as empty string instead of the literal "no" 24492 VERSION_PRE= 24493 else 24494 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 24495 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 24496 if test "x$VERSION_PRE" != "x$with_version_pre"; then 24497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 24498 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 24499 fi 24500 fi 24501 else 24502 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24503 # Default is to use "internal" as pre 24504 VERSION_PRE="internal" 24505 fi 24506 fi 24507 24508 24509 # Check whether --with-version-opt was given. 24510 if test "${with_version_opt+set}" = set; then : 24511 withval=$with_version_opt; with_version_opt_present=true 24512 else 24513 with_version_opt_present=false 24514 fi 24515 24516 24517 if test "x$with_version_opt_present" = xtrue; then 24518 if test "x$with_version_opt" = xyes; then 24519 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 24520 elif test "x$with_version_opt" = xno; then 24521 # Interpret --without-* as empty string instead of the literal "no" 24522 VERSION_OPT= 24523 else 24524 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 24525 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 24526 if test "x$VERSION_OPT" != "x$with_version_opt"; then 24527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 24528 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 24529 fi 24530 fi 24531 else 24532 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24533 # Default is to calculate a string like this <timestamp>.<username>.<base dir name> 24534 timestamp=`$DATE '+%Y-%m-%d-%H%M%S'` 24535 # Outer [ ] to quote m4. 24536 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 24537 VERSION_OPT="$timestamp.$USERNAME.$basedirname" 24538 fi 24539 fi 24540 24541 24542 # Check whether --with-version-build was given. 24543 if test "${with_version_build+set}" = set; then : 24544 withval=$with_version_build; with_version_build_present=true 24545 else 24546 with_version_build_present=false 24547 fi 24548 24549 24550 if test "x$with_version_build_present" = xtrue; then 24551 if test "x$with_version_build" = xyes; then 24552 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 24553 elif test "x$with_version_build" = xno; then 24554 # Interpret --without-* as empty string instead of the literal "no" 24555 VERSION_BUILD= 24556 elif test "x$with_version_build" = x; then 24557 VERSION_BUILD= 24558 else 24559 24560 # Additional [] needed to keep m4 from mangling shell constructs. 24561 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24562 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 24563 fi 24564 # Extract the version number without leading zeros. 24565 cleaned_value=${BASH_REMATCH[1]} 24566 if test "x$cleaned_value" = x; then 24567 # Special case for zero 24568 cleaned_value=${BASH_REMATCH[2]} 24569 fi 24570 24571 if test $cleaned_value -gt 255; then 24572 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 24573 fi 24574 if test "x$cleaned_value" != "x$with_version_build"; then 24575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 24576 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 24577 fi 24578 VERSION_BUILD=$cleaned_value 24579 24580 fi 24581 else 24582 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24583 # Default is to not have a build number. 24584 VERSION_BUILD="" 24585 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 24586 VERSION_BUILD=0 24587 fi 24588 fi 24589 24590 24591 # Check whether --with-version-major was given. 24592 if test "${with_version_major+set}" = set; then : 24593 withval=$with_version_major; with_version_major_present=true 24594 else 24595 with_version_major_present=false 24596 fi 24597 24598 24599 if test "x$with_version_major_present" = xtrue; then 24600 if test "x$with_version_major" = xyes; then 24601 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 24602 else 24603 24604 # Additional [] needed to keep m4 from mangling shell constructs. 24605 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24606 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 24607 fi 24608 # Extract the version number without leading zeros. 24609 cleaned_value=${BASH_REMATCH[1]} 24610 if test "x$cleaned_value" = x; then 24611 # Special case for zero 24612 cleaned_value=${BASH_REMATCH[2]} 24613 fi 24614 24615 if test $cleaned_value -gt 255; then 24616 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 24617 fi 24618 if test "x$cleaned_value" != "x$with_version_major"; then 24619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 24620 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 24621 fi 24622 VERSION_MAJOR=$cleaned_value 24623 24624 fi 24625 else 24626 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24627 # Default is to get value from version-numbers 24628 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 24629 fi 24630 fi 24631 24632 24633 # Check whether --with-version-minor was given. 24634 if test "${with_version_minor+set}" = set; then : 24635 withval=$with_version_minor; with_version_minor_present=true 24636 else 24637 with_version_minor_present=false 24638 fi 24639 24640 24641 if test "x$with_version_minor_present" = xtrue; then 24642 if test "x$with_version_minor" = xyes; then 24643 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 24644 elif test "x$with_version_minor" = xno; then 24645 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24646 VERSION_MINOR=0 24647 elif test "x$with_version_minor" = x; then 24648 VERSION_MINOR=0 24649 else 24650 24651 # Additional [] needed to keep m4 from mangling shell constructs. 24652 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24653 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 24654 fi 24655 # Extract the version number without leading zeros. 24656 cleaned_value=${BASH_REMATCH[1]} 24657 if test "x$cleaned_value" = x; then 24658 # Special case for zero 24659 cleaned_value=${BASH_REMATCH[2]} 24660 fi 24661 24662 if test $cleaned_value -gt 255; then 24663 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 24664 fi 24665 if test "x$cleaned_value" != "x$with_version_minor"; then 24666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 24667 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 24668 fi 24669 VERSION_MINOR=$cleaned_value 24670 24671 fi 24672 else 24673 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24674 # Default is 0, if unspecified 24675 VERSION_MINOR=0 24676 fi 24677 fi 24678 24679 24680 # Check whether --with-version-security was given. 24681 if test "${with_version_security+set}" = set; then : 24682 withval=$with_version_security; with_version_security_present=true 24683 else 24684 with_version_security_present=false 24685 fi 24686 24687 24688 if test "x$with_version_security_present" = xtrue; then 24689 if test "x$with_version_security" = xyes; then 24690 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 24691 elif test "x$with_version_security" = xno; then 24692 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24693 VERSION_SECURITY=0 24694 elif test "x$with_version_security" = x; then 24695 VERSION_SECURITY=0 24696 else 24697 24698 # Additional [] needed to keep m4 from mangling shell constructs. 24699 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24700 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 24701 fi 24702 # Extract the version number without leading zeros. 24703 cleaned_value=${BASH_REMATCH[1]} 24704 if test "x$cleaned_value" = x; then 24705 # Special case for zero 24706 cleaned_value=${BASH_REMATCH[2]} 24707 fi 24708 24709 if test $cleaned_value -gt 255; then 24710 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 24711 fi 24712 if test "x$cleaned_value" != "x$with_version_security"; then 24713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 24714 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 24715 fi 24716 VERSION_SECURITY=$cleaned_value 24717 24718 fi 24719 else 24720 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24721 # Default is 0, if unspecified 24722 VERSION_SECURITY=0 24723 fi 24724 fi 24725 24726 24727 # Check whether --with-version-patch was given. 24728 if test "${with_version_patch+set}" = set; then : 24729 withval=$with_version_patch; with_version_patch_present=true 24730 else 24731 with_version_patch_present=false 24732 fi 24733 24734 24735 if test "x$with_version_patch_present" = xtrue; then 24736 if test "x$with_version_patch" = xyes; then 24737 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 24738 elif test "x$with_version_patch" = xno; then 24739 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24740 VERSION_PATCH=0 24741 elif test "x$with_version_patch" = x; then 24742 VERSION_PATCH=0 24743 else 24744 24745 # Additional [] needed to keep m4 from mangling shell constructs. 24746 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24747 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 24748 fi 24749 # Extract the version number without leading zeros. 24750 cleaned_value=${BASH_REMATCH[1]} 24751 if test "x$cleaned_value" = x; then 24752 # Special case for zero 24753 cleaned_value=${BASH_REMATCH[2]} 24754 fi 24755 24756 if test $cleaned_value -gt 255; then 24757 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 24758 fi 24759 if test "x$cleaned_value" != "x$with_version_patch"; then 24760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 24761 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 24762 fi 24763 VERSION_PATCH=$cleaned_value 24764 24765 fi 24766 else 24767 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24768 # Default is 0, if unspecified 24769 VERSION_PATCH=0 24770 fi 24771 fi 24772 24773 # Calculate derived version properties 24774 24775 # Set VERSION_IS_GA based on if VERSION_PRE has a value 24776 if test "x$VERSION_PRE" = x; then 24777 VERSION_IS_GA=true 24778 else 24779 VERSION_IS_GA=false 24780 fi 24781 24782 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 24783 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 24784 24785 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 24786 # Strip trailing zeroes from stripped_version_number 24787 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 24788 VERSION_NUMBER=$stripped_version_number 24789 24790 # The complete version string, with additional build information 24791 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 24792 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 24793 else 24794 # If either build or opt is set, we need a + separator 24795 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 24796 fi 24797 24798 # The short version string, just VERSION_NUMBER and PRE, if present. 24799 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 24800 24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 24802 $as_echo_n "checking for version string... " >&6; } 24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 24804 $as_echo "$VERSION_STRING" >&6; } 24805 24806 24807 24808 24809 24810 24811 24812 24813 24814 24815 24816 24817 24818 24819 24820 ############################################################################### 24821 # 24822 # Setup BootJDK, used to bootstrap the build. 24823 # 24824 ############################################################################### 24825 24826 24827 BOOT_JDK_FOUND=no 24828 24829 # Check whether --with-boot-jdk was given. 24830 if test "${with_boot_jdk+set}" = set; then : 24831 withval=$with_boot_jdk; 24832 fi 24833 24834 24835 # We look for the Boot JDK through various means, going from more certain to 24836 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 24837 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 24838 # must check if this is indeed valid; otherwise we'll continue looking. 24839 24840 # Test: Is bootjdk explicitely set by command line arguments? 24841 24842 if test "x$BOOT_JDK_FOUND" = xno; then 24843 # Now execute the test 24844 24845 if test "x$with_boot_jdk" != x; then 24846 BOOT_JDK=$with_boot_jdk 24847 BOOT_JDK_FOUND=maybe 24848 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 24849 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 24850 fi 24851 24852 24853 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24854 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24855 # Do we have a bin/java? 24856 if test ! -x "$BOOT_JDK/bin/java"; then 24857 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24858 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24859 BOOT_JDK_FOUND=no 24860 else 24861 # Do we have a bin/javac? 24862 if test ! -x "$BOOT_JDK/bin/javac"; then 24863 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24864 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24865 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24866 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24867 BOOT_JDK_FOUND=no 24868 else 24869 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24870 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 24871 24872 # Extra M4 quote needed to protect [] in grep expression. 24873 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24874 if test "x$FOUND_CORRECT_VERSION" = x; then 24875 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24876 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24877 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24878 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24879 BOOT_JDK_FOUND=no 24880 else 24881 # We're done! :-) 24882 BOOT_JDK_FOUND=yes 24883 24884 # Only process if variable expands to non-empty 24885 24886 if test "x$BOOT_JDK" != x; then 24887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24888 24889 # Input might be given as Windows format, start by converting to 24890 # unix format. 24891 path="$BOOT_JDK" 24892 new_path=`$CYGPATH -u "$path"` 24893 24894 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24895 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24896 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24897 # "foo.exe" is OK but "foo" is an error. 24898 # 24899 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24900 # It is also a way to make sure we got the proper file name for the real test later on. 24901 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24902 if test "x$test_shortpath" = x; then 24903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24904 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24905 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24906 fi 24907 24908 # Call helper function which possibly converts this using DOS-style short mode. 24909 # If so, the updated path is stored in $new_path. 24910 24911 input_path="$new_path" 24912 # Check if we need to convert this using DOS-style short mode. If the path 24913 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24914 # take no chances and rewrite it. 24915 # Note: m4 eats our [], so we need to use [ and ] instead. 24916 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24917 if test "x$has_forbidden_chars" != x; then 24918 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24919 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24920 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24921 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24922 # Going to short mode and back again did indeed matter. Since short mode is 24923 # case insensitive, let's make it lowercase to improve readability. 24924 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24925 # Now convert it back to Unix-style (cygpath) 24926 input_path=`$CYGPATH -u "$shortmode_path"` 24927 new_path="$input_path" 24928 fi 24929 fi 24930 24931 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24932 if test "x$test_cygdrive_prefix" = x; then 24933 # As a simple fix, exclude /usr/bin since it's not a real path. 24934 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24935 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24936 # a path prefixed by /cygdrive for fixpath to work. 24937 new_path="$CYGWIN_ROOT_PATH$input_path" 24938 fi 24939 fi 24940 24941 24942 if test "x$path" != "x$new_path"; then 24943 BOOT_JDK="$new_path" 24944 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24945 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24946 fi 24947 24948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24949 24950 path="$BOOT_JDK" 24951 has_colon=`$ECHO $path | $GREP ^.:` 24952 new_path="$path" 24953 if test "x$has_colon" = x; then 24954 # Not in mixed or Windows style, start by that. 24955 new_path=`cmd //c echo $path` 24956 fi 24957 24958 24959 input_path="$new_path" 24960 # Check if we need to convert this using DOS-style short mode. If the path 24961 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24962 # take no chances and rewrite it. 24963 # Note: m4 eats our [], so we need to use [ and ] instead. 24964 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24965 if test "x$has_forbidden_chars" != x; then 24966 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24967 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24968 fi 24969 24970 24971 windows_path="$new_path" 24972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24973 unix_path=`$CYGPATH -u "$windows_path"` 24974 new_path="$unix_path" 24975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24976 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24977 new_path="$unix_path" 24978 fi 24979 24980 if test "x$path" != "x$new_path"; then 24981 BOOT_JDK="$new_path" 24982 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24983 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24984 fi 24985 24986 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24987 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24988 24989 else 24990 # We're on a unix platform. Hooray! :) 24991 path="$BOOT_JDK" 24992 has_space=`$ECHO "$path" | $GREP " "` 24993 if test "x$has_space" != x; then 24994 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24995 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24996 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24997 fi 24998 24999 # Use eval to expand a potential ~ 25000 eval path="$path" 25001 if test ! -f "$path" && test ! -d "$path"; then 25002 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25003 fi 25004 25005 if test -d "$path"; then 25006 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25007 else 25008 dir="`$DIRNAME "$path"`" 25009 base="`$BASENAME "$path"`" 25010 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25011 fi 25012 fi 25013 fi 25014 25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25016 $as_echo_n "checking for Boot JDK... " >&6; } 25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25018 $as_echo "$BOOT_JDK" >&6; } 25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25020 $as_echo_n "checking Boot JDK version... " >&6; } 25021 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25023 $as_echo "$BOOT_JDK_VERSION" >&6; } 25024 fi # end check jdk version 25025 fi # end check javac 25026 fi # end check java 25027 fi # end check boot jdk found 25028 fi 25029 25030 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25031 # Having specified an argument which is incorrect will produce an instant failure; 25032 # we should not go on looking 25033 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25034 fi 25035 25036 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25037 25038 if test "x$BOOT_JDK_FOUND" = xno; then 25039 # Now execute the test 25040 25041 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 25042 # First check at user selected default 25043 25044 if test "x$BOOT_JDK_FOUND" = xno; then 25045 # Now execute the test 25046 25047 if test -x /usr/libexec/java_home; then 25048 BOOT_JDK=`/usr/libexec/java_home ` 25049 BOOT_JDK_FOUND=maybe 25050 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25051 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25052 fi 25053 25054 25055 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25056 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25057 # Do we have a bin/java? 25058 if test ! -x "$BOOT_JDK/bin/java"; then 25059 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25060 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25061 BOOT_JDK_FOUND=no 25062 else 25063 # Do we have a bin/javac? 25064 if test ! -x "$BOOT_JDK/bin/javac"; then 25065 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25066 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25067 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25068 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25069 BOOT_JDK_FOUND=no 25070 else 25071 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25072 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25073 25074 # Extra M4 quote needed to protect [] in grep expression. 25075 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25076 if test "x$FOUND_CORRECT_VERSION" = x; then 25077 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25078 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25079 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25080 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25081 BOOT_JDK_FOUND=no 25082 else 25083 # We're done! :-) 25084 BOOT_JDK_FOUND=yes 25085 25086 # Only process if variable expands to non-empty 25087 25088 if test "x$BOOT_JDK" != x; then 25089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25090 25091 # Input might be given as Windows format, start by converting to 25092 # unix format. 25093 path="$BOOT_JDK" 25094 new_path=`$CYGPATH -u "$path"` 25095 25096 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25097 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25098 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25099 # "foo.exe" is OK but "foo" is an error. 25100 # 25101 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25102 # It is also a way to make sure we got the proper file name for the real test later on. 25103 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25104 if test "x$test_shortpath" = x; then 25105 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25106 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25107 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25108 fi 25109 25110 # Call helper function which possibly converts this using DOS-style short mode. 25111 # If so, the updated path is stored in $new_path. 25112 25113 input_path="$new_path" 25114 # Check if we need to convert this using DOS-style short mode. If the path 25115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25116 # take no chances and rewrite it. 25117 # Note: m4 eats our [], so we need to use [ and ] instead. 25118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25119 if test "x$has_forbidden_chars" != x; then 25120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25121 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25122 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25123 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25124 # Going to short mode and back again did indeed matter. Since short mode is 25125 # case insensitive, let's make it lowercase to improve readability. 25126 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25127 # Now convert it back to Unix-style (cygpath) 25128 input_path=`$CYGPATH -u "$shortmode_path"` 25129 new_path="$input_path" 25130 fi 25131 fi 25132 25133 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25134 if test "x$test_cygdrive_prefix" = x; then 25135 # As a simple fix, exclude /usr/bin since it's not a real path. 25136 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25137 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25138 # a path prefixed by /cygdrive for fixpath to work. 25139 new_path="$CYGWIN_ROOT_PATH$input_path" 25140 fi 25141 fi 25142 25143 25144 if test "x$path" != "x$new_path"; then 25145 BOOT_JDK="$new_path" 25146 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25147 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25148 fi 25149 25150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25151 25152 path="$BOOT_JDK" 25153 has_colon=`$ECHO $path | $GREP ^.:` 25154 new_path="$path" 25155 if test "x$has_colon" = x; then 25156 # Not in mixed or Windows style, start by that. 25157 new_path=`cmd //c echo $path` 25158 fi 25159 25160 25161 input_path="$new_path" 25162 # Check if we need to convert this using DOS-style short mode. If the path 25163 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25164 # take no chances and rewrite it. 25165 # Note: m4 eats our [], so we need to use [ and ] instead. 25166 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25167 if test "x$has_forbidden_chars" != x; then 25168 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25169 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25170 fi 25171 25172 25173 windows_path="$new_path" 25174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25175 unix_path=`$CYGPATH -u "$windows_path"` 25176 new_path="$unix_path" 25177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25178 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25179 new_path="$unix_path" 25180 fi 25181 25182 if test "x$path" != "x$new_path"; then 25183 BOOT_JDK="$new_path" 25184 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25185 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25186 fi 25187 25188 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25189 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25190 25191 else 25192 # We're on a unix platform. Hooray! :) 25193 path="$BOOT_JDK" 25194 has_space=`$ECHO "$path" | $GREP " "` 25195 if test "x$has_space" != x; then 25196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25197 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25198 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25199 fi 25200 25201 # Use eval to expand a potential ~ 25202 eval path="$path" 25203 if test ! -f "$path" && test ! -d "$path"; then 25204 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25205 fi 25206 25207 if test -d "$path"; then 25208 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25209 else 25210 dir="`$DIRNAME "$path"`" 25211 base="`$BASENAME "$path"`" 25212 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25213 fi 25214 fi 25215 fi 25216 25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25218 $as_echo_n "checking for Boot JDK... " >&6; } 25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25220 $as_echo "$BOOT_JDK" >&6; } 25221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25222 $as_echo_n "checking Boot JDK version... " >&6; } 25223 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25225 $as_echo "$BOOT_JDK_VERSION" >&6; } 25226 fi # end check jdk version 25227 fi # end check javac 25228 fi # end check java 25229 fi # end check boot jdk found 25230 fi 25231 25232 # If that did not work out (e.g. too old), try explicit versions instead 25233 25234 if test "x$BOOT_JDK_FOUND" = xno; then 25235 # Now execute the test 25236 25237 if test -x /usr/libexec/java_home; then 25238 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 25239 BOOT_JDK_FOUND=maybe 25240 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 25241 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 25242 fi 25243 25244 25245 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25246 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25247 # Do we have a bin/java? 25248 if test ! -x "$BOOT_JDK/bin/java"; then 25249 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25250 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25251 BOOT_JDK_FOUND=no 25252 else 25253 # Do we have a bin/javac? 25254 if test ! -x "$BOOT_JDK/bin/javac"; then 25255 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25257 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25258 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25259 BOOT_JDK_FOUND=no 25260 else 25261 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25262 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25263 25264 # Extra M4 quote needed to protect [] in grep expression. 25265 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25266 if test "x$FOUND_CORRECT_VERSION" = x; then 25267 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25268 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25269 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25270 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25271 BOOT_JDK_FOUND=no 25272 else 25273 # We're done! :-) 25274 BOOT_JDK_FOUND=yes 25275 25276 # Only process if variable expands to non-empty 25277 25278 if test "x$BOOT_JDK" != x; then 25279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25280 25281 # Input might be given as Windows format, start by converting to 25282 # unix format. 25283 path="$BOOT_JDK" 25284 new_path=`$CYGPATH -u "$path"` 25285 25286 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25287 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25288 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25289 # "foo.exe" is OK but "foo" is an error. 25290 # 25291 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25292 # It is also a way to make sure we got the proper file name for the real test later on. 25293 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25294 if test "x$test_shortpath" = x; then 25295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25296 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25297 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25298 fi 25299 25300 # Call helper function which possibly converts this using DOS-style short mode. 25301 # If so, the updated path is stored in $new_path. 25302 25303 input_path="$new_path" 25304 # Check if we need to convert this using DOS-style short mode. If the path 25305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25306 # take no chances and rewrite it. 25307 # Note: m4 eats our [], so we need to use [ and ] instead. 25308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25309 if test "x$has_forbidden_chars" != x; then 25310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25311 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25312 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25313 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25314 # Going to short mode and back again did indeed matter. Since short mode is 25315 # case insensitive, let's make it lowercase to improve readability. 25316 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25317 # Now convert it back to Unix-style (cygpath) 25318 input_path=`$CYGPATH -u "$shortmode_path"` 25319 new_path="$input_path" 25320 fi 25321 fi 25322 25323 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25324 if test "x$test_cygdrive_prefix" = x; then 25325 # As a simple fix, exclude /usr/bin since it's not a real path. 25326 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25327 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25328 # a path prefixed by /cygdrive for fixpath to work. 25329 new_path="$CYGWIN_ROOT_PATH$input_path" 25330 fi 25331 fi 25332 25333 25334 if test "x$path" != "x$new_path"; then 25335 BOOT_JDK="$new_path" 25336 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25337 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25338 fi 25339 25340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25341 25342 path="$BOOT_JDK" 25343 has_colon=`$ECHO $path | $GREP ^.:` 25344 new_path="$path" 25345 if test "x$has_colon" = x; then 25346 # Not in mixed or Windows style, start by that. 25347 new_path=`cmd //c echo $path` 25348 fi 25349 25350 25351 input_path="$new_path" 25352 # Check if we need to convert this using DOS-style short mode. If the path 25353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25354 # take no chances and rewrite it. 25355 # Note: m4 eats our [], so we need to use [ and ] instead. 25356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25357 if test "x$has_forbidden_chars" != x; then 25358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25359 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25360 fi 25361 25362 25363 windows_path="$new_path" 25364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25365 unix_path=`$CYGPATH -u "$windows_path"` 25366 new_path="$unix_path" 25367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25368 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25369 new_path="$unix_path" 25370 fi 25371 25372 if test "x$path" != "x$new_path"; then 25373 BOOT_JDK="$new_path" 25374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25375 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25376 fi 25377 25378 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25379 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25380 25381 else 25382 # We're on a unix platform. Hooray! :) 25383 path="$BOOT_JDK" 25384 has_space=`$ECHO "$path" | $GREP " "` 25385 if test "x$has_space" != x; then 25386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25387 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25388 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25389 fi 25390 25391 # Use eval to expand a potential ~ 25392 eval path="$path" 25393 if test ! -f "$path" && test ! -d "$path"; then 25394 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25395 fi 25396 25397 if test -d "$path"; then 25398 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25399 else 25400 dir="`$DIRNAME "$path"`" 25401 base="`$BASENAME "$path"`" 25402 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25403 fi 25404 fi 25405 fi 25406 25407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25408 $as_echo_n "checking for Boot JDK... " >&6; } 25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25410 $as_echo "$BOOT_JDK" >&6; } 25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25412 $as_echo_n "checking Boot JDK version... " >&6; } 25413 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25415 $as_echo "$BOOT_JDK_VERSION" >&6; } 25416 fi # end check jdk version 25417 fi # end check javac 25418 fi # end check java 25419 fi # end check boot jdk found 25420 fi 25421 25422 25423 if test "x$BOOT_JDK_FOUND" = xno; then 25424 # Now execute the test 25425 25426 if test -x /usr/libexec/java_home; then 25427 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 25428 BOOT_JDK_FOUND=maybe 25429 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 25430 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 25431 fi 25432 25433 25434 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25435 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25436 # Do we have a bin/java? 25437 if test ! -x "$BOOT_JDK/bin/java"; then 25438 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25439 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25440 BOOT_JDK_FOUND=no 25441 else 25442 # Do we have a bin/javac? 25443 if test ! -x "$BOOT_JDK/bin/javac"; then 25444 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25445 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25446 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25447 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25448 BOOT_JDK_FOUND=no 25449 else 25450 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25451 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25452 25453 # Extra M4 quote needed to protect [] in grep expression. 25454 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25455 if test "x$FOUND_CORRECT_VERSION" = x; then 25456 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25457 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25458 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25459 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25460 BOOT_JDK_FOUND=no 25461 else 25462 # We're done! :-) 25463 BOOT_JDK_FOUND=yes 25464 25465 # Only process if variable expands to non-empty 25466 25467 if test "x$BOOT_JDK" != x; then 25468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25469 25470 # Input might be given as Windows format, start by converting to 25471 # unix format. 25472 path="$BOOT_JDK" 25473 new_path=`$CYGPATH -u "$path"` 25474 25475 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25476 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25477 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25478 # "foo.exe" is OK but "foo" is an error. 25479 # 25480 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25481 # It is also a way to make sure we got the proper file name for the real test later on. 25482 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25483 if test "x$test_shortpath" = x; then 25484 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25485 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25486 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25487 fi 25488 25489 # Call helper function which possibly converts this using DOS-style short mode. 25490 # If so, the updated path is stored in $new_path. 25491 25492 input_path="$new_path" 25493 # Check if we need to convert this using DOS-style short mode. If the path 25494 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25495 # take no chances and rewrite it. 25496 # Note: m4 eats our [], so we need to use [ and ] instead. 25497 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25498 if test "x$has_forbidden_chars" != x; then 25499 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25500 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25501 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25502 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25503 # Going to short mode and back again did indeed matter. Since short mode is 25504 # case insensitive, let's make it lowercase to improve readability. 25505 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25506 # Now convert it back to Unix-style (cygpath) 25507 input_path=`$CYGPATH -u "$shortmode_path"` 25508 new_path="$input_path" 25509 fi 25510 fi 25511 25512 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25513 if test "x$test_cygdrive_prefix" = x; then 25514 # As a simple fix, exclude /usr/bin since it's not a real path. 25515 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25516 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25517 # a path prefixed by /cygdrive for fixpath to work. 25518 new_path="$CYGWIN_ROOT_PATH$input_path" 25519 fi 25520 fi 25521 25522 25523 if test "x$path" != "x$new_path"; then 25524 BOOT_JDK="$new_path" 25525 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25526 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25527 fi 25528 25529 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25530 25531 path="$BOOT_JDK" 25532 has_colon=`$ECHO $path | $GREP ^.:` 25533 new_path="$path" 25534 if test "x$has_colon" = x; then 25535 # Not in mixed or Windows style, start by that. 25536 new_path=`cmd //c echo $path` 25537 fi 25538 25539 25540 input_path="$new_path" 25541 # Check if we need to convert this using DOS-style short mode. If the path 25542 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25543 # take no chances and rewrite it. 25544 # Note: m4 eats our [], so we need to use [ and ] instead. 25545 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25546 if test "x$has_forbidden_chars" != x; then 25547 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25548 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25549 fi 25550 25551 25552 windows_path="$new_path" 25553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25554 unix_path=`$CYGPATH -u "$windows_path"` 25555 new_path="$unix_path" 25556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25557 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25558 new_path="$unix_path" 25559 fi 25560 25561 if test "x$path" != "x$new_path"; then 25562 BOOT_JDK="$new_path" 25563 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25564 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25565 fi 25566 25567 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25568 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25569 25570 else 25571 # We're on a unix platform. Hooray! :) 25572 path="$BOOT_JDK" 25573 has_space=`$ECHO "$path" | $GREP " "` 25574 if test "x$has_space" != x; then 25575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25576 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25577 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25578 fi 25579 25580 # Use eval to expand a potential ~ 25581 eval path="$path" 25582 if test ! -f "$path" && test ! -d "$path"; then 25583 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25584 fi 25585 25586 if test -d "$path"; then 25587 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25588 else 25589 dir="`$DIRNAME "$path"`" 25590 base="`$BASENAME "$path"`" 25591 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25592 fi 25593 fi 25594 fi 25595 25596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25597 $as_echo_n "checking for Boot JDK... " >&6; } 25598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25599 $as_echo "$BOOT_JDK" >&6; } 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25601 $as_echo_n "checking Boot JDK version... " >&6; } 25602 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25604 $as_echo "$BOOT_JDK_VERSION" >&6; } 25605 fi # end check jdk version 25606 fi # end check javac 25607 fi # end check java 25608 fi # end check boot jdk found 25609 fi 25610 25611 25612 if test "x$BOOT_JDK_FOUND" = xno; then 25613 # Now execute the test 25614 25615 if test -x /usr/libexec/java_home; then 25616 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 25617 BOOT_JDK_FOUND=maybe 25618 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 25619 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 25620 fi 25621 25622 25623 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25624 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25625 # Do we have a bin/java? 25626 if test ! -x "$BOOT_JDK/bin/java"; then 25627 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25628 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25629 BOOT_JDK_FOUND=no 25630 else 25631 # Do we have a bin/javac? 25632 if test ! -x "$BOOT_JDK/bin/javac"; then 25633 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25635 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25636 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25637 BOOT_JDK_FOUND=no 25638 else 25639 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25640 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25641 25642 # Extra M4 quote needed to protect [] in grep expression. 25643 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25644 if test "x$FOUND_CORRECT_VERSION" = x; then 25645 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25646 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25647 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25648 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25649 BOOT_JDK_FOUND=no 25650 else 25651 # We're done! :-) 25652 BOOT_JDK_FOUND=yes 25653 25654 # Only process if variable expands to non-empty 25655 25656 if test "x$BOOT_JDK" != x; then 25657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25658 25659 # Input might be given as Windows format, start by converting to 25660 # unix format. 25661 path="$BOOT_JDK" 25662 new_path=`$CYGPATH -u "$path"` 25663 25664 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25665 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25666 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25667 # "foo.exe" is OK but "foo" is an error. 25668 # 25669 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25670 # It is also a way to make sure we got the proper file name for the real test later on. 25671 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25672 if test "x$test_shortpath" = x; then 25673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25674 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25675 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25676 fi 25677 25678 # Call helper function which possibly converts this using DOS-style short mode. 25679 # If so, the updated path is stored in $new_path. 25680 25681 input_path="$new_path" 25682 # Check if we need to convert this using DOS-style short mode. If the path 25683 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25684 # take no chances and rewrite it. 25685 # Note: m4 eats our [], so we need to use [ and ] instead. 25686 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25687 if test "x$has_forbidden_chars" != x; then 25688 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25689 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25690 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25691 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25692 # Going to short mode and back again did indeed matter. Since short mode is 25693 # case insensitive, let's make it lowercase to improve readability. 25694 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25695 # Now convert it back to Unix-style (cygpath) 25696 input_path=`$CYGPATH -u "$shortmode_path"` 25697 new_path="$input_path" 25698 fi 25699 fi 25700 25701 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25702 if test "x$test_cygdrive_prefix" = x; then 25703 # As a simple fix, exclude /usr/bin since it's not a real path. 25704 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25705 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25706 # a path prefixed by /cygdrive for fixpath to work. 25707 new_path="$CYGWIN_ROOT_PATH$input_path" 25708 fi 25709 fi 25710 25711 25712 if test "x$path" != "x$new_path"; then 25713 BOOT_JDK="$new_path" 25714 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25715 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25716 fi 25717 25718 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25719 25720 path="$BOOT_JDK" 25721 has_colon=`$ECHO $path | $GREP ^.:` 25722 new_path="$path" 25723 if test "x$has_colon" = x; then 25724 # Not in mixed or Windows style, start by that. 25725 new_path=`cmd //c echo $path` 25726 fi 25727 25728 25729 input_path="$new_path" 25730 # Check if we need to convert this using DOS-style short mode. If the path 25731 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25732 # take no chances and rewrite it. 25733 # Note: m4 eats our [], so we need to use [ and ] instead. 25734 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25735 if test "x$has_forbidden_chars" != x; then 25736 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25737 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25738 fi 25739 25740 25741 windows_path="$new_path" 25742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25743 unix_path=`$CYGPATH -u "$windows_path"` 25744 new_path="$unix_path" 25745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25746 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25747 new_path="$unix_path" 25748 fi 25749 25750 if test "x$path" != "x$new_path"; then 25751 BOOT_JDK="$new_path" 25752 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25753 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25754 fi 25755 25756 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25757 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25758 25759 else 25760 # We're on a unix platform. Hooray! :) 25761 path="$BOOT_JDK" 25762 has_space=`$ECHO "$path" | $GREP " "` 25763 if test "x$has_space" != x; then 25764 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25765 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25766 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25767 fi 25768 25769 # Use eval to expand a potential ~ 25770 eval path="$path" 25771 if test ! -f "$path" && test ! -d "$path"; then 25772 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25773 fi 25774 25775 if test -d "$path"; then 25776 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25777 else 25778 dir="`$DIRNAME "$path"`" 25779 base="`$BASENAME "$path"`" 25780 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25781 fi 25782 fi 25783 fi 25784 25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25786 $as_echo_n "checking for Boot JDK... " >&6; } 25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25788 $as_echo "$BOOT_JDK" >&6; } 25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25790 $as_echo_n "checking Boot JDK version... " >&6; } 25791 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25793 $as_echo "$BOOT_JDK_VERSION" >&6; } 25794 fi # end check jdk version 25795 fi # end check javac 25796 fi # end check java 25797 fi # end check boot jdk found 25798 fi 25799 25800 fi 25801 25802 25803 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25804 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25805 # Do we have a bin/java? 25806 if test ! -x "$BOOT_JDK/bin/java"; then 25807 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25808 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25809 BOOT_JDK_FOUND=no 25810 else 25811 # Do we have a bin/javac? 25812 if test ! -x "$BOOT_JDK/bin/javac"; then 25813 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25815 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25816 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25817 BOOT_JDK_FOUND=no 25818 else 25819 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25820 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25821 25822 # Extra M4 quote needed to protect [] in grep expression. 25823 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25824 if test "x$FOUND_CORRECT_VERSION" = x; then 25825 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25826 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25827 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25828 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25829 BOOT_JDK_FOUND=no 25830 else 25831 # We're done! :-) 25832 BOOT_JDK_FOUND=yes 25833 25834 # Only process if variable expands to non-empty 25835 25836 if test "x$BOOT_JDK" != x; then 25837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25838 25839 # Input might be given as Windows format, start by converting to 25840 # unix format. 25841 path="$BOOT_JDK" 25842 new_path=`$CYGPATH -u "$path"` 25843 25844 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25845 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25846 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25847 # "foo.exe" is OK but "foo" is an error. 25848 # 25849 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25850 # It is also a way to make sure we got the proper file name for the real test later on. 25851 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25852 if test "x$test_shortpath" = x; then 25853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25854 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25855 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25856 fi 25857 25858 # Call helper function which possibly converts this using DOS-style short mode. 25859 # If so, the updated path is stored in $new_path. 25860 25861 input_path="$new_path" 25862 # Check if we need to convert this using DOS-style short mode. If the path 25863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25864 # take no chances and rewrite it. 25865 # Note: m4 eats our [], so we need to use [ and ] instead. 25866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25867 if test "x$has_forbidden_chars" != x; then 25868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25869 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25870 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25871 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25872 # Going to short mode and back again did indeed matter. Since short mode is 25873 # case insensitive, let's make it lowercase to improve readability. 25874 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25875 # Now convert it back to Unix-style (cygpath) 25876 input_path=`$CYGPATH -u "$shortmode_path"` 25877 new_path="$input_path" 25878 fi 25879 fi 25880 25881 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25882 if test "x$test_cygdrive_prefix" = x; then 25883 # As a simple fix, exclude /usr/bin since it's not a real path. 25884 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25885 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25886 # a path prefixed by /cygdrive for fixpath to work. 25887 new_path="$CYGWIN_ROOT_PATH$input_path" 25888 fi 25889 fi 25890 25891 25892 if test "x$path" != "x$new_path"; then 25893 BOOT_JDK="$new_path" 25894 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25895 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25896 fi 25897 25898 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25899 25900 path="$BOOT_JDK" 25901 has_colon=`$ECHO $path | $GREP ^.:` 25902 new_path="$path" 25903 if test "x$has_colon" = x; then 25904 # Not in mixed or Windows style, start by that. 25905 new_path=`cmd //c echo $path` 25906 fi 25907 25908 25909 input_path="$new_path" 25910 # Check if we need to convert this using DOS-style short mode. If the path 25911 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25912 # take no chances and rewrite it. 25913 # Note: m4 eats our [], so we need to use [ and ] instead. 25914 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25915 if test "x$has_forbidden_chars" != x; then 25916 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25917 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25918 fi 25919 25920 25921 windows_path="$new_path" 25922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25923 unix_path=`$CYGPATH -u "$windows_path"` 25924 new_path="$unix_path" 25925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25926 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25927 new_path="$unix_path" 25928 fi 25929 25930 if test "x$path" != "x$new_path"; then 25931 BOOT_JDK="$new_path" 25932 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25933 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25934 fi 25935 25936 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25937 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25938 25939 else 25940 # We're on a unix platform. Hooray! :) 25941 path="$BOOT_JDK" 25942 has_space=`$ECHO "$path" | $GREP " "` 25943 if test "x$has_space" != x; then 25944 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25945 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25946 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25947 fi 25948 25949 # Use eval to expand a potential ~ 25950 eval path="$path" 25951 if test ! -f "$path" && test ! -d "$path"; then 25952 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25953 fi 25954 25955 if test -d "$path"; then 25956 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25957 else 25958 dir="`$DIRNAME "$path"`" 25959 base="`$BASENAME "$path"`" 25960 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25961 fi 25962 fi 25963 fi 25964 25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25966 $as_echo_n "checking for Boot JDK... " >&6; } 25967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25968 $as_echo "$BOOT_JDK" >&6; } 25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25970 $as_echo_n "checking Boot JDK version... " >&6; } 25971 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25973 $as_echo "$BOOT_JDK_VERSION" >&6; } 25974 fi # end check jdk version 25975 fi # end check javac 25976 fi # end check java 25977 fi # end check boot jdk found 25978 fi 25979 25980 25981 # Test: Is $JAVA_HOME set? 25982 25983 if test "x$BOOT_JDK_FOUND" = xno; then 25984 # Now execute the test 25985 25986 if test "x$JAVA_HOME" != x; then 25987 JAVA_HOME_PROCESSED="$JAVA_HOME" 25988 25989 # Only process if variable expands to non-empty 25990 25991 if test "x$JAVA_HOME_PROCESSED" != x; then 25992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25993 25994 # Input might be given as Windows format, start by converting to 25995 # unix format. 25996 path="$JAVA_HOME_PROCESSED" 25997 new_path=`$CYGPATH -u "$path"` 25998 25999 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26000 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26001 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26002 # "foo.exe" is OK but "foo" is an error. 26003 # 26004 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26005 # It is also a way to make sure we got the proper file name for the real test later on. 26006 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26007 if test "x$test_shortpath" = x; then 26008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26009 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26010 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26011 fi 26012 26013 # Call helper function which possibly converts this using DOS-style short mode. 26014 # If so, the updated path is stored in $new_path. 26015 26016 input_path="$new_path" 26017 # Check if we need to convert this using DOS-style short mode. If the path 26018 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26019 # take no chances and rewrite it. 26020 # Note: m4 eats our [], so we need to use [ and ] instead. 26021 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26022 if test "x$has_forbidden_chars" != x; then 26023 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26024 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26025 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26026 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26027 # Going to short mode and back again did indeed matter. Since short mode is 26028 # case insensitive, let's make it lowercase to improve readability. 26029 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26030 # Now convert it back to Unix-style (cygpath) 26031 input_path=`$CYGPATH -u "$shortmode_path"` 26032 new_path="$input_path" 26033 fi 26034 fi 26035 26036 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26037 if test "x$test_cygdrive_prefix" = x; then 26038 # As a simple fix, exclude /usr/bin since it's not a real path. 26039 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26040 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26041 # a path prefixed by /cygdrive for fixpath to work. 26042 new_path="$CYGWIN_ROOT_PATH$input_path" 26043 fi 26044 fi 26045 26046 26047 if test "x$path" != "x$new_path"; then 26048 JAVA_HOME_PROCESSED="$new_path" 26049 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26050 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26051 fi 26052 26053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26054 26055 path="$JAVA_HOME_PROCESSED" 26056 has_colon=`$ECHO $path | $GREP ^.:` 26057 new_path="$path" 26058 if test "x$has_colon" = x; then 26059 # Not in mixed or Windows style, start by that. 26060 new_path=`cmd //c echo $path` 26061 fi 26062 26063 26064 input_path="$new_path" 26065 # Check if we need to convert this using DOS-style short mode. If the path 26066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26067 # take no chances and rewrite it. 26068 # Note: m4 eats our [], so we need to use [ and ] instead. 26069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26070 if test "x$has_forbidden_chars" != x; then 26071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26072 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26073 fi 26074 26075 26076 windows_path="$new_path" 26077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26078 unix_path=`$CYGPATH -u "$windows_path"` 26079 new_path="$unix_path" 26080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26081 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26082 new_path="$unix_path" 26083 fi 26084 26085 if test "x$path" != "x$new_path"; then 26086 JAVA_HOME_PROCESSED="$new_path" 26087 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26088 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26089 fi 26090 26091 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26092 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26093 26094 else 26095 # We're on a unix platform. Hooray! :) 26096 path="$JAVA_HOME_PROCESSED" 26097 has_space=`$ECHO "$path" | $GREP " "` 26098 if test "x$has_space" != x; then 26099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26100 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26101 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26102 fi 26103 26104 # Use eval to expand a potential ~ 26105 eval path="$path" 26106 if test ! -f "$path" && test ! -d "$path"; then 26107 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26108 fi 26109 26110 if test -d "$path"; then 26111 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26112 else 26113 dir="`$DIRNAME "$path"`" 26114 base="`$BASENAME "$path"`" 26115 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26116 fi 26117 fi 26118 fi 26119 26120 if test ! -d "$JAVA_HOME_PROCESSED"; then 26121 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26122 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26123 else 26124 # Aha, the user has set a JAVA_HOME 26125 # let us use that as the Boot JDK. 26126 BOOT_JDK="$JAVA_HOME_PROCESSED" 26127 BOOT_JDK_FOUND=maybe 26128 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26129 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26130 fi 26131 fi 26132 26133 26134 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26135 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26136 # Do we have a bin/java? 26137 if test ! -x "$BOOT_JDK/bin/java"; then 26138 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26139 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26140 BOOT_JDK_FOUND=no 26141 else 26142 # Do we have a bin/javac? 26143 if test ! -x "$BOOT_JDK/bin/javac"; then 26144 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26145 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26146 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26147 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26148 BOOT_JDK_FOUND=no 26149 else 26150 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26151 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26152 26153 # Extra M4 quote needed to protect [] in grep expression. 26154 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26155 if test "x$FOUND_CORRECT_VERSION" = x; then 26156 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26157 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26158 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26159 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26160 BOOT_JDK_FOUND=no 26161 else 26162 # We're done! :-) 26163 BOOT_JDK_FOUND=yes 26164 26165 # Only process if variable expands to non-empty 26166 26167 if test "x$BOOT_JDK" != x; then 26168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26169 26170 # Input might be given as Windows format, start by converting to 26171 # unix format. 26172 path="$BOOT_JDK" 26173 new_path=`$CYGPATH -u "$path"` 26174 26175 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26176 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26177 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26178 # "foo.exe" is OK but "foo" is an error. 26179 # 26180 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26181 # It is also a way to make sure we got the proper file name for the real test later on. 26182 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26183 if test "x$test_shortpath" = x; then 26184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26185 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26186 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26187 fi 26188 26189 # Call helper function which possibly converts this using DOS-style short mode. 26190 # If so, the updated path is stored in $new_path. 26191 26192 input_path="$new_path" 26193 # Check if we need to convert this using DOS-style short mode. If the path 26194 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26195 # take no chances and rewrite it. 26196 # Note: m4 eats our [], so we need to use [ and ] instead. 26197 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26198 if test "x$has_forbidden_chars" != x; then 26199 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26200 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26201 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26202 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26203 # Going to short mode and back again did indeed matter. Since short mode is 26204 # case insensitive, let's make it lowercase to improve readability. 26205 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26206 # Now convert it back to Unix-style (cygpath) 26207 input_path=`$CYGPATH -u "$shortmode_path"` 26208 new_path="$input_path" 26209 fi 26210 fi 26211 26212 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26213 if test "x$test_cygdrive_prefix" = x; then 26214 # As a simple fix, exclude /usr/bin since it's not a real path. 26215 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26216 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26217 # a path prefixed by /cygdrive for fixpath to work. 26218 new_path="$CYGWIN_ROOT_PATH$input_path" 26219 fi 26220 fi 26221 26222 26223 if test "x$path" != "x$new_path"; then 26224 BOOT_JDK="$new_path" 26225 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26226 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26227 fi 26228 26229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26230 26231 path="$BOOT_JDK" 26232 has_colon=`$ECHO $path | $GREP ^.:` 26233 new_path="$path" 26234 if test "x$has_colon" = x; then 26235 # Not in mixed or Windows style, start by that. 26236 new_path=`cmd //c echo $path` 26237 fi 26238 26239 26240 input_path="$new_path" 26241 # Check if we need to convert this using DOS-style short mode. If the path 26242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26243 # take no chances and rewrite it. 26244 # Note: m4 eats our [], so we need to use [ and ] instead. 26245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26246 if test "x$has_forbidden_chars" != x; then 26247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26248 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26249 fi 26250 26251 26252 windows_path="$new_path" 26253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26254 unix_path=`$CYGPATH -u "$windows_path"` 26255 new_path="$unix_path" 26256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26257 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26258 new_path="$unix_path" 26259 fi 26260 26261 if test "x$path" != "x$new_path"; then 26262 BOOT_JDK="$new_path" 26263 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26264 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26265 fi 26266 26267 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26268 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26269 26270 else 26271 # We're on a unix platform. Hooray! :) 26272 path="$BOOT_JDK" 26273 has_space=`$ECHO "$path" | $GREP " "` 26274 if test "x$has_space" != x; then 26275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26276 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26277 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26278 fi 26279 26280 # Use eval to expand a potential ~ 26281 eval path="$path" 26282 if test ! -f "$path" && test ! -d "$path"; then 26283 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26284 fi 26285 26286 if test -d "$path"; then 26287 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26288 else 26289 dir="`$DIRNAME "$path"`" 26290 base="`$BASENAME "$path"`" 26291 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26292 fi 26293 fi 26294 fi 26295 26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26297 $as_echo_n "checking for Boot JDK... " >&6; } 26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26299 $as_echo "$BOOT_JDK" >&6; } 26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26301 $as_echo_n "checking Boot JDK version... " >&6; } 26302 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26304 $as_echo "$BOOT_JDK_VERSION" >&6; } 26305 fi # end check jdk version 26306 fi # end check javac 26307 fi # end check java 26308 fi # end check boot jdk found 26309 fi 26310 26311 26312 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 26313 26314 if test "x$BOOT_JDK_FOUND" = xno; then 26315 # Now execute the test 26316 26317 # Extract the first word of "javac", so it can be a program name with args. 26318 set dummy javac; ac_word=$2 26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26320 $as_echo_n "checking for $ac_word... " >&6; } 26321 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 26322 $as_echo_n "(cached) " >&6 26323 else 26324 case $JAVAC_CHECK in 26325 [\\/]* | ?:[\\/]*) 26326 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 26327 ;; 26328 *) 26329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26330 for as_dir in $PATH 26331 do 26332 IFS=$as_save_IFS 26333 test -z "$as_dir" && as_dir=. 26334 for ac_exec_ext in '' $ac_executable_extensions; do 26335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26336 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 26337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26338 break 2 26339 fi 26340 done 26341 done 26342 IFS=$as_save_IFS 26343 26344 ;; 26345 esac 26346 fi 26347 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 26348 if test -n "$JAVAC_CHECK"; then 26349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 26350 $as_echo "$JAVAC_CHECK" >&6; } 26351 else 26352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26353 $as_echo "no" >&6; } 26354 fi 26355 26356 26357 # Extract the first word of "java", so it can be a program name with args. 26358 set dummy java; ac_word=$2 26359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26360 $as_echo_n "checking for $ac_word... " >&6; } 26361 if ${ac_cv_path_JAVA_CHECK+:} false; then : 26362 $as_echo_n "(cached) " >&6 26363 else 26364 case $JAVA_CHECK in 26365 [\\/]* | ?:[\\/]*) 26366 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 26367 ;; 26368 *) 26369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26370 for as_dir in $PATH 26371 do 26372 IFS=$as_save_IFS 26373 test -z "$as_dir" && as_dir=. 26374 for ac_exec_ext in '' $ac_executable_extensions; do 26375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26376 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 26377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26378 break 2 26379 fi 26380 done 26381 done 26382 IFS=$as_save_IFS 26383 26384 ;; 26385 esac 26386 fi 26387 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 26388 if test -n "$JAVA_CHECK"; then 26389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 26390 $as_echo "$JAVA_CHECK" >&6; } 26391 else 26392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26393 $as_echo "no" >&6; } 26394 fi 26395 26396 26397 BINARY="$JAVAC_CHECK" 26398 if test "x$JAVAC_CHECK" = x; then 26399 BINARY="$JAVA_CHECK" 26400 fi 26401 if test "x$BINARY" != x; then 26402 # So there is a java(c) binary, it might be part of a JDK. 26403 # Lets find the JDK/JRE directory by following symbolic links. 26404 # Linux/GNU systems often have links from /usr/bin/java to 26405 # /etc/alternatives/java to the real JDK binary. 26406 26407 if test "x$OPENJDK_BUILD_OS" != xwindows; then 26408 # Follow a chain of symbolic links. Use readlink 26409 # where it exists, else fall back to horribly 26410 # complicated shell code. 26411 if test "x$READLINK_TESTED" != yes; then 26412 # On MacOSX there is a readlink tool with a different 26413 # purpose than the GNU readlink tool. Check the found readlink. 26414 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 26415 if test "x$ISGNU" = x; then 26416 # A readlink that we do not know how to use. 26417 # Are there other non-GNU readlinks out there? 26418 READLINK_TESTED=yes 26419 READLINK= 26420 fi 26421 fi 26422 26423 if test "x$READLINK" != x; then 26424 BINARY=`$READLINK -f $BINARY` 26425 else 26426 # Save the current directory for restoring afterwards 26427 STARTDIR=$PWD 26428 COUNTER=0 26429 sym_link_dir=`$DIRNAME $BINARY` 26430 sym_link_file=`$BASENAME $BINARY` 26431 cd $sym_link_dir 26432 # Use -P flag to resolve symlinks in directories. 26433 cd `$THEPWDCMD -P` 26434 sym_link_dir=`$THEPWDCMD -P` 26435 # Resolve file symlinks 26436 while test $COUNTER -lt 20; do 26437 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 26438 if test "x$ISLINK" == x; then 26439 # This is not a symbolic link! We are done! 26440 break 26441 fi 26442 # Again resolve directory symlinks since the target of the just found 26443 # link could be in a different directory 26444 cd `$DIRNAME $ISLINK` 26445 sym_link_dir=`$THEPWDCMD -P` 26446 sym_link_file=`$BASENAME $ISLINK` 26447 let COUNTER=COUNTER+1 26448 done 26449 cd $STARTDIR 26450 BINARY=$sym_link_dir/$sym_link_file 26451 fi 26452 fi 26453 26454 BOOT_JDK=`dirname "$BINARY"` 26455 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 26456 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 26457 # Looks like we found ourselves an JDK 26458 BOOT_JDK_FOUND=maybe 26459 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 26460 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 26461 fi 26462 fi 26463 26464 26465 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26466 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26467 # Do we have a bin/java? 26468 if test ! -x "$BOOT_JDK/bin/java"; then 26469 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26470 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26471 BOOT_JDK_FOUND=no 26472 else 26473 # Do we have a bin/javac? 26474 if test ! -x "$BOOT_JDK/bin/javac"; then 26475 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26476 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26477 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26478 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26479 BOOT_JDK_FOUND=no 26480 else 26481 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26482 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26483 26484 # Extra M4 quote needed to protect [] in grep expression. 26485 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26486 if test "x$FOUND_CORRECT_VERSION" = x; then 26487 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26488 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26489 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26490 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26491 BOOT_JDK_FOUND=no 26492 else 26493 # We're done! :-) 26494 BOOT_JDK_FOUND=yes 26495 26496 # Only process if variable expands to non-empty 26497 26498 if test "x$BOOT_JDK" != x; then 26499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26500 26501 # Input might be given as Windows format, start by converting to 26502 # unix format. 26503 path="$BOOT_JDK" 26504 new_path=`$CYGPATH -u "$path"` 26505 26506 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26507 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26508 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26509 # "foo.exe" is OK but "foo" is an error. 26510 # 26511 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26512 # It is also a way to make sure we got the proper file name for the real test later on. 26513 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26514 if test "x$test_shortpath" = x; then 26515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26516 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26517 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26518 fi 26519 26520 # Call helper function which possibly converts this using DOS-style short mode. 26521 # If so, the updated path is stored in $new_path. 26522 26523 input_path="$new_path" 26524 # Check if we need to convert this using DOS-style short mode. If the path 26525 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26526 # take no chances and rewrite it. 26527 # Note: m4 eats our [], so we need to use [ and ] instead. 26528 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26529 if test "x$has_forbidden_chars" != x; then 26530 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26531 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26532 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26533 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26534 # Going to short mode and back again did indeed matter. Since short mode is 26535 # case insensitive, let's make it lowercase to improve readability. 26536 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26537 # Now convert it back to Unix-style (cygpath) 26538 input_path=`$CYGPATH -u "$shortmode_path"` 26539 new_path="$input_path" 26540 fi 26541 fi 26542 26543 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26544 if test "x$test_cygdrive_prefix" = x; then 26545 # As a simple fix, exclude /usr/bin since it's not a real path. 26546 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26547 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26548 # a path prefixed by /cygdrive for fixpath to work. 26549 new_path="$CYGWIN_ROOT_PATH$input_path" 26550 fi 26551 fi 26552 26553 26554 if test "x$path" != "x$new_path"; then 26555 BOOT_JDK="$new_path" 26556 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26557 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26558 fi 26559 26560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26561 26562 path="$BOOT_JDK" 26563 has_colon=`$ECHO $path | $GREP ^.:` 26564 new_path="$path" 26565 if test "x$has_colon" = x; then 26566 # Not in mixed or Windows style, start by that. 26567 new_path=`cmd //c echo $path` 26568 fi 26569 26570 26571 input_path="$new_path" 26572 # Check if we need to convert this using DOS-style short mode. If the path 26573 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26574 # take no chances and rewrite it. 26575 # Note: m4 eats our [], so we need to use [ and ] instead. 26576 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26577 if test "x$has_forbidden_chars" != x; then 26578 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26579 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26580 fi 26581 26582 26583 windows_path="$new_path" 26584 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26585 unix_path=`$CYGPATH -u "$windows_path"` 26586 new_path="$unix_path" 26587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26588 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26589 new_path="$unix_path" 26590 fi 26591 26592 if test "x$path" != "x$new_path"; then 26593 BOOT_JDK="$new_path" 26594 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26595 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26596 fi 26597 26598 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26599 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26600 26601 else 26602 # We're on a unix platform. Hooray! :) 26603 path="$BOOT_JDK" 26604 has_space=`$ECHO "$path" | $GREP " "` 26605 if test "x$has_space" != x; then 26606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26607 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26608 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26609 fi 26610 26611 # Use eval to expand a potential ~ 26612 eval path="$path" 26613 if test ! -f "$path" && test ! -d "$path"; then 26614 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26615 fi 26616 26617 if test -d "$path"; then 26618 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26619 else 26620 dir="`$DIRNAME "$path"`" 26621 base="`$BASENAME "$path"`" 26622 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26623 fi 26624 fi 26625 fi 26626 26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26628 $as_echo_n "checking for Boot JDK... " >&6; } 26629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26630 $as_echo "$BOOT_JDK" >&6; } 26631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26632 $as_echo_n "checking Boot JDK version... " >&6; } 26633 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26635 $as_echo "$BOOT_JDK_VERSION" >&6; } 26636 fi # end check jdk version 26637 fi # end check javac 26638 fi # end check java 26639 fi # end check boot jdk found 26640 fi 26641 26642 26643 # Test: Is there a JDK installed in default, well-known locations? 26644 26645 if test "x$BOOT_JDK_FOUND" = xno; then 26646 # Now execute the test 26647 26648 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26649 26650 if test "x$BOOT_JDK_FOUND" = xno; then 26651 # Now execute the test 26652 26653 if test "x$ProgramW6432" != x; then 26654 VIRTUAL_DIR="$ProgramW6432/Java" 26655 26656 windows_path="$VIRTUAL_DIR" 26657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26658 unix_path=`$CYGPATH -u "$windows_path"` 26659 VIRTUAL_DIR="$unix_path" 26660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26661 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26662 VIRTUAL_DIR="$unix_path" 26663 fi 26664 26665 26666 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26667 BOOT_JDK_SUFFIX="" 26668 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26669 if test "x$ALL_JDKS_FOUND" != x; then 26670 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26671 26672 if test "x$BOOT_JDK_FOUND" = xno; then 26673 # Now execute the test 26674 26675 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26676 if test -d "$BOOT_JDK"; then 26677 BOOT_JDK_FOUND=maybe 26678 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26679 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26680 fi 26681 26682 26683 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26684 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26685 # Do we have a bin/java? 26686 if test ! -x "$BOOT_JDK/bin/java"; then 26687 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26688 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26689 BOOT_JDK_FOUND=no 26690 else 26691 # Do we have a bin/javac? 26692 if test ! -x "$BOOT_JDK/bin/javac"; then 26693 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26694 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26695 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26696 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26697 BOOT_JDK_FOUND=no 26698 else 26699 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26700 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26701 26702 # Extra M4 quote needed to protect [] in grep expression. 26703 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26704 if test "x$FOUND_CORRECT_VERSION" = x; then 26705 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26706 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26707 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26708 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26709 BOOT_JDK_FOUND=no 26710 else 26711 # We're done! :-) 26712 BOOT_JDK_FOUND=yes 26713 26714 # Only process if variable expands to non-empty 26715 26716 if test "x$BOOT_JDK" != x; then 26717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26718 26719 # Input might be given as Windows format, start by converting to 26720 # unix format. 26721 path="$BOOT_JDK" 26722 new_path=`$CYGPATH -u "$path"` 26723 26724 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26725 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26726 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26727 # "foo.exe" is OK but "foo" is an error. 26728 # 26729 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26730 # It is also a way to make sure we got the proper file name for the real test later on. 26731 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26732 if test "x$test_shortpath" = x; then 26733 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26734 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26735 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26736 fi 26737 26738 # Call helper function which possibly converts this using DOS-style short mode. 26739 # If so, the updated path is stored in $new_path. 26740 26741 input_path="$new_path" 26742 # Check if we need to convert this using DOS-style short mode. If the path 26743 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26744 # take no chances and rewrite it. 26745 # Note: m4 eats our [], so we need to use [ and ] instead. 26746 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26747 if test "x$has_forbidden_chars" != x; then 26748 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26749 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26750 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26751 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26752 # Going to short mode and back again did indeed matter. Since short mode is 26753 # case insensitive, let's make it lowercase to improve readability. 26754 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26755 # Now convert it back to Unix-style (cygpath) 26756 input_path=`$CYGPATH -u "$shortmode_path"` 26757 new_path="$input_path" 26758 fi 26759 fi 26760 26761 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26762 if test "x$test_cygdrive_prefix" = x; then 26763 # As a simple fix, exclude /usr/bin since it's not a real path. 26764 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26765 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26766 # a path prefixed by /cygdrive for fixpath to work. 26767 new_path="$CYGWIN_ROOT_PATH$input_path" 26768 fi 26769 fi 26770 26771 26772 if test "x$path" != "x$new_path"; then 26773 BOOT_JDK="$new_path" 26774 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26775 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26776 fi 26777 26778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26779 26780 path="$BOOT_JDK" 26781 has_colon=`$ECHO $path | $GREP ^.:` 26782 new_path="$path" 26783 if test "x$has_colon" = x; then 26784 # Not in mixed or Windows style, start by that. 26785 new_path=`cmd //c echo $path` 26786 fi 26787 26788 26789 input_path="$new_path" 26790 # Check if we need to convert this using DOS-style short mode. If the path 26791 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26792 # take no chances and rewrite it. 26793 # Note: m4 eats our [], so we need to use [ and ] instead. 26794 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26795 if test "x$has_forbidden_chars" != x; then 26796 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26797 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26798 fi 26799 26800 26801 windows_path="$new_path" 26802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26803 unix_path=`$CYGPATH -u "$windows_path"` 26804 new_path="$unix_path" 26805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26806 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26807 new_path="$unix_path" 26808 fi 26809 26810 if test "x$path" != "x$new_path"; then 26811 BOOT_JDK="$new_path" 26812 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26813 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26814 fi 26815 26816 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26817 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26818 26819 else 26820 # We're on a unix platform. Hooray! :) 26821 path="$BOOT_JDK" 26822 has_space=`$ECHO "$path" | $GREP " "` 26823 if test "x$has_space" != x; then 26824 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26825 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26826 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26827 fi 26828 26829 # Use eval to expand a potential ~ 26830 eval path="$path" 26831 if test ! -f "$path" && test ! -d "$path"; then 26832 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26833 fi 26834 26835 if test -d "$path"; then 26836 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26837 else 26838 dir="`$DIRNAME "$path"`" 26839 base="`$BASENAME "$path"`" 26840 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26841 fi 26842 fi 26843 fi 26844 26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26846 $as_echo_n "checking for Boot JDK... " >&6; } 26847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26848 $as_echo "$BOOT_JDK" >&6; } 26849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26850 $as_echo_n "checking Boot JDK version... " >&6; } 26851 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26853 $as_echo "$BOOT_JDK_VERSION" >&6; } 26854 fi # end check jdk version 26855 fi # end check javac 26856 fi # end check java 26857 fi # end check boot jdk found 26858 fi 26859 26860 done 26861 fi 26862 26863 fi 26864 26865 26866 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26867 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26868 # Do we have a bin/java? 26869 if test ! -x "$BOOT_JDK/bin/java"; then 26870 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26871 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26872 BOOT_JDK_FOUND=no 26873 else 26874 # Do we have a bin/javac? 26875 if test ! -x "$BOOT_JDK/bin/javac"; then 26876 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26877 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26878 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26879 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26880 BOOT_JDK_FOUND=no 26881 else 26882 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26883 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26884 26885 # Extra M4 quote needed to protect [] in grep expression. 26886 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26887 if test "x$FOUND_CORRECT_VERSION" = x; then 26888 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26889 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26890 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26891 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26892 BOOT_JDK_FOUND=no 26893 else 26894 # We're done! :-) 26895 BOOT_JDK_FOUND=yes 26896 26897 # Only process if variable expands to non-empty 26898 26899 if test "x$BOOT_JDK" != x; then 26900 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26901 26902 # Input might be given as Windows format, start by converting to 26903 # unix format. 26904 path="$BOOT_JDK" 26905 new_path=`$CYGPATH -u "$path"` 26906 26907 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26908 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26909 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26910 # "foo.exe" is OK but "foo" is an error. 26911 # 26912 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26913 # It is also a way to make sure we got the proper file name for the real test later on. 26914 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26915 if test "x$test_shortpath" = x; then 26916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26917 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26918 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26919 fi 26920 26921 # Call helper function which possibly converts this using DOS-style short mode. 26922 # If so, the updated path is stored in $new_path. 26923 26924 input_path="$new_path" 26925 # Check if we need to convert this using DOS-style short mode. If the path 26926 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26927 # take no chances and rewrite it. 26928 # Note: m4 eats our [], so we need to use [ and ] instead. 26929 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26930 if test "x$has_forbidden_chars" != x; then 26931 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26932 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26933 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26934 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26935 # Going to short mode and back again did indeed matter. Since short mode is 26936 # case insensitive, let's make it lowercase to improve readability. 26937 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26938 # Now convert it back to Unix-style (cygpath) 26939 input_path=`$CYGPATH -u "$shortmode_path"` 26940 new_path="$input_path" 26941 fi 26942 fi 26943 26944 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26945 if test "x$test_cygdrive_prefix" = x; then 26946 # As a simple fix, exclude /usr/bin since it's not a real path. 26947 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26948 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26949 # a path prefixed by /cygdrive for fixpath to work. 26950 new_path="$CYGWIN_ROOT_PATH$input_path" 26951 fi 26952 fi 26953 26954 26955 if test "x$path" != "x$new_path"; then 26956 BOOT_JDK="$new_path" 26957 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26958 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26959 fi 26960 26961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26962 26963 path="$BOOT_JDK" 26964 has_colon=`$ECHO $path | $GREP ^.:` 26965 new_path="$path" 26966 if test "x$has_colon" = x; then 26967 # Not in mixed or Windows style, start by that. 26968 new_path=`cmd //c echo $path` 26969 fi 26970 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26981 fi 26982 26983 26984 windows_path="$new_path" 26985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26986 unix_path=`$CYGPATH -u "$windows_path"` 26987 new_path="$unix_path" 26988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26989 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26990 new_path="$unix_path" 26991 fi 26992 26993 if test "x$path" != "x$new_path"; then 26994 BOOT_JDK="$new_path" 26995 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26996 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26997 fi 26998 26999 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27000 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27001 27002 else 27003 # We're on a unix platform. Hooray! :) 27004 path="$BOOT_JDK" 27005 has_space=`$ECHO "$path" | $GREP " "` 27006 if test "x$has_space" != x; then 27007 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27008 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27009 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27010 fi 27011 27012 # Use eval to expand a potential ~ 27013 eval path="$path" 27014 if test ! -f "$path" && test ! -d "$path"; then 27015 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27016 fi 27017 27018 if test -d "$path"; then 27019 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27020 else 27021 dir="`$DIRNAME "$path"`" 27022 base="`$BASENAME "$path"`" 27023 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27024 fi 27025 fi 27026 fi 27027 27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27029 $as_echo_n "checking for Boot JDK... " >&6; } 27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27031 $as_echo "$BOOT_JDK" >&6; } 27032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27033 $as_echo_n "checking Boot JDK version... " >&6; } 27034 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27036 $as_echo "$BOOT_JDK_VERSION" >&6; } 27037 fi # end check jdk version 27038 fi # end check javac 27039 fi # end check java 27040 fi # end check boot jdk found 27041 fi 27042 27043 27044 if test "x$BOOT_JDK_FOUND" = xno; then 27045 # Now execute the test 27046 27047 if test "x$PROGRAMW6432" != x; then 27048 VIRTUAL_DIR="$PROGRAMW6432/Java" 27049 27050 windows_path="$VIRTUAL_DIR" 27051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27052 unix_path=`$CYGPATH -u "$windows_path"` 27053 VIRTUAL_DIR="$unix_path" 27054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27055 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27056 VIRTUAL_DIR="$unix_path" 27057 fi 27058 27059 27060 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27061 BOOT_JDK_SUFFIX="" 27062 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27063 if test "x$ALL_JDKS_FOUND" != x; then 27064 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27065 27066 if test "x$BOOT_JDK_FOUND" = xno; then 27067 # Now execute the test 27068 27069 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27070 if test -d "$BOOT_JDK"; then 27071 BOOT_JDK_FOUND=maybe 27072 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27073 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27074 fi 27075 27076 27077 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27078 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27079 # Do we have a bin/java? 27080 if test ! -x "$BOOT_JDK/bin/java"; then 27081 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27082 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27083 BOOT_JDK_FOUND=no 27084 else 27085 # Do we have a bin/javac? 27086 if test ! -x "$BOOT_JDK/bin/javac"; then 27087 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27088 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27089 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27090 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27091 BOOT_JDK_FOUND=no 27092 else 27093 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27094 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27095 27096 # Extra M4 quote needed to protect [] in grep expression. 27097 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27098 if test "x$FOUND_CORRECT_VERSION" = x; then 27099 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27101 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27102 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27103 BOOT_JDK_FOUND=no 27104 else 27105 # We're done! :-) 27106 BOOT_JDK_FOUND=yes 27107 27108 # Only process if variable expands to non-empty 27109 27110 if test "x$BOOT_JDK" != x; then 27111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27112 27113 # Input might be given as Windows format, start by converting to 27114 # unix format. 27115 path="$BOOT_JDK" 27116 new_path=`$CYGPATH -u "$path"` 27117 27118 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27119 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27120 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27121 # "foo.exe" is OK but "foo" is an error. 27122 # 27123 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27124 # It is also a way to make sure we got the proper file name for the real test later on. 27125 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27126 if test "x$test_shortpath" = x; then 27127 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27128 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27129 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27130 fi 27131 27132 # Call helper function which possibly converts this using DOS-style short mode. 27133 # If so, the updated path is stored in $new_path. 27134 27135 input_path="$new_path" 27136 # Check if we need to convert this using DOS-style short mode. If the path 27137 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27138 # take no chances and rewrite it. 27139 # Note: m4 eats our [], so we need to use [ and ] instead. 27140 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27141 if test "x$has_forbidden_chars" != x; then 27142 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27143 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27144 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27145 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27146 # Going to short mode and back again did indeed matter. Since short mode is 27147 # case insensitive, let's make it lowercase to improve readability. 27148 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27149 # Now convert it back to Unix-style (cygpath) 27150 input_path=`$CYGPATH -u "$shortmode_path"` 27151 new_path="$input_path" 27152 fi 27153 fi 27154 27155 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27156 if test "x$test_cygdrive_prefix" = x; then 27157 # As a simple fix, exclude /usr/bin since it's not a real path. 27158 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27159 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27160 # a path prefixed by /cygdrive for fixpath to work. 27161 new_path="$CYGWIN_ROOT_PATH$input_path" 27162 fi 27163 fi 27164 27165 27166 if test "x$path" != "x$new_path"; then 27167 BOOT_JDK="$new_path" 27168 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27169 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27170 fi 27171 27172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27173 27174 path="$BOOT_JDK" 27175 has_colon=`$ECHO $path | $GREP ^.:` 27176 new_path="$path" 27177 if test "x$has_colon" = x; then 27178 # Not in mixed or Windows style, start by that. 27179 new_path=`cmd //c echo $path` 27180 fi 27181 27182 27183 input_path="$new_path" 27184 # Check if we need to convert this using DOS-style short mode. If the path 27185 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27186 # take no chances and rewrite it. 27187 # Note: m4 eats our [], so we need to use [ and ] instead. 27188 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27189 if test "x$has_forbidden_chars" != x; then 27190 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27191 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27192 fi 27193 27194 27195 windows_path="$new_path" 27196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27197 unix_path=`$CYGPATH -u "$windows_path"` 27198 new_path="$unix_path" 27199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27200 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27201 new_path="$unix_path" 27202 fi 27203 27204 if test "x$path" != "x$new_path"; then 27205 BOOT_JDK="$new_path" 27206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27207 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27208 fi 27209 27210 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27211 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27212 27213 else 27214 # We're on a unix platform. Hooray! :) 27215 path="$BOOT_JDK" 27216 has_space=`$ECHO "$path" | $GREP " "` 27217 if test "x$has_space" != x; then 27218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27219 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27220 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27221 fi 27222 27223 # Use eval to expand a potential ~ 27224 eval path="$path" 27225 if test ! -f "$path" && test ! -d "$path"; then 27226 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27227 fi 27228 27229 if test -d "$path"; then 27230 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27231 else 27232 dir="`$DIRNAME "$path"`" 27233 base="`$BASENAME "$path"`" 27234 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27235 fi 27236 fi 27237 fi 27238 27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27240 $as_echo_n "checking for Boot JDK... " >&6; } 27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27242 $as_echo "$BOOT_JDK" >&6; } 27243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27244 $as_echo_n "checking Boot JDK version... " >&6; } 27245 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27247 $as_echo "$BOOT_JDK_VERSION" >&6; } 27248 fi # end check jdk version 27249 fi # end check javac 27250 fi # end check java 27251 fi # end check boot jdk found 27252 fi 27253 27254 done 27255 fi 27256 27257 fi 27258 27259 27260 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27261 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27262 # Do we have a bin/java? 27263 if test ! -x "$BOOT_JDK/bin/java"; then 27264 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27266 BOOT_JDK_FOUND=no 27267 else 27268 # Do we have a bin/javac? 27269 if test ! -x "$BOOT_JDK/bin/javac"; then 27270 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27271 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27272 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27273 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27274 BOOT_JDK_FOUND=no 27275 else 27276 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27277 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27278 27279 # Extra M4 quote needed to protect [] in grep expression. 27280 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27281 if test "x$FOUND_CORRECT_VERSION" = x; then 27282 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27283 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27284 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27285 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27286 BOOT_JDK_FOUND=no 27287 else 27288 # We're done! :-) 27289 BOOT_JDK_FOUND=yes 27290 27291 # Only process if variable expands to non-empty 27292 27293 if test "x$BOOT_JDK" != x; then 27294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27295 27296 # Input might be given as Windows format, start by converting to 27297 # unix format. 27298 path="$BOOT_JDK" 27299 new_path=`$CYGPATH -u "$path"` 27300 27301 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27302 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27303 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27304 # "foo.exe" is OK but "foo" is an error. 27305 # 27306 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27307 # It is also a way to make sure we got the proper file name for the real test later on. 27308 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27309 if test "x$test_shortpath" = x; then 27310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27311 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27312 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27313 fi 27314 27315 # Call helper function which possibly converts this using DOS-style short mode. 27316 # If so, the updated path is stored in $new_path. 27317 27318 input_path="$new_path" 27319 # Check if we need to convert this using DOS-style short mode. If the path 27320 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27321 # take no chances and rewrite it. 27322 # Note: m4 eats our [], so we need to use [ and ] instead. 27323 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27324 if test "x$has_forbidden_chars" != x; then 27325 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27326 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27327 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27328 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27329 # Going to short mode and back again did indeed matter. Since short mode is 27330 # case insensitive, let's make it lowercase to improve readability. 27331 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27332 # Now convert it back to Unix-style (cygpath) 27333 input_path=`$CYGPATH -u "$shortmode_path"` 27334 new_path="$input_path" 27335 fi 27336 fi 27337 27338 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27339 if test "x$test_cygdrive_prefix" = x; then 27340 # As a simple fix, exclude /usr/bin since it's not a real path. 27341 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27342 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27343 # a path prefixed by /cygdrive for fixpath to work. 27344 new_path="$CYGWIN_ROOT_PATH$input_path" 27345 fi 27346 fi 27347 27348 27349 if test "x$path" != "x$new_path"; then 27350 BOOT_JDK="$new_path" 27351 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27352 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27353 fi 27354 27355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27356 27357 path="$BOOT_JDK" 27358 has_colon=`$ECHO $path | $GREP ^.:` 27359 new_path="$path" 27360 if test "x$has_colon" = x; then 27361 # Not in mixed or Windows style, start by that. 27362 new_path=`cmd //c echo $path` 27363 fi 27364 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27375 fi 27376 27377 27378 windows_path="$new_path" 27379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27380 unix_path=`$CYGPATH -u "$windows_path"` 27381 new_path="$unix_path" 27382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27383 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27384 new_path="$unix_path" 27385 fi 27386 27387 if test "x$path" != "x$new_path"; then 27388 BOOT_JDK="$new_path" 27389 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27390 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27391 fi 27392 27393 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27394 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27395 27396 else 27397 # We're on a unix platform. Hooray! :) 27398 path="$BOOT_JDK" 27399 has_space=`$ECHO "$path" | $GREP " "` 27400 if test "x$has_space" != x; then 27401 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27402 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27403 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27404 fi 27405 27406 # Use eval to expand a potential ~ 27407 eval path="$path" 27408 if test ! -f "$path" && test ! -d "$path"; then 27409 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27410 fi 27411 27412 if test -d "$path"; then 27413 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27414 else 27415 dir="`$DIRNAME "$path"`" 27416 base="`$BASENAME "$path"`" 27417 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27418 fi 27419 fi 27420 fi 27421 27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27423 $as_echo_n "checking for Boot JDK... " >&6; } 27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27425 $as_echo "$BOOT_JDK" >&6; } 27426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27427 $as_echo_n "checking Boot JDK version... " >&6; } 27428 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27430 $as_echo "$BOOT_JDK_VERSION" >&6; } 27431 fi # end check jdk version 27432 fi # end check javac 27433 fi # end check java 27434 fi # end check boot jdk found 27435 fi 27436 27437 27438 if test "x$BOOT_JDK_FOUND" = xno; then 27439 # Now execute the test 27440 27441 if test "x$PROGRAMFILES" != x; then 27442 VIRTUAL_DIR="$PROGRAMFILES/Java" 27443 27444 windows_path="$VIRTUAL_DIR" 27445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27446 unix_path=`$CYGPATH -u "$windows_path"` 27447 VIRTUAL_DIR="$unix_path" 27448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27449 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27450 VIRTUAL_DIR="$unix_path" 27451 fi 27452 27453 27454 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27455 BOOT_JDK_SUFFIX="" 27456 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27457 if test "x$ALL_JDKS_FOUND" != x; then 27458 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27459 27460 if test "x$BOOT_JDK_FOUND" = xno; then 27461 # Now execute the test 27462 27463 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27464 if test -d "$BOOT_JDK"; then 27465 BOOT_JDK_FOUND=maybe 27466 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27467 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27468 fi 27469 27470 27471 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27472 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27473 # Do we have a bin/java? 27474 if test ! -x "$BOOT_JDK/bin/java"; then 27475 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27476 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27477 BOOT_JDK_FOUND=no 27478 else 27479 # Do we have a bin/javac? 27480 if test ! -x "$BOOT_JDK/bin/javac"; then 27481 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27482 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27483 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27484 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27485 BOOT_JDK_FOUND=no 27486 else 27487 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27488 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27489 27490 # Extra M4 quote needed to protect [] in grep expression. 27491 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27492 if test "x$FOUND_CORRECT_VERSION" = x; then 27493 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27494 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27495 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27496 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27497 BOOT_JDK_FOUND=no 27498 else 27499 # We're done! :-) 27500 BOOT_JDK_FOUND=yes 27501 27502 # Only process if variable expands to non-empty 27503 27504 if test "x$BOOT_JDK" != x; then 27505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27506 27507 # Input might be given as Windows format, start by converting to 27508 # unix format. 27509 path="$BOOT_JDK" 27510 new_path=`$CYGPATH -u "$path"` 27511 27512 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27513 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27514 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27515 # "foo.exe" is OK but "foo" is an error. 27516 # 27517 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27518 # It is also a way to make sure we got the proper file name for the real test later on. 27519 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27520 if test "x$test_shortpath" = x; then 27521 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27522 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27523 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27524 fi 27525 27526 # Call helper function which possibly converts this using DOS-style short mode. 27527 # If so, the updated path is stored in $new_path. 27528 27529 input_path="$new_path" 27530 # Check if we need to convert this using DOS-style short mode. If the path 27531 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27532 # take no chances and rewrite it. 27533 # Note: m4 eats our [], so we need to use [ and ] instead. 27534 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27535 if test "x$has_forbidden_chars" != x; then 27536 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27537 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27538 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27539 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27540 # Going to short mode and back again did indeed matter. Since short mode is 27541 # case insensitive, let's make it lowercase to improve readability. 27542 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27543 # Now convert it back to Unix-style (cygpath) 27544 input_path=`$CYGPATH -u "$shortmode_path"` 27545 new_path="$input_path" 27546 fi 27547 fi 27548 27549 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27550 if test "x$test_cygdrive_prefix" = x; then 27551 # As a simple fix, exclude /usr/bin since it's not a real path. 27552 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27553 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27554 # a path prefixed by /cygdrive for fixpath to work. 27555 new_path="$CYGWIN_ROOT_PATH$input_path" 27556 fi 27557 fi 27558 27559 27560 if test "x$path" != "x$new_path"; then 27561 BOOT_JDK="$new_path" 27562 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27563 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27564 fi 27565 27566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27567 27568 path="$BOOT_JDK" 27569 has_colon=`$ECHO $path | $GREP ^.:` 27570 new_path="$path" 27571 if test "x$has_colon" = x; then 27572 # Not in mixed or Windows style, start by that. 27573 new_path=`cmd //c echo $path` 27574 fi 27575 27576 27577 input_path="$new_path" 27578 # Check if we need to convert this using DOS-style short mode. If the path 27579 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27580 # take no chances and rewrite it. 27581 # Note: m4 eats our [], so we need to use [ and ] instead. 27582 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27583 if test "x$has_forbidden_chars" != x; then 27584 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27585 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27586 fi 27587 27588 27589 windows_path="$new_path" 27590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27591 unix_path=`$CYGPATH -u "$windows_path"` 27592 new_path="$unix_path" 27593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27594 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27595 new_path="$unix_path" 27596 fi 27597 27598 if test "x$path" != "x$new_path"; then 27599 BOOT_JDK="$new_path" 27600 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27601 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27602 fi 27603 27604 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27605 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27606 27607 else 27608 # We're on a unix platform. Hooray! :) 27609 path="$BOOT_JDK" 27610 has_space=`$ECHO "$path" | $GREP " "` 27611 if test "x$has_space" != x; then 27612 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27613 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27614 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27615 fi 27616 27617 # Use eval to expand a potential ~ 27618 eval path="$path" 27619 if test ! -f "$path" && test ! -d "$path"; then 27620 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27621 fi 27622 27623 if test -d "$path"; then 27624 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27625 else 27626 dir="`$DIRNAME "$path"`" 27627 base="`$BASENAME "$path"`" 27628 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27629 fi 27630 fi 27631 fi 27632 27633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27634 $as_echo_n "checking for Boot JDK... " >&6; } 27635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27636 $as_echo "$BOOT_JDK" >&6; } 27637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27638 $as_echo_n "checking Boot JDK version... " >&6; } 27639 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27641 $as_echo "$BOOT_JDK_VERSION" >&6; } 27642 fi # end check jdk version 27643 fi # end check javac 27644 fi # end check java 27645 fi # end check boot jdk found 27646 fi 27647 27648 done 27649 fi 27650 27651 fi 27652 27653 27654 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27655 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27656 # Do we have a bin/java? 27657 if test ! -x "$BOOT_JDK/bin/java"; then 27658 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27659 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27660 BOOT_JDK_FOUND=no 27661 else 27662 # Do we have a bin/javac? 27663 if test ! -x "$BOOT_JDK/bin/javac"; then 27664 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27665 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27666 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27667 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27668 BOOT_JDK_FOUND=no 27669 else 27670 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27671 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27672 27673 # Extra M4 quote needed to protect [] in grep expression. 27674 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27675 if test "x$FOUND_CORRECT_VERSION" = x; then 27676 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27677 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27678 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27679 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27680 BOOT_JDK_FOUND=no 27681 else 27682 # We're done! :-) 27683 BOOT_JDK_FOUND=yes 27684 27685 # Only process if variable expands to non-empty 27686 27687 if test "x$BOOT_JDK" != x; then 27688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27689 27690 # Input might be given as Windows format, start by converting to 27691 # unix format. 27692 path="$BOOT_JDK" 27693 new_path=`$CYGPATH -u "$path"` 27694 27695 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27696 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27697 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27698 # "foo.exe" is OK but "foo" is an error. 27699 # 27700 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27701 # It is also a way to make sure we got the proper file name for the real test later on. 27702 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27703 if test "x$test_shortpath" = x; then 27704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27705 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27706 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27707 fi 27708 27709 # Call helper function which possibly converts this using DOS-style short mode. 27710 # If so, the updated path is stored in $new_path. 27711 27712 input_path="$new_path" 27713 # Check if we need to convert this using DOS-style short mode. If the path 27714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27715 # take no chances and rewrite it. 27716 # Note: m4 eats our [], so we need to use [ and ] instead. 27717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27718 if test "x$has_forbidden_chars" != x; then 27719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27720 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27721 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27722 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27723 # Going to short mode and back again did indeed matter. Since short mode is 27724 # case insensitive, let's make it lowercase to improve readability. 27725 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27726 # Now convert it back to Unix-style (cygpath) 27727 input_path=`$CYGPATH -u "$shortmode_path"` 27728 new_path="$input_path" 27729 fi 27730 fi 27731 27732 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27733 if test "x$test_cygdrive_prefix" = x; then 27734 # As a simple fix, exclude /usr/bin since it's not a real path. 27735 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27736 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27737 # a path prefixed by /cygdrive for fixpath to work. 27738 new_path="$CYGWIN_ROOT_PATH$input_path" 27739 fi 27740 fi 27741 27742 27743 if test "x$path" != "x$new_path"; then 27744 BOOT_JDK="$new_path" 27745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27746 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27747 fi 27748 27749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27750 27751 path="$BOOT_JDK" 27752 has_colon=`$ECHO $path | $GREP ^.:` 27753 new_path="$path" 27754 if test "x$has_colon" = x; then 27755 # Not in mixed or Windows style, start by that. 27756 new_path=`cmd //c echo $path` 27757 fi 27758 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27769 fi 27770 27771 27772 windows_path="$new_path" 27773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27774 unix_path=`$CYGPATH -u "$windows_path"` 27775 new_path="$unix_path" 27776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27778 new_path="$unix_path" 27779 fi 27780 27781 if test "x$path" != "x$new_path"; then 27782 BOOT_JDK="$new_path" 27783 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27784 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27785 fi 27786 27787 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27788 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27789 27790 else 27791 # We're on a unix platform. Hooray! :) 27792 path="$BOOT_JDK" 27793 has_space=`$ECHO "$path" | $GREP " "` 27794 if test "x$has_space" != x; then 27795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27796 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27797 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27798 fi 27799 27800 # Use eval to expand a potential ~ 27801 eval path="$path" 27802 if test ! -f "$path" && test ! -d "$path"; then 27803 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27804 fi 27805 27806 if test -d "$path"; then 27807 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27808 else 27809 dir="`$DIRNAME "$path"`" 27810 base="`$BASENAME "$path"`" 27811 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27812 fi 27813 fi 27814 fi 27815 27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27817 $as_echo_n "checking for Boot JDK... " >&6; } 27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27819 $as_echo "$BOOT_JDK" >&6; } 27820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27821 $as_echo_n "checking Boot JDK version... " >&6; } 27822 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27824 $as_echo "$BOOT_JDK_VERSION" >&6; } 27825 fi # end check jdk version 27826 fi # end check javac 27827 fi # end check java 27828 fi # end check boot jdk found 27829 fi 27830 27831 27832 if test "x$BOOT_JDK_FOUND" = xno; then 27833 # Now execute the test 27834 27835 if test "x$ProgramFiles" != x; then 27836 VIRTUAL_DIR="$ProgramFiles/Java" 27837 27838 windows_path="$VIRTUAL_DIR" 27839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27840 unix_path=`$CYGPATH -u "$windows_path"` 27841 VIRTUAL_DIR="$unix_path" 27842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27844 VIRTUAL_DIR="$unix_path" 27845 fi 27846 27847 27848 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27849 BOOT_JDK_SUFFIX="" 27850 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27851 if test "x$ALL_JDKS_FOUND" != x; then 27852 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27853 27854 if test "x$BOOT_JDK_FOUND" = xno; then 27855 # Now execute the test 27856 27857 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27858 if test -d "$BOOT_JDK"; then 27859 BOOT_JDK_FOUND=maybe 27860 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27861 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27862 fi 27863 27864 27865 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27866 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27867 # Do we have a bin/java? 27868 if test ! -x "$BOOT_JDK/bin/java"; then 27869 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27870 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27871 BOOT_JDK_FOUND=no 27872 else 27873 # Do we have a bin/javac? 27874 if test ! -x "$BOOT_JDK/bin/javac"; then 27875 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27876 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27877 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27878 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27879 BOOT_JDK_FOUND=no 27880 else 27881 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27882 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27883 27884 # Extra M4 quote needed to protect [] in grep expression. 27885 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27886 if test "x$FOUND_CORRECT_VERSION" = x; then 27887 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27888 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27889 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27890 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27891 BOOT_JDK_FOUND=no 27892 else 27893 # We're done! :-) 27894 BOOT_JDK_FOUND=yes 27895 27896 # Only process if variable expands to non-empty 27897 27898 if test "x$BOOT_JDK" != x; then 27899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27900 27901 # Input might be given as Windows format, start by converting to 27902 # unix format. 27903 path="$BOOT_JDK" 27904 new_path=`$CYGPATH -u "$path"` 27905 27906 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27907 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27908 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27909 # "foo.exe" is OK but "foo" is an error. 27910 # 27911 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27912 # It is also a way to make sure we got the proper file name for the real test later on. 27913 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27914 if test "x$test_shortpath" = x; then 27915 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27916 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27917 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27918 fi 27919 27920 # Call helper function which possibly converts this using DOS-style short mode. 27921 # If so, the updated path is stored in $new_path. 27922 27923 input_path="$new_path" 27924 # Check if we need to convert this using DOS-style short mode. If the path 27925 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27926 # take no chances and rewrite it. 27927 # Note: m4 eats our [], so we need to use [ and ] instead. 27928 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27929 if test "x$has_forbidden_chars" != x; then 27930 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27931 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27932 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27933 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27934 # Going to short mode and back again did indeed matter. Since short mode is 27935 # case insensitive, let's make it lowercase to improve readability. 27936 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27937 # Now convert it back to Unix-style (cygpath) 27938 input_path=`$CYGPATH -u "$shortmode_path"` 27939 new_path="$input_path" 27940 fi 27941 fi 27942 27943 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27944 if test "x$test_cygdrive_prefix" = x; then 27945 # As a simple fix, exclude /usr/bin since it's not a real path. 27946 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27947 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27948 # a path prefixed by /cygdrive for fixpath to work. 27949 new_path="$CYGWIN_ROOT_PATH$input_path" 27950 fi 27951 fi 27952 27953 27954 if test "x$path" != "x$new_path"; then 27955 BOOT_JDK="$new_path" 27956 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27957 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27958 fi 27959 27960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27961 27962 path="$BOOT_JDK" 27963 has_colon=`$ECHO $path | $GREP ^.:` 27964 new_path="$path" 27965 if test "x$has_colon" = x; then 27966 # Not in mixed or Windows style, start by that. 27967 new_path=`cmd //c echo $path` 27968 fi 27969 27970 27971 input_path="$new_path" 27972 # Check if we need to convert this using DOS-style short mode. If the path 27973 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27974 # take no chances and rewrite it. 27975 # Note: m4 eats our [], so we need to use [ and ] instead. 27976 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27977 if test "x$has_forbidden_chars" != x; then 27978 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27979 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27980 fi 27981 27982 27983 windows_path="$new_path" 27984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27985 unix_path=`$CYGPATH -u "$windows_path"` 27986 new_path="$unix_path" 27987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27988 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27989 new_path="$unix_path" 27990 fi 27991 27992 if test "x$path" != "x$new_path"; then 27993 BOOT_JDK="$new_path" 27994 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27995 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27996 fi 27997 27998 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27999 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28000 28001 else 28002 # We're on a unix platform. Hooray! :) 28003 path="$BOOT_JDK" 28004 has_space=`$ECHO "$path" | $GREP " "` 28005 if test "x$has_space" != x; then 28006 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28007 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28008 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28009 fi 28010 28011 # Use eval to expand a potential ~ 28012 eval path="$path" 28013 if test ! -f "$path" && test ! -d "$path"; then 28014 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28015 fi 28016 28017 if test -d "$path"; then 28018 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28019 else 28020 dir="`$DIRNAME "$path"`" 28021 base="`$BASENAME "$path"`" 28022 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28023 fi 28024 fi 28025 fi 28026 28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28028 $as_echo_n "checking for Boot JDK... " >&6; } 28029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28030 $as_echo "$BOOT_JDK" >&6; } 28031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28032 $as_echo_n "checking Boot JDK version... " >&6; } 28033 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28035 $as_echo "$BOOT_JDK_VERSION" >&6; } 28036 fi # end check jdk version 28037 fi # end check javac 28038 fi # end check java 28039 fi # end check boot jdk found 28040 fi 28041 28042 done 28043 fi 28044 28045 fi 28046 28047 28048 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28049 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28050 # Do we have a bin/java? 28051 if test ! -x "$BOOT_JDK/bin/java"; then 28052 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28054 BOOT_JDK_FOUND=no 28055 else 28056 # Do we have a bin/javac? 28057 if test ! -x "$BOOT_JDK/bin/javac"; then 28058 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28060 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28061 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28062 BOOT_JDK_FOUND=no 28063 else 28064 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28065 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28066 28067 # Extra M4 quote needed to protect [] in grep expression. 28068 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28069 if test "x$FOUND_CORRECT_VERSION" = x; then 28070 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28071 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28072 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28073 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28074 BOOT_JDK_FOUND=no 28075 else 28076 # We're done! :-) 28077 BOOT_JDK_FOUND=yes 28078 28079 # Only process if variable expands to non-empty 28080 28081 if test "x$BOOT_JDK" != x; then 28082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28083 28084 # Input might be given as Windows format, start by converting to 28085 # unix format. 28086 path="$BOOT_JDK" 28087 new_path=`$CYGPATH -u "$path"` 28088 28089 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28090 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28091 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28092 # "foo.exe" is OK but "foo" is an error. 28093 # 28094 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28095 # It is also a way to make sure we got the proper file name for the real test later on. 28096 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28097 if test "x$test_shortpath" = x; then 28098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28099 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28100 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28101 fi 28102 28103 # Call helper function which possibly converts this using DOS-style short mode. 28104 # If so, the updated path is stored in $new_path. 28105 28106 input_path="$new_path" 28107 # Check if we need to convert this using DOS-style short mode. If the path 28108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28109 # take no chances and rewrite it. 28110 # Note: m4 eats our [], so we need to use [ and ] instead. 28111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28112 if test "x$has_forbidden_chars" != x; then 28113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28114 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28115 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28116 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28117 # Going to short mode and back again did indeed matter. Since short mode is 28118 # case insensitive, let's make it lowercase to improve readability. 28119 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28120 # Now convert it back to Unix-style (cygpath) 28121 input_path=`$CYGPATH -u "$shortmode_path"` 28122 new_path="$input_path" 28123 fi 28124 fi 28125 28126 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28127 if test "x$test_cygdrive_prefix" = x; then 28128 # As a simple fix, exclude /usr/bin since it's not a real path. 28129 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28130 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28131 # a path prefixed by /cygdrive for fixpath to work. 28132 new_path="$CYGWIN_ROOT_PATH$input_path" 28133 fi 28134 fi 28135 28136 28137 if test "x$path" != "x$new_path"; then 28138 BOOT_JDK="$new_path" 28139 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28140 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28141 fi 28142 28143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28144 28145 path="$BOOT_JDK" 28146 has_colon=`$ECHO $path | $GREP ^.:` 28147 new_path="$path" 28148 if test "x$has_colon" = x; then 28149 # Not in mixed or Windows style, start by that. 28150 new_path=`cmd //c echo $path` 28151 fi 28152 28153 28154 input_path="$new_path" 28155 # Check if we need to convert this using DOS-style short mode. If the path 28156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28157 # take no chances and rewrite it. 28158 # Note: m4 eats our [], so we need to use [ and ] instead. 28159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28160 if test "x$has_forbidden_chars" != x; then 28161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28162 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28163 fi 28164 28165 28166 windows_path="$new_path" 28167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28168 unix_path=`$CYGPATH -u "$windows_path"` 28169 new_path="$unix_path" 28170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28172 new_path="$unix_path" 28173 fi 28174 28175 if test "x$path" != "x$new_path"; then 28176 BOOT_JDK="$new_path" 28177 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28178 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28179 fi 28180 28181 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28182 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28183 28184 else 28185 # We're on a unix platform. Hooray! :) 28186 path="$BOOT_JDK" 28187 has_space=`$ECHO "$path" | $GREP " "` 28188 if test "x$has_space" != x; then 28189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28190 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28191 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28192 fi 28193 28194 # Use eval to expand a potential ~ 28195 eval path="$path" 28196 if test ! -f "$path" && test ! -d "$path"; then 28197 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28198 fi 28199 28200 if test -d "$path"; then 28201 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28202 else 28203 dir="`$DIRNAME "$path"`" 28204 base="`$BASENAME "$path"`" 28205 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28206 fi 28207 fi 28208 fi 28209 28210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28211 $as_echo_n "checking for Boot JDK... " >&6; } 28212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28213 $as_echo "$BOOT_JDK" >&6; } 28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28215 $as_echo_n "checking Boot JDK version... " >&6; } 28216 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28218 $as_echo "$BOOT_JDK_VERSION" >&6; } 28219 fi # end check jdk version 28220 fi # end check javac 28221 fi # end check java 28222 fi # end check boot jdk found 28223 fi 28224 28225 28226 if test "x$BOOT_JDK_FOUND" = xno; then 28227 # Now execute the test 28228 28229 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 28230 BOOT_JDK_SUFFIX="" 28231 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28232 if test "x$ALL_JDKS_FOUND" != x; then 28233 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28234 28235 if test "x$BOOT_JDK_FOUND" = xno; then 28236 # Now execute the test 28237 28238 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28239 if test -d "$BOOT_JDK"; then 28240 BOOT_JDK_FOUND=maybe 28241 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28242 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28243 fi 28244 28245 28246 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28247 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28248 # Do we have a bin/java? 28249 if test ! -x "$BOOT_JDK/bin/java"; then 28250 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28251 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28252 BOOT_JDK_FOUND=no 28253 else 28254 # Do we have a bin/javac? 28255 if test ! -x "$BOOT_JDK/bin/javac"; then 28256 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28257 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28258 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28259 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28260 BOOT_JDK_FOUND=no 28261 else 28262 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28263 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28264 28265 # Extra M4 quote needed to protect [] in grep expression. 28266 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28267 if test "x$FOUND_CORRECT_VERSION" = x; then 28268 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28269 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28270 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28271 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28272 BOOT_JDK_FOUND=no 28273 else 28274 # We're done! :-) 28275 BOOT_JDK_FOUND=yes 28276 28277 # Only process if variable expands to non-empty 28278 28279 if test "x$BOOT_JDK" != x; then 28280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28281 28282 # Input might be given as Windows format, start by converting to 28283 # unix format. 28284 path="$BOOT_JDK" 28285 new_path=`$CYGPATH -u "$path"` 28286 28287 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28288 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28289 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28290 # "foo.exe" is OK but "foo" is an error. 28291 # 28292 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28293 # It is also a way to make sure we got the proper file name for the real test later on. 28294 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28295 if test "x$test_shortpath" = x; then 28296 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28297 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28298 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28299 fi 28300 28301 # Call helper function which possibly converts this using DOS-style short mode. 28302 # If so, the updated path is stored in $new_path. 28303 28304 input_path="$new_path" 28305 # Check if we need to convert this using DOS-style short mode. If the path 28306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28307 # take no chances and rewrite it. 28308 # Note: m4 eats our [], so we need to use [ and ] instead. 28309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28310 if test "x$has_forbidden_chars" != x; then 28311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28312 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28313 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28314 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28315 # Going to short mode and back again did indeed matter. Since short mode is 28316 # case insensitive, let's make it lowercase to improve readability. 28317 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28318 # Now convert it back to Unix-style (cygpath) 28319 input_path=`$CYGPATH -u "$shortmode_path"` 28320 new_path="$input_path" 28321 fi 28322 fi 28323 28324 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28325 if test "x$test_cygdrive_prefix" = x; then 28326 # As a simple fix, exclude /usr/bin since it's not a real path. 28327 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28328 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28329 # a path prefixed by /cygdrive for fixpath to work. 28330 new_path="$CYGWIN_ROOT_PATH$input_path" 28331 fi 28332 fi 28333 28334 28335 if test "x$path" != "x$new_path"; then 28336 BOOT_JDK="$new_path" 28337 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28338 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28339 fi 28340 28341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28342 28343 path="$BOOT_JDK" 28344 has_colon=`$ECHO $path | $GREP ^.:` 28345 new_path="$path" 28346 if test "x$has_colon" = x; then 28347 # Not in mixed or Windows style, start by that. 28348 new_path=`cmd //c echo $path` 28349 fi 28350 28351 28352 input_path="$new_path" 28353 # Check if we need to convert this using DOS-style short mode. If the path 28354 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28355 # take no chances and rewrite it. 28356 # Note: m4 eats our [], so we need to use [ and ] instead. 28357 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28358 if test "x$has_forbidden_chars" != x; then 28359 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28360 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28361 fi 28362 28363 28364 windows_path="$new_path" 28365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28366 unix_path=`$CYGPATH -u "$windows_path"` 28367 new_path="$unix_path" 28368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28370 new_path="$unix_path" 28371 fi 28372 28373 if test "x$path" != "x$new_path"; then 28374 BOOT_JDK="$new_path" 28375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28376 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28377 fi 28378 28379 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28380 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28381 28382 else 28383 # We're on a unix platform. Hooray! :) 28384 path="$BOOT_JDK" 28385 has_space=`$ECHO "$path" | $GREP " "` 28386 if test "x$has_space" != x; then 28387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28388 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28389 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28390 fi 28391 28392 # Use eval to expand a potential ~ 28393 eval path="$path" 28394 if test ! -f "$path" && test ! -d "$path"; then 28395 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28396 fi 28397 28398 if test -d "$path"; then 28399 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28400 else 28401 dir="`$DIRNAME "$path"`" 28402 base="`$BASENAME "$path"`" 28403 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28404 fi 28405 fi 28406 fi 28407 28408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28409 $as_echo_n "checking for Boot JDK... " >&6; } 28410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28411 $as_echo "$BOOT_JDK" >&6; } 28412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28413 $as_echo_n "checking Boot JDK version... " >&6; } 28414 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28416 $as_echo "$BOOT_JDK_VERSION" >&6; } 28417 fi # end check jdk version 28418 fi # end check javac 28419 fi # end check java 28420 fi # end check boot jdk found 28421 fi 28422 28423 done 28424 fi 28425 28426 28427 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28428 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28429 # Do we have a bin/java? 28430 if test ! -x "$BOOT_JDK/bin/java"; then 28431 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28433 BOOT_JDK_FOUND=no 28434 else 28435 # Do we have a bin/javac? 28436 if test ! -x "$BOOT_JDK/bin/javac"; then 28437 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28438 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28439 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28440 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28441 BOOT_JDK_FOUND=no 28442 else 28443 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28444 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28445 28446 # Extra M4 quote needed to protect [] in grep expression. 28447 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28448 if test "x$FOUND_CORRECT_VERSION" = x; then 28449 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28450 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28451 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28452 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28453 BOOT_JDK_FOUND=no 28454 else 28455 # We're done! :-) 28456 BOOT_JDK_FOUND=yes 28457 28458 # Only process if variable expands to non-empty 28459 28460 if test "x$BOOT_JDK" != x; then 28461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28462 28463 # Input might be given as Windows format, start by converting to 28464 # unix format. 28465 path="$BOOT_JDK" 28466 new_path=`$CYGPATH -u "$path"` 28467 28468 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28469 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28470 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28471 # "foo.exe" is OK but "foo" is an error. 28472 # 28473 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28474 # It is also a way to make sure we got the proper file name for the real test later on. 28475 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28476 if test "x$test_shortpath" = x; then 28477 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28478 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28479 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28480 fi 28481 28482 # Call helper function which possibly converts this using DOS-style short mode. 28483 # If so, the updated path is stored in $new_path. 28484 28485 input_path="$new_path" 28486 # Check if we need to convert this using DOS-style short mode. If the path 28487 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28488 # take no chances and rewrite it. 28489 # Note: m4 eats our [], so we need to use [ and ] instead. 28490 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28491 if test "x$has_forbidden_chars" != x; then 28492 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28493 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28494 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28495 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28496 # Going to short mode and back again did indeed matter. Since short mode is 28497 # case insensitive, let's make it lowercase to improve readability. 28498 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28499 # Now convert it back to Unix-style (cygpath) 28500 input_path=`$CYGPATH -u "$shortmode_path"` 28501 new_path="$input_path" 28502 fi 28503 fi 28504 28505 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28506 if test "x$test_cygdrive_prefix" = x; then 28507 # As a simple fix, exclude /usr/bin since it's not a real path. 28508 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28509 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28510 # a path prefixed by /cygdrive for fixpath to work. 28511 new_path="$CYGWIN_ROOT_PATH$input_path" 28512 fi 28513 fi 28514 28515 28516 if test "x$path" != "x$new_path"; then 28517 BOOT_JDK="$new_path" 28518 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28519 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28520 fi 28521 28522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28523 28524 path="$BOOT_JDK" 28525 has_colon=`$ECHO $path | $GREP ^.:` 28526 new_path="$path" 28527 if test "x$has_colon" = x; then 28528 # Not in mixed or Windows style, start by that. 28529 new_path=`cmd //c echo $path` 28530 fi 28531 28532 28533 input_path="$new_path" 28534 # Check if we need to convert this using DOS-style short mode. If the path 28535 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28536 # take no chances and rewrite it. 28537 # Note: m4 eats our [], so we need to use [ and ] instead. 28538 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28539 if test "x$has_forbidden_chars" != x; then 28540 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28541 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28542 fi 28543 28544 28545 windows_path="$new_path" 28546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28547 unix_path=`$CYGPATH -u "$windows_path"` 28548 new_path="$unix_path" 28549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28551 new_path="$unix_path" 28552 fi 28553 28554 if test "x$path" != "x$new_path"; then 28555 BOOT_JDK="$new_path" 28556 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28557 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28558 fi 28559 28560 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28561 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28562 28563 else 28564 # We're on a unix platform. Hooray! :) 28565 path="$BOOT_JDK" 28566 has_space=`$ECHO "$path" | $GREP " "` 28567 if test "x$has_space" != x; then 28568 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28569 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28570 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28571 fi 28572 28573 # Use eval to expand a potential ~ 28574 eval path="$path" 28575 if test ! -f "$path" && test ! -d "$path"; then 28576 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28577 fi 28578 28579 if test -d "$path"; then 28580 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28581 else 28582 dir="`$DIRNAME "$path"`" 28583 base="`$BASENAME "$path"`" 28584 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28585 fi 28586 fi 28587 fi 28588 28589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28590 $as_echo_n "checking for Boot JDK... " >&6; } 28591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28592 $as_echo "$BOOT_JDK" >&6; } 28593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28594 $as_echo_n "checking Boot JDK version... " >&6; } 28595 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28597 $as_echo "$BOOT_JDK_VERSION" >&6; } 28598 fi # end check jdk version 28599 fi # end check javac 28600 fi # end check java 28601 fi # end check boot jdk found 28602 fi 28603 28604 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 28605 28606 if test "x$BOOT_JDK_FOUND" = xno; then 28607 # Now execute the test 28608 28609 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 28610 BOOT_JDK_SUFFIX="/Contents/Home" 28611 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28612 if test "x$ALL_JDKS_FOUND" != x; then 28613 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28614 28615 if test "x$BOOT_JDK_FOUND" = xno; then 28616 # Now execute the test 28617 28618 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28619 if test -d "$BOOT_JDK"; then 28620 BOOT_JDK_FOUND=maybe 28621 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28622 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28623 fi 28624 28625 28626 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28627 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28628 # Do we have a bin/java? 28629 if test ! -x "$BOOT_JDK/bin/java"; then 28630 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28631 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28632 BOOT_JDK_FOUND=no 28633 else 28634 # Do we have a bin/javac? 28635 if test ! -x "$BOOT_JDK/bin/javac"; then 28636 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28637 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28638 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28639 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28640 BOOT_JDK_FOUND=no 28641 else 28642 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28643 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28644 28645 # Extra M4 quote needed to protect [] in grep expression. 28646 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28647 if test "x$FOUND_CORRECT_VERSION" = x; then 28648 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28649 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28650 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28651 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28652 BOOT_JDK_FOUND=no 28653 else 28654 # We're done! :-) 28655 BOOT_JDK_FOUND=yes 28656 28657 # Only process if variable expands to non-empty 28658 28659 if test "x$BOOT_JDK" != x; then 28660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28661 28662 # Input might be given as Windows format, start by converting to 28663 # unix format. 28664 path="$BOOT_JDK" 28665 new_path=`$CYGPATH -u "$path"` 28666 28667 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28668 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28669 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28670 # "foo.exe" is OK but "foo" is an error. 28671 # 28672 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28673 # It is also a way to make sure we got the proper file name for the real test later on. 28674 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28675 if test "x$test_shortpath" = x; then 28676 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28677 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28678 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28679 fi 28680 28681 # Call helper function which possibly converts this using DOS-style short mode. 28682 # If so, the updated path is stored in $new_path. 28683 28684 input_path="$new_path" 28685 # Check if we need to convert this using DOS-style short mode. If the path 28686 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28687 # take no chances and rewrite it. 28688 # Note: m4 eats our [], so we need to use [ and ] instead. 28689 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28690 if test "x$has_forbidden_chars" != x; then 28691 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28692 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28693 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28694 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28695 # Going to short mode and back again did indeed matter. Since short mode is 28696 # case insensitive, let's make it lowercase to improve readability. 28697 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28698 # Now convert it back to Unix-style (cygpath) 28699 input_path=`$CYGPATH -u "$shortmode_path"` 28700 new_path="$input_path" 28701 fi 28702 fi 28703 28704 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28705 if test "x$test_cygdrive_prefix" = x; then 28706 # As a simple fix, exclude /usr/bin since it's not a real path. 28707 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28708 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28709 # a path prefixed by /cygdrive for fixpath to work. 28710 new_path="$CYGWIN_ROOT_PATH$input_path" 28711 fi 28712 fi 28713 28714 28715 if test "x$path" != "x$new_path"; then 28716 BOOT_JDK="$new_path" 28717 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28718 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28719 fi 28720 28721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28722 28723 path="$BOOT_JDK" 28724 has_colon=`$ECHO $path | $GREP ^.:` 28725 new_path="$path" 28726 if test "x$has_colon" = x; then 28727 # Not in mixed or Windows style, start by that. 28728 new_path=`cmd //c echo $path` 28729 fi 28730 28731 28732 input_path="$new_path" 28733 # Check if we need to convert this using DOS-style short mode. If the path 28734 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28735 # take no chances and rewrite it. 28736 # Note: m4 eats our [], so we need to use [ and ] instead. 28737 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28738 if test "x$has_forbidden_chars" != x; then 28739 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28740 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28741 fi 28742 28743 28744 windows_path="$new_path" 28745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28746 unix_path=`$CYGPATH -u "$windows_path"` 28747 new_path="$unix_path" 28748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28750 new_path="$unix_path" 28751 fi 28752 28753 if test "x$path" != "x$new_path"; then 28754 BOOT_JDK="$new_path" 28755 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28756 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28757 fi 28758 28759 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28760 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28761 28762 else 28763 # We're on a unix platform. Hooray! :) 28764 path="$BOOT_JDK" 28765 has_space=`$ECHO "$path" | $GREP " "` 28766 if test "x$has_space" != x; then 28767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28768 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28769 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28770 fi 28771 28772 # Use eval to expand a potential ~ 28773 eval path="$path" 28774 if test ! -f "$path" && test ! -d "$path"; then 28775 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28776 fi 28777 28778 if test -d "$path"; then 28779 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28780 else 28781 dir="`$DIRNAME "$path"`" 28782 base="`$BASENAME "$path"`" 28783 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28784 fi 28785 fi 28786 fi 28787 28788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28789 $as_echo_n "checking for Boot JDK... " >&6; } 28790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28791 $as_echo "$BOOT_JDK" >&6; } 28792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28793 $as_echo_n "checking Boot JDK version... " >&6; } 28794 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28796 $as_echo "$BOOT_JDK_VERSION" >&6; } 28797 fi # end check jdk version 28798 fi # end check javac 28799 fi # end check java 28800 fi # end check boot jdk found 28801 fi 28802 28803 done 28804 fi 28805 28806 28807 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28808 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28809 # Do we have a bin/java? 28810 if test ! -x "$BOOT_JDK/bin/java"; then 28811 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28812 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28813 BOOT_JDK_FOUND=no 28814 else 28815 # Do we have a bin/javac? 28816 if test ! -x "$BOOT_JDK/bin/javac"; then 28817 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28818 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28819 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28820 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28821 BOOT_JDK_FOUND=no 28822 else 28823 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28824 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28825 28826 # Extra M4 quote needed to protect [] in grep expression. 28827 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28828 if test "x$FOUND_CORRECT_VERSION" = x; then 28829 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28830 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28831 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28832 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28833 BOOT_JDK_FOUND=no 28834 else 28835 # We're done! :-) 28836 BOOT_JDK_FOUND=yes 28837 28838 # Only process if variable expands to non-empty 28839 28840 if test "x$BOOT_JDK" != x; then 28841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28842 28843 # Input might be given as Windows format, start by converting to 28844 # unix format. 28845 path="$BOOT_JDK" 28846 new_path=`$CYGPATH -u "$path"` 28847 28848 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28849 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28850 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28851 # "foo.exe" is OK but "foo" is an error. 28852 # 28853 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28854 # It is also a way to make sure we got the proper file name for the real test later on. 28855 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28856 if test "x$test_shortpath" = x; then 28857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28858 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28859 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28860 fi 28861 28862 # Call helper function which possibly converts this using DOS-style short mode. 28863 # If so, the updated path is stored in $new_path. 28864 28865 input_path="$new_path" 28866 # Check if we need to convert this using DOS-style short mode. If the path 28867 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28868 # take no chances and rewrite it. 28869 # Note: m4 eats our [], so we need to use [ and ] instead. 28870 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28871 if test "x$has_forbidden_chars" != x; then 28872 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28873 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28874 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28875 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28876 # Going to short mode and back again did indeed matter. Since short mode is 28877 # case insensitive, let's make it lowercase to improve readability. 28878 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28879 # Now convert it back to Unix-style (cygpath) 28880 input_path=`$CYGPATH -u "$shortmode_path"` 28881 new_path="$input_path" 28882 fi 28883 fi 28884 28885 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28886 if test "x$test_cygdrive_prefix" = x; then 28887 # As a simple fix, exclude /usr/bin since it's not a real path. 28888 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28889 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28890 # a path prefixed by /cygdrive for fixpath to work. 28891 new_path="$CYGWIN_ROOT_PATH$input_path" 28892 fi 28893 fi 28894 28895 28896 if test "x$path" != "x$new_path"; then 28897 BOOT_JDK="$new_path" 28898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28899 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28900 fi 28901 28902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28903 28904 path="$BOOT_JDK" 28905 has_colon=`$ECHO $path | $GREP ^.:` 28906 new_path="$path" 28907 if test "x$has_colon" = x; then 28908 # Not in mixed or Windows style, start by that. 28909 new_path=`cmd //c echo $path` 28910 fi 28911 28912 28913 input_path="$new_path" 28914 # Check if we need to convert this using DOS-style short mode. If the path 28915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28916 # take no chances and rewrite it. 28917 # Note: m4 eats our [], so we need to use [ and ] instead. 28918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28919 if test "x$has_forbidden_chars" != x; then 28920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28921 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28922 fi 28923 28924 28925 windows_path="$new_path" 28926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28927 unix_path=`$CYGPATH -u "$windows_path"` 28928 new_path="$unix_path" 28929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28931 new_path="$unix_path" 28932 fi 28933 28934 if test "x$path" != "x$new_path"; then 28935 BOOT_JDK="$new_path" 28936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28937 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28938 fi 28939 28940 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28941 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28942 28943 else 28944 # We're on a unix platform. Hooray! :) 28945 path="$BOOT_JDK" 28946 has_space=`$ECHO "$path" | $GREP " "` 28947 if test "x$has_space" != x; then 28948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28949 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28950 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28951 fi 28952 28953 # Use eval to expand a potential ~ 28954 eval path="$path" 28955 if test ! -f "$path" && test ! -d "$path"; then 28956 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28957 fi 28958 28959 if test -d "$path"; then 28960 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28961 else 28962 dir="`$DIRNAME "$path"`" 28963 base="`$BASENAME "$path"`" 28964 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28965 fi 28966 fi 28967 fi 28968 28969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28970 $as_echo_n "checking for Boot JDK... " >&6; } 28971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28972 $as_echo "$BOOT_JDK" >&6; } 28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28974 $as_echo_n "checking Boot JDK version... " >&6; } 28975 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28977 $as_echo "$BOOT_JDK_VERSION" >&6; } 28978 fi # end check jdk version 28979 fi # end check javac 28980 fi # end check java 28981 fi # end check boot jdk found 28982 fi 28983 28984 28985 if test "x$BOOT_JDK_FOUND" = xno; then 28986 # Now execute the test 28987 28988 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 28989 BOOT_JDK_SUFFIX="/Contents/Home" 28990 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28991 if test "x$ALL_JDKS_FOUND" != x; then 28992 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28993 28994 if test "x$BOOT_JDK_FOUND" = xno; then 28995 # Now execute the test 28996 28997 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28998 if test -d "$BOOT_JDK"; then 28999 BOOT_JDK_FOUND=maybe 29000 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29001 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29002 fi 29003 29004 29005 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29006 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29007 # Do we have a bin/java? 29008 if test ! -x "$BOOT_JDK/bin/java"; then 29009 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29010 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29011 BOOT_JDK_FOUND=no 29012 else 29013 # Do we have a bin/javac? 29014 if test ! -x "$BOOT_JDK/bin/javac"; then 29015 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29016 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29017 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29018 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29019 BOOT_JDK_FOUND=no 29020 else 29021 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29022 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29023 29024 # Extra M4 quote needed to protect [] in grep expression. 29025 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29026 if test "x$FOUND_CORRECT_VERSION" = x; then 29027 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29028 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29029 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29030 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29031 BOOT_JDK_FOUND=no 29032 else 29033 # We're done! :-) 29034 BOOT_JDK_FOUND=yes 29035 29036 # Only process if variable expands to non-empty 29037 29038 if test "x$BOOT_JDK" != x; then 29039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29040 29041 # Input might be given as Windows format, start by converting to 29042 # unix format. 29043 path="$BOOT_JDK" 29044 new_path=`$CYGPATH -u "$path"` 29045 29046 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29047 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29048 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29049 # "foo.exe" is OK but "foo" is an error. 29050 # 29051 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29052 # It is also a way to make sure we got the proper file name for the real test later on. 29053 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29054 if test "x$test_shortpath" = x; then 29055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29056 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29057 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29058 fi 29059 29060 # Call helper function which possibly converts this using DOS-style short mode. 29061 # If so, the updated path is stored in $new_path. 29062 29063 input_path="$new_path" 29064 # Check if we need to convert this using DOS-style short mode. If the path 29065 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29066 # take no chances and rewrite it. 29067 # Note: m4 eats our [], so we need to use [ and ] instead. 29068 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29069 if test "x$has_forbidden_chars" != x; then 29070 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29071 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29072 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29073 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29074 # Going to short mode and back again did indeed matter. Since short mode is 29075 # case insensitive, let's make it lowercase to improve readability. 29076 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29077 # Now convert it back to Unix-style (cygpath) 29078 input_path=`$CYGPATH -u "$shortmode_path"` 29079 new_path="$input_path" 29080 fi 29081 fi 29082 29083 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29084 if test "x$test_cygdrive_prefix" = x; then 29085 # As a simple fix, exclude /usr/bin since it's not a real path. 29086 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29087 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29088 # a path prefixed by /cygdrive for fixpath to work. 29089 new_path="$CYGWIN_ROOT_PATH$input_path" 29090 fi 29091 fi 29092 29093 29094 if test "x$path" != "x$new_path"; then 29095 BOOT_JDK="$new_path" 29096 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29097 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29098 fi 29099 29100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29101 29102 path="$BOOT_JDK" 29103 has_colon=`$ECHO $path | $GREP ^.:` 29104 new_path="$path" 29105 if test "x$has_colon" = x; then 29106 # Not in mixed or Windows style, start by that. 29107 new_path=`cmd //c echo $path` 29108 fi 29109 29110 29111 input_path="$new_path" 29112 # Check if we need to convert this using DOS-style short mode. If the path 29113 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29114 # take no chances and rewrite it. 29115 # Note: m4 eats our [], so we need to use [ and ] instead. 29116 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29117 if test "x$has_forbidden_chars" != x; then 29118 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29119 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29120 fi 29121 29122 29123 windows_path="$new_path" 29124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29125 unix_path=`$CYGPATH -u "$windows_path"` 29126 new_path="$unix_path" 29127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29129 new_path="$unix_path" 29130 fi 29131 29132 if test "x$path" != "x$new_path"; then 29133 BOOT_JDK="$new_path" 29134 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29135 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29136 fi 29137 29138 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29139 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29140 29141 else 29142 # We're on a unix platform. Hooray! :) 29143 path="$BOOT_JDK" 29144 has_space=`$ECHO "$path" | $GREP " "` 29145 if test "x$has_space" != x; then 29146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29147 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29148 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29149 fi 29150 29151 # Use eval to expand a potential ~ 29152 eval path="$path" 29153 if test ! -f "$path" && test ! -d "$path"; then 29154 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29155 fi 29156 29157 if test -d "$path"; then 29158 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29159 else 29160 dir="`$DIRNAME "$path"`" 29161 base="`$BASENAME "$path"`" 29162 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29163 fi 29164 fi 29165 fi 29166 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29168 $as_echo_n "checking for Boot JDK... " >&6; } 29169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29170 $as_echo "$BOOT_JDK" >&6; } 29171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29172 $as_echo_n "checking Boot JDK version... " >&6; } 29173 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29175 $as_echo "$BOOT_JDK_VERSION" >&6; } 29176 fi # end check jdk version 29177 fi # end check javac 29178 fi # end check java 29179 fi # end check boot jdk found 29180 fi 29181 29182 done 29183 fi 29184 29185 29186 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29187 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29188 # Do we have a bin/java? 29189 if test ! -x "$BOOT_JDK/bin/java"; then 29190 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29191 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29192 BOOT_JDK_FOUND=no 29193 else 29194 # Do we have a bin/javac? 29195 if test ! -x "$BOOT_JDK/bin/javac"; then 29196 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29197 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29198 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29199 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29200 BOOT_JDK_FOUND=no 29201 else 29202 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29203 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29204 29205 # Extra M4 quote needed to protect [] in grep expression. 29206 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29207 if test "x$FOUND_CORRECT_VERSION" = x; then 29208 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29209 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29210 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29211 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29212 BOOT_JDK_FOUND=no 29213 else 29214 # We're done! :-) 29215 BOOT_JDK_FOUND=yes 29216 29217 # Only process if variable expands to non-empty 29218 29219 if test "x$BOOT_JDK" != x; then 29220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29221 29222 # Input might be given as Windows format, start by converting to 29223 # unix format. 29224 path="$BOOT_JDK" 29225 new_path=`$CYGPATH -u "$path"` 29226 29227 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29228 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29229 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29230 # "foo.exe" is OK but "foo" is an error. 29231 # 29232 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29233 # It is also a way to make sure we got the proper file name for the real test later on. 29234 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29235 if test "x$test_shortpath" = x; then 29236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29238 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29239 fi 29240 29241 # Call helper function which possibly converts this using DOS-style short mode. 29242 # If so, the updated path is stored in $new_path. 29243 29244 input_path="$new_path" 29245 # Check if we need to convert this using DOS-style short mode. If the path 29246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29247 # take no chances and rewrite it. 29248 # Note: m4 eats our [], so we need to use [ and ] instead. 29249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29250 if test "x$has_forbidden_chars" != x; then 29251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29252 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29253 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29254 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29255 # Going to short mode and back again did indeed matter. Since short mode is 29256 # case insensitive, let's make it lowercase to improve readability. 29257 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29258 # Now convert it back to Unix-style (cygpath) 29259 input_path=`$CYGPATH -u "$shortmode_path"` 29260 new_path="$input_path" 29261 fi 29262 fi 29263 29264 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29265 if test "x$test_cygdrive_prefix" = x; then 29266 # As a simple fix, exclude /usr/bin since it's not a real path. 29267 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29268 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29269 # a path prefixed by /cygdrive for fixpath to work. 29270 new_path="$CYGWIN_ROOT_PATH$input_path" 29271 fi 29272 fi 29273 29274 29275 if test "x$path" != "x$new_path"; then 29276 BOOT_JDK="$new_path" 29277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29278 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29279 fi 29280 29281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29282 29283 path="$BOOT_JDK" 29284 has_colon=`$ECHO $path | $GREP ^.:` 29285 new_path="$path" 29286 if test "x$has_colon" = x; then 29287 # Not in mixed or Windows style, start by that. 29288 new_path=`cmd //c echo $path` 29289 fi 29290 29291 29292 input_path="$new_path" 29293 # Check if we need to convert this using DOS-style short mode. If the path 29294 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29295 # take no chances and rewrite it. 29296 # Note: m4 eats our [], so we need to use [ and ] instead. 29297 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29298 if test "x$has_forbidden_chars" != x; then 29299 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29300 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29301 fi 29302 29303 29304 windows_path="$new_path" 29305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29306 unix_path=`$CYGPATH -u "$windows_path"` 29307 new_path="$unix_path" 29308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29309 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29310 new_path="$unix_path" 29311 fi 29312 29313 if test "x$path" != "x$new_path"; then 29314 BOOT_JDK="$new_path" 29315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29316 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29317 fi 29318 29319 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29320 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29321 29322 else 29323 # We're on a unix platform. Hooray! :) 29324 path="$BOOT_JDK" 29325 has_space=`$ECHO "$path" | $GREP " "` 29326 if test "x$has_space" != x; then 29327 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29328 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29329 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29330 fi 29331 29332 # Use eval to expand a potential ~ 29333 eval path="$path" 29334 if test ! -f "$path" && test ! -d "$path"; then 29335 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29336 fi 29337 29338 if test -d "$path"; then 29339 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29340 else 29341 dir="`$DIRNAME "$path"`" 29342 base="`$BASENAME "$path"`" 29343 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29344 fi 29345 fi 29346 fi 29347 29348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29349 $as_echo_n "checking for Boot JDK... " >&6; } 29350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29351 $as_echo "$BOOT_JDK" >&6; } 29352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29353 $as_echo_n "checking Boot JDK version... " >&6; } 29354 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29356 $as_echo "$BOOT_JDK_VERSION" >&6; } 29357 fi # end check jdk version 29358 fi # end check javac 29359 fi # end check java 29360 fi # end check boot jdk found 29361 fi 29362 29363 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 29364 29365 if test "x$BOOT_JDK_FOUND" = xno; then 29366 # Now execute the test 29367 29368 BOOT_JDK_PREFIX="/usr/lib/jvm" 29369 BOOT_JDK_SUFFIX="" 29370 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29371 if test "x$ALL_JDKS_FOUND" != x; then 29372 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29373 29374 if test "x$BOOT_JDK_FOUND" = xno; then 29375 # Now execute the test 29376 29377 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29378 if test -d "$BOOT_JDK"; then 29379 BOOT_JDK_FOUND=maybe 29380 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29381 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29382 fi 29383 29384 29385 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29386 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29387 # Do we have a bin/java? 29388 if test ! -x "$BOOT_JDK/bin/java"; then 29389 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29390 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29391 BOOT_JDK_FOUND=no 29392 else 29393 # Do we have a bin/javac? 29394 if test ! -x "$BOOT_JDK/bin/javac"; then 29395 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29396 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29397 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29398 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29399 BOOT_JDK_FOUND=no 29400 else 29401 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29402 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29403 29404 # Extra M4 quote needed to protect [] in grep expression. 29405 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29406 if test "x$FOUND_CORRECT_VERSION" = x; then 29407 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29408 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29409 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29410 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29411 BOOT_JDK_FOUND=no 29412 else 29413 # We're done! :-) 29414 BOOT_JDK_FOUND=yes 29415 29416 # Only process if variable expands to non-empty 29417 29418 if test "x$BOOT_JDK" != x; then 29419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29420 29421 # Input might be given as Windows format, start by converting to 29422 # unix format. 29423 path="$BOOT_JDK" 29424 new_path=`$CYGPATH -u "$path"` 29425 29426 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29427 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29428 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29429 # "foo.exe" is OK but "foo" is an error. 29430 # 29431 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29432 # It is also a way to make sure we got the proper file name for the real test later on. 29433 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29434 if test "x$test_shortpath" = x; then 29435 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29436 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29437 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29438 fi 29439 29440 # Call helper function which possibly converts this using DOS-style short mode. 29441 # If so, the updated path is stored in $new_path. 29442 29443 input_path="$new_path" 29444 # Check if we need to convert this using DOS-style short mode. If the path 29445 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29446 # take no chances and rewrite it. 29447 # Note: m4 eats our [], so we need to use [ and ] instead. 29448 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29449 if test "x$has_forbidden_chars" != x; then 29450 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29451 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29452 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29453 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29454 # Going to short mode and back again did indeed matter. Since short mode is 29455 # case insensitive, let's make it lowercase to improve readability. 29456 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29457 # Now convert it back to Unix-style (cygpath) 29458 input_path=`$CYGPATH -u "$shortmode_path"` 29459 new_path="$input_path" 29460 fi 29461 fi 29462 29463 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29464 if test "x$test_cygdrive_prefix" = x; then 29465 # As a simple fix, exclude /usr/bin since it's not a real path. 29466 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29467 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29468 # a path prefixed by /cygdrive for fixpath to work. 29469 new_path="$CYGWIN_ROOT_PATH$input_path" 29470 fi 29471 fi 29472 29473 29474 if test "x$path" != "x$new_path"; then 29475 BOOT_JDK="$new_path" 29476 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29477 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29478 fi 29479 29480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29481 29482 path="$BOOT_JDK" 29483 has_colon=`$ECHO $path | $GREP ^.:` 29484 new_path="$path" 29485 if test "x$has_colon" = x; then 29486 # Not in mixed or Windows style, start by that. 29487 new_path=`cmd //c echo $path` 29488 fi 29489 29490 29491 input_path="$new_path" 29492 # Check if we need to convert this using DOS-style short mode. If the path 29493 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29494 # take no chances and rewrite it. 29495 # Note: m4 eats our [], so we need to use [ and ] instead. 29496 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29497 if test "x$has_forbidden_chars" != x; then 29498 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29499 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29500 fi 29501 29502 29503 windows_path="$new_path" 29504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29505 unix_path=`$CYGPATH -u "$windows_path"` 29506 new_path="$unix_path" 29507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29508 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29509 new_path="$unix_path" 29510 fi 29511 29512 if test "x$path" != "x$new_path"; then 29513 BOOT_JDK="$new_path" 29514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29515 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29516 fi 29517 29518 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29519 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29520 29521 else 29522 # We're on a unix platform. Hooray! :) 29523 path="$BOOT_JDK" 29524 has_space=`$ECHO "$path" | $GREP " "` 29525 if test "x$has_space" != x; then 29526 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29527 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29528 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29529 fi 29530 29531 # Use eval to expand a potential ~ 29532 eval path="$path" 29533 if test ! -f "$path" && test ! -d "$path"; then 29534 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29535 fi 29536 29537 if test -d "$path"; then 29538 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29539 else 29540 dir="`$DIRNAME "$path"`" 29541 base="`$BASENAME "$path"`" 29542 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29543 fi 29544 fi 29545 fi 29546 29547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29548 $as_echo_n "checking for Boot JDK... " >&6; } 29549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29550 $as_echo "$BOOT_JDK" >&6; } 29551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29552 $as_echo_n "checking Boot JDK version... " >&6; } 29553 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29555 $as_echo "$BOOT_JDK_VERSION" >&6; } 29556 fi # end check jdk version 29557 fi # end check javac 29558 fi # end check java 29559 fi # end check boot jdk found 29560 fi 29561 29562 done 29563 fi 29564 29565 29566 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29567 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29568 # Do we have a bin/java? 29569 if test ! -x "$BOOT_JDK/bin/java"; then 29570 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29571 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29572 BOOT_JDK_FOUND=no 29573 else 29574 # Do we have a bin/javac? 29575 if test ! -x "$BOOT_JDK/bin/javac"; then 29576 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29577 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29578 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29579 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29580 BOOT_JDK_FOUND=no 29581 else 29582 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29583 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29584 29585 # Extra M4 quote needed to protect [] in grep expression. 29586 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29587 if test "x$FOUND_CORRECT_VERSION" = x; then 29588 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29589 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29590 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29591 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29592 BOOT_JDK_FOUND=no 29593 else 29594 # We're done! :-) 29595 BOOT_JDK_FOUND=yes 29596 29597 # Only process if variable expands to non-empty 29598 29599 if test "x$BOOT_JDK" != x; then 29600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29601 29602 # Input might be given as Windows format, start by converting to 29603 # unix format. 29604 path="$BOOT_JDK" 29605 new_path=`$CYGPATH -u "$path"` 29606 29607 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29608 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29609 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29610 # "foo.exe" is OK but "foo" is an error. 29611 # 29612 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29613 # It is also a way to make sure we got the proper file name for the real test later on. 29614 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29615 if test "x$test_shortpath" = x; then 29616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29617 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29618 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29619 fi 29620 29621 # Call helper function which possibly converts this using DOS-style short mode. 29622 # If so, the updated path is stored in $new_path. 29623 29624 input_path="$new_path" 29625 # Check if we need to convert this using DOS-style short mode. If the path 29626 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29627 # take no chances and rewrite it. 29628 # Note: m4 eats our [], so we need to use [ and ] instead. 29629 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29630 if test "x$has_forbidden_chars" != x; then 29631 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29632 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29633 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29634 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29635 # Going to short mode and back again did indeed matter. Since short mode is 29636 # case insensitive, let's make it lowercase to improve readability. 29637 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29638 # Now convert it back to Unix-style (cygpath) 29639 input_path=`$CYGPATH -u "$shortmode_path"` 29640 new_path="$input_path" 29641 fi 29642 fi 29643 29644 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29645 if test "x$test_cygdrive_prefix" = x; then 29646 # As a simple fix, exclude /usr/bin since it's not a real path. 29647 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29648 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29649 # a path prefixed by /cygdrive for fixpath to work. 29650 new_path="$CYGWIN_ROOT_PATH$input_path" 29651 fi 29652 fi 29653 29654 29655 if test "x$path" != "x$new_path"; then 29656 BOOT_JDK="$new_path" 29657 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29658 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29659 fi 29660 29661 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29662 29663 path="$BOOT_JDK" 29664 has_colon=`$ECHO $path | $GREP ^.:` 29665 new_path="$path" 29666 if test "x$has_colon" = x; then 29667 # Not in mixed or Windows style, start by that. 29668 new_path=`cmd //c echo $path` 29669 fi 29670 29671 29672 input_path="$new_path" 29673 # Check if we need to convert this using DOS-style short mode. If the path 29674 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29675 # take no chances and rewrite it. 29676 # Note: m4 eats our [], so we need to use [ and ] instead. 29677 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29678 if test "x$has_forbidden_chars" != x; then 29679 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29680 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29681 fi 29682 29683 29684 windows_path="$new_path" 29685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29686 unix_path=`$CYGPATH -u "$windows_path"` 29687 new_path="$unix_path" 29688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29689 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29690 new_path="$unix_path" 29691 fi 29692 29693 if test "x$path" != "x$new_path"; then 29694 BOOT_JDK="$new_path" 29695 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29696 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29697 fi 29698 29699 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29700 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29701 29702 else 29703 # We're on a unix platform. Hooray! :) 29704 path="$BOOT_JDK" 29705 has_space=`$ECHO "$path" | $GREP " "` 29706 if test "x$has_space" != x; then 29707 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29708 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29709 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29710 fi 29711 29712 # Use eval to expand a potential ~ 29713 eval path="$path" 29714 if test ! -f "$path" && test ! -d "$path"; then 29715 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29716 fi 29717 29718 if test -d "$path"; then 29719 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29720 else 29721 dir="`$DIRNAME "$path"`" 29722 base="`$BASENAME "$path"`" 29723 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29724 fi 29725 fi 29726 fi 29727 29728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29729 $as_echo_n "checking for Boot JDK... " >&6; } 29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29731 $as_echo "$BOOT_JDK" >&6; } 29732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29733 $as_echo_n "checking Boot JDK version... " >&6; } 29734 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29736 $as_echo "$BOOT_JDK_VERSION" >&6; } 29737 fi # end check jdk version 29738 fi # end check javac 29739 fi # end check java 29740 fi # end check boot jdk found 29741 fi 29742 29743 fi 29744 29745 29746 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29747 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29748 # Do we have a bin/java? 29749 if test ! -x "$BOOT_JDK/bin/java"; then 29750 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29751 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29752 BOOT_JDK_FOUND=no 29753 else 29754 # Do we have a bin/javac? 29755 if test ! -x "$BOOT_JDK/bin/javac"; then 29756 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29757 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29758 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29759 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29760 BOOT_JDK_FOUND=no 29761 else 29762 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29763 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29764 29765 # Extra M4 quote needed to protect [] in grep expression. 29766 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29767 if test "x$FOUND_CORRECT_VERSION" = x; then 29768 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29769 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29770 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29771 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29772 BOOT_JDK_FOUND=no 29773 else 29774 # We're done! :-) 29775 BOOT_JDK_FOUND=yes 29776 29777 # Only process if variable expands to non-empty 29778 29779 if test "x$BOOT_JDK" != x; then 29780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29781 29782 # Input might be given as Windows format, start by converting to 29783 # unix format. 29784 path="$BOOT_JDK" 29785 new_path=`$CYGPATH -u "$path"` 29786 29787 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29788 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29789 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29790 # "foo.exe" is OK but "foo" is an error. 29791 # 29792 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29793 # It is also a way to make sure we got the proper file name for the real test later on. 29794 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29795 if test "x$test_shortpath" = x; then 29796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29797 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29798 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29799 fi 29800 29801 # Call helper function which possibly converts this using DOS-style short mode. 29802 # If so, the updated path is stored in $new_path. 29803 29804 input_path="$new_path" 29805 # Check if we need to convert this using DOS-style short mode. If the path 29806 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29807 # take no chances and rewrite it. 29808 # Note: m4 eats our [], so we need to use [ and ] instead. 29809 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29810 if test "x$has_forbidden_chars" != x; then 29811 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29812 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29813 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29814 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29815 # Going to short mode and back again did indeed matter. Since short mode is 29816 # case insensitive, let's make it lowercase to improve readability. 29817 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29818 # Now convert it back to Unix-style (cygpath) 29819 input_path=`$CYGPATH -u "$shortmode_path"` 29820 new_path="$input_path" 29821 fi 29822 fi 29823 29824 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29825 if test "x$test_cygdrive_prefix" = x; then 29826 # As a simple fix, exclude /usr/bin since it's not a real path. 29827 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29828 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29829 # a path prefixed by /cygdrive for fixpath to work. 29830 new_path="$CYGWIN_ROOT_PATH$input_path" 29831 fi 29832 fi 29833 29834 29835 if test "x$path" != "x$new_path"; then 29836 BOOT_JDK="$new_path" 29837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29838 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29839 fi 29840 29841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29842 29843 path="$BOOT_JDK" 29844 has_colon=`$ECHO $path | $GREP ^.:` 29845 new_path="$path" 29846 if test "x$has_colon" = x; then 29847 # Not in mixed or Windows style, start by that. 29848 new_path=`cmd //c echo $path` 29849 fi 29850 29851 29852 input_path="$new_path" 29853 # Check if we need to convert this using DOS-style short mode. If the path 29854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29855 # take no chances and rewrite it. 29856 # Note: m4 eats our [], so we need to use [ and ] instead. 29857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29858 if test "x$has_forbidden_chars" != x; then 29859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29860 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29861 fi 29862 29863 29864 windows_path="$new_path" 29865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29866 unix_path=`$CYGPATH -u "$windows_path"` 29867 new_path="$unix_path" 29868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29869 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29870 new_path="$unix_path" 29871 fi 29872 29873 if test "x$path" != "x$new_path"; then 29874 BOOT_JDK="$new_path" 29875 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29876 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29877 fi 29878 29879 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29880 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29881 29882 else 29883 # We're on a unix platform. Hooray! :) 29884 path="$BOOT_JDK" 29885 has_space=`$ECHO "$path" | $GREP " "` 29886 if test "x$has_space" != x; then 29887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29888 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29889 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29890 fi 29891 29892 # Use eval to expand a potential ~ 29893 eval path="$path" 29894 if test ! -f "$path" && test ! -d "$path"; then 29895 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29896 fi 29897 29898 if test -d "$path"; then 29899 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29900 else 29901 dir="`$DIRNAME "$path"`" 29902 base="`$BASENAME "$path"`" 29903 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29904 fi 29905 fi 29906 fi 29907 29908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29909 $as_echo_n "checking for Boot JDK... " >&6; } 29910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29911 $as_echo "$BOOT_JDK" >&6; } 29912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29913 $as_echo_n "checking Boot JDK version... " >&6; } 29914 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29916 $as_echo "$BOOT_JDK_VERSION" >&6; } 29917 fi # end check jdk version 29918 fi # end check javac 29919 fi # end check java 29920 fi # end check boot jdk found 29921 fi 29922 29923 29924 # If we haven't found anything yet, we've truly lost. Give up. 29925 if test "x$BOOT_JDK_FOUND" = xno; then 29926 29927 # Print a helpful message on how to acquire the necessary build dependency. 29928 # openjdk is the help tag: freetype, cups, alsa etc 29929 MISSING_DEPENDENCY=openjdk 29930 29931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29932 cygwin_help $MISSING_DEPENDENCY 29933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29934 msys_help $MISSING_DEPENDENCY 29935 else 29936 PKGHANDLER_COMMAND= 29937 29938 case $PKGHANDLER in 29939 apt-get) 29940 apt_help $MISSING_DEPENDENCY ;; 29941 yum) 29942 yum_help $MISSING_DEPENDENCY ;; 29943 port) 29944 port_help $MISSING_DEPENDENCY ;; 29945 pkgutil) 29946 pkgutil_help $MISSING_DEPENDENCY ;; 29947 pkgadd) 29948 pkgadd_help $MISSING_DEPENDENCY ;; 29949 esac 29950 29951 if test "x$PKGHANDLER_COMMAND" != x; then 29952 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29953 fi 29954 fi 29955 29956 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 29957 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 29958 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 29959 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29960 as_fn_error $? "Cannot continue" "$LINENO" 5 29961 fi 29962 29963 29964 29965 # Setup tools from the Boot JDK. 29966 29967 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29968 29969 # Publish this variable in the help. 29970 29971 29972 if [ -z "${JAVA+x}" ]; then 29973 # The variable is not set by user, try to locate tool using the code snippet 29974 29975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 29976 $as_echo_n "checking for java in Boot JDK... " >&6; } 29977 JAVA=$BOOT_JDK/bin/java 29978 if test ! -x $JAVA; then 29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29980 $as_echo "not found" >&6; } 29981 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29982 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29983 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 29984 fi 29985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29986 $as_echo "ok" >&6; } 29987 29988 29989 else 29990 # The variable is set, but is it from the command line or the environment? 29991 29992 # Try to remove the string !JAVA! from our list. 29993 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 29994 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29995 # If it failed, the variable was not from the command line. Ignore it, 29996 # but warn the user (except for BASH, which is always set by the calling BASH). 29997 if test "xJAVA" != xBASH; then 29998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 29999 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 30000 fi 30001 # Try to locate tool using the code snippet 30002 30003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30004 $as_echo_n "checking for java in Boot JDK... " >&6; } 30005 JAVA=$BOOT_JDK/bin/java 30006 if test ! -x $JAVA; then 30007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30008 $as_echo "not found" >&6; } 30009 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30010 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30011 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30012 fi 30013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30014 $as_echo "ok" >&6; } 30015 30016 30017 else 30018 # If it succeeded, then it was overridden by the user. We will use it 30019 # for the tool. 30020 30021 # First remove it from the list of overridden variables, so we can test 30022 # for unknown variables in the end. 30023 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30024 30025 # Check if we try to supply an empty value 30026 if test "x$JAVA" = x; then 30027 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30028 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30030 $as_echo_n "checking for JAVA... " >&6; } 30031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30032 $as_echo "disabled" >&6; } 30033 else 30034 # Check if the provided tool contains a complete path. 30035 tool_specified="$JAVA" 30036 tool_basename="${tool_specified##*/}" 30037 if test "x$tool_basename" = "x$tool_specified"; then 30038 # A command without a complete path is provided, search $PATH. 30039 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30040 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30041 # Extract the first word of "$tool_basename", so it can be a program name with args. 30042 set dummy $tool_basename; ac_word=$2 30043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30044 $as_echo_n "checking for $ac_word... " >&6; } 30045 if ${ac_cv_path_JAVA+:} false; then : 30046 $as_echo_n "(cached) " >&6 30047 else 30048 case $JAVA in 30049 [\\/]* | ?:[\\/]*) 30050 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30051 ;; 30052 *) 30053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30054 for as_dir in $PATH 30055 do 30056 IFS=$as_save_IFS 30057 test -z "$as_dir" && as_dir=. 30058 for ac_exec_ext in '' $ac_executable_extensions; do 30059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30060 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30062 break 2 30063 fi 30064 done 30065 done 30066 IFS=$as_save_IFS 30067 30068 ;; 30069 esac 30070 fi 30071 JAVA=$ac_cv_path_JAVA 30072 if test -n "$JAVA"; then 30073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30074 $as_echo "$JAVA" >&6; } 30075 else 30076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30077 $as_echo "no" >&6; } 30078 fi 30079 30080 30081 if test "x$JAVA" = x; then 30082 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30083 fi 30084 else 30085 # Otherwise we believe it is a complete path. Use it as it is. 30086 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30087 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30089 $as_echo_n "checking for JAVA... " >&6; } 30090 if test ! -x "$tool_specified"; then 30091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30092 $as_echo "not found" >&6; } 30093 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30094 fi 30095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30096 $as_echo "$tool_specified" >&6; } 30097 fi 30098 fi 30099 fi 30100 30101 fi 30102 30103 30104 30105 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30106 30107 # Publish this variable in the help. 30108 30109 30110 if [ -z "${JAVAC+x}" ]; then 30111 # The variable is not set by user, try to locate tool using the code snippet 30112 30113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30114 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30115 JAVAC=$BOOT_JDK/bin/javac 30116 if test ! -x $JAVAC; then 30117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30118 $as_echo "not found" >&6; } 30119 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30120 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30121 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30122 fi 30123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30124 $as_echo "ok" >&6; } 30125 30126 30127 else 30128 # The variable is set, but is it from the command line or the environment? 30129 30130 # Try to remove the string !JAVAC! from our list. 30131 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30132 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30133 # If it failed, the variable was not from the command line. Ignore it, 30134 # but warn the user (except for BASH, which is always set by the calling BASH). 30135 if test "xJAVAC" != xBASH; then 30136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30137 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30138 fi 30139 # Try to locate tool using the code snippet 30140 30141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30142 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30143 JAVAC=$BOOT_JDK/bin/javac 30144 if test ! -x $JAVAC; then 30145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30146 $as_echo "not found" >&6; } 30147 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30148 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30149 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30150 fi 30151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30152 $as_echo "ok" >&6; } 30153 30154 30155 else 30156 # If it succeeded, then it was overridden by the user. We will use it 30157 # for the tool. 30158 30159 # First remove it from the list of overridden variables, so we can test 30160 # for unknown variables in the end. 30161 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30162 30163 # Check if we try to supply an empty value 30164 if test "x$JAVAC" = x; then 30165 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30166 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30168 $as_echo_n "checking for JAVAC... " >&6; } 30169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30170 $as_echo "disabled" >&6; } 30171 else 30172 # Check if the provided tool contains a complete path. 30173 tool_specified="$JAVAC" 30174 tool_basename="${tool_specified##*/}" 30175 if test "x$tool_basename" = "x$tool_specified"; then 30176 # A command without a complete path is provided, search $PATH. 30177 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30178 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30179 # Extract the first word of "$tool_basename", so it can be a program name with args. 30180 set dummy $tool_basename; ac_word=$2 30181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30182 $as_echo_n "checking for $ac_word... " >&6; } 30183 if ${ac_cv_path_JAVAC+:} false; then : 30184 $as_echo_n "(cached) " >&6 30185 else 30186 case $JAVAC in 30187 [\\/]* | ?:[\\/]*) 30188 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30189 ;; 30190 *) 30191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30192 for as_dir in $PATH 30193 do 30194 IFS=$as_save_IFS 30195 test -z "$as_dir" && as_dir=. 30196 for ac_exec_ext in '' $ac_executable_extensions; do 30197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30198 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30200 break 2 30201 fi 30202 done 30203 done 30204 IFS=$as_save_IFS 30205 30206 ;; 30207 esac 30208 fi 30209 JAVAC=$ac_cv_path_JAVAC 30210 if test -n "$JAVAC"; then 30211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30212 $as_echo "$JAVAC" >&6; } 30213 else 30214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30215 $as_echo "no" >&6; } 30216 fi 30217 30218 30219 if test "x$JAVAC" = x; then 30220 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30221 fi 30222 else 30223 # Otherwise we believe it is a complete path. Use it as it is. 30224 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 30225 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 30226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30227 $as_echo_n "checking for JAVAC... " >&6; } 30228 if test ! -x "$tool_specified"; then 30229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30230 $as_echo "not found" >&6; } 30231 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 30232 fi 30233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30234 $as_echo "$tool_specified" >&6; } 30235 fi 30236 fi 30237 fi 30238 30239 fi 30240 30241 30242 30243 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30244 30245 # Publish this variable in the help. 30246 30247 30248 if [ -z "${JAVAH+x}" ]; then 30249 # The variable is not set by user, try to locate tool using the code snippet 30250 30251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30252 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30253 JAVAH=$BOOT_JDK/bin/javah 30254 if test ! -x $JAVAH; then 30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30256 $as_echo "not found" >&6; } 30257 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30258 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30259 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30260 fi 30261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30262 $as_echo "ok" >&6; } 30263 30264 30265 else 30266 # The variable is set, but is it from the command line or the environment? 30267 30268 # Try to remove the string !JAVAH! from our list. 30269 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 30270 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30271 # If it failed, the variable was not from the command line. Ignore it, 30272 # but warn the user (except for BASH, which is always set by the calling BASH). 30273 if test "xJAVAH" != xBASH; then 30274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 30275 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 30276 fi 30277 # Try to locate tool using the code snippet 30278 30279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30280 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30281 JAVAH=$BOOT_JDK/bin/javah 30282 if test ! -x $JAVAH; then 30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30284 $as_echo "not found" >&6; } 30285 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30286 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30287 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30288 fi 30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30290 $as_echo "ok" >&6; } 30291 30292 30293 else 30294 # If it succeeded, then it was overridden by the user. We will use it 30295 # for the tool. 30296 30297 # First remove it from the list of overridden variables, so we can test 30298 # for unknown variables in the end. 30299 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30300 30301 # Check if we try to supply an empty value 30302 if test "x$JAVAH" = x; then 30303 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 30304 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30306 $as_echo_n "checking for JAVAH... " >&6; } 30307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30308 $as_echo "disabled" >&6; } 30309 else 30310 # Check if the provided tool contains a complete path. 30311 tool_specified="$JAVAH" 30312 tool_basename="${tool_specified##*/}" 30313 if test "x$tool_basename" = "x$tool_specified"; then 30314 # A command without a complete path is provided, search $PATH. 30315 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 30316 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 30317 # Extract the first word of "$tool_basename", so it can be a program name with args. 30318 set dummy $tool_basename; ac_word=$2 30319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30320 $as_echo_n "checking for $ac_word... " >&6; } 30321 if ${ac_cv_path_JAVAH+:} false; then : 30322 $as_echo_n "(cached) " >&6 30323 else 30324 case $JAVAH in 30325 [\\/]* | ?:[\\/]*) 30326 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 30327 ;; 30328 *) 30329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30330 for as_dir in $PATH 30331 do 30332 IFS=$as_save_IFS 30333 test -z "$as_dir" && as_dir=. 30334 for ac_exec_ext in '' $ac_executable_extensions; do 30335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30336 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 30337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30338 break 2 30339 fi 30340 done 30341 done 30342 IFS=$as_save_IFS 30343 30344 ;; 30345 esac 30346 fi 30347 JAVAH=$ac_cv_path_JAVAH 30348 if test -n "$JAVAH"; then 30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 30350 $as_echo "$JAVAH" >&6; } 30351 else 30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30353 $as_echo "no" >&6; } 30354 fi 30355 30356 30357 if test "x$JAVAH" = x; then 30358 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30359 fi 30360 else 30361 # Otherwise we believe it is a complete path. Use it as it is. 30362 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 30363 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 30364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30365 $as_echo_n "checking for JAVAH... " >&6; } 30366 if test ! -x "$tool_specified"; then 30367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30368 $as_echo "not found" >&6; } 30369 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 30370 fi 30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30372 $as_echo "$tool_specified" >&6; } 30373 fi 30374 fi 30375 fi 30376 30377 fi 30378 30379 30380 30381 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30382 30383 # Publish this variable in the help. 30384 30385 30386 if [ -z "${JAR+x}" ]; then 30387 # The variable is not set by user, try to locate tool using the code snippet 30388 30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 30390 $as_echo_n "checking for jar in Boot JDK... " >&6; } 30391 JAR=$BOOT_JDK/bin/jar 30392 if test ! -x $JAR; then 30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30394 $as_echo "not found" >&6; } 30395 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30396 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30397 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 30398 fi 30399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30400 $as_echo "ok" >&6; } 30401 30402 30403 else 30404 # The variable is set, but is it from the command line or the environment? 30405 30406 # Try to remove the string !JAR! from our list. 30407 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 30408 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30409 # If it failed, the variable was not from the command line. Ignore it, 30410 # but warn the user (except for BASH, which is always set by the calling BASH). 30411 if test "xJAR" != xBASH; then 30412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 30413 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 30414 fi 30415 # Try to locate tool using the code snippet 30416 30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 30418 $as_echo_n "checking for jar in Boot JDK... " >&6; } 30419 JAR=$BOOT_JDK/bin/jar 30420 if test ! -x $JAR; then 30421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30422 $as_echo "not found" >&6; } 30423 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30424 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30425 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 30426 fi 30427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30428 $as_echo "ok" >&6; } 30429 30430 30431 else 30432 # If it succeeded, then it was overridden by the user. We will use it 30433 # for the tool. 30434 30435 # First remove it from the list of overridden variables, so we can test 30436 # for unknown variables in the end. 30437 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30438 30439 # Check if we try to supply an empty value 30440 if test "x$JAR" = x; then 30441 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 30442 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 30443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 30444 $as_echo_n "checking for JAR... " >&6; } 30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30446 $as_echo "disabled" >&6; } 30447 else 30448 # Check if the provided tool contains a complete path. 30449 tool_specified="$JAR" 30450 tool_basename="${tool_specified##*/}" 30451 if test "x$tool_basename" = "x$tool_specified"; then 30452 # A command without a complete path is provided, search $PATH. 30453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 30454 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 30455 # Extract the first word of "$tool_basename", so it can be a program name with args. 30456 set dummy $tool_basename; ac_word=$2 30457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30458 $as_echo_n "checking for $ac_word... " >&6; } 30459 if ${ac_cv_path_JAR+:} false; then : 30460 $as_echo_n "(cached) " >&6 30461 else 30462 case $JAR in 30463 [\\/]* | ?:[\\/]*) 30464 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 30465 ;; 30466 *) 30467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30468 for as_dir in $PATH 30469 do 30470 IFS=$as_save_IFS 30471 test -z "$as_dir" && as_dir=. 30472 for ac_exec_ext in '' $ac_executable_extensions; do 30473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30474 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 30475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30476 break 2 30477 fi 30478 done 30479 done 30480 IFS=$as_save_IFS 30481 30482 ;; 30483 esac 30484 fi 30485 JAR=$ac_cv_path_JAR 30486 if test -n "$JAR"; then 30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 30488 $as_echo "$JAR" >&6; } 30489 else 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30491 $as_echo "no" >&6; } 30492 fi 30493 30494 30495 if test "x$JAR" = x; then 30496 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30497 fi 30498 else 30499 # Otherwise we believe it is a complete path. Use it as it is. 30500 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 30501 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 30502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 30503 $as_echo_n "checking for JAR... " >&6; } 30504 if test ! -x "$tool_specified"; then 30505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30506 $as_echo "not found" >&6; } 30507 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 30508 fi 30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30510 $as_echo "$tool_specified" >&6; } 30511 fi 30512 fi 30513 fi 30514 30515 fi 30516 30517 30518 30519 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30520 30521 # Publish this variable in the help. 30522 30523 30524 if [ -z "${JARSIGNER+x}" ]; then 30525 # The variable is not set by user, try to locate tool using the code snippet 30526 30527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30528 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30529 JARSIGNER=$BOOT_JDK/bin/jarsigner 30530 if test ! -x $JARSIGNER; then 30531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30532 $as_echo "not found" >&6; } 30533 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30534 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30535 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30536 fi 30537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30538 $as_echo "ok" >&6; } 30539 30540 30541 else 30542 # The variable is set, but is it from the command line or the environment? 30543 30544 # Try to remove the string !JARSIGNER! from our list. 30545 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 30546 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30547 # If it failed, the variable was not from the command line. Ignore it, 30548 # but warn the user (except for BASH, which is always set by the calling BASH). 30549 if test "xJARSIGNER" != xBASH; then 30550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 30551 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 30552 fi 30553 # Try to locate tool using the code snippet 30554 30555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30556 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30557 JARSIGNER=$BOOT_JDK/bin/jarsigner 30558 if test ! -x $JARSIGNER; then 30559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30560 $as_echo "not found" >&6; } 30561 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30562 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30563 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30564 fi 30565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30566 $as_echo "ok" >&6; } 30567 30568 30569 else 30570 # If it succeeded, then it was overridden by the user. We will use it 30571 # for the tool. 30572 30573 # First remove it from the list of overridden variables, so we can test 30574 # for unknown variables in the end. 30575 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30576 30577 # Check if we try to supply an empty value 30578 if test "x$JARSIGNER" = x; then 30579 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 30580 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 30581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30582 $as_echo_n "checking for JARSIGNER... " >&6; } 30583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30584 $as_echo "disabled" >&6; } 30585 else 30586 # Check if the provided tool contains a complete path. 30587 tool_specified="$JARSIGNER" 30588 tool_basename="${tool_specified##*/}" 30589 if test "x$tool_basename" = "x$tool_specified"; then 30590 # A command without a complete path is provided, search $PATH. 30591 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 30592 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 30593 # Extract the first word of "$tool_basename", so it can be a program name with args. 30594 set dummy $tool_basename; ac_word=$2 30595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30596 $as_echo_n "checking for $ac_word... " >&6; } 30597 if ${ac_cv_path_JARSIGNER+:} false; then : 30598 $as_echo_n "(cached) " >&6 30599 else 30600 case $JARSIGNER in 30601 [\\/]* | ?:[\\/]*) 30602 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 30603 ;; 30604 *) 30605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30606 for as_dir in $PATH 30607 do 30608 IFS=$as_save_IFS 30609 test -z "$as_dir" && as_dir=. 30610 for ac_exec_ext in '' $ac_executable_extensions; do 30611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30612 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 30613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30614 break 2 30615 fi 30616 done 30617 done 30618 IFS=$as_save_IFS 30619 30620 ;; 30621 esac 30622 fi 30623 JARSIGNER=$ac_cv_path_JARSIGNER 30624 if test -n "$JARSIGNER"; then 30625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 30626 $as_echo "$JARSIGNER" >&6; } 30627 else 30628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30629 $as_echo "no" >&6; } 30630 fi 30631 30632 30633 if test "x$JARSIGNER" = x; then 30634 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30635 fi 30636 else 30637 # Otherwise we believe it is a complete path. Use it as it is. 30638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 30639 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 30640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30641 $as_echo_n "checking for JARSIGNER... " >&6; } 30642 if test ! -x "$tool_specified"; then 30643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30644 $as_echo "not found" >&6; } 30645 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 30646 fi 30647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30648 $as_echo "$tool_specified" >&6; } 30649 fi 30650 fi 30651 fi 30652 30653 fi 30654 30655 30656 30657 # Finally, set some other options... 30658 30659 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 30660 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 30661 30662 30663 30664 $ECHO "Check if jvm arg is ok: --patch-module foo=bar" >&5 30665 $ECHO "Command: $JAVA --patch-module foo=bar -version" >&5 30666 OUTPUT=`$JAVA --patch-module foo=bar -version 2>&1` 30667 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 30668 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 30669 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 30670 dummy="$dummy --patch-module foo=bar" 30671 JVM_ARG_OK=true 30672 else 30673 $ECHO "Arg failed:" >&5 30674 $ECHO "$OUTPUT" >&5 30675 JVM_ARG_OK=false 30676 fi 30677 30678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK supports modules" >&5 30679 $as_echo_n "checking if Boot JDK supports modules... " >&6; } 30680 if test "x$JVM_ARG_OK" = "xtrue"; then 30681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30682 $as_echo "yes" >&6; } 30683 BOOT_JDK_MODULAR="true" 30684 else 30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30686 $as_echo "no" >&6; } 30687 BOOT_JDK_MODULAR="false" 30688 fi 30689 30690 30691 30692 30693 # Check if the boot jdk is 32 or 64 bit 30694 if "$JAVA" -d64 -version > /dev/null 2>&1; then 30695 BOOT_JDK_BITS="64" 30696 else 30697 BOOT_JDK_BITS="32" 30698 fi 30699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 30700 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 30701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 30702 $as_echo "$BOOT_JDK_BITS" >&6; } 30703 30704 30705 30706 30707 # Check whether --with-build-jdk was given. 30708 if test "${with_build_jdk+set}" = set; then : 30709 withval=$with_build_jdk; 30710 fi 30711 30712 30713 CREATE_BUILDJDK=false 30714 EXTERNAL_BUILDJDK=false 30715 BUILD_JDK_FOUND="no" 30716 if test "x$with_build_jdk" != "x"; then 30717 30718 if test "x$BUILD_JDK_FOUND" = xno; then 30719 # Execute the test 30720 30721 if test "x$with_build_jdk" != x; then 30722 BUILD_JDK=$with_build_jdk 30723 BUILD_JDK_FOUND=maybe 30724 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 30725 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 30726 fi 30727 30728 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30729 if test "x$BUILD_JDK_FOUND" = xmaybe; then 30730 # Do we have a bin/java? 30731 if test ! -x "$BUILD_JDK/bin/java"; then 30732 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 30733 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 30734 BUILD_JDK_FOUND=no 30735 elif test ! -x "$BUILD_JDK/bin/jlink"; then 30736 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 30737 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 30738 BUILD_JDK_FOUND=no 30739 elif test ! -x "$BUILD_JDK/bin/jmod"; then 30740 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 30741 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 30742 BUILD_JDK_FOUND=no 30743 elif test ! -x "$BUILD_JDK/bin/javac"; then 30744 # Do we have a bin/javac? 30745 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 30746 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 30747 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 30748 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 30749 BUILD_JDK_FOUND=no 30750 else 30751 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30752 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30753 30754 # Extra M4 quote needed to protect [] in grep expression. 30755 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"'` 30756 if test "x$FOUND_CORRECT_VERSION" = x; then 30757 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 30758 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 30759 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 9)" >&5 30760 $as_echo "$as_me: (Your Build JDK must be version 9)" >&6;} 30761 BUILD_JDK_FOUND=no 30762 else 30763 # We're done! 30764 BUILD_JDK_FOUND=yes 30765 30766 # Only process if variable expands to non-empty 30767 30768 if test "x$BUILD_JDK" != x; then 30769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30770 30771 # Input might be given as Windows format, start by converting to 30772 # unix format. 30773 path="$BUILD_JDK" 30774 new_path=`$CYGPATH -u "$path"` 30775 30776 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30777 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30778 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30779 # "foo.exe" is OK but "foo" is an error. 30780 # 30781 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30782 # It is also a way to make sure we got the proper file name for the real test later on. 30783 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30784 if test "x$test_shortpath" = x; then 30785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 30786 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 30787 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 30788 fi 30789 30790 # Call helper function which possibly converts this using DOS-style short mode. 30791 # If so, the updated path is stored in $new_path. 30792 30793 input_path="$new_path" 30794 # Check if we need to convert this using DOS-style short mode. If the path 30795 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30796 # take no chances and rewrite it. 30797 # Note: m4 eats our [], so we need to use [ and ] instead. 30798 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30799 if test "x$has_forbidden_chars" != x; then 30800 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30801 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30802 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30803 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30804 # Going to short mode and back again did indeed matter. Since short mode is 30805 # case insensitive, let's make it lowercase to improve readability. 30806 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30807 # Now convert it back to Unix-style (cygpath) 30808 input_path=`$CYGPATH -u "$shortmode_path"` 30809 new_path="$input_path" 30810 fi 30811 fi 30812 30813 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30814 if test "x$test_cygdrive_prefix" = x; then 30815 # As a simple fix, exclude /usr/bin since it's not a real path. 30816 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30817 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30818 # a path prefixed by /cygdrive for fixpath to work. 30819 new_path="$CYGWIN_ROOT_PATH$input_path" 30820 fi 30821 fi 30822 30823 30824 if test "x$path" != "x$new_path"; then 30825 BUILD_JDK="$new_path" 30826 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 30827 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 30828 fi 30829 30830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30831 30832 path="$BUILD_JDK" 30833 has_colon=`$ECHO $path | $GREP ^.:` 30834 new_path="$path" 30835 if test "x$has_colon" = x; then 30836 # Not in mixed or Windows style, start by that. 30837 new_path=`cmd //c echo $path` 30838 fi 30839 30840 30841 input_path="$new_path" 30842 # Check if we need to convert this using DOS-style short mode. If the path 30843 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30844 # take no chances and rewrite it. 30845 # Note: m4 eats our [], so we need to use [ and ] instead. 30846 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30847 if test "x$has_forbidden_chars" != x; then 30848 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30849 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30850 fi 30851 30852 30853 windows_path="$new_path" 30854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30855 unix_path=`$CYGPATH -u "$windows_path"` 30856 new_path="$unix_path" 30857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30859 new_path="$unix_path" 30860 fi 30861 30862 if test "x$path" != "x$new_path"; then 30863 BUILD_JDK="$new_path" 30864 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 30865 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 30866 fi 30867 30868 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30869 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30870 30871 else 30872 # We're on a unix platform. Hooray! :) 30873 path="$BUILD_JDK" 30874 has_space=`$ECHO "$path" | $GREP " "` 30875 if test "x$has_space" != x; then 30876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 30877 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 30878 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30879 fi 30880 30881 # Use eval to expand a potential ~ 30882 eval path="$path" 30883 if test ! -f "$path" && test ! -d "$path"; then 30884 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30885 fi 30886 30887 if test -d "$path"; then 30888 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 30889 else 30890 dir="`$DIRNAME "$path"`" 30891 base="`$BASENAME "$path"`" 30892 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30893 fi 30894 fi 30895 fi 30896 30897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30898 $as_echo_n "checking for Build JDK... " >&6; } 30899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 30900 $as_echo "$BUILD_JDK" >&6; } 30901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 30902 $as_echo_n "checking Build JDK version... " >&6; } 30903 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 30905 $as_echo "$BUILD_JDK_VERSION" >&6; } 30906 fi # end check jdk version 30907 fi # end check java 30908 fi # end check build jdk found 30909 fi 30910 30911 EXTERNAL_BUILDJDK=true 30912 else 30913 if test "x$COMPILE_TYPE" = "xcross"; then 30914 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 30915 BUILD_JDK_FOUND=yes 30916 CREATE_BUILDJDK=true 30917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30918 $as_echo_n "checking for Build JDK... " >&6; } 30919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 30920 $as_echo "yes, will build it for the host platform" >&6; } 30921 else 30922 BUILD_JDK="\$(JDK_OUTPUTDIR)" 30923 BUILD_JDK_FOUND=yes 30924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30925 $as_echo_n "checking for Build JDK... " >&6; } 30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 30927 $as_echo "yes, will use output dir" >&6; } 30928 fi 30929 fi 30930 30931 JMOD="$BUILD_JDK/bin/jmod" 30932 JLINK="$BUILD_JDK/bin/jlink" 30933 30934 30935 30936 if test "x$BUILD_JDK_FOUND" != "xyes"; then 30937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30938 $as_echo_n "checking for Build JDK... " >&6; } 30939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30940 $as_echo "no" >&6; } 30941 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 30942 fi 30943 30944 30945 30946 30947 30948 30949 ############################################################################### 30950 # 30951 # Configure the sources to use. We can add or override individual directories. 30952 # 30953 ############################################################################### 30954 30955 30956 # Where are the sources. 30957 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 30958 CORBA_TOPDIR="$SRC_ROOT/corba" 30959 JAXP_TOPDIR="$SRC_ROOT/jaxp" 30960 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 30961 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 30962 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 30963 JDK_TOPDIR="$SRC_ROOT/jdk" 30964 30965 30966 30967 30968 30969 30970 30971 30972 30973 # This feature is no longer supported. 30974 30975 30976 30977 # Check whether --with-add-source-root was given. 30978 if test "${with_add_source_root+set}" = set; then : 30979 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 30980 $as_echo "$as_me: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&2;} 30981 fi 30982 30983 30984 30985 30986 # Check whether --with-override-source-root was given. 30987 if test "${with_override_source_root+set}" = set; then : 30988 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 30989 $as_echo "$as_me: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&2;} 30990 fi 30991 30992 30993 30994 30995 # Check whether --with-adds-and-overrides was given. 30996 if test "${with_adds_and_overrides+set}" = set; then : 30997 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 30998 $as_echo "$as_me: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&2;} 30999 fi 31000 31001 31002 31003 31004 # Check whether --with-override-langtools was given. 31005 if test "${with_override_langtools+set}" = set; then : 31006 withval=$with_override_langtools; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&5 31007 $as_echo "$as_me: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&2;} 31008 fi 31009 31010 31011 31012 31013 # Check whether --with-override-corba was given. 31014 if test "${with_override_corba+set}" = set; then : 31015 withval=$with_override_corba; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-corba is deprecated and will be ignored." >&5 31016 $as_echo "$as_me: WARNING: Option --with-override-corba is deprecated and will be ignored." >&2;} 31017 fi 31018 31019 31020 31021 31022 # Check whether --with-override-jaxp was given. 31023 if test "${with_override_jaxp+set}" = set; then : 31024 withval=$with_override_jaxp; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&5 31025 $as_echo "$as_me: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&2;} 31026 fi 31027 31028 31029 31030 31031 # Check whether --with-override-jaxws was given. 31032 if test "${with_override_jaxws+set}" = set; then : 31033 withval=$with_override_jaxws; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&5 31034 $as_echo "$as_me: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&2;} 31035 fi 31036 31037 31038 31039 31040 # Check whether --with-override-hotspot was given. 31041 if test "${with_override_hotspot+set}" = set; then : 31042 withval=$with_override_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&5 31043 $as_echo "$as_me: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&2;} 31044 fi 31045 31046 31047 31048 31049 # Check whether --with-override-nashorn was given. 31050 if test "${with_override_nashorn+set}" = set; then : 31051 withval=$with_override_nashorn; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&5 31052 $as_echo "$as_me: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&2;} 31053 fi 31054 31055 31056 31057 31058 # Check whether --with-override-jdk was given. 31059 if test "${with_override_jdk+set}" = set; then : 31060 withval=$with_override_jdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&5 31061 $as_echo "$as_me: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&2;} 31062 fi 31063 31064 31065 31066 31067 BUILD_OUTPUT="$OUTPUT_ROOT" 31068 31069 31070 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 31071 BUILD_HOTSPOT=true 31072 31073 31074 31075 # Check whether --with-import-hotspot was given. 31076 if test "${with_import_hotspot+set}" = set; then : 31077 withval=$with_import_hotspot; 31078 fi 31079 31080 if test "x$with_import_hotspot" != x; then 31081 CURDIR="$PWD" 31082 cd "$with_import_hotspot" 31083 HOTSPOT_DIST="`pwd`" 31084 cd "$CURDIR" 31085 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 31086 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 31087 fi 31088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 31089 $as_echo_n "checking if hotspot should be imported... " >&6; } 31090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 31091 $as_echo "yes from $HOTSPOT_DIST" >&6; } 31092 BUILD_HOTSPOT=false 31093 fi 31094 31095 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 31096 31097 31098 31099 31100 # Check whether --with-import-modules was given. 31101 if test "${with_import_modules+set}" = set; then : 31102 withval=$with_import_modules; 31103 fi 31104 31105 31106 if test "x$with_import_modules" != x \ 31107 && test "x$with_import_modules" != "xno"; then 31108 if test -d "$with_import_modules"; then 31109 IMPORT_MODULES_TOPDIR="$with_import_modules" 31110 31111 # Only process if variable expands to non-empty 31112 31113 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31115 31116 # Input might be given as Windows format, start by converting to 31117 # unix format. 31118 path="$IMPORT_MODULES_TOPDIR" 31119 new_path=`$CYGPATH -u "$path"` 31120 31121 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31122 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31123 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31124 # "foo.exe" is OK but "foo" is an error. 31125 # 31126 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31127 # It is also a way to make sure we got the proper file name for the real test later on. 31128 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31129 if test "x$test_shortpath" = x; then 31130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31131 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31132 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31133 fi 31134 31135 # Call helper function which possibly converts this using DOS-style short mode. 31136 # If so, the updated path is stored in $new_path. 31137 31138 input_path="$new_path" 31139 # Check if we need to convert this using DOS-style short mode. If the path 31140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31141 # take no chances and rewrite it. 31142 # Note: m4 eats our [], so we need to use [ and ] instead. 31143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31144 if test "x$has_forbidden_chars" != x; then 31145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31146 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31147 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31148 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31149 # Going to short mode and back again did indeed matter. Since short mode is 31150 # case insensitive, let's make it lowercase to improve readability. 31151 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31152 # Now convert it back to Unix-style (cygpath) 31153 input_path=`$CYGPATH -u "$shortmode_path"` 31154 new_path="$input_path" 31155 fi 31156 fi 31157 31158 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31159 if test "x$test_cygdrive_prefix" = x; then 31160 # As a simple fix, exclude /usr/bin since it's not a real path. 31161 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31162 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31163 # a path prefixed by /cygdrive for fixpath to work. 31164 new_path="$CYGWIN_ROOT_PATH$input_path" 31165 fi 31166 fi 31167 31168 31169 if test "x$path" != "x$new_path"; then 31170 IMPORT_MODULES_TOPDIR="$new_path" 31171 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31172 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31173 fi 31174 31175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31176 31177 path="$IMPORT_MODULES_TOPDIR" 31178 has_colon=`$ECHO $path | $GREP ^.:` 31179 new_path="$path" 31180 if test "x$has_colon" = x; then 31181 # Not in mixed or Windows style, start by that. 31182 new_path=`cmd //c echo $path` 31183 fi 31184 31185 31186 input_path="$new_path" 31187 # Check if we need to convert this using DOS-style short mode. If the path 31188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31189 # take no chances and rewrite it. 31190 # Note: m4 eats our [], so we need to use [ and ] instead. 31191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31192 if test "x$has_forbidden_chars" != x; then 31193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31194 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31195 fi 31196 31197 31198 windows_path="$new_path" 31199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31200 unix_path=`$CYGPATH -u "$windows_path"` 31201 new_path="$unix_path" 31202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31203 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31204 new_path="$unix_path" 31205 fi 31206 31207 if test "x$path" != "x$new_path"; then 31208 IMPORT_MODULES_TOPDIR="$new_path" 31209 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31210 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31211 fi 31212 31213 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31214 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31215 31216 else 31217 # We're on a unix platform. Hooray! :) 31218 path="$IMPORT_MODULES_TOPDIR" 31219 has_space=`$ECHO "$path" | $GREP " "` 31220 if test "x$has_space" != x; then 31221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31222 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31223 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31224 fi 31225 31226 # Use eval to expand a potential ~ 31227 eval path="$path" 31228 if test ! -f "$path" && test ! -d "$path"; then 31229 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31230 fi 31231 31232 if test -d "$path"; then 31233 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 31234 else 31235 dir="`$DIRNAME "$path"`" 31236 base="`$BASENAME "$path"`" 31237 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 31238 fi 31239 fi 31240 fi 31241 31242 elif test -e "$with_import_modules"; then 31243 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 31244 $RM -rf "$IMPORT_MODULES_TOPDIR" 31245 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 31246 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 31247 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31248 fi 31249 else 31250 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31251 fi 31252 fi 31253 31254 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 31255 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 31256 fi 31257 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 31258 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 31259 fi 31260 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 31261 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 31262 fi 31263 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 31264 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 31265 fi 31266 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 31267 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31268 fi 31269 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31270 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31271 fi 31272 31273 31274 31275 31276 31277 31278 31279 31280 31281 ############################################################################### 31282 # 31283 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31284 # native code. 31285 # 31286 ############################################################################### 31287 31288 # See if we are doing a complete static build or not 31289 31290 # Check whether --enable-static-build was given. 31291 if test "${enable_static_build+set}" = set; then : 31292 enableval=$enable_static_build; 31293 fi 31294 31295 STATIC_BUILD=false 31296 if test "x$enable_static_build" = "xyes"; then 31297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31298 $as_echo_n "checking if static build is enabled... " >&6; } 31299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31300 $as_echo "yes" >&6; } 31301 if test "x$OPENJDK_TARGET_OS" != "xmacosx" && test "x$OPENJDK_TARGET_OS" != "xios"; then 31302 as_fn_error $? "--enable-static-build is only supported for macosx and ios builds" "$LINENO" 5 31303 fi 31304 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31305 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $STATIC_BUILD_CFLAGS" 31306 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $STATIC_BUILD_CFLAGS" 31307 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31308 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31309 STATIC_BUILD=true 31310 elif test "x$enable_static_build" = "xno"; then 31311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31312 $as_echo_n "checking if static build is enabled... " >&6; } 31313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31314 $as_echo "no" >&6; } 31315 elif test "x$enable_static_build" != "x"; then 31316 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 31317 fi 31318 31319 31320 31321 31322 # First determine the toolchain type (compiler family) 31323 31324 31325 # Check whether --with-toolchain-type was given. 31326 if test "${with_toolchain_type+set}" = set; then : 31327 withval=$with_toolchain_type; 31328 fi 31329 31330 31331 # Use indirect variable referencing 31332 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 31333 VALID_TOOLCHAINS=${!toolchain_var_name} 31334 31335 if test "x$OPENJDK_TARGET_OS" = "xmacosx" || test "x$OPENJDK_TARGET_OS" = "xios" ; then 31336 if test -n "$XCODEBUILD"; then 31337 TOOLCHAIN_NAME="xcode" 31338 # On Mac OS X, default toolchain to clang after Xcode 5 31339 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 31340 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 31341 if test $? -ne 0; then 31342 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 31343 fi 31344 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 31345 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 31346 $CUT -f 1 -d .` 31347 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 31348 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 31349 if test $XCODE_MAJOR_VERSION -ge 5; then 31350 DEFAULT_TOOLCHAIN="clang" 31351 else 31352 DEFAULT_TOOLCHAIN="gcc" 31353 fi 31354 else 31355 # If Xcode is not installed, but the command line tools are 31356 # then we can't run xcodebuild. On these systems we should 31357 # default to clang 31358 DEFAULT_TOOLCHAIN="clang" 31359 fi 31360 else 31361 # First toolchain type in the list is the default 31362 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 31363 fi 31364 31365 if test "x$with_toolchain_type" = xlist; then 31366 # List all toolchains 31367 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 31368 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 31369 for toolchain in $VALID_TOOLCHAINS; do 31370 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 31371 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31372 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 31373 done 31374 31375 exit 0 31376 elif test "x$with_toolchain_type" != x; then 31377 # User override; check that it is valid 31378 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 31379 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 31380 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 31381 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 31382 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 31383 as_fn_error $? "Cannot continue." "$LINENO" 5 31384 fi 31385 TOOLCHAIN_TYPE=$with_toolchain_type 31386 else 31387 # No flag given, use default 31388 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 31389 fi 31390 31391 31392 31393 TOOLCHAIN_CC_BINARY_clang="clang" 31394 TOOLCHAIN_CC_BINARY_gcc="gcc" 31395 TOOLCHAIN_CC_BINARY_microsoft="cl" 31396 TOOLCHAIN_CC_BINARY_solstudio="cc" 31397 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 31398 31399 TOOLCHAIN_CXX_BINARY_clang="clang++" 31400 TOOLCHAIN_CXX_BINARY_gcc="g++" 31401 TOOLCHAIN_CXX_BINARY_microsoft="cl" 31402 TOOLCHAIN_CXX_BINARY_solstudio="CC" 31403 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 31404 31405 # Use indirect variable referencing 31406 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 31407 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31408 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 31409 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 31410 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 31411 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 31412 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 31413 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 31414 31415 31416 # Define filename patterns 31417 if test "x$OPENJDK_TARGET_OS" = xwindows; then 31418 LIBRARY_PREFIX= 31419 SHARED_LIBRARY_SUFFIX='.dll' 31420 STATIC_LIBRARY_SUFFIX='.lib' 31421 SHARED_LIBRARY='$1.dll' 31422 STATIC_LIBRARY='$1.lib' 31423 OBJ_SUFFIX='.obj' 31424 EXE_SUFFIX='.exe' 31425 else 31426 LIBRARY_PREFIX=lib 31427 SHARED_LIBRARY_SUFFIX='.so' 31428 STATIC_LIBRARY_SUFFIX='.a' 31429 SHARED_LIBRARY='lib$1.so' 31430 STATIC_LIBRARY='lib$1.a' 31431 BUILD_SHARED_LIBRARY_SUFFIX='.so' 31432 BUILD_SHARED_LIBRARY='lib$1.so' 31433 OBJ_SUFFIX='.o' 31434 EXE_SUFFIX='' 31435 if test "x$OPENJDK_TARGET_OS" = "xmacosx" || test "x$OPENJDK_TARGET_OS" = "xios" ; then 31436 # For full static builds, we're overloading the SHARED_LIBRARY 31437 # variables in order to limit the amount of changes required. 31438 # It would be better to remove SHARED and just use LIBRARY and 31439 # LIBRARY_SUFFIX for libraries that can be built either 31440 # shared or static and use STATIC_* for libraries that are 31441 # always built statically. 31442 BUILD_SHARED_LIBRARY='lib$1.dylib' 31443 BUILD_SHARED_LIBRARY_SUFFIX='.dylib' 31444 if test "x$STATIC_BUILD" = xtrue; then 31445 SHARED_LIBRARY='lib$1.a' 31446 SHARED_LIBRARY_SUFFIX='.a' 31447 else 31448 SHARED_LIBRARY='lib$1.dylib' 31449 SHARED_LIBRARY_SUFFIX='.dylib' 31450 fi 31451 fi 31452 fi 31453 31454 31455 31456 31457 31458 31459 31460 31461 31462 31463 31464 31465 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 31466 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 31467 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 31468 else 31469 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 31470 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 31471 fi 31472 31473 31474 # User supplied flags should be used when configure detects compilers 31475 31476 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 31477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 31478 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 31479 fi 31480 31481 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 31482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 31483 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 31484 fi 31485 31486 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 31487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 31488 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 31489 fi 31490 31491 31492 # Check whether --with-extra-cflags was given. 31493 if test "${with_extra_cflags+set}" = set; then : 31494 withval=$with_extra_cflags; 31495 fi 31496 31497 31498 31499 # Check whether --with-extra-cxxflags was given. 31500 if test "${with_extra_cxxflags+set}" = set; then : 31501 withval=$with_extra_cxxflags; 31502 fi 31503 31504 31505 31506 # Check whether --with-extra-ldflags was given. 31507 if test "${with_extra_ldflags+set}" = set; then : 31508 withval=$with_extra_ldflags; 31509 fi 31510 31511 31512 EXTRA_CFLAGS="$with_extra_cflags" 31513 EXTRA_CXXFLAGS="$with_extra_cxxflags" 31514 EXTRA_LDFLAGS="$with_extra_ldflags" 31515 31516 # Additional android handling 31517 if test "x$OPENJDK_TARGET_OS" = xandroid; then 31518 if test "x$OPENJDK_TARGET_CPU" = xarm; then 31519 EXTRA_CFLAGS="$EXTRA_CFLAGS -mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-short-enums -D__GLIBC__ -D_GNU_SOURCE -Wno-psabi -fPIE" 31520 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt -fPIE" 31521 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--unresolved-symbols=ignore-all -Wl,--gc-sections -fPIE" 31522 else 31523 EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-short-enums -D__GLIBC__ -D_GNU_SOURCE -Wno-psabi -march=i686 -msse3 -mstackrealign -mfpmath=sse -fPIE" 31524 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--unresolved-symbols=ignore-all -Wl,--gc-sections -Wl,-z,nocopyreloc -fPIE" 31525 fi 31526 fi 31527 31528 # Hotspot needs these set in their legacy form 31529 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $EXTRA_CFLAGS" 31530 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $EXTRA_CXXFLAGS" 31531 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $EXTRA_LDFLAGS" 31532 31533 31534 31535 31536 31537 31538 31539 31540 31541 # The global CFLAGS and LDLAGS variables are used by configure tests and 31542 # should include the extra parameters 31543 CFLAGS="$EXTRA_CFLAGS" 31544 CXXFLAGS="$EXTRA_CXXFLAGS" 31545 LDFLAGS="$EXTRA_LDFLAGS" 31546 CPPFLAGS="" 31547 31548 # The sysroot cflags are needed for configure to be able to run the compilers 31549 31550 if test "x$SYSROOT" != "x"; then 31551 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 31552 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31553 # Solaris Studio does not have a concept of sysroot. Instead we must 31554 # make sure the default include and lib dirs are appended to each 31555 # compile and link command line. Must also add -I-xbuiltin to enable 31556 # inlining of system functions and intrinsics. 31557 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 31558 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 31559 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 31560 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 31561 fi 31562 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 31563 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 31564 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 31565 elif test "x$TOOLCHAIN_TYPE" = xclang; then 31566 SYSROOT_CFLAGS="-isysroot $SYSROOT" 31567 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 31568 fi 31569 # Propagate the sysroot args to hotspot 31570 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 31571 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 31572 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 31573 # The global CFLAGS and LDFLAGS variables need these for configure to function 31574 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 31575 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS $SYSROOT_CFLAGS" 31576 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 31577 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 31578 fi 31579 31580 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 31581 # We also need -iframework<path>/System/Library/Frameworks 31582 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31583 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31584 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 31585 # set this here so it doesn't have to be peppered throughout the forest 31586 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31587 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31588 fi 31589 31590 31591 31592 31593 31594 # Then detect the actual binaries needed 31595 31596 # FIXME: Is this needed? 31597 ac_ext=cpp 31598 ac_cpp='$CXXCPP $CPPFLAGS' 31599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31602 31603 31604 # Store the CFLAGS etc passed to the configure script. 31605 ORG_CFLAGS="$CFLAGS" 31606 ORG_CXXFLAGS="$CXXFLAGS" 31607 31608 # autoconf magic only relies on PATH, so update it if tools dir is specified 31609 OLD_PATH="$PATH" 31610 31611 # On Windows, we need to detect the visual studio installation first. 31612 # This will change the PATH, but we need to keep that new PATH even 31613 # after toolchain detection is done, since the compiler (on x86) uses 31614 # it for DLL resolution in runtime. 31615 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 31616 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 31617 31618 # Store path to cygwin link.exe to help excluding it when searching for 31619 # VS linker. This must be done before changing the PATH when looking for VS. 31620 # Extract the first word of "link", so it can be a program name with args. 31621 set dummy link; ac_word=$2 31622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31623 $as_echo_n "checking for $ac_word... " >&6; } 31624 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 31625 $as_echo_n "(cached) " >&6 31626 else 31627 case $CYGWIN_LINK in 31628 [\\/]* | ?:[\\/]*) 31629 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 31630 ;; 31631 *) 31632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31633 for as_dir in $PATH 31634 do 31635 IFS=$as_save_IFS 31636 test -z "$as_dir" && as_dir=. 31637 for ac_exec_ext in '' $ac_executable_extensions; do 31638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31639 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 31640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31641 break 2 31642 fi 31643 done 31644 done 31645 IFS=$as_save_IFS 31646 31647 ;; 31648 esac 31649 fi 31650 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 31651 if test -n "$CYGWIN_LINK"; then 31652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 31653 $as_echo "$CYGWIN_LINK" >&6; } 31654 else 31655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31656 $as_echo "no" >&6; } 31657 fi 31658 31659 31660 if test "x$CYGWIN_LINK" != x; then 31661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 31662 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 31663 "$CYGWIN_LINK" --version > /dev/null 31664 if test $? -eq 0 ; then 31665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31666 $as_echo "yes" >&6; } 31667 else 31668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31669 $as_echo "no" >&6; } 31670 # This might be the VS linker. Don't exclude it later on. 31671 CYGWIN_LINK="" 31672 fi 31673 fi 31674 31675 # First-hand choice is to locate and run the vsvars bat file. 31676 31677 31678 # Check whether --with-toolchain-version was given. 31679 if test "${with_toolchain_version+set}" = set; then : 31680 withval=$with_toolchain_version; 31681 fi 31682 31683 31684 if test "x$with_toolchain_version" = xlist; then 31685 # List all toolchains 31686 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 31687 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 31688 for version in $VALID_VS_VERSIONS; do 31689 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 31690 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 31691 done 31692 31693 exit 0 31694 elif test "x$DEVKIT_VS_VERSION" != x; then 31695 VS_VERSION=$DEVKIT_VS_VERSION 31696 TOOLCHAIN_VERSION=$VS_VERSION 31697 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 31698 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 31699 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 31700 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 31701 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31702 VS_PATH="$TOOLCHAIN_PATH:$PATH" 31703 31704 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 31705 # can still be exported as INCLUDE for compiler invocations without 31706 # SYSROOT_CFLAGS 31707 OLDIFS="$IFS" 31708 IFS=";" 31709 for i in $DEVKIT_VS_INCLUDE; do 31710 ipath=$i 31711 31712 unix_path="$ipath" 31713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31714 windows_path=`$CYGPATH -m "$unix_path"` 31715 ipath="$windows_path" 31716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31717 windows_path=`cmd //c echo $unix_path` 31718 ipath="$windows_path" 31719 fi 31720 31721 VS_INCLUDE="$VS_INCLUDE;$ipath" 31722 done 31723 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 31724 # as LIB for compiler invocations without SYSROOT_LDFLAGS 31725 for i in $DEVKIT_VS_LIB; do 31726 libpath=$i 31727 31728 unix_path="$libpath" 31729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31730 windows_path=`$CYGPATH -m "$unix_path"` 31731 libpath="$windows_path" 31732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31733 windows_path=`cmd //c echo $unix_path` 31734 libpath="$windows_path" 31735 fi 31736 31737 VS_LIB="$VS_LIB;$libpath" 31738 done 31739 IFS="$OLDIFS" 31740 31741 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 31742 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 31743 31744 elif test "x$with_toolchain_version" != x; then 31745 # User override; check that it is valid 31746 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 31747 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 31748 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 31749 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 31750 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 31751 as_fn_error $? "Cannot continue." "$LINENO" 5 31752 fi 31753 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 31754 else 31755 # No flag given, use default 31756 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 31757 fi 31758 31759 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 31760 31761 VS_VERSION="$VS_VERSION" 31762 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 31763 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 31764 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 31765 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 31766 31767 # When using --with-tools-dir, assume it points to the correct and default 31768 # version of Visual Studio or that --with-toolchain-version was also set. 31769 if test "x$with_tools_dir" != x; then 31770 31771 if test "x$VS_ENV_CMD" = x; then 31772 VS_VERSION="${VS_VERSION}" 31773 VS_BASE="$with_tools_dir/../.." 31774 METHOD="--with-tools-dir" 31775 31776 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31777 VCVARSFILE="vc/bin/vcvars32.bat" 31778 else 31779 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31780 fi 31781 31782 31783 windows_path="$VS_BASE" 31784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31785 unix_path=`$CYGPATH -u "$windows_path"` 31786 VS_BASE="$unix_path" 31787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31789 VS_BASE="$unix_path" 31790 fi 31791 31792 if test -d "$VS_BASE"; then 31793 if test -f "$VS_BASE/$VCVARSFILE"; then 31794 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31795 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31796 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31797 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31798 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31799 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31800 else 31801 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31802 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31803 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31804 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31805 fi 31806 fi 31807 fi 31808 31809 31810 if test "x$VS_ENV_CMD" = x; then 31811 VS_VERSION="${VS_VERSION}" 31812 VS_BASE="$with_tools_dir/../../.." 31813 METHOD="--with-tools-dir" 31814 31815 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31816 VCVARSFILE="vc/bin/vcvars32.bat" 31817 else 31818 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31819 fi 31820 31821 31822 windows_path="$VS_BASE" 31823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31824 unix_path=`$CYGPATH -u "$windows_path"` 31825 VS_BASE="$unix_path" 31826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31828 VS_BASE="$unix_path" 31829 fi 31830 31831 if test -d "$VS_BASE"; then 31832 if test -f "$VS_BASE/$VCVARSFILE"; then 31833 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31834 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31835 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31836 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31837 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31838 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31839 else 31840 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31841 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31842 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31843 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31844 fi 31845 fi 31846 fi 31847 31848 if test "x$VS_ENV_CMD" = x; then 31849 # Having specified an argument which is incorrect will produce an instant failure; 31850 # we should not go on looking 31851 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 31852 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 31853 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 31854 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 31855 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 31856 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 31857 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 31858 fi 31859 fi 31860 31861 VS_ENV_CMD="" 31862 VS_ENV_ARGS="" 31863 31864 if test "x$VS_COMNTOOLS" != x; then 31865 31866 if test "x$VS_ENV_CMD" = x; then 31867 VS_VERSION="${VS_VERSION}" 31868 VS_BASE="$VS_COMNTOOLS/../.." 31869 METHOD="$VS_COMNTOOLS_VAR variable" 31870 31871 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31872 VCVARSFILE="vc/bin/vcvars32.bat" 31873 else 31874 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31875 fi 31876 31877 31878 windows_path="$VS_BASE" 31879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31880 unix_path=`$CYGPATH -u "$windows_path"` 31881 VS_BASE="$unix_path" 31882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31883 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31884 VS_BASE="$unix_path" 31885 fi 31886 31887 if test -d "$VS_BASE"; then 31888 if test -f "$VS_BASE/$VCVARSFILE"; then 31889 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31890 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31891 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31892 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31893 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31894 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31895 else 31896 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31897 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31898 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31899 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31900 fi 31901 fi 31902 fi 31903 31904 fi 31905 if test "x$PROGRAMFILES" != x; then 31906 31907 if test "x$VS_ENV_CMD" = x; then 31908 VS_VERSION="${VS_VERSION}" 31909 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 31910 METHOD="well-known name" 31911 31912 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31913 VCVARSFILE="vc/bin/vcvars32.bat" 31914 else 31915 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31916 fi 31917 31918 31919 windows_path="$VS_BASE" 31920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31921 unix_path=`$CYGPATH -u "$windows_path"` 31922 VS_BASE="$unix_path" 31923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31924 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31925 VS_BASE="$unix_path" 31926 fi 31927 31928 if test -d "$VS_BASE"; then 31929 if test -f "$VS_BASE/$VCVARSFILE"; then 31930 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31931 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31932 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31933 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31934 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31935 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31936 else 31937 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31938 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31939 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31940 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31941 fi 31942 fi 31943 fi 31944 31945 fi 31946 # Work around the insanely named ProgramFiles(x86) env variable 31947 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 31948 if test "x$PROGRAMFILES_X86" != x; then 31949 31950 if test "x$VS_ENV_CMD" = x; then 31951 VS_VERSION="${VS_VERSION}" 31952 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 31953 METHOD="well-known name" 31954 31955 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31956 VCVARSFILE="vc/bin/vcvars32.bat" 31957 else 31958 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31959 fi 31960 31961 31962 windows_path="$VS_BASE" 31963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31964 unix_path=`$CYGPATH -u "$windows_path"` 31965 VS_BASE="$unix_path" 31966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31968 VS_BASE="$unix_path" 31969 fi 31970 31971 if test -d "$VS_BASE"; then 31972 if test -f "$VS_BASE/$VCVARSFILE"; then 31973 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31974 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31975 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31976 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31977 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31978 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31979 else 31980 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31981 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31982 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31983 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31984 fi 31985 fi 31986 fi 31987 31988 fi 31989 31990 if test "x$VS_ENV_CMD" = x; then 31991 VS_VERSION="${VS_VERSION}" 31992 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 31993 METHOD="well-known name" 31994 31995 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31996 VCVARSFILE="vc/bin/vcvars32.bat" 31997 else 31998 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31999 fi 32000 32001 32002 windows_path="$VS_BASE" 32003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32004 unix_path=`$CYGPATH -u "$windows_path"` 32005 VS_BASE="$unix_path" 32006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32008 VS_BASE="$unix_path" 32009 fi 32010 32011 if test -d "$VS_BASE"; then 32012 if test -f "$VS_BASE/$VCVARSFILE"; then 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 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32016 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32017 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32018 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32019 else 32020 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32021 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32022 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32023 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32024 fi 32025 fi 32026 fi 32027 32028 32029 if test "x$VS_ENV_CMD" = x; then 32030 VS_VERSION="${VS_VERSION}" 32031 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32032 METHOD="well-known name" 32033 32034 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32035 VCVARSFILE="vc/bin/vcvars32.bat" 32036 else 32037 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32038 fi 32039 32040 32041 windows_path="$VS_BASE" 32042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32043 unix_path=`$CYGPATH -u "$windows_path"` 32044 VS_BASE="$unix_path" 32045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32047 VS_BASE="$unix_path" 32048 fi 32049 32050 if test -d "$VS_BASE"; then 32051 if test -f "$VS_BASE/$VCVARSFILE"; then 32052 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32053 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32054 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32055 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32056 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32057 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32058 else 32059 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32060 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32061 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32062 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32063 fi 32064 fi 32065 fi 32066 32067 32068 if test "x$SDK_INSTALL_DIR" != x; then 32069 if test "x$ProgramW6432" != x; then 32070 32071 if test "x$VS_ENV_CMD" = x; then 32072 VS_VERSION="${VS_VERSION}" 32073 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32074 METHOD="well-known name" 32075 32076 windows_path="$WIN_SDK_BASE" 32077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32078 unix_path=`$CYGPATH -u "$windows_path"` 32079 WIN_SDK_BASE="$unix_path" 32080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32081 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32082 WIN_SDK_BASE="$unix_path" 32083 fi 32084 32085 if test -d "$WIN_SDK_BASE"; then 32086 # There have been cases of partial or broken SDK installations. A missing 32087 # lib dir is not going to work. 32088 if test ! -d "$WIN_SDK_BASE/lib"; then 32089 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32090 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32091 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32092 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32093 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32094 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32095 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32096 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32097 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32098 VS_ENV_ARGS="/x86" 32099 else 32100 VS_ENV_ARGS="/x64" 32101 fi 32102 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32103 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32104 # TODO: improve detection for other versions of SDK 32105 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32106 else 32107 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32108 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32109 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32110 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32111 fi 32112 fi 32113 fi 32114 32115 fi 32116 if test "x$PROGRAMW6432" != x; then 32117 32118 if test "x$VS_ENV_CMD" = x; then 32119 VS_VERSION="${VS_VERSION}" 32120 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32121 METHOD="well-known name" 32122 32123 windows_path="$WIN_SDK_BASE" 32124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32125 unix_path=`$CYGPATH -u "$windows_path"` 32126 WIN_SDK_BASE="$unix_path" 32127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32129 WIN_SDK_BASE="$unix_path" 32130 fi 32131 32132 if test -d "$WIN_SDK_BASE"; then 32133 # There have been cases of partial or broken SDK installations. A missing 32134 # lib dir is not going to work. 32135 if test ! -d "$WIN_SDK_BASE/lib"; then 32136 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32137 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32138 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32139 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32140 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32141 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32142 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32143 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32144 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32145 VS_ENV_ARGS="/x86" 32146 else 32147 VS_ENV_ARGS="/x64" 32148 fi 32149 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32150 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32151 # TODO: improve detection for other versions of SDK 32152 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32153 else 32154 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32155 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32156 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32157 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32158 fi 32159 fi 32160 fi 32161 32162 fi 32163 if test "x$PROGRAMFILES" != x; then 32164 32165 if test "x$VS_ENV_CMD" = x; then 32166 VS_VERSION="${VS_VERSION}" 32167 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32168 METHOD="well-known name" 32169 32170 windows_path="$WIN_SDK_BASE" 32171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32172 unix_path=`$CYGPATH -u "$windows_path"` 32173 WIN_SDK_BASE="$unix_path" 32174 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32175 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32176 WIN_SDK_BASE="$unix_path" 32177 fi 32178 32179 if test -d "$WIN_SDK_BASE"; then 32180 # There have been cases of partial or broken SDK installations. A missing 32181 # lib dir is not going to work. 32182 if test ! -d "$WIN_SDK_BASE/lib"; then 32183 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32184 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32185 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32186 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32187 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32188 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32189 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32190 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32191 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32192 VS_ENV_ARGS="/x86" 32193 else 32194 VS_ENV_ARGS="/x64" 32195 fi 32196 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32197 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32198 # TODO: improve detection for other versions of SDK 32199 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32200 else 32201 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32202 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32203 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32204 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32205 fi 32206 fi 32207 fi 32208 32209 fi 32210 32211 if test "x$VS_ENV_CMD" = x; then 32212 VS_VERSION="${VS_VERSION}" 32213 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32214 METHOD="well-known name" 32215 32216 windows_path="$WIN_SDK_BASE" 32217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32218 unix_path=`$CYGPATH -u "$windows_path"` 32219 WIN_SDK_BASE="$unix_path" 32220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32221 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32222 WIN_SDK_BASE="$unix_path" 32223 fi 32224 32225 if test -d "$WIN_SDK_BASE"; then 32226 # There have been cases of partial or broken SDK installations. A missing 32227 # lib dir is not going to work. 32228 if test ! -d "$WIN_SDK_BASE/lib"; then 32229 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32230 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32231 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32232 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32233 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32234 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32235 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32236 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32237 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32238 VS_ENV_ARGS="/x86" 32239 else 32240 VS_ENV_ARGS="/x64" 32241 fi 32242 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32243 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32244 # TODO: improve detection for other versions of SDK 32245 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32246 else 32247 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32248 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32249 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32250 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32251 fi 32252 fi 32253 fi 32254 32255 32256 if test "x$VS_ENV_CMD" = x; then 32257 VS_VERSION="${VS_VERSION}" 32258 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32259 METHOD="well-known name" 32260 32261 windows_path="$WIN_SDK_BASE" 32262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32263 unix_path=`$CYGPATH -u "$windows_path"` 32264 WIN_SDK_BASE="$unix_path" 32265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32266 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32267 WIN_SDK_BASE="$unix_path" 32268 fi 32269 32270 if test -d "$WIN_SDK_BASE"; then 32271 # There have been cases of partial or broken SDK installations. A missing 32272 # lib dir is not going to work. 32273 if test ! -d "$WIN_SDK_BASE/lib"; then 32274 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32275 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32276 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32277 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32278 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32279 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32280 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32281 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32282 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32283 VS_ENV_ARGS="/x86" 32284 else 32285 VS_ENV_ARGS="/x64" 32286 fi 32287 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32288 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32289 # TODO: improve detection for other versions of SDK 32290 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32291 else 32292 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32293 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32294 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32295 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32296 fi 32297 fi 32298 fi 32299 32300 fi 32301 32302 if test "x$VS_ENV_CMD" != x; then 32303 TOOLCHAIN_VERSION=$VS_VERSION 32304 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32305 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32306 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32307 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32308 # The rest of the variables are already evaled while probing 32309 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32310 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32311 break 32312 fi 32313 done 32314 32315 32316 # If we have a devkit, skip all of the below. 32317 if test "x$DEVKIT_VS_VERSION" = x; then 32318 if test "x$VS_ENV_CMD" != x; then 32319 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32320 32321 # Only process if variable expands to non-empty 32322 32323 if test "x$VS_ENV_CMD" != x; then 32324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32325 32326 # First separate the path from the arguments. This will split at the first 32327 # space. 32328 complete="$VS_ENV_CMD" 32329 path="${complete%% *}" 32330 tmp="$complete EOL" 32331 arguments="${tmp#* }" 32332 32333 # Input might be given as Windows format, start by converting to 32334 # unix format. 32335 new_path=`$CYGPATH -u "$path"` 32336 32337 # Now try to locate executable using which 32338 new_path=`$WHICH "$new_path" 2> /dev/null` 32339 # bat and cmd files are not always considered executable in cygwin causing which 32340 # to not find them 32341 if test "x$new_path" = x \ 32342 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32343 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32344 new_path=`$CYGPATH -u "$path"` 32345 fi 32346 if test "x$new_path" = x; then 32347 # Oops. Which didn't find the executable. 32348 # The splitting of arguments from the executable at a space might have been incorrect, 32349 # since paths with space are more likely in Windows. Give it another try with the whole 32350 # argument. 32351 path="$complete" 32352 arguments="EOL" 32353 new_path=`$CYGPATH -u "$path"` 32354 new_path=`$WHICH "$new_path" 2> /dev/null` 32355 # bat and cmd files are not always considered executable in cygwin causing which 32356 # to not find them 32357 if test "x$new_path" = x \ 32358 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32359 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32360 new_path=`$CYGPATH -u "$path"` 32361 fi 32362 if test "x$new_path" = x; then 32363 # It's still not found. Now this is an unrecoverable error. 32364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32365 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32366 has_space=`$ECHO "$complete" | $GREP " "` 32367 if test "x$has_space" != x; then 32368 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32369 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32370 fi 32371 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32372 fi 32373 fi 32374 32375 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32376 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32377 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32378 # "foo.exe" is OK but "foo" is an error. 32379 # 32380 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32381 # It is also a way to make sure we got the proper file name for the real test later on. 32382 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32383 if test "x$test_shortpath" = x; then 32384 # Short path failed, file does not exist as specified. 32385 # Try adding .exe or .cmd 32386 if test -f "${new_path}.exe"; then 32387 input_to_shortpath="${new_path}.exe" 32388 elif test -f "${new_path}.cmd"; then 32389 input_to_shortpath="${new_path}.cmd" 32390 else 32391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 32392 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 32393 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32394 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32395 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32396 fi 32397 else 32398 input_to_shortpath="$new_path" 32399 fi 32400 32401 # Call helper function which possibly converts this using DOS-style short mode. 32402 # If so, the updated path is stored in $new_path. 32403 new_path="$input_to_shortpath" 32404 32405 input_path="$input_to_shortpath" 32406 # Check if we need to convert this using DOS-style short mode. If the path 32407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32408 # take no chances and rewrite it. 32409 # Note: m4 eats our [], so we need to use [ and ] instead. 32410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32411 if test "x$has_forbidden_chars" != x; then 32412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32413 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32414 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32415 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32416 # Going to short mode and back again did indeed matter. Since short mode is 32417 # case insensitive, let's make it lowercase to improve readability. 32418 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32419 # Now convert it back to Unix-style (cygpath) 32420 input_path=`$CYGPATH -u "$shortmode_path"` 32421 new_path="$input_path" 32422 fi 32423 fi 32424 32425 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32426 if test "x$test_cygdrive_prefix" = x; then 32427 # As a simple fix, exclude /usr/bin since it's not a real path. 32428 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32429 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32430 # a path prefixed by /cygdrive for fixpath to work. 32431 new_path="$CYGWIN_ROOT_PATH$input_path" 32432 fi 32433 fi 32434 32435 # remove trailing .exe if any 32436 new_path="${new_path/%.exe/}" 32437 32438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32439 32440 # First separate the path from the arguments. This will split at the first 32441 # space. 32442 complete="$VS_ENV_CMD" 32443 path="${complete%% *}" 32444 tmp="$complete EOL" 32445 arguments="${tmp#* }" 32446 32447 # Input might be given as Windows format, start by converting to 32448 # unix format. 32449 new_path="$path" 32450 32451 windows_path="$new_path" 32452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32453 unix_path=`$CYGPATH -u "$windows_path"` 32454 new_path="$unix_path" 32455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32456 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32457 new_path="$unix_path" 32458 fi 32459 32460 32461 # Now try to locate executable using which 32462 new_path=`$WHICH "$new_path" 2> /dev/null` 32463 32464 if test "x$new_path" = x; then 32465 # Oops. Which didn't find the executable. 32466 # The splitting of arguments from the executable at a space might have been incorrect, 32467 # since paths with space are more likely in Windows. Give it another try with the whole 32468 # argument. 32469 path="$complete" 32470 arguments="EOL" 32471 new_path="$path" 32472 32473 windows_path="$new_path" 32474 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32475 unix_path=`$CYGPATH -u "$windows_path"` 32476 new_path="$unix_path" 32477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32478 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32479 new_path="$unix_path" 32480 fi 32481 32482 32483 new_path=`$WHICH "$new_path" 2> /dev/null` 32484 # bat and cmd files are not always considered executable in MSYS causing which 32485 # to not find them 32486 if test "x$new_path" = x \ 32487 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32488 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32489 new_path="$path" 32490 32491 windows_path="$new_path" 32492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32493 unix_path=`$CYGPATH -u "$windows_path"` 32494 new_path="$unix_path" 32495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32496 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32497 new_path="$unix_path" 32498 fi 32499 32500 fi 32501 32502 if test "x$new_path" = x; then 32503 # It's still not found. Now this is an unrecoverable error. 32504 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32505 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32506 has_space=`$ECHO "$complete" | $GREP " "` 32507 if test "x$has_space" != x; then 32508 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32509 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32510 fi 32511 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32512 fi 32513 fi 32514 32515 # Now new_path has a complete unix path to the binary 32516 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32517 # Keep paths in /bin as-is, but remove trailing .exe if any 32518 new_path="${new_path/%.exe/}" 32519 # Do not save /bin paths to all_fixpath_prefixes! 32520 else 32521 # Not in mixed or Windows style, start by that. 32522 new_path=`cmd //c echo $new_path` 32523 32524 input_path="$new_path" 32525 # Check if we need to convert this using DOS-style short mode. If the path 32526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32527 # take no chances and rewrite it. 32528 # Note: m4 eats our [], so we need to use [ and ] instead. 32529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32530 if test "x$has_forbidden_chars" != x; then 32531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32532 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32533 fi 32534 32535 # Output is in $new_path 32536 32537 windows_path="$new_path" 32538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32539 unix_path=`$CYGPATH -u "$windows_path"` 32540 new_path="$unix_path" 32541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32543 new_path="$unix_path" 32544 fi 32545 32546 # remove trailing .exe if any 32547 new_path="${new_path/%.exe/}" 32548 32549 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32550 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32551 fi 32552 32553 else 32554 # We're on a unix platform. Hooray! :) 32555 # First separate the path from the arguments. This will split at the first 32556 # space. 32557 complete="$VS_ENV_CMD" 32558 path="${complete%% *}" 32559 tmp="$complete EOL" 32560 arguments="${tmp#* }" 32561 32562 # Cannot rely on the command "which" here since it doesn't always work. 32563 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32564 if test -z "$is_absolute_path"; then 32565 # Path to executable is not absolute. Find it. 32566 IFS_save="$IFS" 32567 IFS=: 32568 for p in $PATH; do 32569 if test -f "$p/$path" && test -x "$p/$path"; then 32570 new_path="$p/$path" 32571 break 32572 fi 32573 done 32574 IFS="$IFS_save" 32575 else 32576 # This is an absolute path, we can use it without further modifications. 32577 new_path="$path" 32578 fi 32579 32580 if test "x$new_path" = x; then 32581 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32582 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32583 has_space=`$ECHO "$complete" | $GREP " "` 32584 if test "x$has_space" != x; then 32585 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32586 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32587 fi 32588 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32589 fi 32590 fi 32591 32592 # Now join together the path and the arguments once again 32593 if test "x$arguments" != xEOL; then 32594 new_complete="$new_path ${arguments% *}" 32595 else 32596 new_complete="$new_path" 32597 fi 32598 32599 if test "x$complete" != "x$new_complete"; then 32600 VS_ENV_CMD="$new_complete" 32601 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 32602 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 32603 fi 32604 fi 32605 32606 32607 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 32608 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 32609 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 32610 32611 # We need to create a couple of temporary files. 32612 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 32613 $MKDIR -p $VS_ENV_TMP_DIR 32614 32615 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 32616 # Instead create a shell script which will set the relevant variables when run. 32617 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 32618 32619 unix_path="$WINPATH_VS_ENV_CMD" 32620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32621 windows_path=`$CYGPATH -m "$unix_path"` 32622 WINPATH_VS_ENV_CMD="$windows_path" 32623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32624 windows_path=`cmd //c echo $unix_path` 32625 WINPATH_VS_ENV_CMD="$windows_path" 32626 fi 32627 32628 WINPATH_BASH="$BASH" 32629 32630 unix_path="$WINPATH_BASH" 32631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32632 windows_path=`$CYGPATH -m "$unix_path"` 32633 WINPATH_BASH="$windows_path" 32634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32635 windows_path=`cmd //c echo $unix_path` 32636 WINPATH_BASH="$windows_path" 32637 fi 32638 32639 32640 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 32641 # script (executable by bash) that will setup the important variables. 32642 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 32643 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 32644 # This will end up something like: 32645 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 32646 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 32647 # These will end up something like: 32648 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 32649 # The trailing space for everyone except PATH is no typo, but is needed due 32650 # to trailing \ in the Windows paths. These will be stripped later. 32651 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 32652 >> $EXTRACT_VC_ENV_BAT_FILE 32653 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 32654 >> $EXTRACT_VC_ENV_BAT_FILE 32655 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 32656 >> $EXTRACT_VC_ENV_BAT_FILE 32657 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 32658 >> $EXTRACT_VC_ENV_BAT_FILE 32659 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 32660 >> $EXTRACT_VC_ENV_BAT_FILE 32661 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 32662 >> $EXTRACT_VC_ENV_BAT_FILE 32663 32664 # Now execute the newly created bat file. 32665 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 32666 # Change directory so we don't need to mess with Windows paths in redirects. 32667 cd $VS_ENV_TMP_DIR 32668 cmd /c extract-vs-env.bat | $CAT 32669 cd $CURDIR 32670 32671 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 32672 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 32673 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 32674 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32675 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32676 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32677 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32678 as_fn_error $? "Cannot continue" "$LINENO" 5 32679 fi 32680 32681 # Now set all paths and other env variables. This will allow the rest of 32682 # the configure script to find and run the compiler in the proper way. 32683 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 32684 $as_echo "$as_me: Setting extracted environment variables" >&6;} 32685 . $VS_ENV_TMP_DIR/set-vs-env.sh 32686 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 32687 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 32688 else 32689 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 32690 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 32691 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 32692 fi 32693 fi 32694 32695 # At this point, we should have correct variables in the environment, or we can't continue. 32696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 32697 $as_echo_n "checking for Visual Studio variables... " >&6; } 32698 32699 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 32700 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 32701 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 32703 $as_echo "present but broken" >&6; } 32704 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 32705 else 32706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 32707 $as_echo "ok" >&6; } 32708 # Remove any trailing "\" ";" and " " from the variables. 32709 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 32710 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 32711 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 32712 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 32713 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 32714 # Remove any paths containing # (typically F#) as that messes up make. This 32715 # is needed if visual studio was installed with F# support. 32716 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 32717 32718 32719 32720 32721 32722 # Convert VS_INCLUDE into SYSROOT_CFLAGS 32723 OLDIFS="$IFS" 32724 IFS=";" 32725 for i in $VS_INCLUDE; do 32726 ipath=$i 32727 # Only process non-empty elements 32728 if test "x$ipath" != x; then 32729 IFS="$OLDIFS" 32730 # Check that directory exists before calling fixup_path 32731 testpath=$ipath 32732 32733 windows_path="$testpath" 32734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32735 unix_path=`$CYGPATH -u "$windows_path"` 32736 testpath="$unix_path" 32737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32738 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32739 testpath="$unix_path" 32740 fi 32741 32742 if test -d "$testpath"; then 32743 32744 # Only process if variable expands to non-empty 32745 32746 if test "x$ipath" != x; then 32747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32748 32749 # Input might be given as Windows format, start by converting to 32750 # unix format. 32751 path="$ipath" 32752 new_path=`$CYGPATH -u "$path"` 32753 32754 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32755 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32756 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32757 # "foo.exe" is OK but "foo" is an error. 32758 # 32759 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32760 # It is also a way to make sure we got the proper file name for the real test later on. 32761 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32762 if test "x$test_shortpath" = x; then 32763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32764 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32765 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 32766 fi 32767 32768 # Call helper function which possibly converts this using DOS-style short mode. 32769 # If so, the updated path is stored in $new_path. 32770 32771 input_path="$new_path" 32772 # Check if we need to convert this using DOS-style short mode. If the path 32773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32774 # take no chances and rewrite it. 32775 # Note: m4 eats our [], so we need to use [ and ] instead. 32776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32777 if test "x$has_forbidden_chars" != x; then 32778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32779 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32780 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32781 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32782 # Going to short mode and back again did indeed matter. Since short mode is 32783 # case insensitive, let's make it lowercase to improve readability. 32784 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32785 # Now convert it back to Unix-style (cygpath) 32786 input_path=`$CYGPATH -u "$shortmode_path"` 32787 new_path="$input_path" 32788 fi 32789 fi 32790 32791 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32792 if test "x$test_cygdrive_prefix" = x; then 32793 # As a simple fix, exclude /usr/bin since it's not a real path. 32794 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32795 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32796 # a path prefixed by /cygdrive for fixpath to work. 32797 new_path="$CYGWIN_ROOT_PATH$input_path" 32798 fi 32799 fi 32800 32801 32802 if test "x$path" != "x$new_path"; then 32803 ipath="$new_path" 32804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32805 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32806 fi 32807 32808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32809 32810 path="$ipath" 32811 has_colon=`$ECHO $path | $GREP ^.:` 32812 new_path="$path" 32813 if test "x$has_colon" = x; then 32814 # Not in mixed or Windows style, start by that. 32815 new_path=`cmd //c echo $path` 32816 fi 32817 32818 32819 input_path="$new_path" 32820 # Check if we need to convert this using DOS-style short mode. If the path 32821 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32822 # take no chances and rewrite it. 32823 # Note: m4 eats our [], so we need to use [ and ] instead. 32824 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32825 if test "x$has_forbidden_chars" != x; then 32826 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32827 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32828 fi 32829 32830 32831 windows_path="$new_path" 32832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32833 unix_path=`$CYGPATH -u "$windows_path"` 32834 new_path="$unix_path" 32835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32837 new_path="$unix_path" 32838 fi 32839 32840 if test "x$path" != "x$new_path"; then 32841 ipath="$new_path" 32842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32843 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32844 fi 32845 32846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32848 32849 else 32850 # We're on a unix platform. Hooray! :) 32851 path="$ipath" 32852 has_space=`$ECHO "$path" | $GREP " "` 32853 if test "x$has_space" != x; then 32854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32855 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32856 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32857 fi 32858 32859 # Use eval to expand a potential ~ 32860 eval path="$path" 32861 if test ! -f "$path" && test ! -d "$path"; then 32862 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 32863 fi 32864 32865 if test -d "$path"; then 32866 ipath="`cd "$path"; $THEPWDCMD -L`" 32867 else 32868 dir="`$DIRNAME "$path"`" 32869 base="`$BASENAME "$path"`" 32870 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 32871 fi 32872 fi 32873 fi 32874 32875 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 32876 fi 32877 IFS=";" 32878 fi 32879 done 32880 # Convert VS_LIB into SYSROOT_LDFLAGS 32881 for i in $VS_LIB; do 32882 libpath=$i 32883 # Only process non-empty elements 32884 if test "x$libpath" != x; then 32885 IFS="$OLDIFS" 32886 # Check that directory exists before calling fixup_path 32887 testpath=$libpath 32888 32889 windows_path="$testpath" 32890 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32891 unix_path=`$CYGPATH -u "$windows_path"` 32892 testpath="$unix_path" 32893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32894 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32895 testpath="$unix_path" 32896 fi 32897 32898 if test -d "$testpath"; then 32899 32900 # Only process if variable expands to non-empty 32901 32902 if test "x$libpath" != x; then 32903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32904 32905 # Input might be given as Windows format, start by converting to 32906 # unix format. 32907 path="$libpath" 32908 new_path=`$CYGPATH -u "$path"` 32909 32910 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32911 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32912 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32913 # "foo.exe" is OK but "foo" is an error. 32914 # 32915 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32916 # It is also a way to make sure we got the proper file name for the real test later on. 32917 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32918 if test "x$test_shortpath" = x; then 32919 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32920 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32921 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 32922 fi 32923 32924 # Call helper function which possibly converts this using DOS-style short mode. 32925 # If so, the updated path is stored in $new_path. 32926 32927 input_path="$new_path" 32928 # Check if we need to convert this using DOS-style short mode. If the path 32929 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32930 # take no chances and rewrite it. 32931 # Note: m4 eats our [], so we need to use [ and ] instead. 32932 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32933 if test "x$has_forbidden_chars" != x; then 32934 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32935 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32936 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32937 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32938 # Going to short mode and back again did indeed matter. Since short mode is 32939 # case insensitive, let's make it lowercase to improve readability. 32940 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32941 # Now convert it back to Unix-style (cygpath) 32942 input_path=`$CYGPATH -u "$shortmode_path"` 32943 new_path="$input_path" 32944 fi 32945 fi 32946 32947 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32948 if test "x$test_cygdrive_prefix" = x; then 32949 # As a simple fix, exclude /usr/bin since it's not a real path. 32950 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32951 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32952 # a path prefixed by /cygdrive for fixpath to work. 32953 new_path="$CYGWIN_ROOT_PATH$input_path" 32954 fi 32955 fi 32956 32957 32958 if test "x$path" != "x$new_path"; then 32959 libpath="$new_path" 32960 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32961 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32962 fi 32963 32964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32965 32966 path="$libpath" 32967 has_colon=`$ECHO $path | $GREP ^.:` 32968 new_path="$path" 32969 if test "x$has_colon" = x; then 32970 # Not in mixed or Windows style, start by that. 32971 new_path=`cmd //c echo $path` 32972 fi 32973 32974 32975 input_path="$new_path" 32976 # Check if we need to convert this using DOS-style short mode. If the path 32977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32978 # take no chances and rewrite it. 32979 # Note: m4 eats our [], so we need to use [ and ] instead. 32980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32981 if test "x$has_forbidden_chars" != x; then 32982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32983 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32984 fi 32985 32986 32987 windows_path="$new_path" 32988 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32989 unix_path=`$CYGPATH -u "$windows_path"` 32990 new_path="$unix_path" 32991 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32992 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32993 new_path="$unix_path" 32994 fi 32995 32996 if test "x$path" != "x$new_path"; then 32997 libpath="$new_path" 32998 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32999 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33000 fi 33001 33002 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33003 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33004 33005 else 33006 # We're on a unix platform. Hooray! :) 33007 path="$libpath" 33008 has_space=`$ECHO "$path" | $GREP " "` 33009 if test "x$has_space" != x; then 33010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33011 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33012 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33013 fi 33014 33015 # Use eval to expand a potential ~ 33016 eval path="$path" 33017 if test ! -f "$path" && test ! -d "$path"; then 33018 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 33019 fi 33020 33021 if test -d "$path"; then 33022 libpath="`cd "$path"; $THEPWDCMD -L`" 33023 else 33024 dir="`$DIRNAME "$path"`" 33025 base="`$BASENAME "$path"`" 33026 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 33027 fi 33028 fi 33029 fi 33030 33031 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33032 fi 33033 IFS=";" 33034 fi 33035 done 33036 IFS="$OLDIFS" 33037 fi 33038 else 33039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33040 $as_echo "not found" >&6; } 33041 33042 if test "x$VS_ENV_CMD" = x; then 33043 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33044 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33045 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33046 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33047 else 33048 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33049 $as_echo "$as_me: Running the extraction script failed." >&6;} 33050 fi 33051 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33052 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33053 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33054 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33055 as_fn_error $? "Cannot continue" "$LINENO" 5 33056 fi 33057 33058 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33059 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33060 PATH="$VS_PATH" 33061 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33062 export INCLUDE="$VS_INCLUDE" 33063 export LIB="$VS_LIB" 33064 else 33065 if test "x$XCODE_VERSION_OUTPUT" != x; then 33066 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33067 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33068 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33069 else 33070 # Currently we do not define this for other toolchains. This might change as the need arise. 33071 TOOLCHAIN_VERSION= 33072 fi 33073 fi 33074 33075 33076 # For solaris we really need solaris tools, and not the GNU equivalent. 33077 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 33078 # so add that to path before starting to probe. 33079 # FIXME: This was originally only done for AS,NM,GNM,STRIP,OBJCOPY,OBJDUMP. 33080 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 33081 PATH="/usr/ccs/bin:$PATH" 33082 fi 33083 33084 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33085 # override all other locations. 33086 if test "x$TOOLCHAIN_PATH" != x; then 33087 PATH=$TOOLCHAIN_PATH:$PATH 33088 fi 33089 33090 33091 # 33092 # Setup the compilers (CC and CXX) 33093 # 33094 33095 COMPILER_NAME=C 33096 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33097 33098 if test "x$CC" != x; then 33099 # User has supplied compiler name already, always let that override. 33100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33101 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33102 if test "x`basename $CC`" = "x$CC"; then 33103 # A command without a complete path is provided, search $PATH. 33104 33105 for ac_prog in $CC 33106 do 33107 # Extract the first word of "$ac_prog", so it can be a program name with args. 33108 set dummy $ac_prog; ac_word=$2 33109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33110 $as_echo_n "checking for $ac_word... " >&6; } 33111 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33112 $as_echo_n "(cached) " >&6 33113 else 33114 case $POTENTIAL_CC in 33115 [\\/]* | ?:[\\/]*) 33116 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33117 ;; 33118 *) 33119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33120 for as_dir in $PATH 33121 do 33122 IFS=$as_save_IFS 33123 test -z "$as_dir" && as_dir=. 33124 for ac_exec_ext in '' $ac_executable_extensions; do 33125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33126 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33128 break 2 33129 fi 33130 done 33131 done 33132 IFS=$as_save_IFS 33133 33134 ;; 33135 esac 33136 fi 33137 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33138 if test -n "$POTENTIAL_CC"; then 33139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33140 $as_echo "$POTENTIAL_CC" >&6; } 33141 else 33142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33143 $as_echo "no" >&6; } 33144 fi 33145 33146 33147 test -n "$POTENTIAL_CC" && break 33148 done 33149 33150 if test "x$POTENTIAL_CC" != x; then 33151 CC=$POTENTIAL_CC 33152 else 33153 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33154 fi 33155 else 33156 # Otherwise it might already be a complete path 33157 if test ! -x "$CC"; then 33158 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33159 fi 33160 fi 33161 else 33162 # No user supplied value. Locate compiler ourselves. 33163 33164 # If we are cross compiling, assume cross compilation tools follows the 33165 # cross compilation standard where they are prefixed with the autoconf 33166 # standard name for the target. For example the binary 33167 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33168 # If we are not cross compiling, then the default compiler name will be 33169 # used. 33170 33171 CC= 33172 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33173 # before checking the rest of the PATH. 33174 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33175 # step, this should not be necessary. 33176 if test -n "$TOOLCHAIN_PATH"; then 33177 PATH_save="$PATH" 33178 PATH="$TOOLCHAIN_PATH" 33179 for ac_prog in $SEARCH_LIST 33180 do 33181 # Extract the first word of "$ac_prog", so it can be a program name with args. 33182 set dummy $ac_prog; ac_word=$2 33183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33184 $as_echo_n "checking for $ac_word... " >&6; } 33185 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33186 $as_echo_n "(cached) " >&6 33187 else 33188 case $TOOLCHAIN_PATH_CC in 33189 [\\/]* | ?:[\\/]*) 33190 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33191 ;; 33192 *) 33193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33194 for as_dir in $PATH 33195 do 33196 IFS=$as_save_IFS 33197 test -z "$as_dir" && as_dir=. 33198 for ac_exec_ext in '' $ac_executable_extensions; do 33199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33200 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33202 break 2 33203 fi 33204 done 33205 done 33206 IFS=$as_save_IFS 33207 33208 ;; 33209 esac 33210 fi 33211 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33212 if test -n "$TOOLCHAIN_PATH_CC"; then 33213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33214 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33215 else 33216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33217 $as_echo "no" >&6; } 33218 fi 33219 33220 33221 test -n "$TOOLCHAIN_PATH_CC" && break 33222 done 33223 33224 CC=$TOOLCHAIN_PATH_CC 33225 PATH="$PATH_save" 33226 fi 33227 33228 # AC_PATH_PROGS can't be run multiple times with the same variable, 33229 # so create a new name for this run. 33230 if test "x$CC" = x; then 33231 for ac_prog in $SEARCH_LIST 33232 do 33233 # Extract the first word of "$ac_prog", so it can be a program name with args. 33234 set dummy $ac_prog; ac_word=$2 33235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33236 $as_echo_n "checking for $ac_word... " >&6; } 33237 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33238 $as_echo_n "(cached) " >&6 33239 else 33240 case $POTENTIAL_CC in 33241 [\\/]* | ?:[\\/]*) 33242 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33243 ;; 33244 *) 33245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33246 for as_dir in $PATH 33247 do 33248 IFS=$as_save_IFS 33249 test -z "$as_dir" && as_dir=. 33250 for ac_exec_ext in '' $ac_executable_extensions; do 33251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33252 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33254 break 2 33255 fi 33256 done 33257 done 33258 IFS=$as_save_IFS 33259 33260 ;; 33261 esac 33262 fi 33263 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33264 if test -n "$POTENTIAL_CC"; then 33265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33266 $as_echo "$POTENTIAL_CC" >&6; } 33267 else 33268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33269 $as_echo "no" >&6; } 33270 fi 33271 33272 33273 test -n "$POTENTIAL_CC" && break 33274 done 33275 33276 CC=$POTENTIAL_CC 33277 fi 33278 33279 if test "x$CC" = x; then 33280 33281 # Print a helpful message on how to acquire the necessary build dependency. 33282 # devkit is the help tag: freetype, cups, alsa etc 33283 MISSING_DEPENDENCY=devkit 33284 33285 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33286 cygwin_help $MISSING_DEPENDENCY 33287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33288 msys_help $MISSING_DEPENDENCY 33289 else 33290 PKGHANDLER_COMMAND= 33291 33292 case $PKGHANDLER in 33293 apt-get) 33294 apt_help $MISSING_DEPENDENCY ;; 33295 yum) 33296 yum_help $MISSING_DEPENDENCY ;; 33297 port) 33298 port_help $MISSING_DEPENDENCY ;; 33299 pkgutil) 33300 pkgutil_help $MISSING_DEPENDENCY ;; 33301 pkgadd) 33302 pkgadd_help $MISSING_DEPENDENCY ;; 33303 esac 33304 33305 if test "x$PKGHANDLER_COMMAND" != x; then 33306 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33307 fi 33308 fi 33309 33310 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 33311 fi 33312 fi 33313 33314 # Now we have a compiler binary in CC. Make sure it's okay. 33315 33316 # Only process if variable expands to non-empty 33317 33318 if test "x$CC" != x; then 33319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33320 33321 # First separate the path from the arguments. This will split at the first 33322 # space. 33323 complete="$CC" 33324 path="${complete%% *}" 33325 tmp="$complete EOL" 33326 arguments="${tmp#* }" 33327 33328 # Input might be given as Windows format, start by converting to 33329 # unix format. 33330 new_path=`$CYGPATH -u "$path"` 33331 33332 # Now try to locate executable using which 33333 new_path=`$WHICH "$new_path" 2> /dev/null` 33334 # bat and cmd files are not always considered executable in cygwin causing which 33335 # to not find them 33336 if test "x$new_path" = x \ 33337 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33338 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33339 new_path=`$CYGPATH -u "$path"` 33340 fi 33341 if test "x$new_path" = x; then 33342 # Oops. Which didn't find the executable. 33343 # The splitting of arguments from the executable at a space might have been incorrect, 33344 # since paths with space are more likely in Windows. Give it another try with the whole 33345 # argument. 33346 path="$complete" 33347 arguments="EOL" 33348 new_path=`$CYGPATH -u "$path"` 33349 new_path=`$WHICH "$new_path" 2> /dev/null` 33350 # bat and cmd files are not always considered executable in cygwin causing which 33351 # to not find them 33352 if test "x$new_path" = x \ 33353 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33354 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33355 new_path=`$CYGPATH -u "$path"` 33356 fi 33357 if test "x$new_path" = x; then 33358 # It's still not found. Now this is an unrecoverable error. 33359 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33360 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33361 has_space=`$ECHO "$complete" | $GREP " "` 33362 if test "x$has_space" != x; then 33363 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33364 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33365 fi 33366 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33367 fi 33368 fi 33369 33370 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33371 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33372 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33373 # "foo.exe" is OK but "foo" is an error. 33374 # 33375 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33376 # It is also a way to make sure we got the proper file name for the real test later on. 33377 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33378 if test "x$test_shortpath" = x; then 33379 # Short path failed, file does not exist as specified. 33380 # Try adding .exe or .cmd 33381 if test -f "${new_path}.exe"; then 33382 input_to_shortpath="${new_path}.exe" 33383 elif test -f "${new_path}.cmd"; then 33384 input_to_shortpath="${new_path}.cmd" 33385 else 33386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 33387 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 33388 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33389 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33390 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33391 fi 33392 else 33393 input_to_shortpath="$new_path" 33394 fi 33395 33396 # Call helper function which possibly converts this using DOS-style short mode. 33397 # If so, the updated path is stored in $new_path. 33398 new_path="$input_to_shortpath" 33399 33400 input_path="$input_to_shortpath" 33401 # Check if we need to convert this using DOS-style short mode. If the path 33402 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33403 # take no chances and rewrite it. 33404 # Note: m4 eats our [], so we need to use [ and ] instead. 33405 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33406 if test "x$has_forbidden_chars" != x; then 33407 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33408 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33409 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33410 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33411 # Going to short mode and back again did indeed matter. Since short mode is 33412 # case insensitive, let's make it lowercase to improve readability. 33413 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33414 # Now convert it back to Unix-style (cygpath) 33415 input_path=`$CYGPATH -u "$shortmode_path"` 33416 new_path="$input_path" 33417 fi 33418 fi 33419 33420 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33421 if test "x$test_cygdrive_prefix" = x; then 33422 # As a simple fix, exclude /usr/bin since it's not a real path. 33423 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33424 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33425 # a path prefixed by /cygdrive for fixpath to work. 33426 new_path="$CYGWIN_ROOT_PATH$input_path" 33427 fi 33428 fi 33429 33430 # remove trailing .exe if any 33431 new_path="${new_path/%.exe/}" 33432 33433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33434 33435 # First separate the path from the arguments. This will split at the first 33436 # space. 33437 complete="$CC" 33438 path="${complete%% *}" 33439 tmp="$complete EOL" 33440 arguments="${tmp#* }" 33441 33442 # Input might be given as Windows format, start by converting to 33443 # unix format. 33444 new_path="$path" 33445 33446 windows_path="$new_path" 33447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33448 unix_path=`$CYGPATH -u "$windows_path"` 33449 new_path="$unix_path" 33450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33451 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33452 new_path="$unix_path" 33453 fi 33454 33455 33456 # Now try to locate executable using which 33457 new_path=`$WHICH "$new_path" 2> /dev/null` 33458 33459 if test "x$new_path" = x; then 33460 # Oops. Which didn't find the executable. 33461 # The splitting of arguments from the executable at a space might have been incorrect, 33462 # since paths with space are more likely in Windows. Give it another try with the whole 33463 # argument. 33464 path="$complete" 33465 arguments="EOL" 33466 new_path="$path" 33467 33468 windows_path="$new_path" 33469 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33470 unix_path=`$CYGPATH -u "$windows_path"` 33471 new_path="$unix_path" 33472 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33473 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33474 new_path="$unix_path" 33475 fi 33476 33477 33478 new_path=`$WHICH "$new_path" 2> /dev/null` 33479 # bat and cmd files are not always considered executable in MSYS causing which 33480 # to not find them 33481 if test "x$new_path" = x \ 33482 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33483 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33484 new_path="$path" 33485 33486 windows_path="$new_path" 33487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33488 unix_path=`$CYGPATH -u "$windows_path"` 33489 new_path="$unix_path" 33490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33492 new_path="$unix_path" 33493 fi 33494 33495 fi 33496 33497 if test "x$new_path" = x; then 33498 # It's still not found. Now this is an unrecoverable error. 33499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33500 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33501 has_space=`$ECHO "$complete" | $GREP " "` 33502 if test "x$has_space" != x; then 33503 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33504 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33505 fi 33506 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33507 fi 33508 fi 33509 33510 # Now new_path has a complete unix path to the binary 33511 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33512 # Keep paths in /bin as-is, but remove trailing .exe if any 33513 new_path="${new_path/%.exe/}" 33514 # Do not save /bin paths to all_fixpath_prefixes! 33515 else 33516 # Not in mixed or Windows style, start by that. 33517 new_path=`cmd //c echo $new_path` 33518 33519 input_path="$new_path" 33520 # Check if we need to convert this using DOS-style short mode. If the path 33521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33522 # take no chances and rewrite it. 33523 # Note: m4 eats our [], so we need to use [ and ] instead. 33524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33525 if test "x$has_forbidden_chars" != x; then 33526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33527 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33528 fi 33529 33530 # Output is in $new_path 33531 33532 windows_path="$new_path" 33533 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33534 unix_path=`$CYGPATH -u "$windows_path"` 33535 new_path="$unix_path" 33536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33537 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33538 new_path="$unix_path" 33539 fi 33540 33541 # remove trailing .exe if any 33542 new_path="${new_path/%.exe/}" 33543 33544 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33545 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33546 fi 33547 33548 else 33549 # We're on a unix platform. Hooray! :) 33550 # First separate the path from the arguments. This will split at the first 33551 # space. 33552 complete="$CC" 33553 path="${complete%% *}" 33554 tmp="$complete EOL" 33555 arguments="${tmp#* }" 33556 33557 # Cannot rely on the command "which" here since it doesn't always work. 33558 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33559 if test -z "$is_absolute_path"; then 33560 # Path to executable is not absolute. Find it. 33561 IFS_save="$IFS" 33562 IFS=: 33563 for p in $PATH; do 33564 if test -f "$p/$path" && test -x "$p/$path"; then 33565 new_path="$p/$path" 33566 break 33567 fi 33568 done 33569 IFS="$IFS_save" 33570 else 33571 # This is an absolute path, we can use it without further modifications. 33572 new_path="$path" 33573 fi 33574 33575 if test "x$new_path" = x; then 33576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33577 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33578 has_space=`$ECHO "$complete" | $GREP " "` 33579 if test "x$has_space" != x; then 33580 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33581 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33582 fi 33583 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33584 fi 33585 fi 33586 33587 # Now join together the path and the arguments once again 33588 if test "x$arguments" != xEOL; then 33589 new_complete="$new_path ${arguments% *}" 33590 else 33591 new_complete="$new_path" 33592 fi 33593 33594 if test "x$complete" != "x$new_complete"; then 33595 CC="$new_complete" 33596 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 33597 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 33598 fi 33599 fi 33600 33601 TEST_COMPILER="$CC" 33602 33603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 33604 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 33605 SYMLINK_ORIGINAL="$TEST_COMPILER" 33606 33607 if test "x$OPENJDK_BUILD_OS" != xwindows; then 33608 # Follow a chain of symbolic links. Use readlink 33609 # where it exists, else fall back to horribly 33610 # complicated shell code. 33611 if test "x$READLINK_TESTED" != yes; then 33612 # On MacOSX there is a readlink tool with a different 33613 # purpose than the GNU readlink tool. Check the found readlink. 33614 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 33615 if test "x$ISGNU" = x; then 33616 # A readlink that we do not know how to use. 33617 # Are there other non-GNU readlinks out there? 33618 READLINK_TESTED=yes 33619 READLINK= 33620 fi 33621 fi 33622 33623 if test "x$READLINK" != x; then 33624 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 33625 else 33626 # Save the current directory for restoring afterwards 33627 STARTDIR=$PWD 33628 COUNTER=0 33629 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 33630 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 33631 cd $sym_link_dir 33632 # Use -P flag to resolve symlinks in directories. 33633 cd `$THEPWDCMD -P` 33634 sym_link_dir=`$THEPWDCMD -P` 33635 # Resolve file symlinks 33636 while test $COUNTER -lt 20; do 33637 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 33638 if test "x$ISLINK" == x; then 33639 # This is not a symbolic link! We are done! 33640 break 33641 fi 33642 # Again resolve directory symlinks since the target of the just found 33643 # link could be in a different directory 33644 cd `$DIRNAME $ISLINK` 33645 sym_link_dir=`$THEPWDCMD -P` 33646 sym_link_file=`$BASENAME $ISLINK` 33647 let COUNTER=COUNTER+1 33648 done 33649 cd $STARTDIR 33650 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 33651 fi 33652 fi 33653 33654 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 33655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 33656 $as_echo "no symlink" >&6; } 33657 else 33658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 33659 $as_echo "$SYMLINK_ORIGINAL" >&6; } 33660 33661 # We can't handle ccache by gcc wrappers, since we need to know if we're 33662 # using ccache. Instead ccache usage must be controlled by a configure option. 33663 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 33664 if test "x$COMPILER_BASENAME" = "xccache"; then 33665 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 33666 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 33667 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 33668 fi 33669 fi 33670 33671 33672 COMPILER=$CC 33673 COMPILER_NAME=$COMPILER_NAME 33674 33675 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 33676 # cc -V output typically looks like 33677 # cc: Sun C 5.12 Linux_i386 2011/11/16 33678 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 33679 # Check that this is likely to be the Solaris Studio cc. 33680 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 33681 if test $? -ne 0; then 33682 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33683 { $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 33684 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33685 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33686 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33687 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33688 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33689 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33690 fi 33691 # Remove usage instructions (if present), and 33692 # collapse compiler output into a single line 33693 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33694 $SED -e 's/ *[Uu]sage:.*//'` 33695 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33696 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 33697 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 33698 # xlc -qversion output typically looks like 33699 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 33700 # Version: 11.01.0000.0015 33701 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 33702 # Check that this is likely to be the IBM XL C compiler. 33703 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 33704 if test $? -ne 0; then 33705 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33706 { $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 33707 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33708 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33709 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33710 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33711 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33712 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33713 fi 33714 # Collapse compiler output into a single line 33715 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33716 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33717 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 33718 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33719 # There is no specific version flag, but all output starts with a version string. 33720 # First line typically looks something like: 33721 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 33722 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 33723 # Check that this is likely to be Microsoft CL.EXE. 33724 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 33725 if test $? -ne 0; then 33726 { $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 33727 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33728 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33729 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33730 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33731 fi 33732 # Collapse compiler output into a single line 33733 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33734 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33735 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 33736 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 33737 # gcc --version output typically looks like 33738 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 33739 # Copyright (C) 2013 Free Software Foundation, Inc. 33740 # This is free software; see the source for copying conditions. There is NO 33741 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 33742 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33743 # Check that this is likely to be GCC. 33744 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 33745 if test $? -ne 0; then 33746 { $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 33747 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33748 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 33749 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 33750 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33751 fi 33752 # Remove Copyright and legalese from version string, and 33753 # collapse into a single line 33754 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33755 $SED -e 's/ *Copyright .*//'` 33756 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33757 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 33758 elif test "x$TOOLCHAIN_TYPE" = xclang; then 33759 # clang --version output typically looks like 33760 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 33761 # clang version 3.3 (tags/RELEASE_33/final) 33762 # or 33763 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 33764 # Target: x86_64-pc-linux-gnu 33765 # Thread model: posix 33766 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33767 # Check that this is likely to be clang 33768 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 33769 if test $? -ne 0; then 33770 { $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 33771 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33772 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33773 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33774 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33775 fi 33776 # Collapse compiler output into a single line 33777 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33778 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33779 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 33780 else 33781 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 33782 fi 33783 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 33784 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 33785 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 33786 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 33787 33788 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 33789 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 33790 33791 33792 # Now that we have resolved CC ourself, let autoconf have its go at it 33793 ac_ext=c 33794 ac_cpp='$CPP $CPPFLAGS' 33795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33797 ac_compiler_gnu=$ac_cv_c_compiler_gnu 33798 if test -n "$ac_tool_prefix"; then 33799 for ac_prog in $CC 33800 do 33801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33804 $as_echo_n "checking for $ac_word... " >&6; } 33805 if ${ac_cv_prog_CC+:} false; then : 33806 $as_echo_n "(cached) " >&6 33807 else 33808 if test -n "$CC"; then 33809 ac_cv_prog_CC="$CC" # Let the user override the test. 33810 else 33811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33812 for as_dir in $PATH 33813 do 33814 IFS=$as_save_IFS 33815 test -z "$as_dir" && as_dir=. 33816 for ac_exec_ext in '' $ac_executable_extensions; do 33817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33818 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 33819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33820 break 2 33821 fi 33822 done 33823 done 33824 IFS=$as_save_IFS 33825 33826 fi 33827 fi 33828 CC=$ac_cv_prog_CC 33829 if test -n "$CC"; then 33830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 33831 $as_echo "$CC" >&6; } 33832 else 33833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33834 $as_echo "no" >&6; } 33835 fi 33836 33837 33838 test -n "$CC" && break 33839 done 33840 fi 33841 if test -z "$CC"; then 33842 ac_ct_CC=$CC 33843 for ac_prog in $CC 33844 do 33845 # Extract the first word of "$ac_prog", so it can be a program name with args. 33846 set dummy $ac_prog; ac_word=$2 33847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33848 $as_echo_n "checking for $ac_word... " >&6; } 33849 if ${ac_cv_prog_ac_ct_CC+:} false; then : 33850 $as_echo_n "(cached) " >&6 33851 else 33852 if test -n "$ac_ct_CC"; then 33853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 33854 else 33855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33856 for as_dir in $PATH 33857 do 33858 IFS=$as_save_IFS 33859 test -z "$as_dir" && as_dir=. 33860 for ac_exec_ext in '' $ac_executable_extensions; do 33861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33862 ac_cv_prog_ac_ct_CC="$ac_prog" 33863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33864 break 2 33865 fi 33866 done 33867 done 33868 IFS=$as_save_IFS 33869 33870 fi 33871 fi 33872 ac_ct_CC=$ac_cv_prog_ac_ct_CC 33873 if test -n "$ac_ct_CC"; then 33874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 33875 $as_echo "$ac_ct_CC" >&6; } 33876 else 33877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33878 $as_echo "no" >&6; } 33879 fi 33880 33881 33882 test -n "$ac_ct_CC" && break 33883 done 33884 33885 if test "x$ac_ct_CC" = x; then 33886 CC="" 33887 else 33888 case $cross_compiling:$ac_tool_warned in 33889 yes:) 33890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33892 ac_tool_warned=yes ;; 33893 esac 33894 CC=$ac_ct_CC 33895 fi 33896 fi 33897 33898 33899 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33901 as_fn_error $? "no acceptable C compiler found in \$PATH 33902 See \`config.log' for more details" "$LINENO" 5; } 33903 33904 # Provide some information about the compiler. 33905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 33906 set X $ac_compile 33907 ac_compiler=$2 33908 for ac_option in --version -v -V -qversion; do 33909 { { ac_try="$ac_compiler $ac_option >&5" 33910 case "(($ac_try" in 33911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33912 *) ac_try_echo=$ac_try;; 33913 esac 33914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33915 $as_echo "$ac_try_echo"; } >&5 33916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33917 ac_status=$? 33918 if test -s conftest.err; then 33919 sed '10a\ 33920 ... rest of stderr output deleted ... 33921 10q' conftest.err >conftest.er1 33922 cat conftest.er1 >&5 33923 fi 33924 rm -f conftest.er1 conftest.err 33925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33926 test $ac_status = 0; } 33927 done 33928 33929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33930 /* end confdefs.h. */ 33931 33932 int 33933 main () 33934 { 33935 33936 ; 33937 return 0; 33938 } 33939 _ACEOF 33940 ac_clean_files_save=$ac_clean_files 33941 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 33942 # Try to create an executable without -o first, disregard a.out. 33943 # It will help us diagnose broken compilers, and finding out an intuition 33944 # of exeext. 33945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 33946 $as_echo_n "checking whether the C compiler works... " >&6; } 33947 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 33948 33949 # The possible output files: 33950 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 33951 33952 ac_rmfiles= 33953 for ac_file in $ac_files 33954 do 33955 case $ac_file in 33956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33957 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 33958 esac 33959 done 33960 rm -f $ac_rmfiles 33961 33962 if { { ac_try="$ac_link_default" 33963 case "(($ac_try" in 33964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33965 *) ac_try_echo=$ac_try;; 33966 esac 33967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33968 $as_echo "$ac_try_echo"; } >&5 33969 (eval "$ac_link_default") 2>&5 33970 ac_status=$? 33971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33972 test $ac_status = 0; }; then : 33973 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 33974 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 33975 # in a Makefile. We should not override ac_cv_exeext if it was cached, 33976 # so that the user can short-circuit this test for compilers unknown to 33977 # Autoconf. 33978 for ac_file in $ac_files '' 33979 do 33980 test -f "$ac_file" || continue 33981 case $ac_file in 33982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 33983 ;; 33984 [ab].out ) 33985 # We found the default executable, but exeext='' is most 33986 # certainly right. 33987 break;; 33988 *.* ) 33989 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 33990 then :; else 33991 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33992 fi 33993 # We set ac_cv_exeext here because the later test for it is not 33994 # safe: cross compilers may not add the suffix if given an `-o' 33995 # argument, so we may need to know it at that point already. 33996 # Even if this section looks crufty: it has the advantage of 33997 # actually working. 33998 break;; 33999 * ) 34000 break;; 34001 esac 34002 done 34003 test "$ac_cv_exeext" = no && ac_cv_exeext= 34004 34005 else 34006 ac_file='' 34007 fi 34008 if test -z "$ac_file"; then : 34009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34010 $as_echo "no" >&6; } 34011 $as_echo "$as_me: failed program was:" >&5 34012 sed 's/^/| /' conftest.$ac_ext >&5 34013 34014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34016 as_fn_error 77 "C compiler cannot create executables 34017 See \`config.log' for more details" "$LINENO" 5; } 34018 else 34019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34020 $as_echo "yes" >&6; } 34021 fi 34022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34023 $as_echo_n "checking for C compiler default output file name... " >&6; } 34024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34025 $as_echo "$ac_file" >&6; } 34026 ac_exeext=$ac_cv_exeext 34027 34028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34029 ac_clean_files=$ac_clean_files_save 34030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34031 $as_echo_n "checking for suffix of executables... " >&6; } 34032 if { { ac_try="$ac_link" 34033 case "(($ac_try" in 34034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34035 *) ac_try_echo=$ac_try;; 34036 esac 34037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34038 $as_echo "$ac_try_echo"; } >&5 34039 (eval "$ac_link") 2>&5 34040 ac_status=$? 34041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34042 test $ac_status = 0; }; then : 34043 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34044 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34045 # work properly (i.e., refer to `conftest.exe'), while it won't with 34046 # `rm'. 34047 for ac_file in conftest.exe conftest conftest.*; do 34048 test -f "$ac_file" || continue 34049 case $ac_file in 34050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34052 break;; 34053 * ) break;; 34054 esac 34055 done 34056 else 34057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34059 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34060 See \`config.log' for more details" "$LINENO" 5; } 34061 fi 34062 rm -f conftest conftest$ac_cv_exeext 34063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34064 $as_echo "$ac_cv_exeext" >&6; } 34065 34066 rm -f conftest.$ac_ext 34067 EXEEXT=$ac_cv_exeext 34068 ac_exeext=$EXEEXT 34069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34070 /* end confdefs.h. */ 34071 #include <stdio.h> 34072 int 34073 main () 34074 { 34075 FILE *f = fopen ("conftest.out", "w"); 34076 return ferror (f) || fclose (f) != 0; 34077 34078 ; 34079 return 0; 34080 } 34081 _ACEOF 34082 ac_clean_files="$ac_clean_files conftest.out" 34083 # Check that the compiler produces executables we can run. If not, either 34084 # the compiler is broken, or we cross compile. 34085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34086 $as_echo_n "checking whether we are cross compiling... " >&6; } 34087 if test "$cross_compiling" != yes; then 34088 { { ac_try="$ac_link" 34089 case "(($ac_try" in 34090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34091 *) ac_try_echo=$ac_try;; 34092 esac 34093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34094 $as_echo "$ac_try_echo"; } >&5 34095 (eval "$ac_link") 2>&5 34096 ac_status=$? 34097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34098 test $ac_status = 0; } 34099 if { ac_try='./conftest$ac_cv_exeext' 34100 { { case "(($ac_try" in 34101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34102 *) ac_try_echo=$ac_try;; 34103 esac 34104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34105 $as_echo "$ac_try_echo"; } >&5 34106 (eval "$ac_try") 2>&5 34107 ac_status=$? 34108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34109 test $ac_status = 0; }; }; then 34110 cross_compiling=no 34111 else 34112 if test "$cross_compiling" = maybe; then 34113 cross_compiling=yes 34114 else 34115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34117 as_fn_error $? "cannot run C compiled programs. 34118 If you meant to cross compile, use \`--host'. 34119 See \`config.log' for more details" "$LINENO" 5; } 34120 fi 34121 fi 34122 fi 34123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34124 $as_echo "$cross_compiling" >&6; } 34125 34126 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34127 ac_clean_files=$ac_clean_files_save 34128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34129 $as_echo_n "checking for suffix of object files... " >&6; } 34130 if ${ac_cv_objext+:} false; then : 34131 $as_echo_n "(cached) " >&6 34132 else 34133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34134 /* end confdefs.h. */ 34135 34136 int 34137 main () 34138 { 34139 34140 ; 34141 return 0; 34142 } 34143 _ACEOF 34144 rm -f conftest.o conftest.obj 34145 if { { ac_try="$ac_compile" 34146 case "(($ac_try" in 34147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34148 *) ac_try_echo=$ac_try;; 34149 esac 34150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34151 $as_echo "$ac_try_echo"; } >&5 34152 (eval "$ac_compile") 2>&5 34153 ac_status=$? 34154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34155 test $ac_status = 0; }; then : 34156 for ac_file in conftest.o conftest.obj conftest.*; do 34157 test -f "$ac_file" || continue; 34158 case $ac_file in 34159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34160 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34161 break;; 34162 esac 34163 done 34164 else 34165 $as_echo "$as_me: failed program was:" >&5 34166 sed 's/^/| /' conftest.$ac_ext >&5 34167 34168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34170 as_fn_error $? "cannot compute suffix of object files: cannot compile 34171 See \`config.log' for more details" "$LINENO" 5; } 34172 fi 34173 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34174 fi 34175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34176 $as_echo "$ac_cv_objext" >&6; } 34177 OBJEXT=$ac_cv_objext 34178 ac_objext=$OBJEXT 34179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34180 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34181 if ${ac_cv_c_compiler_gnu+:} false; then : 34182 $as_echo_n "(cached) " >&6 34183 else 34184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34185 /* end confdefs.h. */ 34186 34187 int 34188 main () 34189 { 34190 #ifndef __GNUC__ 34191 choke me 34192 #endif 34193 34194 ; 34195 return 0; 34196 } 34197 _ACEOF 34198 if ac_fn_c_try_compile "$LINENO"; then : 34199 ac_compiler_gnu=yes 34200 else 34201 ac_compiler_gnu=no 34202 fi 34203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34204 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34205 34206 fi 34207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34208 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34209 if test $ac_compiler_gnu = yes; then 34210 GCC=yes 34211 else 34212 GCC= 34213 fi 34214 ac_test_CFLAGS=${CFLAGS+set} 34215 ac_save_CFLAGS=$CFLAGS 34216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34217 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34218 if ${ac_cv_prog_cc_g+:} false; then : 34219 $as_echo_n "(cached) " >&6 34220 else 34221 ac_save_c_werror_flag=$ac_c_werror_flag 34222 ac_c_werror_flag=yes 34223 ac_cv_prog_cc_g=no 34224 CFLAGS="-g" 34225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34226 /* end confdefs.h. */ 34227 34228 int 34229 main () 34230 { 34231 34232 ; 34233 return 0; 34234 } 34235 _ACEOF 34236 if ac_fn_c_try_compile "$LINENO"; then : 34237 ac_cv_prog_cc_g=yes 34238 else 34239 CFLAGS="" 34240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34241 /* end confdefs.h. */ 34242 34243 int 34244 main () 34245 { 34246 34247 ; 34248 return 0; 34249 } 34250 _ACEOF 34251 if ac_fn_c_try_compile "$LINENO"; then : 34252 34253 else 34254 ac_c_werror_flag=$ac_save_c_werror_flag 34255 CFLAGS="-g" 34256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34257 /* end confdefs.h. */ 34258 34259 int 34260 main () 34261 { 34262 34263 ; 34264 return 0; 34265 } 34266 _ACEOF 34267 if ac_fn_c_try_compile "$LINENO"; then : 34268 ac_cv_prog_cc_g=yes 34269 fi 34270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34271 fi 34272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34273 fi 34274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34275 ac_c_werror_flag=$ac_save_c_werror_flag 34276 fi 34277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34278 $as_echo "$ac_cv_prog_cc_g" >&6; } 34279 if test "$ac_test_CFLAGS" = set; then 34280 CFLAGS=$ac_save_CFLAGS 34281 elif test $ac_cv_prog_cc_g = yes; then 34282 if test "$GCC" = yes; then 34283 CFLAGS="-g -O2" 34284 else 34285 CFLAGS="-g" 34286 fi 34287 else 34288 if test "$GCC" = yes; then 34289 CFLAGS="-O2" 34290 else 34291 CFLAGS= 34292 fi 34293 fi 34294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 34295 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34296 if ${ac_cv_prog_cc_c89+:} false; then : 34297 $as_echo_n "(cached) " >&6 34298 else 34299 ac_cv_prog_cc_c89=no 34300 ac_save_CC=$CC 34301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34302 /* end confdefs.h. */ 34303 #include <stdarg.h> 34304 #include <stdio.h> 34305 struct stat; 34306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34307 struct buf { int x; }; 34308 FILE * (*rcsopen) (struct buf *, struct stat *, int); 34309 static char *e (p, i) 34310 char **p; 34311 int i; 34312 { 34313 return p[i]; 34314 } 34315 static char *f (char * (*g) (char **, int), char **p, ...) 34316 { 34317 char *s; 34318 va_list v; 34319 va_start (v,p); 34320 s = g (p, va_arg (v,int)); 34321 va_end (v); 34322 return s; 34323 } 34324 34325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34326 function prototypes and stuff, but not '\xHH' hex character constants. 34327 These don't provoke an error unfortunately, instead are silently treated 34328 as 'x'. The following induces an error, until -std is added to get 34329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 34330 array size at least. It's necessary to write '\x00'==0 to get something 34331 that's true only with -std. */ 34332 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 34333 34334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 34335 inside strings and character constants. */ 34336 #define FOO(x) 'x' 34337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 34338 34339 int test (int i, double x); 34340 struct s1 {int (*f) (int a);}; 34341 struct s2 {int (*f) (double a);}; 34342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 34343 int argc; 34344 char **argv; 34345 int 34346 main () 34347 { 34348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 34349 ; 34350 return 0; 34351 } 34352 _ACEOF 34353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 34354 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 34355 do 34356 CC="$ac_save_CC $ac_arg" 34357 if ac_fn_c_try_compile "$LINENO"; then : 34358 ac_cv_prog_cc_c89=$ac_arg 34359 fi 34360 rm -f core conftest.err conftest.$ac_objext 34361 test "x$ac_cv_prog_cc_c89" != "xno" && break 34362 done 34363 rm -f conftest.$ac_ext 34364 CC=$ac_save_CC 34365 34366 fi 34367 # AC_CACHE_VAL 34368 case "x$ac_cv_prog_cc_c89" in 34369 x) 34370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 34371 $as_echo "none needed" >&6; } ;; 34372 xno) 34373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 34374 $as_echo "unsupported" >&6; } ;; 34375 *) 34376 CC="$CC $ac_cv_prog_cc_c89" 34377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 34378 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 34379 esac 34380 if test "x$ac_cv_prog_cc_c89" != xno; then : 34381 34382 fi 34383 34384 ac_ext=cpp 34385 ac_cpp='$CXXCPP $CPPFLAGS' 34386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34389 34390 34391 34392 COMPILER_NAME=C++ 34393 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 34394 34395 if test "x$CXX" != x; then 34396 # User has supplied compiler name already, always let that override. 34397 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 34398 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 34399 if test "x`basename $CXX`" = "x$CXX"; then 34400 # A command without a complete path is provided, search $PATH. 34401 34402 for ac_prog in $CXX 34403 do 34404 # Extract the first word of "$ac_prog", so it can be a program name with args. 34405 set dummy $ac_prog; ac_word=$2 34406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34407 $as_echo_n "checking for $ac_word... " >&6; } 34408 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34409 $as_echo_n "(cached) " >&6 34410 else 34411 case $POTENTIAL_CXX in 34412 [\\/]* | ?:[\\/]*) 34413 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34414 ;; 34415 *) 34416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34417 for as_dir in $PATH 34418 do 34419 IFS=$as_save_IFS 34420 test -z "$as_dir" && as_dir=. 34421 for ac_exec_ext in '' $ac_executable_extensions; do 34422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34423 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34425 break 2 34426 fi 34427 done 34428 done 34429 IFS=$as_save_IFS 34430 34431 ;; 34432 esac 34433 fi 34434 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34435 if test -n "$POTENTIAL_CXX"; then 34436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34437 $as_echo "$POTENTIAL_CXX" >&6; } 34438 else 34439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34440 $as_echo "no" >&6; } 34441 fi 34442 34443 34444 test -n "$POTENTIAL_CXX" && break 34445 done 34446 34447 if test "x$POTENTIAL_CXX" != x; then 34448 CXX=$POTENTIAL_CXX 34449 else 34450 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 34451 fi 34452 else 34453 # Otherwise it might already be a complete path 34454 if test ! -x "$CXX"; then 34455 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 34456 fi 34457 fi 34458 else 34459 # No user supplied value. Locate compiler ourselves. 34460 34461 # If we are cross compiling, assume cross compilation tools follows the 34462 # cross compilation standard where they are prefixed with the autoconf 34463 # standard name for the target. For example the binary 34464 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 34465 # If we are not cross compiling, then the default compiler name will be 34466 # used. 34467 34468 CXX= 34469 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 34470 # before checking the rest of the PATH. 34471 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 34472 # step, this should not be necessary. 34473 if test -n "$TOOLCHAIN_PATH"; then 34474 PATH_save="$PATH" 34475 PATH="$TOOLCHAIN_PATH" 34476 for ac_prog in $SEARCH_LIST 34477 do 34478 # Extract the first word of "$ac_prog", so it can be a program name with args. 34479 set dummy $ac_prog; ac_word=$2 34480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34481 $as_echo_n "checking for $ac_word... " >&6; } 34482 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 34483 $as_echo_n "(cached) " >&6 34484 else 34485 case $TOOLCHAIN_PATH_CXX in 34486 [\\/]* | ?:[\\/]*) 34487 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 34488 ;; 34489 *) 34490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34491 for as_dir in $PATH 34492 do 34493 IFS=$as_save_IFS 34494 test -z "$as_dir" && as_dir=. 34495 for ac_exec_ext in '' $ac_executable_extensions; do 34496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34497 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 34498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34499 break 2 34500 fi 34501 done 34502 done 34503 IFS=$as_save_IFS 34504 34505 ;; 34506 esac 34507 fi 34508 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 34509 if test -n "$TOOLCHAIN_PATH_CXX"; then 34510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 34511 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 34512 else 34513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34514 $as_echo "no" >&6; } 34515 fi 34516 34517 34518 test -n "$TOOLCHAIN_PATH_CXX" && break 34519 done 34520 34521 CXX=$TOOLCHAIN_PATH_CXX 34522 PATH="$PATH_save" 34523 fi 34524 34525 # AC_PATH_PROGS can't be run multiple times with the same variable, 34526 # so create a new name for this run. 34527 if test "x$CXX" = x; then 34528 for ac_prog in $SEARCH_LIST 34529 do 34530 # Extract the first word of "$ac_prog", so it can be a program name with args. 34531 set dummy $ac_prog; ac_word=$2 34532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34533 $as_echo_n "checking for $ac_word... " >&6; } 34534 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34535 $as_echo_n "(cached) " >&6 34536 else 34537 case $POTENTIAL_CXX in 34538 [\\/]* | ?:[\\/]*) 34539 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34540 ;; 34541 *) 34542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34543 for as_dir in $PATH 34544 do 34545 IFS=$as_save_IFS 34546 test -z "$as_dir" && as_dir=. 34547 for ac_exec_ext in '' $ac_executable_extensions; do 34548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34549 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34551 break 2 34552 fi 34553 done 34554 done 34555 IFS=$as_save_IFS 34556 34557 ;; 34558 esac 34559 fi 34560 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34561 if test -n "$POTENTIAL_CXX"; then 34562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34563 $as_echo "$POTENTIAL_CXX" >&6; } 34564 else 34565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34566 $as_echo "no" >&6; } 34567 fi 34568 34569 34570 test -n "$POTENTIAL_CXX" && break 34571 done 34572 34573 CXX=$POTENTIAL_CXX 34574 fi 34575 34576 if test "x$CXX" = x; then 34577 34578 # Print a helpful message on how to acquire the necessary build dependency. 34579 # devkit is the help tag: freetype, cups, alsa etc 34580 MISSING_DEPENDENCY=devkit 34581 34582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34583 cygwin_help $MISSING_DEPENDENCY 34584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34585 msys_help $MISSING_DEPENDENCY 34586 else 34587 PKGHANDLER_COMMAND= 34588 34589 case $PKGHANDLER in 34590 apt-get) 34591 apt_help $MISSING_DEPENDENCY ;; 34592 yum) 34593 yum_help $MISSING_DEPENDENCY ;; 34594 port) 34595 port_help $MISSING_DEPENDENCY ;; 34596 pkgutil) 34597 pkgutil_help $MISSING_DEPENDENCY ;; 34598 pkgadd) 34599 pkgadd_help $MISSING_DEPENDENCY ;; 34600 esac 34601 34602 if test "x$PKGHANDLER_COMMAND" != x; then 34603 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34604 fi 34605 fi 34606 34607 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34608 fi 34609 fi 34610 34611 # Now we have a compiler binary in CXX. Make sure it's okay. 34612 34613 # Only process if variable expands to non-empty 34614 34615 if test "x$CXX" != x; then 34616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34617 34618 # First separate the path from the arguments. This will split at the first 34619 # space. 34620 complete="$CXX" 34621 path="${complete%% *}" 34622 tmp="$complete EOL" 34623 arguments="${tmp#* }" 34624 34625 # Input might be given as Windows format, start by converting to 34626 # unix format. 34627 new_path=`$CYGPATH -u "$path"` 34628 34629 # Now try to locate executable using which 34630 new_path=`$WHICH "$new_path" 2> /dev/null` 34631 # bat and cmd files are not always considered executable in cygwin causing which 34632 # to not find them 34633 if test "x$new_path" = x \ 34634 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34635 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34636 new_path=`$CYGPATH -u "$path"` 34637 fi 34638 if test "x$new_path" = x; then 34639 # Oops. Which didn't find the executable. 34640 # The splitting of arguments from the executable at a space might have been incorrect, 34641 # since paths with space are more likely in Windows. Give it another try with the whole 34642 # argument. 34643 path="$complete" 34644 arguments="EOL" 34645 new_path=`$CYGPATH -u "$path"` 34646 new_path=`$WHICH "$new_path" 2> /dev/null` 34647 # bat and cmd files are not always considered executable in cygwin causing which 34648 # to not find them 34649 if test "x$new_path" = x \ 34650 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34651 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34652 new_path=`$CYGPATH -u "$path"` 34653 fi 34654 if test "x$new_path" = x; then 34655 # It's still not found. Now this is an unrecoverable error. 34656 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34657 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34658 has_space=`$ECHO "$complete" | $GREP " "` 34659 if test "x$has_space" != x; then 34660 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34661 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34662 fi 34663 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34664 fi 34665 fi 34666 34667 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34668 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34669 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34670 # "foo.exe" is OK but "foo" is an error. 34671 # 34672 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34673 # It is also a way to make sure we got the proper file name for the real test later on. 34674 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34675 if test "x$test_shortpath" = x; then 34676 # Short path failed, file does not exist as specified. 34677 # Try adding .exe or .cmd 34678 if test -f "${new_path}.exe"; then 34679 input_to_shortpath="${new_path}.exe" 34680 elif test -f "${new_path}.cmd"; then 34681 input_to_shortpath="${new_path}.cmd" 34682 else 34683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 34684 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 34685 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34686 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34687 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34688 fi 34689 else 34690 input_to_shortpath="$new_path" 34691 fi 34692 34693 # Call helper function which possibly converts this using DOS-style short mode. 34694 # If so, the updated path is stored in $new_path. 34695 new_path="$input_to_shortpath" 34696 34697 input_path="$input_to_shortpath" 34698 # Check if we need to convert this using DOS-style short mode. If the path 34699 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34700 # take no chances and rewrite it. 34701 # Note: m4 eats our [], so we need to use [ and ] instead. 34702 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34703 if test "x$has_forbidden_chars" != x; then 34704 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34705 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34706 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34707 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34708 # Going to short mode and back again did indeed matter. Since short mode is 34709 # case insensitive, let's make it lowercase to improve readability. 34710 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34711 # Now convert it back to Unix-style (cygpath) 34712 input_path=`$CYGPATH -u "$shortmode_path"` 34713 new_path="$input_path" 34714 fi 34715 fi 34716 34717 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34718 if test "x$test_cygdrive_prefix" = x; then 34719 # As a simple fix, exclude /usr/bin since it's not a real path. 34720 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34721 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34722 # a path prefixed by /cygdrive for fixpath to work. 34723 new_path="$CYGWIN_ROOT_PATH$input_path" 34724 fi 34725 fi 34726 34727 # remove trailing .exe if any 34728 new_path="${new_path/%.exe/}" 34729 34730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34731 34732 # First separate the path from the arguments. This will split at the first 34733 # space. 34734 complete="$CXX" 34735 path="${complete%% *}" 34736 tmp="$complete EOL" 34737 arguments="${tmp#* }" 34738 34739 # Input might be given as Windows format, start by converting to 34740 # unix format. 34741 new_path="$path" 34742 34743 windows_path="$new_path" 34744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34745 unix_path=`$CYGPATH -u "$windows_path"` 34746 new_path="$unix_path" 34747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34748 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34749 new_path="$unix_path" 34750 fi 34751 34752 34753 # Now try to locate executable using which 34754 new_path=`$WHICH "$new_path" 2> /dev/null` 34755 34756 if test "x$new_path" = x; then 34757 # Oops. Which didn't find the executable. 34758 # The splitting of arguments from the executable at a space might have been incorrect, 34759 # since paths with space are more likely in Windows. Give it another try with the whole 34760 # argument. 34761 path="$complete" 34762 arguments="EOL" 34763 new_path="$path" 34764 34765 windows_path="$new_path" 34766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34767 unix_path=`$CYGPATH -u "$windows_path"` 34768 new_path="$unix_path" 34769 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34770 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34771 new_path="$unix_path" 34772 fi 34773 34774 34775 new_path=`$WHICH "$new_path" 2> /dev/null` 34776 # bat and cmd files are not always considered executable in MSYS causing which 34777 # to not find them 34778 if test "x$new_path" = x \ 34779 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34780 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34781 new_path="$path" 34782 34783 windows_path="$new_path" 34784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34785 unix_path=`$CYGPATH -u "$windows_path"` 34786 new_path="$unix_path" 34787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34789 new_path="$unix_path" 34790 fi 34791 34792 fi 34793 34794 if test "x$new_path" = x; then 34795 # It's still not found. Now this is an unrecoverable error. 34796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34797 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34798 has_space=`$ECHO "$complete" | $GREP " "` 34799 if test "x$has_space" != x; then 34800 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34801 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34802 fi 34803 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34804 fi 34805 fi 34806 34807 # Now new_path has a complete unix path to the binary 34808 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34809 # Keep paths in /bin as-is, but remove trailing .exe if any 34810 new_path="${new_path/%.exe/}" 34811 # Do not save /bin paths to all_fixpath_prefixes! 34812 else 34813 # Not in mixed or Windows style, start by that. 34814 new_path=`cmd //c echo $new_path` 34815 34816 input_path="$new_path" 34817 # Check if we need to convert this using DOS-style short mode. If the path 34818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34819 # take no chances and rewrite it. 34820 # Note: m4 eats our [], so we need to use [ and ] instead. 34821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34822 if test "x$has_forbidden_chars" != x; then 34823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34824 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34825 fi 34826 34827 # Output is in $new_path 34828 34829 windows_path="$new_path" 34830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34831 unix_path=`$CYGPATH -u "$windows_path"` 34832 new_path="$unix_path" 34833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34835 new_path="$unix_path" 34836 fi 34837 34838 # remove trailing .exe if any 34839 new_path="${new_path/%.exe/}" 34840 34841 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34842 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34843 fi 34844 34845 else 34846 # We're on a unix platform. Hooray! :) 34847 # First separate the path from the arguments. This will split at the first 34848 # space. 34849 complete="$CXX" 34850 path="${complete%% *}" 34851 tmp="$complete EOL" 34852 arguments="${tmp#* }" 34853 34854 # Cannot rely on the command "which" here since it doesn't always work. 34855 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34856 if test -z "$is_absolute_path"; then 34857 # Path to executable is not absolute. Find it. 34858 IFS_save="$IFS" 34859 IFS=: 34860 for p in $PATH; do 34861 if test -f "$p/$path" && test -x "$p/$path"; then 34862 new_path="$p/$path" 34863 break 34864 fi 34865 done 34866 IFS="$IFS_save" 34867 else 34868 # This is an absolute path, we can use it without further modifications. 34869 new_path="$path" 34870 fi 34871 34872 if test "x$new_path" = x; then 34873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34874 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34875 has_space=`$ECHO "$complete" | $GREP " "` 34876 if test "x$has_space" != x; then 34877 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34878 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34879 fi 34880 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34881 fi 34882 fi 34883 34884 # Now join together the path and the arguments once again 34885 if test "x$arguments" != xEOL; then 34886 new_complete="$new_path ${arguments% *}" 34887 else 34888 new_complete="$new_path" 34889 fi 34890 34891 if test "x$complete" != "x$new_complete"; then 34892 CXX="$new_complete" 34893 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 34894 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 34895 fi 34896 fi 34897 34898 TEST_COMPILER="$CXX" 34899 34900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 34901 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 34902 SYMLINK_ORIGINAL="$TEST_COMPILER" 34903 34904 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34905 # Follow a chain of symbolic links. Use readlink 34906 # where it exists, else fall back to horribly 34907 # complicated shell code. 34908 if test "x$READLINK_TESTED" != yes; then 34909 # On MacOSX there is a readlink tool with a different 34910 # purpose than the GNU readlink tool. Check the found readlink. 34911 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34912 if test "x$ISGNU" = x; then 34913 # A readlink that we do not know how to use. 34914 # Are there other non-GNU readlinks out there? 34915 READLINK_TESTED=yes 34916 READLINK= 34917 fi 34918 fi 34919 34920 if test "x$READLINK" != x; then 34921 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34922 else 34923 # Save the current directory for restoring afterwards 34924 STARTDIR=$PWD 34925 COUNTER=0 34926 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34927 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34928 cd $sym_link_dir 34929 # Use -P flag to resolve symlinks in directories. 34930 cd `$THEPWDCMD -P` 34931 sym_link_dir=`$THEPWDCMD -P` 34932 # Resolve file symlinks 34933 while test $COUNTER -lt 20; do 34934 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34935 if test "x$ISLINK" == x; then 34936 # This is not a symbolic link! We are done! 34937 break 34938 fi 34939 # Again resolve directory symlinks since the target of the just found 34940 # link could be in a different directory 34941 cd `$DIRNAME $ISLINK` 34942 sym_link_dir=`$THEPWDCMD -P` 34943 sym_link_file=`$BASENAME $ISLINK` 34944 let COUNTER=COUNTER+1 34945 done 34946 cd $STARTDIR 34947 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34948 fi 34949 fi 34950 34951 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34953 $as_echo "no symlink" >&6; } 34954 else 34955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34956 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34957 34958 # We can't handle ccache by gcc wrappers, since we need to know if we're 34959 # using ccache. Instead ccache usage must be controlled by a configure option. 34960 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34961 if test "x$COMPILER_BASENAME" = "xccache"; then 34962 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34963 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34964 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34965 fi 34966 fi 34967 34968 34969 COMPILER=$CXX 34970 COMPILER_NAME=$COMPILER_NAME 34971 34972 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34973 # cc -V output typically looks like 34974 # cc: Sun C 5.12 Linux_i386 2011/11/16 34975 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34976 # Check that this is likely to be the Solaris Studio cc. 34977 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 34978 if test $? -ne 0; then 34979 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34980 { $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 34981 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34982 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34983 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34984 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34985 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34986 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34987 fi 34988 # Remove usage instructions (if present), and 34989 # collapse compiler output into a single line 34990 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34991 $SED -e 's/ *[Uu]sage:.*//'` 34992 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34993 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34994 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34995 # xlc -qversion output typically looks like 34996 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34997 # Version: 11.01.0000.0015 34998 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34999 # Check that this is likely to be the IBM XL C compiler. 35000 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 35001 if test $? -ne 0; then 35002 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35003 { $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 35004 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35005 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35006 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35007 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35008 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35009 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35010 fi 35011 # Collapse compiler output into a single line 35012 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35013 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35014 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 35015 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35016 # There is no specific version flag, but all output starts with a version string. 35017 # First line typically looks something like: 35018 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 35019 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 35020 # Check that this is likely to be Microsoft CL.EXE. 35021 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 35022 if test $? -ne 0; then 35023 { $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 35024 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35025 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35026 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35027 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35028 fi 35029 # Collapse compiler output into a single line 35030 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35031 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35032 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 35033 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 35034 # gcc --version output typically looks like 35035 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 35036 # Copyright (C) 2013 Free Software Foundation, Inc. 35037 # This is free software; see the source for copying conditions. There is NO 35038 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35039 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35040 # Check that this is likely to be GCC. 35041 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 35042 if test $? -ne 0; then 35043 { $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 35044 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35045 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 35046 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 35047 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35048 fi 35049 # Remove Copyright and legalese from version string, and 35050 # collapse into a single line 35051 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35052 $SED -e 's/ *Copyright .*//'` 35053 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35054 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 35055 elif test "x$TOOLCHAIN_TYPE" = xclang; then 35056 # clang --version output typically looks like 35057 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 35058 # clang version 3.3 (tags/RELEASE_33/final) 35059 # or 35060 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 35061 # Target: x86_64-pc-linux-gnu 35062 # Thread model: posix 35063 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35064 # Check that this is likely to be clang 35065 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 35066 if test $? -ne 0; then 35067 { $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 35068 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35069 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35070 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35071 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35072 fi 35073 # Collapse compiler output into a single line 35074 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35075 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35076 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 35077 else 35078 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 35079 fi 35080 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 35081 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 35082 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 35083 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 35084 35085 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 35086 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 35087 35088 35089 # Now that we have resolved CXX ourself, let autoconf have its go at it 35090 ac_ext=cpp 35091 ac_cpp='$CXXCPP $CPPFLAGS' 35092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35095 if test -z "$CXX"; then 35096 if test -n "$CCC"; then 35097 CXX=$CCC 35098 else 35099 if test -n "$ac_tool_prefix"; then 35100 for ac_prog in $CXX 35101 do 35102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35105 $as_echo_n "checking for $ac_word... " >&6; } 35106 if ${ac_cv_prog_CXX+:} false; then : 35107 $as_echo_n "(cached) " >&6 35108 else 35109 if test -n "$CXX"; then 35110 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35111 else 35112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35113 for as_dir in $PATH 35114 do 35115 IFS=$as_save_IFS 35116 test -z "$as_dir" && as_dir=. 35117 for ac_exec_ext in '' $ac_executable_extensions; do 35118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35119 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35121 break 2 35122 fi 35123 done 35124 done 35125 IFS=$as_save_IFS 35126 35127 fi 35128 fi 35129 CXX=$ac_cv_prog_CXX 35130 if test -n "$CXX"; then 35131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35132 $as_echo "$CXX" >&6; } 35133 else 35134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35135 $as_echo "no" >&6; } 35136 fi 35137 35138 35139 test -n "$CXX" && break 35140 done 35141 fi 35142 if test -z "$CXX"; then 35143 ac_ct_CXX=$CXX 35144 for ac_prog in $CXX 35145 do 35146 # Extract the first word of "$ac_prog", so it can be a program name with args. 35147 set dummy $ac_prog; ac_word=$2 35148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35149 $as_echo_n "checking for $ac_word... " >&6; } 35150 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 35151 $as_echo_n "(cached) " >&6 35152 else 35153 if test -n "$ac_ct_CXX"; then 35154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 35155 else 35156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35157 for as_dir in $PATH 35158 do 35159 IFS=$as_save_IFS 35160 test -z "$as_dir" && as_dir=. 35161 for ac_exec_ext in '' $ac_executable_extensions; do 35162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35163 ac_cv_prog_ac_ct_CXX="$ac_prog" 35164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35165 break 2 35166 fi 35167 done 35168 done 35169 IFS=$as_save_IFS 35170 35171 fi 35172 fi 35173 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 35174 if test -n "$ac_ct_CXX"; then 35175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 35176 $as_echo "$ac_ct_CXX" >&6; } 35177 else 35178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35179 $as_echo "no" >&6; } 35180 fi 35181 35182 35183 test -n "$ac_ct_CXX" && break 35184 done 35185 35186 if test "x$ac_ct_CXX" = x; then 35187 CXX="g++" 35188 else 35189 case $cross_compiling:$ac_tool_warned in 35190 yes:) 35191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35193 ac_tool_warned=yes ;; 35194 esac 35195 CXX=$ac_ct_CXX 35196 fi 35197 fi 35198 35199 fi 35200 fi 35201 # Provide some information about the compiler. 35202 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 35203 set X $ac_compile 35204 ac_compiler=$2 35205 for ac_option in --version -v -V -qversion; do 35206 { { ac_try="$ac_compiler $ac_option >&5" 35207 case "(($ac_try" in 35208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35209 *) ac_try_echo=$ac_try;; 35210 esac 35211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35212 $as_echo "$ac_try_echo"; } >&5 35213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 35214 ac_status=$? 35215 if test -s conftest.err; then 35216 sed '10a\ 35217 ... rest of stderr output deleted ... 35218 10q' conftest.err >conftest.er1 35219 cat conftest.er1 >&5 35220 fi 35221 rm -f conftest.er1 conftest.err 35222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35223 test $ac_status = 0; } 35224 done 35225 35226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 35227 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 35228 if ${ac_cv_cxx_compiler_gnu+:} false; then : 35229 $as_echo_n "(cached) " >&6 35230 else 35231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35232 /* end confdefs.h. */ 35233 35234 int 35235 main () 35236 { 35237 #ifndef __GNUC__ 35238 choke me 35239 #endif 35240 35241 ; 35242 return 0; 35243 } 35244 _ACEOF 35245 if ac_fn_cxx_try_compile "$LINENO"; then : 35246 ac_compiler_gnu=yes 35247 else 35248 ac_compiler_gnu=no 35249 fi 35250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 35252 35253 fi 35254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 35255 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 35256 if test $ac_compiler_gnu = yes; then 35257 GXX=yes 35258 else 35259 GXX= 35260 fi 35261 ac_test_CXXFLAGS=${CXXFLAGS+set} 35262 ac_save_CXXFLAGS=$CXXFLAGS 35263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 35264 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 35265 if ${ac_cv_prog_cxx_g+:} false; then : 35266 $as_echo_n "(cached) " >&6 35267 else 35268 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 35269 ac_cxx_werror_flag=yes 35270 ac_cv_prog_cxx_g=no 35271 CXXFLAGS="-g" 35272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35273 /* end confdefs.h. */ 35274 35275 int 35276 main () 35277 { 35278 35279 ; 35280 return 0; 35281 } 35282 _ACEOF 35283 if ac_fn_cxx_try_compile "$LINENO"; then : 35284 ac_cv_prog_cxx_g=yes 35285 else 35286 CXXFLAGS="" 35287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35288 /* end confdefs.h. */ 35289 35290 int 35291 main () 35292 { 35293 35294 ; 35295 return 0; 35296 } 35297 _ACEOF 35298 if ac_fn_cxx_try_compile "$LINENO"; then : 35299 35300 else 35301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35302 CXXFLAGS="-g" 35303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35304 /* end confdefs.h. */ 35305 35306 int 35307 main () 35308 { 35309 35310 ; 35311 return 0; 35312 } 35313 _ACEOF 35314 if ac_fn_cxx_try_compile "$LINENO"; then : 35315 ac_cv_prog_cxx_g=yes 35316 fi 35317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35318 fi 35319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35320 fi 35321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35322 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35323 fi 35324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 35325 $as_echo "$ac_cv_prog_cxx_g" >&6; } 35326 if test "$ac_test_CXXFLAGS" = set; then 35327 CXXFLAGS=$ac_save_CXXFLAGS 35328 elif test $ac_cv_prog_cxx_g = yes; then 35329 if test "$GXX" = yes; then 35330 CXXFLAGS="-g -O2" 35331 else 35332 CXXFLAGS="-g" 35333 fi 35334 else 35335 if test "$GXX" = yes; then 35336 CXXFLAGS="-O2" 35337 else 35338 CXXFLAGS= 35339 fi 35340 fi 35341 ac_ext=cpp 35342 ac_cpp='$CXXCPP $CPPFLAGS' 35343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35346 35347 35348 # This is the compiler version number on the form X.Y[.Z] 35349 35350 35351 35352 35353 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 35354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 35355 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 35356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 35357 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 35358 fi 35359 35360 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 35361 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 35362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 35363 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35364 fi 35365 35366 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 35367 { $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 35368 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35369 fi 35370 35371 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 35372 35373 35374 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 35375 35376 35377 35378 35379 35380 35381 35382 35383 35384 35385 35386 35387 35388 35389 35390 35391 35392 35393 35394 35395 35396 35397 35398 35399 35400 35401 35402 35403 35404 35405 35406 35407 35408 35409 35410 35411 35412 35413 35414 35415 35416 35417 35418 35419 35420 35421 35422 35423 35424 # Execute function body 35425 35426 # Need to assign to a variable since m4 is blocked from modifying parts in []. 35427 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 35428 35429 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 35430 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 35431 fi 35432 35433 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 35434 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 35435 fi 35436 35437 # Version comparison method inspired by http://stackoverflow.com/a/24067243 35438 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 35439 35440 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 35441 : 35442 35443 else 35444 : 35445 35446 { $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 35447 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 35448 35449 35450 fi 35451 35452 35453 35454 35455 35456 35457 35458 35459 35460 35461 35462 35463 35464 35465 fi 35466 35467 # 35468 # Setup the preprocessor (CPP and CXXCPP) 35469 # 35470 ac_ext=c 35471 ac_cpp='$CPP $CPPFLAGS' 35472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35474 ac_compiler_gnu=$ac_cv_c_compiler_gnu 35475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 35476 $as_echo_n "checking how to run the C preprocessor... " >&6; } 35477 # On Suns, sometimes $CPP names a directory. 35478 if test -n "$CPP" && test -d "$CPP"; then 35479 CPP= 35480 fi 35481 if test -z "$CPP"; then 35482 if ${ac_cv_prog_CPP+:} false; then : 35483 $as_echo_n "(cached) " >&6 35484 else 35485 # Double quotes because CPP needs to be expanded 35486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 35487 do 35488 ac_preproc_ok=false 35489 for ac_c_preproc_warn_flag in '' yes 35490 do 35491 # Use a header file that comes with gcc, so configuring glibc 35492 # with a fresh cross-compiler works. 35493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35494 # <limits.h> exists even on freestanding compilers. 35495 # On the NeXT, cc -E runs the code through the compiler's parser, 35496 # not just through cpp. "Syntax error" is here to catch this case. 35497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35498 /* end confdefs.h. */ 35499 #ifdef __STDC__ 35500 # include <limits.h> 35501 #else 35502 # include <assert.h> 35503 #endif 35504 Syntax error 35505 _ACEOF 35506 if ac_fn_c_try_cpp "$LINENO"; then : 35507 35508 else 35509 # Broken: fails on valid input. 35510 continue 35511 fi 35512 rm -f conftest.err conftest.i conftest.$ac_ext 35513 35514 # OK, works on sane cases. Now check whether nonexistent headers 35515 # can be detected and how. 35516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35517 /* end confdefs.h. */ 35518 #include <ac_nonexistent.h> 35519 _ACEOF 35520 if ac_fn_c_try_cpp "$LINENO"; then : 35521 # Broken: success on invalid input. 35522 continue 35523 else 35524 # Passes both tests. 35525 ac_preproc_ok=: 35526 break 35527 fi 35528 rm -f conftest.err conftest.i conftest.$ac_ext 35529 35530 done 35531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35532 rm -f conftest.i conftest.err conftest.$ac_ext 35533 if $ac_preproc_ok; then : 35534 break 35535 fi 35536 35537 done 35538 ac_cv_prog_CPP=$CPP 35539 35540 fi 35541 CPP=$ac_cv_prog_CPP 35542 else 35543 ac_cv_prog_CPP=$CPP 35544 fi 35545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 35546 $as_echo "$CPP" >&6; } 35547 ac_preproc_ok=false 35548 for ac_c_preproc_warn_flag in '' yes 35549 do 35550 # Use a header file that comes with gcc, so configuring glibc 35551 # with a fresh cross-compiler works. 35552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35553 # <limits.h> exists even on freestanding compilers. 35554 # On the NeXT, cc -E runs the code through the compiler's parser, 35555 # not just through cpp. "Syntax error" is here to catch this case. 35556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35557 /* end confdefs.h. */ 35558 #ifdef __STDC__ 35559 # include <limits.h> 35560 #else 35561 # include <assert.h> 35562 #endif 35563 Syntax error 35564 _ACEOF 35565 if ac_fn_c_try_cpp "$LINENO"; then : 35566 35567 else 35568 # Broken: fails on valid input. 35569 continue 35570 fi 35571 rm -f conftest.err conftest.i conftest.$ac_ext 35572 35573 # OK, works on sane cases. Now check whether nonexistent headers 35574 # can be detected and how. 35575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35576 /* end confdefs.h. */ 35577 #include <ac_nonexistent.h> 35578 _ACEOF 35579 if ac_fn_c_try_cpp "$LINENO"; then : 35580 # Broken: success on invalid input. 35581 continue 35582 else 35583 # Passes both tests. 35584 ac_preproc_ok=: 35585 break 35586 fi 35587 rm -f conftest.err conftest.i conftest.$ac_ext 35588 35589 done 35590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35591 rm -f conftest.i conftest.err conftest.$ac_ext 35592 if $ac_preproc_ok; then : 35593 35594 else 35595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35597 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 35598 See \`config.log' for more details" "$LINENO" 5; } 35599 fi 35600 35601 ac_ext=cpp 35602 ac_cpp='$CXXCPP $CPPFLAGS' 35603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35606 35607 35608 # Only process if variable expands to non-empty 35609 35610 if test "x$CPP" != x; then 35611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35612 35613 # First separate the path from the arguments. This will split at the first 35614 # space. 35615 complete="$CPP" 35616 path="${complete%% *}" 35617 tmp="$complete EOL" 35618 arguments="${tmp#* }" 35619 35620 # Input might be given as Windows format, start by converting to 35621 # unix format. 35622 new_path=`$CYGPATH -u "$path"` 35623 35624 # Now try to locate executable using which 35625 new_path=`$WHICH "$new_path" 2> /dev/null` 35626 # bat and cmd files are not always considered executable in cygwin causing which 35627 # to not find them 35628 if test "x$new_path" = x \ 35629 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35630 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35631 new_path=`$CYGPATH -u "$path"` 35632 fi 35633 if test "x$new_path" = x; then 35634 # Oops. Which didn't find the executable. 35635 # The splitting of arguments from the executable at a space might have been incorrect, 35636 # since paths with space are more likely in Windows. Give it another try with the whole 35637 # argument. 35638 path="$complete" 35639 arguments="EOL" 35640 new_path=`$CYGPATH -u "$path"` 35641 new_path=`$WHICH "$new_path" 2> /dev/null` 35642 # bat and cmd files are not always considered executable in cygwin causing which 35643 # to not find them 35644 if test "x$new_path" = x \ 35645 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35646 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35647 new_path=`$CYGPATH -u "$path"` 35648 fi 35649 if test "x$new_path" = x; then 35650 # It's still not found. Now this is an unrecoverable error. 35651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35652 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35653 has_space=`$ECHO "$complete" | $GREP " "` 35654 if test "x$has_space" != x; then 35655 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35656 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35657 fi 35658 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35659 fi 35660 fi 35661 35662 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35663 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35664 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35665 # "foo.exe" is OK but "foo" is an error. 35666 # 35667 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35668 # It is also a way to make sure we got the proper file name for the real test later on. 35669 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35670 if test "x$test_shortpath" = x; then 35671 # Short path failed, file does not exist as specified. 35672 # Try adding .exe or .cmd 35673 if test -f "${new_path}.exe"; then 35674 input_to_shortpath="${new_path}.exe" 35675 elif test -f "${new_path}.cmd"; then 35676 input_to_shortpath="${new_path}.cmd" 35677 else 35678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 35679 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 35680 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35681 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35682 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35683 fi 35684 else 35685 input_to_shortpath="$new_path" 35686 fi 35687 35688 # Call helper function which possibly converts this using DOS-style short mode. 35689 # If so, the updated path is stored in $new_path. 35690 new_path="$input_to_shortpath" 35691 35692 input_path="$input_to_shortpath" 35693 # Check if we need to convert this using DOS-style short mode. If the path 35694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35695 # take no chances and rewrite it. 35696 # Note: m4 eats our [], so we need to use [ and ] instead. 35697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35698 if test "x$has_forbidden_chars" != x; then 35699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35700 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35701 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35702 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35703 # Going to short mode and back again did indeed matter. Since short mode is 35704 # case insensitive, let's make it lowercase to improve readability. 35705 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35706 # Now convert it back to Unix-style (cygpath) 35707 input_path=`$CYGPATH -u "$shortmode_path"` 35708 new_path="$input_path" 35709 fi 35710 fi 35711 35712 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35713 if test "x$test_cygdrive_prefix" = x; then 35714 # As a simple fix, exclude /usr/bin since it's not a real path. 35715 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35716 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35717 # a path prefixed by /cygdrive for fixpath to work. 35718 new_path="$CYGWIN_ROOT_PATH$input_path" 35719 fi 35720 fi 35721 35722 # remove trailing .exe if any 35723 new_path="${new_path/%.exe/}" 35724 35725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35726 35727 # First separate the path from the arguments. This will split at the first 35728 # space. 35729 complete="$CPP" 35730 path="${complete%% *}" 35731 tmp="$complete EOL" 35732 arguments="${tmp#* }" 35733 35734 # Input might be given as Windows format, start by converting to 35735 # unix format. 35736 new_path="$path" 35737 35738 windows_path="$new_path" 35739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35740 unix_path=`$CYGPATH -u "$windows_path"` 35741 new_path="$unix_path" 35742 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35743 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35744 new_path="$unix_path" 35745 fi 35746 35747 35748 # Now try to locate executable using which 35749 new_path=`$WHICH "$new_path" 2> /dev/null` 35750 35751 if test "x$new_path" = x; then 35752 # Oops. Which didn't find the executable. 35753 # The splitting of arguments from the executable at a space might have been incorrect, 35754 # since paths with space are more likely in Windows. Give it another try with the whole 35755 # argument. 35756 path="$complete" 35757 arguments="EOL" 35758 new_path="$path" 35759 35760 windows_path="$new_path" 35761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35762 unix_path=`$CYGPATH -u "$windows_path"` 35763 new_path="$unix_path" 35764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35766 new_path="$unix_path" 35767 fi 35768 35769 35770 new_path=`$WHICH "$new_path" 2> /dev/null` 35771 # bat and cmd files are not always considered executable in MSYS causing which 35772 # to not find them 35773 if test "x$new_path" = x \ 35774 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35775 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35776 new_path="$path" 35777 35778 windows_path="$new_path" 35779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35780 unix_path=`$CYGPATH -u "$windows_path"` 35781 new_path="$unix_path" 35782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35783 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35784 new_path="$unix_path" 35785 fi 35786 35787 fi 35788 35789 if test "x$new_path" = x; then 35790 # It's still not found. Now this is an unrecoverable error. 35791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35792 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35793 has_space=`$ECHO "$complete" | $GREP " "` 35794 if test "x$has_space" != x; then 35795 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35796 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35797 fi 35798 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35799 fi 35800 fi 35801 35802 # Now new_path has a complete unix path to the binary 35803 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35804 # Keep paths in /bin as-is, but remove trailing .exe if any 35805 new_path="${new_path/%.exe/}" 35806 # Do not save /bin paths to all_fixpath_prefixes! 35807 else 35808 # Not in mixed or Windows style, start by that. 35809 new_path=`cmd //c echo $new_path` 35810 35811 input_path="$new_path" 35812 # Check if we need to convert this using DOS-style short mode. If the path 35813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35814 # take no chances and rewrite it. 35815 # Note: m4 eats our [], so we need to use [ and ] instead. 35816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35817 if test "x$has_forbidden_chars" != x; then 35818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35819 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35820 fi 35821 35822 # Output is in $new_path 35823 35824 windows_path="$new_path" 35825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35826 unix_path=`$CYGPATH -u "$windows_path"` 35827 new_path="$unix_path" 35828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35829 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35830 new_path="$unix_path" 35831 fi 35832 35833 # remove trailing .exe if any 35834 new_path="${new_path/%.exe/}" 35835 35836 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35837 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35838 fi 35839 35840 else 35841 # We're on a unix platform. Hooray! :) 35842 # First separate the path from the arguments. This will split at the first 35843 # space. 35844 complete="$CPP" 35845 path="${complete%% *}" 35846 tmp="$complete EOL" 35847 arguments="${tmp#* }" 35848 35849 # Cannot rely on the command "which" here since it doesn't always work. 35850 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35851 if test -z "$is_absolute_path"; then 35852 # Path to executable is not absolute. Find it. 35853 IFS_save="$IFS" 35854 IFS=: 35855 for p in $PATH; do 35856 if test -f "$p/$path" && test -x "$p/$path"; then 35857 new_path="$p/$path" 35858 break 35859 fi 35860 done 35861 IFS="$IFS_save" 35862 else 35863 # This is an absolute path, we can use it without further modifications. 35864 new_path="$path" 35865 fi 35866 35867 if test "x$new_path" = x; then 35868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35869 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35870 has_space=`$ECHO "$complete" | $GREP " "` 35871 if test "x$has_space" != x; then 35872 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35873 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35874 fi 35875 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35876 fi 35877 fi 35878 35879 # Now join together the path and the arguments once again 35880 if test "x$arguments" != xEOL; then 35881 new_complete="$new_path ${arguments% *}" 35882 else 35883 new_complete="$new_path" 35884 fi 35885 35886 if test "x$complete" != "x$new_complete"; then 35887 CPP="$new_complete" 35888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 35889 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 35890 fi 35891 fi 35892 35893 ac_ext=cpp 35894 ac_cpp='$CXXCPP $CPPFLAGS' 35895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 35899 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 35900 if test -z "$CXXCPP"; then 35901 if ${ac_cv_prog_CXXCPP+:} false; then : 35902 $as_echo_n "(cached) " >&6 35903 else 35904 # Double quotes because CXXCPP needs to be expanded 35905 for CXXCPP in "$CXX -E" "/lib/cpp" 35906 do 35907 ac_preproc_ok=false 35908 for ac_cxx_preproc_warn_flag in '' yes 35909 do 35910 # Use a header file that comes with gcc, so configuring glibc 35911 # with a fresh cross-compiler works. 35912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35913 # <limits.h> exists even on freestanding compilers. 35914 # On the NeXT, cc -E runs the code through the compiler's parser, 35915 # not just through cpp. "Syntax error" is here to catch this case. 35916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35917 /* end confdefs.h. */ 35918 #ifdef __STDC__ 35919 # include <limits.h> 35920 #else 35921 # include <assert.h> 35922 #endif 35923 Syntax error 35924 _ACEOF 35925 if ac_fn_cxx_try_cpp "$LINENO"; then : 35926 35927 else 35928 # Broken: fails on valid input. 35929 continue 35930 fi 35931 rm -f conftest.err conftest.i conftest.$ac_ext 35932 35933 # OK, works on sane cases. Now check whether nonexistent headers 35934 # can be detected and how. 35935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35936 /* end confdefs.h. */ 35937 #include <ac_nonexistent.h> 35938 _ACEOF 35939 if ac_fn_cxx_try_cpp "$LINENO"; then : 35940 # Broken: success on invalid input. 35941 continue 35942 else 35943 # Passes both tests. 35944 ac_preproc_ok=: 35945 break 35946 fi 35947 rm -f conftest.err conftest.i conftest.$ac_ext 35948 35949 done 35950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35951 rm -f conftest.i conftest.err conftest.$ac_ext 35952 if $ac_preproc_ok; then : 35953 break 35954 fi 35955 35956 done 35957 ac_cv_prog_CXXCPP=$CXXCPP 35958 35959 fi 35960 CXXCPP=$ac_cv_prog_CXXCPP 35961 else 35962 ac_cv_prog_CXXCPP=$CXXCPP 35963 fi 35964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 35965 $as_echo "$CXXCPP" >&6; } 35966 ac_preproc_ok=false 35967 for ac_cxx_preproc_warn_flag in '' yes 35968 do 35969 # Use a header file that comes with gcc, so configuring glibc 35970 # with a fresh cross-compiler works. 35971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35972 # <limits.h> exists even on freestanding compilers. 35973 # On the NeXT, cc -E runs the code through the compiler's parser, 35974 # not just through cpp. "Syntax error" is here to catch this case. 35975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35976 /* end confdefs.h. */ 35977 #ifdef __STDC__ 35978 # include <limits.h> 35979 #else 35980 # include <assert.h> 35981 #endif 35982 Syntax error 35983 _ACEOF 35984 if ac_fn_cxx_try_cpp "$LINENO"; then : 35985 35986 else 35987 # Broken: fails on valid input. 35988 continue 35989 fi 35990 rm -f conftest.err conftest.i conftest.$ac_ext 35991 35992 # OK, works on sane cases. Now check whether nonexistent headers 35993 # can be detected and how. 35994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35995 /* end confdefs.h. */ 35996 #include <ac_nonexistent.h> 35997 _ACEOF 35998 if ac_fn_cxx_try_cpp "$LINENO"; then : 35999 # Broken: success on invalid input. 36000 continue 36001 else 36002 # Passes both tests. 36003 ac_preproc_ok=: 36004 break 36005 fi 36006 rm -f conftest.err conftest.i conftest.$ac_ext 36007 36008 done 36009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36010 rm -f conftest.i conftest.err conftest.$ac_ext 36011 if $ac_preproc_ok; then : 36012 36013 else 36014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36016 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 36017 See \`config.log' for more details" "$LINENO" 5; } 36018 fi 36019 36020 ac_ext=cpp 36021 ac_cpp='$CXXCPP $CPPFLAGS' 36022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36025 36026 36027 # Only process if variable expands to non-empty 36028 36029 if test "x$CXXCPP" != x; then 36030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36031 36032 # First separate the path from the arguments. This will split at the first 36033 # space. 36034 complete="$CXXCPP" 36035 path="${complete%% *}" 36036 tmp="$complete EOL" 36037 arguments="${tmp#* }" 36038 36039 # Input might be given as Windows format, start by converting to 36040 # unix format. 36041 new_path=`$CYGPATH -u "$path"` 36042 36043 # Now try to locate executable using which 36044 new_path=`$WHICH "$new_path" 2> /dev/null` 36045 # bat and cmd files are not always considered executable in cygwin causing which 36046 # to not find them 36047 if test "x$new_path" = x \ 36048 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36049 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36050 new_path=`$CYGPATH -u "$path"` 36051 fi 36052 if test "x$new_path" = x; then 36053 # Oops. Which didn't find the executable. 36054 # The splitting of arguments from the executable at a space might have been incorrect, 36055 # since paths with space are more likely in Windows. Give it another try with the whole 36056 # argument. 36057 path="$complete" 36058 arguments="EOL" 36059 new_path=`$CYGPATH -u "$path"` 36060 new_path=`$WHICH "$new_path" 2> /dev/null` 36061 # bat and cmd files are not always considered executable in cygwin causing which 36062 # to not find them 36063 if test "x$new_path" = x \ 36064 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36065 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36066 new_path=`$CYGPATH -u "$path"` 36067 fi 36068 if test "x$new_path" = x; then 36069 # It's still not found. Now this is an unrecoverable error. 36070 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36071 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36072 has_space=`$ECHO "$complete" | $GREP " "` 36073 if test "x$has_space" != x; then 36074 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36075 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36076 fi 36077 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36078 fi 36079 fi 36080 36081 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36082 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36083 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36084 # "foo.exe" is OK but "foo" is an error. 36085 # 36086 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36087 # It is also a way to make sure we got the proper file name for the real test later on. 36088 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36089 if test "x$test_shortpath" = x; then 36090 # Short path failed, file does not exist as specified. 36091 # Try adding .exe or .cmd 36092 if test -f "${new_path}.exe"; then 36093 input_to_shortpath="${new_path}.exe" 36094 elif test -f "${new_path}.cmd"; then 36095 input_to_shortpath="${new_path}.cmd" 36096 else 36097 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36098 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36099 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36100 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36101 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36102 fi 36103 else 36104 input_to_shortpath="$new_path" 36105 fi 36106 36107 # Call helper function which possibly converts this using DOS-style short mode. 36108 # If so, the updated path is stored in $new_path. 36109 new_path="$input_to_shortpath" 36110 36111 input_path="$input_to_shortpath" 36112 # Check if we need to convert this using DOS-style short mode. If the path 36113 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36114 # take no chances and rewrite it. 36115 # Note: m4 eats our [], so we need to use [ and ] instead. 36116 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36117 if test "x$has_forbidden_chars" != x; then 36118 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36119 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36120 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36121 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36122 # Going to short mode and back again did indeed matter. Since short mode is 36123 # case insensitive, let's make it lowercase to improve readability. 36124 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36125 # Now convert it back to Unix-style (cygpath) 36126 input_path=`$CYGPATH -u "$shortmode_path"` 36127 new_path="$input_path" 36128 fi 36129 fi 36130 36131 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36132 if test "x$test_cygdrive_prefix" = x; then 36133 # As a simple fix, exclude /usr/bin since it's not a real path. 36134 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36135 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36136 # a path prefixed by /cygdrive for fixpath to work. 36137 new_path="$CYGWIN_ROOT_PATH$input_path" 36138 fi 36139 fi 36140 36141 # remove trailing .exe if any 36142 new_path="${new_path/%.exe/}" 36143 36144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36145 36146 # First separate the path from the arguments. This will split at the first 36147 # space. 36148 complete="$CXXCPP" 36149 path="${complete%% *}" 36150 tmp="$complete EOL" 36151 arguments="${tmp#* }" 36152 36153 # Input might be given as Windows format, start by converting to 36154 # unix format. 36155 new_path="$path" 36156 36157 windows_path="$new_path" 36158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36159 unix_path=`$CYGPATH -u "$windows_path"` 36160 new_path="$unix_path" 36161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36163 new_path="$unix_path" 36164 fi 36165 36166 36167 # Now try to locate executable using which 36168 new_path=`$WHICH "$new_path" 2> /dev/null` 36169 36170 if test "x$new_path" = x; then 36171 # Oops. Which didn't find the executable. 36172 # The splitting of arguments from the executable at a space might have been incorrect, 36173 # since paths with space are more likely in Windows. Give it another try with the whole 36174 # argument. 36175 path="$complete" 36176 arguments="EOL" 36177 new_path="$path" 36178 36179 windows_path="$new_path" 36180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36181 unix_path=`$CYGPATH -u "$windows_path"` 36182 new_path="$unix_path" 36183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36185 new_path="$unix_path" 36186 fi 36187 36188 36189 new_path=`$WHICH "$new_path" 2> /dev/null` 36190 # bat and cmd files are not always considered executable in MSYS causing which 36191 # to not find them 36192 if test "x$new_path" = x \ 36193 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36194 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36195 new_path="$path" 36196 36197 windows_path="$new_path" 36198 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36199 unix_path=`$CYGPATH -u "$windows_path"` 36200 new_path="$unix_path" 36201 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36202 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36203 new_path="$unix_path" 36204 fi 36205 36206 fi 36207 36208 if test "x$new_path" = x; then 36209 # It's still not found. Now this is an unrecoverable error. 36210 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36211 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36212 has_space=`$ECHO "$complete" | $GREP " "` 36213 if test "x$has_space" != x; then 36214 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36215 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36216 fi 36217 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36218 fi 36219 fi 36220 36221 # Now new_path has a complete unix path to the binary 36222 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36223 # Keep paths in /bin as-is, but remove trailing .exe if any 36224 new_path="${new_path/%.exe/}" 36225 # Do not save /bin paths to all_fixpath_prefixes! 36226 else 36227 # Not in mixed or Windows style, start by that. 36228 new_path=`cmd //c echo $new_path` 36229 36230 input_path="$new_path" 36231 # Check if we need to convert this using DOS-style short mode. If the path 36232 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36233 # take no chances and rewrite it. 36234 # Note: m4 eats our [], so we need to use [ and ] instead. 36235 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36236 if test "x$has_forbidden_chars" != x; then 36237 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36238 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36239 fi 36240 36241 # Output is in $new_path 36242 36243 windows_path="$new_path" 36244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36245 unix_path=`$CYGPATH -u "$windows_path"` 36246 new_path="$unix_path" 36247 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36248 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36249 new_path="$unix_path" 36250 fi 36251 36252 # remove trailing .exe if any 36253 new_path="${new_path/%.exe/}" 36254 36255 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36256 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36257 fi 36258 36259 else 36260 # We're on a unix platform. Hooray! :) 36261 # First separate the path from the arguments. This will split at the first 36262 # space. 36263 complete="$CXXCPP" 36264 path="${complete%% *}" 36265 tmp="$complete EOL" 36266 arguments="${tmp#* }" 36267 36268 # Cannot rely on the command "which" here since it doesn't always work. 36269 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36270 if test -z "$is_absolute_path"; then 36271 # Path to executable is not absolute. Find it. 36272 IFS_save="$IFS" 36273 IFS=: 36274 for p in $PATH; do 36275 if test -f "$p/$path" && test -x "$p/$path"; then 36276 new_path="$p/$path" 36277 break 36278 fi 36279 done 36280 IFS="$IFS_save" 36281 else 36282 # This is an absolute path, we can use it without further modifications. 36283 new_path="$path" 36284 fi 36285 36286 if test "x$new_path" = x; then 36287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36288 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36289 has_space=`$ECHO "$complete" | $GREP " "` 36290 if test "x$has_space" != x; then 36291 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36292 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36293 fi 36294 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36295 fi 36296 fi 36297 36298 # Now join together the path and the arguments once again 36299 if test "x$arguments" != xEOL; then 36300 new_complete="$new_path ${arguments% *}" 36301 else 36302 new_complete="$new_path" 36303 fi 36304 36305 if test "x$complete" != "x$new_complete"; then 36306 CXXCPP="$new_complete" 36307 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 36308 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 36309 fi 36310 fi 36311 36312 36313 # 36314 # Setup the linker (LD) 36315 # 36316 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 36317 # In the Microsoft toolchain we have a separate LD command "link". 36318 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 36319 # a cygwin program for something completely different. 36320 # Extract the first word of "link", so it can be a program name with args. 36321 set dummy link; ac_word=$2 36322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36323 $as_echo_n "checking for $ac_word... " >&6; } 36324 if ${ac_cv_prog_LD+:} false; then : 36325 $as_echo_n "(cached) " >&6 36326 else 36327 if test -n "$LD"; then 36328 ac_cv_prog_LD="$LD" # Let the user override the test. 36329 else 36330 ac_prog_rejected=no 36331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36332 for as_dir in $PATH 36333 do 36334 IFS=$as_save_IFS 36335 test -z "$as_dir" && as_dir=. 36336 for ac_exec_ext in '' $ac_executable_extensions; do 36337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36338 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 36339 ac_prog_rejected=yes 36340 continue 36341 fi 36342 ac_cv_prog_LD="link" 36343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36344 break 2 36345 fi 36346 done 36347 done 36348 IFS=$as_save_IFS 36349 36350 if test $ac_prog_rejected = yes; then 36351 # We found a bogon in the path, so make sure we never use it. 36352 set dummy $ac_cv_prog_LD 36353 shift 36354 if test $# != 0; then 36355 # We chose a different compiler from the bogus one. 36356 # However, it has the same basename, so the bogon will be chosen 36357 # first if we set LD to just the basename; use the full file name. 36358 shift 36359 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 36360 fi 36361 fi 36362 fi 36363 fi 36364 LD=$ac_cv_prog_LD 36365 if test -n "$LD"; then 36366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 36367 $as_echo "$LD" >&6; } 36368 else 36369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36370 $as_echo "no" >&6; } 36371 fi 36372 36373 36374 36375 # Only process if variable expands to non-empty 36376 36377 if test "x$LD" != x; then 36378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36379 36380 # First separate the path from the arguments. This will split at the first 36381 # space. 36382 complete="$LD" 36383 path="${complete%% *}" 36384 tmp="$complete EOL" 36385 arguments="${tmp#* }" 36386 36387 # Input might be given as Windows format, start by converting to 36388 # unix format. 36389 new_path=`$CYGPATH -u "$path"` 36390 36391 # Now try to locate executable using which 36392 new_path=`$WHICH "$new_path" 2> /dev/null` 36393 # bat and cmd files are not always considered executable in cygwin causing which 36394 # to not find them 36395 if test "x$new_path" = x \ 36396 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36397 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36398 new_path=`$CYGPATH -u "$path"` 36399 fi 36400 if test "x$new_path" = x; then 36401 # Oops. Which didn't find the executable. 36402 # The splitting of arguments from the executable at a space might have been incorrect, 36403 # since paths with space are more likely in Windows. Give it another try with the whole 36404 # argument. 36405 path="$complete" 36406 arguments="EOL" 36407 new_path=`$CYGPATH -u "$path"` 36408 new_path=`$WHICH "$new_path" 2> /dev/null` 36409 # bat and cmd files are not always considered executable in cygwin causing which 36410 # to not find them 36411 if test "x$new_path" = x \ 36412 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36413 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36414 new_path=`$CYGPATH -u "$path"` 36415 fi 36416 if test "x$new_path" = x; then 36417 # It's still not found. Now this is an unrecoverable error. 36418 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36419 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36420 has_space=`$ECHO "$complete" | $GREP " "` 36421 if test "x$has_space" != x; then 36422 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36423 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36424 fi 36425 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36426 fi 36427 fi 36428 36429 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36430 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36431 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36432 # "foo.exe" is OK but "foo" is an error. 36433 # 36434 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36435 # It is also a way to make sure we got the proper file name for the real test later on. 36436 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36437 if test "x$test_shortpath" = x; then 36438 # Short path failed, file does not exist as specified. 36439 # Try adding .exe or .cmd 36440 if test -f "${new_path}.exe"; then 36441 input_to_shortpath="${new_path}.exe" 36442 elif test -f "${new_path}.cmd"; then 36443 input_to_shortpath="${new_path}.cmd" 36444 else 36445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 36446 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 36447 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36448 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36449 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36450 fi 36451 else 36452 input_to_shortpath="$new_path" 36453 fi 36454 36455 # Call helper function which possibly converts this using DOS-style short mode. 36456 # If so, the updated path is stored in $new_path. 36457 new_path="$input_to_shortpath" 36458 36459 input_path="$input_to_shortpath" 36460 # Check if we need to convert this using DOS-style short mode. If the path 36461 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36462 # take no chances and rewrite it. 36463 # Note: m4 eats our [], so we need to use [ and ] instead. 36464 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36465 if test "x$has_forbidden_chars" != x; then 36466 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36467 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36468 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36469 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36470 # Going to short mode and back again did indeed matter. Since short mode is 36471 # case insensitive, let's make it lowercase to improve readability. 36472 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36473 # Now convert it back to Unix-style (cygpath) 36474 input_path=`$CYGPATH -u "$shortmode_path"` 36475 new_path="$input_path" 36476 fi 36477 fi 36478 36479 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36480 if test "x$test_cygdrive_prefix" = x; then 36481 # As a simple fix, exclude /usr/bin since it's not a real path. 36482 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36483 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36484 # a path prefixed by /cygdrive for fixpath to work. 36485 new_path="$CYGWIN_ROOT_PATH$input_path" 36486 fi 36487 fi 36488 36489 # remove trailing .exe if any 36490 new_path="${new_path/%.exe/}" 36491 36492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36493 36494 # First separate the path from the arguments. This will split at the first 36495 # space. 36496 complete="$LD" 36497 path="${complete%% *}" 36498 tmp="$complete EOL" 36499 arguments="${tmp#* }" 36500 36501 # Input might be given as Windows format, start by converting to 36502 # unix format. 36503 new_path="$path" 36504 36505 windows_path="$new_path" 36506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36507 unix_path=`$CYGPATH -u "$windows_path"` 36508 new_path="$unix_path" 36509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36510 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36511 new_path="$unix_path" 36512 fi 36513 36514 36515 # Now try to locate executable using which 36516 new_path=`$WHICH "$new_path" 2> /dev/null` 36517 36518 if test "x$new_path" = x; then 36519 # Oops. Which didn't find the executable. 36520 # The splitting of arguments from the executable at a space might have been incorrect, 36521 # since paths with space are more likely in Windows. Give it another try with the whole 36522 # argument. 36523 path="$complete" 36524 arguments="EOL" 36525 new_path="$path" 36526 36527 windows_path="$new_path" 36528 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36529 unix_path=`$CYGPATH -u "$windows_path"` 36530 new_path="$unix_path" 36531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36532 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36533 new_path="$unix_path" 36534 fi 36535 36536 36537 new_path=`$WHICH "$new_path" 2> /dev/null` 36538 # bat and cmd files are not always considered executable in MSYS causing which 36539 # to not find them 36540 if test "x$new_path" = x \ 36541 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36542 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36543 new_path="$path" 36544 36545 windows_path="$new_path" 36546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36547 unix_path=`$CYGPATH -u "$windows_path"` 36548 new_path="$unix_path" 36549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36551 new_path="$unix_path" 36552 fi 36553 36554 fi 36555 36556 if test "x$new_path" = x; then 36557 # It's still not found. Now this is an unrecoverable error. 36558 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36559 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36560 has_space=`$ECHO "$complete" | $GREP " "` 36561 if test "x$has_space" != x; then 36562 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36563 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36564 fi 36565 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36566 fi 36567 fi 36568 36569 # Now new_path has a complete unix path to the binary 36570 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36571 # Keep paths in /bin as-is, but remove trailing .exe if any 36572 new_path="${new_path/%.exe/}" 36573 # Do not save /bin paths to all_fixpath_prefixes! 36574 else 36575 # Not in mixed or Windows style, start by that. 36576 new_path=`cmd //c echo $new_path` 36577 36578 input_path="$new_path" 36579 # Check if we need to convert this using DOS-style short mode. If the path 36580 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36581 # take no chances and rewrite it. 36582 # Note: m4 eats our [], so we need to use [ and ] instead. 36583 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36584 if test "x$has_forbidden_chars" != x; then 36585 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36586 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36587 fi 36588 36589 # Output is in $new_path 36590 36591 windows_path="$new_path" 36592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36593 unix_path=`$CYGPATH -u "$windows_path"` 36594 new_path="$unix_path" 36595 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36596 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36597 new_path="$unix_path" 36598 fi 36599 36600 # remove trailing .exe if any 36601 new_path="${new_path/%.exe/}" 36602 36603 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36604 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36605 fi 36606 36607 else 36608 # We're on a unix platform. Hooray! :) 36609 # First separate the path from the arguments. This will split at the first 36610 # space. 36611 complete="$LD" 36612 path="${complete%% *}" 36613 tmp="$complete EOL" 36614 arguments="${tmp#* }" 36615 36616 # Cannot rely on the command "which" here since it doesn't always work. 36617 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36618 if test -z "$is_absolute_path"; then 36619 # Path to executable is not absolute. Find it. 36620 IFS_save="$IFS" 36621 IFS=: 36622 for p in $PATH; do 36623 if test -f "$p/$path" && test -x "$p/$path"; then 36624 new_path="$p/$path" 36625 break 36626 fi 36627 done 36628 IFS="$IFS_save" 36629 else 36630 # This is an absolute path, we can use it without further modifications. 36631 new_path="$path" 36632 fi 36633 36634 if test "x$new_path" = x; then 36635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36636 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36637 has_space=`$ECHO "$complete" | $GREP " "` 36638 if test "x$has_space" != x; then 36639 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36640 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36641 fi 36642 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36643 fi 36644 fi 36645 36646 # Now join together the path and the arguments once again 36647 if test "x$arguments" != xEOL; then 36648 new_complete="$new_path ${arguments% *}" 36649 else 36650 new_complete="$new_path" 36651 fi 36652 36653 if test "x$complete" != "x$new_complete"; then 36654 LD="$new_complete" 36655 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 36656 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 36657 fi 36658 fi 36659 36660 # Verify that we indeed succeeded with this trick. 36661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 36662 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 36663 "$LD" --version > /dev/null 36664 if test $? -eq 0 ; then 36665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36666 $as_echo "no" >&6; } 36667 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 36668 else 36669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36670 $as_echo "yes" >&6; } 36671 fi 36672 LDCXX="$LD" 36673 else 36674 # All other toolchains use the compiler to link. 36675 LD="$CC" 36676 LDCXX="$CXX" 36677 fi 36678 36679 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 36680 36681 36682 # 36683 # Setup the assembler (AS) 36684 # 36685 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 36686 36687 36688 # Publish this variable in the help. 36689 36690 36691 if [ -z "${AS+x}" ]; then 36692 # The variable is not set by user, try to locate tool using the code snippet 36693 for ac_prog in as 36694 do 36695 # Extract the first word of "$ac_prog", so it can be a program name with args. 36696 set dummy $ac_prog; ac_word=$2 36697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36698 $as_echo_n "checking for $ac_word... " >&6; } 36699 if ${ac_cv_path_AS+:} false; then : 36700 $as_echo_n "(cached) " >&6 36701 else 36702 case $AS in 36703 [\\/]* | ?:[\\/]*) 36704 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36705 ;; 36706 *) 36707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36708 for as_dir in $PATH 36709 do 36710 IFS=$as_save_IFS 36711 test -z "$as_dir" && as_dir=. 36712 for ac_exec_ext in '' $ac_executable_extensions; do 36713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36714 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36716 break 2 36717 fi 36718 done 36719 done 36720 IFS=$as_save_IFS 36721 36722 ;; 36723 esac 36724 fi 36725 AS=$ac_cv_path_AS 36726 if test -n "$AS"; then 36727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36728 $as_echo "$AS" >&6; } 36729 else 36730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36731 $as_echo "no" >&6; } 36732 fi 36733 36734 36735 test -n "$AS" && break 36736 done 36737 36738 else 36739 # The variable is set, but is it from the command line or the environment? 36740 36741 # Try to remove the string !AS! from our list. 36742 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 36743 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36744 # If it failed, the variable was not from the command line. Ignore it, 36745 # but warn the user (except for BASH, which is always set by the calling BASH). 36746 if test "xAS" != xBASH; then 36747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 36748 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 36749 fi 36750 # Try to locate tool using the code snippet 36751 for ac_prog in as 36752 do 36753 # Extract the first word of "$ac_prog", so it can be a program name with args. 36754 set dummy $ac_prog; ac_word=$2 36755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36756 $as_echo_n "checking for $ac_word... " >&6; } 36757 if ${ac_cv_path_AS+:} false; then : 36758 $as_echo_n "(cached) " >&6 36759 else 36760 case $AS in 36761 [\\/]* | ?:[\\/]*) 36762 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36763 ;; 36764 *) 36765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36766 for as_dir in $PATH 36767 do 36768 IFS=$as_save_IFS 36769 test -z "$as_dir" && as_dir=. 36770 for ac_exec_ext in '' $ac_executable_extensions; do 36771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36772 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36774 break 2 36775 fi 36776 done 36777 done 36778 IFS=$as_save_IFS 36779 36780 ;; 36781 esac 36782 fi 36783 AS=$ac_cv_path_AS 36784 if test -n "$AS"; then 36785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36786 $as_echo "$AS" >&6; } 36787 else 36788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36789 $as_echo "no" >&6; } 36790 fi 36791 36792 36793 test -n "$AS" && break 36794 done 36795 36796 else 36797 # If it succeeded, then it was overridden by the user. We will use it 36798 # for the tool. 36799 36800 # First remove it from the list of overridden variables, so we can test 36801 # for unknown variables in the end. 36802 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36803 36804 # Check if we try to supply an empty value 36805 if test "x$AS" = x; then 36806 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 36807 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 36808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36809 $as_echo_n "checking for AS... " >&6; } 36810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36811 $as_echo "disabled" >&6; } 36812 else 36813 # Check if the provided tool contains a complete path. 36814 tool_specified="$AS" 36815 tool_basename="${tool_specified##*/}" 36816 if test "x$tool_basename" = "x$tool_specified"; then 36817 # A command without a complete path is provided, search $PATH. 36818 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 36819 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 36820 # Extract the first word of "$tool_basename", so it can be a program name with args. 36821 set dummy $tool_basename; ac_word=$2 36822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36823 $as_echo_n "checking for $ac_word... " >&6; } 36824 if ${ac_cv_path_AS+:} false; then : 36825 $as_echo_n "(cached) " >&6 36826 else 36827 case $AS in 36828 [\\/]* | ?:[\\/]*) 36829 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36830 ;; 36831 *) 36832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36833 for as_dir in $PATH 36834 do 36835 IFS=$as_save_IFS 36836 test -z "$as_dir" && as_dir=. 36837 for ac_exec_ext in '' $ac_executable_extensions; do 36838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36839 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36841 break 2 36842 fi 36843 done 36844 done 36845 IFS=$as_save_IFS 36846 36847 ;; 36848 esac 36849 fi 36850 AS=$ac_cv_path_AS 36851 if test -n "$AS"; then 36852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36853 $as_echo "$AS" >&6; } 36854 else 36855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36856 $as_echo "no" >&6; } 36857 fi 36858 36859 36860 if test "x$AS" = x; then 36861 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36862 fi 36863 else 36864 # Otherwise we believe it is a complete path. Use it as it is. 36865 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 36866 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 36867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36868 $as_echo_n "checking for AS... " >&6; } 36869 if test ! -x "$tool_specified"; then 36870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36871 $as_echo "not found" >&6; } 36872 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 36873 fi 36874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36875 $as_echo "$tool_specified" >&6; } 36876 fi 36877 fi 36878 fi 36879 36880 fi 36881 36882 36883 36884 # Only process if variable expands to non-empty 36885 36886 if test "x$AS" != x; then 36887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36888 36889 # First separate the path from the arguments. This will split at the first 36890 # space. 36891 complete="$AS" 36892 path="${complete%% *}" 36893 tmp="$complete EOL" 36894 arguments="${tmp#* }" 36895 36896 # Input might be given as Windows format, start by converting to 36897 # unix format. 36898 new_path=`$CYGPATH -u "$path"` 36899 36900 # Now try to locate executable using which 36901 new_path=`$WHICH "$new_path" 2> /dev/null` 36902 # bat and cmd files are not always considered executable in cygwin causing which 36903 # to not find them 36904 if test "x$new_path" = x \ 36905 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36906 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36907 new_path=`$CYGPATH -u "$path"` 36908 fi 36909 if test "x$new_path" = x; then 36910 # Oops. Which didn't find the executable. 36911 # The splitting of arguments from the executable at a space might have been incorrect, 36912 # since paths with space are more likely in Windows. Give it another try with the whole 36913 # argument. 36914 path="$complete" 36915 arguments="EOL" 36916 new_path=`$CYGPATH -u "$path"` 36917 new_path=`$WHICH "$new_path" 2> /dev/null` 36918 # bat and cmd files are not always considered executable in cygwin causing which 36919 # to not find them 36920 if test "x$new_path" = x \ 36921 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36922 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36923 new_path=`$CYGPATH -u "$path"` 36924 fi 36925 if test "x$new_path" = x; then 36926 # It's still not found. Now this is an unrecoverable error. 36927 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36928 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36929 has_space=`$ECHO "$complete" | $GREP " "` 36930 if test "x$has_space" != x; then 36931 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36932 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36933 fi 36934 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36935 fi 36936 fi 36937 36938 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36939 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36940 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36941 # "foo.exe" is OK but "foo" is an error. 36942 # 36943 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36944 # It is also a way to make sure we got the proper file name for the real test later on. 36945 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36946 if test "x$test_shortpath" = x; then 36947 # Short path failed, file does not exist as specified. 36948 # Try adding .exe or .cmd 36949 if test -f "${new_path}.exe"; then 36950 input_to_shortpath="${new_path}.exe" 36951 elif test -f "${new_path}.cmd"; then 36952 input_to_shortpath="${new_path}.cmd" 36953 else 36954 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 36955 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 36956 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36957 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36958 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36959 fi 36960 else 36961 input_to_shortpath="$new_path" 36962 fi 36963 36964 # Call helper function which possibly converts this using DOS-style short mode. 36965 # If so, the updated path is stored in $new_path. 36966 new_path="$input_to_shortpath" 36967 36968 input_path="$input_to_shortpath" 36969 # Check if we need to convert this using DOS-style short mode. If the path 36970 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36971 # take no chances and rewrite it. 36972 # Note: m4 eats our [], so we need to use [ and ] instead. 36973 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36974 if test "x$has_forbidden_chars" != x; then 36975 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36976 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36977 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36978 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36979 # Going to short mode and back again did indeed matter. Since short mode is 36980 # case insensitive, let's make it lowercase to improve readability. 36981 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36982 # Now convert it back to Unix-style (cygpath) 36983 input_path=`$CYGPATH -u "$shortmode_path"` 36984 new_path="$input_path" 36985 fi 36986 fi 36987 36988 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36989 if test "x$test_cygdrive_prefix" = x; then 36990 # As a simple fix, exclude /usr/bin since it's not a real path. 36991 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36992 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36993 # a path prefixed by /cygdrive for fixpath to work. 36994 new_path="$CYGWIN_ROOT_PATH$input_path" 36995 fi 36996 fi 36997 36998 # remove trailing .exe if any 36999 new_path="${new_path/%.exe/}" 37000 37001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37002 37003 # First separate the path from the arguments. This will split at the first 37004 # space. 37005 complete="$AS" 37006 path="${complete%% *}" 37007 tmp="$complete EOL" 37008 arguments="${tmp#* }" 37009 37010 # Input might be given as Windows format, start by converting to 37011 # unix format. 37012 new_path="$path" 37013 37014 windows_path="$new_path" 37015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37016 unix_path=`$CYGPATH -u "$windows_path"` 37017 new_path="$unix_path" 37018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37020 new_path="$unix_path" 37021 fi 37022 37023 37024 # Now try to locate executable using which 37025 new_path=`$WHICH "$new_path" 2> /dev/null` 37026 37027 if test "x$new_path" = x; then 37028 # Oops. Which didn't find the executable. 37029 # The splitting of arguments from the executable at a space might have been incorrect, 37030 # since paths with space are more likely in Windows. Give it another try with the whole 37031 # argument. 37032 path="$complete" 37033 arguments="EOL" 37034 new_path="$path" 37035 37036 windows_path="$new_path" 37037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37038 unix_path=`$CYGPATH -u "$windows_path"` 37039 new_path="$unix_path" 37040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37041 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37042 new_path="$unix_path" 37043 fi 37044 37045 37046 new_path=`$WHICH "$new_path" 2> /dev/null` 37047 # bat and cmd files are not always considered executable in MSYS causing which 37048 # to not find them 37049 if test "x$new_path" = x \ 37050 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37051 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37052 new_path="$path" 37053 37054 windows_path="$new_path" 37055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37056 unix_path=`$CYGPATH -u "$windows_path"` 37057 new_path="$unix_path" 37058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37059 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37060 new_path="$unix_path" 37061 fi 37062 37063 fi 37064 37065 if test "x$new_path" = x; then 37066 # It's still not found. Now this is an unrecoverable error. 37067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37068 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37069 has_space=`$ECHO "$complete" | $GREP " "` 37070 if test "x$has_space" != x; then 37071 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37072 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37073 fi 37074 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37075 fi 37076 fi 37077 37078 # Now new_path has a complete unix path to the binary 37079 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37080 # Keep paths in /bin as-is, but remove trailing .exe if any 37081 new_path="${new_path/%.exe/}" 37082 # Do not save /bin paths to all_fixpath_prefixes! 37083 else 37084 # Not in mixed or Windows style, start by that. 37085 new_path=`cmd //c echo $new_path` 37086 37087 input_path="$new_path" 37088 # Check if we need to convert this using DOS-style short mode. If the path 37089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37090 # take no chances and rewrite it. 37091 # Note: m4 eats our [], so we need to use [ and ] instead. 37092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37093 if test "x$has_forbidden_chars" != x; then 37094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37095 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37096 fi 37097 37098 # Output is in $new_path 37099 37100 windows_path="$new_path" 37101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37102 unix_path=`$CYGPATH -u "$windows_path"` 37103 new_path="$unix_path" 37104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37106 new_path="$unix_path" 37107 fi 37108 37109 # remove trailing .exe if any 37110 new_path="${new_path/%.exe/}" 37111 37112 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37113 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37114 fi 37115 37116 else 37117 # We're on a unix platform. Hooray! :) 37118 # First separate the path from the arguments. This will split at the first 37119 # space. 37120 complete="$AS" 37121 path="${complete%% *}" 37122 tmp="$complete EOL" 37123 arguments="${tmp#* }" 37124 37125 # Cannot rely on the command "which" here since it doesn't always work. 37126 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37127 if test -z "$is_absolute_path"; then 37128 # Path to executable is not absolute. Find it. 37129 IFS_save="$IFS" 37130 IFS=: 37131 for p in $PATH; do 37132 if test -f "$p/$path" && test -x "$p/$path"; then 37133 new_path="$p/$path" 37134 break 37135 fi 37136 done 37137 IFS="$IFS_save" 37138 else 37139 # This is an absolute path, we can use it without further modifications. 37140 new_path="$path" 37141 fi 37142 37143 if test "x$new_path" = x; then 37144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37145 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37146 has_space=`$ECHO "$complete" | $GREP " "` 37147 if test "x$has_space" != x; then 37148 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37149 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37150 fi 37151 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37152 fi 37153 fi 37154 37155 # Now join together the path and the arguments once again 37156 if test "x$arguments" != xEOL; then 37157 new_complete="$new_path ${arguments% *}" 37158 else 37159 new_complete="$new_path" 37160 fi 37161 37162 if test "x$complete" != "x$new_complete"; then 37163 AS="$new_complete" 37164 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 37165 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 37166 fi 37167 fi 37168 37169 if test "x$AS" = x; then 37170 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 37171 fi 37172 else 37173 # FIXME: is this correct for microsoft? 37174 AS="$CC -c" 37175 fi 37176 37177 37178 # 37179 # Setup the archiver (AR) 37180 # 37181 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37182 # The corresponding ar tool is lib.exe (used to create static libraries) 37183 # Extract the first word of "lib", so it can be a program name with args. 37184 set dummy lib; ac_word=$2 37185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37186 $as_echo_n "checking for $ac_word... " >&6; } 37187 if ${ac_cv_prog_AR+:} false; then : 37188 $as_echo_n "(cached) " >&6 37189 else 37190 if test -n "$AR"; then 37191 ac_cv_prog_AR="$AR" # Let the user override the test. 37192 else 37193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37194 for as_dir in $PATH 37195 do 37196 IFS=$as_save_IFS 37197 test -z "$as_dir" && as_dir=. 37198 for ac_exec_ext in '' $ac_executable_extensions; do 37199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37200 ac_cv_prog_AR="lib" 37201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37202 break 2 37203 fi 37204 done 37205 done 37206 IFS=$as_save_IFS 37207 37208 fi 37209 fi 37210 AR=$ac_cv_prog_AR 37211 if test -n "$AR"; then 37212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37213 $as_echo "$AR" >&6; } 37214 else 37215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37216 $as_echo "no" >&6; } 37217 fi 37218 37219 37220 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 37221 37222 37223 # Publish this variable in the help. 37224 37225 37226 if [ -z "${AR+x}" ]; then 37227 # The variable is not set by user, try to locate tool using the code snippet 37228 if test -n "$ac_tool_prefix"; then 37229 for ac_prog in ar gcc-ar 37230 do 37231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37234 $as_echo_n "checking for $ac_word... " >&6; } 37235 if ${ac_cv_prog_AR+:} false; then : 37236 $as_echo_n "(cached) " >&6 37237 else 37238 if test -n "$AR"; then 37239 ac_cv_prog_AR="$AR" # Let the user override the test. 37240 else 37241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37242 for as_dir in $PATH 37243 do 37244 IFS=$as_save_IFS 37245 test -z "$as_dir" && as_dir=. 37246 for ac_exec_ext in '' $ac_executable_extensions; do 37247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37248 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37250 break 2 37251 fi 37252 done 37253 done 37254 IFS=$as_save_IFS 37255 37256 fi 37257 fi 37258 AR=$ac_cv_prog_AR 37259 if test -n "$AR"; then 37260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37261 $as_echo "$AR" >&6; } 37262 else 37263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37264 $as_echo "no" >&6; } 37265 fi 37266 37267 37268 test -n "$AR" && break 37269 done 37270 fi 37271 if test -z "$AR"; then 37272 ac_ct_AR=$AR 37273 for ac_prog in ar gcc-ar 37274 do 37275 # Extract the first word of "$ac_prog", so it can be a program name with args. 37276 set dummy $ac_prog; ac_word=$2 37277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37278 $as_echo_n "checking for $ac_word... " >&6; } 37279 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37280 $as_echo_n "(cached) " >&6 37281 else 37282 if test -n "$ac_ct_AR"; then 37283 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37284 else 37285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37286 for as_dir in $PATH 37287 do 37288 IFS=$as_save_IFS 37289 test -z "$as_dir" && as_dir=. 37290 for ac_exec_ext in '' $ac_executable_extensions; do 37291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37292 ac_cv_prog_ac_ct_AR="$ac_prog" 37293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37294 break 2 37295 fi 37296 done 37297 done 37298 IFS=$as_save_IFS 37299 37300 fi 37301 fi 37302 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37303 if test -n "$ac_ct_AR"; then 37304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37305 $as_echo "$ac_ct_AR" >&6; } 37306 else 37307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37308 $as_echo "no" >&6; } 37309 fi 37310 37311 37312 test -n "$ac_ct_AR" && break 37313 done 37314 37315 if test "x$ac_ct_AR" = x; then 37316 AR="" 37317 else 37318 case $cross_compiling:$ac_tool_warned in 37319 yes:) 37320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37322 ac_tool_warned=yes ;; 37323 esac 37324 AR=$ac_ct_AR 37325 fi 37326 fi 37327 37328 else 37329 # The variable is set, but is it from the command line or the environment? 37330 37331 # Try to remove the string !AR! from our list. 37332 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37333 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37334 # If it failed, the variable was not from the command line. Ignore it, 37335 # but warn the user (except for BASH, which is always set by the calling BASH). 37336 if test "xAR" != xBASH; then 37337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37338 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37339 fi 37340 # Try to locate tool using the code snippet 37341 if test -n "$ac_tool_prefix"; then 37342 for ac_prog in ar gcc-ar 37343 do 37344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37347 $as_echo_n "checking for $ac_word... " >&6; } 37348 if ${ac_cv_prog_AR+:} false; then : 37349 $as_echo_n "(cached) " >&6 37350 else 37351 if test -n "$AR"; then 37352 ac_cv_prog_AR="$AR" # Let the user override the test. 37353 else 37354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37355 for as_dir in $PATH 37356 do 37357 IFS=$as_save_IFS 37358 test -z "$as_dir" && as_dir=. 37359 for ac_exec_ext in '' $ac_executable_extensions; do 37360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37361 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37363 break 2 37364 fi 37365 done 37366 done 37367 IFS=$as_save_IFS 37368 37369 fi 37370 fi 37371 AR=$ac_cv_prog_AR 37372 if test -n "$AR"; then 37373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37374 $as_echo "$AR" >&6; } 37375 else 37376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37377 $as_echo "no" >&6; } 37378 fi 37379 37380 37381 test -n "$AR" && break 37382 done 37383 fi 37384 if test -z "$AR"; then 37385 ac_ct_AR=$AR 37386 for ac_prog in ar gcc-ar 37387 do 37388 # Extract the first word of "$ac_prog", so it can be a program name with args. 37389 set dummy $ac_prog; ac_word=$2 37390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37391 $as_echo_n "checking for $ac_word... " >&6; } 37392 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37393 $as_echo_n "(cached) " >&6 37394 else 37395 if test -n "$ac_ct_AR"; then 37396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37397 else 37398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37399 for as_dir in $PATH 37400 do 37401 IFS=$as_save_IFS 37402 test -z "$as_dir" && as_dir=. 37403 for ac_exec_ext in '' $ac_executable_extensions; do 37404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37405 ac_cv_prog_ac_ct_AR="$ac_prog" 37406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37407 break 2 37408 fi 37409 done 37410 done 37411 IFS=$as_save_IFS 37412 37413 fi 37414 fi 37415 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37416 if test -n "$ac_ct_AR"; then 37417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37418 $as_echo "$ac_ct_AR" >&6; } 37419 else 37420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37421 $as_echo "no" >&6; } 37422 fi 37423 37424 37425 test -n "$ac_ct_AR" && break 37426 done 37427 37428 if test "x$ac_ct_AR" = x; then 37429 AR="" 37430 else 37431 case $cross_compiling:$ac_tool_warned in 37432 yes:) 37433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37435 ac_tool_warned=yes ;; 37436 esac 37437 AR=$ac_ct_AR 37438 fi 37439 fi 37440 37441 else 37442 # If it succeeded, then it was overridden by the user. We will use it 37443 # for the tool. 37444 37445 # First remove it from the list of overridden variables, so we can test 37446 # for unknown variables in the end. 37447 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37448 37449 # Check if we try to supply an empty value 37450 if test "x$AR" = x; then 37451 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37452 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37454 $as_echo_n "checking for AR... " >&6; } 37455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37456 $as_echo "disabled" >&6; } 37457 else 37458 # Check if the provided tool contains a complete path. 37459 tool_specified="$AR" 37460 tool_basename="${tool_specified##*/}" 37461 if test "x$tool_basename" = "x$tool_specified"; then 37462 # A command without a complete path is provided, search $PATH. 37463 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37464 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37465 # Extract the first word of "$tool_basename", so it can be a program name with args. 37466 set dummy $tool_basename; ac_word=$2 37467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37468 $as_echo_n "checking for $ac_word... " >&6; } 37469 if ${ac_cv_path_AR+:} false; then : 37470 $as_echo_n "(cached) " >&6 37471 else 37472 case $AR in 37473 [\\/]* | ?:[\\/]*) 37474 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37475 ;; 37476 *) 37477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37478 for as_dir in $PATH 37479 do 37480 IFS=$as_save_IFS 37481 test -z "$as_dir" && as_dir=. 37482 for ac_exec_ext in '' $ac_executable_extensions; do 37483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37484 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37486 break 2 37487 fi 37488 done 37489 done 37490 IFS=$as_save_IFS 37491 37492 ;; 37493 esac 37494 fi 37495 AR=$ac_cv_path_AR 37496 if test -n "$AR"; then 37497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37498 $as_echo "$AR" >&6; } 37499 else 37500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37501 $as_echo "no" >&6; } 37502 fi 37503 37504 37505 if test "x$AR" = x; then 37506 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37507 fi 37508 else 37509 # Otherwise we believe it is a complete path. Use it as it is. 37510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37511 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37513 $as_echo_n "checking for AR... " >&6; } 37514 if test ! -x "$tool_specified"; then 37515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37516 $as_echo "not found" >&6; } 37517 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37518 fi 37519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37520 $as_echo "$tool_specified" >&6; } 37521 fi 37522 fi 37523 fi 37524 37525 fi 37526 37527 37528 else 37529 37530 37531 # Publish this variable in the help. 37532 37533 37534 if [ -z "${AR+x}" ]; then 37535 # The variable is not set by user, try to locate tool using the code snippet 37536 if test -n "$ac_tool_prefix"; then 37537 for ac_prog in ar 37538 do 37539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37542 $as_echo_n "checking for $ac_word... " >&6; } 37543 if ${ac_cv_prog_AR+:} false; then : 37544 $as_echo_n "(cached) " >&6 37545 else 37546 if test -n "$AR"; then 37547 ac_cv_prog_AR="$AR" # Let the user override the test. 37548 else 37549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37550 for as_dir in $PATH 37551 do 37552 IFS=$as_save_IFS 37553 test -z "$as_dir" && as_dir=. 37554 for ac_exec_ext in '' $ac_executable_extensions; do 37555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37556 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37558 break 2 37559 fi 37560 done 37561 done 37562 IFS=$as_save_IFS 37563 37564 fi 37565 fi 37566 AR=$ac_cv_prog_AR 37567 if test -n "$AR"; then 37568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37569 $as_echo "$AR" >&6; } 37570 else 37571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37572 $as_echo "no" >&6; } 37573 fi 37574 37575 37576 test -n "$AR" && break 37577 done 37578 fi 37579 if test -z "$AR"; then 37580 ac_ct_AR=$AR 37581 for ac_prog in ar 37582 do 37583 # Extract the first word of "$ac_prog", so it can be a program name with args. 37584 set dummy $ac_prog; ac_word=$2 37585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37586 $as_echo_n "checking for $ac_word... " >&6; } 37587 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37588 $as_echo_n "(cached) " >&6 37589 else 37590 if test -n "$ac_ct_AR"; then 37591 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37592 else 37593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37594 for as_dir in $PATH 37595 do 37596 IFS=$as_save_IFS 37597 test -z "$as_dir" && as_dir=. 37598 for ac_exec_ext in '' $ac_executable_extensions; do 37599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37600 ac_cv_prog_ac_ct_AR="$ac_prog" 37601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37602 break 2 37603 fi 37604 done 37605 done 37606 IFS=$as_save_IFS 37607 37608 fi 37609 fi 37610 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37611 if test -n "$ac_ct_AR"; then 37612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37613 $as_echo "$ac_ct_AR" >&6; } 37614 else 37615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37616 $as_echo "no" >&6; } 37617 fi 37618 37619 37620 test -n "$ac_ct_AR" && break 37621 done 37622 37623 if test "x$ac_ct_AR" = x; then 37624 AR="" 37625 else 37626 case $cross_compiling:$ac_tool_warned in 37627 yes:) 37628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37630 ac_tool_warned=yes ;; 37631 esac 37632 AR=$ac_ct_AR 37633 fi 37634 fi 37635 37636 else 37637 # The variable is set, but is it from the command line or the environment? 37638 37639 # Try to remove the string !AR! from our list. 37640 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37641 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37642 # If it failed, the variable was not from the command line. Ignore it, 37643 # but warn the user (except for BASH, which is always set by the calling BASH). 37644 if test "xAR" != xBASH; then 37645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37646 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37647 fi 37648 # Try to locate tool using the code snippet 37649 if test -n "$ac_tool_prefix"; then 37650 for ac_prog in ar 37651 do 37652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37655 $as_echo_n "checking for $ac_word... " >&6; } 37656 if ${ac_cv_prog_AR+:} false; then : 37657 $as_echo_n "(cached) " >&6 37658 else 37659 if test -n "$AR"; then 37660 ac_cv_prog_AR="$AR" # Let the user override the test. 37661 else 37662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37663 for as_dir in $PATH 37664 do 37665 IFS=$as_save_IFS 37666 test -z "$as_dir" && as_dir=. 37667 for ac_exec_ext in '' $ac_executable_extensions; do 37668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37671 break 2 37672 fi 37673 done 37674 done 37675 IFS=$as_save_IFS 37676 37677 fi 37678 fi 37679 AR=$ac_cv_prog_AR 37680 if test -n "$AR"; then 37681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37682 $as_echo "$AR" >&6; } 37683 else 37684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37685 $as_echo "no" >&6; } 37686 fi 37687 37688 37689 test -n "$AR" && break 37690 done 37691 fi 37692 if test -z "$AR"; then 37693 ac_ct_AR=$AR 37694 for ac_prog in ar 37695 do 37696 # Extract the first word of "$ac_prog", so it can be a program name with args. 37697 set dummy $ac_prog; ac_word=$2 37698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37699 $as_echo_n "checking for $ac_word... " >&6; } 37700 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37701 $as_echo_n "(cached) " >&6 37702 else 37703 if test -n "$ac_ct_AR"; then 37704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37705 else 37706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37707 for as_dir in $PATH 37708 do 37709 IFS=$as_save_IFS 37710 test -z "$as_dir" && as_dir=. 37711 for ac_exec_ext in '' $ac_executable_extensions; do 37712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37713 ac_cv_prog_ac_ct_AR="$ac_prog" 37714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37715 break 2 37716 fi 37717 done 37718 done 37719 IFS=$as_save_IFS 37720 37721 fi 37722 fi 37723 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37724 if test -n "$ac_ct_AR"; then 37725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37726 $as_echo "$ac_ct_AR" >&6; } 37727 else 37728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37729 $as_echo "no" >&6; } 37730 fi 37731 37732 37733 test -n "$ac_ct_AR" && break 37734 done 37735 37736 if test "x$ac_ct_AR" = x; then 37737 AR="" 37738 else 37739 case $cross_compiling:$ac_tool_warned in 37740 yes:) 37741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37743 ac_tool_warned=yes ;; 37744 esac 37745 AR=$ac_ct_AR 37746 fi 37747 fi 37748 37749 else 37750 # If it succeeded, then it was overridden by the user. We will use it 37751 # for the tool. 37752 37753 # First remove it from the list of overridden variables, so we can test 37754 # for unknown variables in the end. 37755 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37756 37757 # Check if we try to supply an empty value 37758 if test "x$AR" = x; then 37759 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37760 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37762 $as_echo_n "checking for AR... " >&6; } 37763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37764 $as_echo "disabled" >&6; } 37765 else 37766 # Check if the provided tool contains a complete path. 37767 tool_specified="$AR" 37768 tool_basename="${tool_specified##*/}" 37769 if test "x$tool_basename" = "x$tool_specified"; then 37770 # A command without a complete path is provided, search $PATH. 37771 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37772 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37773 # Extract the first word of "$tool_basename", so it can be a program name with args. 37774 set dummy $tool_basename; 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_path_AR+:} false; then : 37778 $as_echo_n "(cached) " >&6 37779 else 37780 case $AR in 37781 [\\/]* | ?:[\\/]*) 37782 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37783 ;; 37784 *) 37785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37786 for as_dir in $PATH 37787 do 37788 IFS=$as_save_IFS 37789 test -z "$as_dir" && as_dir=. 37790 for ac_exec_ext in '' $ac_executable_extensions; do 37791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37792 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37794 break 2 37795 fi 37796 done 37797 done 37798 IFS=$as_save_IFS 37799 37800 ;; 37801 esac 37802 fi 37803 AR=$ac_cv_path_AR 37804 if test -n "$AR"; then 37805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37806 $as_echo "$AR" >&6; } 37807 else 37808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37809 $as_echo "no" >&6; } 37810 fi 37811 37812 37813 if test "x$AR" = x; then 37814 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37815 fi 37816 else 37817 # Otherwise we believe it is a complete path. Use it as it is. 37818 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37819 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37821 $as_echo_n "checking for AR... " >&6; } 37822 if test ! -x "$tool_specified"; then 37823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37824 $as_echo "not found" >&6; } 37825 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37826 fi 37827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37828 $as_echo "$tool_specified" >&6; } 37829 fi 37830 fi 37831 fi 37832 37833 fi 37834 37835 37836 fi 37837 37838 # Only process if variable expands to non-empty 37839 37840 if test "x$AR" != x; then 37841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37842 37843 # First separate the path from the arguments. This will split at the first 37844 # space. 37845 complete="$AR" 37846 path="${complete%% *}" 37847 tmp="$complete EOL" 37848 arguments="${tmp#* }" 37849 37850 # Input might be given as Windows format, start by converting to 37851 # unix format. 37852 new_path=`$CYGPATH -u "$path"` 37853 37854 # Now try to locate executable using which 37855 new_path=`$WHICH "$new_path" 2> /dev/null` 37856 # bat and cmd files are not always considered executable in cygwin causing which 37857 # to not find them 37858 if test "x$new_path" = x \ 37859 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37860 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37861 new_path=`$CYGPATH -u "$path"` 37862 fi 37863 if test "x$new_path" = x; then 37864 # Oops. Which didn't find the executable. 37865 # The splitting of arguments from the executable at a space might have been incorrect, 37866 # since paths with space are more likely in Windows. Give it another try with the whole 37867 # argument. 37868 path="$complete" 37869 arguments="EOL" 37870 new_path=`$CYGPATH -u "$path"` 37871 new_path=`$WHICH "$new_path" 2> /dev/null` 37872 # bat and cmd files are not always considered executable in cygwin causing which 37873 # to not find them 37874 if test "x$new_path" = x \ 37875 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37876 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37877 new_path=`$CYGPATH -u "$path"` 37878 fi 37879 if test "x$new_path" = x; then 37880 # It's still not found. Now this is an unrecoverable error. 37881 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37882 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37883 has_space=`$ECHO "$complete" | $GREP " "` 37884 if test "x$has_space" != x; then 37885 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37886 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37887 fi 37888 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37889 fi 37890 fi 37891 37892 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37893 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37894 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37895 # "foo.exe" is OK but "foo" is an error. 37896 # 37897 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37898 # It is also a way to make sure we got the proper file name for the real test later on. 37899 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37900 if test "x$test_shortpath" = x; then 37901 # Short path failed, file does not exist as specified. 37902 # Try adding .exe or .cmd 37903 if test -f "${new_path}.exe"; then 37904 input_to_shortpath="${new_path}.exe" 37905 elif test -f "${new_path}.cmd"; then 37906 input_to_shortpath="${new_path}.cmd" 37907 else 37908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 37909 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 37910 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37911 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37912 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37913 fi 37914 else 37915 input_to_shortpath="$new_path" 37916 fi 37917 37918 # Call helper function which possibly converts this using DOS-style short mode. 37919 # If so, the updated path is stored in $new_path. 37920 new_path="$input_to_shortpath" 37921 37922 input_path="$input_to_shortpath" 37923 # Check if we need to convert this using DOS-style short mode. If the path 37924 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37925 # take no chances and rewrite it. 37926 # Note: m4 eats our [], so we need to use [ and ] instead. 37927 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37928 if test "x$has_forbidden_chars" != x; then 37929 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37930 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37931 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37932 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37933 # Going to short mode and back again did indeed matter. Since short mode is 37934 # case insensitive, let's make it lowercase to improve readability. 37935 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37936 # Now convert it back to Unix-style (cygpath) 37937 input_path=`$CYGPATH -u "$shortmode_path"` 37938 new_path="$input_path" 37939 fi 37940 fi 37941 37942 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37943 if test "x$test_cygdrive_prefix" = x; then 37944 # As a simple fix, exclude /usr/bin since it's not a real path. 37945 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37946 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37947 # a path prefixed by /cygdrive for fixpath to work. 37948 new_path="$CYGWIN_ROOT_PATH$input_path" 37949 fi 37950 fi 37951 37952 # remove trailing .exe if any 37953 new_path="${new_path/%.exe/}" 37954 37955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37956 37957 # First separate the path from the arguments. This will split at the first 37958 # space. 37959 complete="$AR" 37960 path="${complete%% *}" 37961 tmp="$complete EOL" 37962 arguments="${tmp#* }" 37963 37964 # Input might be given as Windows format, start by converting to 37965 # unix format. 37966 new_path="$path" 37967 37968 windows_path="$new_path" 37969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37970 unix_path=`$CYGPATH -u "$windows_path"` 37971 new_path="$unix_path" 37972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37973 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37974 new_path="$unix_path" 37975 fi 37976 37977 37978 # Now try to locate executable using which 37979 new_path=`$WHICH "$new_path" 2> /dev/null` 37980 37981 if test "x$new_path" = x; then 37982 # Oops. Which didn't find the executable. 37983 # The splitting of arguments from the executable at a space might have been incorrect, 37984 # since paths with space are more likely in Windows. Give it another try with the whole 37985 # argument. 37986 path="$complete" 37987 arguments="EOL" 37988 new_path="$path" 37989 37990 windows_path="$new_path" 37991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37992 unix_path=`$CYGPATH -u "$windows_path"` 37993 new_path="$unix_path" 37994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37995 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37996 new_path="$unix_path" 37997 fi 37998 37999 38000 new_path=`$WHICH "$new_path" 2> /dev/null` 38001 # bat and cmd files are not always considered executable in MSYS causing which 38002 # to not find them 38003 if test "x$new_path" = x \ 38004 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38005 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38006 new_path="$path" 38007 38008 windows_path="$new_path" 38009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38010 unix_path=`$CYGPATH -u "$windows_path"` 38011 new_path="$unix_path" 38012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38014 new_path="$unix_path" 38015 fi 38016 38017 fi 38018 38019 if test "x$new_path" = x; then 38020 # It's still not found. Now this is an unrecoverable error. 38021 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38022 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38023 has_space=`$ECHO "$complete" | $GREP " "` 38024 if test "x$has_space" != x; then 38025 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38026 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38027 fi 38028 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38029 fi 38030 fi 38031 38032 # Now new_path has a complete unix path to the binary 38033 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38034 # Keep paths in /bin as-is, but remove trailing .exe if any 38035 new_path="${new_path/%.exe/}" 38036 # Do not save /bin paths to all_fixpath_prefixes! 38037 else 38038 # Not in mixed or Windows style, start by that. 38039 new_path=`cmd //c echo $new_path` 38040 38041 input_path="$new_path" 38042 # Check if we need to convert this using DOS-style short mode. If the path 38043 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38044 # take no chances and rewrite it. 38045 # Note: m4 eats our [], so we need to use [ and ] instead. 38046 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38047 if test "x$has_forbidden_chars" != x; then 38048 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38049 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38050 fi 38051 38052 # Output is in $new_path 38053 38054 windows_path="$new_path" 38055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38056 unix_path=`$CYGPATH -u "$windows_path"` 38057 new_path="$unix_path" 38058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38059 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38060 new_path="$unix_path" 38061 fi 38062 38063 # remove trailing .exe if any 38064 new_path="${new_path/%.exe/}" 38065 38066 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38067 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38068 fi 38069 38070 else 38071 # We're on a unix platform. Hooray! :) 38072 # First separate the path from the arguments. This will split at the first 38073 # space. 38074 complete="$AR" 38075 path="${complete%% *}" 38076 tmp="$complete EOL" 38077 arguments="${tmp#* }" 38078 38079 # Cannot rely on the command "which" here since it doesn't always work. 38080 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38081 if test -z "$is_absolute_path"; then 38082 # Path to executable is not absolute. Find it. 38083 IFS_save="$IFS" 38084 IFS=: 38085 for p in $PATH; do 38086 if test -f "$p/$path" && test -x "$p/$path"; then 38087 new_path="$p/$path" 38088 break 38089 fi 38090 done 38091 IFS="$IFS_save" 38092 else 38093 # This is an absolute path, we can use it without further modifications. 38094 new_path="$path" 38095 fi 38096 38097 if test "x$new_path" = x; then 38098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38099 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38100 has_space=`$ECHO "$complete" | $GREP " "` 38101 if test "x$has_space" != x; then 38102 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38103 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38104 fi 38105 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38106 fi 38107 fi 38108 38109 # Now join together the path and the arguments once again 38110 if test "x$arguments" != xEOL; then 38111 new_complete="$new_path ${arguments% *}" 38112 else 38113 new_complete="$new_path" 38114 fi 38115 38116 if test "x$complete" != "x$new_complete"; then 38117 AR="$new_complete" 38118 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38119 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38120 fi 38121 fi 38122 38123 38124 38125 if test "x$OPENJDK_TARGET_OS" = "xmacosx" || test "x$OPENJDK_TARGET_OS" = "xios"; then 38126 38127 38128 # Publish this variable in the help. 38129 38130 38131 if [ -z "${LIPO+x}" ]; then 38132 # The variable is not set by user, try to locate tool using the code snippet 38133 for ac_prog in lipo 38134 do 38135 # Extract the first word of "$ac_prog", so it can be a program name with args. 38136 set dummy $ac_prog; ac_word=$2 38137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38138 $as_echo_n "checking for $ac_word... " >&6; } 38139 if ${ac_cv_path_LIPO+:} false; then : 38140 $as_echo_n "(cached) " >&6 38141 else 38142 case $LIPO in 38143 [\\/]* | ?:[\\/]*) 38144 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38145 ;; 38146 *) 38147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38148 for as_dir in $PATH 38149 do 38150 IFS=$as_save_IFS 38151 test -z "$as_dir" && as_dir=. 38152 for ac_exec_ext in '' $ac_executable_extensions; do 38153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38154 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38156 break 2 38157 fi 38158 done 38159 done 38160 IFS=$as_save_IFS 38161 38162 ;; 38163 esac 38164 fi 38165 LIPO=$ac_cv_path_LIPO 38166 if test -n "$LIPO"; then 38167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38168 $as_echo "$LIPO" >&6; } 38169 else 38170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38171 $as_echo "no" >&6; } 38172 fi 38173 38174 38175 test -n "$LIPO" && break 38176 done 38177 38178 else 38179 # The variable is set, but is it from the command line or the environment? 38180 38181 # Try to remove the string !LIPO! from our list. 38182 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 38183 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38184 # If it failed, the variable was not from the command line. Ignore it, 38185 # but warn the user (except for BASH, which is always set by the calling BASH). 38186 if test "xLIPO" != xBASH; then 38187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 38188 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 38189 fi 38190 # Try to locate tool using the code snippet 38191 for ac_prog in lipo 38192 do 38193 # Extract the first word of "$ac_prog", so it can be a program name with args. 38194 set dummy $ac_prog; ac_word=$2 38195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38196 $as_echo_n "checking for $ac_word... " >&6; } 38197 if ${ac_cv_path_LIPO+:} false; then : 38198 $as_echo_n "(cached) " >&6 38199 else 38200 case $LIPO in 38201 [\\/]* | ?:[\\/]*) 38202 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38203 ;; 38204 *) 38205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38206 for as_dir in $PATH 38207 do 38208 IFS=$as_save_IFS 38209 test -z "$as_dir" && as_dir=. 38210 for ac_exec_ext in '' $ac_executable_extensions; do 38211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38212 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38214 break 2 38215 fi 38216 done 38217 done 38218 IFS=$as_save_IFS 38219 38220 ;; 38221 esac 38222 fi 38223 LIPO=$ac_cv_path_LIPO 38224 if test -n "$LIPO"; then 38225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38226 $as_echo "$LIPO" >&6; } 38227 else 38228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38229 $as_echo "no" >&6; } 38230 fi 38231 38232 38233 test -n "$LIPO" && break 38234 done 38235 38236 else 38237 # If it succeeded, then it was overridden by the user. We will use it 38238 # for the tool. 38239 38240 # First remove it from the list of overridden variables, so we can test 38241 # for unknown variables in the end. 38242 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38243 38244 # Check if we try to supply an empty value 38245 if test "x$LIPO" = x; then 38246 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 38247 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 38248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38249 $as_echo_n "checking for LIPO... " >&6; } 38250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38251 $as_echo "disabled" >&6; } 38252 else 38253 # Check if the provided tool contains a complete path. 38254 tool_specified="$LIPO" 38255 tool_basename="${tool_specified##*/}" 38256 if test "x$tool_basename" = "x$tool_specified"; then 38257 # A command without a complete path is provided, search $PATH. 38258 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 38259 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 38260 # Extract the first word of "$tool_basename", so it can be a program name with args. 38261 set dummy $tool_basename; ac_word=$2 38262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38263 $as_echo_n "checking for $ac_word... " >&6; } 38264 if ${ac_cv_path_LIPO+:} false; then : 38265 $as_echo_n "(cached) " >&6 38266 else 38267 case $LIPO in 38268 [\\/]* | ?:[\\/]*) 38269 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38270 ;; 38271 *) 38272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38273 for as_dir in $PATH 38274 do 38275 IFS=$as_save_IFS 38276 test -z "$as_dir" && as_dir=. 38277 for ac_exec_ext in '' $ac_executable_extensions; do 38278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38279 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38281 break 2 38282 fi 38283 done 38284 done 38285 IFS=$as_save_IFS 38286 38287 ;; 38288 esac 38289 fi 38290 LIPO=$ac_cv_path_LIPO 38291 if test -n "$LIPO"; then 38292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38293 $as_echo "$LIPO" >&6; } 38294 else 38295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38296 $as_echo "no" >&6; } 38297 fi 38298 38299 38300 if test "x$LIPO" = x; then 38301 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38302 fi 38303 else 38304 # Otherwise we believe it is a complete path. Use it as it is. 38305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 38306 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 38307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38308 $as_echo_n "checking for LIPO... " >&6; } 38309 if test ! -x "$tool_specified"; then 38310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38311 $as_echo "not found" >&6; } 38312 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 38313 fi 38314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38315 $as_echo "$tool_specified" >&6; } 38316 fi 38317 fi 38318 fi 38319 38320 fi 38321 38322 38323 38324 # Only process if variable expands to non-empty 38325 38326 if test "x$LIPO" != x; then 38327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38328 38329 # First separate the path from the arguments. This will split at the first 38330 # space. 38331 complete="$LIPO" 38332 path="${complete%% *}" 38333 tmp="$complete EOL" 38334 arguments="${tmp#* }" 38335 38336 # Input might be given as Windows format, start by converting to 38337 # unix format. 38338 new_path=`$CYGPATH -u "$path"` 38339 38340 # Now try to locate executable using which 38341 new_path=`$WHICH "$new_path" 2> /dev/null` 38342 # bat and cmd files are not always considered executable in cygwin causing which 38343 # to not find them 38344 if test "x$new_path" = x \ 38345 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38346 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38347 new_path=`$CYGPATH -u "$path"` 38348 fi 38349 if test "x$new_path" = x; then 38350 # Oops. Which didn't find the executable. 38351 # The splitting of arguments from the executable at a space might have been incorrect, 38352 # since paths with space are more likely in Windows. Give it another try with the whole 38353 # argument. 38354 path="$complete" 38355 arguments="EOL" 38356 new_path=`$CYGPATH -u "$path"` 38357 new_path=`$WHICH "$new_path" 2> /dev/null` 38358 # bat and cmd files are not always considered executable in cygwin causing which 38359 # to not find them 38360 if test "x$new_path" = x \ 38361 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38362 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38363 new_path=`$CYGPATH -u "$path"` 38364 fi 38365 if test "x$new_path" = x; then 38366 # It's still not found. Now this is an unrecoverable error. 38367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38368 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38369 has_space=`$ECHO "$complete" | $GREP " "` 38370 if test "x$has_space" != x; then 38371 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38372 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38373 fi 38374 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38375 fi 38376 fi 38377 38378 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38379 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38380 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38381 # "foo.exe" is OK but "foo" is an error. 38382 # 38383 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38384 # It is also a way to make sure we got the proper file name for the real test later on. 38385 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38386 if test "x$test_shortpath" = x; then 38387 # Short path failed, file does not exist as specified. 38388 # Try adding .exe or .cmd 38389 if test -f "${new_path}.exe"; then 38390 input_to_shortpath="${new_path}.exe" 38391 elif test -f "${new_path}.cmd"; then 38392 input_to_shortpath="${new_path}.cmd" 38393 else 38394 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 38395 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 38396 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38397 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38398 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38399 fi 38400 else 38401 input_to_shortpath="$new_path" 38402 fi 38403 38404 # Call helper function which possibly converts this using DOS-style short mode. 38405 # If so, the updated path is stored in $new_path. 38406 new_path="$input_to_shortpath" 38407 38408 input_path="$input_to_shortpath" 38409 # Check if we need to convert this using DOS-style short mode. If the path 38410 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38411 # take no chances and rewrite it. 38412 # Note: m4 eats our [], so we need to use [ and ] instead. 38413 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38414 if test "x$has_forbidden_chars" != x; then 38415 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38416 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38417 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38418 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38419 # Going to short mode and back again did indeed matter. Since short mode is 38420 # case insensitive, let's make it lowercase to improve readability. 38421 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38422 # Now convert it back to Unix-style (cygpath) 38423 input_path=`$CYGPATH -u "$shortmode_path"` 38424 new_path="$input_path" 38425 fi 38426 fi 38427 38428 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38429 if test "x$test_cygdrive_prefix" = x; then 38430 # As a simple fix, exclude /usr/bin since it's not a real path. 38431 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38432 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38433 # a path prefixed by /cygdrive for fixpath to work. 38434 new_path="$CYGWIN_ROOT_PATH$input_path" 38435 fi 38436 fi 38437 38438 # remove trailing .exe if any 38439 new_path="${new_path/%.exe/}" 38440 38441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38442 38443 # First separate the path from the arguments. This will split at the first 38444 # space. 38445 complete="$LIPO" 38446 path="${complete%% *}" 38447 tmp="$complete EOL" 38448 arguments="${tmp#* }" 38449 38450 # Input might be given as Windows format, start by converting to 38451 # unix format. 38452 new_path="$path" 38453 38454 windows_path="$new_path" 38455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38456 unix_path=`$CYGPATH -u "$windows_path"` 38457 new_path="$unix_path" 38458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38460 new_path="$unix_path" 38461 fi 38462 38463 38464 # Now try to locate executable using which 38465 new_path=`$WHICH "$new_path" 2> /dev/null` 38466 38467 if test "x$new_path" = x; then 38468 # Oops. Which didn't find the executable. 38469 # The splitting of arguments from the executable at a space might have been incorrect, 38470 # since paths with space are more likely in Windows. Give it another try with the whole 38471 # argument. 38472 path="$complete" 38473 arguments="EOL" 38474 new_path="$path" 38475 38476 windows_path="$new_path" 38477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38478 unix_path=`$CYGPATH -u "$windows_path"` 38479 new_path="$unix_path" 38480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38481 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38482 new_path="$unix_path" 38483 fi 38484 38485 38486 new_path=`$WHICH "$new_path" 2> /dev/null` 38487 # bat and cmd files are not always considered executable in MSYS causing which 38488 # to not find them 38489 if test "x$new_path" = x \ 38490 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38491 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38492 new_path="$path" 38493 38494 windows_path="$new_path" 38495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38496 unix_path=`$CYGPATH -u "$windows_path"` 38497 new_path="$unix_path" 38498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38500 new_path="$unix_path" 38501 fi 38502 38503 fi 38504 38505 if test "x$new_path" = x; then 38506 # It's still not found. Now this is an unrecoverable error. 38507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38508 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38509 has_space=`$ECHO "$complete" | $GREP " "` 38510 if test "x$has_space" != x; then 38511 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38512 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38513 fi 38514 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38515 fi 38516 fi 38517 38518 # Now new_path has a complete unix path to the binary 38519 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38520 # Keep paths in /bin as-is, but remove trailing .exe if any 38521 new_path="${new_path/%.exe/}" 38522 # Do not save /bin paths to all_fixpath_prefixes! 38523 else 38524 # Not in mixed or Windows style, start by that. 38525 new_path=`cmd //c echo $new_path` 38526 38527 input_path="$new_path" 38528 # Check if we need to convert this using DOS-style short mode. If the path 38529 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38530 # take no chances and rewrite it. 38531 # Note: m4 eats our [], so we need to use [ and ] instead. 38532 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38533 if test "x$has_forbidden_chars" != x; then 38534 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38535 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38536 fi 38537 38538 # Output is in $new_path 38539 38540 windows_path="$new_path" 38541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38542 unix_path=`$CYGPATH -u "$windows_path"` 38543 new_path="$unix_path" 38544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38545 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38546 new_path="$unix_path" 38547 fi 38548 38549 # remove trailing .exe if any 38550 new_path="${new_path/%.exe/}" 38551 38552 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38553 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38554 fi 38555 38556 else 38557 # We're on a unix platform. Hooray! :) 38558 # First separate the path from the arguments. This will split at the first 38559 # space. 38560 complete="$LIPO" 38561 path="${complete%% *}" 38562 tmp="$complete EOL" 38563 arguments="${tmp#* }" 38564 38565 # Cannot rely on the command "which" here since it doesn't always work. 38566 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38567 if test -z "$is_absolute_path"; then 38568 # Path to executable is not absolute. Find it. 38569 IFS_save="$IFS" 38570 IFS=: 38571 for p in $PATH; do 38572 if test -f "$p/$path" && test -x "$p/$path"; then 38573 new_path="$p/$path" 38574 break 38575 fi 38576 done 38577 IFS="$IFS_save" 38578 else 38579 # This is an absolute path, we can use it without further modifications. 38580 new_path="$path" 38581 fi 38582 38583 if test "x$new_path" = x; then 38584 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38585 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38586 has_space=`$ECHO "$complete" | $GREP " "` 38587 if test "x$has_space" != x; then 38588 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38589 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38590 fi 38591 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38592 fi 38593 fi 38594 38595 # Now join together the path and the arguments once again 38596 if test "x$arguments" != xEOL; then 38597 new_complete="$new_path ${arguments% *}" 38598 else 38599 new_complete="$new_path" 38600 fi 38601 38602 if test "x$complete" != "x$new_complete"; then 38603 LIPO="$new_complete" 38604 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 38605 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 38606 fi 38607 fi 38608 38609 fi 38610 38611 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38612 # Extract the first word of "mt", so it can be a program name with args. 38613 set dummy mt; ac_word=$2 38614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38615 $as_echo_n "checking for $ac_word... " >&6; } 38616 if ${ac_cv_prog_MT+:} false; then : 38617 $as_echo_n "(cached) " >&6 38618 else 38619 if test -n "$MT"; then 38620 ac_cv_prog_MT="$MT" # Let the user override the test. 38621 else 38622 ac_prog_rejected=no 38623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38624 for as_dir in $PATH 38625 do 38626 IFS=$as_save_IFS 38627 test -z "$as_dir" && as_dir=. 38628 for ac_exec_ext in '' $ac_executable_extensions; do 38629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38630 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 38631 ac_prog_rejected=yes 38632 continue 38633 fi 38634 ac_cv_prog_MT="mt" 38635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38636 break 2 38637 fi 38638 done 38639 done 38640 IFS=$as_save_IFS 38641 38642 if test $ac_prog_rejected = yes; then 38643 # We found a bogon in the path, so make sure we never use it. 38644 set dummy $ac_cv_prog_MT 38645 shift 38646 if test $# != 0; then 38647 # We chose a different compiler from the bogus one. 38648 # However, it has the same basename, so the bogon will be chosen 38649 # first if we set MT to just the basename; use the full file name. 38650 shift 38651 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 38652 fi 38653 fi 38654 fi 38655 fi 38656 MT=$ac_cv_prog_MT 38657 if test -n "$MT"; then 38658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 38659 $as_echo "$MT" >&6; } 38660 else 38661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38662 $as_echo "no" >&6; } 38663 fi 38664 38665 38666 38667 # Only process if variable expands to non-empty 38668 38669 if test "x$MT" != x; then 38670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38671 38672 # First separate the path from the arguments. This will split at the first 38673 # space. 38674 complete="$MT" 38675 path="${complete%% *}" 38676 tmp="$complete EOL" 38677 arguments="${tmp#* }" 38678 38679 # Input might be given as Windows format, start by converting to 38680 # unix format. 38681 new_path=`$CYGPATH -u "$path"` 38682 38683 # Now try to locate executable using which 38684 new_path=`$WHICH "$new_path" 2> /dev/null` 38685 # bat and cmd files are not always considered executable in cygwin causing which 38686 # to not find them 38687 if test "x$new_path" = x \ 38688 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38689 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38690 new_path=`$CYGPATH -u "$path"` 38691 fi 38692 if test "x$new_path" = x; then 38693 # Oops. Which didn't find the executable. 38694 # The splitting of arguments from the executable at a space might have been incorrect, 38695 # since paths with space are more likely in Windows. Give it another try with the whole 38696 # argument. 38697 path="$complete" 38698 arguments="EOL" 38699 new_path=`$CYGPATH -u "$path"` 38700 new_path=`$WHICH "$new_path" 2> /dev/null` 38701 # bat and cmd files are not always considered executable in cygwin causing which 38702 # to not find them 38703 if test "x$new_path" = x \ 38704 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38705 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38706 new_path=`$CYGPATH -u "$path"` 38707 fi 38708 if test "x$new_path" = x; then 38709 # It's still not found. Now this is an unrecoverable error. 38710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38711 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38712 has_space=`$ECHO "$complete" | $GREP " "` 38713 if test "x$has_space" != x; then 38714 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38715 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38716 fi 38717 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38718 fi 38719 fi 38720 38721 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38722 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38723 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38724 # "foo.exe" is OK but "foo" is an error. 38725 # 38726 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38727 # It is also a way to make sure we got the proper file name for the real test later on. 38728 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38729 if test "x$test_shortpath" = x; then 38730 # Short path failed, file does not exist as specified. 38731 # Try adding .exe or .cmd 38732 if test -f "${new_path}.exe"; then 38733 input_to_shortpath="${new_path}.exe" 38734 elif test -f "${new_path}.cmd"; then 38735 input_to_shortpath="${new_path}.cmd" 38736 else 38737 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 38738 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 38739 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38740 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38741 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38742 fi 38743 else 38744 input_to_shortpath="$new_path" 38745 fi 38746 38747 # Call helper function which possibly converts this using DOS-style short mode. 38748 # If so, the updated path is stored in $new_path. 38749 new_path="$input_to_shortpath" 38750 38751 input_path="$input_to_shortpath" 38752 # Check if we need to convert this using DOS-style short mode. If the path 38753 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38754 # take no chances and rewrite it. 38755 # Note: m4 eats our [], so we need to use [ and ] instead. 38756 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38757 if test "x$has_forbidden_chars" != x; then 38758 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38759 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38760 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38761 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38762 # Going to short mode and back again did indeed matter. Since short mode is 38763 # case insensitive, let's make it lowercase to improve readability. 38764 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38765 # Now convert it back to Unix-style (cygpath) 38766 input_path=`$CYGPATH -u "$shortmode_path"` 38767 new_path="$input_path" 38768 fi 38769 fi 38770 38771 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38772 if test "x$test_cygdrive_prefix" = x; then 38773 # As a simple fix, exclude /usr/bin since it's not a real path. 38774 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38775 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38776 # a path prefixed by /cygdrive for fixpath to work. 38777 new_path="$CYGWIN_ROOT_PATH$input_path" 38778 fi 38779 fi 38780 38781 # remove trailing .exe if any 38782 new_path="${new_path/%.exe/}" 38783 38784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38785 38786 # First separate the path from the arguments. This will split at the first 38787 # space. 38788 complete="$MT" 38789 path="${complete%% *}" 38790 tmp="$complete EOL" 38791 arguments="${tmp#* }" 38792 38793 # Input might be given as Windows format, start by converting to 38794 # unix format. 38795 new_path="$path" 38796 38797 windows_path="$new_path" 38798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38799 unix_path=`$CYGPATH -u "$windows_path"` 38800 new_path="$unix_path" 38801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38803 new_path="$unix_path" 38804 fi 38805 38806 38807 # Now try to locate executable using which 38808 new_path=`$WHICH "$new_path" 2> /dev/null` 38809 38810 if test "x$new_path" = x; then 38811 # Oops. Which didn't find the executable. 38812 # The splitting of arguments from the executable at a space might have been incorrect, 38813 # since paths with space are more likely in Windows. Give it another try with the whole 38814 # argument. 38815 path="$complete" 38816 arguments="EOL" 38817 new_path="$path" 38818 38819 windows_path="$new_path" 38820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38821 unix_path=`$CYGPATH -u "$windows_path"` 38822 new_path="$unix_path" 38823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38824 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38825 new_path="$unix_path" 38826 fi 38827 38828 38829 new_path=`$WHICH "$new_path" 2> /dev/null` 38830 # bat and cmd files are not always considered executable in MSYS causing which 38831 # to not find them 38832 if test "x$new_path" = x \ 38833 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38834 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38835 new_path="$path" 38836 38837 windows_path="$new_path" 38838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38839 unix_path=`$CYGPATH -u "$windows_path"` 38840 new_path="$unix_path" 38841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38842 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38843 new_path="$unix_path" 38844 fi 38845 38846 fi 38847 38848 if test "x$new_path" = x; then 38849 # It's still not found. Now this is an unrecoverable error. 38850 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38851 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38852 has_space=`$ECHO "$complete" | $GREP " "` 38853 if test "x$has_space" != x; then 38854 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38855 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38856 fi 38857 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38858 fi 38859 fi 38860 38861 # Now new_path has a complete unix path to the binary 38862 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38863 # Keep paths in /bin as-is, but remove trailing .exe if any 38864 new_path="${new_path/%.exe/}" 38865 # Do not save /bin paths to all_fixpath_prefixes! 38866 else 38867 # Not in mixed or Windows style, start by that. 38868 new_path=`cmd //c echo $new_path` 38869 38870 input_path="$new_path" 38871 # Check if we need to convert this using DOS-style short mode. If the path 38872 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38873 # take no chances and rewrite it. 38874 # Note: m4 eats our [], so we need to use [ and ] instead. 38875 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38876 if test "x$has_forbidden_chars" != x; then 38877 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38878 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38879 fi 38880 38881 # Output is in $new_path 38882 38883 windows_path="$new_path" 38884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38885 unix_path=`$CYGPATH -u "$windows_path"` 38886 new_path="$unix_path" 38887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38888 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38889 new_path="$unix_path" 38890 fi 38891 38892 # remove trailing .exe if any 38893 new_path="${new_path/%.exe/}" 38894 38895 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38896 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38897 fi 38898 38899 else 38900 # We're on a unix platform. Hooray! :) 38901 # First separate the path from the arguments. This will split at the first 38902 # space. 38903 complete="$MT" 38904 path="${complete%% *}" 38905 tmp="$complete EOL" 38906 arguments="${tmp#* }" 38907 38908 # Cannot rely on the command "which" here since it doesn't always work. 38909 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38910 if test -z "$is_absolute_path"; then 38911 # Path to executable is not absolute. Find it. 38912 IFS_save="$IFS" 38913 IFS=: 38914 for p in $PATH; do 38915 if test -f "$p/$path" && test -x "$p/$path"; then 38916 new_path="$p/$path" 38917 break 38918 fi 38919 done 38920 IFS="$IFS_save" 38921 else 38922 # This is an absolute path, we can use it without further modifications. 38923 new_path="$path" 38924 fi 38925 38926 if test "x$new_path" = x; then 38927 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38928 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38929 has_space=`$ECHO "$complete" | $GREP " "` 38930 if test "x$has_space" != x; then 38931 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38932 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38933 fi 38934 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38935 fi 38936 fi 38937 38938 # Now join together the path and the arguments once again 38939 if test "x$arguments" != xEOL; then 38940 new_complete="$new_path ${arguments% *}" 38941 else 38942 new_complete="$new_path" 38943 fi 38944 38945 if test "x$complete" != "x$new_complete"; then 38946 MT="$new_complete" 38947 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 38948 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 38949 fi 38950 fi 38951 38952 # Setup the resource compiler (RC) 38953 # Extract the first word of "rc", so it can be a program name with args. 38954 set dummy rc; ac_word=$2 38955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38956 $as_echo_n "checking for $ac_word... " >&6; } 38957 if ${ac_cv_prog_RC+:} false; then : 38958 $as_echo_n "(cached) " >&6 38959 else 38960 if test -n "$RC"; then 38961 ac_cv_prog_RC="$RC" # Let the user override the test. 38962 else 38963 ac_prog_rejected=no 38964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38965 for as_dir in $PATH 38966 do 38967 IFS=$as_save_IFS 38968 test -z "$as_dir" && as_dir=. 38969 for ac_exec_ext in '' $ac_executable_extensions; do 38970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38971 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 38972 ac_prog_rejected=yes 38973 continue 38974 fi 38975 ac_cv_prog_RC="rc" 38976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38977 break 2 38978 fi 38979 done 38980 done 38981 IFS=$as_save_IFS 38982 38983 if test $ac_prog_rejected = yes; then 38984 # We found a bogon in the path, so make sure we never use it. 38985 set dummy $ac_cv_prog_RC 38986 shift 38987 if test $# != 0; then 38988 # We chose a different compiler from the bogus one. 38989 # However, it has the same basename, so the bogon will be chosen 38990 # first if we set RC to just the basename; use the full file name. 38991 shift 38992 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 38993 fi 38994 fi 38995 fi 38996 fi 38997 RC=$ac_cv_prog_RC 38998 if test -n "$RC"; then 38999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 39000 $as_echo "$RC" >&6; } 39001 else 39002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39003 $as_echo "no" >&6; } 39004 fi 39005 39006 39007 39008 # Only process if variable expands to non-empty 39009 39010 if test "x$RC" != x; then 39011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39012 39013 # First separate the path from the arguments. This will split at the first 39014 # space. 39015 complete="$RC" 39016 path="${complete%% *}" 39017 tmp="$complete EOL" 39018 arguments="${tmp#* }" 39019 39020 # Input might be given as Windows format, start by converting to 39021 # unix format. 39022 new_path=`$CYGPATH -u "$path"` 39023 39024 # Now try to locate executable using which 39025 new_path=`$WHICH "$new_path" 2> /dev/null` 39026 # bat and cmd files are not always considered executable in cygwin causing which 39027 # to not find them 39028 if test "x$new_path" = x \ 39029 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39030 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39031 new_path=`$CYGPATH -u "$path"` 39032 fi 39033 if test "x$new_path" = x; then 39034 # Oops. Which didn't find the executable. 39035 # The splitting of arguments from the executable at a space might have been incorrect, 39036 # since paths with space are more likely in Windows. Give it another try with the whole 39037 # argument. 39038 path="$complete" 39039 arguments="EOL" 39040 new_path=`$CYGPATH -u "$path"` 39041 new_path=`$WHICH "$new_path" 2> /dev/null` 39042 # bat and cmd files are not always considered executable in cygwin causing which 39043 # to not find them 39044 if test "x$new_path" = x \ 39045 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39046 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39047 new_path=`$CYGPATH -u "$path"` 39048 fi 39049 if test "x$new_path" = x; then 39050 # It's still not found. Now this is an unrecoverable error. 39051 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39052 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39053 has_space=`$ECHO "$complete" | $GREP " "` 39054 if test "x$has_space" != x; then 39055 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39056 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39057 fi 39058 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39059 fi 39060 fi 39061 39062 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39063 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39064 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39065 # "foo.exe" is OK but "foo" is an error. 39066 # 39067 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39068 # It is also a way to make sure we got the proper file name for the real test later on. 39069 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39070 if test "x$test_shortpath" = x; then 39071 # Short path failed, file does not exist as specified. 39072 # Try adding .exe or .cmd 39073 if test -f "${new_path}.exe"; then 39074 input_to_shortpath="${new_path}.exe" 39075 elif test -f "${new_path}.cmd"; then 39076 input_to_shortpath="${new_path}.cmd" 39077 else 39078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 39079 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 39080 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39081 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39082 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39083 fi 39084 else 39085 input_to_shortpath="$new_path" 39086 fi 39087 39088 # Call helper function which possibly converts this using DOS-style short mode. 39089 # If so, the updated path is stored in $new_path. 39090 new_path="$input_to_shortpath" 39091 39092 input_path="$input_to_shortpath" 39093 # Check if we need to convert this using DOS-style short mode. If the path 39094 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39095 # take no chances and rewrite it. 39096 # Note: m4 eats our [], so we need to use [ and ] instead. 39097 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39098 if test "x$has_forbidden_chars" != x; then 39099 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39100 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39101 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39102 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39103 # Going to short mode and back again did indeed matter. Since short mode is 39104 # case insensitive, let's make it lowercase to improve readability. 39105 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39106 # Now convert it back to Unix-style (cygpath) 39107 input_path=`$CYGPATH -u "$shortmode_path"` 39108 new_path="$input_path" 39109 fi 39110 fi 39111 39112 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39113 if test "x$test_cygdrive_prefix" = x; then 39114 # As a simple fix, exclude /usr/bin since it's not a real path. 39115 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39116 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39117 # a path prefixed by /cygdrive for fixpath to work. 39118 new_path="$CYGWIN_ROOT_PATH$input_path" 39119 fi 39120 fi 39121 39122 # remove trailing .exe if any 39123 new_path="${new_path/%.exe/}" 39124 39125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39126 39127 # First separate the path from the arguments. This will split at the first 39128 # space. 39129 complete="$RC" 39130 path="${complete%% *}" 39131 tmp="$complete EOL" 39132 arguments="${tmp#* }" 39133 39134 # Input might be given as Windows format, start by converting to 39135 # unix format. 39136 new_path="$path" 39137 39138 windows_path="$new_path" 39139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39140 unix_path=`$CYGPATH -u "$windows_path"` 39141 new_path="$unix_path" 39142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39143 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39144 new_path="$unix_path" 39145 fi 39146 39147 39148 # Now try to locate executable using which 39149 new_path=`$WHICH "$new_path" 2> /dev/null` 39150 39151 if test "x$new_path" = x; then 39152 # Oops. Which didn't find the executable. 39153 # The splitting of arguments from the executable at a space might have been incorrect, 39154 # since paths with space are more likely in Windows. Give it another try with the whole 39155 # argument. 39156 path="$complete" 39157 arguments="EOL" 39158 new_path="$path" 39159 39160 windows_path="$new_path" 39161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39162 unix_path=`$CYGPATH -u "$windows_path"` 39163 new_path="$unix_path" 39164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39166 new_path="$unix_path" 39167 fi 39168 39169 39170 new_path=`$WHICH "$new_path" 2> /dev/null` 39171 # bat and cmd files are not always considered executable in MSYS causing which 39172 # to not find them 39173 if test "x$new_path" = x \ 39174 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39175 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39176 new_path="$path" 39177 39178 windows_path="$new_path" 39179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39180 unix_path=`$CYGPATH -u "$windows_path"` 39181 new_path="$unix_path" 39182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39183 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39184 new_path="$unix_path" 39185 fi 39186 39187 fi 39188 39189 if test "x$new_path" = x; then 39190 # It's still not found. Now this is an unrecoverable error. 39191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39192 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39193 has_space=`$ECHO "$complete" | $GREP " "` 39194 if test "x$has_space" != x; then 39195 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39197 fi 39198 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39199 fi 39200 fi 39201 39202 # Now new_path has a complete unix path to the binary 39203 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39204 # Keep paths in /bin as-is, but remove trailing .exe if any 39205 new_path="${new_path/%.exe/}" 39206 # Do not save /bin paths to all_fixpath_prefixes! 39207 else 39208 # Not in mixed or Windows style, start by that. 39209 new_path=`cmd //c echo $new_path` 39210 39211 input_path="$new_path" 39212 # Check if we need to convert this using DOS-style short mode. If the path 39213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39214 # take no chances and rewrite it. 39215 # Note: m4 eats our [], so we need to use [ and ] instead. 39216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39217 if test "x$has_forbidden_chars" != x; then 39218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39220 fi 39221 39222 # Output is in $new_path 39223 39224 windows_path="$new_path" 39225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39226 unix_path=`$CYGPATH -u "$windows_path"` 39227 new_path="$unix_path" 39228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39229 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39230 new_path="$unix_path" 39231 fi 39232 39233 # remove trailing .exe if any 39234 new_path="${new_path/%.exe/}" 39235 39236 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39237 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39238 fi 39239 39240 else 39241 # We're on a unix platform. Hooray! :) 39242 # First separate the path from the arguments. This will split at the first 39243 # space. 39244 complete="$RC" 39245 path="${complete%% *}" 39246 tmp="$complete EOL" 39247 arguments="${tmp#* }" 39248 39249 # Cannot rely on the command "which" here since it doesn't always work. 39250 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39251 if test -z "$is_absolute_path"; then 39252 # Path to executable is not absolute. Find it. 39253 IFS_save="$IFS" 39254 IFS=: 39255 for p in $PATH; do 39256 if test -f "$p/$path" && test -x "$p/$path"; then 39257 new_path="$p/$path" 39258 break 39259 fi 39260 done 39261 IFS="$IFS_save" 39262 else 39263 # This is an absolute path, we can use it without further modifications. 39264 new_path="$path" 39265 fi 39266 39267 if test "x$new_path" = x; then 39268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39269 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39270 has_space=`$ECHO "$complete" | $GREP " "` 39271 if test "x$has_space" != x; then 39272 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39273 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39274 fi 39275 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39276 fi 39277 fi 39278 39279 # Now join together the path and the arguments once again 39280 if test "x$arguments" != xEOL; then 39281 new_complete="$new_path ${arguments% *}" 39282 else 39283 new_complete="$new_path" 39284 fi 39285 39286 if test "x$complete" != "x$new_complete"; then 39287 RC="$new_complete" 39288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 39289 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 39290 fi 39291 fi 39292 39293 # Extract the first word of "dumpbin", so it can be a program name with args. 39294 set dummy dumpbin; ac_word=$2 39295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39296 $as_echo_n "checking for $ac_word... " >&6; } 39297 if ${ac_cv_prog_DUMPBIN+:} false; then : 39298 $as_echo_n "(cached) " >&6 39299 else 39300 if test -n "$DUMPBIN"; then 39301 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 39302 else 39303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39304 for as_dir in $PATH 39305 do 39306 IFS=$as_save_IFS 39307 test -z "$as_dir" && as_dir=. 39308 for ac_exec_ext in '' $ac_executable_extensions; do 39309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39310 ac_cv_prog_DUMPBIN="dumpbin" 39311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39312 break 2 39313 fi 39314 done 39315 done 39316 IFS=$as_save_IFS 39317 39318 fi 39319 fi 39320 DUMPBIN=$ac_cv_prog_DUMPBIN 39321 if test -n "$DUMPBIN"; then 39322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 39323 $as_echo "$DUMPBIN" >&6; } 39324 else 39325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39326 $as_echo "no" >&6; } 39327 fi 39328 39329 39330 39331 # Only process if variable expands to non-empty 39332 39333 if test "x$DUMPBIN" != x; then 39334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39335 39336 # First separate the path from the arguments. This will split at the first 39337 # space. 39338 complete="$DUMPBIN" 39339 path="${complete%% *}" 39340 tmp="$complete EOL" 39341 arguments="${tmp#* }" 39342 39343 # Input might be given as Windows format, start by converting to 39344 # unix format. 39345 new_path=`$CYGPATH -u "$path"` 39346 39347 # Now try to locate executable using which 39348 new_path=`$WHICH "$new_path" 2> /dev/null` 39349 # bat and cmd files are not always considered executable in cygwin causing which 39350 # to not find them 39351 if test "x$new_path" = x \ 39352 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39353 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39354 new_path=`$CYGPATH -u "$path"` 39355 fi 39356 if test "x$new_path" = x; then 39357 # Oops. Which didn't find the executable. 39358 # The splitting of arguments from the executable at a space might have been incorrect, 39359 # since paths with space are more likely in Windows. Give it another try with the whole 39360 # argument. 39361 path="$complete" 39362 arguments="EOL" 39363 new_path=`$CYGPATH -u "$path"` 39364 new_path=`$WHICH "$new_path" 2> /dev/null` 39365 # bat and cmd files are not always considered executable in cygwin causing which 39366 # to not find them 39367 if test "x$new_path" = x \ 39368 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39369 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39370 new_path=`$CYGPATH -u "$path"` 39371 fi 39372 if test "x$new_path" = x; then 39373 # It's still not found. Now this is an unrecoverable error. 39374 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39375 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39376 has_space=`$ECHO "$complete" | $GREP " "` 39377 if test "x$has_space" != x; then 39378 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39379 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39380 fi 39381 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39382 fi 39383 fi 39384 39385 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39386 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39387 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39388 # "foo.exe" is OK but "foo" is an error. 39389 # 39390 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39391 # It is also a way to make sure we got the proper file name for the real test later on. 39392 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39393 if test "x$test_shortpath" = x; then 39394 # Short path failed, file does not exist as specified. 39395 # Try adding .exe or .cmd 39396 if test -f "${new_path}.exe"; then 39397 input_to_shortpath="${new_path}.exe" 39398 elif test -f "${new_path}.cmd"; then 39399 input_to_shortpath="${new_path}.cmd" 39400 else 39401 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 39402 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 39403 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39404 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39405 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39406 fi 39407 else 39408 input_to_shortpath="$new_path" 39409 fi 39410 39411 # Call helper function which possibly converts this using DOS-style short mode. 39412 # If so, the updated path is stored in $new_path. 39413 new_path="$input_to_shortpath" 39414 39415 input_path="$input_to_shortpath" 39416 # Check if we need to convert this using DOS-style short mode. If the path 39417 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39418 # take no chances and rewrite it. 39419 # Note: m4 eats our [], so we need to use [ and ] instead. 39420 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39421 if test "x$has_forbidden_chars" != x; then 39422 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39423 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39424 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39425 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39426 # Going to short mode and back again did indeed matter. Since short mode is 39427 # case insensitive, let's make it lowercase to improve readability. 39428 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39429 # Now convert it back to Unix-style (cygpath) 39430 input_path=`$CYGPATH -u "$shortmode_path"` 39431 new_path="$input_path" 39432 fi 39433 fi 39434 39435 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39436 if test "x$test_cygdrive_prefix" = x; then 39437 # As a simple fix, exclude /usr/bin since it's not a real path. 39438 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39439 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39440 # a path prefixed by /cygdrive for fixpath to work. 39441 new_path="$CYGWIN_ROOT_PATH$input_path" 39442 fi 39443 fi 39444 39445 # remove trailing .exe if any 39446 new_path="${new_path/%.exe/}" 39447 39448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39449 39450 # First separate the path from the arguments. This will split at the first 39451 # space. 39452 complete="$DUMPBIN" 39453 path="${complete%% *}" 39454 tmp="$complete EOL" 39455 arguments="${tmp#* }" 39456 39457 # Input might be given as Windows format, start by converting to 39458 # unix format. 39459 new_path="$path" 39460 39461 windows_path="$new_path" 39462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39463 unix_path=`$CYGPATH -u "$windows_path"` 39464 new_path="$unix_path" 39465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39466 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39467 new_path="$unix_path" 39468 fi 39469 39470 39471 # Now try to locate executable using which 39472 new_path=`$WHICH "$new_path" 2> /dev/null` 39473 39474 if test "x$new_path" = x; then 39475 # Oops. Which didn't find the executable. 39476 # The splitting of arguments from the executable at a space might have been incorrect, 39477 # since paths with space are more likely in Windows. Give it another try with the whole 39478 # argument. 39479 path="$complete" 39480 arguments="EOL" 39481 new_path="$path" 39482 39483 windows_path="$new_path" 39484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39485 unix_path=`$CYGPATH -u "$windows_path"` 39486 new_path="$unix_path" 39487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39489 new_path="$unix_path" 39490 fi 39491 39492 39493 new_path=`$WHICH "$new_path" 2> /dev/null` 39494 # bat and cmd files are not always considered executable in MSYS causing which 39495 # to not find them 39496 if test "x$new_path" = x \ 39497 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39498 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39499 new_path="$path" 39500 39501 windows_path="$new_path" 39502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39503 unix_path=`$CYGPATH -u "$windows_path"` 39504 new_path="$unix_path" 39505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39506 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39507 new_path="$unix_path" 39508 fi 39509 39510 fi 39511 39512 if test "x$new_path" = x; then 39513 # It's still not found. Now this is an unrecoverable error. 39514 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39515 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39516 has_space=`$ECHO "$complete" | $GREP " "` 39517 if test "x$has_space" != x; then 39518 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39519 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39520 fi 39521 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39522 fi 39523 fi 39524 39525 # Now new_path has a complete unix path to the binary 39526 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39527 # Keep paths in /bin as-is, but remove trailing .exe if any 39528 new_path="${new_path/%.exe/}" 39529 # Do not save /bin paths to all_fixpath_prefixes! 39530 else 39531 # Not in mixed or Windows style, start by that. 39532 new_path=`cmd //c echo $new_path` 39533 39534 input_path="$new_path" 39535 # Check if we need to convert this using DOS-style short mode. If the path 39536 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39537 # take no chances and rewrite it. 39538 # Note: m4 eats our [], so we need to use [ and ] instead. 39539 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39540 if test "x$has_forbidden_chars" != x; then 39541 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39542 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39543 fi 39544 39545 # Output is in $new_path 39546 39547 windows_path="$new_path" 39548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39549 unix_path=`$CYGPATH -u "$windows_path"` 39550 new_path="$unix_path" 39551 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39552 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39553 new_path="$unix_path" 39554 fi 39555 39556 # remove trailing .exe if any 39557 new_path="${new_path/%.exe/}" 39558 39559 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39560 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39561 fi 39562 39563 else 39564 # We're on a unix platform. Hooray! :) 39565 # First separate the path from the arguments. This will split at the first 39566 # space. 39567 complete="$DUMPBIN" 39568 path="${complete%% *}" 39569 tmp="$complete EOL" 39570 arguments="${tmp#* }" 39571 39572 # Cannot rely on the command "which" here since it doesn't always work. 39573 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39574 if test -z "$is_absolute_path"; then 39575 # Path to executable is not absolute. Find it. 39576 IFS_save="$IFS" 39577 IFS=: 39578 for p in $PATH; do 39579 if test -f "$p/$path" && test -x "$p/$path"; then 39580 new_path="$p/$path" 39581 break 39582 fi 39583 done 39584 IFS="$IFS_save" 39585 else 39586 # This is an absolute path, we can use it without further modifications. 39587 new_path="$path" 39588 fi 39589 39590 if test "x$new_path" = x; then 39591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39592 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39593 has_space=`$ECHO "$complete" | $GREP " "` 39594 if test "x$has_space" != x; then 39595 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39596 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39597 fi 39598 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39599 fi 39600 fi 39601 39602 # Now join together the path and the arguments once again 39603 if test "x$arguments" != xEOL; then 39604 new_complete="$new_path ${arguments% *}" 39605 else 39606 new_complete="$new_path" 39607 fi 39608 39609 if test "x$complete" != "x$new_complete"; then 39610 DUMPBIN="$new_complete" 39611 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 39612 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 39613 fi 39614 fi 39615 39616 # We need to check for 'msbuild.exe' because at the place where we expect to 39617 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 39618 # won't find the 'msbuild.exe' executable in that case (and the 39619 # 'ac_executable_extensions' is unusable due to performance reasons). 39620 # Notice that we intentionally don't fix up the path to MSBUILD because we 39621 # will call it in a DOS shell during freetype detection on Windows (see 39622 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 39623 # Extract the first word of "msbuild.exe", so it can be a program name with args. 39624 set dummy msbuild.exe; ac_word=$2 39625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39626 $as_echo_n "checking for $ac_word... " >&6; } 39627 if ${ac_cv_prog_MSBUILD+:} false; then : 39628 $as_echo_n "(cached) " >&6 39629 else 39630 if test -n "$MSBUILD"; then 39631 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 39632 else 39633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39634 for as_dir in $PATH 39635 do 39636 IFS=$as_save_IFS 39637 test -z "$as_dir" && as_dir=. 39638 for ac_exec_ext in '' $ac_executable_extensions; do 39639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39640 ac_cv_prog_MSBUILD="msbuild.exe" 39641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39642 break 2 39643 fi 39644 done 39645 done 39646 IFS=$as_save_IFS 39647 39648 fi 39649 fi 39650 MSBUILD=$ac_cv_prog_MSBUILD 39651 if test -n "$MSBUILD"; then 39652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 39653 $as_echo "$MSBUILD" >&6; } 39654 else 39655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39656 $as_echo "no" >&6; } 39657 fi 39658 39659 39660 fi 39661 39662 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 39663 39664 39665 # Publish this variable in the help. 39666 39667 39668 if [ -z "${STRIP+x}" ]; then 39669 # The variable is not set by user, try to locate tool using the code snippet 39670 for ac_prog in strip 39671 do 39672 # Extract the first word of "$ac_prog", so it can be a program name with args. 39673 set dummy $ac_prog; ac_word=$2 39674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39675 $as_echo_n "checking for $ac_word... " >&6; } 39676 if ${ac_cv_path_STRIP+:} false; then : 39677 $as_echo_n "(cached) " >&6 39678 else 39679 case $STRIP in 39680 [\\/]* | ?:[\\/]*) 39681 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39682 ;; 39683 *) 39684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39685 for as_dir in $PATH 39686 do 39687 IFS=$as_save_IFS 39688 test -z "$as_dir" && as_dir=. 39689 for ac_exec_ext in '' $ac_executable_extensions; do 39690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39691 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39693 break 2 39694 fi 39695 done 39696 done 39697 IFS=$as_save_IFS 39698 39699 ;; 39700 esac 39701 fi 39702 STRIP=$ac_cv_path_STRIP 39703 if test -n "$STRIP"; then 39704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39705 $as_echo "$STRIP" >&6; } 39706 else 39707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39708 $as_echo "no" >&6; } 39709 fi 39710 39711 39712 test -n "$STRIP" && break 39713 done 39714 39715 else 39716 # The variable is set, but is it from the command line or the environment? 39717 39718 # Try to remove the string !STRIP! from our list. 39719 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 39720 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39721 # If it failed, the variable was not from the command line. Ignore it, 39722 # but warn the user (except for BASH, which is always set by the calling BASH). 39723 if test "xSTRIP" != xBASH; then 39724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 39725 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 39726 fi 39727 # Try to locate tool using the code snippet 39728 for ac_prog in strip 39729 do 39730 # Extract the first word of "$ac_prog", so it can be a program name with args. 39731 set dummy $ac_prog; ac_word=$2 39732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39733 $as_echo_n "checking for $ac_word... " >&6; } 39734 if ${ac_cv_path_STRIP+:} false; then : 39735 $as_echo_n "(cached) " >&6 39736 else 39737 case $STRIP in 39738 [\\/]* | ?:[\\/]*) 39739 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39740 ;; 39741 *) 39742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39743 for as_dir in $PATH 39744 do 39745 IFS=$as_save_IFS 39746 test -z "$as_dir" && as_dir=. 39747 for ac_exec_ext in '' $ac_executable_extensions; do 39748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39749 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39751 break 2 39752 fi 39753 done 39754 done 39755 IFS=$as_save_IFS 39756 39757 ;; 39758 esac 39759 fi 39760 STRIP=$ac_cv_path_STRIP 39761 if test -n "$STRIP"; then 39762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39763 $as_echo "$STRIP" >&6; } 39764 else 39765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39766 $as_echo "no" >&6; } 39767 fi 39768 39769 39770 test -n "$STRIP" && break 39771 done 39772 39773 else 39774 # If it succeeded, then it was overridden by the user. We will use it 39775 # for the tool. 39776 39777 # First remove it from the list of overridden variables, so we can test 39778 # for unknown variables in the end. 39779 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39780 39781 # Check if we try to supply an empty value 39782 if test "x$STRIP" = x; then 39783 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 39784 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 39785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39786 $as_echo_n "checking for STRIP... " >&6; } 39787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39788 $as_echo "disabled" >&6; } 39789 else 39790 # Check if the provided tool contains a complete path. 39791 tool_specified="$STRIP" 39792 tool_basename="${tool_specified##*/}" 39793 if test "x$tool_basename" = "x$tool_specified"; then 39794 # A command without a complete path is provided, search $PATH. 39795 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 39796 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 39797 # Extract the first word of "$tool_basename", so it can be a program name with args. 39798 set dummy $tool_basename; ac_word=$2 39799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39800 $as_echo_n "checking for $ac_word... " >&6; } 39801 if ${ac_cv_path_STRIP+:} false; then : 39802 $as_echo_n "(cached) " >&6 39803 else 39804 case $STRIP in 39805 [\\/]* | ?:[\\/]*) 39806 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39807 ;; 39808 *) 39809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39810 for as_dir in $PATH 39811 do 39812 IFS=$as_save_IFS 39813 test -z "$as_dir" && as_dir=. 39814 for ac_exec_ext in '' $ac_executable_extensions; do 39815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39816 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39818 break 2 39819 fi 39820 done 39821 done 39822 IFS=$as_save_IFS 39823 39824 ;; 39825 esac 39826 fi 39827 STRIP=$ac_cv_path_STRIP 39828 if test -n "$STRIP"; then 39829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39830 $as_echo "$STRIP" >&6; } 39831 else 39832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39833 $as_echo "no" >&6; } 39834 fi 39835 39836 39837 if test "x$STRIP" = x; then 39838 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39839 fi 39840 else 39841 # Otherwise we believe it is a complete path. Use it as it is. 39842 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 39843 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 39844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39845 $as_echo_n "checking for STRIP... " >&6; } 39846 if test ! -x "$tool_specified"; then 39847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39848 $as_echo "not found" >&6; } 39849 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 39850 fi 39851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39852 $as_echo "$tool_specified" >&6; } 39853 fi 39854 fi 39855 fi 39856 39857 fi 39858 39859 39860 39861 # Only process if variable expands to non-empty 39862 39863 if test "x$STRIP" != x; then 39864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39865 39866 # First separate the path from the arguments. This will split at the first 39867 # space. 39868 complete="$STRIP" 39869 path="${complete%% *}" 39870 tmp="$complete EOL" 39871 arguments="${tmp#* }" 39872 39873 # Input might be given as Windows format, start by converting to 39874 # unix format. 39875 new_path=`$CYGPATH -u "$path"` 39876 39877 # Now try to locate executable using which 39878 new_path=`$WHICH "$new_path" 2> /dev/null` 39879 # bat and cmd files are not always considered executable in cygwin 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=`$CYGPATH -u "$path"` 39885 fi 39886 if test "x$new_path" = x; then 39887 # Oops. Which didn't find the executable. 39888 # The splitting of arguments from the executable at a space might have been incorrect, 39889 # since paths with space are more likely in Windows. Give it another try with the whole 39890 # argument. 39891 path="$complete" 39892 arguments="EOL" 39893 new_path=`$CYGPATH -u "$path"` 39894 new_path=`$WHICH "$new_path" 2> /dev/null` 39895 # bat and cmd files are not always considered executable in cygwin causing which 39896 # to not find them 39897 if test "x$new_path" = x \ 39898 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39899 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39900 new_path=`$CYGPATH -u "$path"` 39901 fi 39902 if test "x$new_path" = x; then 39903 # It's still not found. Now this is an unrecoverable error. 39904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39905 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39906 has_space=`$ECHO "$complete" | $GREP " "` 39907 if test "x$has_space" != x; then 39908 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39909 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39910 fi 39911 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39912 fi 39913 fi 39914 39915 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39916 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39917 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39918 # "foo.exe" is OK but "foo" is an error. 39919 # 39920 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39921 # It is also a way to make sure we got the proper file name for the real test later on. 39922 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39923 if test "x$test_shortpath" = x; then 39924 # Short path failed, file does not exist as specified. 39925 # Try adding .exe or .cmd 39926 if test -f "${new_path}.exe"; then 39927 input_to_shortpath="${new_path}.exe" 39928 elif test -f "${new_path}.cmd"; then 39929 input_to_shortpath="${new_path}.cmd" 39930 else 39931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 39932 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 39933 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39934 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39935 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39936 fi 39937 else 39938 input_to_shortpath="$new_path" 39939 fi 39940 39941 # Call helper function which possibly converts this using DOS-style short mode. 39942 # If so, the updated path is stored in $new_path. 39943 new_path="$input_to_shortpath" 39944 39945 input_path="$input_to_shortpath" 39946 # Check if we need to convert this using DOS-style short mode. If the path 39947 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39948 # take no chances and rewrite it. 39949 # Note: m4 eats our [], so we need to use [ and ] instead. 39950 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39951 if test "x$has_forbidden_chars" != x; then 39952 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39953 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39954 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39955 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39956 # Going to short mode and back again did indeed matter. Since short mode is 39957 # case insensitive, let's make it lowercase to improve readability. 39958 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39959 # Now convert it back to Unix-style (cygpath) 39960 input_path=`$CYGPATH -u "$shortmode_path"` 39961 new_path="$input_path" 39962 fi 39963 fi 39964 39965 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39966 if test "x$test_cygdrive_prefix" = x; then 39967 # As a simple fix, exclude /usr/bin since it's not a real path. 39968 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39969 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39970 # a path prefixed by /cygdrive for fixpath to work. 39971 new_path="$CYGWIN_ROOT_PATH$input_path" 39972 fi 39973 fi 39974 39975 # remove trailing .exe if any 39976 new_path="${new_path/%.exe/}" 39977 39978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39979 39980 # First separate the path from the arguments. This will split at the first 39981 # space. 39982 complete="$STRIP" 39983 path="${complete%% *}" 39984 tmp="$complete EOL" 39985 arguments="${tmp#* }" 39986 39987 # Input might be given as Windows format, start by converting to 39988 # unix format. 39989 new_path="$path" 39990 39991 windows_path="$new_path" 39992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39993 unix_path=`$CYGPATH -u "$windows_path"` 39994 new_path="$unix_path" 39995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39997 new_path="$unix_path" 39998 fi 39999 40000 40001 # Now try to locate executable using which 40002 new_path=`$WHICH "$new_path" 2> /dev/null` 40003 40004 if test "x$new_path" = x; then 40005 # Oops. Which didn't find the executable. 40006 # The splitting of arguments from the executable at a space might have been incorrect, 40007 # since paths with space are more likely in Windows. Give it another try with the whole 40008 # argument. 40009 path="$complete" 40010 arguments="EOL" 40011 new_path="$path" 40012 40013 windows_path="$new_path" 40014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40015 unix_path=`$CYGPATH -u "$windows_path"` 40016 new_path="$unix_path" 40017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40019 new_path="$unix_path" 40020 fi 40021 40022 40023 new_path=`$WHICH "$new_path" 2> /dev/null` 40024 # bat and cmd files are not always considered executable in MSYS causing which 40025 # to not find them 40026 if test "x$new_path" = x \ 40027 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40028 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40029 new_path="$path" 40030 40031 windows_path="$new_path" 40032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40033 unix_path=`$CYGPATH -u "$windows_path"` 40034 new_path="$unix_path" 40035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40036 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40037 new_path="$unix_path" 40038 fi 40039 40040 fi 40041 40042 if test "x$new_path" = x; then 40043 # It's still not found. Now this is an unrecoverable error. 40044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40045 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40046 has_space=`$ECHO "$complete" | $GREP " "` 40047 if test "x$has_space" != x; then 40048 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40049 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40050 fi 40051 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40052 fi 40053 fi 40054 40055 # Now new_path has a complete unix path to the binary 40056 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40057 # Keep paths in /bin as-is, but remove trailing .exe if any 40058 new_path="${new_path/%.exe/}" 40059 # Do not save /bin paths to all_fixpath_prefixes! 40060 else 40061 # Not in mixed or Windows style, start by that. 40062 new_path=`cmd //c echo $new_path` 40063 40064 input_path="$new_path" 40065 # Check if we need to convert this using DOS-style short mode. If the path 40066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40067 # take no chances and rewrite it. 40068 # Note: m4 eats our [], so we need to use [ and ] instead. 40069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40070 if test "x$has_forbidden_chars" != x; then 40071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40072 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40073 fi 40074 40075 # Output is in $new_path 40076 40077 windows_path="$new_path" 40078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40079 unix_path=`$CYGPATH -u "$windows_path"` 40080 new_path="$unix_path" 40081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40082 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40083 new_path="$unix_path" 40084 fi 40085 40086 # remove trailing .exe if any 40087 new_path="${new_path/%.exe/}" 40088 40089 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40090 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40091 fi 40092 40093 else 40094 # We're on a unix platform. Hooray! :) 40095 # First separate the path from the arguments. This will split at the first 40096 # space. 40097 complete="$STRIP" 40098 path="${complete%% *}" 40099 tmp="$complete EOL" 40100 arguments="${tmp#* }" 40101 40102 # Cannot rely on the command "which" here since it doesn't always work. 40103 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40104 if test -z "$is_absolute_path"; then 40105 # Path to executable is not absolute. Find it. 40106 IFS_save="$IFS" 40107 IFS=: 40108 for p in $PATH; do 40109 if test -f "$p/$path" && test -x "$p/$path"; then 40110 new_path="$p/$path" 40111 break 40112 fi 40113 done 40114 IFS="$IFS_save" 40115 else 40116 # This is an absolute path, we can use it without further modifications. 40117 new_path="$path" 40118 fi 40119 40120 if test "x$new_path" = x; then 40121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40122 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40123 has_space=`$ECHO "$complete" | $GREP " "` 40124 if test "x$has_space" != x; then 40125 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40126 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40127 fi 40128 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40129 fi 40130 fi 40131 40132 # Now join together the path and the arguments once again 40133 if test "x$arguments" != xEOL; then 40134 new_complete="$new_path ${arguments% *}" 40135 else 40136 new_complete="$new_path" 40137 fi 40138 40139 if test "x$complete" != "x$new_complete"; then 40140 STRIP="$new_complete" 40141 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 40142 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 40143 fi 40144 fi 40145 40146 40147 40148 # Publish this variable in the help. 40149 40150 40151 if [ -z "${NM+x}" ]; then 40152 # The variable is not set by user, try to locate tool using the code snippet 40153 for ac_prog in nm 40154 do 40155 # Extract the first word of "$ac_prog", so it can be a program name with args. 40156 set dummy $ac_prog; ac_word=$2 40157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40158 $as_echo_n "checking for $ac_word... " >&6; } 40159 if ${ac_cv_path_NM+:} false; then : 40160 $as_echo_n "(cached) " >&6 40161 else 40162 case $NM in 40163 [\\/]* | ?:[\\/]*) 40164 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40165 ;; 40166 *) 40167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40168 for as_dir in $PATH 40169 do 40170 IFS=$as_save_IFS 40171 test -z "$as_dir" && as_dir=. 40172 for ac_exec_ext in '' $ac_executable_extensions; do 40173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40174 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40176 break 2 40177 fi 40178 done 40179 done 40180 IFS=$as_save_IFS 40181 40182 ;; 40183 esac 40184 fi 40185 NM=$ac_cv_path_NM 40186 if test -n "$NM"; then 40187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40188 $as_echo "$NM" >&6; } 40189 else 40190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40191 $as_echo "no" >&6; } 40192 fi 40193 40194 40195 test -n "$NM" && break 40196 done 40197 40198 else 40199 # The variable is set, but is it from the command line or the environment? 40200 40201 # Try to remove the string !NM! from our list. 40202 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 40203 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40204 # If it failed, the variable was not from the command line. Ignore it, 40205 # but warn the user (except for BASH, which is always set by the calling BASH). 40206 if test "xNM" != xBASH; then 40207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 40208 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 40209 fi 40210 # Try to locate tool using the code snippet 40211 for ac_prog in nm 40212 do 40213 # Extract the first word of "$ac_prog", so it can be a program name with args. 40214 set dummy $ac_prog; ac_word=$2 40215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40216 $as_echo_n "checking for $ac_word... " >&6; } 40217 if ${ac_cv_path_NM+:} false; then : 40218 $as_echo_n "(cached) " >&6 40219 else 40220 case $NM in 40221 [\\/]* | ?:[\\/]*) 40222 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40223 ;; 40224 *) 40225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40226 for as_dir in $PATH 40227 do 40228 IFS=$as_save_IFS 40229 test -z "$as_dir" && as_dir=. 40230 for ac_exec_ext in '' $ac_executable_extensions; do 40231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40232 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40234 break 2 40235 fi 40236 done 40237 done 40238 IFS=$as_save_IFS 40239 40240 ;; 40241 esac 40242 fi 40243 NM=$ac_cv_path_NM 40244 if test -n "$NM"; then 40245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40246 $as_echo "$NM" >&6; } 40247 else 40248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40249 $as_echo "no" >&6; } 40250 fi 40251 40252 40253 test -n "$NM" && break 40254 done 40255 40256 else 40257 # If it succeeded, then it was overridden by the user. We will use it 40258 # for the tool. 40259 40260 # First remove it from the list of overridden variables, so we can test 40261 # for unknown variables in the end. 40262 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40263 40264 # Check if we try to supply an empty value 40265 if test "x$NM" = x; then 40266 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 40267 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 40268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40269 $as_echo_n "checking for NM... " >&6; } 40270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40271 $as_echo "disabled" >&6; } 40272 else 40273 # Check if the provided tool contains a complete path. 40274 tool_specified="$NM" 40275 tool_basename="${tool_specified##*/}" 40276 if test "x$tool_basename" = "x$tool_specified"; then 40277 # A command without a complete path is provided, search $PATH. 40278 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 40279 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 40280 # Extract the first word of "$tool_basename", so it can be a program name with args. 40281 set dummy $tool_basename; ac_word=$2 40282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40283 $as_echo_n "checking for $ac_word... " >&6; } 40284 if ${ac_cv_path_NM+:} false; then : 40285 $as_echo_n "(cached) " >&6 40286 else 40287 case $NM in 40288 [\\/]* | ?:[\\/]*) 40289 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40290 ;; 40291 *) 40292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40293 for as_dir in $PATH 40294 do 40295 IFS=$as_save_IFS 40296 test -z "$as_dir" && as_dir=. 40297 for ac_exec_ext in '' $ac_executable_extensions; do 40298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40299 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40301 break 2 40302 fi 40303 done 40304 done 40305 IFS=$as_save_IFS 40306 40307 ;; 40308 esac 40309 fi 40310 NM=$ac_cv_path_NM 40311 if test -n "$NM"; then 40312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40313 $as_echo "$NM" >&6; } 40314 else 40315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40316 $as_echo "no" >&6; } 40317 fi 40318 40319 40320 if test "x$NM" = x; then 40321 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40322 fi 40323 else 40324 # Otherwise we believe it is a complete path. Use it as it is. 40325 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 40326 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 40327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40328 $as_echo_n "checking for NM... " >&6; } 40329 if test ! -x "$tool_specified"; then 40330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40331 $as_echo "not found" >&6; } 40332 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 40333 fi 40334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40335 $as_echo "$tool_specified" >&6; } 40336 fi 40337 fi 40338 fi 40339 40340 fi 40341 40342 40343 40344 # Only process if variable expands to non-empty 40345 40346 if test "x$NM" != x; then 40347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40348 40349 # First separate the path from the arguments. This will split at the first 40350 # space. 40351 complete="$NM" 40352 path="${complete%% *}" 40353 tmp="$complete EOL" 40354 arguments="${tmp#* }" 40355 40356 # Input might be given as Windows format, start by converting to 40357 # unix format. 40358 new_path=`$CYGPATH -u "$path"` 40359 40360 # Now try to locate executable using which 40361 new_path=`$WHICH "$new_path" 2> /dev/null` 40362 # bat and cmd files are not always considered executable in cygwin causing which 40363 # to not find them 40364 if test "x$new_path" = x \ 40365 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40366 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40367 new_path=`$CYGPATH -u "$path"` 40368 fi 40369 if test "x$new_path" = x; then 40370 # Oops. Which didn't find the executable. 40371 # The splitting of arguments from the executable at a space might have been incorrect, 40372 # since paths with space are more likely in Windows. Give it another try with the whole 40373 # argument. 40374 path="$complete" 40375 arguments="EOL" 40376 new_path=`$CYGPATH -u "$path"` 40377 new_path=`$WHICH "$new_path" 2> /dev/null` 40378 # bat and cmd files are not always considered executable in cygwin causing which 40379 # to not find them 40380 if test "x$new_path" = x \ 40381 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40382 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40383 new_path=`$CYGPATH -u "$path"` 40384 fi 40385 if test "x$new_path" = x; then 40386 # It's still not found. Now this is an unrecoverable error. 40387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40388 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40389 has_space=`$ECHO "$complete" | $GREP " "` 40390 if test "x$has_space" != x; then 40391 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40392 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40393 fi 40394 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40395 fi 40396 fi 40397 40398 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40399 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40400 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40401 # "foo.exe" is OK but "foo" is an error. 40402 # 40403 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40404 # It is also a way to make sure we got the proper file name for the real test later on. 40405 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40406 if test "x$test_shortpath" = x; then 40407 # Short path failed, file does not exist as specified. 40408 # Try adding .exe or .cmd 40409 if test -f "${new_path}.exe"; then 40410 input_to_shortpath="${new_path}.exe" 40411 elif test -f "${new_path}.cmd"; then 40412 input_to_shortpath="${new_path}.cmd" 40413 else 40414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 40415 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 40416 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40417 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40418 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40419 fi 40420 else 40421 input_to_shortpath="$new_path" 40422 fi 40423 40424 # Call helper function which possibly converts this using DOS-style short mode. 40425 # If so, the updated path is stored in $new_path. 40426 new_path="$input_to_shortpath" 40427 40428 input_path="$input_to_shortpath" 40429 # Check if we need to convert this using DOS-style short mode. If the path 40430 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40431 # take no chances and rewrite it. 40432 # Note: m4 eats our [], so we need to use [ and ] instead. 40433 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40434 if test "x$has_forbidden_chars" != x; then 40435 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40436 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40437 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40438 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40439 # Going to short mode and back again did indeed matter. Since short mode is 40440 # case insensitive, let's make it lowercase to improve readability. 40441 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40442 # Now convert it back to Unix-style (cygpath) 40443 input_path=`$CYGPATH -u "$shortmode_path"` 40444 new_path="$input_path" 40445 fi 40446 fi 40447 40448 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40449 if test "x$test_cygdrive_prefix" = x; then 40450 # As a simple fix, exclude /usr/bin since it's not a real path. 40451 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40452 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40453 # a path prefixed by /cygdrive for fixpath to work. 40454 new_path="$CYGWIN_ROOT_PATH$input_path" 40455 fi 40456 fi 40457 40458 # remove trailing .exe if any 40459 new_path="${new_path/%.exe/}" 40460 40461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40462 40463 # First separate the path from the arguments. This will split at the first 40464 # space. 40465 complete="$NM" 40466 path="${complete%% *}" 40467 tmp="$complete EOL" 40468 arguments="${tmp#* }" 40469 40470 # Input might be given as Windows format, start by converting to 40471 # unix format. 40472 new_path="$path" 40473 40474 windows_path="$new_path" 40475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40476 unix_path=`$CYGPATH -u "$windows_path"` 40477 new_path="$unix_path" 40478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40479 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40480 new_path="$unix_path" 40481 fi 40482 40483 40484 # Now try to locate executable using which 40485 new_path=`$WHICH "$new_path" 2> /dev/null` 40486 40487 if test "x$new_path" = x; then 40488 # Oops. Which didn't find the executable. 40489 # The splitting of arguments from the executable at a space might have been incorrect, 40490 # since paths with space are more likely in Windows. Give it another try with the whole 40491 # argument. 40492 path="$complete" 40493 arguments="EOL" 40494 new_path="$path" 40495 40496 windows_path="$new_path" 40497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40498 unix_path=`$CYGPATH -u "$windows_path"` 40499 new_path="$unix_path" 40500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40501 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40502 new_path="$unix_path" 40503 fi 40504 40505 40506 new_path=`$WHICH "$new_path" 2> /dev/null` 40507 # bat and cmd files are not always considered executable in MSYS causing which 40508 # to not find them 40509 if test "x$new_path" = x \ 40510 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40511 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40512 new_path="$path" 40513 40514 windows_path="$new_path" 40515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40516 unix_path=`$CYGPATH -u "$windows_path"` 40517 new_path="$unix_path" 40518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40519 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40520 new_path="$unix_path" 40521 fi 40522 40523 fi 40524 40525 if test "x$new_path" = x; then 40526 # It's still not found. Now this is an unrecoverable error. 40527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40528 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40529 has_space=`$ECHO "$complete" | $GREP " "` 40530 if test "x$has_space" != x; then 40531 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40532 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40533 fi 40534 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40535 fi 40536 fi 40537 40538 # Now new_path has a complete unix path to the binary 40539 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40540 # Keep paths in /bin as-is, but remove trailing .exe if any 40541 new_path="${new_path/%.exe/}" 40542 # Do not save /bin paths to all_fixpath_prefixes! 40543 else 40544 # Not in mixed or Windows style, start by that. 40545 new_path=`cmd //c echo $new_path` 40546 40547 input_path="$new_path" 40548 # Check if we need to convert this using DOS-style short mode. If the path 40549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40550 # take no chances and rewrite it. 40551 # Note: m4 eats our [], so we need to use [ and ] instead. 40552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40553 if test "x$has_forbidden_chars" != x; then 40554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40555 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40556 fi 40557 40558 # Output is in $new_path 40559 40560 windows_path="$new_path" 40561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40562 unix_path=`$CYGPATH -u "$windows_path"` 40563 new_path="$unix_path" 40564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40565 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40566 new_path="$unix_path" 40567 fi 40568 40569 # remove trailing .exe if any 40570 new_path="${new_path/%.exe/}" 40571 40572 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40573 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40574 fi 40575 40576 else 40577 # We're on a unix platform. Hooray! :) 40578 # First separate the path from the arguments. This will split at the first 40579 # space. 40580 complete="$NM" 40581 path="${complete%% *}" 40582 tmp="$complete EOL" 40583 arguments="${tmp#* }" 40584 40585 # Cannot rely on the command "which" here since it doesn't always work. 40586 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40587 if test -z "$is_absolute_path"; then 40588 # Path to executable is not absolute. Find it. 40589 IFS_save="$IFS" 40590 IFS=: 40591 for p in $PATH; do 40592 if test -f "$p/$path" && test -x "$p/$path"; then 40593 new_path="$p/$path" 40594 break 40595 fi 40596 done 40597 IFS="$IFS_save" 40598 else 40599 # This is an absolute path, we can use it without further modifications. 40600 new_path="$path" 40601 fi 40602 40603 if test "x$new_path" = x; then 40604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40605 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40606 has_space=`$ECHO "$complete" | $GREP " "` 40607 if test "x$has_space" != x; then 40608 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40609 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40610 fi 40611 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40612 fi 40613 fi 40614 40615 # Now join together the path and the arguments once again 40616 if test "x$arguments" != xEOL; then 40617 new_complete="$new_path ${arguments% *}" 40618 else 40619 new_complete="$new_path" 40620 fi 40621 40622 if test "x$complete" != "x$new_complete"; then 40623 NM="$new_complete" 40624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 40625 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 40626 fi 40627 fi 40628 40629 40630 40631 # Publish this variable in the help. 40632 40633 40634 if [ -z "${GNM+x}" ]; then 40635 # The variable is not set by user, try to locate tool using the code snippet 40636 for ac_prog in gnm 40637 do 40638 # Extract the first word of "$ac_prog", so it can be a program name with args. 40639 set dummy $ac_prog; ac_word=$2 40640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40641 $as_echo_n "checking for $ac_word... " >&6; } 40642 if ${ac_cv_path_GNM+:} false; then : 40643 $as_echo_n "(cached) " >&6 40644 else 40645 case $GNM in 40646 [\\/]* | ?:[\\/]*) 40647 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40648 ;; 40649 *) 40650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40651 for as_dir in $PATH 40652 do 40653 IFS=$as_save_IFS 40654 test -z "$as_dir" && as_dir=. 40655 for ac_exec_ext in '' $ac_executable_extensions; do 40656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40657 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40659 break 2 40660 fi 40661 done 40662 done 40663 IFS=$as_save_IFS 40664 40665 ;; 40666 esac 40667 fi 40668 GNM=$ac_cv_path_GNM 40669 if test -n "$GNM"; then 40670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40671 $as_echo "$GNM" >&6; } 40672 else 40673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40674 $as_echo "no" >&6; } 40675 fi 40676 40677 40678 test -n "$GNM" && break 40679 done 40680 40681 else 40682 # The variable is set, but is it from the command line or the environment? 40683 40684 # Try to remove the string !GNM! from our list. 40685 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 40686 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40687 # If it failed, the variable was not from the command line. Ignore it, 40688 # but warn the user (except for BASH, which is always set by the calling BASH). 40689 if test "xGNM" != xBASH; then 40690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 40691 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 40692 fi 40693 # Try to locate tool using the code snippet 40694 for ac_prog in gnm 40695 do 40696 # Extract the first word of "$ac_prog", so it can be a program name with args. 40697 set dummy $ac_prog; ac_word=$2 40698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40699 $as_echo_n "checking for $ac_word... " >&6; } 40700 if ${ac_cv_path_GNM+:} false; then : 40701 $as_echo_n "(cached) " >&6 40702 else 40703 case $GNM in 40704 [\\/]* | ?:[\\/]*) 40705 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40706 ;; 40707 *) 40708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40709 for as_dir in $PATH 40710 do 40711 IFS=$as_save_IFS 40712 test -z "$as_dir" && as_dir=. 40713 for ac_exec_ext in '' $ac_executable_extensions; do 40714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40715 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40717 break 2 40718 fi 40719 done 40720 done 40721 IFS=$as_save_IFS 40722 40723 ;; 40724 esac 40725 fi 40726 GNM=$ac_cv_path_GNM 40727 if test -n "$GNM"; then 40728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40729 $as_echo "$GNM" >&6; } 40730 else 40731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40732 $as_echo "no" >&6; } 40733 fi 40734 40735 40736 test -n "$GNM" && break 40737 done 40738 40739 else 40740 # If it succeeded, then it was overridden by the user. We will use it 40741 # for the tool. 40742 40743 # First remove it from the list of overridden variables, so we can test 40744 # for unknown variables in the end. 40745 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40746 40747 # Check if we try to supply an empty value 40748 if test "x$GNM" = x; then 40749 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 40750 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 40751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40752 $as_echo_n "checking for GNM... " >&6; } 40753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40754 $as_echo "disabled" >&6; } 40755 else 40756 # Check if the provided tool contains a complete path. 40757 tool_specified="$GNM" 40758 tool_basename="${tool_specified##*/}" 40759 if test "x$tool_basename" = "x$tool_specified"; then 40760 # A command without a complete path is provided, search $PATH. 40761 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 40762 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 40763 # Extract the first word of "$tool_basename", so it can be a program name with args. 40764 set dummy $tool_basename; ac_word=$2 40765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40766 $as_echo_n "checking for $ac_word... " >&6; } 40767 if ${ac_cv_path_GNM+:} false; then : 40768 $as_echo_n "(cached) " >&6 40769 else 40770 case $GNM in 40771 [\\/]* | ?:[\\/]*) 40772 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40773 ;; 40774 *) 40775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40776 for as_dir in $PATH 40777 do 40778 IFS=$as_save_IFS 40779 test -z "$as_dir" && as_dir=. 40780 for ac_exec_ext in '' $ac_executable_extensions; do 40781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40782 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40784 break 2 40785 fi 40786 done 40787 done 40788 IFS=$as_save_IFS 40789 40790 ;; 40791 esac 40792 fi 40793 GNM=$ac_cv_path_GNM 40794 if test -n "$GNM"; then 40795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40796 $as_echo "$GNM" >&6; } 40797 else 40798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40799 $as_echo "no" >&6; } 40800 fi 40801 40802 40803 if test "x$GNM" = x; then 40804 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40805 fi 40806 else 40807 # Otherwise we believe it is a complete path. Use it as it is. 40808 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 40809 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 40810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40811 $as_echo_n "checking for GNM... " >&6; } 40812 if test ! -x "$tool_specified"; then 40813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40814 $as_echo "not found" >&6; } 40815 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 40816 fi 40817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40818 $as_echo "$tool_specified" >&6; } 40819 fi 40820 fi 40821 fi 40822 40823 fi 40824 40825 40826 40827 # Only process if variable expands to non-empty 40828 40829 if test "x$GNM" != x; then 40830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40831 40832 # First separate the path from the arguments. This will split at the first 40833 # space. 40834 complete="$GNM" 40835 path="${complete%% *}" 40836 tmp="$complete EOL" 40837 arguments="${tmp#* }" 40838 40839 # Input might be given as Windows format, start by converting to 40840 # unix format. 40841 new_path=`$CYGPATH -u "$path"` 40842 40843 # Now try to locate executable using which 40844 new_path=`$WHICH "$new_path" 2> /dev/null` 40845 # bat and cmd files are not always considered executable in cygwin causing which 40846 # to not find them 40847 if test "x$new_path" = x \ 40848 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40849 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40850 new_path=`$CYGPATH -u "$path"` 40851 fi 40852 if test "x$new_path" = x; then 40853 # Oops. Which didn't find the executable. 40854 # The splitting of arguments from the executable at a space might have been incorrect, 40855 # since paths with space are more likely in Windows. Give it another try with the whole 40856 # argument. 40857 path="$complete" 40858 arguments="EOL" 40859 new_path=`$CYGPATH -u "$path"` 40860 new_path=`$WHICH "$new_path" 2> /dev/null` 40861 # bat and cmd files are not always considered executable in cygwin causing which 40862 # to not find them 40863 if test "x$new_path" = x \ 40864 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40865 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40866 new_path=`$CYGPATH -u "$path"` 40867 fi 40868 if test "x$new_path" = x; then 40869 # It's still not found. Now this is an unrecoverable error. 40870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40871 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40872 has_space=`$ECHO "$complete" | $GREP " "` 40873 if test "x$has_space" != x; then 40874 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40875 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40876 fi 40877 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40878 fi 40879 fi 40880 40881 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40882 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40883 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40884 # "foo.exe" is OK but "foo" is an error. 40885 # 40886 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40887 # It is also a way to make sure we got the proper file name for the real test later on. 40888 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40889 if test "x$test_shortpath" = x; then 40890 # Short path failed, file does not exist as specified. 40891 # Try adding .exe or .cmd 40892 if test -f "${new_path}.exe"; then 40893 input_to_shortpath="${new_path}.exe" 40894 elif test -f "${new_path}.cmd"; then 40895 input_to_shortpath="${new_path}.cmd" 40896 else 40897 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 40898 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 40899 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40900 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40901 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40902 fi 40903 else 40904 input_to_shortpath="$new_path" 40905 fi 40906 40907 # Call helper function which possibly converts this using DOS-style short mode. 40908 # If so, the updated path is stored in $new_path. 40909 new_path="$input_to_shortpath" 40910 40911 input_path="$input_to_shortpath" 40912 # Check if we need to convert this using DOS-style short mode. If the path 40913 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40914 # take no chances and rewrite it. 40915 # Note: m4 eats our [], so we need to use [ and ] instead. 40916 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40917 if test "x$has_forbidden_chars" != x; then 40918 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40919 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40920 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40921 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40922 # Going to short mode and back again did indeed matter. Since short mode is 40923 # case insensitive, let's make it lowercase to improve readability. 40924 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40925 # Now convert it back to Unix-style (cygpath) 40926 input_path=`$CYGPATH -u "$shortmode_path"` 40927 new_path="$input_path" 40928 fi 40929 fi 40930 40931 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40932 if test "x$test_cygdrive_prefix" = x; then 40933 # As a simple fix, exclude /usr/bin since it's not a real path. 40934 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40935 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40936 # a path prefixed by /cygdrive for fixpath to work. 40937 new_path="$CYGWIN_ROOT_PATH$input_path" 40938 fi 40939 fi 40940 40941 # remove trailing .exe if any 40942 new_path="${new_path/%.exe/}" 40943 40944 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40945 40946 # First separate the path from the arguments. This will split at the first 40947 # space. 40948 complete="$GNM" 40949 path="${complete%% *}" 40950 tmp="$complete EOL" 40951 arguments="${tmp#* }" 40952 40953 # Input might be given as Windows format, start by converting to 40954 # unix format. 40955 new_path="$path" 40956 40957 windows_path="$new_path" 40958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40959 unix_path=`$CYGPATH -u "$windows_path"` 40960 new_path="$unix_path" 40961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40962 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40963 new_path="$unix_path" 40964 fi 40965 40966 40967 # Now try to locate executable using which 40968 new_path=`$WHICH "$new_path" 2> /dev/null` 40969 40970 if test "x$new_path" = x; then 40971 # Oops. Which didn't find the executable. 40972 # The splitting of arguments from the executable at a space might have been incorrect, 40973 # since paths with space are more likely in Windows. Give it another try with the whole 40974 # argument. 40975 path="$complete" 40976 arguments="EOL" 40977 new_path="$path" 40978 40979 windows_path="$new_path" 40980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40981 unix_path=`$CYGPATH -u "$windows_path"` 40982 new_path="$unix_path" 40983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40985 new_path="$unix_path" 40986 fi 40987 40988 40989 new_path=`$WHICH "$new_path" 2> /dev/null` 40990 # bat and cmd files are not always considered executable in MSYS causing which 40991 # to not find them 40992 if test "x$new_path" = x \ 40993 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40994 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40995 new_path="$path" 40996 40997 windows_path="$new_path" 40998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40999 unix_path=`$CYGPATH -u "$windows_path"` 41000 new_path="$unix_path" 41001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41002 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41003 new_path="$unix_path" 41004 fi 41005 41006 fi 41007 41008 if test "x$new_path" = x; then 41009 # It's still not found. Now this is an unrecoverable error. 41010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41011 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41012 has_space=`$ECHO "$complete" | $GREP " "` 41013 if test "x$has_space" != x; then 41014 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41015 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41016 fi 41017 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41018 fi 41019 fi 41020 41021 # Now new_path has a complete unix path to the binary 41022 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41023 # Keep paths in /bin as-is, but remove trailing .exe if any 41024 new_path="${new_path/%.exe/}" 41025 # Do not save /bin paths to all_fixpath_prefixes! 41026 else 41027 # Not in mixed or Windows style, start by that. 41028 new_path=`cmd //c echo $new_path` 41029 41030 input_path="$new_path" 41031 # Check if we need to convert this using DOS-style short mode. If the path 41032 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41033 # take no chances and rewrite it. 41034 # Note: m4 eats our [], so we need to use [ and ] instead. 41035 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41036 if test "x$has_forbidden_chars" != x; then 41037 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41038 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41039 fi 41040 41041 # Output is in $new_path 41042 41043 windows_path="$new_path" 41044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41045 unix_path=`$CYGPATH -u "$windows_path"` 41046 new_path="$unix_path" 41047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41048 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41049 new_path="$unix_path" 41050 fi 41051 41052 # remove trailing .exe if any 41053 new_path="${new_path/%.exe/}" 41054 41055 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41056 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41057 fi 41058 41059 else 41060 # We're on a unix platform. Hooray! :) 41061 # First separate the path from the arguments. This will split at the first 41062 # space. 41063 complete="$GNM" 41064 path="${complete%% *}" 41065 tmp="$complete EOL" 41066 arguments="${tmp#* }" 41067 41068 # Cannot rely on the command "which" here since it doesn't always work. 41069 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41070 if test -z "$is_absolute_path"; then 41071 # Path to executable is not absolute. Find it. 41072 IFS_save="$IFS" 41073 IFS=: 41074 for p in $PATH; do 41075 if test -f "$p/$path" && test -x "$p/$path"; then 41076 new_path="$p/$path" 41077 break 41078 fi 41079 done 41080 IFS="$IFS_save" 41081 else 41082 # This is an absolute path, we can use it without further modifications. 41083 new_path="$path" 41084 fi 41085 41086 if test "x$new_path" = x; then 41087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41088 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41089 has_space=`$ECHO "$complete" | $GREP " "` 41090 if test "x$has_space" != x; then 41091 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41092 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41093 fi 41094 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41095 fi 41096 fi 41097 41098 # Now join together the path and the arguments once again 41099 if test "x$arguments" != xEOL; then 41100 new_complete="$new_path ${arguments% *}" 41101 else 41102 new_complete="$new_path" 41103 fi 41104 41105 if test "x$complete" != "x$new_complete"; then 41106 GNM="$new_complete" 41107 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 41108 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 41109 fi 41110 fi 41111 41112 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 41113 # FIXME: we should unify this with the solaris case above. 41114 41115 41116 # Publish this variable in the help. 41117 41118 41119 if [ -z "${STRIP+x}" ]; then 41120 # The variable is not set by user, try to locate tool using the code snippet 41121 if test -n "$ac_tool_prefix"; then 41122 for ac_prog in strip 41123 do 41124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41127 $as_echo_n "checking for $ac_word... " >&6; } 41128 if ${ac_cv_prog_STRIP+:} false; then : 41129 $as_echo_n "(cached) " >&6 41130 else 41131 if test -n "$STRIP"; then 41132 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41133 else 41134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41135 for as_dir in $PATH 41136 do 41137 IFS=$as_save_IFS 41138 test -z "$as_dir" && as_dir=. 41139 for ac_exec_ext in '' $ac_executable_extensions; do 41140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41141 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41143 break 2 41144 fi 41145 done 41146 done 41147 IFS=$as_save_IFS 41148 41149 fi 41150 fi 41151 STRIP=$ac_cv_prog_STRIP 41152 if test -n "$STRIP"; then 41153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41154 $as_echo "$STRIP" >&6; } 41155 else 41156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41157 $as_echo "no" >&6; } 41158 fi 41159 41160 41161 test -n "$STRIP" && break 41162 done 41163 fi 41164 if test -z "$STRIP"; then 41165 ac_ct_STRIP=$STRIP 41166 for ac_prog in strip 41167 do 41168 # Extract the first word of "$ac_prog", so it can be a program name with args. 41169 set dummy $ac_prog; ac_word=$2 41170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41171 $as_echo_n "checking for $ac_word... " >&6; } 41172 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41173 $as_echo_n "(cached) " >&6 41174 else 41175 if test -n "$ac_ct_STRIP"; then 41176 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41177 else 41178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41179 for as_dir in $PATH 41180 do 41181 IFS=$as_save_IFS 41182 test -z "$as_dir" && as_dir=. 41183 for ac_exec_ext in '' $ac_executable_extensions; do 41184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41185 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41187 break 2 41188 fi 41189 done 41190 done 41191 IFS=$as_save_IFS 41192 41193 fi 41194 fi 41195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41196 if test -n "$ac_ct_STRIP"; then 41197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41198 $as_echo "$ac_ct_STRIP" >&6; } 41199 else 41200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41201 $as_echo "no" >&6; } 41202 fi 41203 41204 41205 test -n "$ac_ct_STRIP" && break 41206 done 41207 41208 if test "x$ac_ct_STRIP" = x; then 41209 STRIP="" 41210 else 41211 case $cross_compiling:$ac_tool_warned in 41212 yes:) 41213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41215 ac_tool_warned=yes ;; 41216 esac 41217 STRIP=$ac_ct_STRIP 41218 fi 41219 fi 41220 41221 else 41222 # The variable is set, but is it from the command line or the environment? 41223 41224 # Try to remove the string !STRIP! from our list. 41225 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 41226 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41227 # If it failed, the variable was not from the command line. Ignore it, 41228 # but warn the user (except for BASH, which is always set by the calling BASH). 41229 if test "xSTRIP" != xBASH; then 41230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 41231 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 41232 fi 41233 # Try to locate tool using the code snippet 41234 if test -n "$ac_tool_prefix"; then 41235 for ac_prog in strip 41236 do 41237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41240 $as_echo_n "checking for $ac_word... " >&6; } 41241 if ${ac_cv_prog_STRIP+:} false; then : 41242 $as_echo_n "(cached) " >&6 41243 else 41244 if test -n "$STRIP"; then 41245 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41246 else 41247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41248 for as_dir in $PATH 41249 do 41250 IFS=$as_save_IFS 41251 test -z "$as_dir" && as_dir=. 41252 for ac_exec_ext in '' $ac_executable_extensions; do 41253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41254 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41256 break 2 41257 fi 41258 done 41259 done 41260 IFS=$as_save_IFS 41261 41262 fi 41263 fi 41264 STRIP=$ac_cv_prog_STRIP 41265 if test -n "$STRIP"; then 41266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41267 $as_echo "$STRIP" >&6; } 41268 else 41269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41270 $as_echo "no" >&6; } 41271 fi 41272 41273 41274 test -n "$STRIP" && break 41275 done 41276 fi 41277 if test -z "$STRIP"; then 41278 ac_ct_STRIP=$STRIP 41279 for ac_prog in strip 41280 do 41281 # Extract the first word of "$ac_prog", so it can be a program name with args. 41282 set dummy $ac_prog; ac_word=$2 41283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41284 $as_echo_n "checking for $ac_word... " >&6; } 41285 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41286 $as_echo_n "(cached) " >&6 41287 else 41288 if test -n "$ac_ct_STRIP"; then 41289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41290 else 41291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41292 for as_dir in $PATH 41293 do 41294 IFS=$as_save_IFS 41295 test -z "$as_dir" && as_dir=. 41296 for ac_exec_ext in '' $ac_executable_extensions; do 41297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41298 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41300 break 2 41301 fi 41302 done 41303 done 41304 IFS=$as_save_IFS 41305 41306 fi 41307 fi 41308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41309 if test -n "$ac_ct_STRIP"; then 41310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41311 $as_echo "$ac_ct_STRIP" >&6; } 41312 else 41313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41314 $as_echo "no" >&6; } 41315 fi 41316 41317 41318 test -n "$ac_ct_STRIP" && break 41319 done 41320 41321 if test "x$ac_ct_STRIP" = x; then 41322 STRIP="" 41323 else 41324 case $cross_compiling:$ac_tool_warned in 41325 yes:) 41326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41328 ac_tool_warned=yes ;; 41329 esac 41330 STRIP=$ac_ct_STRIP 41331 fi 41332 fi 41333 41334 else 41335 # If it succeeded, then it was overridden by the user. We will use it 41336 # for the tool. 41337 41338 # First remove it from the list of overridden variables, so we can test 41339 # for unknown variables in the end. 41340 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41341 41342 # Check if we try to supply an empty value 41343 if test "x$STRIP" = x; then 41344 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 41345 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 41346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41347 $as_echo_n "checking for STRIP... " >&6; } 41348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41349 $as_echo "disabled" >&6; } 41350 else 41351 # Check if the provided tool contains a complete path. 41352 tool_specified="$STRIP" 41353 tool_basename="${tool_specified##*/}" 41354 if test "x$tool_basename" = "x$tool_specified"; then 41355 # A command without a complete path is provided, search $PATH. 41356 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 41357 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 41358 # Extract the first word of "$tool_basename", so it can be a program name with args. 41359 set dummy $tool_basename; ac_word=$2 41360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41361 $as_echo_n "checking for $ac_word... " >&6; } 41362 if ${ac_cv_path_STRIP+:} false; then : 41363 $as_echo_n "(cached) " >&6 41364 else 41365 case $STRIP in 41366 [\\/]* | ?:[\\/]*) 41367 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41368 ;; 41369 *) 41370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41371 for as_dir in $PATH 41372 do 41373 IFS=$as_save_IFS 41374 test -z "$as_dir" && as_dir=. 41375 for ac_exec_ext in '' $ac_executable_extensions; do 41376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41377 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41379 break 2 41380 fi 41381 done 41382 done 41383 IFS=$as_save_IFS 41384 41385 ;; 41386 esac 41387 fi 41388 STRIP=$ac_cv_path_STRIP 41389 if test -n "$STRIP"; then 41390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41391 $as_echo "$STRIP" >&6; } 41392 else 41393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41394 $as_echo "no" >&6; } 41395 fi 41396 41397 41398 if test "x$STRIP" = x; then 41399 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41400 fi 41401 else 41402 # Otherwise we believe it is a complete path. Use it as it is. 41403 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 41404 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 41405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41406 $as_echo_n "checking for STRIP... " >&6; } 41407 if test ! -x "$tool_specified"; then 41408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41409 $as_echo "not found" >&6; } 41410 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 41411 fi 41412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41413 $as_echo "$tool_specified" >&6; } 41414 fi 41415 fi 41416 fi 41417 41418 fi 41419 41420 41421 41422 # Only process if variable expands to non-empty 41423 41424 if test "x$STRIP" != x; then 41425 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41426 41427 # First separate the path from the arguments. This will split at the first 41428 # space. 41429 complete="$STRIP" 41430 path="${complete%% *}" 41431 tmp="$complete EOL" 41432 arguments="${tmp#* }" 41433 41434 # Input might be given as Windows format, start by converting to 41435 # unix format. 41436 new_path=`$CYGPATH -u "$path"` 41437 41438 # Now try to locate executable using which 41439 new_path=`$WHICH "$new_path" 2> /dev/null` 41440 # bat and cmd files are not always considered executable in cygwin causing which 41441 # to not find them 41442 if test "x$new_path" = x \ 41443 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41444 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41445 new_path=`$CYGPATH -u "$path"` 41446 fi 41447 if test "x$new_path" = x; then 41448 # Oops. Which didn't find the executable. 41449 # The splitting of arguments from the executable at a space might have been incorrect, 41450 # since paths with space are more likely in Windows. Give it another try with the whole 41451 # argument. 41452 path="$complete" 41453 arguments="EOL" 41454 new_path=`$CYGPATH -u "$path"` 41455 new_path=`$WHICH "$new_path" 2> /dev/null` 41456 # bat and cmd files are not always considered executable in cygwin causing which 41457 # to not find them 41458 if test "x$new_path" = x \ 41459 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41460 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41461 new_path=`$CYGPATH -u "$path"` 41462 fi 41463 if test "x$new_path" = x; then 41464 # It's still not found. Now this is an unrecoverable error. 41465 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41466 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41467 has_space=`$ECHO "$complete" | $GREP " "` 41468 if test "x$has_space" != x; then 41469 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41470 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41471 fi 41472 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41473 fi 41474 fi 41475 41476 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41477 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41478 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41479 # "foo.exe" is OK but "foo" is an error. 41480 # 41481 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41482 # It is also a way to make sure we got the proper file name for the real test later on. 41483 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41484 if test "x$test_shortpath" = x; then 41485 # Short path failed, file does not exist as specified. 41486 # Try adding .exe or .cmd 41487 if test -f "${new_path}.exe"; then 41488 input_to_shortpath="${new_path}.exe" 41489 elif test -f "${new_path}.cmd"; then 41490 input_to_shortpath="${new_path}.cmd" 41491 else 41492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 41493 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 41494 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41495 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41496 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41497 fi 41498 else 41499 input_to_shortpath="$new_path" 41500 fi 41501 41502 # Call helper function which possibly converts this using DOS-style short mode. 41503 # If so, the updated path is stored in $new_path. 41504 new_path="$input_to_shortpath" 41505 41506 input_path="$input_to_shortpath" 41507 # Check if we need to convert this using DOS-style short mode. If the path 41508 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41509 # take no chances and rewrite it. 41510 # Note: m4 eats our [], so we need to use [ and ] instead. 41511 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41512 if test "x$has_forbidden_chars" != x; then 41513 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41514 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41515 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41516 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41517 # Going to short mode and back again did indeed matter. Since short mode is 41518 # case insensitive, let's make it lowercase to improve readability. 41519 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41520 # Now convert it back to Unix-style (cygpath) 41521 input_path=`$CYGPATH -u "$shortmode_path"` 41522 new_path="$input_path" 41523 fi 41524 fi 41525 41526 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41527 if test "x$test_cygdrive_prefix" = x; then 41528 # As a simple fix, exclude /usr/bin since it's not a real path. 41529 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41530 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41531 # a path prefixed by /cygdrive for fixpath to work. 41532 new_path="$CYGWIN_ROOT_PATH$input_path" 41533 fi 41534 fi 41535 41536 # remove trailing .exe if any 41537 new_path="${new_path/%.exe/}" 41538 41539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41540 41541 # First separate the path from the arguments. This will split at the first 41542 # space. 41543 complete="$STRIP" 41544 path="${complete%% *}" 41545 tmp="$complete EOL" 41546 arguments="${tmp#* }" 41547 41548 # Input might be given as Windows format, start by converting to 41549 # unix format. 41550 new_path="$path" 41551 41552 windows_path="$new_path" 41553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41554 unix_path=`$CYGPATH -u "$windows_path"` 41555 new_path="$unix_path" 41556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41557 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41558 new_path="$unix_path" 41559 fi 41560 41561 41562 # Now try to locate executable using which 41563 new_path=`$WHICH "$new_path" 2> /dev/null` 41564 41565 if test "x$new_path" = x; then 41566 # Oops. Which didn't find the executable. 41567 # The splitting of arguments from the executable at a space might have been incorrect, 41568 # since paths with space are more likely in Windows. Give it another try with the whole 41569 # argument. 41570 path="$complete" 41571 arguments="EOL" 41572 new_path="$path" 41573 41574 windows_path="$new_path" 41575 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41576 unix_path=`$CYGPATH -u "$windows_path"` 41577 new_path="$unix_path" 41578 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41579 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41580 new_path="$unix_path" 41581 fi 41582 41583 41584 new_path=`$WHICH "$new_path" 2> /dev/null` 41585 # bat and cmd files are not always considered executable in MSYS causing which 41586 # to not find them 41587 if test "x$new_path" = x \ 41588 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41589 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41590 new_path="$path" 41591 41592 windows_path="$new_path" 41593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41594 unix_path=`$CYGPATH -u "$windows_path"` 41595 new_path="$unix_path" 41596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41598 new_path="$unix_path" 41599 fi 41600 41601 fi 41602 41603 if test "x$new_path" = x; then 41604 # It's still not found. Now this is an unrecoverable error. 41605 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41606 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41607 has_space=`$ECHO "$complete" | $GREP " "` 41608 if test "x$has_space" != x; then 41609 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41610 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41611 fi 41612 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41613 fi 41614 fi 41615 41616 # Now new_path has a complete unix path to the binary 41617 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41618 # Keep paths in /bin as-is, but remove trailing .exe if any 41619 new_path="${new_path/%.exe/}" 41620 # Do not save /bin paths to all_fixpath_prefixes! 41621 else 41622 # Not in mixed or Windows style, start by that. 41623 new_path=`cmd //c echo $new_path` 41624 41625 input_path="$new_path" 41626 # Check if we need to convert this using DOS-style short mode. If the path 41627 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41628 # take no chances and rewrite it. 41629 # Note: m4 eats our [], so we need to use [ and ] instead. 41630 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41631 if test "x$has_forbidden_chars" != x; then 41632 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41633 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41634 fi 41635 41636 # Output is in $new_path 41637 41638 windows_path="$new_path" 41639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41640 unix_path=`$CYGPATH -u "$windows_path"` 41641 new_path="$unix_path" 41642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41643 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41644 new_path="$unix_path" 41645 fi 41646 41647 # remove trailing .exe if any 41648 new_path="${new_path/%.exe/}" 41649 41650 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41651 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41652 fi 41653 41654 else 41655 # We're on a unix platform. Hooray! :) 41656 # First separate the path from the arguments. This will split at the first 41657 # space. 41658 complete="$STRIP" 41659 path="${complete%% *}" 41660 tmp="$complete EOL" 41661 arguments="${tmp#* }" 41662 41663 # Cannot rely on the command "which" here since it doesn't always work. 41664 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41665 if test -z "$is_absolute_path"; then 41666 # Path to executable is not absolute. Find it. 41667 IFS_save="$IFS" 41668 IFS=: 41669 for p in $PATH; do 41670 if test -f "$p/$path" && test -x "$p/$path"; then 41671 new_path="$p/$path" 41672 break 41673 fi 41674 done 41675 IFS="$IFS_save" 41676 else 41677 # This is an absolute path, we can use it without further modifications. 41678 new_path="$path" 41679 fi 41680 41681 if test "x$new_path" = x; then 41682 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41683 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41684 has_space=`$ECHO "$complete" | $GREP " "` 41685 if test "x$has_space" != x; then 41686 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41687 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41688 fi 41689 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41690 fi 41691 fi 41692 41693 # Now join together the path and the arguments once again 41694 if test "x$arguments" != xEOL; then 41695 new_complete="$new_path ${arguments% *}" 41696 else 41697 new_complete="$new_path" 41698 fi 41699 41700 if test "x$complete" != "x$new_complete"; then 41701 STRIP="$new_complete" 41702 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41703 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41704 fi 41705 fi 41706 41707 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41708 41709 41710 # Publish this variable in the help. 41711 41712 41713 if [ -z "${NM+x}" ]; then 41714 # The variable is not set by user, try to locate tool using the code snippet 41715 if test -n "$ac_tool_prefix"; then 41716 for ac_prog in nm gcc-nm 41717 do 41718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41721 $as_echo_n "checking for $ac_word... " >&6; } 41722 if ${ac_cv_prog_NM+:} false; then : 41723 $as_echo_n "(cached) " >&6 41724 else 41725 if test -n "$NM"; then 41726 ac_cv_prog_NM="$NM" # Let the user override the test. 41727 else 41728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41729 for as_dir in $PATH 41730 do 41731 IFS=$as_save_IFS 41732 test -z "$as_dir" && as_dir=. 41733 for ac_exec_ext in '' $ac_executable_extensions; do 41734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41735 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41737 break 2 41738 fi 41739 done 41740 done 41741 IFS=$as_save_IFS 41742 41743 fi 41744 fi 41745 NM=$ac_cv_prog_NM 41746 if test -n "$NM"; then 41747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41748 $as_echo "$NM" >&6; } 41749 else 41750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41751 $as_echo "no" >&6; } 41752 fi 41753 41754 41755 test -n "$NM" && break 41756 done 41757 fi 41758 if test -z "$NM"; then 41759 ac_ct_NM=$NM 41760 for ac_prog in nm gcc-nm 41761 do 41762 # Extract the first word of "$ac_prog", so it can be a program name with args. 41763 set dummy $ac_prog; ac_word=$2 41764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41765 $as_echo_n "checking for $ac_word... " >&6; } 41766 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41767 $as_echo_n "(cached) " >&6 41768 else 41769 if test -n "$ac_ct_NM"; then 41770 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41771 else 41772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41773 for as_dir in $PATH 41774 do 41775 IFS=$as_save_IFS 41776 test -z "$as_dir" && as_dir=. 41777 for ac_exec_ext in '' $ac_executable_extensions; do 41778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41779 ac_cv_prog_ac_ct_NM="$ac_prog" 41780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41781 break 2 41782 fi 41783 done 41784 done 41785 IFS=$as_save_IFS 41786 41787 fi 41788 fi 41789 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41790 if test -n "$ac_ct_NM"; then 41791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41792 $as_echo "$ac_ct_NM" >&6; } 41793 else 41794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41795 $as_echo "no" >&6; } 41796 fi 41797 41798 41799 test -n "$ac_ct_NM" && break 41800 done 41801 41802 if test "x$ac_ct_NM" = x; then 41803 NM="" 41804 else 41805 case $cross_compiling:$ac_tool_warned in 41806 yes:) 41807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41809 ac_tool_warned=yes ;; 41810 esac 41811 NM=$ac_ct_NM 41812 fi 41813 fi 41814 41815 else 41816 # The variable is set, but is it from the command line or the environment? 41817 41818 # Try to remove the string !NM! from our list. 41819 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41820 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41821 # If it failed, the variable was not from the command line. Ignore it, 41822 # but warn the user (except for BASH, which is always set by the calling BASH). 41823 if test "xNM" != xBASH; then 41824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41825 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41826 fi 41827 # Try to locate tool using the code snippet 41828 if test -n "$ac_tool_prefix"; then 41829 for ac_prog in nm gcc-nm 41830 do 41831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41834 $as_echo_n "checking for $ac_word... " >&6; } 41835 if ${ac_cv_prog_NM+:} false; then : 41836 $as_echo_n "(cached) " >&6 41837 else 41838 if test -n "$NM"; then 41839 ac_cv_prog_NM="$NM" # Let the user override the test. 41840 else 41841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41842 for as_dir in $PATH 41843 do 41844 IFS=$as_save_IFS 41845 test -z "$as_dir" && as_dir=. 41846 for ac_exec_ext in '' $ac_executable_extensions; do 41847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41848 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41850 break 2 41851 fi 41852 done 41853 done 41854 IFS=$as_save_IFS 41855 41856 fi 41857 fi 41858 NM=$ac_cv_prog_NM 41859 if test -n "$NM"; then 41860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41861 $as_echo "$NM" >&6; } 41862 else 41863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41864 $as_echo "no" >&6; } 41865 fi 41866 41867 41868 test -n "$NM" && break 41869 done 41870 fi 41871 if test -z "$NM"; then 41872 ac_ct_NM=$NM 41873 for ac_prog in nm gcc-nm 41874 do 41875 # Extract the first word of "$ac_prog", so it can be a program name with args. 41876 set dummy $ac_prog; ac_word=$2 41877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41878 $as_echo_n "checking for $ac_word... " >&6; } 41879 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41880 $as_echo_n "(cached) " >&6 41881 else 41882 if test -n "$ac_ct_NM"; then 41883 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41884 else 41885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41886 for as_dir in $PATH 41887 do 41888 IFS=$as_save_IFS 41889 test -z "$as_dir" && as_dir=. 41890 for ac_exec_ext in '' $ac_executable_extensions; do 41891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41892 ac_cv_prog_ac_ct_NM="$ac_prog" 41893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41894 break 2 41895 fi 41896 done 41897 done 41898 IFS=$as_save_IFS 41899 41900 fi 41901 fi 41902 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41903 if test -n "$ac_ct_NM"; then 41904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41905 $as_echo "$ac_ct_NM" >&6; } 41906 else 41907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41908 $as_echo "no" >&6; } 41909 fi 41910 41911 41912 test -n "$ac_ct_NM" && break 41913 done 41914 41915 if test "x$ac_ct_NM" = x; then 41916 NM="" 41917 else 41918 case $cross_compiling:$ac_tool_warned in 41919 yes:) 41920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41922 ac_tool_warned=yes ;; 41923 esac 41924 NM=$ac_ct_NM 41925 fi 41926 fi 41927 41928 else 41929 # If it succeeded, then it was overridden by the user. We will use it 41930 # for the tool. 41931 41932 # First remove it from the list of overridden variables, so we can test 41933 # for unknown variables in the end. 41934 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41935 41936 # Check if we try to supply an empty value 41937 if test "x$NM" = x; then 41938 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41939 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41941 $as_echo_n "checking for NM... " >&6; } 41942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41943 $as_echo "disabled" >&6; } 41944 else 41945 # Check if the provided tool contains a complete path. 41946 tool_specified="$NM" 41947 tool_basename="${tool_specified##*/}" 41948 if test "x$tool_basename" = "x$tool_specified"; then 41949 # A command without a complete path is provided, search $PATH. 41950 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41951 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41952 # Extract the first word of "$tool_basename", so it can be a program name with args. 41953 set dummy $tool_basename; ac_word=$2 41954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41955 $as_echo_n "checking for $ac_word... " >&6; } 41956 if ${ac_cv_path_NM+:} false; then : 41957 $as_echo_n "(cached) " >&6 41958 else 41959 case $NM in 41960 [\\/]* | ?:[\\/]*) 41961 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41962 ;; 41963 *) 41964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41965 for as_dir in $PATH 41966 do 41967 IFS=$as_save_IFS 41968 test -z "$as_dir" && as_dir=. 41969 for ac_exec_ext in '' $ac_executable_extensions; do 41970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41971 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41973 break 2 41974 fi 41975 done 41976 done 41977 IFS=$as_save_IFS 41978 41979 ;; 41980 esac 41981 fi 41982 NM=$ac_cv_path_NM 41983 if test -n "$NM"; then 41984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41985 $as_echo "$NM" >&6; } 41986 else 41987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41988 $as_echo "no" >&6; } 41989 fi 41990 41991 41992 if test "x$NM" = x; then 41993 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41994 fi 41995 else 41996 # Otherwise we believe it is a complete path. Use it as it is. 41997 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41998 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42000 $as_echo_n "checking for NM... " >&6; } 42001 if test ! -x "$tool_specified"; then 42002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42003 $as_echo "not found" >&6; } 42004 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42005 fi 42006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42007 $as_echo "$tool_specified" >&6; } 42008 fi 42009 fi 42010 fi 42011 42012 fi 42013 42014 42015 else 42016 42017 42018 # Publish this variable in the help. 42019 42020 42021 if [ -z "${NM+x}" ]; then 42022 # The variable is not set by user, try to locate tool using the code snippet 42023 if test -n "$ac_tool_prefix"; then 42024 for ac_prog in nm 42025 do 42026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42029 $as_echo_n "checking for $ac_word... " >&6; } 42030 if ${ac_cv_prog_NM+:} false; then : 42031 $as_echo_n "(cached) " >&6 42032 else 42033 if test -n "$NM"; then 42034 ac_cv_prog_NM="$NM" # Let the user override the test. 42035 else 42036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42037 for as_dir in $PATH 42038 do 42039 IFS=$as_save_IFS 42040 test -z "$as_dir" && as_dir=. 42041 for ac_exec_ext in '' $ac_executable_extensions; do 42042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42043 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42045 break 2 42046 fi 42047 done 42048 done 42049 IFS=$as_save_IFS 42050 42051 fi 42052 fi 42053 NM=$ac_cv_prog_NM 42054 if test -n "$NM"; then 42055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42056 $as_echo "$NM" >&6; } 42057 else 42058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42059 $as_echo "no" >&6; } 42060 fi 42061 42062 42063 test -n "$NM" && break 42064 done 42065 fi 42066 if test -z "$NM"; then 42067 ac_ct_NM=$NM 42068 for ac_prog in nm 42069 do 42070 # Extract the first word of "$ac_prog", so it can be a program name with args. 42071 set dummy $ac_prog; ac_word=$2 42072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42073 $as_echo_n "checking for $ac_word... " >&6; } 42074 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42075 $as_echo_n "(cached) " >&6 42076 else 42077 if test -n "$ac_ct_NM"; then 42078 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42079 else 42080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42081 for as_dir in $PATH 42082 do 42083 IFS=$as_save_IFS 42084 test -z "$as_dir" && as_dir=. 42085 for ac_exec_ext in '' $ac_executable_extensions; do 42086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42087 ac_cv_prog_ac_ct_NM="$ac_prog" 42088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42089 break 2 42090 fi 42091 done 42092 done 42093 IFS=$as_save_IFS 42094 42095 fi 42096 fi 42097 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42098 if test -n "$ac_ct_NM"; then 42099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42100 $as_echo "$ac_ct_NM" >&6; } 42101 else 42102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42103 $as_echo "no" >&6; } 42104 fi 42105 42106 42107 test -n "$ac_ct_NM" && break 42108 done 42109 42110 if test "x$ac_ct_NM" = x; then 42111 NM="" 42112 else 42113 case $cross_compiling:$ac_tool_warned in 42114 yes:) 42115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42117 ac_tool_warned=yes ;; 42118 esac 42119 NM=$ac_ct_NM 42120 fi 42121 fi 42122 42123 else 42124 # The variable is set, but is it from the command line or the environment? 42125 42126 # Try to remove the string !NM! from our list. 42127 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42128 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42129 # If it failed, the variable was not from the command line. Ignore it, 42130 # but warn the user (except for BASH, which is always set by the calling BASH). 42131 if test "xNM" != xBASH; then 42132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42133 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42134 fi 42135 # Try to locate tool using the code snippet 42136 if test -n "$ac_tool_prefix"; then 42137 for ac_prog in nm 42138 do 42139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42142 $as_echo_n "checking for $ac_word... " >&6; } 42143 if ${ac_cv_prog_NM+:} false; then : 42144 $as_echo_n "(cached) " >&6 42145 else 42146 if test -n "$NM"; then 42147 ac_cv_prog_NM="$NM" # Let the user override the test. 42148 else 42149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42150 for as_dir in $PATH 42151 do 42152 IFS=$as_save_IFS 42153 test -z "$as_dir" && as_dir=. 42154 for ac_exec_ext in '' $ac_executable_extensions; do 42155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42156 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42158 break 2 42159 fi 42160 done 42161 done 42162 IFS=$as_save_IFS 42163 42164 fi 42165 fi 42166 NM=$ac_cv_prog_NM 42167 if test -n "$NM"; then 42168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42169 $as_echo "$NM" >&6; } 42170 else 42171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42172 $as_echo "no" >&6; } 42173 fi 42174 42175 42176 test -n "$NM" && break 42177 done 42178 fi 42179 if test -z "$NM"; then 42180 ac_ct_NM=$NM 42181 for ac_prog in nm 42182 do 42183 # Extract the first word of "$ac_prog", so it can be a program name with args. 42184 set dummy $ac_prog; ac_word=$2 42185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42186 $as_echo_n "checking for $ac_word... " >&6; } 42187 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42188 $as_echo_n "(cached) " >&6 42189 else 42190 if test -n "$ac_ct_NM"; then 42191 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42192 else 42193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42194 for as_dir in $PATH 42195 do 42196 IFS=$as_save_IFS 42197 test -z "$as_dir" && as_dir=. 42198 for ac_exec_ext in '' $ac_executable_extensions; do 42199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42200 ac_cv_prog_ac_ct_NM="$ac_prog" 42201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42202 break 2 42203 fi 42204 done 42205 done 42206 IFS=$as_save_IFS 42207 42208 fi 42209 fi 42210 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42211 if test -n "$ac_ct_NM"; then 42212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42213 $as_echo "$ac_ct_NM" >&6; } 42214 else 42215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42216 $as_echo "no" >&6; } 42217 fi 42218 42219 42220 test -n "$ac_ct_NM" && break 42221 done 42222 42223 if test "x$ac_ct_NM" = x; then 42224 NM="" 42225 else 42226 case $cross_compiling:$ac_tool_warned in 42227 yes:) 42228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42230 ac_tool_warned=yes ;; 42231 esac 42232 NM=$ac_ct_NM 42233 fi 42234 fi 42235 42236 else 42237 # If it succeeded, then it was overridden by the user. We will use it 42238 # for the tool. 42239 42240 # First remove it from the list of overridden variables, so we can test 42241 # for unknown variables in the end. 42242 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42243 42244 # Check if we try to supply an empty value 42245 if test "x$NM" = x; then 42246 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42247 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42249 $as_echo_n "checking for NM... " >&6; } 42250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42251 $as_echo "disabled" >&6; } 42252 else 42253 # Check if the provided tool contains a complete path. 42254 tool_specified="$NM" 42255 tool_basename="${tool_specified##*/}" 42256 if test "x$tool_basename" = "x$tool_specified"; then 42257 # A command without a complete path is provided, search $PATH. 42258 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42259 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42260 # Extract the first word of "$tool_basename", so it can be a program name with args. 42261 set dummy $tool_basename; 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_path_NM+:} false; then : 42265 $as_echo_n "(cached) " >&6 42266 else 42267 case $NM in 42268 [\\/]* | ?:[\\/]*) 42269 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42270 ;; 42271 *) 42272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42273 for as_dir in $PATH 42274 do 42275 IFS=$as_save_IFS 42276 test -z "$as_dir" && as_dir=. 42277 for ac_exec_ext in '' $ac_executable_extensions; do 42278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42279 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42281 break 2 42282 fi 42283 done 42284 done 42285 IFS=$as_save_IFS 42286 42287 ;; 42288 esac 42289 fi 42290 NM=$ac_cv_path_NM 42291 if test -n "$NM"; then 42292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42293 $as_echo "$NM" >&6; } 42294 else 42295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42296 $as_echo "no" >&6; } 42297 fi 42298 42299 42300 if test "x$NM" = x; then 42301 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42302 fi 42303 else 42304 # Otherwise we believe it is a complete path. Use it as it is. 42305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42306 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42308 $as_echo_n "checking for NM... " >&6; } 42309 if test ! -x "$tool_specified"; then 42310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42311 $as_echo "not found" >&6; } 42312 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42313 fi 42314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42315 $as_echo "$tool_specified" >&6; } 42316 fi 42317 fi 42318 fi 42319 42320 fi 42321 42322 42323 fi 42324 42325 # Only process if variable expands to non-empty 42326 42327 if test "x$NM" != x; then 42328 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42329 42330 # First separate the path from the arguments. This will split at the first 42331 # space. 42332 complete="$NM" 42333 path="${complete%% *}" 42334 tmp="$complete EOL" 42335 arguments="${tmp#* }" 42336 42337 # Input might be given as Windows format, start by converting to 42338 # unix format. 42339 new_path=`$CYGPATH -u "$path"` 42340 42341 # Now try to locate executable using which 42342 new_path=`$WHICH "$new_path" 2> /dev/null` 42343 # bat and cmd files are not always considered executable in cygwin causing which 42344 # to not find them 42345 if test "x$new_path" = x \ 42346 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42347 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42348 new_path=`$CYGPATH -u "$path"` 42349 fi 42350 if test "x$new_path" = x; then 42351 # Oops. Which didn't find the executable. 42352 # The splitting of arguments from the executable at a space might have been incorrect, 42353 # since paths with space are more likely in Windows. Give it another try with the whole 42354 # argument. 42355 path="$complete" 42356 arguments="EOL" 42357 new_path=`$CYGPATH -u "$path"` 42358 new_path=`$WHICH "$new_path" 2> /dev/null` 42359 # bat and cmd files are not always considered executable in cygwin causing which 42360 # to not find them 42361 if test "x$new_path" = x \ 42362 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42363 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42364 new_path=`$CYGPATH -u "$path"` 42365 fi 42366 if test "x$new_path" = x; then 42367 # It's still not found. Now this is an unrecoverable error. 42368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42369 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42370 has_space=`$ECHO "$complete" | $GREP " "` 42371 if test "x$has_space" != x; then 42372 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42373 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42374 fi 42375 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42376 fi 42377 fi 42378 42379 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42380 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42381 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42382 # "foo.exe" is OK but "foo" is an error. 42383 # 42384 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42385 # It is also a way to make sure we got the proper file name for the real test later on. 42386 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42387 if test "x$test_shortpath" = x; then 42388 # Short path failed, file does not exist as specified. 42389 # Try adding .exe or .cmd 42390 if test -f "${new_path}.exe"; then 42391 input_to_shortpath="${new_path}.exe" 42392 elif test -f "${new_path}.cmd"; then 42393 input_to_shortpath="${new_path}.cmd" 42394 else 42395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 42396 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 42397 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42398 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42399 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42400 fi 42401 else 42402 input_to_shortpath="$new_path" 42403 fi 42404 42405 # Call helper function which possibly converts this using DOS-style short mode. 42406 # If so, the updated path is stored in $new_path. 42407 new_path="$input_to_shortpath" 42408 42409 input_path="$input_to_shortpath" 42410 # Check if we need to convert this using DOS-style short mode. If the path 42411 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42412 # take no chances and rewrite it. 42413 # Note: m4 eats our [], so we need to use [ and ] instead. 42414 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42415 if test "x$has_forbidden_chars" != x; then 42416 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42417 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42418 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42419 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42420 # Going to short mode and back again did indeed matter. Since short mode is 42421 # case insensitive, let's make it lowercase to improve readability. 42422 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42423 # Now convert it back to Unix-style (cygpath) 42424 input_path=`$CYGPATH -u "$shortmode_path"` 42425 new_path="$input_path" 42426 fi 42427 fi 42428 42429 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42430 if test "x$test_cygdrive_prefix" = x; then 42431 # As a simple fix, exclude /usr/bin since it's not a real path. 42432 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42433 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42434 # a path prefixed by /cygdrive for fixpath to work. 42435 new_path="$CYGWIN_ROOT_PATH$input_path" 42436 fi 42437 fi 42438 42439 # remove trailing .exe if any 42440 new_path="${new_path/%.exe/}" 42441 42442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42443 42444 # First separate the path from the arguments. This will split at the first 42445 # space. 42446 complete="$NM" 42447 path="${complete%% *}" 42448 tmp="$complete EOL" 42449 arguments="${tmp#* }" 42450 42451 # Input might be given as Windows format, start by converting to 42452 # unix format. 42453 new_path="$path" 42454 42455 windows_path="$new_path" 42456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42457 unix_path=`$CYGPATH -u "$windows_path"` 42458 new_path="$unix_path" 42459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42460 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42461 new_path="$unix_path" 42462 fi 42463 42464 42465 # Now try to locate executable using which 42466 new_path=`$WHICH "$new_path" 2> /dev/null` 42467 42468 if test "x$new_path" = x; then 42469 # Oops. Which didn't find the executable. 42470 # The splitting of arguments from the executable at a space might have been incorrect, 42471 # since paths with space are more likely in Windows. Give it another try with the whole 42472 # argument. 42473 path="$complete" 42474 arguments="EOL" 42475 new_path="$path" 42476 42477 windows_path="$new_path" 42478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42479 unix_path=`$CYGPATH -u "$windows_path"` 42480 new_path="$unix_path" 42481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42482 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42483 new_path="$unix_path" 42484 fi 42485 42486 42487 new_path=`$WHICH "$new_path" 2> /dev/null` 42488 # bat and cmd files are not always considered executable in MSYS causing which 42489 # to not find them 42490 if test "x$new_path" = x \ 42491 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42492 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42493 new_path="$path" 42494 42495 windows_path="$new_path" 42496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42497 unix_path=`$CYGPATH -u "$windows_path"` 42498 new_path="$unix_path" 42499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42501 new_path="$unix_path" 42502 fi 42503 42504 fi 42505 42506 if test "x$new_path" = x; then 42507 # It's still not found. Now this is an unrecoverable error. 42508 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42509 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42510 has_space=`$ECHO "$complete" | $GREP " "` 42511 if test "x$has_space" != x; then 42512 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42513 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42514 fi 42515 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42516 fi 42517 fi 42518 42519 # Now new_path has a complete unix path to the binary 42520 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42521 # Keep paths in /bin as-is, but remove trailing .exe if any 42522 new_path="${new_path/%.exe/}" 42523 # Do not save /bin paths to all_fixpath_prefixes! 42524 else 42525 # Not in mixed or Windows style, start by that. 42526 new_path=`cmd //c echo $new_path` 42527 42528 input_path="$new_path" 42529 # Check if we need to convert this using DOS-style short mode. If the path 42530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42531 # take no chances and rewrite it. 42532 # Note: m4 eats our [], so we need to use [ and ] instead. 42533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42534 if test "x$has_forbidden_chars" != x; then 42535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42536 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42537 fi 42538 42539 # Output is in $new_path 42540 42541 windows_path="$new_path" 42542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42543 unix_path=`$CYGPATH -u "$windows_path"` 42544 new_path="$unix_path" 42545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42546 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42547 new_path="$unix_path" 42548 fi 42549 42550 # remove trailing .exe if any 42551 new_path="${new_path/%.exe/}" 42552 42553 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42554 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42555 fi 42556 42557 else 42558 # We're on a unix platform. Hooray! :) 42559 # First separate the path from the arguments. This will split at the first 42560 # space. 42561 complete="$NM" 42562 path="${complete%% *}" 42563 tmp="$complete EOL" 42564 arguments="${tmp#* }" 42565 42566 # Cannot rely on the command "which" here since it doesn't always work. 42567 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42568 if test -z "$is_absolute_path"; then 42569 # Path to executable is not absolute. Find it. 42570 IFS_save="$IFS" 42571 IFS=: 42572 for p in $PATH; do 42573 if test -f "$p/$path" && test -x "$p/$path"; then 42574 new_path="$p/$path" 42575 break 42576 fi 42577 done 42578 IFS="$IFS_save" 42579 else 42580 # This is an absolute path, we can use it without further modifications. 42581 new_path="$path" 42582 fi 42583 42584 if test "x$new_path" = x; then 42585 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42586 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42587 has_space=`$ECHO "$complete" | $GREP " "` 42588 if test "x$has_space" != x; then 42589 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42590 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42591 fi 42592 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42593 fi 42594 fi 42595 42596 # Now join together the path and the arguments once again 42597 if test "x$arguments" != xEOL; then 42598 new_complete="$new_path ${arguments% *}" 42599 else 42600 new_complete="$new_path" 42601 fi 42602 42603 if test "x$complete" != "x$new_complete"; then 42604 NM="$new_complete" 42605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42606 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42607 fi 42608 fi 42609 42610 GNM="$NM" 42611 42612 fi 42613 42614 # objcopy is used for moving debug symbols to separate files when 42615 # full debug symbols are enabled. 42616 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux || \ 42617 test "x$OPENJDK_TARGET_OS" = xandroid ; then 42618 42619 42620 # Publish this variable in the help. 42621 42622 42623 if [ -z "${OBJCOPY+x}" ]; then 42624 # The variable is not set by user, try to locate tool using the code snippet 42625 if test -n "$ac_tool_prefix"; then 42626 for ac_prog in gobjcopy objcopy 42627 do 42628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42631 $as_echo_n "checking for $ac_word... " >&6; } 42632 if ${ac_cv_prog_OBJCOPY+:} false; then : 42633 $as_echo_n "(cached) " >&6 42634 else 42635 if test -n "$OBJCOPY"; then 42636 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42637 else 42638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42639 for as_dir in $PATH 42640 do 42641 IFS=$as_save_IFS 42642 test -z "$as_dir" && as_dir=. 42643 for ac_exec_ext in '' $ac_executable_extensions; do 42644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42645 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42647 break 2 42648 fi 42649 done 42650 done 42651 IFS=$as_save_IFS 42652 42653 fi 42654 fi 42655 OBJCOPY=$ac_cv_prog_OBJCOPY 42656 if test -n "$OBJCOPY"; then 42657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42658 $as_echo "$OBJCOPY" >&6; } 42659 else 42660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42661 $as_echo "no" >&6; } 42662 fi 42663 42664 42665 test -n "$OBJCOPY" && break 42666 done 42667 fi 42668 if test -z "$OBJCOPY"; then 42669 ac_ct_OBJCOPY=$OBJCOPY 42670 for ac_prog in gobjcopy objcopy 42671 do 42672 # Extract the first word of "$ac_prog", so it can be a program name with args. 42673 set dummy $ac_prog; ac_word=$2 42674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42675 $as_echo_n "checking for $ac_word... " >&6; } 42676 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42677 $as_echo_n "(cached) " >&6 42678 else 42679 if test -n "$ac_ct_OBJCOPY"; then 42680 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42681 else 42682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42683 for as_dir in $PATH 42684 do 42685 IFS=$as_save_IFS 42686 test -z "$as_dir" && as_dir=. 42687 for ac_exec_ext in '' $ac_executable_extensions; do 42688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42689 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42691 break 2 42692 fi 42693 done 42694 done 42695 IFS=$as_save_IFS 42696 42697 fi 42698 fi 42699 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42700 if test -n "$ac_ct_OBJCOPY"; then 42701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42702 $as_echo "$ac_ct_OBJCOPY" >&6; } 42703 else 42704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42705 $as_echo "no" >&6; } 42706 fi 42707 42708 42709 test -n "$ac_ct_OBJCOPY" && break 42710 done 42711 42712 if test "x$ac_ct_OBJCOPY" = x; then 42713 OBJCOPY="" 42714 else 42715 case $cross_compiling:$ac_tool_warned in 42716 yes:) 42717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42719 ac_tool_warned=yes ;; 42720 esac 42721 OBJCOPY=$ac_ct_OBJCOPY 42722 fi 42723 fi 42724 42725 else 42726 # The variable is set, but is it from the command line or the environment? 42727 42728 # Try to remove the string !OBJCOPY! from our list. 42729 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 42730 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42731 # If it failed, the variable was not from the command line. Ignore it, 42732 # but warn the user (except for BASH, which is always set by the calling BASH). 42733 if test "xOBJCOPY" != xBASH; then 42734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 42735 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 42736 fi 42737 # Try to locate tool using the code snippet 42738 if test -n "$ac_tool_prefix"; then 42739 for ac_prog in gobjcopy objcopy 42740 do 42741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42744 $as_echo_n "checking for $ac_word... " >&6; } 42745 if ${ac_cv_prog_OBJCOPY+:} false; then : 42746 $as_echo_n "(cached) " >&6 42747 else 42748 if test -n "$OBJCOPY"; then 42749 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42750 else 42751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42752 for as_dir in $PATH 42753 do 42754 IFS=$as_save_IFS 42755 test -z "$as_dir" && as_dir=. 42756 for ac_exec_ext in '' $ac_executable_extensions; do 42757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42758 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42760 break 2 42761 fi 42762 done 42763 done 42764 IFS=$as_save_IFS 42765 42766 fi 42767 fi 42768 OBJCOPY=$ac_cv_prog_OBJCOPY 42769 if test -n "$OBJCOPY"; then 42770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42771 $as_echo "$OBJCOPY" >&6; } 42772 else 42773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42774 $as_echo "no" >&6; } 42775 fi 42776 42777 42778 test -n "$OBJCOPY" && break 42779 done 42780 fi 42781 if test -z "$OBJCOPY"; then 42782 ac_ct_OBJCOPY=$OBJCOPY 42783 for ac_prog in gobjcopy objcopy 42784 do 42785 # Extract the first word of "$ac_prog", so it can be a program name with args. 42786 set dummy $ac_prog; ac_word=$2 42787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42788 $as_echo_n "checking for $ac_word... " >&6; } 42789 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42790 $as_echo_n "(cached) " >&6 42791 else 42792 if test -n "$ac_ct_OBJCOPY"; then 42793 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42794 else 42795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42796 for as_dir in $PATH 42797 do 42798 IFS=$as_save_IFS 42799 test -z "$as_dir" && as_dir=. 42800 for ac_exec_ext in '' $ac_executable_extensions; do 42801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42802 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42804 break 2 42805 fi 42806 done 42807 done 42808 IFS=$as_save_IFS 42809 42810 fi 42811 fi 42812 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42813 if test -n "$ac_ct_OBJCOPY"; then 42814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42815 $as_echo "$ac_ct_OBJCOPY" >&6; } 42816 else 42817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42818 $as_echo "no" >&6; } 42819 fi 42820 42821 42822 test -n "$ac_ct_OBJCOPY" && break 42823 done 42824 42825 if test "x$ac_ct_OBJCOPY" = x; then 42826 OBJCOPY="" 42827 else 42828 case $cross_compiling:$ac_tool_warned in 42829 yes:) 42830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42832 ac_tool_warned=yes ;; 42833 esac 42834 OBJCOPY=$ac_ct_OBJCOPY 42835 fi 42836 fi 42837 42838 else 42839 # If it succeeded, then it was overridden by the user. We will use it 42840 # for the tool. 42841 42842 # First remove it from the list of overridden variables, so we can test 42843 # for unknown variables in the end. 42844 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42845 42846 # Check if we try to supply an empty value 42847 if test "x$OBJCOPY" = x; then 42848 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 42849 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 42850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42851 $as_echo_n "checking for OBJCOPY... " >&6; } 42852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42853 $as_echo "disabled" >&6; } 42854 else 42855 # Check if the provided tool contains a complete path. 42856 tool_specified="$OBJCOPY" 42857 tool_basename="${tool_specified##*/}" 42858 if test "x$tool_basename" = "x$tool_specified"; then 42859 # A command without a complete path is provided, search $PATH. 42860 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 42861 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 42862 # Extract the first word of "$tool_basename", so it can be a program name with args. 42863 set dummy $tool_basename; ac_word=$2 42864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42865 $as_echo_n "checking for $ac_word... " >&6; } 42866 if ${ac_cv_path_OBJCOPY+:} false; then : 42867 $as_echo_n "(cached) " >&6 42868 else 42869 case $OBJCOPY in 42870 [\\/]* | ?:[\\/]*) 42871 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 42872 ;; 42873 *) 42874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42875 for as_dir in $PATH 42876 do 42877 IFS=$as_save_IFS 42878 test -z "$as_dir" && as_dir=. 42879 for ac_exec_ext in '' $ac_executable_extensions; do 42880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42881 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 42882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42883 break 2 42884 fi 42885 done 42886 done 42887 IFS=$as_save_IFS 42888 42889 ;; 42890 esac 42891 fi 42892 OBJCOPY=$ac_cv_path_OBJCOPY 42893 if test -n "$OBJCOPY"; then 42894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42895 $as_echo "$OBJCOPY" >&6; } 42896 else 42897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42898 $as_echo "no" >&6; } 42899 fi 42900 42901 42902 if test "x$OBJCOPY" = x; then 42903 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42904 fi 42905 else 42906 # Otherwise we believe it is a complete path. Use it as it is. 42907 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 42908 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 42909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42910 $as_echo_n "checking for OBJCOPY... " >&6; } 42911 if test ! -x "$tool_specified"; then 42912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42913 $as_echo "not found" >&6; } 42914 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 42915 fi 42916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42917 $as_echo "$tool_specified" >&6; } 42918 fi 42919 fi 42920 fi 42921 42922 fi 42923 42924 42925 # Only call fixup if objcopy was found. 42926 if test -n "$OBJCOPY"; then 42927 42928 # Only process if variable expands to non-empty 42929 42930 if test "x$OBJCOPY" != x; then 42931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42932 42933 # First separate the path from the arguments. This will split at the first 42934 # space. 42935 complete="$OBJCOPY" 42936 path="${complete%% *}" 42937 tmp="$complete EOL" 42938 arguments="${tmp#* }" 42939 42940 # Input might be given as Windows format, start by converting to 42941 # unix format. 42942 new_path=`$CYGPATH -u "$path"` 42943 42944 # Now try to locate executable using which 42945 new_path=`$WHICH "$new_path" 2> /dev/null` 42946 # bat and cmd files are not always considered executable in cygwin causing which 42947 # to not find them 42948 if test "x$new_path" = x \ 42949 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42950 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42951 new_path=`$CYGPATH -u "$path"` 42952 fi 42953 if test "x$new_path" = x; then 42954 # Oops. Which didn't find the executable. 42955 # The splitting of arguments from the executable at a space might have been incorrect, 42956 # since paths with space are more likely in Windows. Give it another try with the whole 42957 # argument. 42958 path="$complete" 42959 arguments="EOL" 42960 new_path=`$CYGPATH -u "$path"` 42961 new_path=`$WHICH "$new_path" 2> /dev/null` 42962 # bat and cmd files are not always considered executable in cygwin causing which 42963 # to not find them 42964 if test "x$new_path" = x \ 42965 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42966 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42967 new_path=`$CYGPATH -u "$path"` 42968 fi 42969 if test "x$new_path" = x; then 42970 # It's still not found. Now this is an unrecoverable error. 42971 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42972 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42973 has_space=`$ECHO "$complete" | $GREP " "` 42974 if test "x$has_space" != x; then 42975 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42976 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42977 fi 42978 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42979 fi 42980 fi 42981 42982 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42983 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42984 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42985 # "foo.exe" is OK but "foo" is an error. 42986 # 42987 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42988 # It is also a way to make sure we got the proper file name for the real test later on. 42989 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42990 if test "x$test_shortpath" = x; then 42991 # Short path failed, file does not exist as specified. 42992 # Try adding .exe or .cmd 42993 if test -f "${new_path}.exe"; then 42994 input_to_shortpath="${new_path}.exe" 42995 elif test -f "${new_path}.cmd"; then 42996 input_to_shortpath="${new_path}.cmd" 42997 else 42998 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 42999 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 43000 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43001 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43002 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43003 fi 43004 else 43005 input_to_shortpath="$new_path" 43006 fi 43007 43008 # Call helper function which possibly converts this using DOS-style short mode. 43009 # If so, the updated path is stored in $new_path. 43010 new_path="$input_to_shortpath" 43011 43012 input_path="$input_to_shortpath" 43013 # Check if we need to convert this using DOS-style short mode. If the path 43014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43015 # take no chances and rewrite it. 43016 # Note: m4 eats our [], so we need to use [ and ] instead. 43017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43018 if test "x$has_forbidden_chars" != x; then 43019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43020 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43021 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43022 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43023 # Going to short mode and back again did indeed matter. Since short mode is 43024 # case insensitive, let's make it lowercase to improve readability. 43025 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43026 # Now convert it back to Unix-style (cygpath) 43027 input_path=`$CYGPATH -u "$shortmode_path"` 43028 new_path="$input_path" 43029 fi 43030 fi 43031 43032 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43033 if test "x$test_cygdrive_prefix" = x; then 43034 # As a simple fix, exclude /usr/bin since it's not a real path. 43035 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43036 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43037 # a path prefixed by /cygdrive for fixpath to work. 43038 new_path="$CYGWIN_ROOT_PATH$input_path" 43039 fi 43040 fi 43041 43042 # remove trailing .exe if any 43043 new_path="${new_path/%.exe/}" 43044 43045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43046 43047 # First separate the path from the arguments. This will split at the first 43048 # space. 43049 complete="$OBJCOPY" 43050 path="${complete%% *}" 43051 tmp="$complete EOL" 43052 arguments="${tmp#* }" 43053 43054 # Input might be given as Windows format, start by converting to 43055 # unix format. 43056 new_path="$path" 43057 43058 windows_path="$new_path" 43059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43060 unix_path=`$CYGPATH -u "$windows_path"` 43061 new_path="$unix_path" 43062 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43063 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43064 new_path="$unix_path" 43065 fi 43066 43067 43068 # Now try to locate executable using which 43069 new_path=`$WHICH "$new_path" 2> /dev/null` 43070 43071 if test "x$new_path" = x; then 43072 # Oops. Which didn't find the executable. 43073 # The splitting of arguments from the executable at a space might have been incorrect, 43074 # since paths with space are more likely in Windows. Give it another try with the whole 43075 # argument. 43076 path="$complete" 43077 arguments="EOL" 43078 new_path="$path" 43079 43080 windows_path="$new_path" 43081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43082 unix_path=`$CYGPATH -u "$windows_path"` 43083 new_path="$unix_path" 43084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43086 new_path="$unix_path" 43087 fi 43088 43089 43090 new_path=`$WHICH "$new_path" 2> /dev/null` 43091 # bat and cmd files are not always considered executable in MSYS causing which 43092 # to not find them 43093 if test "x$new_path" = x \ 43094 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43095 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43096 new_path="$path" 43097 43098 windows_path="$new_path" 43099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43100 unix_path=`$CYGPATH -u "$windows_path"` 43101 new_path="$unix_path" 43102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43103 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43104 new_path="$unix_path" 43105 fi 43106 43107 fi 43108 43109 if test "x$new_path" = x; then 43110 # It's still not found. Now this is an unrecoverable error. 43111 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43112 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43113 has_space=`$ECHO "$complete" | $GREP " "` 43114 if test "x$has_space" != x; then 43115 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43116 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43117 fi 43118 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43119 fi 43120 fi 43121 43122 # Now new_path has a complete unix path to the binary 43123 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43124 # Keep paths in /bin as-is, but remove trailing .exe if any 43125 new_path="${new_path/%.exe/}" 43126 # Do not save /bin paths to all_fixpath_prefixes! 43127 else 43128 # Not in mixed or Windows style, start by that. 43129 new_path=`cmd //c echo $new_path` 43130 43131 input_path="$new_path" 43132 # Check if we need to convert this using DOS-style short mode. If the path 43133 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43134 # take no chances and rewrite it. 43135 # Note: m4 eats our [], so we need to use [ and ] instead. 43136 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43137 if test "x$has_forbidden_chars" != x; then 43138 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43139 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43140 fi 43141 43142 # Output is in $new_path 43143 43144 windows_path="$new_path" 43145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43146 unix_path=`$CYGPATH -u "$windows_path"` 43147 new_path="$unix_path" 43148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43149 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43150 new_path="$unix_path" 43151 fi 43152 43153 # remove trailing .exe if any 43154 new_path="${new_path/%.exe/}" 43155 43156 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43157 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43158 fi 43159 43160 else 43161 # We're on a unix platform. Hooray! :) 43162 # First separate the path from the arguments. This will split at the first 43163 # space. 43164 complete="$OBJCOPY" 43165 path="${complete%% *}" 43166 tmp="$complete EOL" 43167 arguments="${tmp#* }" 43168 43169 # Cannot rely on the command "which" here since it doesn't always work. 43170 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43171 if test -z "$is_absolute_path"; then 43172 # Path to executable is not absolute. Find it. 43173 IFS_save="$IFS" 43174 IFS=: 43175 for p in $PATH; do 43176 if test -f "$p/$path" && test -x "$p/$path"; then 43177 new_path="$p/$path" 43178 break 43179 fi 43180 done 43181 IFS="$IFS_save" 43182 else 43183 # This is an absolute path, we can use it without further modifications. 43184 new_path="$path" 43185 fi 43186 43187 if test "x$new_path" = x; then 43188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43189 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43190 has_space=`$ECHO "$complete" | $GREP " "` 43191 if test "x$has_space" != x; then 43192 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43193 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43194 fi 43195 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43196 fi 43197 fi 43198 43199 # Now join together the path and the arguments once again 43200 if test "x$arguments" != xEOL; then 43201 new_complete="$new_path ${arguments% *}" 43202 else 43203 new_complete="$new_path" 43204 fi 43205 43206 if test "x$complete" != "x$new_complete"; then 43207 OBJCOPY="$new_complete" 43208 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 43209 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 43210 fi 43211 fi 43212 43213 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 43214 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 43215 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 43216 # - version number is last blank separate word on first line 43217 # - version number formats that have been seen: 43218 # - <major>.<minor> 43219 # - <major>.<minor>.<micro> 43220 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 43221 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 43222 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 43223 -e 's/.* //' \ 43224 -e '/^[01]\./b bad' \ 43225 -e '/^2\./{' \ 43226 -e ' s/^2\.//' \ 43227 -e ' /^[0-9]$/b bad' \ 43228 -e ' /^[0-9]\./b bad' \ 43229 -e ' /^1[0-9]$/b bad' \ 43230 -e ' /^1[0-9]\./b bad' \ 43231 -e ' /^20\./b bad' \ 43232 -e ' /^21\.0$/b bad' \ 43233 -e ' /^21\.0\./b bad' \ 43234 -e '}' \ 43235 -e ':good' \ 43236 -e 's/.*/VALID_VERSION/p' \ 43237 -e 'q' \ 43238 -e ':bad' \ 43239 -e 's/.*/BAD_VERSION/p' \ 43240 -e 'q'` 43241 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 43242 OBJCOPY= 43243 { $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 43244 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 43245 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 43246 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 43247 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 43248 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 43249 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 43250 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 43251 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 43252 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 43253 fi 43254 fi 43255 fi 43256 fi 43257 43258 43259 43260 # Publish this variable in the help. 43261 43262 43263 if [ -z "${OBJDUMP+x}" ]; then 43264 # The variable is not set by user, try to locate tool using the code snippet 43265 if test -n "$ac_tool_prefix"; then 43266 for ac_prog in gobjdump objdump 43267 do 43268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43271 $as_echo_n "checking for $ac_word... " >&6; } 43272 if ${ac_cv_prog_OBJDUMP+:} false; then : 43273 $as_echo_n "(cached) " >&6 43274 else 43275 if test -n "$OBJDUMP"; then 43276 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43277 else 43278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43279 for as_dir in $PATH 43280 do 43281 IFS=$as_save_IFS 43282 test -z "$as_dir" && as_dir=. 43283 for ac_exec_ext in '' $ac_executable_extensions; do 43284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43285 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43287 break 2 43288 fi 43289 done 43290 done 43291 IFS=$as_save_IFS 43292 43293 fi 43294 fi 43295 OBJDUMP=$ac_cv_prog_OBJDUMP 43296 if test -n "$OBJDUMP"; then 43297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43298 $as_echo "$OBJDUMP" >&6; } 43299 else 43300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43301 $as_echo "no" >&6; } 43302 fi 43303 43304 43305 test -n "$OBJDUMP" && break 43306 done 43307 fi 43308 if test -z "$OBJDUMP"; then 43309 ac_ct_OBJDUMP=$OBJDUMP 43310 for ac_prog in gobjdump objdump 43311 do 43312 # Extract the first word of "$ac_prog", so it can be a program name with args. 43313 set dummy $ac_prog; ac_word=$2 43314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43315 $as_echo_n "checking for $ac_word... " >&6; } 43316 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43317 $as_echo_n "(cached) " >&6 43318 else 43319 if test -n "$ac_ct_OBJDUMP"; then 43320 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43321 else 43322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43323 for as_dir in $PATH 43324 do 43325 IFS=$as_save_IFS 43326 test -z "$as_dir" && as_dir=. 43327 for ac_exec_ext in '' $ac_executable_extensions; do 43328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43329 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43331 break 2 43332 fi 43333 done 43334 done 43335 IFS=$as_save_IFS 43336 43337 fi 43338 fi 43339 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43340 if test -n "$ac_ct_OBJDUMP"; then 43341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43342 $as_echo "$ac_ct_OBJDUMP" >&6; } 43343 else 43344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43345 $as_echo "no" >&6; } 43346 fi 43347 43348 43349 test -n "$ac_ct_OBJDUMP" && break 43350 done 43351 43352 if test "x$ac_ct_OBJDUMP" = x; then 43353 OBJDUMP="" 43354 else 43355 case $cross_compiling:$ac_tool_warned in 43356 yes:) 43357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43359 ac_tool_warned=yes ;; 43360 esac 43361 OBJDUMP=$ac_ct_OBJDUMP 43362 fi 43363 fi 43364 43365 else 43366 # The variable is set, but is it from the command line or the environment? 43367 43368 # Try to remove the string !OBJDUMP! from our list. 43369 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 43370 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43371 # If it failed, the variable was not from the command line. Ignore it, 43372 # but warn the user (except for BASH, which is always set by the calling BASH). 43373 if test "xOBJDUMP" != xBASH; then 43374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 43375 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 43376 fi 43377 # Try to locate tool using the code snippet 43378 if test -n "$ac_tool_prefix"; then 43379 for ac_prog in gobjdump objdump 43380 do 43381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43384 $as_echo_n "checking for $ac_word... " >&6; } 43385 if ${ac_cv_prog_OBJDUMP+:} false; then : 43386 $as_echo_n "(cached) " >&6 43387 else 43388 if test -n "$OBJDUMP"; then 43389 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43390 else 43391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43392 for as_dir in $PATH 43393 do 43394 IFS=$as_save_IFS 43395 test -z "$as_dir" && as_dir=. 43396 for ac_exec_ext in '' $ac_executable_extensions; do 43397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43398 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43400 break 2 43401 fi 43402 done 43403 done 43404 IFS=$as_save_IFS 43405 43406 fi 43407 fi 43408 OBJDUMP=$ac_cv_prog_OBJDUMP 43409 if test -n "$OBJDUMP"; then 43410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43411 $as_echo "$OBJDUMP" >&6; } 43412 else 43413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43414 $as_echo "no" >&6; } 43415 fi 43416 43417 43418 test -n "$OBJDUMP" && break 43419 done 43420 fi 43421 if test -z "$OBJDUMP"; then 43422 ac_ct_OBJDUMP=$OBJDUMP 43423 for ac_prog in gobjdump objdump 43424 do 43425 # Extract the first word of "$ac_prog", so it can be a program name with args. 43426 set dummy $ac_prog; ac_word=$2 43427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43428 $as_echo_n "checking for $ac_word... " >&6; } 43429 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43430 $as_echo_n "(cached) " >&6 43431 else 43432 if test -n "$ac_ct_OBJDUMP"; then 43433 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43434 else 43435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43436 for as_dir in $PATH 43437 do 43438 IFS=$as_save_IFS 43439 test -z "$as_dir" && as_dir=. 43440 for ac_exec_ext in '' $ac_executable_extensions; do 43441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43442 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43444 break 2 43445 fi 43446 done 43447 done 43448 IFS=$as_save_IFS 43449 43450 fi 43451 fi 43452 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43453 if test -n "$ac_ct_OBJDUMP"; then 43454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43455 $as_echo "$ac_ct_OBJDUMP" >&6; } 43456 else 43457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43458 $as_echo "no" >&6; } 43459 fi 43460 43461 43462 test -n "$ac_ct_OBJDUMP" && break 43463 done 43464 43465 if test "x$ac_ct_OBJDUMP" = x; then 43466 OBJDUMP="" 43467 else 43468 case $cross_compiling:$ac_tool_warned in 43469 yes:) 43470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43472 ac_tool_warned=yes ;; 43473 esac 43474 OBJDUMP=$ac_ct_OBJDUMP 43475 fi 43476 fi 43477 43478 else 43479 # If it succeeded, then it was overridden by the user. We will use it 43480 # for the tool. 43481 43482 # First remove it from the list of overridden variables, so we can test 43483 # for unknown variables in the end. 43484 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43485 43486 # Check if we try to supply an empty value 43487 if test "x$OBJDUMP" = x; then 43488 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 43489 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 43490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43491 $as_echo_n "checking for OBJDUMP... " >&6; } 43492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43493 $as_echo "disabled" >&6; } 43494 else 43495 # Check if the provided tool contains a complete path. 43496 tool_specified="$OBJDUMP" 43497 tool_basename="${tool_specified##*/}" 43498 if test "x$tool_basename" = "x$tool_specified"; then 43499 # A command without a complete path is provided, search $PATH. 43500 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 43501 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 43502 # Extract the first word of "$tool_basename", so it can be a program name with args. 43503 set dummy $tool_basename; ac_word=$2 43504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43505 $as_echo_n "checking for $ac_word... " >&6; } 43506 if ${ac_cv_path_OBJDUMP+:} false; then : 43507 $as_echo_n "(cached) " >&6 43508 else 43509 case $OBJDUMP in 43510 [\\/]* | ?:[\\/]*) 43511 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 43512 ;; 43513 *) 43514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43515 for as_dir in $PATH 43516 do 43517 IFS=$as_save_IFS 43518 test -z "$as_dir" && as_dir=. 43519 for ac_exec_ext in '' $ac_executable_extensions; do 43520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43521 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 43522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43523 break 2 43524 fi 43525 done 43526 done 43527 IFS=$as_save_IFS 43528 43529 ;; 43530 esac 43531 fi 43532 OBJDUMP=$ac_cv_path_OBJDUMP 43533 if test -n "$OBJDUMP"; then 43534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43535 $as_echo "$OBJDUMP" >&6; } 43536 else 43537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43538 $as_echo "no" >&6; } 43539 fi 43540 43541 43542 if test "x$OBJDUMP" = x; then 43543 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43544 fi 43545 else 43546 # Otherwise we believe it is a complete path. Use it as it is. 43547 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 43548 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 43549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43550 $as_echo_n "checking for OBJDUMP... " >&6; } 43551 if test ! -x "$tool_specified"; then 43552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43553 $as_echo "not found" >&6; } 43554 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 43555 fi 43556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43557 $as_echo "$tool_specified" >&6; } 43558 fi 43559 fi 43560 fi 43561 43562 fi 43563 43564 43565 if test "x$OBJDUMP" != x; then 43566 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 43567 # bails if argument is missing. 43568 43569 # Only process if variable expands to non-empty 43570 43571 if test "x$OBJDUMP" != x; then 43572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43573 43574 # First separate the path from the arguments. This will split at the first 43575 # space. 43576 complete="$OBJDUMP" 43577 path="${complete%% *}" 43578 tmp="$complete EOL" 43579 arguments="${tmp#* }" 43580 43581 # Input might be given as Windows format, start by converting to 43582 # unix format. 43583 new_path=`$CYGPATH -u "$path"` 43584 43585 # Now try to locate executable using which 43586 new_path=`$WHICH "$new_path" 2> /dev/null` 43587 # bat and cmd files are not always considered executable in cygwin causing which 43588 # to not find them 43589 if test "x$new_path" = x \ 43590 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43591 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43592 new_path=`$CYGPATH -u "$path"` 43593 fi 43594 if test "x$new_path" = x; then 43595 # Oops. Which didn't find the executable. 43596 # The splitting of arguments from the executable at a space might have been incorrect, 43597 # since paths with space are more likely in Windows. Give it another try with the whole 43598 # argument. 43599 path="$complete" 43600 arguments="EOL" 43601 new_path=`$CYGPATH -u "$path"` 43602 new_path=`$WHICH "$new_path" 2> /dev/null` 43603 # bat and cmd files are not always considered executable in cygwin causing which 43604 # to not find them 43605 if test "x$new_path" = x \ 43606 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43607 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43608 new_path=`$CYGPATH -u "$path"` 43609 fi 43610 if test "x$new_path" = x; then 43611 # It's still not found. Now this is an unrecoverable error. 43612 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43613 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43614 has_space=`$ECHO "$complete" | $GREP " "` 43615 if test "x$has_space" != x; then 43616 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43617 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43618 fi 43619 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43620 fi 43621 fi 43622 43623 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43624 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43625 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43626 # "foo.exe" is OK but "foo" is an error. 43627 # 43628 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43629 # It is also a way to make sure we got the proper file name for the real test later on. 43630 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43631 if test "x$test_shortpath" = x; then 43632 # Short path failed, file does not exist as specified. 43633 # Try adding .exe or .cmd 43634 if test -f "${new_path}.exe"; then 43635 input_to_shortpath="${new_path}.exe" 43636 elif test -f "${new_path}.cmd"; then 43637 input_to_shortpath="${new_path}.cmd" 43638 else 43639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 43640 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 43641 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43642 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43643 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43644 fi 43645 else 43646 input_to_shortpath="$new_path" 43647 fi 43648 43649 # Call helper function which possibly converts this using DOS-style short mode. 43650 # If so, the updated path is stored in $new_path. 43651 new_path="$input_to_shortpath" 43652 43653 input_path="$input_to_shortpath" 43654 # Check if we need to convert this using DOS-style short mode. If the path 43655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43656 # take no chances and rewrite it. 43657 # Note: m4 eats our [], so we need to use [ and ] instead. 43658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43659 if test "x$has_forbidden_chars" != x; then 43660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43661 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43662 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43663 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43664 # Going to short mode and back again did indeed matter. Since short mode is 43665 # case insensitive, let's make it lowercase to improve readability. 43666 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43667 # Now convert it back to Unix-style (cygpath) 43668 input_path=`$CYGPATH -u "$shortmode_path"` 43669 new_path="$input_path" 43670 fi 43671 fi 43672 43673 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43674 if test "x$test_cygdrive_prefix" = x; then 43675 # As a simple fix, exclude /usr/bin since it's not a real path. 43676 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43677 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43678 # a path prefixed by /cygdrive for fixpath to work. 43679 new_path="$CYGWIN_ROOT_PATH$input_path" 43680 fi 43681 fi 43682 43683 # remove trailing .exe if any 43684 new_path="${new_path/%.exe/}" 43685 43686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43687 43688 # First separate the path from the arguments. This will split at the first 43689 # space. 43690 complete="$OBJDUMP" 43691 path="${complete%% *}" 43692 tmp="$complete EOL" 43693 arguments="${tmp#* }" 43694 43695 # Input might be given as Windows format, start by converting to 43696 # unix format. 43697 new_path="$path" 43698 43699 windows_path="$new_path" 43700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43701 unix_path=`$CYGPATH -u "$windows_path"` 43702 new_path="$unix_path" 43703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43705 new_path="$unix_path" 43706 fi 43707 43708 43709 # Now try to locate executable using which 43710 new_path=`$WHICH "$new_path" 2> /dev/null` 43711 43712 if test "x$new_path" = x; then 43713 # Oops. Which didn't find the executable. 43714 # The splitting of arguments from the executable at a space might have been incorrect, 43715 # since paths with space are more likely in Windows. Give it another try with the whole 43716 # argument. 43717 path="$complete" 43718 arguments="EOL" 43719 new_path="$path" 43720 43721 windows_path="$new_path" 43722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43723 unix_path=`$CYGPATH -u "$windows_path"` 43724 new_path="$unix_path" 43725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43726 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43727 new_path="$unix_path" 43728 fi 43729 43730 43731 new_path=`$WHICH "$new_path" 2> /dev/null` 43732 # bat and cmd files are not always considered executable in MSYS causing which 43733 # to not find them 43734 if test "x$new_path" = x \ 43735 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43736 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43737 new_path="$path" 43738 43739 windows_path="$new_path" 43740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43741 unix_path=`$CYGPATH -u "$windows_path"` 43742 new_path="$unix_path" 43743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43745 new_path="$unix_path" 43746 fi 43747 43748 fi 43749 43750 if test "x$new_path" = x; then 43751 # It's still not found. Now this is an unrecoverable error. 43752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43753 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43754 has_space=`$ECHO "$complete" | $GREP " "` 43755 if test "x$has_space" != x; then 43756 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43757 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43758 fi 43759 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43760 fi 43761 fi 43762 43763 # Now new_path has a complete unix path to the binary 43764 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43765 # Keep paths in /bin as-is, but remove trailing .exe if any 43766 new_path="${new_path/%.exe/}" 43767 # Do not save /bin paths to all_fixpath_prefixes! 43768 else 43769 # Not in mixed or Windows style, start by that. 43770 new_path=`cmd //c echo $new_path` 43771 43772 input_path="$new_path" 43773 # Check if we need to convert this using DOS-style short mode. If the path 43774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43775 # take no chances and rewrite it. 43776 # Note: m4 eats our [], so we need to use [ and ] instead. 43777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43778 if test "x$has_forbidden_chars" != x; then 43779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43780 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43781 fi 43782 43783 # Output is in $new_path 43784 43785 windows_path="$new_path" 43786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43787 unix_path=`$CYGPATH -u "$windows_path"` 43788 new_path="$unix_path" 43789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43791 new_path="$unix_path" 43792 fi 43793 43794 # remove trailing .exe if any 43795 new_path="${new_path/%.exe/}" 43796 43797 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43798 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43799 fi 43800 43801 else 43802 # We're on a unix platform. Hooray! :) 43803 # First separate the path from the arguments. This will split at the first 43804 # space. 43805 complete="$OBJDUMP" 43806 path="${complete%% *}" 43807 tmp="$complete EOL" 43808 arguments="${tmp#* }" 43809 43810 # Cannot rely on the command "which" here since it doesn't always work. 43811 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43812 if test -z "$is_absolute_path"; then 43813 # Path to executable is not absolute. Find it. 43814 IFS_save="$IFS" 43815 IFS=: 43816 for p in $PATH; do 43817 if test -f "$p/$path" && test -x "$p/$path"; then 43818 new_path="$p/$path" 43819 break 43820 fi 43821 done 43822 IFS="$IFS_save" 43823 else 43824 # This is an absolute path, we can use it without further modifications. 43825 new_path="$path" 43826 fi 43827 43828 if test "x$new_path" = x; then 43829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43830 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43831 has_space=`$ECHO "$complete" | $GREP " "` 43832 if test "x$has_space" != x; then 43833 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43834 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43835 fi 43836 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43837 fi 43838 fi 43839 43840 # Now join together the path and the arguments once again 43841 if test "x$arguments" != xEOL; then 43842 new_complete="$new_path ${arguments% *}" 43843 else 43844 new_complete="$new_path" 43845 fi 43846 43847 if test "x$complete" != "x$new_complete"; then 43848 OBJDUMP="$new_complete" 43849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 43850 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 43851 fi 43852 fi 43853 43854 fi 43855 43856 43857 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 43858 # to remain in place. Otherwise the compiler will not work in some siutations 43859 # in later configure checks. 43860 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 43861 PATH="$OLD_PATH" 43862 fi 43863 43864 # Restore the flags to the user specified values. 43865 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 43866 CFLAGS="$ORG_CFLAGS" 43867 CXXFLAGS="$ORG_CXXFLAGS" 43868 43869 43870 # Finally do some processing after the detection phase 43871 43872 if test "x$COMPILE_TYPE" = "xcross" && test "x$OPENJDK_TARGET_OS" != xios ; then 43873 # Now we need to find a C/C++ compiler that can build executables for the 43874 # build platform. We can't use the AC_PROG_CC macro, since it can only be 43875 # used once. Also, we need to do this without adding a tools dir to the 43876 # path, otherwise we might pick up cross-compilers which don't use standard 43877 # naming. 43878 43879 OLDPATH="$PATH" 43880 43881 43882 # Check whether --with-build-devkit was given. 43883 if test "${with_build_devkit+set}" = set; then : 43884 withval=$with_build_devkit; 43885 fi 43886 43887 if test "x$with_build_devkit" = "xyes"; then 43888 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 43889 elif test -n "$with_build_devkit"; then 43890 if test ! -d "$with_build_devkit"; then 43891 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 43892 else 43893 43894 # Only process if variable expands to non-empty 43895 43896 if test "x$with_build_devkit" != x; then 43897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43898 43899 # Input might be given as Windows format, start by converting to 43900 # unix format. 43901 path="$with_build_devkit" 43902 new_path=`$CYGPATH -u "$path"` 43903 43904 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43905 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43906 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43907 # "foo.exe" is OK but "foo" is an error. 43908 # 43909 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43910 # It is also a way to make sure we got the proper file name for the real test later on. 43911 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43912 if test "x$test_shortpath" = x; then 43913 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43914 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43915 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 43916 fi 43917 43918 # Call helper function which possibly converts this using DOS-style short mode. 43919 # If so, the updated path is stored in $new_path. 43920 43921 input_path="$new_path" 43922 # Check if we need to convert this using DOS-style short mode. If the path 43923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43924 # take no chances and rewrite it. 43925 # Note: m4 eats our [], so we need to use [ and ] instead. 43926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43927 if test "x$has_forbidden_chars" != x; then 43928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43929 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43930 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43931 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43932 # Going to short mode and back again did indeed matter. Since short mode is 43933 # case insensitive, let's make it lowercase to improve readability. 43934 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43935 # Now convert it back to Unix-style (cygpath) 43936 input_path=`$CYGPATH -u "$shortmode_path"` 43937 new_path="$input_path" 43938 fi 43939 fi 43940 43941 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43942 if test "x$test_cygdrive_prefix" = x; then 43943 # As a simple fix, exclude /usr/bin since it's not a real path. 43944 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43945 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43946 # a path prefixed by /cygdrive for fixpath to work. 43947 new_path="$CYGWIN_ROOT_PATH$input_path" 43948 fi 43949 fi 43950 43951 43952 if test "x$path" != "x$new_path"; then 43953 with_build_devkit="$new_path" 43954 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43955 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43956 fi 43957 43958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43959 43960 path="$with_build_devkit" 43961 has_colon=`$ECHO $path | $GREP ^.:` 43962 new_path="$path" 43963 if test "x$has_colon" = x; then 43964 # Not in mixed or Windows style, start by that. 43965 new_path=`cmd //c echo $path` 43966 fi 43967 43968 43969 input_path="$new_path" 43970 # Check if we need to convert this using DOS-style short mode. If the path 43971 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43972 # take no chances and rewrite it. 43973 # Note: m4 eats our [], so we need to use [ and ] instead. 43974 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43975 if test "x$has_forbidden_chars" != x; then 43976 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43977 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43978 fi 43979 43980 43981 windows_path="$new_path" 43982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43983 unix_path=`$CYGPATH -u "$windows_path"` 43984 new_path="$unix_path" 43985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43987 new_path="$unix_path" 43988 fi 43989 43990 if test "x$path" != "x$new_path"; then 43991 with_build_devkit="$new_path" 43992 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43993 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43994 fi 43995 43996 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43997 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43998 43999 else 44000 # We're on a unix platform. Hooray! :) 44001 path="$with_build_devkit" 44002 has_space=`$ECHO "$path" | $GREP " "` 44003 if test "x$has_space" != x; then 44004 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44005 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44006 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44007 fi 44008 44009 # Use eval to expand a potential ~ 44010 eval path="$path" 44011 if test ! -f "$path" && test ! -d "$path"; then 44012 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 44013 fi 44014 44015 if test -d "$path"; then 44016 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 44017 else 44018 dir="`$DIRNAME "$path"`" 44019 base="`$BASENAME "$path"`" 44020 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 44021 fi 44022 fi 44023 fi 44024 44025 BUILD_DEVKIT_ROOT="$with_build_devkit" 44026 # Check for a meta data info file in the root of the devkit 44027 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 44028 # Process devkit.info so that existing devkit variables are not 44029 # modified by this 44030 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 44031 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 44032 -e "s/\$host/\$build/g" \ 44033 $BUILD_DEVKIT_ROOT/devkit.info \ 44034 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 44035 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 44036 # This potentially sets the following: 44037 # A descriptive name of the devkit 44038 44039 if test "x$BUILD_DEVKIT_NAME" = x; then 44040 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 44041 fi 44042 44043 # Corresponds to --with-extra-path 44044 44045 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 44046 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 44047 fi 44048 44049 # Corresponds to --with-toolchain-path 44050 44051 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44052 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 44053 fi 44054 44055 # Corresponds to --with-sysroot 44056 44057 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 44058 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 44059 fi 44060 44061 # Skip the Window specific parts 44062 fi 44063 44064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 44065 $as_echo_n "checking for build platform devkit... " >&6; } 44066 if test "x$BUILD_DEVKIT_NAME" != x; then 44067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 44068 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 44069 else 44070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 44071 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 44072 fi 44073 44074 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 44075 44076 if test "x$BUILD_SYSROOT" != "x"; then 44077 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 44078 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44079 # Solaris Studio does not have a concept of sysroot. Instead we must 44080 # make sure the default include and lib dirs are appended to each 44081 # compile and link command line. Must also add -I-xbuiltin to enable 44082 # inlining of system functions and intrinsics. 44083 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 44084 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 44085 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 44086 -L$BUILD_SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 44087 fi 44088 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 44089 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 44090 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 44091 elif test "x$TOOLCHAIN_TYPE" = xclang; then 44092 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 44093 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 44094 fi 44095 # Propagate the sysroot args to hotspot 44096 BUILD_LEGACY_EXTRA_CFLAGS="$BUILD_LEGACY_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 44097 BUILD_LEGACY_EXTRA_CXXFLAGS="$BUILD_LEGACY_EXTRA_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44098 BUILD_LEGACY_EXTRA_LDFLAGS="$BUILD_LEGACY_EXTRA_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44099 # The global CFLAGS and LDFLAGS variables need these for configure to function 44100 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 44101 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 44102 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44103 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44104 fi 44105 44106 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 44107 # We also need -iframework<path>/System/Library/Frameworks 44108 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44109 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44110 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 44111 # set this here so it doesn't have to be peppered throughout the forest 44112 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44113 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44114 fi 44115 44116 44117 44118 44119 44120 # Fallback default of just /bin if DEVKIT_PATH is not defined 44121 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44122 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 44123 fi 44124 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 44125 fi 44126 fi 44127 44128 # FIXME: we should list the discovered compilers as an exclude pattern! 44129 # If we do that, we can do this detection before POST_DETECTION, and still 44130 # find the build compilers in the tools dir, if needed. 44131 44132 44133 44134 # Publish this variable in the help. 44135 44136 44137 if [ -z "${BUILD_CC+x}" ]; then 44138 # The variable is not set by user, try to locate tool using the code snippet 44139 for ac_prog in cl cc gcc 44140 do 44141 # Extract the first word of "$ac_prog", so it can be a program name with args. 44142 set dummy $ac_prog; ac_word=$2 44143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44144 $as_echo_n "checking for $ac_word... " >&6; } 44145 if ${ac_cv_path_BUILD_CC+:} false; then : 44146 $as_echo_n "(cached) " >&6 44147 else 44148 case $BUILD_CC in 44149 [\\/]* | ?:[\\/]*) 44150 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44151 ;; 44152 *) 44153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44154 for as_dir in $PATH 44155 do 44156 IFS=$as_save_IFS 44157 test -z "$as_dir" && as_dir=. 44158 for ac_exec_ext in '' $ac_executable_extensions; do 44159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44160 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44162 break 2 44163 fi 44164 done 44165 done 44166 IFS=$as_save_IFS 44167 44168 ;; 44169 esac 44170 fi 44171 BUILD_CC=$ac_cv_path_BUILD_CC 44172 if test -n "$BUILD_CC"; then 44173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44174 $as_echo "$BUILD_CC" >&6; } 44175 else 44176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44177 $as_echo "no" >&6; } 44178 fi 44179 44180 44181 test -n "$BUILD_CC" && break 44182 done 44183 44184 else 44185 # The variable is set, but is it from the command line or the environment? 44186 44187 # Try to remove the string !BUILD_CC! from our list. 44188 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 44189 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44190 # If it failed, the variable was not from the command line. Ignore it, 44191 # but warn the user (except for BASH, which is always set by the calling BASH). 44192 if test "xBUILD_CC" != xBASH; then 44193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 44194 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 44195 fi 44196 # Try to locate tool using the code snippet 44197 for ac_prog in cl cc gcc 44198 do 44199 # Extract the first word of "$ac_prog", so it can be a program name with args. 44200 set dummy $ac_prog; ac_word=$2 44201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44202 $as_echo_n "checking for $ac_word... " >&6; } 44203 if ${ac_cv_path_BUILD_CC+:} false; then : 44204 $as_echo_n "(cached) " >&6 44205 else 44206 case $BUILD_CC in 44207 [\\/]* | ?:[\\/]*) 44208 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44209 ;; 44210 *) 44211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44212 for as_dir in $PATH 44213 do 44214 IFS=$as_save_IFS 44215 test -z "$as_dir" && as_dir=. 44216 for ac_exec_ext in '' $ac_executable_extensions; do 44217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44218 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44220 break 2 44221 fi 44222 done 44223 done 44224 IFS=$as_save_IFS 44225 44226 ;; 44227 esac 44228 fi 44229 BUILD_CC=$ac_cv_path_BUILD_CC 44230 if test -n "$BUILD_CC"; then 44231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44232 $as_echo "$BUILD_CC" >&6; } 44233 else 44234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44235 $as_echo "no" >&6; } 44236 fi 44237 44238 44239 test -n "$BUILD_CC" && break 44240 done 44241 44242 else 44243 # If it succeeded, then it was overridden by the user. We will use it 44244 # for the tool. 44245 44246 # First remove it from the list of overridden variables, so we can test 44247 # for unknown variables in the end. 44248 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44249 44250 # Check if we try to supply an empty value 44251 if test "x$BUILD_CC" = x; then 44252 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 44253 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 44254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44255 $as_echo_n "checking for BUILD_CC... " >&6; } 44256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44257 $as_echo "disabled" >&6; } 44258 else 44259 # Check if the provided tool contains a complete path. 44260 tool_specified="$BUILD_CC" 44261 tool_basename="${tool_specified##*/}" 44262 if test "x$tool_basename" = "x$tool_specified"; then 44263 # A command without a complete path is provided, search $PATH. 44264 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 44265 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 44266 # Extract the first word of "$tool_basename", so it can be a program name with args. 44267 set dummy $tool_basename; ac_word=$2 44268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44269 $as_echo_n "checking for $ac_word... " >&6; } 44270 if ${ac_cv_path_BUILD_CC+:} false; then : 44271 $as_echo_n "(cached) " >&6 44272 else 44273 case $BUILD_CC in 44274 [\\/]* | ?:[\\/]*) 44275 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44276 ;; 44277 *) 44278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44279 for as_dir in $PATH 44280 do 44281 IFS=$as_save_IFS 44282 test -z "$as_dir" && as_dir=. 44283 for ac_exec_ext in '' $ac_executable_extensions; do 44284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44285 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44287 break 2 44288 fi 44289 done 44290 done 44291 IFS=$as_save_IFS 44292 44293 ;; 44294 esac 44295 fi 44296 BUILD_CC=$ac_cv_path_BUILD_CC 44297 if test -n "$BUILD_CC"; then 44298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44299 $as_echo "$BUILD_CC" >&6; } 44300 else 44301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44302 $as_echo "no" >&6; } 44303 fi 44304 44305 44306 if test "x$BUILD_CC" = x; then 44307 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44308 fi 44309 else 44310 # Otherwise we believe it is a complete path. Use it as it is. 44311 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 44312 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 44313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44314 $as_echo_n "checking for BUILD_CC... " >&6; } 44315 if test ! -x "$tool_specified"; then 44316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44317 $as_echo "not found" >&6; } 44318 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 44319 fi 44320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44321 $as_echo "$tool_specified" >&6; } 44322 fi 44323 fi 44324 fi 44325 44326 fi 44327 44328 44329 44330 if test "x$BUILD_CC" = x; then 44331 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 44332 fi 44333 44334 44335 44336 # Only process if variable expands to non-empty 44337 44338 if test "x$BUILD_CC" != x; then 44339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44340 44341 # First separate the path from the arguments. This will split at the first 44342 # space. 44343 complete="$BUILD_CC" 44344 path="${complete%% *}" 44345 tmp="$complete EOL" 44346 arguments="${tmp#* }" 44347 44348 # Input might be given as Windows format, start by converting to 44349 # unix format. 44350 new_path=`$CYGPATH -u "$path"` 44351 44352 # Now try to locate executable using which 44353 new_path=`$WHICH "$new_path" 2> /dev/null` 44354 # bat and cmd files are not always considered executable in cygwin causing which 44355 # to not find them 44356 if test "x$new_path" = x \ 44357 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44358 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44359 new_path=`$CYGPATH -u "$path"` 44360 fi 44361 if test "x$new_path" = x; then 44362 # Oops. Which didn't find the executable. 44363 # The splitting of arguments from the executable at a space might have been incorrect, 44364 # since paths with space are more likely in Windows. Give it another try with the whole 44365 # argument. 44366 path="$complete" 44367 arguments="EOL" 44368 new_path=`$CYGPATH -u "$path"` 44369 new_path=`$WHICH "$new_path" 2> /dev/null` 44370 # bat and cmd files are not always considered executable in cygwin causing which 44371 # to not find them 44372 if test "x$new_path" = x \ 44373 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44374 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44375 new_path=`$CYGPATH -u "$path"` 44376 fi 44377 if test "x$new_path" = x; then 44378 # It's still not found. Now this is an unrecoverable error. 44379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44380 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44381 has_space=`$ECHO "$complete" | $GREP " "` 44382 if test "x$has_space" != x; then 44383 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44384 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44385 fi 44386 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44387 fi 44388 fi 44389 44390 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44391 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44392 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44393 # "foo.exe" is OK but "foo" is an error. 44394 # 44395 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44396 # It is also a way to make sure we got the proper file name for the real test later on. 44397 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44398 if test "x$test_shortpath" = x; then 44399 # Short path failed, file does not exist as specified. 44400 # Try adding .exe or .cmd 44401 if test -f "${new_path}.exe"; then 44402 input_to_shortpath="${new_path}.exe" 44403 elif test -f "${new_path}.cmd"; then 44404 input_to_shortpath="${new_path}.cmd" 44405 else 44406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 44407 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 44408 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44409 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44410 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44411 fi 44412 else 44413 input_to_shortpath="$new_path" 44414 fi 44415 44416 # Call helper function which possibly converts this using DOS-style short mode. 44417 # If so, the updated path is stored in $new_path. 44418 new_path="$input_to_shortpath" 44419 44420 input_path="$input_to_shortpath" 44421 # Check if we need to convert this using DOS-style short mode. If the path 44422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44423 # take no chances and rewrite it. 44424 # Note: m4 eats our [], so we need to use [ and ] instead. 44425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44426 if test "x$has_forbidden_chars" != x; then 44427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44428 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44429 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44430 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44431 # Going to short mode and back again did indeed matter. Since short mode is 44432 # case insensitive, let's make it lowercase to improve readability. 44433 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44434 # Now convert it back to Unix-style (cygpath) 44435 input_path=`$CYGPATH -u "$shortmode_path"` 44436 new_path="$input_path" 44437 fi 44438 fi 44439 44440 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44441 if test "x$test_cygdrive_prefix" = x; then 44442 # As a simple fix, exclude /usr/bin since it's not a real path. 44443 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44444 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44445 # a path prefixed by /cygdrive for fixpath to work. 44446 new_path="$CYGWIN_ROOT_PATH$input_path" 44447 fi 44448 fi 44449 44450 # remove trailing .exe if any 44451 new_path="${new_path/%.exe/}" 44452 44453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44454 44455 # First separate the path from the arguments. This will split at the first 44456 # space. 44457 complete="$BUILD_CC" 44458 path="${complete%% *}" 44459 tmp="$complete EOL" 44460 arguments="${tmp#* }" 44461 44462 # Input might be given as Windows format, start by converting to 44463 # unix format. 44464 new_path="$path" 44465 44466 windows_path="$new_path" 44467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44468 unix_path=`$CYGPATH -u "$windows_path"` 44469 new_path="$unix_path" 44470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44472 new_path="$unix_path" 44473 fi 44474 44475 44476 # Now try to locate executable using which 44477 new_path=`$WHICH "$new_path" 2> /dev/null` 44478 44479 if test "x$new_path" = x; then 44480 # Oops. Which didn't find the executable. 44481 # The splitting of arguments from the executable at a space might have been incorrect, 44482 # since paths with space are more likely in Windows. Give it another try with the whole 44483 # argument. 44484 path="$complete" 44485 arguments="EOL" 44486 new_path="$path" 44487 44488 windows_path="$new_path" 44489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44490 unix_path=`$CYGPATH -u "$windows_path"` 44491 new_path="$unix_path" 44492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44493 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44494 new_path="$unix_path" 44495 fi 44496 44497 44498 new_path=`$WHICH "$new_path" 2> /dev/null` 44499 # bat and cmd files are not always considered executable in MSYS causing which 44500 # to not find them 44501 if test "x$new_path" = x \ 44502 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44503 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44504 new_path="$path" 44505 44506 windows_path="$new_path" 44507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44508 unix_path=`$CYGPATH -u "$windows_path"` 44509 new_path="$unix_path" 44510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44512 new_path="$unix_path" 44513 fi 44514 44515 fi 44516 44517 if test "x$new_path" = x; then 44518 # It's still not found. Now this is an unrecoverable error. 44519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44520 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44521 has_space=`$ECHO "$complete" | $GREP " "` 44522 if test "x$has_space" != x; then 44523 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44524 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44525 fi 44526 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44527 fi 44528 fi 44529 44530 # Now new_path has a complete unix path to the binary 44531 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44532 # Keep paths in /bin as-is, but remove trailing .exe if any 44533 new_path="${new_path/%.exe/}" 44534 # Do not save /bin paths to all_fixpath_prefixes! 44535 else 44536 # Not in mixed or Windows style, start by that. 44537 new_path=`cmd //c echo $new_path` 44538 44539 input_path="$new_path" 44540 # Check if we need to convert this using DOS-style short mode. If the path 44541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44542 # take no chances and rewrite it. 44543 # Note: m4 eats our [], so we need to use [ and ] instead. 44544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44545 if test "x$has_forbidden_chars" != x; then 44546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44547 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44548 fi 44549 44550 # Output is in $new_path 44551 44552 windows_path="$new_path" 44553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44554 unix_path=`$CYGPATH -u "$windows_path"` 44555 new_path="$unix_path" 44556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44557 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44558 new_path="$unix_path" 44559 fi 44560 44561 # remove trailing .exe if any 44562 new_path="${new_path/%.exe/}" 44563 44564 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44565 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44566 fi 44567 44568 else 44569 # We're on a unix platform. Hooray! :) 44570 # First separate the path from the arguments. This will split at the first 44571 # space. 44572 complete="$BUILD_CC" 44573 path="${complete%% *}" 44574 tmp="$complete EOL" 44575 arguments="${tmp#* }" 44576 44577 # Cannot rely on the command "which" here since it doesn't always work. 44578 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44579 if test -z "$is_absolute_path"; then 44580 # Path to executable is not absolute. Find it. 44581 IFS_save="$IFS" 44582 IFS=: 44583 for p in $PATH; do 44584 if test -f "$p/$path" && test -x "$p/$path"; then 44585 new_path="$p/$path" 44586 break 44587 fi 44588 done 44589 IFS="$IFS_save" 44590 else 44591 # This is an absolute path, we can use it without further modifications. 44592 new_path="$path" 44593 fi 44594 44595 if test "x$new_path" = x; then 44596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44597 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44598 has_space=`$ECHO "$complete" | $GREP " "` 44599 if test "x$has_space" != x; then 44600 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44601 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44602 fi 44603 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44604 fi 44605 fi 44606 44607 # Now join together the path and the arguments once again 44608 if test "x$arguments" != xEOL; then 44609 new_complete="$new_path ${arguments% *}" 44610 else 44611 new_complete="$new_path" 44612 fi 44613 44614 if test "x$complete" != "x$new_complete"; then 44615 BUILD_CC="$new_complete" 44616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 44617 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 44618 fi 44619 fi 44620 44621 44622 44623 44624 # Publish this variable in the help. 44625 44626 44627 if [ -z "${BUILD_CXX+x}" ]; then 44628 # The variable is not set by user, try to locate tool using the code snippet 44629 for ac_prog in cl CC g++ 44630 do 44631 # Extract the first word of "$ac_prog", so it can be a program name with args. 44632 set dummy $ac_prog; ac_word=$2 44633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44634 $as_echo_n "checking for $ac_word... " >&6; } 44635 if ${ac_cv_path_BUILD_CXX+:} false; then : 44636 $as_echo_n "(cached) " >&6 44637 else 44638 case $BUILD_CXX in 44639 [\\/]* | ?:[\\/]*) 44640 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44641 ;; 44642 *) 44643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44644 for as_dir in $PATH 44645 do 44646 IFS=$as_save_IFS 44647 test -z "$as_dir" && as_dir=. 44648 for ac_exec_ext in '' $ac_executable_extensions; do 44649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44650 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44652 break 2 44653 fi 44654 done 44655 done 44656 IFS=$as_save_IFS 44657 44658 ;; 44659 esac 44660 fi 44661 BUILD_CXX=$ac_cv_path_BUILD_CXX 44662 if test -n "$BUILD_CXX"; then 44663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44664 $as_echo "$BUILD_CXX" >&6; } 44665 else 44666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44667 $as_echo "no" >&6; } 44668 fi 44669 44670 44671 test -n "$BUILD_CXX" && break 44672 done 44673 44674 else 44675 # The variable is set, but is it from the command line or the environment? 44676 44677 # Try to remove the string !BUILD_CXX! from our list. 44678 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 44679 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44680 # If it failed, the variable was not from the command line. Ignore it, 44681 # but warn the user (except for BASH, which is always set by the calling BASH). 44682 if test "xBUILD_CXX" != xBASH; then 44683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 44684 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 44685 fi 44686 # Try to locate tool using the code snippet 44687 for ac_prog in cl CC g++ 44688 do 44689 # Extract the first word of "$ac_prog", so it can be a program name with args. 44690 set dummy $ac_prog; ac_word=$2 44691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44692 $as_echo_n "checking for $ac_word... " >&6; } 44693 if ${ac_cv_path_BUILD_CXX+:} false; then : 44694 $as_echo_n "(cached) " >&6 44695 else 44696 case $BUILD_CXX in 44697 [\\/]* | ?:[\\/]*) 44698 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44699 ;; 44700 *) 44701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44702 for as_dir in $PATH 44703 do 44704 IFS=$as_save_IFS 44705 test -z "$as_dir" && as_dir=. 44706 for ac_exec_ext in '' $ac_executable_extensions; do 44707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44708 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44710 break 2 44711 fi 44712 done 44713 done 44714 IFS=$as_save_IFS 44715 44716 ;; 44717 esac 44718 fi 44719 BUILD_CXX=$ac_cv_path_BUILD_CXX 44720 if test -n "$BUILD_CXX"; then 44721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44722 $as_echo "$BUILD_CXX" >&6; } 44723 else 44724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44725 $as_echo "no" >&6; } 44726 fi 44727 44728 44729 test -n "$BUILD_CXX" && break 44730 done 44731 44732 else 44733 # If it succeeded, then it was overridden by the user. We will use it 44734 # for the tool. 44735 44736 # First remove it from the list of overridden variables, so we can test 44737 # for unknown variables in the end. 44738 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44739 44740 # Check if we try to supply an empty value 44741 if test "x$BUILD_CXX" = x; then 44742 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 44743 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 44744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44745 $as_echo_n "checking for BUILD_CXX... " >&6; } 44746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44747 $as_echo "disabled" >&6; } 44748 else 44749 # Check if the provided tool contains a complete path. 44750 tool_specified="$BUILD_CXX" 44751 tool_basename="${tool_specified##*/}" 44752 if test "x$tool_basename" = "x$tool_specified"; then 44753 # A command without a complete path is provided, search $PATH. 44754 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 44755 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 44756 # Extract the first word of "$tool_basename", so it can be a program name with args. 44757 set dummy $tool_basename; ac_word=$2 44758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44759 $as_echo_n "checking for $ac_word... " >&6; } 44760 if ${ac_cv_path_BUILD_CXX+:} false; then : 44761 $as_echo_n "(cached) " >&6 44762 else 44763 case $BUILD_CXX in 44764 [\\/]* | ?:[\\/]*) 44765 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44766 ;; 44767 *) 44768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44769 for as_dir in $PATH 44770 do 44771 IFS=$as_save_IFS 44772 test -z "$as_dir" && as_dir=. 44773 for ac_exec_ext in '' $ac_executable_extensions; do 44774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44775 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44777 break 2 44778 fi 44779 done 44780 done 44781 IFS=$as_save_IFS 44782 44783 ;; 44784 esac 44785 fi 44786 BUILD_CXX=$ac_cv_path_BUILD_CXX 44787 if test -n "$BUILD_CXX"; then 44788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44789 $as_echo "$BUILD_CXX" >&6; } 44790 else 44791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44792 $as_echo "no" >&6; } 44793 fi 44794 44795 44796 if test "x$BUILD_CXX" = x; then 44797 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44798 fi 44799 else 44800 # Otherwise we believe it is a complete path. Use it as it is. 44801 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 44802 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 44803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44804 $as_echo_n "checking for BUILD_CXX... " >&6; } 44805 if test ! -x "$tool_specified"; then 44806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44807 $as_echo "not found" >&6; } 44808 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 44809 fi 44810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44811 $as_echo "$tool_specified" >&6; } 44812 fi 44813 fi 44814 fi 44815 44816 fi 44817 44818 44819 44820 if test "x$BUILD_CXX" = x; then 44821 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 44822 fi 44823 44824 44825 44826 # Only process if variable expands to non-empty 44827 44828 if test "x$BUILD_CXX" != x; then 44829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44830 44831 # First separate the path from the arguments. This will split at the first 44832 # space. 44833 complete="$BUILD_CXX" 44834 path="${complete%% *}" 44835 tmp="$complete EOL" 44836 arguments="${tmp#* }" 44837 44838 # Input might be given as Windows format, start by converting to 44839 # unix format. 44840 new_path=`$CYGPATH -u "$path"` 44841 44842 # Now try to locate executable using which 44843 new_path=`$WHICH "$new_path" 2> /dev/null` 44844 # bat and cmd files are not always considered executable in cygwin causing which 44845 # to not find them 44846 if test "x$new_path" = x \ 44847 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44848 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44849 new_path=`$CYGPATH -u "$path"` 44850 fi 44851 if test "x$new_path" = x; then 44852 # Oops. Which didn't find the executable. 44853 # The splitting of arguments from the executable at a space might have been incorrect, 44854 # since paths with space are more likely in Windows. Give it another try with the whole 44855 # argument. 44856 path="$complete" 44857 arguments="EOL" 44858 new_path=`$CYGPATH -u "$path"` 44859 new_path=`$WHICH "$new_path" 2> /dev/null` 44860 # bat and cmd files are not always considered executable in cygwin causing which 44861 # to not find them 44862 if test "x$new_path" = x \ 44863 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44864 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44865 new_path=`$CYGPATH -u "$path"` 44866 fi 44867 if test "x$new_path" = x; then 44868 # It's still not found. Now this is an unrecoverable error. 44869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44870 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44871 has_space=`$ECHO "$complete" | $GREP " "` 44872 if test "x$has_space" != x; then 44873 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44874 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44875 fi 44876 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44877 fi 44878 fi 44879 44880 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44881 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44882 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44883 # "foo.exe" is OK but "foo" is an error. 44884 # 44885 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44886 # It is also a way to make sure we got the proper file name for the real test later on. 44887 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44888 if test "x$test_shortpath" = x; then 44889 # Short path failed, file does not exist as specified. 44890 # Try adding .exe or .cmd 44891 if test -f "${new_path}.exe"; then 44892 input_to_shortpath="${new_path}.exe" 44893 elif test -f "${new_path}.cmd"; then 44894 input_to_shortpath="${new_path}.cmd" 44895 else 44896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 44897 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 44898 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44899 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44900 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44901 fi 44902 else 44903 input_to_shortpath="$new_path" 44904 fi 44905 44906 # Call helper function which possibly converts this using DOS-style short mode. 44907 # If so, the updated path is stored in $new_path. 44908 new_path="$input_to_shortpath" 44909 44910 input_path="$input_to_shortpath" 44911 # Check if we need to convert this using DOS-style short mode. If the path 44912 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44913 # take no chances and rewrite it. 44914 # Note: m4 eats our [], so we need to use [ and ] instead. 44915 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44916 if test "x$has_forbidden_chars" != x; then 44917 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44918 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44919 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44920 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44921 # Going to short mode and back again did indeed matter. Since short mode is 44922 # case insensitive, let's make it lowercase to improve readability. 44923 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44924 # Now convert it back to Unix-style (cygpath) 44925 input_path=`$CYGPATH -u "$shortmode_path"` 44926 new_path="$input_path" 44927 fi 44928 fi 44929 44930 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44931 if test "x$test_cygdrive_prefix" = x; then 44932 # As a simple fix, exclude /usr/bin since it's not a real path. 44933 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44934 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44935 # a path prefixed by /cygdrive for fixpath to work. 44936 new_path="$CYGWIN_ROOT_PATH$input_path" 44937 fi 44938 fi 44939 44940 # remove trailing .exe if any 44941 new_path="${new_path/%.exe/}" 44942 44943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44944 44945 # First separate the path from the arguments. This will split at the first 44946 # space. 44947 complete="$BUILD_CXX" 44948 path="${complete%% *}" 44949 tmp="$complete EOL" 44950 arguments="${tmp#* }" 44951 44952 # Input might be given as Windows format, start by converting to 44953 # unix format. 44954 new_path="$path" 44955 44956 windows_path="$new_path" 44957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44958 unix_path=`$CYGPATH -u "$windows_path"` 44959 new_path="$unix_path" 44960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44962 new_path="$unix_path" 44963 fi 44964 44965 44966 # Now try to locate executable using which 44967 new_path=`$WHICH "$new_path" 2> /dev/null` 44968 44969 if test "x$new_path" = x; then 44970 # Oops. Which didn't find the executable. 44971 # The splitting of arguments from the executable at a space might have been incorrect, 44972 # since paths with space are more likely in Windows. Give it another try with the whole 44973 # argument. 44974 path="$complete" 44975 arguments="EOL" 44976 new_path="$path" 44977 44978 windows_path="$new_path" 44979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44980 unix_path=`$CYGPATH -u "$windows_path"` 44981 new_path="$unix_path" 44982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44983 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44984 new_path="$unix_path" 44985 fi 44986 44987 44988 new_path=`$WHICH "$new_path" 2> /dev/null` 44989 # bat and cmd files are not always considered executable in MSYS causing which 44990 # to not find them 44991 if test "x$new_path" = x \ 44992 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44993 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44994 new_path="$path" 44995 44996 windows_path="$new_path" 44997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44998 unix_path=`$CYGPATH -u "$windows_path"` 44999 new_path="$unix_path" 45000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45002 new_path="$unix_path" 45003 fi 45004 45005 fi 45006 45007 if test "x$new_path" = x; then 45008 # It's still not found. Now this is an unrecoverable error. 45009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45010 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45011 has_space=`$ECHO "$complete" | $GREP " "` 45012 if test "x$has_space" != x; then 45013 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45014 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45015 fi 45016 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45017 fi 45018 fi 45019 45020 # Now new_path has a complete unix path to the binary 45021 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45022 # Keep paths in /bin as-is, but remove trailing .exe if any 45023 new_path="${new_path/%.exe/}" 45024 # Do not save /bin paths to all_fixpath_prefixes! 45025 else 45026 # Not in mixed or Windows style, start by that. 45027 new_path=`cmd //c echo $new_path` 45028 45029 input_path="$new_path" 45030 # Check if we need to convert this using DOS-style short mode. If the path 45031 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45032 # take no chances and rewrite it. 45033 # Note: m4 eats our [], so we need to use [ and ] instead. 45034 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45035 if test "x$has_forbidden_chars" != x; then 45036 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45037 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45038 fi 45039 45040 # Output is in $new_path 45041 45042 windows_path="$new_path" 45043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45044 unix_path=`$CYGPATH -u "$windows_path"` 45045 new_path="$unix_path" 45046 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45047 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45048 new_path="$unix_path" 45049 fi 45050 45051 # remove trailing .exe if any 45052 new_path="${new_path/%.exe/}" 45053 45054 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45055 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45056 fi 45057 45058 else 45059 # We're on a unix platform. Hooray! :) 45060 # First separate the path from the arguments. This will split at the first 45061 # space. 45062 complete="$BUILD_CXX" 45063 path="${complete%% *}" 45064 tmp="$complete EOL" 45065 arguments="${tmp#* }" 45066 45067 # Cannot rely on the command "which" here since it doesn't always work. 45068 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45069 if test -z "$is_absolute_path"; then 45070 # Path to executable is not absolute. Find it. 45071 IFS_save="$IFS" 45072 IFS=: 45073 for p in $PATH; do 45074 if test -f "$p/$path" && test -x "$p/$path"; then 45075 new_path="$p/$path" 45076 break 45077 fi 45078 done 45079 IFS="$IFS_save" 45080 else 45081 # This is an absolute path, we can use it without further modifications. 45082 new_path="$path" 45083 fi 45084 45085 if test "x$new_path" = x; then 45086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45087 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45088 has_space=`$ECHO "$complete" | $GREP " "` 45089 if test "x$has_space" != x; then 45090 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45091 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45092 fi 45093 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45094 fi 45095 fi 45096 45097 # Now join together the path and the arguments once again 45098 if test "x$arguments" != xEOL; then 45099 new_complete="$new_path ${arguments% *}" 45100 else 45101 new_complete="$new_path" 45102 fi 45103 45104 if test "x$complete" != "x$new_complete"; then 45105 BUILD_CXX="$new_complete" 45106 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 45107 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 45108 fi 45109 fi 45110 45111 45112 45113 # Publish this variable in the help. 45114 45115 45116 if [ -z "${BUILD_NM+x}" ]; then 45117 # The variable is not set by user, try to locate tool using the code snippet 45118 for ac_prog in nm gcc-nm 45119 do 45120 # Extract the first word of "$ac_prog", so it can be a program name with args. 45121 set dummy $ac_prog; ac_word=$2 45122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45123 $as_echo_n "checking for $ac_word... " >&6; } 45124 if ${ac_cv_path_BUILD_NM+:} false; then : 45125 $as_echo_n "(cached) " >&6 45126 else 45127 case $BUILD_NM in 45128 [\\/]* | ?:[\\/]*) 45129 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45130 ;; 45131 *) 45132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45133 for as_dir in $PATH 45134 do 45135 IFS=$as_save_IFS 45136 test -z "$as_dir" && as_dir=. 45137 for ac_exec_ext in '' $ac_executable_extensions; do 45138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45139 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45141 break 2 45142 fi 45143 done 45144 done 45145 IFS=$as_save_IFS 45146 45147 ;; 45148 esac 45149 fi 45150 BUILD_NM=$ac_cv_path_BUILD_NM 45151 if test -n "$BUILD_NM"; then 45152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45153 $as_echo "$BUILD_NM" >&6; } 45154 else 45155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45156 $as_echo "no" >&6; } 45157 fi 45158 45159 45160 test -n "$BUILD_NM" && break 45161 done 45162 45163 else 45164 # The variable is set, but is it from the command line or the environment? 45165 45166 # Try to remove the string !BUILD_NM! from our list. 45167 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 45168 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45169 # If it failed, the variable was not from the command line. Ignore it, 45170 # but warn the user (except for BASH, which is always set by the calling BASH). 45171 if test "xBUILD_NM" != xBASH; then 45172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 45173 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 45174 fi 45175 # Try to locate tool using the code snippet 45176 for ac_prog in nm gcc-nm 45177 do 45178 # Extract the first word of "$ac_prog", so it can be a program name with args. 45179 set dummy $ac_prog; ac_word=$2 45180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45181 $as_echo_n "checking for $ac_word... " >&6; } 45182 if ${ac_cv_path_BUILD_NM+:} false; then : 45183 $as_echo_n "(cached) " >&6 45184 else 45185 case $BUILD_NM in 45186 [\\/]* | ?:[\\/]*) 45187 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45188 ;; 45189 *) 45190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45191 for as_dir in $PATH 45192 do 45193 IFS=$as_save_IFS 45194 test -z "$as_dir" && as_dir=. 45195 for ac_exec_ext in '' $ac_executable_extensions; do 45196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45197 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45199 break 2 45200 fi 45201 done 45202 done 45203 IFS=$as_save_IFS 45204 45205 ;; 45206 esac 45207 fi 45208 BUILD_NM=$ac_cv_path_BUILD_NM 45209 if test -n "$BUILD_NM"; then 45210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45211 $as_echo "$BUILD_NM" >&6; } 45212 else 45213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45214 $as_echo "no" >&6; } 45215 fi 45216 45217 45218 test -n "$BUILD_NM" && break 45219 done 45220 45221 else 45222 # If it succeeded, then it was overridden by the user. We will use it 45223 # for the tool. 45224 45225 # First remove it from the list of overridden variables, so we can test 45226 # for unknown variables in the end. 45227 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45228 45229 # Check if we try to supply an empty value 45230 if test "x$BUILD_NM" = x; then 45231 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 45232 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 45233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45234 $as_echo_n "checking for BUILD_NM... " >&6; } 45235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45236 $as_echo "disabled" >&6; } 45237 else 45238 # Check if the provided tool contains a complete path. 45239 tool_specified="$BUILD_NM" 45240 tool_basename="${tool_specified##*/}" 45241 if test "x$tool_basename" = "x$tool_specified"; then 45242 # A command without a complete path is provided, search $PATH. 45243 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 45244 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 45245 # Extract the first word of "$tool_basename", so it can be a program name with args. 45246 set dummy $tool_basename; ac_word=$2 45247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45248 $as_echo_n "checking for $ac_word... " >&6; } 45249 if ${ac_cv_path_BUILD_NM+:} false; then : 45250 $as_echo_n "(cached) " >&6 45251 else 45252 case $BUILD_NM in 45253 [\\/]* | ?:[\\/]*) 45254 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45255 ;; 45256 *) 45257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45258 for as_dir in $PATH 45259 do 45260 IFS=$as_save_IFS 45261 test -z "$as_dir" && as_dir=. 45262 for ac_exec_ext in '' $ac_executable_extensions; do 45263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45264 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45266 break 2 45267 fi 45268 done 45269 done 45270 IFS=$as_save_IFS 45271 45272 ;; 45273 esac 45274 fi 45275 BUILD_NM=$ac_cv_path_BUILD_NM 45276 if test -n "$BUILD_NM"; then 45277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45278 $as_echo "$BUILD_NM" >&6; } 45279 else 45280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45281 $as_echo "no" >&6; } 45282 fi 45283 45284 45285 if test "x$BUILD_NM" = x; then 45286 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45287 fi 45288 else 45289 # Otherwise we believe it is a complete path. Use it as it is. 45290 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 45291 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 45292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45293 $as_echo_n "checking for BUILD_NM... " >&6; } 45294 if test ! -x "$tool_specified"; then 45295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45296 $as_echo "not found" >&6; } 45297 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 45298 fi 45299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45300 $as_echo "$tool_specified" >&6; } 45301 fi 45302 fi 45303 fi 45304 45305 fi 45306 45307 45308 45309 # Only process if variable expands to non-empty 45310 45311 if test "x$BUILD_NM" != x; then 45312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45313 45314 # First separate the path from the arguments. This will split at the first 45315 # space. 45316 complete="$BUILD_NM" 45317 path="${complete%% *}" 45318 tmp="$complete EOL" 45319 arguments="${tmp#* }" 45320 45321 # Input might be given as Windows format, start by converting to 45322 # unix format. 45323 new_path=`$CYGPATH -u "$path"` 45324 45325 # Now try to locate executable using which 45326 new_path=`$WHICH "$new_path" 2> /dev/null` 45327 # bat and cmd files are not always considered executable in cygwin causing which 45328 # to not find them 45329 if test "x$new_path" = x \ 45330 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45331 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45332 new_path=`$CYGPATH -u "$path"` 45333 fi 45334 if test "x$new_path" = x; then 45335 # Oops. Which didn't find the executable. 45336 # The splitting of arguments from the executable at a space might have been incorrect, 45337 # since paths with space are more likely in Windows. Give it another try with the whole 45338 # argument. 45339 path="$complete" 45340 arguments="EOL" 45341 new_path=`$CYGPATH -u "$path"` 45342 new_path=`$WHICH "$new_path" 2> /dev/null` 45343 # bat and cmd files are not always considered executable in cygwin causing which 45344 # to not find them 45345 if test "x$new_path" = x \ 45346 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45347 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45348 new_path=`$CYGPATH -u "$path"` 45349 fi 45350 if test "x$new_path" = x; then 45351 # It's still not found. Now this is an unrecoverable error. 45352 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45353 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45354 has_space=`$ECHO "$complete" | $GREP " "` 45355 if test "x$has_space" != x; then 45356 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45357 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45358 fi 45359 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45360 fi 45361 fi 45362 45363 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45364 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45365 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45366 # "foo.exe" is OK but "foo" is an error. 45367 # 45368 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45369 # It is also a way to make sure we got the proper file name for the real test later on. 45370 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45371 if test "x$test_shortpath" = x; then 45372 # Short path failed, file does not exist as specified. 45373 # Try adding .exe or .cmd 45374 if test -f "${new_path}.exe"; then 45375 input_to_shortpath="${new_path}.exe" 45376 elif test -f "${new_path}.cmd"; then 45377 input_to_shortpath="${new_path}.cmd" 45378 else 45379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 45380 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 45381 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45382 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45383 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45384 fi 45385 else 45386 input_to_shortpath="$new_path" 45387 fi 45388 45389 # Call helper function which possibly converts this using DOS-style short mode. 45390 # If so, the updated path is stored in $new_path. 45391 new_path="$input_to_shortpath" 45392 45393 input_path="$input_to_shortpath" 45394 # Check if we need to convert this using DOS-style short mode. If the path 45395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45396 # take no chances and rewrite it. 45397 # Note: m4 eats our [], so we need to use [ and ] instead. 45398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45399 if test "x$has_forbidden_chars" != x; then 45400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45401 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45402 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45403 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45404 # Going to short mode and back again did indeed matter. Since short mode is 45405 # case insensitive, let's make it lowercase to improve readability. 45406 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45407 # Now convert it back to Unix-style (cygpath) 45408 input_path=`$CYGPATH -u "$shortmode_path"` 45409 new_path="$input_path" 45410 fi 45411 fi 45412 45413 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45414 if test "x$test_cygdrive_prefix" = x; then 45415 # As a simple fix, exclude /usr/bin since it's not a real path. 45416 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45417 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45418 # a path prefixed by /cygdrive for fixpath to work. 45419 new_path="$CYGWIN_ROOT_PATH$input_path" 45420 fi 45421 fi 45422 45423 # remove trailing .exe if any 45424 new_path="${new_path/%.exe/}" 45425 45426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45427 45428 # First separate the path from the arguments. This will split at the first 45429 # space. 45430 complete="$BUILD_NM" 45431 path="${complete%% *}" 45432 tmp="$complete EOL" 45433 arguments="${tmp#* }" 45434 45435 # Input might be given as Windows format, start by converting to 45436 # unix format. 45437 new_path="$path" 45438 45439 windows_path="$new_path" 45440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45441 unix_path=`$CYGPATH -u "$windows_path"` 45442 new_path="$unix_path" 45443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45445 new_path="$unix_path" 45446 fi 45447 45448 45449 # Now try to locate executable using which 45450 new_path=`$WHICH "$new_path" 2> /dev/null` 45451 45452 if test "x$new_path" = x; then 45453 # Oops. Which didn't find the executable. 45454 # The splitting of arguments from the executable at a space might have been incorrect, 45455 # since paths with space are more likely in Windows. Give it another try with the whole 45456 # argument. 45457 path="$complete" 45458 arguments="EOL" 45459 new_path="$path" 45460 45461 windows_path="$new_path" 45462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45463 unix_path=`$CYGPATH -u "$windows_path"` 45464 new_path="$unix_path" 45465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45466 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45467 new_path="$unix_path" 45468 fi 45469 45470 45471 new_path=`$WHICH "$new_path" 2> /dev/null` 45472 # bat and cmd files are not always considered executable in MSYS causing which 45473 # to not find them 45474 if test "x$new_path" = x \ 45475 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45476 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45477 new_path="$path" 45478 45479 windows_path="$new_path" 45480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45481 unix_path=`$CYGPATH -u "$windows_path"` 45482 new_path="$unix_path" 45483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45484 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45485 new_path="$unix_path" 45486 fi 45487 45488 fi 45489 45490 if test "x$new_path" = x; then 45491 # It's still not found. Now this is an unrecoverable error. 45492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45493 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45494 has_space=`$ECHO "$complete" | $GREP " "` 45495 if test "x$has_space" != x; then 45496 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45497 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45498 fi 45499 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45500 fi 45501 fi 45502 45503 # Now new_path has a complete unix path to the binary 45504 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45505 # Keep paths in /bin as-is, but remove trailing .exe if any 45506 new_path="${new_path/%.exe/}" 45507 # Do not save /bin paths to all_fixpath_prefixes! 45508 else 45509 # Not in mixed or Windows style, start by that. 45510 new_path=`cmd //c echo $new_path` 45511 45512 input_path="$new_path" 45513 # Check if we need to convert this using DOS-style short mode. If the path 45514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45515 # take no chances and rewrite it. 45516 # Note: m4 eats our [], so we need to use [ and ] instead. 45517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45518 if test "x$has_forbidden_chars" != x; then 45519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45520 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45521 fi 45522 45523 # Output is in $new_path 45524 45525 windows_path="$new_path" 45526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45527 unix_path=`$CYGPATH -u "$windows_path"` 45528 new_path="$unix_path" 45529 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45530 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45531 new_path="$unix_path" 45532 fi 45533 45534 # remove trailing .exe if any 45535 new_path="${new_path/%.exe/}" 45536 45537 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45538 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45539 fi 45540 45541 else 45542 # We're on a unix platform. Hooray! :) 45543 # First separate the path from the arguments. This will split at the first 45544 # space. 45545 complete="$BUILD_NM" 45546 path="${complete%% *}" 45547 tmp="$complete EOL" 45548 arguments="${tmp#* }" 45549 45550 # Cannot rely on the command "which" here since it doesn't always work. 45551 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45552 if test -z "$is_absolute_path"; then 45553 # Path to executable is not absolute. Find it. 45554 IFS_save="$IFS" 45555 IFS=: 45556 for p in $PATH; do 45557 if test -f "$p/$path" && test -x "$p/$path"; then 45558 new_path="$p/$path" 45559 break 45560 fi 45561 done 45562 IFS="$IFS_save" 45563 else 45564 # This is an absolute path, we can use it without further modifications. 45565 new_path="$path" 45566 fi 45567 45568 if test "x$new_path" = x; then 45569 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45570 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45571 has_space=`$ECHO "$complete" | $GREP " "` 45572 if test "x$has_space" != x; then 45573 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45574 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45575 fi 45576 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45577 fi 45578 fi 45579 45580 # Now join together the path and the arguments once again 45581 if test "x$arguments" != xEOL; then 45582 new_complete="$new_path ${arguments% *}" 45583 else 45584 new_complete="$new_path" 45585 fi 45586 45587 if test "x$complete" != "x$new_complete"; then 45588 BUILD_NM="$new_complete" 45589 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 45590 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 45591 fi 45592 fi 45593 45594 45595 45596 # Publish this variable in the help. 45597 45598 45599 if [ -z "${BUILD_AR+x}" ]; then 45600 # The variable is not set by user, try to locate tool using the code snippet 45601 for ac_prog in ar gcc-ar 45602 do 45603 # Extract the first word of "$ac_prog", so it can be a program name with args. 45604 set dummy $ac_prog; ac_word=$2 45605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45606 $as_echo_n "checking for $ac_word... " >&6; } 45607 if ${ac_cv_path_BUILD_AR+:} false; then : 45608 $as_echo_n "(cached) " >&6 45609 else 45610 case $BUILD_AR in 45611 [\\/]* | ?:[\\/]*) 45612 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45613 ;; 45614 *) 45615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45616 for as_dir in $PATH 45617 do 45618 IFS=$as_save_IFS 45619 test -z "$as_dir" && as_dir=. 45620 for ac_exec_ext in '' $ac_executable_extensions; do 45621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45622 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45624 break 2 45625 fi 45626 done 45627 done 45628 IFS=$as_save_IFS 45629 45630 ;; 45631 esac 45632 fi 45633 BUILD_AR=$ac_cv_path_BUILD_AR 45634 if test -n "$BUILD_AR"; then 45635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45636 $as_echo "$BUILD_AR" >&6; } 45637 else 45638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45639 $as_echo "no" >&6; } 45640 fi 45641 45642 45643 test -n "$BUILD_AR" && break 45644 done 45645 45646 else 45647 # The variable is set, but is it from the command line or the environment? 45648 45649 # Try to remove the string !BUILD_AR! from our list. 45650 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 45651 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45652 # If it failed, the variable was not from the command line. Ignore it, 45653 # but warn the user (except for BASH, which is always set by the calling BASH). 45654 if test "xBUILD_AR" != xBASH; then 45655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 45656 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 45657 fi 45658 # Try to locate tool using the code snippet 45659 for ac_prog in ar gcc-ar 45660 do 45661 # Extract the first word of "$ac_prog", so it can be a program name with args. 45662 set dummy $ac_prog; ac_word=$2 45663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45664 $as_echo_n "checking for $ac_word... " >&6; } 45665 if ${ac_cv_path_BUILD_AR+:} false; then : 45666 $as_echo_n "(cached) " >&6 45667 else 45668 case $BUILD_AR in 45669 [\\/]* | ?:[\\/]*) 45670 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45671 ;; 45672 *) 45673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45674 for as_dir in $PATH 45675 do 45676 IFS=$as_save_IFS 45677 test -z "$as_dir" && as_dir=. 45678 for ac_exec_ext in '' $ac_executable_extensions; do 45679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45680 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45682 break 2 45683 fi 45684 done 45685 done 45686 IFS=$as_save_IFS 45687 45688 ;; 45689 esac 45690 fi 45691 BUILD_AR=$ac_cv_path_BUILD_AR 45692 if test -n "$BUILD_AR"; then 45693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45694 $as_echo "$BUILD_AR" >&6; } 45695 else 45696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45697 $as_echo "no" >&6; } 45698 fi 45699 45700 45701 test -n "$BUILD_AR" && break 45702 done 45703 45704 else 45705 # If it succeeded, then it was overridden by the user. We will use it 45706 # for the tool. 45707 45708 # First remove it from the list of overridden variables, so we can test 45709 # for unknown variables in the end. 45710 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45711 45712 # Check if we try to supply an empty value 45713 if test "x$BUILD_AR" = x; then 45714 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 45715 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 45716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45717 $as_echo_n "checking for BUILD_AR... " >&6; } 45718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45719 $as_echo "disabled" >&6; } 45720 else 45721 # Check if the provided tool contains a complete path. 45722 tool_specified="$BUILD_AR" 45723 tool_basename="${tool_specified##*/}" 45724 if test "x$tool_basename" = "x$tool_specified"; then 45725 # A command without a complete path is provided, search $PATH. 45726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 45727 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 45728 # Extract the first word of "$tool_basename", so it can be a program name with args. 45729 set dummy $tool_basename; ac_word=$2 45730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45731 $as_echo_n "checking for $ac_word... " >&6; } 45732 if ${ac_cv_path_BUILD_AR+:} false; then : 45733 $as_echo_n "(cached) " >&6 45734 else 45735 case $BUILD_AR in 45736 [\\/]* | ?:[\\/]*) 45737 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45738 ;; 45739 *) 45740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45741 for as_dir in $PATH 45742 do 45743 IFS=$as_save_IFS 45744 test -z "$as_dir" && as_dir=. 45745 for ac_exec_ext in '' $ac_executable_extensions; do 45746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45747 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45749 break 2 45750 fi 45751 done 45752 done 45753 IFS=$as_save_IFS 45754 45755 ;; 45756 esac 45757 fi 45758 BUILD_AR=$ac_cv_path_BUILD_AR 45759 if test -n "$BUILD_AR"; then 45760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45761 $as_echo "$BUILD_AR" >&6; } 45762 else 45763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45764 $as_echo "no" >&6; } 45765 fi 45766 45767 45768 if test "x$BUILD_AR" = x; then 45769 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45770 fi 45771 else 45772 # Otherwise we believe it is a complete path. Use it as it is. 45773 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 45774 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 45775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45776 $as_echo_n "checking for BUILD_AR... " >&6; } 45777 if test ! -x "$tool_specified"; then 45778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45779 $as_echo "not found" >&6; } 45780 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 45781 fi 45782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45783 $as_echo "$tool_specified" >&6; } 45784 fi 45785 fi 45786 fi 45787 45788 fi 45789 45790 45791 45792 # Only process if variable expands to non-empty 45793 45794 if test "x$BUILD_AR" != x; then 45795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45796 45797 # First separate the path from the arguments. This will split at the first 45798 # space. 45799 complete="$BUILD_AR" 45800 path="${complete%% *}" 45801 tmp="$complete EOL" 45802 arguments="${tmp#* }" 45803 45804 # Input might be given as Windows format, start by converting to 45805 # unix format. 45806 new_path=`$CYGPATH -u "$path"` 45807 45808 # Now try to locate executable using which 45809 new_path=`$WHICH "$new_path" 2> /dev/null` 45810 # bat and cmd files are not always considered executable in cygwin causing which 45811 # to not find them 45812 if test "x$new_path" = x \ 45813 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45814 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45815 new_path=`$CYGPATH -u "$path"` 45816 fi 45817 if test "x$new_path" = x; then 45818 # Oops. Which didn't find the executable. 45819 # The splitting of arguments from the executable at a space might have been incorrect, 45820 # since paths with space are more likely in Windows. Give it another try with the whole 45821 # argument. 45822 path="$complete" 45823 arguments="EOL" 45824 new_path=`$CYGPATH -u "$path"` 45825 new_path=`$WHICH "$new_path" 2> /dev/null` 45826 # bat and cmd files are not always considered executable in cygwin causing which 45827 # to not find them 45828 if test "x$new_path" = x \ 45829 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45830 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45831 new_path=`$CYGPATH -u "$path"` 45832 fi 45833 if test "x$new_path" = x; then 45834 # It's still not found. Now this is an unrecoverable error. 45835 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45836 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45837 has_space=`$ECHO "$complete" | $GREP " "` 45838 if test "x$has_space" != x; then 45839 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45840 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45841 fi 45842 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45843 fi 45844 fi 45845 45846 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45847 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45848 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45849 # "foo.exe" is OK but "foo" is an error. 45850 # 45851 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45852 # It is also a way to make sure we got the proper file name for the real test later on. 45853 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45854 if test "x$test_shortpath" = x; then 45855 # Short path failed, file does not exist as specified. 45856 # Try adding .exe or .cmd 45857 if test -f "${new_path}.exe"; then 45858 input_to_shortpath="${new_path}.exe" 45859 elif test -f "${new_path}.cmd"; then 45860 input_to_shortpath="${new_path}.cmd" 45861 else 45862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 45863 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 45864 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45865 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45866 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45867 fi 45868 else 45869 input_to_shortpath="$new_path" 45870 fi 45871 45872 # Call helper function which possibly converts this using DOS-style short mode. 45873 # If so, the updated path is stored in $new_path. 45874 new_path="$input_to_shortpath" 45875 45876 input_path="$input_to_shortpath" 45877 # Check if we need to convert this using DOS-style short mode. If the path 45878 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45879 # take no chances and rewrite it. 45880 # Note: m4 eats our [], so we need to use [ and ] instead. 45881 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45882 if test "x$has_forbidden_chars" != x; then 45883 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45884 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45885 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45886 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45887 # Going to short mode and back again did indeed matter. Since short mode is 45888 # case insensitive, let's make it lowercase to improve readability. 45889 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45890 # Now convert it back to Unix-style (cygpath) 45891 input_path=`$CYGPATH -u "$shortmode_path"` 45892 new_path="$input_path" 45893 fi 45894 fi 45895 45896 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45897 if test "x$test_cygdrive_prefix" = x; then 45898 # As a simple fix, exclude /usr/bin since it's not a real path. 45899 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45900 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45901 # a path prefixed by /cygdrive for fixpath to work. 45902 new_path="$CYGWIN_ROOT_PATH$input_path" 45903 fi 45904 fi 45905 45906 # remove trailing .exe if any 45907 new_path="${new_path/%.exe/}" 45908 45909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45910 45911 # First separate the path from the arguments. This will split at the first 45912 # space. 45913 complete="$BUILD_AR" 45914 path="${complete%% *}" 45915 tmp="$complete EOL" 45916 arguments="${tmp#* }" 45917 45918 # Input might be given as Windows format, start by converting to 45919 # unix format. 45920 new_path="$path" 45921 45922 windows_path="$new_path" 45923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45924 unix_path=`$CYGPATH -u "$windows_path"` 45925 new_path="$unix_path" 45926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45928 new_path="$unix_path" 45929 fi 45930 45931 45932 # Now try to locate executable using which 45933 new_path=`$WHICH "$new_path" 2> /dev/null` 45934 45935 if test "x$new_path" = x; then 45936 # Oops. Which didn't find the executable. 45937 # The splitting of arguments from the executable at a space might have been incorrect, 45938 # since paths with space are more likely in Windows. Give it another try with the whole 45939 # argument. 45940 path="$complete" 45941 arguments="EOL" 45942 new_path="$path" 45943 45944 windows_path="$new_path" 45945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45946 unix_path=`$CYGPATH -u "$windows_path"` 45947 new_path="$unix_path" 45948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45949 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45950 new_path="$unix_path" 45951 fi 45952 45953 45954 new_path=`$WHICH "$new_path" 2> /dev/null` 45955 # bat and cmd files are not always considered executable in MSYS causing which 45956 # to not find them 45957 if test "x$new_path" = x \ 45958 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45959 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45960 new_path="$path" 45961 45962 windows_path="$new_path" 45963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45964 unix_path=`$CYGPATH -u "$windows_path"` 45965 new_path="$unix_path" 45966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45968 new_path="$unix_path" 45969 fi 45970 45971 fi 45972 45973 if test "x$new_path" = x; then 45974 # It's still not found. Now this is an unrecoverable error. 45975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45976 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45977 has_space=`$ECHO "$complete" | $GREP " "` 45978 if test "x$has_space" != x; then 45979 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45980 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45981 fi 45982 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45983 fi 45984 fi 45985 45986 # Now new_path has a complete unix path to the binary 45987 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45988 # Keep paths in /bin as-is, but remove trailing .exe if any 45989 new_path="${new_path/%.exe/}" 45990 # Do not save /bin paths to all_fixpath_prefixes! 45991 else 45992 # Not in mixed or Windows style, start by that. 45993 new_path=`cmd //c echo $new_path` 45994 45995 input_path="$new_path" 45996 # Check if we need to convert this using DOS-style short mode. If the path 45997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45998 # take no chances and rewrite it. 45999 # Note: m4 eats our [], so we need to use [ and ] instead. 46000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46001 if test "x$has_forbidden_chars" != x; then 46002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46003 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46004 fi 46005 46006 # Output is in $new_path 46007 46008 windows_path="$new_path" 46009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46010 unix_path=`$CYGPATH -u "$windows_path"` 46011 new_path="$unix_path" 46012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46014 new_path="$unix_path" 46015 fi 46016 46017 # remove trailing .exe if any 46018 new_path="${new_path/%.exe/}" 46019 46020 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46021 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46022 fi 46023 46024 else 46025 # We're on a unix platform. Hooray! :) 46026 # First separate the path from the arguments. This will split at the first 46027 # space. 46028 complete="$BUILD_AR" 46029 path="${complete%% *}" 46030 tmp="$complete EOL" 46031 arguments="${tmp#* }" 46032 46033 # Cannot rely on the command "which" here since it doesn't always work. 46034 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46035 if test -z "$is_absolute_path"; then 46036 # Path to executable is not absolute. Find it. 46037 IFS_save="$IFS" 46038 IFS=: 46039 for p in $PATH; do 46040 if test -f "$p/$path" && test -x "$p/$path"; then 46041 new_path="$p/$path" 46042 break 46043 fi 46044 done 46045 IFS="$IFS_save" 46046 else 46047 # This is an absolute path, we can use it without further modifications. 46048 new_path="$path" 46049 fi 46050 46051 if test "x$new_path" = x; then 46052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46053 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46054 has_space=`$ECHO "$complete" | $GREP " "` 46055 if test "x$has_space" != x; then 46056 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46057 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46058 fi 46059 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46060 fi 46061 fi 46062 46063 # Now join together the path and the arguments once again 46064 if test "x$arguments" != xEOL; then 46065 new_complete="$new_path ${arguments% *}" 46066 else 46067 new_complete="$new_path" 46068 fi 46069 46070 if test "x$complete" != "x$new_complete"; then 46071 BUILD_AR="$new_complete" 46072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 46073 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 46074 fi 46075 fi 46076 46077 46078 46079 # Publish this variable in the help. 46080 46081 46082 if [ -z "${BUILD_OBJCOPY+x}" ]; then 46083 # The variable is not set by user, try to locate tool using the code snippet 46084 for ac_prog in objcopy 46085 do 46086 # Extract the first word of "$ac_prog", so it can be a program name with args. 46087 set dummy $ac_prog; ac_word=$2 46088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46089 $as_echo_n "checking for $ac_word... " >&6; } 46090 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46091 $as_echo_n "(cached) " >&6 46092 else 46093 case $BUILD_OBJCOPY in 46094 [\\/]* | ?:[\\/]*) 46095 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46096 ;; 46097 *) 46098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46099 for as_dir in $PATH 46100 do 46101 IFS=$as_save_IFS 46102 test -z "$as_dir" && as_dir=. 46103 for ac_exec_ext in '' $ac_executable_extensions; do 46104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46105 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46107 break 2 46108 fi 46109 done 46110 done 46111 IFS=$as_save_IFS 46112 46113 ;; 46114 esac 46115 fi 46116 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46117 if test -n "$BUILD_OBJCOPY"; then 46118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46119 $as_echo "$BUILD_OBJCOPY" >&6; } 46120 else 46121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46122 $as_echo "no" >&6; } 46123 fi 46124 46125 46126 test -n "$BUILD_OBJCOPY" && break 46127 done 46128 46129 else 46130 # The variable is set, but is it from the command line or the environment? 46131 46132 # Try to remove the string !BUILD_OBJCOPY! from our list. 46133 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 46134 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46135 # If it failed, the variable was not from the command line. Ignore it, 46136 # but warn the user (except for BASH, which is always set by the calling BASH). 46137 if test "xBUILD_OBJCOPY" != xBASH; then 46138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 46139 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 46140 fi 46141 # Try to locate tool using the code snippet 46142 for ac_prog in objcopy 46143 do 46144 # Extract the first word of "$ac_prog", so it can be a program name with args. 46145 set dummy $ac_prog; ac_word=$2 46146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46147 $as_echo_n "checking for $ac_word... " >&6; } 46148 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46149 $as_echo_n "(cached) " >&6 46150 else 46151 case $BUILD_OBJCOPY in 46152 [\\/]* | ?:[\\/]*) 46153 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46154 ;; 46155 *) 46156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46157 for as_dir in $PATH 46158 do 46159 IFS=$as_save_IFS 46160 test -z "$as_dir" && as_dir=. 46161 for ac_exec_ext in '' $ac_executable_extensions; do 46162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46163 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46165 break 2 46166 fi 46167 done 46168 done 46169 IFS=$as_save_IFS 46170 46171 ;; 46172 esac 46173 fi 46174 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46175 if test -n "$BUILD_OBJCOPY"; then 46176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46177 $as_echo "$BUILD_OBJCOPY" >&6; } 46178 else 46179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46180 $as_echo "no" >&6; } 46181 fi 46182 46183 46184 test -n "$BUILD_OBJCOPY" && break 46185 done 46186 46187 else 46188 # If it succeeded, then it was overridden by the user. We will use it 46189 # for the tool. 46190 46191 # First remove it from the list of overridden variables, so we can test 46192 # for unknown variables in the end. 46193 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46194 46195 # Check if we try to supply an empty value 46196 if test "x$BUILD_OBJCOPY" = x; then 46197 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 46198 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 46199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46200 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46202 $as_echo "disabled" >&6; } 46203 else 46204 # Check if the provided tool contains a complete path. 46205 tool_specified="$BUILD_OBJCOPY" 46206 tool_basename="${tool_specified##*/}" 46207 if test "x$tool_basename" = "x$tool_specified"; then 46208 # A command without a complete path is provided, search $PATH. 46209 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 46210 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 46211 # Extract the first word of "$tool_basename", so it can be a program name with args. 46212 set dummy $tool_basename; ac_word=$2 46213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46214 $as_echo_n "checking for $ac_word... " >&6; } 46215 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46216 $as_echo_n "(cached) " >&6 46217 else 46218 case $BUILD_OBJCOPY in 46219 [\\/]* | ?:[\\/]*) 46220 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46221 ;; 46222 *) 46223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46224 for as_dir in $PATH 46225 do 46226 IFS=$as_save_IFS 46227 test -z "$as_dir" && as_dir=. 46228 for ac_exec_ext in '' $ac_executable_extensions; do 46229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46230 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46232 break 2 46233 fi 46234 done 46235 done 46236 IFS=$as_save_IFS 46237 46238 ;; 46239 esac 46240 fi 46241 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46242 if test -n "$BUILD_OBJCOPY"; then 46243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46244 $as_echo "$BUILD_OBJCOPY" >&6; } 46245 else 46246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46247 $as_echo "no" >&6; } 46248 fi 46249 46250 46251 if test "x$BUILD_OBJCOPY" = x; then 46252 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46253 fi 46254 else 46255 # Otherwise we believe it is a complete path. Use it as it is. 46256 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 46257 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 46258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46259 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46260 if test ! -x "$tool_specified"; then 46261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46262 $as_echo "not found" >&6; } 46263 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 46264 fi 46265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46266 $as_echo "$tool_specified" >&6; } 46267 fi 46268 fi 46269 fi 46270 46271 fi 46272 46273 46274 46275 # Only process if variable expands to non-empty 46276 46277 if test "x$BUILD_OBJCOPY" != x; then 46278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46279 46280 # First separate the path from the arguments. This will split at the first 46281 # space. 46282 complete="$BUILD_OBJCOPY" 46283 path="${complete%% *}" 46284 tmp="$complete EOL" 46285 arguments="${tmp#* }" 46286 46287 # Input might be given as Windows format, start by converting to 46288 # unix format. 46289 new_path=`$CYGPATH -u "$path"` 46290 46291 # Now try to locate executable using which 46292 new_path=`$WHICH "$new_path" 2> /dev/null` 46293 # bat and cmd files are not always considered executable in cygwin causing which 46294 # to not find them 46295 if test "x$new_path" = x \ 46296 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46297 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46298 new_path=`$CYGPATH -u "$path"` 46299 fi 46300 if test "x$new_path" = x; then 46301 # Oops. Which didn't find the executable. 46302 # The splitting of arguments from the executable at a space might have been incorrect, 46303 # since paths with space are more likely in Windows. Give it another try with the whole 46304 # argument. 46305 path="$complete" 46306 arguments="EOL" 46307 new_path=`$CYGPATH -u "$path"` 46308 new_path=`$WHICH "$new_path" 2> /dev/null` 46309 # bat and cmd files are not always considered executable in cygwin causing which 46310 # to not find them 46311 if test "x$new_path" = x \ 46312 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46313 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46314 new_path=`$CYGPATH -u "$path"` 46315 fi 46316 if test "x$new_path" = x; then 46317 # It's still not found. Now this is an unrecoverable error. 46318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46319 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46320 has_space=`$ECHO "$complete" | $GREP " "` 46321 if test "x$has_space" != x; then 46322 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46323 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46324 fi 46325 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46326 fi 46327 fi 46328 46329 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46330 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46331 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46332 # "foo.exe" is OK but "foo" is an error. 46333 # 46334 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46335 # It is also a way to make sure we got the proper file name for the real test later on. 46336 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46337 if test "x$test_shortpath" = x; then 46338 # Short path failed, file does not exist as specified. 46339 # Try adding .exe or .cmd 46340 if test -f "${new_path}.exe"; then 46341 input_to_shortpath="${new_path}.exe" 46342 elif test -f "${new_path}.cmd"; then 46343 input_to_shortpath="${new_path}.cmd" 46344 else 46345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 46346 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 46347 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46348 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46349 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46350 fi 46351 else 46352 input_to_shortpath="$new_path" 46353 fi 46354 46355 # Call helper function which possibly converts this using DOS-style short mode. 46356 # If so, the updated path is stored in $new_path. 46357 new_path="$input_to_shortpath" 46358 46359 input_path="$input_to_shortpath" 46360 # Check if we need to convert this using DOS-style short mode. If the path 46361 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46362 # take no chances and rewrite it. 46363 # Note: m4 eats our [], so we need to use [ and ] instead. 46364 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46365 if test "x$has_forbidden_chars" != x; then 46366 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46367 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46368 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46369 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46370 # Going to short mode and back again did indeed matter. Since short mode is 46371 # case insensitive, let's make it lowercase to improve readability. 46372 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46373 # Now convert it back to Unix-style (cygpath) 46374 input_path=`$CYGPATH -u "$shortmode_path"` 46375 new_path="$input_path" 46376 fi 46377 fi 46378 46379 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46380 if test "x$test_cygdrive_prefix" = x; then 46381 # As a simple fix, exclude /usr/bin since it's not a real path. 46382 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46383 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46384 # a path prefixed by /cygdrive for fixpath to work. 46385 new_path="$CYGWIN_ROOT_PATH$input_path" 46386 fi 46387 fi 46388 46389 # remove trailing .exe if any 46390 new_path="${new_path/%.exe/}" 46391 46392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46393 46394 # First separate the path from the arguments. This will split at the first 46395 # space. 46396 complete="$BUILD_OBJCOPY" 46397 path="${complete%% *}" 46398 tmp="$complete EOL" 46399 arguments="${tmp#* }" 46400 46401 # Input might be given as Windows format, start by converting to 46402 # unix format. 46403 new_path="$path" 46404 46405 windows_path="$new_path" 46406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46407 unix_path=`$CYGPATH -u "$windows_path"` 46408 new_path="$unix_path" 46409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46411 new_path="$unix_path" 46412 fi 46413 46414 46415 # Now try to locate executable using which 46416 new_path=`$WHICH "$new_path" 2> /dev/null` 46417 46418 if test "x$new_path" = x; then 46419 # Oops. Which didn't find the executable. 46420 # The splitting of arguments from the executable at a space might have been incorrect, 46421 # since paths with space are more likely in Windows. Give it another try with the whole 46422 # argument. 46423 path="$complete" 46424 arguments="EOL" 46425 new_path="$path" 46426 46427 windows_path="$new_path" 46428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46429 unix_path=`$CYGPATH -u "$windows_path"` 46430 new_path="$unix_path" 46431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46432 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46433 new_path="$unix_path" 46434 fi 46435 46436 46437 new_path=`$WHICH "$new_path" 2> /dev/null` 46438 # bat and cmd files are not always considered executable in MSYS causing which 46439 # to not find them 46440 if test "x$new_path" = x \ 46441 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46442 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46443 new_path="$path" 46444 46445 windows_path="$new_path" 46446 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46447 unix_path=`$CYGPATH -u "$windows_path"` 46448 new_path="$unix_path" 46449 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46450 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46451 new_path="$unix_path" 46452 fi 46453 46454 fi 46455 46456 if test "x$new_path" = x; then 46457 # It's still not found. Now this is an unrecoverable error. 46458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46459 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46460 has_space=`$ECHO "$complete" | $GREP " "` 46461 if test "x$has_space" != x; then 46462 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46463 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46464 fi 46465 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46466 fi 46467 fi 46468 46469 # Now new_path has a complete unix path to the binary 46470 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46471 # Keep paths in /bin as-is, but remove trailing .exe if any 46472 new_path="${new_path/%.exe/}" 46473 # Do not save /bin paths to all_fixpath_prefixes! 46474 else 46475 # Not in mixed or Windows style, start by that. 46476 new_path=`cmd //c echo $new_path` 46477 46478 input_path="$new_path" 46479 # Check if we need to convert this using DOS-style short mode. If the path 46480 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46481 # take no chances and rewrite it. 46482 # Note: m4 eats our [], so we need to use [ and ] instead. 46483 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46484 if test "x$has_forbidden_chars" != x; then 46485 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46486 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46487 fi 46488 46489 # Output is in $new_path 46490 46491 windows_path="$new_path" 46492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46493 unix_path=`$CYGPATH -u "$windows_path"` 46494 new_path="$unix_path" 46495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46496 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46497 new_path="$unix_path" 46498 fi 46499 46500 # remove trailing .exe if any 46501 new_path="${new_path/%.exe/}" 46502 46503 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46504 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46505 fi 46506 46507 else 46508 # We're on a unix platform. Hooray! :) 46509 # First separate the path from the arguments. This will split at the first 46510 # space. 46511 complete="$BUILD_OBJCOPY" 46512 path="${complete%% *}" 46513 tmp="$complete EOL" 46514 arguments="${tmp#* }" 46515 46516 # Cannot rely on the command "which" here since it doesn't always work. 46517 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46518 if test -z "$is_absolute_path"; then 46519 # Path to executable is not absolute. Find it. 46520 IFS_save="$IFS" 46521 IFS=: 46522 for p in $PATH; do 46523 if test -f "$p/$path" && test -x "$p/$path"; then 46524 new_path="$p/$path" 46525 break 46526 fi 46527 done 46528 IFS="$IFS_save" 46529 else 46530 # This is an absolute path, we can use it without further modifications. 46531 new_path="$path" 46532 fi 46533 46534 if test "x$new_path" = x; then 46535 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46536 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46537 has_space=`$ECHO "$complete" | $GREP " "` 46538 if test "x$has_space" != x; then 46539 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46540 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46541 fi 46542 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46543 fi 46544 fi 46545 46546 # Now join together the path and the arguments once again 46547 if test "x$arguments" != xEOL; then 46548 new_complete="$new_path ${arguments% *}" 46549 else 46550 new_complete="$new_path" 46551 fi 46552 46553 if test "x$complete" != "x$new_complete"; then 46554 BUILD_OBJCOPY="$new_complete" 46555 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 46556 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 46557 fi 46558 fi 46559 46560 46561 46562 # Publish this variable in the help. 46563 46564 46565 if [ -z "${BUILD_STRIP+x}" ]; then 46566 # The variable is not set by user, try to locate tool using the code snippet 46567 for ac_prog in strip 46568 do 46569 # Extract the first word of "$ac_prog", so it can be a program name with args. 46570 set dummy $ac_prog; ac_word=$2 46571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46572 $as_echo_n "checking for $ac_word... " >&6; } 46573 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46574 $as_echo_n "(cached) " >&6 46575 else 46576 case $BUILD_STRIP in 46577 [\\/]* | ?:[\\/]*) 46578 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46579 ;; 46580 *) 46581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46582 for as_dir in $PATH 46583 do 46584 IFS=$as_save_IFS 46585 test -z "$as_dir" && as_dir=. 46586 for ac_exec_ext in '' $ac_executable_extensions; do 46587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46588 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46590 break 2 46591 fi 46592 done 46593 done 46594 IFS=$as_save_IFS 46595 46596 ;; 46597 esac 46598 fi 46599 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46600 if test -n "$BUILD_STRIP"; then 46601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46602 $as_echo "$BUILD_STRIP" >&6; } 46603 else 46604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46605 $as_echo "no" >&6; } 46606 fi 46607 46608 46609 test -n "$BUILD_STRIP" && break 46610 done 46611 46612 else 46613 # The variable is set, but is it from the command line or the environment? 46614 46615 # Try to remove the string !BUILD_STRIP! from our list. 46616 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 46617 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46618 # If it failed, the variable was not from the command line. Ignore it, 46619 # but warn the user (except for BASH, which is always set by the calling BASH). 46620 if test "xBUILD_STRIP" != xBASH; then 46621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 46622 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 46623 fi 46624 # Try to locate tool using the code snippet 46625 for ac_prog in strip 46626 do 46627 # Extract the first word of "$ac_prog", so it can be a program name with args. 46628 set dummy $ac_prog; ac_word=$2 46629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46630 $as_echo_n "checking for $ac_word... " >&6; } 46631 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46632 $as_echo_n "(cached) " >&6 46633 else 46634 case $BUILD_STRIP in 46635 [\\/]* | ?:[\\/]*) 46636 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46637 ;; 46638 *) 46639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46640 for as_dir in $PATH 46641 do 46642 IFS=$as_save_IFS 46643 test -z "$as_dir" && as_dir=. 46644 for ac_exec_ext in '' $ac_executable_extensions; do 46645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46646 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46648 break 2 46649 fi 46650 done 46651 done 46652 IFS=$as_save_IFS 46653 46654 ;; 46655 esac 46656 fi 46657 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46658 if test -n "$BUILD_STRIP"; then 46659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46660 $as_echo "$BUILD_STRIP" >&6; } 46661 else 46662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46663 $as_echo "no" >&6; } 46664 fi 46665 46666 46667 test -n "$BUILD_STRIP" && break 46668 done 46669 46670 else 46671 # If it succeeded, then it was overridden by the user. We will use it 46672 # for the tool. 46673 46674 # First remove it from the list of overridden variables, so we can test 46675 # for unknown variables in the end. 46676 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46677 46678 # Check if we try to supply an empty value 46679 if test "x$BUILD_STRIP" = x; then 46680 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 46681 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 46682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46683 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46685 $as_echo "disabled" >&6; } 46686 else 46687 # Check if the provided tool contains a complete path. 46688 tool_specified="$BUILD_STRIP" 46689 tool_basename="${tool_specified##*/}" 46690 if test "x$tool_basename" = "x$tool_specified"; then 46691 # A command without a complete path is provided, search $PATH. 46692 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 46693 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 46694 # Extract the first word of "$tool_basename", so it can be a program name with args. 46695 set dummy $tool_basename; ac_word=$2 46696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46697 $as_echo_n "checking for $ac_word... " >&6; } 46698 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46699 $as_echo_n "(cached) " >&6 46700 else 46701 case $BUILD_STRIP in 46702 [\\/]* | ?:[\\/]*) 46703 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46704 ;; 46705 *) 46706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46707 for as_dir in $PATH 46708 do 46709 IFS=$as_save_IFS 46710 test -z "$as_dir" && as_dir=. 46711 for ac_exec_ext in '' $ac_executable_extensions; do 46712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46713 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46715 break 2 46716 fi 46717 done 46718 done 46719 IFS=$as_save_IFS 46720 46721 ;; 46722 esac 46723 fi 46724 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46725 if test -n "$BUILD_STRIP"; then 46726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46727 $as_echo "$BUILD_STRIP" >&6; } 46728 else 46729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46730 $as_echo "no" >&6; } 46731 fi 46732 46733 46734 if test "x$BUILD_STRIP" = x; then 46735 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46736 fi 46737 else 46738 # Otherwise we believe it is a complete path. Use it as it is. 46739 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 46740 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 46741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46742 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46743 if test ! -x "$tool_specified"; then 46744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46745 $as_echo "not found" >&6; } 46746 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 46747 fi 46748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46749 $as_echo "$tool_specified" >&6; } 46750 fi 46751 fi 46752 fi 46753 46754 fi 46755 46756 46757 46758 # Only process if variable expands to non-empty 46759 46760 if test "x$BUILD_STRIP" != x; then 46761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46762 46763 # First separate the path from the arguments. This will split at the first 46764 # space. 46765 complete="$BUILD_STRIP" 46766 path="${complete%% *}" 46767 tmp="$complete EOL" 46768 arguments="${tmp#* }" 46769 46770 # Input might be given as Windows format, start by converting to 46771 # unix format. 46772 new_path=`$CYGPATH -u "$path"` 46773 46774 # Now try to locate executable using which 46775 new_path=`$WHICH "$new_path" 2> /dev/null` 46776 # bat and cmd files are not always considered executable in cygwin causing which 46777 # to not find them 46778 if test "x$new_path" = x \ 46779 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46780 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46781 new_path=`$CYGPATH -u "$path"` 46782 fi 46783 if test "x$new_path" = x; then 46784 # Oops. Which didn't find the executable. 46785 # The splitting of arguments from the executable at a space might have been incorrect, 46786 # since paths with space are more likely in Windows. Give it another try with the whole 46787 # argument. 46788 path="$complete" 46789 arguments="EOL" 46790 new_path=`$CYGPATH -u "$path"` 46791 new_path=`$WHICH "$new_path" 2> /dev/null` 46792 # bat and cmd files are not always considered executable in cygwin causing which 46793 # to not find them 46794 if test "x$new_path" = x \ 46795 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46796 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46797 new_path=`$CYGPATH -u "$path"` 46798 fi 46799 if test "x$new_path" = x; then 46800 # It's still not found. Now this is an unrecoverable error. 46801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46802 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46803 has_space=`$ECHO "$complete" | $GREP " "` 46804 if test "x$has_space" != x; then 46805 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46806 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46807 fi 46808 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46809 fi 46810 fi 46811 46812 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46813 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46814 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46815 # "foo.exe" is OK but "foo" is an error. 46816 # 46817 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46818 # It is also a way to make sure we got the proper file name for the real test later on. 46819 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46820 if test "x$test_shortpath" = x; then 46821 # Short path failed, file does not exist as specified. 46822 # Try adding .exe or .cmd 46823 if test -f "${new_path}.exe"; then 46824 input_to_shortpath="${new_path}.exe" 46825 elif test -f "${new_path}.cmd"; then 46826 input_to_shortpath="${new_path}.cmd" 46827 else 46828 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 46829 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 46830 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46831 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46832 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46833 fi 46834 else 46835 input_to_shortpath="$new_path" 46836 fi 46837 46838 # Call helper function which possibly converts this using DOS-style short mode. 46839 # If so, the updated path is stored in $new_path. 46840 new_path="$input_to_shortpath" 46841 46842 input_path="$input_to_shortpath" 46843 # Check if we need to convert this using DOS-style short mode. If the path 46844 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46845 # take no chances and rewrite it. 46846 # Note: m4 eats our [], so we need to use [ and ] instead. 46847 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46848 if test "x$has_forbidden_chars" != x; then 46849 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46850 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46851 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46852 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46853 # Going to short mode and back again did indeed matter. Since short mode is 46854 # case insensitive, let's make it lowercase to improve readability. 46855 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46856 # Now convert it back to Unix-style (cygpath) 46857 input_path=`$CYGPATH -u "$shortmode_path"` 46858 new_path="$input_path" 46859 fi 46860 fi 46861 46862 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46863 if test "x$test_cygdrive_prefix" = x; then 46864 # As a simple fix, exclude /usr/bin since it's not a real path. 46865 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46866 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46867 # a path prefixed by /cygdrive for fixpath to work. 46868 new_path="$CYGWIN_ROOT_PATH$input_path" 46869 fi 46870 fi 46871 46872 # remove trailing .exe if any 46873 new_path="${new_path/%.exe/}" 46874 46875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46876 46877 # First separate the path from the arguments. This will split at the first 46878 # space. 46879 complete="$BUILD_STRIP" 46880 path="${complete%% *}" 46881 tmp="$complete EOL" 46882 arguments="${tmp#* }" 46883 46884 # Input might be given as Windows format, start by converting to 46885 # unix format. 46886 new_path="$path" 46887 46888 windows_path="$new_path" 46889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46890 unix_path=`$CYGPATH -u "$windows_path"` 46891 new_path="$unix_path" 46892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46893 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46894 new_path="$unix_path" 46895 fi 46896 46897 46898 # Now try to locate executable using which 46899 new_path=`$WHICH "$new_path" 2> /dev/null` 46900 46901 if test "x$new_path" = x; then 46902 # Oops. Which didn't find the executable. 46903 # The splitting of arguments from the executable at a space might have been incorrect, 46904 # since paths with space are more likely in Windows. Give it another try with the whole 46905 # argument. 46906 path="$complete" 46907 arguments="EOL" 46908 new_path="$path" 46909 46910 windows_path="$new_path" 46911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46912 unix_path=`$CYGPATH -u "$windows_path"` 46913 new_path="$unix_path" 46914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46915 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46916 new_path="$unix_path" 46917 fi 46918 46919 46920 new_path=`$WHICH "$new_path" 2> /dev/null` 46921 # bat and cmd files are not always considered executable in MSYS causing which 46922 # to not find them 46923 if test "x$new_path" = x \ 46924 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46925 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46926 new_path="$path" 46927 46928 windows_path="$new_path" 46929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46930 unix_path=`$CYGPATH -u "$windows_path"` 46931 new_path="$unix_path" 46932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46933 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46934 new_path="$unix_path" 46935 fi 46936 46937 fi 46938 46939 if test "x$new_path" = x; then 46940 # It's still not found. Now this is an unrecoverable error. 46941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46942 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46943 has_space=`$ECHO "$complete" | $GREP " "` 46944 if test "x$has_space" != x; then 46945 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46946 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46947 fi 46948 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46949 fi 46950 fi 46951 46952 # Now new_path has a complete unix path to the binary 46953 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46954 # Keep paths in /bin as-is, but remove trailing .exe if any 46955 new_path="${new_path/%.exe/}" 46956 # Do not save /bin paths to all_fixpath_prefixes! 46957 else 46958 # Not in mixed or Windows style, start by that. 46959 new_path=`cmd //c echo $new_path` 46960 46961 input_path="$new_path" 46962 # Check if we need to convert this using DOS-style short mode. If the path 46963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46964 # take no chances and rewrite it. 46965 # Note: m4 eats our [], so we need to use [ and ] instead. 46966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46967 if test "x$has_forbidden_chars" != x; then 46968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46969 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46970 fi 46971 46972 # Output is in $new_path 46973 46974 windows_path="$new_path" 46975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46976 unix_path=`$CYGPATH -u "$windows_path"` 46977 new_path="$unix_path" 46978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46980 new_path="$unix_path" 46981 fi 46982 46983 # remove trailing .exe if any 46984 new_path="${new_path/%.exe/}" 46985 46986 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46987 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46988 fi 46989 46990 else 46991 # We're on a unix platform. Hooray! :) 46992 # First separate the path from the arguments. This will split at the first 46993 # space. 46994 complete="$BUILD_STRIP" 46995 path="${complete%% *}" 46996 tmp="$complete EOL" 46997 arguments="${tmp#* }" 46998 46999 # Cannot rely on the command "which" here since it doesn't always work. 47000 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47001 if test -z "$is_absolute_path"; then 47002 # Path to executable is not absolute. Find it. 47003 IFS_save="$IFS" 47004 IFS=: 47005 for p in $PATH; do 47006 if test -f "$p/$path" && test -x "$p/$path"; then 47007 new_path="$p/$path" 47008 break 47009 fi 47010 done 47011 IFS="$IFS_save" 47012 else 47013 # This is an absolute path, we can use it without further modifications. 47014 new_path="$path" 47015 fi 47016 47017 if test "x$new_path" = x; then 47018 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47019 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47020 has_space=`$ECHO "$complete" | $GREP " "` 47021 if test "x$has_space" != x; then 47022 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47023 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47024 fi 47025 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47026 fi 47027 fi 47028 47029 # Now join together the path and the arguments once again 47030 if test "x$arguments" != xEOL; then 47031 new_complete="$new_path ${arguments% *}" 47032 else 47033 new_complete="$new_path" 47034 fi 47035 47036 if test "x$complete" != "x$new_complete"; then 47037 BUILD_STRIP="$new_complete" 47038 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 47039 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 47040 fi 47041 fi 47042 47043 # Assume the C compiler is the assembler 47044 BUILD_AS="$BUILD_CC -c" 47045 # Just like for the target compiler, use the compiler as linker 47046 BUILD_LD="$BUILD_CC" 47047 BUILD_LDCXX="$BUILD_CXX" 47048 47049 PATH="$OLDPATH" 47050 47051 47052 COMPILER=$BUILD_CC 47053 COMPILER_NAME=BuildC 47054 47055 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47056 # cc -V output typically looks like 47057 # cc: Sun C 5.12 Linux_i386 2011/11/16 47058 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 47059 # Check that this is likely to be the Solaris Studio cc. 47060 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 47061 if test $? -ne 0; then 47062 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47063 { $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 47064 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47065 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47066 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47067 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47068 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47069 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47070 fi 47071 # Remove usage instructions (if present), and 47072 # collapse compiler output into a single line 47073 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47074 $SED -e 's/ *[Uu]sage:.*//'` 47075 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47076 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47077 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47078 # xlc -qversion output typically looks like 47079 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47080 # Version: 11.01.0000.0015 47081 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47082 # Check that this is likely to be the IBM XL C compiler. 47083 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47084 if test $? -ne 0; then 47085 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47086 { $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 47087 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47088 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47089 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47090 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47091 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47092 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47093 fi 47094 # Collapse compiler output into a single line 47095 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47096 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47097 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47098 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47099 # There is no specific version flag, but all output starts with a version string. 47100 # First line typically looks something like: 47101 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47102 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47103 # Check that this is likely to be Microsoft CL.EXE. 47104 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47105 if test $? -ne 0; then 47106 { $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 47107 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47108 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47109 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47110 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47111 fi 47112 # Collapse compiler output into a single line 47113 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47114 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47115 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47116 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47117 # gcc --version output typically looks like 47118 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47119 # Copyright (C) 2013 Free Software Foundation, Inc. 47120 # This is free software; see the source for copying conditions. There is NO 47121 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47122 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47123 # Check that this is likely to be GCC. 47124 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47125 if test $? -ne 0; then 47126 { $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 47127 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47128 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47129 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47130 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47131 fi 47132 # Remove Copyright and legalese from version string, and 47133 # collapse into a single line 47134 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47135 $SED -e 's/ *Copyright .*//'` 47136 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47137 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47138 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47139 # clang --version output typically looks like 47140 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47141 # clang version 3.3 (tags/RELEASE_33/final) 47142 # or 47143 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47144 # Target: x86_64-pc-linux-gnu 47145 # Thread model: posix 47146 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47147 # Check that this is likely to be clang 47148 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47149 if test $? -ne 0; then 47150 { $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 47151 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47152 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47153 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47154 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47155 fi 47156 # Collapse compiler output into a single line 47157 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47158 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47159 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47160 else 47161 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47162 fi 47163 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47164 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47165 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47166 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 47167 47168 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47169 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47170 47171 47172 COMPILER=$BUILD_CXX 47173 COMPILER_NAME=BuildC++ 47174 47175 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47176 # cc -V output typically looks like 47177 # cc: Sun C 5.12 Linux_i386 2011/11/16 47178 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 47179 # Check that this is likely to be the Solaris Studio cc. 47180 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 47181 if test $? -ne 0; then 47182 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47183 { $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 47184 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47185 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47186 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47187 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47188 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47189 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47190 fi 47191 # Remove usage instructions (if present), and 47192 # collapse compiler output into a single line 47193 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47194 $SED -e 's/ *[Uu]sage:.*//'` 47195 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47196 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47197 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47198 # xlc -qversion output typically looks like 47199 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47200 # Version: 11.01.0000.0015 47201 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47202 # Check that this is likely to be the IBM XL C compiler. 47203 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47204 if test $? -ne 0; then 47205 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47206 { $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 47207 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47208 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47209 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47210 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47211 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47212 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47213 fi 47214 # Collapse compiler output into a single line 47215 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47216 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47217 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47218 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47219 # There is no specific version flag, but all output starts with a version string. 47220 # First line typically looks something like: 47221 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47222 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47223 # Check that this is likely to be Microsoft CL.EXE. 47224 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47225 if test $? -ne 0; then 47226 { $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 47227 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47228 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47229 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47230 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47231 fi 47232 # Collapse compiler output into a single line 47233 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47234 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47235 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47236 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47237 # gcc --version output typically looks like 47238 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47239 # Copyright (C) 2013 Free Software Foundation, Inc. 47240 # This is free software; see the source for copying conditions. There is NO 47241 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47242 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47243 # Check that this is likely to be GCC. 47244 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47245 if test $? -ne 0; then 47246 { $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 47247 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47248 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47249 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47250 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47251 fi 47252 # Remove Copyright and legalese from version string, and 47253 # collapse into a single line 47254 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47255 $SED -e 's/ *Copyright .*//'` 47256 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47257 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47258 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47259 # clang --version output typically looks like 47260 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47261 # clang version 3.3 (tags/RELEASE_33/final) 47262 # or 47263 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47264 # Target: x86_64-pc-linux-gnu 47265 # Thread model: posix 47266 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47267 # Check that this is likely to be clang 47268 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47269 if test $? -ne 0; then 47270 { $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 47271 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47272 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47273 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47274 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47275 fi 47276 # Collapse compiler output into a single line 47277 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47278 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47279 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47280 else 47281 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47282 fi 47283 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47284 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47285 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47286 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 47287 47288 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47289 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47290 47291 47292 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 47293 { $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 47294 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 47295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47296 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47297 fi 47298 47299 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47300 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 47301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47302 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47303 fi 47304 47305 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47306 { $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 47307 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47308 fi 47309 47310 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$BUILD_CC_VERSION_NUMBER"` 47311 47312 else 47313 # If we are not cross compiling, use the normal target compilers for 47314 # building the build platform executables. 47315 BUILD_CC="$CC" 47316 BUILD_CXX="$CXX" 47317 BUILD_LD="$LD" 47318 BUILD_LDCXX="$LDCXX" 47319 BUILD_NM="$NM" 47320 BUILD_AS="$AS" 47321 BUILD_OBJCOPY="$OBJCOPY" 47322 BUILD_STRIP="$STRIP" 47323 if test "x$BUILD_SYSROOT" != "x"; then 47324 47325 if test "x$BUILD_SYSROOT" != "x"; then 47326 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47327 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 47328 # Solaris Studio does not have a concept of sysroot. Instead we must 47329 # make sure the default include and lib dirs are appended to each 47330 # compile and link command line. Must also add -I-xbuiltin to enable 47331 # inlining of system functions and intrinsics. 47332 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 47333 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 47334 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 47335 -L$BUILD_SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 47336 fi 47337 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47338 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 47339 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 47340 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47341 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 47342 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 47343 fi 47344 # Propagate the sysroot args to hotspot 47345 BUILD_LEGACY_EXTRA_CFLAGS="$BUILD_LEGACY_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 47346 BUILD_LEGACY_EXTRA_CXXFLAGS="$BUILD_LEGACY_EXTRA_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 47347 BUILD_LEGACY_EXTRA_LDFLAGS="$BUILD_LEGACY_EXTRA_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 47348 # The global CFLAGS and LDFLAGS variables need these for configure to function 47349 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 47350 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 47351 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 47352 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 47353 fi 47354 47355 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 47356 # We also need -iframework<path>/System/Library/Frameworks 47357 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 47358 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 47359 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 47360 # set this here so it doesn't have to be peppered throughout the forest 47361 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 47362 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 47363 fi 47364 47365 47366 47367 47368 else 47369 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 47370 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 47371 fi 47372 BUILD_AR="$AR" 47373 47374 47375 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 47376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 47377 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 47378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47379 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47380 fi 47381 47382 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47383 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 47384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47385 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47386 fi 47387 47388 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47389 { $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 47390 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47391 fi 47392 47393 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 47394 47395 fi 47396 47397 47398 47399 47400 47401 47402 47403 47404 47405 47406 47407 47408 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47409 # For hotspot, we need these in Windows mixed path, 47410 # so rewrite them all. Need added .exe suffix. 47411 HOTSPOT_CXX="$CXX.exe" 47412 HOTSPOT_LD="$LD.exe" 47413 HOTSPOT_MT="$MT.exe" 47414 HOTSPOT_RC="$RC.exe" 47415 47416 unix_path="$HOTSPOT_CXX" 47417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47418 windows_path=`$CYGPATH -m "$unix_path"` 47419 HOTSPOT_CXX="$windows_path" 47420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47421 windows_path=`cmd //c echo $unix_path` 47422 HOTSPOT_CXX="$windows_path" 47423 fi 47424 47425 47426 unix_path="$HOTSPOT_LD" 47427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47428 windows_path=`$CYGPATH -m "$unix_path"` 47429 HOTSPOT_LD="$windows_path" 47430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47431 windows_path=`cmd //c echo $unix_path` 47432 HOTSPOT_LD="$windows_path" 47433 fi 47434 47435 47436 unix_path="$HOTSPOT_MT" 47437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47438 windows_path=`$CYGPATH -m "$unix_path"` 47439 HOTSPOT_MT="$windows_path" 47440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47441 windows_path=`cmd //c echo $unix_path` 47442 HOTSPOT_MT="$windows_path" 47443 fi 47444 47445 47446 unix_path="$HOTSPOT_RC" 47447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47448 windows_path=`$CYGPATH -m "$unix_path"` 47449 HOTSPOT_RC="$windows_path" 47450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47451 windows_path=`cmd //c echo $unix_path` 47452 HOTSPOT_RC="$windows_path" 47453 fi 47454 47455 47456 47457 else 47458 HOTSPOT_CXX="$CXX" 47459 HOTSPOT_LD="$LD" 47460 fi 47461 47462 47463 47464 if test "x$TOOLCHAIN_TYPE" = xclang; then 47465 USE_CLANG=true 47466 fi 47467 47468 47469 47470 47471 47472 # The package path is used only on macosx? 47473 # FIXME: clean this up, and/or move it elsewhere. 47474 PACKAGE_PATH=/opt/local 47475 47476 47477 # Check for extra potential brokenness. 47478 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47479 # On Windows, double-check that we got the right compiler. 47480 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47481 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 47482 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 47483 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 47484 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 47485 fi 47486 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 47487 if test "x$COMPILER_CPU_TEST" != "xx64"; then 47488 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 47489 fi 47490 fi 47491 fi 47492 47493 if test "x$TOOLCHAIN_TYPE" = xgcc; then 47494 # If this is a --hash-style=gnu system, use --hash-style=both, why? 47495 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 47496 # This is later checked when setting flags. 47497 47498 # "-Og" suppported for GCC 4.8 and later 47499 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 47500 47501 47502 47503 47504 47505 47506 47507 47508 47509 47510 47511 47512 47513 47514 47515 47516 47517 47518 47519 47520 47521 47522 47523 47524 47525 47526 47527 47528 47529 47530 47531 47532 47533 47534 47535 47536 47537 47538 47539 47540 47541 47542 47543 47544 47545 47546 47547 # Execute function body 47548 47549 47550 47551 47552 47553 47554 47555 47556 47557 47558 47559 47560 47561 47562 47563 47564 47565 47566 47567 47568 47569 47570 47571 47572 47573 47574 47575 47576 47577 47578 47579 47580 47581 47582 47583 47584 47585 47586 47587 47588 47589 47590 47591 47592 47593 47594 47595 47596 # Execute function body 47597 47598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47599 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47600 supports=yes 47601 47602 saved_cflags="$CFLAGS" 47603 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 47604 ac_ext=c 47605 ac_cpp='$CPP $CPPFLAGS' 47606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47608 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47609 47610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47611 /* end confdefs.h. */ 47612 int i; 47613 _ACEOF 47614 if ac_fn_c_try_compile "$LINENO"; then : 47615 47616 else 47617 supports=no 47618 fi 47619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47620 ac_ext=cpp 47621 ac_cpp='$CXXCPP $CPPFLAGS' 47622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47625 47626 CFLAGS="$saved_cflags" 47627 47628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47629 $as_echo "$supports" >&6; } 47630 if test "x$supports" = "xyes" ; then 47631 : 47632 C_COMP_SUPPORTS="yes" 47633 else 47634 : 47635 C_COMP_SUPPORTS="no" 47636 fi 47637 47638 47639 47640 47641 47642 47643 47644 47645 47646 47647 47648 47649 47650 47651 47652 47653 47654 47655 47656 47657 47658 47659 47660 47661 47662 47663 47664 47665 47666 47667 47668 47669 47670 47671 47672 47673 47674 47675 47676 47677 47678 47679 47680 47681 47682 47683 47684 47685 47686 47687 47688 47689 47690 47691 47692 47693 47694 47695 47696 # Execute function body 47697 47698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47699 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47700 supports=yes 47701 47702 saved_cxxflags="$CXXFLAGS" 47703 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 47704 ac_ext=cpp 47705 ac_cpp='$CXXCPP $CPPFLAGS' 47706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47709 47710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47711 /* end confdefs.h. */ 47712 int i; 47713 _ACEOF 47714 if ac_fn_cxx_try_compile "$LINENO"; then : 47715 47716 else 47717 supports=no 47718 fi 47719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47720 ac_ext=cpp 47721 ac_cpp='$CXXCPP $CPPFLAGS' 47722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47725 47726 CXXFLAGS="$saved_cxxflags" 47727 47728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47729 $as_echo "$supports" >&6; } 47730 if test "x$supports" = "xyes" ; then 47731 : 47732 CXX_COMP_SUPPORTS="yes" 47733 else 47734 : 47735 CXX_COMP_SUPPORTS="no" 47736 fi 47737 47738 47739 47740 47741 47742 47743 47744 47745 47746 47747 47748 47749 47750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47751 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47752 supports=no 47753 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 47754 47755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47756 $as_echo "$supports" >&6; } 47757 if test "x$supports" = "xyes" ; then 47758 : 47759 HAS_CFLAG_OPTIMIZE_DEBUG=true 47760 else 47761 : 47762 HAS_CFLAG_OPTIMIZE_DEBUG=false 47763 fi 47764 47765 47766 47767 47768 47769 47770 47771 # "-z relro" supported in GNU binutils 2.17 and later 47772 LINKER_RELRO_FLAG="-Wl,-z,relro" 47773 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 # Execute function body 47821 47822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 47823 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 47824 supports=yes 47825 47826 saved_ldflags="$LDFLAGS" 47827 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 47828 ac_ext=c 47829 ac_cpp='$CPP $CPPFLAGS' 47830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47832 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47833 47834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47835 /* end confdefs.h. */ 47836 47837 int 47838 main () 47839 { 47840 47841 ; 47842 return 0; 47843 } 47844 _ACEOF 47845 if ac_fn_c_try_link "$LINENO"; then : 47846 47847 else 47848 supports=no 47849 fi 47850 rm -f core conftest.err conftest.$ac_objext \ 47851 conftest$ac_exeext conftest.$ac_ext 47852 ac_ext=cpp 47853 ac_cpp='$CXXCPP $CPPFLAGS' 47854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47857 47858 LDFLAGS="$saved_ldflags" 47859 47860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47861 $as_echo "$supports" >&6; } 47862 if test "x$supports" = "xyes" ; then 47863 : 47864 HAS_LINKER_RELRO=true 47865 else 47866 : 47867 HAS_LINKER_RELRO=false 47868 fi 47869 47870 47871 47872 47873 47874 47875 47876 47877 47878 47879 47880 47881 47882 # "-z now" supported in GNU binutils 2.11 and later 47883 LINKER_NOW_FLAG="-Wl,-z,now" 47884 47885 47886 47887 47888 47889 47890 47891 47892 47893 47894 47895 47896 47897 47898 47899 47900 47901 47902 47903 47904 47905 47906 47907 47908 47909 47910 47911 47912 47913 47914 47915 47916 47917 47918 47919 47920 47921 47922 47923 47924 47925 47926 47927 47928 47929 47930 47931 # Execute function body 47932 47933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 47934 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 47935 supports=yes 47936 47937 saved_ldflags="$LDFLAGS" 47938 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 47939 ac_ext=c 47940 ac_cpp='$CPP $CPPFLAGS' 47941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47943 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47944 47945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47946 /* end confdefs.h. */ 47947 47948 int 47949 main () 47950 { 47951 47952 ; 47953 return 0; 47954 } 47955 _ACEOF 47956 if ac_fn_c_try_link "$LINENO"; then : 47957 47958 else 47959 supports=no 47960 fi 47961 rm -f core conftest.err conftest.$ac_objext \ 47962 conftest$ac_exeext conftest.$ac_ext 47963 ac_ext=cpp 47964 ac_cpp='$CXXCPP $CPPFLAGS' 47965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47968 47969 LDFLAGS="$saved_ldflags" 47970 47971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47972 $as_echo "$supports" >&6; } 47973 if test "x$supports" = "xyes" ; then 47974 : 47975 HAS_LINKER_NOW=true 47976 else 47977 : 47978 HAS_LINKER_NOW=false 47979 fi 47980 47981 47982 47983 47984 47985 47986 47987 47988 47989 47990 47991 47992 fi 47993 47994 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 47995 # in executable.' 47996 USING_BROKEN_SUSE_LD=no 47997 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 47998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 47999 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 48000 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 48001 $ECHO "int main() { }" > main.c 48002 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 48003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48004 $as_echo "no" >&6; } 48005 USING_BROKEN_SUSE_LD=no 48006 else 48007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48008 $as_echo "yes" >&6; } 48009 USING_BROKEN_SUSE_LD=yes 48010 fi 48011 $RM version-script.map main.c a.out 48012 fi 48013 48014 48015 # Setup hotspot lecagy names for toolchains 48016 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 48017 if test "x$TOOLCHAIN_TYPE" = xclang; then 48018 HOTSPOT_TOOLCHAIN_TYPE=gcc 48019 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48020 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 48021 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48022 HOTSPOT_TOOLCHAIN_TYPE=visCPP 48023 fi 48024 48025 48026 48027 # Setup the JTReg Regression Test Harness. 48028 48029 48030 # Check whether --with-jtreg was given. 48031 if test "${with_jtreg+set}" = set; then : 48032 withval=$with_jtreg; 48033 else 48034 with_jtreg=no 48035 fi 48036 48037 48038 if test "x$with_jtreg" = xno; then 48039 # jtreg disabled 48040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 48041 $as_echo_n "checking for jtreg... " >&6; } 48042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48043 $as_echo "no" >&6; } 48044 else 48045 if test "x$with_jtreg" != xyes; then 48046 # with path specified. 48047 JT_HOME="$with_jtreg" 48048 fi 48049 48050 if test "x$JT_HOME" != x; then 48051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 48052 $as_echo_n "checking for jtreg... " >&6; } 48053 48054 # use JT_HOME enviroment var. 48055 48056 # Only process if variable expands to non-empty 48057 48058 if test "x$JT_HOME" != x; then 48059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48060 48061 # Input might be given as Windows format, start by converting to 48062 # unix format. 48063 path="$JT_HOME" 48064 new_path=`$CYGPATH -u "$path"` 48065 48066 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48067 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48068 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48069 # "foo.exe" is OK but "foo" is an error. 48070 # 48071 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48072 # It is also a way to make sure we got the proper file name for the real test later on. 48073 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48074 if test "x$test_shortpath" = x; then 48075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 48076 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 48077 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 48078 fi 48079 48080 # Call helper function which possibly converts this using DOS-style short mode. 48081 # If so, the updated path is stored in $new_path. 48082 48083 input_path="$new_path" 48084 # Check if we need to convert this using DOS-style short mode. If the path 48085 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48086 # take no chances and rewrite it. 48087 # Note: m4 eats our [], so we need to use [ and ] instead. 48088 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48089 if test "x$has_forbidden_chars" != x; then 48090 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48091 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48092 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48093 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48094 # Going to short mode and back again did indeed matter. Since short mode is 48095 # case insensitive, let's make it lowercase to improve readability. 48096 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48097 # Now convert it back to Unix-style (cygpath) 48098 input_path=`$CYGPATH -u "$shortmode_path"` 48099 new_path="$input_path" 48100 fi 48101 fi 48102 48103 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48104 if test "x$test_cygdrive_prefix" = x; then 48105 # As a simple fix, exclude /usr/bin since it's not a real path. 48106 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48107 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48108 # a path prefixed by /cygdrive for fixpath to work. 48109 new_path="$CYGWIN_ROOT_PATH$input_path" 48110 fi 48111 fi 48112 48113 48114 if test "x$path" != "x$new_path"; then 48115 JT_HOME="$new_path" 48116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48117 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48118 fi 48119 48120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48121 48122 path="$JT_HOME" 48123 has_colon=`$ECHO $path | $GREP ^.:` 48124 new_path="$path" 48125 if test "x$has_colon" = x; then 48126 # Not in mixed or Windows style, start by that. 48127 new_path=`cmd //c echo $path` 48128 fi 48129 48130 48131 input_path="$new_path" 48132 # Check if we need to convert this using DOS-style short mode. If the path 48133 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48134 # take no chances and rewrite it. 48135 # Note: m4 eats our [], so we need to use [ and ] instead. 48136 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48137 if test "x$has_forbidden_chars" != x; then 48138 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48139 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48140 fi 48141 48142 48143 windows_path="$new_path" 48144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48145 unix_path=`$CYGPATH -u "$windows_path"` 48146 new_path="$unix_path" 48147 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48148 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48149 new_path="$unix_path" 48150 fi 48151 48152 if test "x$path" != "x$new_path"; then 48153 JT_HOME="$new_path" 48154 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48155 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48156 fi 48157 48158 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48159 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48160 48161 else 48162 # We're on a unix platform. Hooray! :) 48163 path="$JT_HOME" 48164 has_space=`$ECHO "$path" | $GREP " "` 48165 if test "x$has_space" != x; then 48166 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 48167 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 48168 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48169 fi 48170 48171 # Use eval to expand a potential ~ 48172 eval path="$path" 48173 if test ! -f "$path" && test ! -d "$path"; then 48174 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 48175 fi 48176 48177 if test -d "$path"; then 48178 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 48179 else 48180 dir="`$DIRNAME "$path"`" 48181 base="`$BASENAME "$path"`" 48182 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 48183 fi 48184 fi 48185 fi 48186 48187 48188 # jtreg win32 script works for everybody 48189 JTREGEXE="$JT_HOME/bin/jtreg" 48190 48191 if test ! -f "$JTREGEXE"; then 48192 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 48193 fi 48194 48195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48196 $as_echo "$JTREGEXE" >&6; } 48197 else 48198 # try to find jtreg on path 48199 48200 48201 48202 # Publish this variable in the help. 48203 48204 48205 if [ -z "${JTREGEXE+x}" ]; then 48206 # The variable is not set by user, try to locate tool using the code snippet 48207 for ac_prog in jtreg 48208 do 48209 # Extract the first word of "$ac_prog", so it can be a program name with args. 48210 set dummy $ac_prog; ac_word=$2 48211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48212 $as_echo_n "checking for $ac_word... " >&6; } 48213 if ${ac_cv_path_JTREGEXE+:} false; then : 48214 $as_echo_n "(cached) " >&6 48215 else 48216 case $JTREGEXE in 48217 [\\/]* | ?:[\\/]*) 48218 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48219 ;; 48220 *) 48221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48222 for as_dir in $PATH 48223 do 48224 IFS=$as_save_IFS 48225 test -z "$as_dir" && as_dir=. 48226 for ac_exec_ext in '' $ac_executable_extensions; do 48227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48228 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48230 break 2 48231 fi 48232 done 48233 done 48234 IFS=$as_save_IFS 48235 48236 ;; 48237 esac 48238 fi 48239 JTREGEXE=$ac_cv_path_JTREGEXE 48240 if test -n "$JTREGEXE"; then 48241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48242 $as_echo "$JTREGEXE" >&6; } 48243 else 48244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48245 $as_echo "no" >&6; } 48246 fi 48247 48248 48249 test -n "$JTREGEXE" && break 48250 done 48251 48252 else 48253 # The variable is set, but is it from the command line or the environment? 48254 48255 # Try to remove the string !JTREGEXE! from our list. 48256 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 48257 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48258 # If it failed, the variable was not from the command line. Ignore it, 48259 # but warn the user (except for BASH, which is always set by the calling BASH). 48260 if test "xJTREGEXE" != xBASH; then 48261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 48262 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 48263 fi 48264 # Try to locate tool using the code snippet 48265 for ac_prog in jtreg 48266 do 48267 # Extract the first word of "$ac_prog", so it can be a program name with args. 48268 set dummy $ac_prog; ac_word=$2 48269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48270 $as_echo_n "checking for $ac_word... " >&6; } 48271 if ${ac_cv_path_JTREGEXE+:} false; then : 48272 $as_echo_n "(cached) " >&6 48273 else 48274 case $JTREGEXE in 48275 [\\/]* | ?:[\\/]*) 48276 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48277 ;; 48278 *) 48279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48280 for as_dir in $PATH 48281 do 48282 IFS=$as_save_IFS 48283 test -z "$as_dir" && as_dir=. 48284 for ac_exec_ext in '' $ac_executable_extensions; do 48285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48286 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48288 break 2 48289 fi 48290 done 48291 done 48292 IFS=$as_save_IFS 48293 48294 ;; 48295 esac 48296 fi 48297 JTREGEXE=$ac_cv_path_JTREGEXE 48298 if test -n "$JTREGEXE"; then 48299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48300 $as_echo "$JTREGEXE" >&6; } 48301 else 48302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48303 $as_echo "no" >&6; } 48304 fi 48305 48306 48307 test -n "$JTREGEXE" && break 48308 done 48309 48310 else 48311 # If it succeeded, then it was overridden by the user. We will use it 48312 # for the tool. 48313 48314 # First remove it from the list of overridden variables, so we can test 48315 # for unknown variables in the end. 48316 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48317 48318 # Check if we try to supply an empty value 48319 if test "x$JTREGEXE" = x; then 48320 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 48321 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 48322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48323 $as_echo_n "checking for JTREGEXE... " >&6; } 48324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48325 $as_echo "disabled" >&6; } 48326 else 48327 # Check if the provided tool contains a complete path. 48328 tool_specified="$JTREGEXE" 48329 tool_basename="${tool_specified##*/}" 48330 if test "x$tool_basename" = "x$tool_specified"; then 48331 # A command without a complete path is provided, search $PATH. 48332 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 48333 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 48334 # Extract the first word of "$tool_basename", so it can be a program name with args. 48335 set dummy $tool_basename; ac_word=$2 48336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48337 $as_echo_n "checking for $ac_word... " >&6; } 48338 if ${ac_cv_path_JTREGEXE+:} false; then : 48339 $as_echo_n "(cached) " >&6 48340 else 48341 case $JTREGEXE in 48342 [\\/]* | ?:[\\/]*) 48343 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48344 ;; 48345 *) 48346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48347 for as_dir in $PATH 48348 do 48349 IFS=$as_save_IFS 48350 test -z "$as_dir" && as_dir=. 48351 for ac_exec_ext in '' $ac_executable_extensions; do 48352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48353 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48355 break 2 48356 fi 48357 done 48358 done 48359 IFS=$as_save_IFS 48360 48361 ;; 48362 esac 48363 fi 48364 JTREGEXE=$ac_cv_path_JTREGEXE 48365 if test -n "$JTREGEXE"; then 48366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48367 $as_echo "$JTREGEXE" >&6; } 48368 else 48369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48370 $as_echo "no" >&6; } 48371 fi 48372 48373 48374 if test "x$JTREGEXE" = x; then 48375 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48376 fi 48377 else 48378 # Otherwise we believe it is a complete path. Use it as it is. 48379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 48380 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 48381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48382 $as_echo_n "checking for JTREGEXE... " >&6; } 48383 if test ! -x "$tool_specified"; then 48384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48385 $as_echo "not found" >&6; } 48386 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 48387 fi 48388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48389 $as_echo "$tool_specified" >&6; } 48390 fi 48391 fi 48392 fi 48393 48394 fi 48395 48396 48397 48398 if test "x$JTREGEXE" = x; then 48399 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 48400 fi 48401 48402 48403 JT_HOME="`$DIRNAME $JTREGEXE`" 48404 fi 48405 fi 48406 48407 48408 48409 48410 48411 48412 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 48413 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 48414 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 48415 # commands produced by the link step (currently AIX only) 48416 if test "x$TOOLCHAIN_TYPE" = xxlc; then 48417 COMPILER_TARGET_BITS_FLAG="-q" 48418 COMPILER_COMMAND_FILE_FLAG="-f" 48419 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 48420 else 48421 COMPILER_TARGET_BITS_FLAG="-m" 48422 COMPILER_COMMAND_FILE_FLAG="@" 48423 COMPILER_BINDCMD_FILE_FLAG="" 48424 48425 # The solstudio linker does not support @-files. 48426 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48427 COMPILER_COMMAND_FILE_FLAG= 48428 fi 48429 48430 # Check if @file is supported by gcc 48431 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 48433 $as_echo_n "checking if @file is supported by gcc... " >&6; } 48434 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 48435 $ECHO "" "--version" > command.file 48436 if $CXX @command.file 2>&5 >&5; then 48437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48438 $as_echo "yes" >&6; } 48439 COMPILER_COMMAND_FILE_FLAG="@" 48440 else 48441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48442 $as_echo "no" >&6; } 48443 COMPILER_COMMAND_FILE_FLAG= 48444 fi 48445 $RM command.file 48446 fi 48447 fi 48448 48449 48450 48451 48452 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 48453 if test "x$TOOLCHAIN_NAME" = xxcode; then 48454 ARFLAGS="-r" 48455 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48456 ARFLAGS="-X64" 48457 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 48458 # lib.exe is used as AR to create static libraries. 48459 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 48460 else 48461 ARFLAGS="" 48462 fi 48463 48464 48465 ## Setup strip. 48466 # FIXME: should this really be per platform, or should it be per toolchain type? 48467 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 48468 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 48469 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48470 STRIPFLAGS="-g" 48471 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 48472 STRIPFLAGS="-x" 48473 elif test "x$TOOLCHAIN_NAME" = xxcode; then 48474 STRIPFLAGS="-S" 48475 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48476 STRIPFLAGS="-X32_64" 48477 fi 48478 48479 48480 48481 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48482 CC_OUT_OPTION=-Fo 48483 EXE_OUT_OPTION=-out: 48484 LD_OUT_OPTION=-out: 48485 AR_OUT_OPTION=-out: 48486 else 48487 # The option used to specify the target .o,.a or .so file. 48488 # When compiling, how to specify the to be created object file. 48489 CC_OUT_OPTION='-o$(SPACE)' 48490 # When linking, how to specify the to be created executable. 48491 EXE_OUT_OPTION='-o$(SPACE)' 48492 # When linking, how to specify the to be created dynamically linkable library. 48493 LD_OUT_OPTION='-o$(SPACE)' 48494 # When archiving, how to specify the to be create static archive for object files. 48495 AR_OUT_OPTION='rcs$(SPACE)' 48496 fi 48497 48498 48499 48500 48501 48502 # On Windows, we need to set RC flags. 48503 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48504 RC_FLAGS="-nologo -l0x409" 48505 JVM_RCFLAGS="-nologo" 48506 if test "x$DEBUG_LEVEL" = xrelease; then 48507 RC_FLAGS="$RC_FLAGS -DNDEBUG" 48508 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 48509 fi 48510 48511 # The version variables used to create RC_FLAGS may be overridden 48512 # in a custom configure script, or possibly the command line. 48513 # Let those variables be expanded at make time in spec.gmk. 48514 # The \$ are escaped to the shell, and the $(...) variables 48515 # are evaluated by make. 48516 RC_FLAGS="$RC_FLAGS \ 48517 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 48518 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 48519 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 48520 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 48521 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 48522 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 48523 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 48524 48525 JVM_RCFLAGS="$JVM_RCFLAGS \ 48526 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 48527 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 48528 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 48529 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 48530 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 48531 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 48532 -D\"HS_FNAME=jvm.dll\" \ 48533 -D\"HS_INTERNAL_NAME=jvm\"" 48534 fi 48535 48536 48537 48538 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48539 # silence copyright notice and other headers. 48540 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 48541 fi 48542 48543 48544 # Now we can test some aspects on the target using configure macros. 48545 48546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 48547 $as_echo_n "checking for ANSI C header files... " >&6; } 48548 if ${ac_cv_header_stdc+:} false; then : 48549 $as_echo_n "(cached) " >&6 48550 else 48551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48552 /* end confdefs.h. */ 48553 #include <stdlib.h> 48554 #include <stdarg.h> 48555 #include <string.h> 48556 #include <float.h> 48557 48558 int 48559 main () 48560 { 48561 48562 ; 48563 return 0; 48564 } 48565 _ACEOF 48566 if ac_fn_cxx_try_compile "$LINENO"; then : 48567 ac_cv_header_stdc=yes 48568 else 48569 ac_cv_header_stdc=no 48570 fi 48571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48572 48573 if test $ac_cv_header_stdc = yes; then 48574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 48575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48576 /* end confdefs.h. */ 48577 #include <string.h> 48578 48579 _ACEOF 48580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48581 $EGREP "memchr" >/dev/null 2>&1; then : 48582 48583 else 48584 ac_cv_header_stdc=no 48585 fi 48586 rm -f conftest* 48587 48588 fi 48589 48590 if test $ac_cv_header_stdc = yes; then 48591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 48592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48593 /* end confdefs.h. */ 48594 #include <stdlib.h> 48595 48596 _ACEOF 48597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48598 $EGREP "free" >/dev/null 2>&1; then : 48599 48600 else 48601 ac_cv_header_stdc=no 48602 fi 48603 rm -f conftest* 48604 48605 fi 48606 48607 if test $ac_cv_header_stdc = yes; then 48608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 48609 if test "$cross_compiling" = yes; then : 48610 : 48611 else 48612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48613 /* end confdefs.h. */ 48614 #include <ctype.h> 48615 #include <stdlib.h> 48616 #if ((' ' & 0x0FF) == 0x020) 48617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 48618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 48619 #else 48620 # define ISLOWER(c) \ 48621 (('a' <= (c) && (c) <= 'i') \ 48622 || ('j' <= (c) && (c) <= 'r') \ 48623 || ('s' <= (c) && (c) <= 'z')) 48624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 48625 #endif 48626 48627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 48628 int 48629 main () 48630 { 48631 int i; 48632 for (i = 0; i < 256; i++) 48633 if (XOR (islower (i), ISLOWER (i)) 48634 || toupper (i) != TOUPPER (i)) 48635 return 2; 48636 return 0; 48637 } 48638 _ACEOF 48639 if ac_fn_cxx_try_run "$LINENO"; then : 48640 48641 else 48642 ac_cv_header_stdc=no 48643 fi 48644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48645 conftest.$ac_objext conftest.beam conftest.$ac_ext 48646 fi 48647 48648 fi 48649 fi 48650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 48651 $as_echo "$ac_cv_header_stdc" >&6; } 48652 if test $ac_cv_header_stdc = yes; then 48653 48654 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 48655 48656 fi 48657 48658 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 48659 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 48660 inttypes.h stdint.h unistd.h 48661 do : 48662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 48663 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 48664 " 48665 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 48666 cat >>confdefs.h <<_ACEOF 48667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 48668 _ACEOF 48669 48670 fi 48671 48672 done 48673 48674 48675 48676 ############################################################################### 48677 # 48678 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 48679 # (The JVM can use 32 or 64 bit Java pointers but that decision 48680 # is made at runtime.) 48681 # 48682 48683 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 48684 # Always specify -m flag on Solaris 48685 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 48686 48687 # When we add flags to the "official" CFLAGS etc, we need to 48688 # keep track of these additions in ADDED_CFLAGS etc. These 48689 # will later be checked to make sure only controlled additions 48690 # have been made to CFLAGS etc. 48691 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48692 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48693 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48694 48695 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48696 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48697 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48698 48699 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48700 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48701 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48702 48703 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48704 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48705 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48706 48707 elif test "x$COMPILE_TYPE" = xreduced; then 48708 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 48709 # Specify -m if running reduced on unix platforms 48710 48711 # When we add flags to the "official" CFLAGS etc, we need to 48712 # keep track of these additions in ADDED_CFLAGS etc. These 48713 # will later be checked to make sure only controlled additions 48714 # have been made to CFLAGS etc. 48715 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48716 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48717 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48718 48719 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48720 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48721 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48722 48723 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48724 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48725 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48726 48727 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48728 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48729 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48730 48731 fi 48732 fi 48733 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48734 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48735 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48736 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48737 fi 48738 48739 # Make compilation sanity check 48740 for ac_header in stdio.h 48741 do : 48742 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 48743 if test "x$ac_cv_header_stdio_h" = xyes; then : 48744 cat >>confdefs.h <<_ACEOF 48745 #define HAVE_STDIO_H 1 48746 _ACEOF 48747 48748 else 48749 48750 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 48751 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 48752 if test "x$COMPILE_TYPE" = xreduced; then 48753 48754 # Print a helpful message on how to acquire the necessary build dependency. 48755 # reduced is the help tag: freetype, cups, alsa etc 48756 MISSING_DEPENDENCY=reduced 48757 48758 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48759 cygwin_help $MISSING_DEPENDENCY 48760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48761 msys_help $MISSING_DEPENDENCY 48762 else 48763 PKGHANDLER_COMMAND= 48764 48765 case $PKGHANDLER in 48766 apt-get) 48767 apt_help $MISSING_DEPENDENCY ;; 48768 yum) 48769 yum_help $MISSING_DEPENDENCY ;; 48770 port) 48771 port_help $MISSING_DEPENDENCY ;; 48772 pkgutil) 48773 pkgutil_help $MISSING_DEPENDENCY ;; 48774 pkgadd) 48775 pkgadd_help $MISSING_DEPENDENCY ;; 48776 esac 48777 48778 if test "x$PKGHANDLER_COMMAND" != x; then 48779 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48780 fi 48781 fi 48782 48783 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48784 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48785 elif test "x$COMPILE_TYPE" = xcross; then 48786 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48787 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48788 fi 48789 as_fn_error $? "Cannot continue." "$LINENO" 5 48790 48791 fi 48792 48793 done 48794 48795 48796 # The cast to long int works around a bug in the HP C Compiler 48797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 48798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 48799 # This bug is HP SR number 8606223364. 48800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 48801 $as_echo_n "checking size of int *... " >&6; } 48802 if ${ac_cv_sizeof_int_p+:} false; then : 48803 $as_echo_n "(cached) " >&6 48804 else 48805 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 48806 48807 else 48808 if test "$ac_cv_type_int_p" = yes; then 48809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48811 as_fn_error 77 "cannot compute sizeof (int *) 48812 See \`config.log' for more details" "$LINENO" 5; } 48813 else 48814 ac_cv_sizeof_int_p=0 48815 fi 48816 fi 48817 48818 fi 48819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 48820 $as_echo "$ac_cv_sizeof_int_p" >&6; } 48821 48822 48823 48824 cat >>confdefs.h <<_ACEOF 48825 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 48826 _ACEOF 48827 48828 48829 48830 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 48831 if test "x$ac_cv_sizeof_int_p" = x; then 48832 # The test failed, lets stick to the assumed value. 48833 { $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 48834 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 48835 else 48836 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48837 48838 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48839 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 48840 # Let's try to implicitely set the compilers target architecture and retry the test 48841 { $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 48842 $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;} 48843 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 48844 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 48845 48846 # When we add flags to the "official" CFLAGS etc, we need to 48847 # keep track of these additions in ADDED_CFLAGS etc. These 48848 # will later be checked to make sure only controlled additions 48849 # have been made to CFLAGS etc. 48850 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48851 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48852 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48853 48854 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48855 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48856 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48857 48858 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48859 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48860 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48861 48862 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48863 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48864 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48865 48866 48867 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 48868 unset ac_cv_sizeof_int_p 48869 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 48870 cat >>confdefs.h <<_ACEOF 48871 #undef SIZEOF_INT_P 48872 _ACEOF 48873 48874 # The cast to long int works around a bug in the HP C Compiler 48875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 48876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 48877 # This bug is HP SR number 8606223364. 48878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 48879 $as_echo_n "checking size of int *... " >&6; } 48880 if ${ac_cv_sizeof_int_p+:} false; then : 48881 $as_echo_n "(cached) " >&6 48882 else 48883 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 48884 48885 else 48886 if test "$ac_cv_type_int_p" = yes; then 48887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48889 as_fn_error 77 "cannot compute sizeof (int *) 48890 See \`config.log' for more details" "$LINENO" 5; } 48891 else 48892 ac_cv_sizeof_int_p=0 48893 fi 48894 fi 48895 48896 fi 48897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 48898 $as_echo "$ac_cv_sizeof_int_p" >&6; } 48899 48900 48901 48902 cat >>confdefs.h <<_ACEOF 48903 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 48904 _ACEOF 48905 48906 48907 48908 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48909 48910 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48911 { $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 48912 $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;} 48913 if test "x$COMPILE_TYPE" = xreduced; then 48914 48915 # Print a helpful message on how to acquire the necessary build dependency. 48916 # reduced is the help tag: freetype, cups, alsa etc 48917 MISSING_DEPENDENCY=reduced 48918 48919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48920 cygwin_help $MISSING_DEPENDENCY 48921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48922 msys_help $MISSING_DEPENDENCY 48923 else 48924 PKGHANDLER_COMMAND= 48925 48926 case $PKGHANDLER in 48927 apt-get) 48928 apt_help $MISSING_DEPENDENCY ;; 48929 yum) 48930 yum_help $MISSING_DEPENDENCY ;; 48931 port) 48932 port_help $MISSING_DEPENDENCY ;; 48933 pkgutil) 48934 pkgutil_help $MISSING_DEPENDENCY ;; 48935 pkgadd) 48936 pkgadd_help $MISSING_DEPENDENCY ;; 48937 esac 48938 48939 if test "x$PKGHANDLER_COMMAND" != x; then 48940 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48941 fi 48942 fi 48943 48944 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48945 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48946 elif test "x$COMPILE_TYPE" = xcross; then 48947 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48948 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48949 fi 48950 as_fn_error $? "Cannot continue." "$LINENO" 5 48951 fi 48952 fi 48953 fi 48954 48955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 48956 $as_echo_n "checking for target address size... " >&6; } 48957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 48958 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 48959 48960 48961 ############################################################################### 48962 # 48963 # Is the target little of big endian? 48964 # 48965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 48966 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 48967 if ${ac_cv_c_bigendian+:} false; then : 48968 $as_echo_n "(cached) " >&6 48969 else 48970 ac_cv_c_bigendian=unknown 48971 # See if we're dealing with a universal compiler. 48972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48973 /* end confdefs.h. */ 48974 #ifndef __APPLE_CC__ 48975 not a universal capable compiler 48976 #endif 48977 typedef int dummy; 48978 48979 _ACEOF 48980 if ac_fn_cxx_try_compile "$LINENO"; then : 48981 48982 # Check for potential -arch flags. It is not universal unless 48983 # there are at least two -arch flags with different values. 48984 ac_arch= 48985 ac_prev= 48986 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 48987 if test -n "$ac_prev"; then 48988 case $ac_word in 48989 i?86 | x86_64 | ppc | ppc64) 48990 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 48991 ac_arch=$ac_word 48992 else 48993 ac_cv_c_bigendian=universal 48994 break 48995 fi 48996 ;; 48997 esac 48998 ac_prev= 48999 elif test "x$ac_word" = "x-arch"; then 49000 ac_prev=arch 49001 fi 49002 done 49003 fi 49004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49005 if test $ac_cv_c_bigendian = unknown; then 49006 # See if sys/param.h defines the BYTE_ORDER macro. 49007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49008 /* end confdefs.h. */ 49009 #include <sys/types.h> 49010 #include <sys/param.h> 49011 49012 int 49013 main () 49014 { 49015 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 49016 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 49017 && LITTLE_ENDIAN) 49018 bogus endian macros 49019 #endif 49020 49021 ; 49022 return 0; 49023 } 49024 _ACEOF 49025 if ac_fn_cxx_try_compile "$LINENO"; then : 49026 # It does; now see whether it defined to BIG_ENDIAN or not. 49027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49028 /* end confdefs.h. */ 49029 #include <sys/types.h> 49030 #include <sys/param.h> 49031 49032 int 49033 main () 49034 { 49035 #if BYTE_ORDER != BIG_ENDIAN 49036 not big endian 49037 #endif 49038 49039 ; 49040 return 0; 49041 } 49042 _ACEOF 49043 if ac_fn_cxx_try_compile "$LINENO"; then : 49044 ac_cv_c_bigendian=yes 49045 else 49046 ac_cv_c_bigendian=no 49047 fi 49048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49049 fi 49050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49051 fi 49052 if test $ac_cv_c_bigendian = unknown; then 49053 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 49054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49055 /* end confdefs.h. */ 49056 #include <limits.h> 49057 49058 int 49059 main () 49060 { 49061 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 49062 bogus endian macros 49063 #endif 49064 49065 ; 49066 return 0; 49067 } 49068 _ACEOF 49069 if ac_fn_cxx_try_compile "$LINENO"; then : 49070 # It does; now see whether it defined to _BIG_ENDIAN or not. 49071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49072 /* end confdefs.h. */ 49073 #include <limits.h> 49074 49075 int 49076 main () 49077 { 49078 #ifndef _BIG_ENDIAN 49079 not big endian 49080 #endif 49081 49082 ; 49083 return 0; 49084 } 49085 _ACEOF 49086 if ac_fn_cxx_try_compile "$LINENO"; then : 49087 ac_cv_c_bigendian=yes 49088 else 49089 ac_cv_c_bigendian=no 49090 fi 49091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49092 fi 49093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49094 fi 49095 if test $ac_cv_c_bigendian = unknown; then 49096 # Compile a test program. 49097 if test "$cross_compiling" = yes; then : 49098 # Try to guess by grepping values from an object file. 49099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49100 /* end confdefs.h. */ 49101 short int ascii_mm[] = 49102 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 49103 short int ascii_ii[] = 49104 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 49105 int use_ascii (int i) { 49106 return ascii_mm[i] + ascii_ii[i]; 49107 } 49108 short int ebcdic_ii[] = 49109 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 49110 short int ebcdic_mm[] = 49111 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 49112 int use_ebcdic (int i) { 49113 return ebcdic_mm[i] + ebcdic_ii[i]; 49114 } 49115 extern int foo; 49116 49117 int 49118 main () 49119 { 49120 return use_ascii (foo) == use_ebcdic (foo); 49121 ; 49122 return 0; 49123 } 49124 _ACEOF 49125 if ac_fn_cxx_try_compile "$LINENO"; then : 49126 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 49127 ac_cv_c_bigendian=yes 49128 fi 49129 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 49130 if test "$ac_cv_c_bigendian" = unknown; then 49131 ac_cv_c_bigendian=no 49132 else 49133 # finding both strings is unlikely to happen, but who knows? 49134 ac_cv_c_bigendian=unknown 49135 fi 49136 fi 49137 fi 49138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49139 else 49140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49141 /* end confdefs.h. */ 49142 $ac_includes_default 49143 int 49144 main () 49145 { 49146 49147 /* Are we little or big endian? From Harbison&Steele. */ 49148 union 49149 { 49150 long int l; 49151 char c[sizeof (long int)]; 49152 } u; 49153 u.l = 1; 49154 return u.c[sizeof (long int) - 1] == 1; 49155 49156 ; 49157 return 0; 49158 } 49159 _ACEOF 49160 if ac_fn_cxx_try_run "$LINENO"; then : 49161 ac_cv_c_bigendian=no 49162 else 49163 ac_cv_c_bigendian=yes 49164 fi 49165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 49166 conftest.$ac_objext conftest.beam conftest.$ac_ext 49167 fi 49168 49169 fi 49170 fi 49171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 49172 $as_echo "$ac_cv_c_bigendian" >&6; } 49173 case $ac_cv_c_bigendian in #( 49174 yes) 49175 ENDIAN="big";; #( 49176 no) 49177 ENDIAN="little" ;; #( 49178 universal) 49179 ENDIAN="universal_endianness" 49180 ;; #( 49181 *) 49182 ENDIAN="unknown" ;; 49183 esac 49184 49185 49186 if test "x$ENDIAN" = xuniversal_endianness; then 49187 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 49188 fi 49189 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 49190 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 49191 fi 49192 49193 49194 # Configure flags for the tools 49195 49196 ############################################################################### 49197 # 49198 # How to compile shared libraries. 49199 # 49200 49201 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49202 PICFLAG="-fPIC" 49203 C_FLAG_REORDER='' 49204 CXX_FLAG_REORDER='' 49205 49206 if test "x$TOOLCHAIN_NAME" = xxcode; then 49207 # Linking is different on MacOSX 49208 if test "x$STATIC_BUILD" = xtrue; then 49209 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 49210 else 49211 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49212 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49213 fi 49214 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 49215 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49216 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49217 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49218 else 49219 # Default works for linux, might work on other platforms as well. 49220 SHARED_LIBRARY_FLAGS='-shared' 49221 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 49222 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49223 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49224 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49225 fi 49226 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49227 C_FLAG_REORDER='' 49228 CXX_FLAG_REORDER='' 49229 49230 if test "x$TOOLCHAIN_NAME" = xxcode; then 49231 # Linking is different on MacOSX 49232 PICFLAG='' 49233 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49234 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 49235 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49236 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49237 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49238 49239 if test "x$STATIC_BUILD" = xfalse; then 49240 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 49241 fi 49242 else 49243 # Default works for linux, might work on other platforms as well. 49244 PICFLAG='-fPIC' 49245 SHARED_LIBRARY_FLAGS='-shared' 49246 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 49247 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49248 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49249 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49250 fi 49251 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49252 PICFLAG="-KPIC" 49253 C_FLAG_REORDER='-xF' 49254 CXX_FLAG_REORDER='-xF' 49255 SHARED_LIBRARY_FLAGS="-G" 49256 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 49257 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49258 SET_SHARED_LIBRARY_NAME='-h $1' 49259 SET_SHARED_LIBRARY_MAPFILE='-M$1' 49260 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49261 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 49262 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 49263 # will have to patch this single instruction with a call to some out-of-order code which 49264 # does the load from the TOC. This is of course slow. But in that case we also would have 49265 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 49266 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 49267 # can be patched directly by the linker and does not require a jump to out-of-order code. 49268 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 49269 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 49270 # loads for accessing a global variable). But there are rumors that this may be seen as a 49271 # 'performance feature' because of improved code locality of the symbols used in a 49272 # compilation unit. 49273 PICFLAG="-qpic" 49274 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49275 C_FLAG_REORDER='' 49276 CXX_FLAG_REORDER='' 49277 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 49278 SET_EXECUTABLE_ORIGIN="" 49279 SET_SHARED_LIBRARY_ORIGIN='' 49280 SET_SHARED_LIBRARY_NAME='' 49281 SET_SHARED_LIBRARY_MAPFILE='' 49282 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49283 PICFLAG="" 49284 C_FLAG_REORDER='' 49285 CXX_FLAG_REORDER='' 49286 SHARED_LIBRARY_FLAGS="-dll" 49287 SET_EXECUTABLE_ORIGIN='' 49288 SET_SHARED_LIBRARY_ORIGIN='' 49289 SET_SHARED_LIBRARY_NAME='' 49290 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 49291 fi 49292 BUILD_SET_EXECUTABLE_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49293 BUILD_SET_SHARED_LIBRARY_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN" 49294 if test "x$OPENJDK_TARGET_OS" = xandroid; then 49295 SET_EXECUTABLE_ORIGIN= 49296 SET_SHARED_LIBRARY_ORIGIN= 49297 fi 49298 49299 49300 49301 49302 49303 49304 49305 49306 49307 49308 # The (cross) compiler is now configured, we can now test capabilities 49309 # of the target platform. 49310 49311 49312 49313 ############################################################################### 49314 # 49315 # Setup the opt flags for different compilers 49316 # and different operating systems. 49317 # 49318 49319 # FIXME: this was indirectly the old default, but just inherited. 49320 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49321 # C_FLAG_DEPS="-MMD -MF" 49322 # fi 49323 49324 # Generate make dependency files 49325 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49326 C_FLAG_DEPS="-MMD -MF" 49327 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49328 C_FLAG_DEPS="-MMD -MF" 49329 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49330 C_FLAG_DEPS="-xMMD -xMF" 49331 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49332 C_FLAG_DEPS="-qmakedep=gcc -MF" 49333 fi 49334 CXX_FLAG_DEPS="$C_FLAG_DEPS" 49335 49336 49337 49338 # Debug symbols 49339 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49340 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 49341 # reduce from default "-g2" option to save space 49342 CFLAGS_DEBUG_SYMBOLS="-g1" 49343 CXXFLAGS_DEBUG_SYMBOLS="-g1" 49344 else 49345 CFLAGS_DEBUG_SYMBOLS="-g" 49346 CXXFLAGS_DEBUG_SYMBOLS="-g" 49347 fi 49348 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49349 CFLAGS_DEBUG_SYMBOLS="-g" 49350 CXXFLAGS_DEBUG_SYMBOLS="-g" 49351 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49352 CFLAGS_DEBUG_SYMBOLS="-g -xs" 49353 # -g0 enables debug symbols without disabling inlining. 49354 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 49355 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49356 CFLAGS_DEBUG_SYMBOLS="-g" 49357 CXXFLAGS_DEBUG_SYMBOLS="-g" 49358 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49359 CFLAGS_DEBUG_SYMBOLS="-Zi" 49360 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 49361 fi 49362 49363 49364 49365 # Debug symbols for JVM_CFLAGS 49366 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49367 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 49368 if test "x$DEBUG_LEVEL" = xslowdebug; then 49369 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49370 else 49371 # -g0 does not disable inlining, which -g does. 49372 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 49373 fi 49374 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49375 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 49376 else 49377 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49378 fi 49379 49380 49381 # bounds, memory and behavior checking options 49382 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49383 case $DEBUG_LEVEL in 49384 release ) 49385 # no adjustment 49386 ;; 49387 fastdebug ) 49388 # no adjustment 49389 ;; 49390 slowdebug ) 49391 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 49392 # get's added conditionally on whether we produce debug symbols or not. 49393 # This is most likely not really correct. 49394 49395 # Add runtime stack smashing and undefined behavior checks. 49396 # Not all versions of gcc support -fstack-protector 49397 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 49398 49399 49400 49401 49402 49403 49404 49405 49406 49407 49408 49409 49410 49411 49412 49413 49414 49415 49416 49417 49418 49419 49420 49421 49422 49423 49424 49425 49426 49427 49428 49429 49430 49431 49432 49433 49434 49435 49436 49437 49438 49439 49440 # Execute function body 49441 49442 49443 49444 49445 49446 49447 49448 49449 49450 49451 49452 49453 49454 49455 49456 49457 49458 49459 49460 49461 49462 49463 49464 49465 49466 49467 49468 49469 49470 49471 49472 49473 49474 49475 49476 49477 49478 49479 49480 49481 49482 49483 49484 49485 49486 49487 49488 49489 # Execute function body 49490 49491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49492 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49493 supports=yes 49494 49495 saved_cflags="$CFLAGS" 49496 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 49497 ac_ext=c 49498 ac_cpp='$CPP $CPPFLAGS' 49499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49501 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49502 49503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49504 /* end confdefs.h. */ 49505 int i; 49506 _ACEOF 49507 if ac_fn_c_try_compile "$LINENO"; then : 49508 49509 else 49510 supports=no 49511 fi 49512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49513 ac_ext=cpp 49514 ac_cpp='$CXXCPP $CPPFLAGS' 49515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49518 49519 CFLAGS="$saved_cflags" 49520 49521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49522 $as_echo "$supports" >&6; } 49523 if test "x$supports" = "xyes" ; then 49524 : 49525 C_COMP_SUPPORTS="yes" 49526 else 49527 : 49528 C_COMP_SUPPORTS="no" 49529 fi 49530 49531 49532 49533 49534 49535 49536 49537 49538 49539 49540 49541 49542 49543 49544 49545 49546 49547 49548 49549 49550 49551 49552 49553 49554 49555 49556 49557 49558 49559 49560 49561 49562 49563 49564 49565 49566 49567 49568 49569 49570 49571 49572 49573 49574 49575 49576 49577 49578 49579 49580 49581 49582 49583 49584 49585 49586 49587 49588 49589 # Execute function body 49590 49591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49592 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49593 supports=yes 49594 49595 saved_cxxflags="$CXXFLAGS" 49596 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 49597 ac_ext=cpp 49598 ac_cpp='$CXXCPP $CPPFLAGS' 49599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49602 49603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49604 /* end confdefs.h. */ 49605 int i; 49606 _ACEOF 49607 if ac_fn_cxx_try_compile "$LINENO"; then : 49608 49609 else 49610 supports=no 49611 fi 49612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49613 ac_ext=cpp 49614 ac_cpp='$CXXCPP $CPPFLAGS' 49615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49618 49619 CXXFLAGS="$saved_cxxflags" 49620 49621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49622 $as_echo "$supports" >&6; } 49623 if test "x$supports" = "xyes" ; then 49624 : 49625 CXX_COMP_SUPPORTS="yes" 49626 else 49627 : 49628 CXX_COMP_SUPPORTS="no" 49629 fi 49630 49631 49632 49633 49634 49635 49636 49637 49638 49639 49640 49641 49642 49643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49644 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49645 supports=no 49646 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49647 49648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49649 $as_echo "$supports" >&6; } 49650 if test "x$supports" = "xyes" ; then 49651 : 49652 49653 else 49654 : 49655 STACK_PROTECTOR_CFLAG="" 49656 fi 49657 49658 49659 49660 49661 49662 49663 49664 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49665 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49666 if test "x$STACK_PROTECTOR_CFLAG" != x; then 49667 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49668 fi 49669 ;; 49670 esac 49671 fi 49672 49673 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49674 if test "x$DEBUG_LEVEL" != xrelease; then 49675 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 49676 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 49677 fi 49678 fi 49679 fi 49680 49681 # Optimization levels 49682 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49683 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 49684 49685 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 49686 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 49687 C_O_FLAG_HIGHEST_JVM="-xO4" 49688 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 49689 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 49690 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 49691 C_O_FLAG_DEBUG="-xregs=no%frameptr" 49692 C_O_FLAG_DEBUG_JVM="" 49693 C_O_FLAG_NONE="-xregs=no%frameptr" 49694 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49695 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 49696 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 49697 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 49698 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 49699 CXX_O_FLAG_DEBUG_JVM="" 49700 CXX_O_FLAG_NONE="-xregs=no%frameptr" 49701 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 49702 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 49703 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 49704 fi 49705 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49706 C_O_FLAG_HIGHEST_JVM="-xO4" 49707 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 49708 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49709 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49710 C_O_FLAG_DEBUG="" 49711 C_O_FLAG_DEBUG_JVM="" 49712 C_O_FLAG_NONE="" 49713 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49714 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 49715 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49716 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49717 CXX_O_FLAG_DEBUG="" 49718 CXX_O_FLAG_DEBUG_JVM="" 49719 CXX_O_FLAG_NONE="" 49720 fi 49721 else 49722 # The remaining toolchains share opt flags between CC and CXX; 49723 # setup for C and duplicate afterwards. 49724 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49725 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49726 # On MacOSX we optimize for size, something 49727 # we should do for all platforms? 49728 C_O_FLAG_HIGHEST_JVM="-Os" 49729 C_O_FLAG_HIGHEST="-Os" 49730 C_O_FLAG_HI="-Os" 49731 C_O_FLAG_NORM="-Os" 49732 C_O_FLAG_SIZE="-Os" 49733 else 49734 C_O_FLAG_HIGHEST_JVM="-O3" 49735 C_O_FLAG_HIGHEST="-O3" 49736 C_O_FLAG_HI="-O3" 49737 C_O_FLAG_NORM="-O2" 49738 C_O_FLAG_SIZE="-Os" 49739 fi 49740 C_O_FLAG_DEBUG="-O0" 49741 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49742 C_O_FLAG_DEBUG_JVM="" 49743 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 49744 C_O_FLAG_DEBUG_JVM="-O0" 49745 fi 49746 C_O_FLAG_NONE="-O0" 49747 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49748 if test "x$TOOLCHAIN_NAME" = xxcode; then 49749 # On MacOSX we optimize for size, something 49750 # we should do for all platforms? 49751 C_O_FLAG_HIGHEST_JVM="-Os" 49752 C_O_FLAG_HIGHEST="-Os" 49753 C_O_FLAG_HI="-Os" 49754 C_O_FLAG_NORM="-Os" 49755 C_O_FLAG_SIZE="-Os" 49756 else 49757 C_O_FLAG_HIGHEST_JVM="-O3" 49758 C_O_FLAG_HIGHEST="-O3" 49759 C_O_FLAG_HI="-O3" 49760 C_O_FLAG_NORM="-O2" 49761 C_O_FLAG_SIZE="-Os" 49762 fi 49763 C_O_FLAG_DEBUG="-O0" 49764 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49765 C_O_FLAG_DEBUG_JVM="" 49766 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 49767 C_O_FLAG_DEBUG_JVM="-O0" 49768 fi 49769 C_O_FLAG_NONE="-O0" 49770 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49771 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 49772 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 49773 C_O_FLAG_HI="-O3 -qinline -qinlglue" 49774 C_O_FLAG_NORM="-O2" 49775 C_O_FLAG_DEBUG="-qnoopt" 49776 # FIXME: Value below not verified. 49777 C_O_FLAG_DEBUG_JVM="" 49778 C_O_FLAG_NONE="-qnoopt" 49779 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49780 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 49781 C_O_FLAG_HIGHEST="-O2" 49782 C_O_FLAG_HI="-O1" 49783 C_O_FLAG_NORM="-O1" 49784 C_O_FLAG_DEBUG="-Od" 49785 C_O_FLAG_DEBUG_JVM="" 49786 C_O_FLAG_NONE="-Od" 49787 C_O_FLAG_SIZE="-Os" 49788 fi 49789 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 49790 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 49791 CXX_O_FLAG_HI="$C_O_FLAG_HI" 49792 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 49793 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 49794 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 49795 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 49796 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 49797 fi 49798 49799 # Adjust optimization flags according to debug level. 49800 case $DEBUG_LEVEL in 49801 release ) 49802 # no adjustment 49803 ;; 49804 fastdebug ) 49805 # Not quite so much optimization 49806 C_O_FLAG_HI="$C_O_FLAG_NORM" 49807 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 49808 ;; 49809 slowdebug ) 49810 # Disable optimization 49811 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 49812 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 49813 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 49814 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 49815 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 49816 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 49817 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 49818 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 49819 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 49820 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 49821 ;; 49822 esac 49823 49824 49825 49826 49827 49828 49829 49830 49831 49832 49833 49834 49835 49836 49837 49838 49839 49840 49841 49842 # Special extras... 49843 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49844 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49845 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 49846 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 49847 fi 49848 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 49849 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 49850 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49851 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49852 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49853 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 49854 CXXSTD_CXXFLAG="-std=gnu++98" 49855 49856 49857 49858 49859 49860 49861 49862 49863 49864 49865 49866 49867 49868 49869 49870 49871 49872 49873 49874 49875 49876 49877 49878 49879 49880 49881 49882 49883 49884 49885 49886 49887 49888 49889 49890 49891 49892 49893 49894 49895 49896 49897 # Execute function body 49898 49899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 49900 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 49901 supports=yes 49902 49903 saved_cxxflags="$CXXFLAGS" 49904 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 49905 ac_ext=cpp 49906 ac_cpp='$CXXCPP $CPPFLAGS' 49907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49910 49911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49912 /* end confdefs.h. */ 49913 int i; 49914 _ACEOF 49915 if ac_fn_cxx_try_compile "$LINENO"; then : 49916 49917 else 49918 supports=no 49919 fi 49920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49921 ac_ext=cpp 49922 ac_cpp='$CXXCPP $CPPFLAGS' 49923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49926 49927 CXXFLAGS="$saved_cxxflags" 49928 49929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49930 $as_echo "$supports" >&6; } 49931 if test "x$supports" = "xyes" ; then 49932 : 49933 49934 else 49935 : 49936 CXXSTD_CXXFLAG="" 49937 fi 49938 49939 49940 49941 49942 49943 49944 49945 49946 49947 49948 49949 49950 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 49951 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 49952 49953 fi 49954 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49955 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49956 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49957 fi 49958 49959 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49960 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49961 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49962 fi 49963 49964 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 49965 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 49966 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 49967 49968 ############################################################################### 49969 # 49970 # Now setup the CFLAGS and LDFLAGS for the JDK build. 49971 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 49972 # 49973 49974 # Setup compiler/platform specific flags into 49975 # CFLAGS_JDK - C Compiler flags 49976 # CXXFLAGS_JDK - C++ Compiler flags 49977 # COMMON_CCXXFLAGS_JDK - common to C and C++ 49978 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49979 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 49980 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 49981 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 49982 if test "x$OPENJDK_TARGET_CPU" = xx86; then 49983 # Force compatibility with i586 on 32 bit intel platforms. 49984 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 49985 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 49986 fi 49987 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 49988 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 49989 case $OPENJDK_TARGET_CPU_ARCH in 49990 arm ) 49991 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49992 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49993 ;; 49994 ppc ) 49995 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49996 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49997 ;; 49998 * ) 49999 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50000 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50001 ;; 50002 esac 50003 50004 50005 50006 50007 50008 50009 50010 50011 50012 50013 50014 50015 50016 50017 50018 50019 50020 50021 50022 50023 50024 50025 50026 50027 50028 50029 50030 50031 50032 50033 50034 50035 50036 50037 50038 50039 50040 50041 50042 50043 50044 50045 50046 50047 50048 50049 50050 50051 50052 50053 50054 50055 50056 50057 # Execute function body 50058 50059 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50060 REFERENCE_VERSION=6 50061 50062 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 50063 as_fn_error $? "Internal error: Cannot compare to 6, only three parts (X.Y.Z) is supported" "$LINENO" 5 50064 fi 50065 50066 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50067 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 50068 fi 50069 50070 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50071 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 50072 50073 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50074 : 50075 50076 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 50077 # runs afoul of the more aggressive versions of these optimisations. 50078 # Notably, value range propagation now assumes that the this pointer of C++ 50079 # member functions is non-null. 50080 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 50081 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 50082 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 50083 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 50084 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50085 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50086 50087 else 50088 : 50089 50090 fi 50091 50092 50093 50094 50095 50096 50097 50098 50099 50100 50101 50102 50103 50104 50105 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50106 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 50107 50108 # Restrict the debug information created by Clang to avoid 50109 # too big object files and speed the build up a little bit 50110 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 50111 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 50112 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50113 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50114 # Force compatibility with i586 on 32 bit intel platforms. 50115 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 50116 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 50117 fi 50118 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 50119 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50120 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50121 case $OPENJDK_TARGET_CPU_ARCH in 50122 ppc ) 50123 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50124 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50125 ;; 50126 * ) 50127 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50128 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50129 ;; 50130 esac 50131 fi 50132 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50133 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 50134 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 50135 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 50136 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 50137 fi 50138 50139 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 50140 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 50141 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50142 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 50143 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50144 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50145 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50146 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 50147 -MD -Zc:wchar_t- -W3 -wd4800 \ 50148 -DWIN32_LEAN_AND_MEAN \ 50149 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 50150 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 50151 -DWIN32 -DIAL" 50152 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50153 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 50154 else 50155 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 50156 fi 50157 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 50158 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 50159 # studio. 50160 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 50161 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 50162 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 50163 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 50164 fi 50165 fi 50166 50167 ############################################################################### 50168 50169 # Adjust flags according to debug level. 50170 case $DEBUG_LEVEL in 50171 fastdebug | slowdebug ) 50172 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 50173 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 50174 JAVAC_FLAGS="$JAVAC_FLAGS -g" 50175 ;; 50176 release ) 50177 ;; 50178 * ) 50179 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50180 ;; 50181 esac 50182 50183 # Set some common defines. These works for all compilers, but assume 50184 # -D is universally accepted. 50185 50186 # Setup endianness 50187 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 50188 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 50189 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 50190 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 50191 # Note: -Dmacro is the same as #define macro 1 50192 # -Dmacro= is the same as #define macro 50193 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50194 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 50195 else 50196 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 50197 fi 50198 else 50199 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 50200 # are defined in the system? 50201 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50202 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 50203 else 50204 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 50205 fi 50206 fi 50207 50208 # Setup target OS define. Use OS target name but in upper case. 50209 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 50210 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 50211 50212 # Setup target CPU 50213 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50214 $OPENJDK_TARGET_ADD_LP64 \ 50215 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 50216 50217 # Setup debug/release defines 50218 if test "x$DEBUG_LEVEL" = xrelease; then 50219 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 50220 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50221 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 50222 fi 50223 else 50224 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 50225 fi 50226 50227 # Set some additional per-OS defines. 50228 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50229 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 50230 JVM_CFLAGS="$JVM_CFLAGS -pipe -fPIC -fno-rtti -fno-exceptions \ 50231 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50232 elif test "x$OPENJDK_TARGET_OS" = xandroid; then 50233 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 50234 JVM_CFLAGS="$JVM_CFLAGS -pipe -fPIC -fno-rtti -fno-exceptions \ 50235 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50236 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50237 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 50238 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 50239 -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" 50240 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50241 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50242 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 50243 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50244 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50245 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50246 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 50247 -fno-omit-frame-pointer" 50248 elif test "x$OPENJDK_TARGET_OS" = xios; then 50249 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50250 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 50251 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50252 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50253 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50254 -fno-omit-frame-pointer" 50255 JVM_ASFLAGS="$JVM_ASFLAGS $EXTRA_CFLAGS" 50256 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50257 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 50258 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 50259 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 50260 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 50261 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 50262 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50263 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 50264 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50265 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 50266 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 50267 fi 50268 50269 # Set some additional per-CPU defines. 50270 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 50271 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 50272 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50273 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 50274 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 50275 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50276 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50277 # fixes `relocation truncated to fit' error for gcc 4.1. 50278 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 50279 # Use ppc64 instructions, but schedule for power5 50280 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 50281 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50282 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 50283 fi 50284 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 50285 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50286 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50287 # Little endian machine uses ELFv2 ABI. 50288 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 50289 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 50290 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power7 -mtune=power8" 50291 fi 50292 fi 50293 50294 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 50295 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 50296 fi 50297 50298 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50299 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 50300 # Solaris does not have _LP64=1 in the old build. 50301 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 50302 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 50303 fi 50304 fi 50305 50306 # Set JVM_CFLAGS warning handling 50307 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50308 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 50309 -Wunused-value -Woverloaded-virtual" 50310 50311 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50312 50313 50314 50315 50316 50317 50318 50319 50320 50321 50322 50323 50324 50325 50326 50327 50328 50329 50330 50331 50332 50333 50334 50335 50336 50337 50338 50339 50340 50341 50342 50343 50344 50345 50346 50347 50348 50349 50350 50351 50352 50353 50354 50355 50356 50357 50358 50359 50360 50361 50362 50363 50364 50365 50366 # Execute function body 50367 50368 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50369 REFERENCE_VERSION=4.8 50370 50371 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 50372 as_fn_error $? "Internal error: Cannot compare to 4.8, only three parts (X.Y.Z) is supported" "$LINENO" 5 50373 fi 50374 50375 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50376 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 50377 fi 50378 50379 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50380 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 50381 50382 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50383 : 50384 50385 # These flags either do not work or give spurious warnings prior to gcc 4.8. 50386 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 50387 50388 50389 else 50390 : 50391 50392 fi 50393 50394 50395 50396 50397 50398 50399 50400 50401 50402 50403 50404 50405 50406 50407 fi 50408 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 50409 # Non-zero builds have stricter warnings 50410 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 50411 else 50412 if test "x$TOOLCHAIN_TYPE" = xclang; then 50413 # Some versions of llvm do not like -Wundef 50414 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 50415 fi 50416 fi 50417 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = "xios"; then 50418 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 50419 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 50420 fi 50421 50422 # Additional macosx handling 50423 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50424 # Setting these parameters makes it an error to link to macosx APIs that are 50425 # newer than the given OS version and makes the linked binaries compatible 50426 # even if built on a newer version of the OS. 50427 # The expected format is X.Y.Z 50428 MACOSX_VERSION_MIN=10.7.0 50429 50430 50431 # The macro takes the version with no dots, ex: 1070 50432 # Let the flags variables get resolved in make for easier override on make 50433 # command line. 50434 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50435 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50436 JVM_ASFLAGS="$JVM_ASFLAGS -mmacosx-version-min=\$(MACOSX_VERSION_MIN) " 50437 fi 50438 50439 # Setup some hard coded includes 50440 if test "x$OPENJDK_TARGET_OS" = xandroid ; then 50441 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50442 -I${JDK_TOPDIR}/src/java.base/linux/native/include -DLINUX" 50443 fi 50444 50445 # Setup some hard coded includes 50446 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50447 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 50448 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 50449 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 50450 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 50451 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 50452 50453 # The shared libraries are compiled using the picflag. 50454 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50455 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 50456 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50457 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 50458 50459 # Executable flags 50460 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 50461 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 50462 50463 50464 50465 50466 50467 50468 # Setup LDFLAGS et al. 50469 # 50470 50471 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50472 LDFLAGS_MICROSOFT="-nologo -opt:ref" 50473 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 50474 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 50475 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 50476 LDFLAGS_SAFESH="-safeseh" 50477 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 50478 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 50479 # NOTE: Old build added -machine. Probably not needed. 50480 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 50481 else 50482 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 50483 fi 50484 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50485 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 50486 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50487 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 50488 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50489 fi 50490 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50491 # If this is a --hash-style=gnu system, use --hash-style=both, why? 50492 # We have previously set HAS_GNU_HASH if this is the case 50493 if test -n "$HAS_GNU_HASH"; then 50494 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 50495 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 50496 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 50497 fi 50498 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50499 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50500 fi 50501 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xandroid ; then 50502 # And since we now know that the linker is gnu, then add -z defs, to forbid 50503 # undefined symbols in object files. 50504 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 50505 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 50506 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 50507 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 50508 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 50509 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50510 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 50511 fi 50512 case $DEBUG_LEVEL in 50513 release ) 50514 # tell linker to optimize libraries. 50515 # Should this be supplied to the OSS linker as well? 50516 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 50517 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 50518 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 50519 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50520 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50521 fi 50522 ;; 50523 slowdebug ) 50524 # Hotspot always let the linker optimize 50525 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50526 if test "x$HAS_LINKER_NOW" = "xtrue"; then 50527 # do relocations at load 50528 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 50529 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 50530 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 50531 fi 50532 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50533 # mark relocations read only 50534 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50535 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50536 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50537 fi 50538 ;; 50539 fastdebug ) 50540 # Hotspot always let the linker optimize 50541 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50542 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50543 # mark relocations read only 50544 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50545 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50546 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50547 fi 50548 ;; 50549 * ) 50550 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50551 ;; 50552 esac 50553 fi 50554 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50555 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 50556 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 50557 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 50558 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 50559 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 50560 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50561 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 50562 fi 50563 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50564 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 50565 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 50566 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 50567 fi 50568 50569 # Customize LDFLAGS for executables 50570 50571 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 50572 50573 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50574 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 50575 LDFLAGS_STACK_SIZE=1048576 50576 else 50577 LDFLAGS_STACK_SIZE=327680 50578 fi 50579 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 50580 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50581 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 50582 elif test "x$OPENJDK_TARGET_OS" = xandroid; then 50583 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined -pie" 50584 fi 50585 50586 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 50587 50588 # Customize LDFLAGS for libs 50589 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 50590 50591 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 50592 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50593 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50594 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 50595 JDKLIB_LIBS="" 50596 else 50597 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50598 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)" 50599 50600 if test "xTARGET" = "xTARGET"; then 50601 # On some platforms (mac) the linker warns about non existing -L dirs. 50602 # Add server first if available. Linking aginst client does not always produce the same results. 50603 # Only add client/minimal dir if client/minimal is being built. 50604 # Default to server for other variants. 50605 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 50606 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50607 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 50608 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/client" 50609 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 50610 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/minimal" 50611 else 50612 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50613 fi 50614 elif test "xTARGET" = "xBUILD"; then 50615 # When building a buildjdk, it's always only the server variant 50616 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50617 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50618 fi 50619 50620 JDKLIB_LIBS="-ljava -ljvm" 50621 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50622 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 50623 fi 50624 50625 fi 50626 50627 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 50628 50629 # Set JVM_LIBS (per os) 50630 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50631 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 50632 elif test "x$OPENJDK_TARGET_OS" = xandroid; then 50633 JVM_LIBS="$JVM_LIBS -lm -llog" 50634 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50635 # FIXME: This hard-coded path is not really proper. 50636 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50637 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 50638 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50639 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 50640 fi 50641 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 50642 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 50643 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50644 JVM_LIBS="$JVM_LIBS -lm" 50645 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50646 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 50647 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50648 JVM_LIBS="$JVM_LIBS -lm" 50649 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50650 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 50651 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 50652 wsock32.lib winmm.lib version.lib psapi.lib" 50653 fi 50654 50655 # Set JVM_ASFLAGS 50656 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50657 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50658 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 50659 fi 50660 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50661 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 50662 fi 50663 50664 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 50665 50666 50667 50668 50669 50670 50671 50672 50673 50674 50675 50676 50677 50678 50679 50680 # Special extras... 50681 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50682 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 50683 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50684 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50685 fi 50686 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50687 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50688 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50689 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50690 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50691 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50692 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 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 # Execute function body 50736 50737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 50738 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 50739 supports=yes 50740 50741 saved_cxxflags="$CXXFLAGS" 50742 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 50743 ac_ext=cpp 50744 ac_cpp='$CXXCPP $CPPFLAGS' 50745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50748 50749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50750 /* end confdefs.h. */ 50751 int i; 50752 _ACEOF 50753 if ac_fn_cxx_try_compile "$LINENO"; then : 50754 50755 else 50756 supports=no 50757 fi 50758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50759 ac_ext=cpp 50760 ac_cpp='$CXXCPP $CPPFLAGS' 50761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50764 50765 CXXFLAGS="$saved_cxxflags" 50766 50767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50768 $as_echo "$supports" >&6; } 50769 if test "x$supports" = "xyes" ; then 50770 : 50771 50772 else 50773 : 50774 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 50775 fi 50776 50777 50778 50779 50780 50781 50782 50783 50784 50785 50786 50787 50788 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 50789 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 50790 50791 fi 50792 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50793 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 50794 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 50795 fi 50796 50797 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50798 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 50799 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 50800 fi 50801 50802 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 50803 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 50804 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 50805 50806 ############################################################################### 50807 # 50808 # Now setup the CFLAGS and LDFLAGS for the JDK build. 50809 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 50810 # 50811 50812 # Setup compiler/platform specific flags into 50813 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 50814 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 50815 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 50816 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50817 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 50818 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 50819 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 50820 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50821 # Force compatibility with i586 on 32 bit intel platforms. 50822 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 50823 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 50824 fi 50825 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50826 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50827 case $OPENJDK_BUILD_CPU_ARCH in 50828 arm ) 50829 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50830 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50831 ;; 50832 ppc ) 50833 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50834 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50835 ;; 50836 * ) 50837 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50838 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50839 ;; 50840 esac 50841 50842 50843 50844 50845 50846 50847 50848 50849 50850 50851 50852 50853 50854 50855 50856 50857 50858 50859 50860 50861 50862 50863 50864 50865 50866 50867 50868 50869 50870 50871 50872 50873 50874 50875 50876 50877 50878 50879 50880 50881 50882 50883 50884 50885 50886 50887 50888 50889 50890 50891 50892 50893 50894 50895 # Execute function body 50896 50897 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50898 REFERENCE_VERSION=6 50899 50900 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 50901 as_fn_error $? "Internal error: Cannot compare to 6, only three parts (X.Y.Z) is supported" "$LINENO" 5 50902 fi 50903 50904 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50905 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 50906 fi 50907 50908 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50909 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 50910 50911 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50912 : 50913 50914 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 50915 # runs afoul of the more aggressive versions of these optimisations. 50916 # Notably, value range propagation now assumes that the this pointer of C++ 50917 # member functions is non-null. 50918 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 50919 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 50920 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 50921 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 50922 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50923 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50924 50925 else 50926 : 50927 50928 fi 50929 50930 50931 50932 50933 50934 50935 50936 50937 50938 50939 50940 50941 50942 50943 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50944 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 50945 50946 # Restrict the debug information created by Clang to avoid 50947 # too big object files and speed the build up a little bit 50948 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 50949 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 50950 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50951 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50952 # Force compatibility with i586 on 32 bit intel platforms. 50953 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 50954 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 50955 fi 50956 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 50957 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50958 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50959 case $OPENJDK_BUILD_CPU_ARCH in 50960 ppc ) 50961 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50962 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50963 ;; 50964 * ) 50965 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50966 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50967 ;; 50968 esac 50969 fi 50970 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50971 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 50972 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 50973 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 50974 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 50975 fi 50976 50977 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 50978 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 50979 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50980 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 50981 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50982 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50983 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50984 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50985 -MD -Zc:wchar_t- -W3 -wd4800 \ 50986 -DWIN32_LEAN_AND_MEAN \ 50987 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 50988 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 50989 -DWIN32 -DIAL" 50990 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 50991 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 50992 else 50993 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 50994 fi 50995 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 50996 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 50997 # studio. 50998 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 50999 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 51000 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 51001 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 51002 fi 51003 fi 51004 51005 ############################################################################### 51006 51007 # Adjust flags according to debug level. 51008 case $DEBUG_LEVEL in 51009 fastdebug | slowdebug ) 51010 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 51011 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 51012 JAVAC_FLAGS="$JAVAC_FLAGS -g" 51013 ;; 51014 release ) 51015 ;; 51016 * ) 51017 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51018 ;; 51019 esac 51020 51021 # Set some common defines. These works for all compilers, but assume 51022 # -D is universally accepted. 51023 51024 # Setup endianness 51025 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 51026 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 51027 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 51028 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 51029 # Note: -Dmacro is the same as #define macro 1 51030 # -Dmacro= is the same as #define macro 51031 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 51032 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 51033 else 51034 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 51035 fi 51036 else 51037 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 51038 # are defined in the system? 51039 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 51040 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 51041 else 51042 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 51043 fi 51044 fi 51045 51046 # Setup target OS define. Use OS target name but in upper case. 51047 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 51048 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 51049 51050 # Setup target CPU 51051 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51052 $OPENJDK_BUILD_ADD_LP64 \ 51053 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 51054 51055 # Setup debug/release defines 51056 if test "x$DEBUG_LEVEL" = xrelease; then 51057 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 51058 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 51059 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 51060 fi 51061 else 51062 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 51063 fi 51064 51065 # Set some additional per-OS defines. 51066 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51067 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 51068 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe -fPIC -fno-rtti -fno-exceptions \ 51069 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 51070 elif test "x$OPENJDK_BUILD_OS" = xandroid; then 51071 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 51072 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe -fPIC -fno-rtti -fno-exceptions \ 51073 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 51074 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 51075 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 51076 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 51077 -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" 51078 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51079 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 51080 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 51081 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 51082 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 51083 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 51084 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 51085 -fno-omit-frame-pointer" 51086 elif test "x$OPENJDK_BUILD_OS" = xios; then 51087 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 51088 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 51089 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 51090 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 51091 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 51092 -fno-omit-frame-pointer" 51093 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS $EXTRA_CFLAGS" 51094 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51095 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 51096 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 51097 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 51098 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 51099 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 51100 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 51101 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 51102 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51103 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 51104 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 51105 fi 51106 51107 # Set some additional per-CPU defines. 51108 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 51109 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 51110 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 51111 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 51112 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 51113 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51114 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51115 # fixes `relocation truncated to fit' error for gcc 4.1. 51116 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 51117 # Use ppc64 instructions, but schedule for power5 51118 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 51119 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51120 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 51121 fi 51122 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 51123 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51124 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51125 # Little endian machine uses ELFv2 ABI. 51126 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 51127 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 51128 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power7 -mtune=power8" 51129 fi 51130 fi 51131 51132 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 51133 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 51134 fi 51135 51136 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 51137 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 51138 # Solaris does not have _LP64=1 in the old build. 51139 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 51140 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 51141 fi 51142 fi 51143 51144 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 51145 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51146 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 51147 -Wunused-value -Woverloaded-virtual" 51148 51149 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51150 51151 51152 51153 51154 51155 51156 51157 51158 51159 51160 51161 51162 51163 51164 51165 51166 51167 51168 51169 51170 51171 51172 51173 51174 51175 51176 51177 51178 51179 51180 51181 51182 51183 51184 51185 51186 51187 51188 51189 51190 51191 51192 51193 51194 51195 51196 51197 51198 51199 51200 51201 51202 51203 51204 # Execute function body 51205 51206 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51207 REFERENCE_VERSION=4.8 51208 51209 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 51210 as_fn_error $? "Internal error: Cannot compare to 4.8, only three parts (X.Y.Z) is supported" "$LINENO" 5 51211 fi 51212 51213 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51214 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 51215 fi 51216 51217 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51218 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 51219 51220 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51221 : 51222 51223 # These flags either do not work or give spurious warnings prior to gcc 4.8. 51224 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 51225 51226 51227 else 51228 : 51229 51230 fi 51231 51232 51233 51234 51235 51236 51237 51238 51239 51240 51241 51242 51243 51244 51245 fi 51246 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 51247 # Non-zero builds have stricter warnings 51248 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 51249 else 51250 if test "x$TOOLCHAIN_TYPE" = xclang; then 51251 # Some versions of llvm do not like -Wundef 51252 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 51253 fi 51254 fi 51255 elif test "x$OPENJDK_BUILD_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = "xios"; then 51256 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 51257 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 51258 fi 51259 51260 # Additional macosx handling 51261 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51262 # Setting these parameters makes it an error to link to macosx APIs that are 51263 # newer than the given OS version and makes the linked binaries compatible 51264 # even if built on a newer version of the OS. 51265 # The expected format is X.Y.Z 51266 MACOSX_VERSION_MIN=10.7.0 51267 51268 51269 # The macro takes the version with no dots, ex: 1070 51270 # Let the flags variables get resolved in make for easier override on make 51271 # command line. 51272 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)" 51273 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51274 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -mmacosx-version-min=\$(MACOSX_VERSION_MIN) " 51275 fi 51276 51277 # Setup some hard coded includes 51278 if test "x$OPENJDK_BUILD_OS" = xandroid ; then 51279 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51280 -I${JDK_TOPDIR}/src/java.base/linux/native/include -DLINUX" 51281 fi 51282 51283 # Setup some hard coded includes 51284 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51285 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 51286 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 51287 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 51288 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 51289 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 51290 51291 # The shared libraries are compiled using the picflag. 51292 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51293 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 51294 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51295 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 51296 51297 # Executable flags 51298 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 51299 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 51300 51301 51302 51303 51304 51305 51306 # Setup LDFLAGS et al. 51307 # 51308 51309 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51310 LDFLAGS_MICROSOFT="-nologo -opt:ref" 51311 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 51312 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 51313 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 51314 LDFLAGS_SAFESH="-safeseh" 51315 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 51316 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 51317 # NOTE: Old build added -machine. Probably not needed. 51318 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 51319 else 51320 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 51321 fi 51322 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51323 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 51324 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51325 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 51326 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51327 fi 51328 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51329 # If this is a --hash-style=gnu system, use --hash-style=both, why? 51330 # We have previously set HAS_GNU_HASH if this is the case 51331 if test -n "$HAS_GNU_HASH"; then 51332 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 51333 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51334 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51335 fi 51336 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51337 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51338 fi 51339 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xandroid ; then 51340 # And since we now know that the linker is gnu, then add -z defs, to forbid 51341 # undefined symbols in object files. 51342 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 51343 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 51344 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 51345 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 51346 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 51347 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51348 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 51349 fi 51350 case $DEBUG_LEVEL in 51351 release ) 51352 # tell linker to optimize libraries. 51353 # Should this be supplied to the OSS linker as well? 51354 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 51355 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 51356 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 51357 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51358 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51359 fi 51360 ;; 51361 slowdebug ) 51362 # Hotspot always let the linker optimize 51363 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51364 if test "x$HAS_LINKER_NOW" = "xtrue"; then 51365 # do relocations at load 51366 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 51367 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 51368 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 51369 fi 51370 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51371 # mark relocations read only 51372 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51373 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51374 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51375 fi 51376 ;; 51377 fastdebug ) 51378 # Hotspot always let the linker optimize 51379 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51380 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51381 # mark relocations read only 51382 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51383 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51384 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51385 fi 51386 ;; 51387 * ) 51388 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51389 ;; 51390 esac 51391 fi 51392 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51393 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 51394 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 51395 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 51396 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 51397 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 51398 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 51399 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 51400 fi 51401 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51402 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 51403 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 51404 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 51405 fi 51406 51407 # Customize LDFLAGS for executables 51408 51409 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 51410 51411 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51412 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 51413 LDFLAGS_STACK_SIZE=1048576 51414 else 51415 LDFLAGS_STACK_SIZE=327680 51416 fi 51417 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 51418 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 51419 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 51420 elif test "x$OPENJDK_BUILD_OS" = xandroid; then 51421 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined -pie" 51422 fi 51423 51424 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51425 51426 # Customize LDFLAGS for libs 51427 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 51428 51429 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 51430 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51431 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51432 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 51433 OPENJDK_BUILD_JDKLIB_LIBS="" 51434 else 51435 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51436 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)" 51437 51438 if test "xBUILD" = "xTARGET"; then 51439 # On some platforms (mac) the linker warns about non existing -L dirs. 51440 # Add server first if available. Linking aginst client does not always produce the same results. 51441 # Only add client/minimal dir if client/minimal is being built. 51442 # Default to server for other variants. 51443 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 51444 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51445 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 51446 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/client" 51447 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 51448 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/minimal" 51449 else 51450 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51451 fi 51452 elif test "xBUILD" = "xBUILD"; then 51453 # When building a buildjdk, it's always only the server variant 51454 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51455 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51456 fi 51457 51458 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 51459 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51460 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 51461 fi 51462 51463 fi 51464 51465 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 51466 51467 # Set OPENJDK_BUILD_JVM_LIBS (per os) 51468 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51469 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 51470 elif test "x$OPENJDK_BUILD_OS" = xandroid; then 51471 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -llog" 51472 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 51473 # FIXME: This hard-coded path is not really proper. 51474 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 51475 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 51476 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 51477 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 51478 fi 51479 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 51480 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 51481 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51482 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51483 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51484 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 51485 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 51486 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51487 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51488 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 51489 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 51490 wsock32.lib winmm.lib version.lib psapi.lib" 51491 fi 51492 51493 # Set OPENJDK_BUILD_JVM_ASFLAGS 51494 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51495 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51496 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 51497 fi 51498 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51499 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 51500 fi 51501 51502 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51503 51504 51505 51506 51507 51508 51509 51510 51511 51512 51513 51514 51515 51516 51517 51518 # Tests are only ever compiled for TARGET 51519 # Flags for compiling test libraries 51520 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 51521 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 51522 51523 # Flags for compiling test executables 51524 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 51525 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 51526 51527 51528 51529 51530 51531 51532 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 51533 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 51534 51535 51536 51537 51538 51539 51540 # Some Zero and Shark settings. 51541 # ZERO_ARCHFLAG tells the compiler which mode to build for 51542 case "${OPENJDK_TARGET_CPU}" in 51543 s390) 51544 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 51545 ;; 51546 *) 51547 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51548 esac 51549 51550 51551 51552 51553 51554 51555 51556 51557 51558 51559 51560 51561 51562 51563 51564 51565 51566 51567 51568 51569 51570 51571 51572 51573 51574 51575 51576 51577 51578 51579 51580 51581 51582 51583 51584 51585 51586 51587 51588 51589 51590 51591 # Execute function body 51592 51593 51594 51595 51596 51597 51598 51599 51600 51601 51602 51603 51604 51605 51606 51607 51608 51609 51610 51611 51612 51613 51614 51615 51616 51617 51618 51619 51620 51621 51622 51623 51624 51625 51626 51627 51628 51629 51630 51631 51632 51633 51634 51635 51636 51637 51638 51639 51640 # Execute function body 51641 51642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 51643 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51644 supports=yes 51645 51646 saved_cflags="$CFLAGS" 51647 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 51648 ac_ext=c 51649 ac_cpp='$CPP $CPPFLAGS' 51650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51652 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51653 51654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51655 /* end confdefs.h. */ 51656 int i; 51657 _ACEOF 51658 if ac_fn_c_try_compile "$LINENO"; then : 51659 51660 else 51661 supports=no 51662 fi 51663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51664 ac_ext=cpp 51665 ac_cpp='$CXXCPP $CPPFLAGS' 51666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51669 51670 CFLAGS="$saved_cflags" 51671 51672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51673 $as_echo "$supports" >&6; } 51674 if test "x$supports" = "xyes" ; then 51675 : 51676 C_COMP_SUPPORTS="yes" 51677 else 51678 : 51679 C_COMP_SUPPORTS="no" 51680 fi 51681 51682 51683 51684 51685 51686 51687 51688 51689 51690 51691 51692 51693 51694 51695 51696 51697 51698 51699 51700 51701 51702 51703 51704 51705 51706 51707 51708 51709 51710 51711 51712 51713 51714 51715 51716 51717 51718 51719 51720 51721 51722 51723 51724 51725 51726 51727 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 # Execute function body 51741 51742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 51743 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51744 supports=yes 51745 51746 saved_cxxflags="$CXXFLAGS" 51747 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 51748 ac_ext=cpp 51749 ac_cpp='$CXXCPP $CPPFLAGS' 51750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51753 51754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51755 /* end confdefs.h. */ 51756 int i; 51757 _ACEOF 51758 if ac_fn_cxx_try_compile "$LINENO"; then : 51759 51760 else 51761 supports=no 51762 fi 51763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51764 ac_ext=cpp 51765 ac_cpp='$CXXCPP $CPPFLAGS' 51766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51769 51770 CXXFLAGS="$saved_cxxflags" 51771 51772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51773 $as_echo "$supports" >&6; } 51774 if test "x$supports" = "xyes" ; then 51775 : 51776 CXX_COMP_SUPPORTS="yes" 51777 else 51778 : 51779 CXX_COMP_SUPPORTS="no" 51780 fi 51781 51782 51783 51784 51785 51786 51787 51788 51789 51790 51791 51792 51793 51794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 51795 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 51796 supports=no 51797 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51798 51799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51800 $as_echo "$supports" >&6; } 51801 if test "x$supports" = "xyes" ; then 51802 : 51803 51804 else 51805 : 51806 ZERO_ARCHFLAG="" 51807 fi 51808 51809 51810 51811 51812 51813 51814 51815 51816 # Check that the compiler supports -mX (or -qX on AIX) flags 51817 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 51818 51819 51820 51821 51822 51823 51824 51825 51826 51827 51828 51829 51830 51831 51832 51833 51834 51835 51836 51837 51838 51839 51840 51841 51842 51843 51844 51845 51846 51847 51848 51849 51850 51851 51852 51853 51854 51855 51856 51857 51858 51859 51860 51861 51862 51863 51864 51865 # Execute function body 51866 51867 51868 51869 51870 51871 51872 51873 51874 51875 51876 51877 51878 51879 51880 51881 51882 51883 51884 51885 51886 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 # Execute function body 51915 51916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51917 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51918 supports=yes 51919 51920 saved_cflags="$CFLAGS" 51921 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51922 ac_ext=c 51923 ac_cpp='$CPP $CPPFLAGS' 51924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51926 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51927 51928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51929 /* end confdefs.h. */ 51930 int i; 51931 _ACEOF 51932 if ac_fn_c_try_compile "$LINENO"; then : 51933 51934 else 51935 supports=no 51936 fi 51937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51938 ac_ext=cpp 51939 ac_cpp='$CXXCPP $CPPFLAGS' 51940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51943 51944 CFLAGS="$saved_cflags" 51945 51946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51947 $as_echo "$supports" >&6; } 51948 if test "x$supports" = "xyes" ; then 51949 : 51950 C_COMP_SUPPORTS="yes" 51951 else 51952 : 51953 C_COMP_SUPPORTS="no" 51954 fi 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 51984 51985 51986 51987 51988 51989 51990 51991 51992 51993 51994 51995 51996 51997 51998 51999 52000 52001 52002 52003 52004 52005 52006 52007 52008 52009 52010 52011 52012 52013 52014 # Execute function body 52015 52016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 52017 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 52018 supports=yes 52019 52020 saved_cxxflags="$CXXFLAGS" 52021 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 52022 ac_ext=cpp 52023 ac_cpp='$CXXCPP $CPPFLAGS' 52024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52027 52028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52029 /* end confdefs.h. */ 52030 int i; 52031 _ACEOF 52032 if ac_fn_cxx_try_compile "$LINENO"; then : 52033 52034 else 52035 supports=no 52036 fi 52037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52038 ac_ext=cpp 52039 ac_cpp='$CXXCPP $CPPFLAGS' 52040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52043 52044 CXXFLAGS="$saved_cxxflags" 52045 52046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52047 $as_echo "$supports" >&6; } 52048 if test "x$supports" = "xyes" ; then 52049 : 52050 CXX_COMP_SUPPORTS="yes" 52051 else 52052 : 52053 CXX_COMP_SUPPORTS="no" 52054 fi 52055 52056 52057 52058 52059 52060 52061 52062 52063 52064 52065 52066 52067 52068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 52069 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 52070 supports=no 52071 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52072 52073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52074 $as_echo "$supports" >&6; } 52075 if test "x$supports" = "xyes" ; then 52076 : 52077 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 52078 else 52079 : 52080 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 52081 fi 52082 52083 52084 52085 52086 52087 52088 52089 52090 # Check whether --enable-warnings-as-errors was given. 52091 if test "${enable_warnings_as_errors+set}" = set; then : 52092 enableval=$enable_warnings_as_errors; 52093 fi 52094 52095 52096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 52097 $as_echo_n "checking if native warnings are errors... " >&6; } 52098 if test "x$enable_warnings_as_errors" = "xyes"; then 52099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitely set)" >&5 52100 $as_echo "yes (explicitely set)" >&6; } 52101 WARNINGS_AS_ERRORS=true 52102 elif test "x$enable_warnings_as_errors" = "xno"; then 52103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52104 $as_echo "no" >&6; } 52105 WARNINGS_AS_ERRORS=false 52106 elif test "x$enable_warnings_as_errors" = "x"; then 52107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 52108 $as_echo "yes (default)" >&6; } 52109 WARNINGS_AS_ERRORS=true 52110 else 52111 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 52112 fi 52113 52114 if test "x$WARNINGS_AS_ERRORS" = "xfalse"; then 52115 # Set legacy hotspot variable 52116 HOTSPOT_SET_WARNINGS_AS_ERRORS="WARNINGS_ARE_ERRORS=" 52117 else 52118 HOTSPOT_SET_WARNINGS_AS_ERRORS="" 52119 fi 52120 52121 52122 52123 52124 case "${TOOLCHAIN_TYPE}" in 52125 microsoft) 52126 DISABLE_WARNING_PREFIX="-wd" 52127 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 52128 ;; 52129 solstudio) 52130 DISABLE_WARNING_PREFIX="-erroff=" 52131 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 52132 ;; 52133 gcc) 52134 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 52135 52136 52137 52138 52139 52140 52141 52142 52143 52144 52145 52146 52147 52148 52149 52150 52151 52152 52153 52154 52155 52156 52157 52158 52159 52160 52161 52162 52163 52164 52165 52166 52167 52168 52169 52170 52171 52172 52173 52174 52175 52176 52177 52178 52179 52180 52181 52182 # Execute function body 52183 52184 52185 52186 52187 52188 52189 52190 52191 52192 52193 52194 52195 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 # Execute function body 52232 52233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52234 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52235 supports=yes 52236 52237 saved_cflags="$CFLAGS" 52238 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52239 ac_ext=c 52240 ac_cpp='$CPP $CPPFLAGS' 52241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52243 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52244 52245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52246 /* end confdefs.h. */ 52247 int i; 52248 _ACEOF 52249 if ac_fn_c_try_compile "$LINENO"; then : 52250 52251 else 52252 supports=no 52253 fi 52254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52255 ac_ext=cpp 52256 ac_cpp='$CXXCPP $CPPFLAGS' 52257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52260 52261 CFLAGS="$saved_cflags" 52262 52263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52264 $as_echo "$supports" >&6; } 52265 if test "x$supports" = "xyes" ; then 52266 : 52267 C_COMP_SUPPORTS="yes" 52268 else 52269 : 52270 C_COMP_SUPPORTS="no" 52271 fi 52272 52273 52274 52275 52276 52277 52278 52279 52280 52281 52282 52283 52284 52285 52286 52287 52288 52289 52290 52291 52292 52293 52294 52295 52296 52297 52298 52299 52300 52301 52302 52303 52304 52305 52306 52307 52308 52309 52310 52311 52312 52313 52314 52315 52316 52317 52318 52319 52320 52321 52322 52323 52324 52325 52326 52327 52328 52329 52330 52331 # Execute function body 52332 52333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52334 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52335 supports=yes 52336 52337 saved_cxxflags="$CXXFLAGS" 52338 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52339 ac_ext=cpp 52340 ac_cpp='$CXXCPP $CPPFLAGS' 52341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52344 52345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52346 /* end confdefs.h. */ 52347 int i; 52348 _ACEOF 52349 if ac_fn_cxx_try_compile "$LINENO"; then : 52350 52351 else 52352 supports=no 52353 fi 52354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52355 ac_ext=cpp 52356 ac_cpp='$CXXCPP $CPPFLAGS' 52357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52360 52361 CXXFLAGS="$saved_cxxflags" 52362 52363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52364 $as_echo "$supports" >&6; } 52365 if test "x$supports" = "xyes" ; then 52366 : 52367 CXX_COMP_SUPPORTS="yes" 52368 else 52369 : 52370 CXX_COMP_SUPPORTS="no" 52371 fi 52372 52373 52374 52375 52376 52377 52378 52379 52380 52381 52382 52383 52384 52385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52386 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52387 supports=no 52388 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52389 52390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52391 $as_echo "$supports" >&6; } 52392 if test "x$supports" = "xyes" ; then 52393 : 52394 GCC_CAN_DISABLE_WARNINGS=true 52395 else 52396 : 52397 GCC_CAN_DISABLE_WARNINGS=false 52398 52399 fi 52400 52401 52402 52403 52404 52405 52406 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52407 DISABLE_WARNING_PREFIX="-Wno-" 52408 else 52409 DISABLE_WARNING_PREFIX= 52410 fi 52411 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52412 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 52413 # CFLAGS since any target specific flags will likely not work with the 52414 # build compiler 52415 CC_OLD="$CC" 52416 CXX_OLD="$CXX" 52417 CC="$BUILD_CC" 52418 CXX="$BUILD_CXX" 52419 CFLAGS_OLD="$CFLAGS" 52420 CFLAGS="" 52421 52422 52423 52424 52425 52426 52427 52428 52429 52430 52431 52432 52433 52434 52435 52436 52437 52438 52439 52440 52441 52442 52443 52444 52445 52446 52447 52448 52449 52450 52451 52452 52453 52454 52455 52456 52457 52458 52459 52460 52461 52462 52463 52464 52465 52466 52467 52468 # Execute function body 52469 52470 52471 52472 52473 52474 52475 52476 52477 52478 52479 52480 52481 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 # Execute function body 52518 52519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52520 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52521 supports=yes 52522 52523 saved_cflags="$CFLAGS" 52524 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52525 ac_ext=c 52526 ac_cpp='$CPP $CPPFLAGS' 52527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52529 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52530 52531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52532 /* end confdefs.h. */ 52533 int i; 52534 _ACEOF 52535 if ac_fn_c_try_compile "$LINENO"; then : 52536 52537 else 52538 supports=no 52539 fi 52540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52541 ac_ext=cpp 52542 ac_cpp='$CXXCPP $CPPFLAGS' 52543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52546 52547 CFLAGS="$saved_cflags" 52548 52549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52550 $as_echo "$supports" >&6; } 52551 if test "x$supports" = "xyes" ; then 52552 : 52553 C_COMP_SUPPORTS="yes" 52554 else 52555 : 52556 C_COMP_SUPPORTS="no" 52557 fi 52558 52559 52560 52561 52562 52563 52564 52565 52566 52567 52568 52569 52570 52571 52572 52573 52574 52575 52576 52577 52578 52579 52580 52581 52582 52583 52584 52585 52586 52587 52588 52589 52590 52591 52592 52593 52594 52595 52596 52597 52598 52599 52600 52601 52602 52603 52604 52605 52606 52607 52608 52609 52610 52611 52612 52613 52614 52615 52616 52617 # Execute function body 52618 52619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52620 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52621 supports=yes 52622 52623 saved_cxxflags="$CXXFLAGS" 52624 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52625 ac_ext=cpp 52626 ac_cpp='$CXXCPP $CPPFLAGS' 52627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52630 52631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52632 /* end confdefs.h. */ 52633 int i; 52634 _ACEOF 52635 if ac_fn_cxx_try_compile "$LINENO"; then : 52636 52637 else 52638 supports=no 52639 fi 52640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52641 ac_ext=cpp 52642 ac_cpp='$CXXCPP $CPPFLAGS' 52643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52646 52647 CXXFLAGS="$saved_cxxflags" 52648 52649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52650 $as_echo "$supports" >&6; } 52651 if test "x$supports" = "xyes" ; then 52652 : 52653 CXX_COMP_SUPPORTS="yes" 52654 else 52655 : 52656 CXX_COMP_SUPPORTS="no" 52657 fi 52658 52659 52660 52661 52662 52663 52664 52665 52666 52667 52668 52669 52670 52671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52672 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52673 supports=no 52674 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52675 52676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52677 $as_echo "$supports" >&6; } 52678 if test "x$supports" = "xyes" ; then 52679 : 52680 BUILD_CC_CAN_DISABLE_WARNINGS=true 52681 else 52682 : 52683 BUILD_CC_CAN_DISABLE_WARNINGS=false 52684 52685 fi 52686 52687 52688 52689 52690 52691 52692 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52693 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 52694 else 52695 BUILD_CC_DISABLE_WARNING_PREFIX= 52696 fi 52697 CC="$CC_OLD" 52698 CXX="$CXX_OLD" 52699 CFLAGS="$CFLAGS_OLD" 52700 ;; 52701 clang) 52702 DISABLE_WARNING_PREFIX="-Wno-" 52703 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52704 ;; 52705 xlc) 52706 DISABLE_WARNING_PREFIX="-qsuppress=" 52707 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 52708 ;; 52709 esac 52710 52711 52712 52713 52714 52715 # Setup debug symbols (need objcopy from the toolchain for that) 52716 52717 # 52718 # NATIVE_DEBUG_SYMBOLS 52719 # This must be done after the toolchain is setup, since we're looking at objcopy. 52720 # 52721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 52722 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 52723 52724 # Check whether --with-native-debug-symbols was given. 52725 if test "${with_native_debug_symbols+set}" = set; then : 52726 withval=$with_native_debug_symbols; 52727 if test "x$OPENJDK_TARGET_OS" = xaix; then 52728 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 52729 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 52730 fi 52731 fi 52732 52733 else 52734 52735 if test "x$OPENJDK_TARGET_OS" = xaix; then 52736 # AIX doesn't support 'zipped' so use 'internal' as default 52737 with_native_debug_symbols="internal" 52738 else 52739 if test "x$STATIC_BUILD" = xtrue; then 52740 with_native_debug_symbols="none" 52741 else 52742 with_native_debug_symbols="zipped" 52743 fi 52744 fi 52745 52746 fi 52747 52748 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 52749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 52750 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 52751 52752 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 52753 52754 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52755 if test "x$OBJCOPY" = x; then 52756 # enabling of enable-debug-symbols and can't find objcopy 52757 # this is an error 52758 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52759 fi 52760 fi 52761 52762 COMPILE_WITH_DEBUG_SYMBOLS=true 52763 COPY_DEBUG_SYMBOLS=true 52764 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 52765 52766 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 52767 DEBUG_BINARIES=false 52768 STRIP_POLICY=min_strip 52769 52770 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 52771 COMPILE_WITH_DEBUG_SYMBOLS=false 52772 COPY_DEBUG_SYMBOLS=false 52773 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52774 52775 DEBUG_BINARIES=false 52776 STRIP_POLICY=no_strip 52777 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 52778 COMPILE_WITH_DEBUG_SYMBOLS=true 52779 COPY_DEBUG_SYMBOLS=false 52780 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52781 52782 # Hotspot legacy support, will turn on -g when COPY_DEBUG_SYMBOLS=false 52783 DEBUG_BINARIES=true 52784 STRIP_POLICY=no_strip 52785 STRIP="" 52786 52787 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 52788 52789 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52790 if test "x$OBJCOPY" = x; then 52791 # enabling of enable-debug-symbols and can't find objcopy 52792 # this is an error 52793 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52794 fi 52795 fi 52796 52797 COMPILE_WITH_DEBUG_SYMBOLS=true 52798 COPY_DEBUG_SYMBOLS=true 52799 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52800 52801 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 52802 DEBUG_BINARIES=false 52803 STRIP_POLICY=min_strip 52804 else 52805 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 52806 fi 52807 52808 # --enable-debug-symbols is deprecated. 52809 # Please use --with-native-debug-symbols=[internal,external,zipped] . 52810 52811 # Check whether --enable-debug-symbols was given. 52812 if test "${enable_debug_symbols+set}" = set; then : 52813 enableval=$enable_debug_symbols; 52814 fi 52815 52816 if test "x$enable_debug_symbols" != x; then 52817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 52818 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 52819 52820 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 52821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 52822 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 52823 fi 52824 52825 fi 52826 52827 52828 # --enable-zip-debug-info is deprecated. 52829 # Please use --with-native-debug-symbols=zipped . 52830 52831 # Check whether --enable-zip-debug-info was given. 52832 if test "${enable_zip_debug_info+set}" = set; then : 52833 enableval=$enable_zip_debug_info; 52834 fi 52835 52836 if test "x$enable_zip_debug_info" != x; then 52837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 52838 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 52839 52840 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 52841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 52842 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 52843 fi 52844 52845 fi 52846 52847 52848 52849 52850 52851 52852 # Legacy values 52853 52854 52855 52856 52857 # Check whether --enable-native-coverage was given. 52858 if test "${enable_native_coverage+set}" = set; then : 52859 enableval=$enable_native_coverage; 52860 fi 52861 52862 GCOV_ENABLED="false" 52863 if test "x$enable_native_coverage" = "xyes"; then 52864 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 52865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52866 $as_echo_n "checking if native coverage is enabled... " >&6; } 52867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52868 $as_echo "yes" >&6; } 52869 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 52870 GCOV_LDFLAGS="-fprofile-arcs" 52871 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 52872 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 52873 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 52874 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 52875 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 52876 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 52877 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 52878 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 52879 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 52880 GCOV_ENABLED="true" 52881 else 52882 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 52883 fi 52884 elif test "x$enable_native_coverage" = "xno"; then 52885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52886 $as_echo_n "checking if native coverage is enabled... " >&6; } 52887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52888 $as_echo "no" >&6; } 52889 elif test "x$enable_native_coverage" != "x"; then 52890 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 52891 fi 52892 52893 52894 52895 52896 # Need toolchain to setup dtrace 52897 52898 # Test for dtrace dependencies 52899 # Check whether --enable-dtrace was given. 52900 if test "${enable_dtrace+set}" = set; then : 52901 enableval=$enable_dtrace; 52902 fi 52903 52904 52905 DTRACE_DEP_MISSING=false 52906 52907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 52908 $as_echo_n "checking for dtrace tool... " >&6; } 52909 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 52910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 52911 $as_echo "$DTRACE" >&6; } 52912 else 52913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 52914 $as_echo "not found, cannot build dtrace" >&6; } 52915 DTRACE_DEP_MISSING=true 52916 fi 52917 52918 for ac_header in sys/sdt.h 52919 do : 52920 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 52921 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 52922 cat >>confdefs.h <<_ACEOF 52923 #define HAVE_SYS_SDT_H 1 52924 _ACEOF 52925 DTRACE_HEADERS_OK=yes 52926 else 52927 DTRACE_HEADERS_OK=no 52928 fi 52929 52930 done 52931 52932 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 52933 DTRACE_DEP_MISSING=true 52934 fi 52935 52936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 52937 $as_echo_n "checking if dtrace should be built... " >&6; } 52938 if test "x$enable_dtrace" = "xyes"; then 52939 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52941 $as_echo "no, missing dependencies" >&6; } 52942 52943 # Print a helpful message on how to acquire the necessary build dependency. 52944 # dtrace is the help tag: freetype, cups, alsa etc 52945 MISSING_DEPENDENCY=dtrace 52946 52947 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52948 cygwin_help $MISSING_DEPENDENCY 52949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52950 msys_help $MISSING_DEPENDENCY 52951 else 52952 PKGHANDLER_COMMAND= 52953 52954 case $PKGHANDLER in 52955 apt-get) 52956 apt_help $MISSING_DEPENDENCY ;; 52957 yum) 52958 yum_help $MISSING_DEPENDENCY ;; 52959 port) 52960 port_help $MISSING_DEPENDENCY ;; 52961 pkgutil) 52962 pkgutil_help $MISSING_DEPENDENCY ;; 52963 pkgadd) 52964 pkgadd_help $MISSING_DEPENDENCY ;; 52965 esac 52966 52967 if test "x$PKGHANDLER_COMMAND" != x; then 52968 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 52969 fi 52970 fi 52971 52972 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 52973 else 52974 INCLUDE_DTRACE=true 52975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 52976 $as_echo "yes, forced" >&6; } 52977 fi 52978 elif test "x$enable_dtrace" = "xno"; then 52979 INCLUDE_DTRACE=false 52980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 52981 $as_echo "no, forced" >&6; } 52982 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 52983 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52984 INCLUDE_DTRACE=false 52985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52986 $as_echo "no, missing dependencies" >&6; } 52987 elif test "x$OPENJDK_TARGET_OS" = "xios" ; then 52988 INCLUDE_DTRACE=false 52989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ios build" >&5 52990 $as_echo "no, ios build" >&6; } 52991 elif test "x$OPENJDK_TARGET_OS" = "xandroid" ; then 52992 INCLUDE_DTRACE=false 52993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, android build" >&5 52994 $as_echo "no, android build" >&6; } 52995 else 52996 INCLUDE_DTRACE=true 52997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 52998 $as_echo "yes, dependencies present" >&6; } 52999 fi 53000 else 53001 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 53002 fi 53003 53004 53005 53006 # The user can in some cases supply additional jvm features. For the custom 53007 # variant, this defines the entire variant. 53008 53009 # Check whether --with-jvm-features was given. 53010 if test "${with_jvm_features+set}" = set; then : 53011 withval=$with_jvm_features; 53012 fi 53013 53014 if test "x$with_jvm_features" != x; then 53015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 53016 $as_echo_n "checking additional JVM features... " >&6; } 53017 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 53018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 53019 $as_echo "$JVM_FEATURES" >&6; } 53020 fi 53021 53022 # Verify that dependencies are met for explicitly set features. 53023 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 53024 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 53025 fi 53026 53027 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 53028 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 53029 fi 53030 53031 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 53032 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 53033 fi 53034 53035 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 53036 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 53037 fi 53038 53039 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 53040 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 53041 fi 53042 53043 # Turn on additional features based on other parts of configure 53044 if test "x$INCLUDE_DTRACE" = "xtrue"; then 53045 JVM_FEATURES="$JVM_FEATURES dtrace" 53046 else 53047 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 53048 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 53049 fi 53050 fi 53051 53052 if test "x$STATIC_BUILD" = "xtrue"; then 53053 JVM_FEATURES="$JVM_FEATURES static-build" 53054 else 53055 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 53056 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 53057 fi 53058 fi 53059 53060 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53061 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 53062 as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 53063 fi 53064 fi 53065 53066 if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53067 if [[ " $JVM_FEATURES " =~ " shark " ]] ; then 53068 as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 53069 fi 53070 fi 53071 53072 # Only enable jvmci on x86_64, sparcv9 and aarch64. 53073 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 53074 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 53075 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 53076 JVM_FEATURES_jvmci="jvmci" 53077 else 53078 JVM_FEATURES_jvmci="" 53079 fi 53080 53081 # All variants but minimal (and custom) get these features 53082 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds" 53083 53084 # Enable features depending on variant. 53085 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 53086 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 53087 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 53088 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES" 53089 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 53090 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" 53091 JVM_FEATURES_custom="$JVM_FEATURES" 53092 53093 if test "x$OPENJDK_TARGET_OS" = "xios" || test "x$OPENJDK_TARGET_OS" = "xandroid"; then 53094 JVM_FEATURES_minimal="$JVM_FEATURES_minimal jvmti" 53095 fi 53096 53097 53098 53099 53100 53101 53102 53103 53104 53105 # Used for verification of Makefiles by check-jvm-feature 53106 53107 53108 # We don't support --with-jvm-interpreter anymore, use zero instead. 53109 53110 53111 # Check whether --with-jvm-interpreter was given. 53112 if test "${with_jvm_interpreter+set}" = set; then : 53113 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 53114 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 53115 fi 53116 53117 53118 53119 53120 # Check whether --enable-hotspot-gtest was given. 53121 if test "${enable_hotspot_gtest+set}" = set; then : 53122 enableval=$enable_hotspot_gtest; 53123 fi 53124 53125 53126 if test -e "$HOTSPOT_TOPDIR/test/native"; then 53127 GTEST_DIR_EXISTS="true" 53128 else 53129 GTEST_DIR_EXISTS="false" 53130 fi 53131 53132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 53133 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 53134 if test "x$enable_hotspot_gtest" = "xyes"; then 53135 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 53136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 53137 $as_echo "yes, forced" >&6; } 53138 BUILD_GTEST="true" 53139 else 53140 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 53141 fi 53142 elif test "x$enable_hotspot_gtest" = "xno"; then 53143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 53144 $as_echo "no, forced" >&6; } 53145 BUILD_GTEST="false" 53146 elif test "x$enable_hotspot_gtest" = "x"; then 53147 if test "x$GTEST_DIR_EXISTS" = "xtrue" && test "x$OPENJDK_TARGET_OS" != "xaix"; then 53148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53149 $as_echo "yes" >&6; } 53150 BUILD_GTEST="true" 53151 else 53152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53153 $as_echo "no" >&6; } 53154 BUILD_GTEST="false" 53155 fi 53156 else 53157 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 53158 fi 53159 if test "x$OPENJDK_TARGET_OS" = xios || test "x$OPENJDK_TARGET_OS" = xandroid; then 53160 BUILD_GTEST="false" 53161 fi 53162 53163 53164 53165 ############################################################################### 53166 # 53167 # Check dependencies for external and internal libraries. 53168 # 53169 ############################################################################### 53170 53171 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 53172 53173 # When using cygwin or msys, we need a wrapper binary that renames 53174 # /cygdrive/c/ arguments into c:/ arguments and peeks into 53175 # @files and rewrites these too! This wrapper binary is 53176 # called fixpath. 53177 FIXPATH= 53178 if test "x$OPENJDK_BUILD_OS" = xwindows; then 53179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 53180 $as_echo_n "checking if fixpath can be created... " >&6; } 53181 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 53182 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 53183 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 53184 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 53185 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 53186 FIXPATH="$FIXPATH_BIN -c" 53187 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 53188 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 53189 # @ was chosen as separator to minimize risk of other tools messing around with it 53190 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 53191 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 53192 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 53193 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 53194 fi 53195 FIXPATH_SRC_W="$FIXPATH_SRC" 53196 FIXPATH_BIN_W="$FIXPATH_BIN" 53197 53198 unix_path="$FIXPATH_SRC_W" 53199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53200 windows_path=`$CYGPATH -m "$unix_path"` 53201 FIXPATH_SRC_W="$windows_path" 53202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53203 windows_path=`cmd //c echo $unix_path` 53204 FIXPATH_SRC_W="$windows_path" 53205 fi 53206 53207 53208 unix_path="$FIXPATH_BIN_W" 53209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53210 windows_path=`$CYGPATH -m "$unix_path"` 53211 FIXPATH_BIN_W="$windows_path" 53212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53213 windows_path=`cmd //c echo $unix_path` 53214 FIXPATH_BIN_W="$windows_path" 53215 fi 53216 53217 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 53218 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 53219 cd $FIXPATH_DIR 53220 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 53221 cd $CURDIR 53222 53223 if test ! -x $FIXPATH_BIN; then 53224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53225 $as_echo "no" >&6; } 53226 cat $FIXPATH_DIR/fixpath1.log 53227 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 53228 fi 53229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53230 $as_echo "yes" >&6; } 53231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 53232 $as_echo_n "checking if fixpath.exe works... " >&6; } 53233 cd $FIXPATH_DIR 53234 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 53235 > $FIXPATH_DIR/fixpath2.log 2>&1 53236 cd $CURDIR 53237 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 53238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53239 $as_echo "no" >&6; } 53240 cat $FIXPATH_DIR/fixpath2.log 53241 as_fn_error $? "fixpath did not work!" "$LINENO" 5 53242 fi 53243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53244 $as_echo "yes" >&6; } 53245 53246 FIXPATH_DETACH_FLAG="--detach" 53247 fi 53248 53249 53250 53251 53252 53253 53254 # Check if X11 is needed 53255 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 53256 # No X11 support on windows or macosx 53257 NEEDS_LIB_X11=false 53258 else 53259 if test "x$SUPPORT_HEADFUL" = xno; then 53260 # No X11 support if building headless-only 53261 NEEDS_LIB_X11=false 53262 else 53263 # All other instances need X11 53264 NEEDS_LIB_X11=true 53265 fi 53266 fi 53267 53268 # Check if cups is needed 53269 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53270 # Windows have a separate print system 53271 NEEDS_LIB_CUPS=false 53272 else 53273 NEEDS_LIB_CUPS=true 53274 fi 53275 53276 # A custom hook may have set this already 53277 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 53278 NEEDS_LIB_FREETYPE=true 53279 fi 53280 53281 # Check if alsa is needed 53282 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53283 NEEDS_LIB_ALSA=true 53284 else 53285 NEEDS_LIB_ALSA=false 53286 fi 53287 53288 # Check if ffi is needed 53289 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53290 NEEDS_LIB_FFI=true 53291 else 53292 NEEDS_LIB_FFI=false 53293 fi 53294 53295 53296 # statically link libstdc++ before C++ ABI is stablized on Linux unless 53297 # dynamic build is configured on command line. 53298 53299 # Check whether --with-stdc++lib was given. 53300 if test "${with_stdc__lib+set}" = set; then : 53301 withval=$with_stdc__lib; 53302 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 53303 && test "x$with_stdc__lib" != xdefault; then 53304 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 53305 fi 53306 53307 else 53308 with_stdc__lib=default 53309 53310 fi 53311 53312 53313 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xandroid; then 53314 # Test if -lstdc++ works. 53315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 53316 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 53317 ac_ext=cpp 53318 ac_cpp='$CXXCPP $CPPFLAGS' 53319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53322 53323 OLD_CXXFLAGS="$CXXFLAGS" 53324 CXXFLAGS="$CXXFLAGS -lstdc++" 53325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53326 /* end confdefs.h. */ 53327 53328 int 53329 main () 53330 { 53331 return 0; 53332 ; 53333 return 0; 53334 } 53335 _ACEOF 53336 if ac_fn_cxx_try_link "$LINENO"; then : 53337 has_dynamic_libstdcxx=yes 53338 else 53339 has_dynamic_libstdcxx=no 53340 fi 53341 rm -f core conftest.err conftest.$ac_objext \ 53342 conftest$ac_exeext conftest.$ac_ext 53343 CXXFLAGS="$OLD_CXXFLAGS" 53344 ac_ext=cpp 53345 ac_cpp='$CXXCPP $CPPFLAGS' 53346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53349 53350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 53351 $as_echo "$has_dynamic_libstdcxx" >&6; } 53352 53353 # Test if stdc++ can be linked statically. 53354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 53355 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 53356 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 53357 ac_ext=cpp 53358 ac_cpp='$CXXCPP $CPPFLAGS' 53359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53362 53363 OLD_LIBS="$LIBS" 53364 OLD_CXX="$CXX" 53365 LIBS="$STATIC_STDCXX_FLAGS" 53366 CXX="$CC" 53367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53368 /* end confdefs.h. */ 53369 53370 int 53371 main () 53372 { 53373 return 0; 53374 ; 53375 return 0; 53376 } 53377 _ACEOF 53378 if ac_fn_cxx_try_link "$LINENO"; then : 53379 has_static_libstdcxx=yes 53380 else 53381 has_static_libstdcxx=no 53382 fi 53383 rm -f core conftest.err conftest.$ac_objext \ 53384 conftest$ac_exeext conftest.$ac_ext 53385 LIBS="$OLD_LIBS" 53386 CXX="$OLD_CXX" 53387 ac_ext=cpp 53388 ac_cpp='$CXXCPP $CPPFLAGS' 53389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53392 53393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 53394 $as_echo "$has_static_libstdcxx" >&6; } 53395 53396 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 53397 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 53398 fi 53399 53400 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 53401 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 53402 fi 53403 53404 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 53405 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 53406 fi 53407 53408 # If dynamic was requested, it's available since it would fail above otherwise. 53409 # If dynamic wasn't requested, go with static unless it isn't available. 53410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 53411 $as_echo_n "checking how to link with libstdc++... " >&6; } 53412 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53413 LIBCXX="$LIBCXX -lstdc++" 53414 # To help comparisons with old build, put stdc++ first in JVM_LIBS 53415 JVM_LIBS="-lstdc++ $JVM_LIBS" 53416 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 53417 # just use the same setting as for the TARGET toolchain. 53418 OPENJDK_BUILD_JVM_LIBS="-lstdc++ $OPENJDK_BUILD_JVM_LIBS" 53419 LDCXX="$CXX" 53420 STATIC_CXX_SETTING="STATIC_CXX=false" 53421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 53422 $as_echo "dynamic" >&6; } 53423 else 53424 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 53425 JVM_LDFLAGS="$JVM_LDFLAGS -static-libgcc" 53426 # To help comparisons with old build, put stdc++ first in JVM_LIBS 53427 JVM_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic $JVM_LIBS" 53428 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 53429 # just use the same setting as for the TARGET toolchain. 53430 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -static-libgcc" 53431 OPENJDK_BUILD_JVM_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic $OPENJDK_BUILD_JVM_LIBS" 53432 LDCXX="$CC" 53433 STATIC_CXX_SETTING="STATIC_CXX=true" 53434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 53435 $as_echo "static" >&6; } 53436 fi 53437 fi 53438 53439 53440 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 53441 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 53442 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 53443 fi 53444 53445 # TODO better (platform agnostic) test 53446 if test "x$TOOLCHAIN_NAME" = xxcode && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 53447 LIBCXX="-lstdc++" 53448 fi 53449 53450 53451 # Setup Windows runtime dlls 53452 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 53453 53454 53455 # Check whether --with-msvcr-dll was given. 53456 if test "${with_msvcr_dll+set}" = set; then : 53457 withval=$with_msvcr_dll; 53458 fi 53459 53460 53461 if test "x$with_msvcr_dll" != x; then 53462 # If given explicitely by user, do not probe. If not present, fail directly. 53463 53464 DLL_NAME="$MSVCR_NAME" 53465 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 53466 METHOD="--with-msvcr-dll" 53467 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53468 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53469 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53470 53471 # Need to check if the found msvcr is correct architecture 53472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53473 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53474 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53476 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53477 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53478 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53479 CORRECT_MSVCR_ARCH="PE32 executable" 53480 else 53481 CORRECT_MSVCR_ARCH="PE32+ executable" 53482 fi 53483 else 53484 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53485 CORRECT_MSVCR_ARCH=386 53486 else 53487 CORRECT_MSVCR_ARCH=x86-64 53488 fi 53489 fi 53490 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53492 $as_echo "ok" >&6; } 53493 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53494 53495 # Only process if variable expands to non-empty 53496 53497 if test "x$MSVC_DLL" != x; then 53498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53499 53500 # Input might be given as Windows format, start by converting to 53501 # unix format. 53502 path="$MSVC_DLL" 53503 new_path=`$CYGPATH -u "$path"` 53504 53505 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53506 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53507 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53508 # "foo.exe" is OK but "foo" is an error. 53509 # 53510 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53511 # It is also a way to make sure we got the proper file name for the real test later on. 53512 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53513 if test "x$test_shortpath" = x; then 53514 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53515 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53516 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53517 fi 53518 53519 # Call helper function which possibly converts this using DOS-style short mode. 53520 # If so, the updated path is stored in $new_path. 53521 53522 input_path="$new_path" 53523 # Check if we need to convert this using DOS-style short mode. If the path 53524 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53525 # take no chances and rewrite it. 53526 # Note: m4 eats our [], so we need to use [ and ] instead. 53527 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53528 if test "x$has_forbidden_chars" != x; then 53529 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53530 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53531 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53532 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53533 # Going to short mode and back again did indeed matter. Since short mode is 53534 # case insensitive, let's make it lowercase to improve readability. 53535 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53536 # Now convert it back to Unix-style (cygpath) 53537 input_path=`$CYGPATH -u "$shortmode_path"` 53538 new_path="$input_path" 53539 fi 53540 fi 53541 53542 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53543 if test "x$test_cygdrive_prefix" = x; then 53544 # As a simple fix, exclude /usr/bin since it's not a real path. 53545 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53546 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53547 # a path prefixed by /cygdrive for fixpath to work. 53548 new_path="$CYGWIN_ROOT_PATH$input_path" 53549 fi 53550 fi 53551 53552 53553 if test "x$path" != "x$new_path"; then 53554 MSVC_DLL="$new_path" 53555 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53556 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53557 fi 53558 53559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53560 53561 path="$MSVC_DLL" 53562 has_colon=`$ECHO $path | $GREP ^.:` 53563 new_path="$path" 53564 if test "x$has_colon" = x; then 53565 # Not in mixed or Windows style, start by that. 53566 new_path=`cmd //c echo $path` 53567 fi 53568 53569 53570 input_path="$new_path" 53571 # Check if we need to convert this using DOS-style short mode. If the path 53572 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53573 # take no chances and rewrite it. 53574 # Note: m4 eats our [], so we need to use [ and ] instead. 53575 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53576 if test "x$has_forbidden_chars" != x; then 53577 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53578 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53579 fi 53580 53581 53582 windows_path="$new_path" 53583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53584 unix_path=`$CYGPATH -u "$windows_path"` 53585 new_path="$unix_path" 53586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53588 new_path="$unix_path" 53589 fi 53590 53591 if test "x$path" != "x$new_path"; then 53592 MSVC_DLL="$new_path" 53593 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53594 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53595 fi 53596 53597 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53598 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53599 53600 else 53601 # We're on a unix platform. Hooray! :) 53602 path="$MSVC_DLL" 53603 has_space=`$ECHO "$path" | $GREP " "` 53604 if test "x$has_space" != x; then 53605 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53606 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53607 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53608 fi 53609 53610 # Use eval to expand a potential ~ 53611 eval path="$path" 53612 if test ! -f "$path" && test ! -d "$path"; then 53613 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53614 fi 53615 53616 if test -d "$path"; then 53617 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53618 else 53619 dir="`$DIRNAME "$path"`" 53620 base="`$BASENAME "$path"`" 53621 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53622 fi 53623 fi 53624 fi 53625 53626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53627 $as_echo_n "checking for $DLL_NAME... " >&6; } 53628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53629 $as_echo "$MSVC_DLL" >&6; } 53630 else 53631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53632 $as_echo "incorrect, ignoring" >&6; } 53633 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53634 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53635 fi 53636 fi 53637 53638 if test "x$MSVC_DLL" = x; then 53639 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 53640 fi 53641 MSVCR_DLL="$MSVC_DLL" 53642 elif test "x$DEVKIT_MSVCR_DLL" != x; then 53643 53644 DLL_NAME="$MSVCR_NAME" 53645 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 53646 METHOD="devkit" 53647 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53648 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53649 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53650 53651 # Need to check if the found msvcr is correct architecture 53652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53653 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53654 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53656 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53657 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53658 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53659 CORRECT_MSVCR_ARCH="PE32 executable" 53660 else 53661 CORRECT_MSVCR_ARCH="PE32+ executable" 53662 fi 53663 else 53664 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53665 CORRECT_MSVCR_ARCH=386 53666 else 53667 CORRECT_MSVCR_ARCH=x86-64 53668 fi 53669 fi 53670 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53672 $as_echo "ok" >&6; } 53673 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53674 53675 # Only process if variable expands to non-empty 53676 53677 if test "x$MSVC_DLL" != x; then 53678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53679 53680 # Input might be given as Windows format, start by converting to 53681 # unix format. 53682 path="$MSVC_DLL" 53683 new_path=`$CYGPATH -u "$path"` 53684 53685 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53686 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53687 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53688 # "foo.exe" is OK but "foo" is an error. 53689 # 53690 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53691 # It is also a way to make sure we got the proper file name for the real test later on. 53692 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53693 if test "x$test_shortpath" = x; then 53694 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53695 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53696 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53697 fi 53698 53699 # Call helper function which possibly converts this using DOS-style short mode. 53700 # If so, the updated path is stored in $new_path. 53701 53702 input_path="$new_path" 53703 # Check if we need to convert this using DOS-style short mode. If the path 53704 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53705 # take no chances and rewrite it. 53706 # Note: m4 eats our [], so we need to use [ and ] instead. 53707 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53708 if test "x$has_forbidden_chars" != x; then 53709 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53710 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53711 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53712 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53713 # Going to short mode and back again did indeed matter. Since short mode is 53714 # case insensitive, let's make it lowercase to improve readability. 53715 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53716 # Now convert it back to Unix-style (cygpath) 53717 input_path=`$CYGPATH -u "$shortmode_path"` 53718 new_path="$input_path" 53719 fi 53720 fi 53721 53722 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53723 if test "x$test_cygdrive_prefix" = x; then 53724 # As a simple fix, exclude /usr/bin since it's not a real path. 53725 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53726 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53727 # a path prefixed by /cygdrive for fixpath to work. 53728 new_path="$CYGWIN_ROOT_PATH$input_path" 53729 fi 53730 fi 53731 53732 53733 if test "x$path" != "x$new_path"; then 53734 MSVC_DLL="$new_path" 53735 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53736 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53737 fi 53738 53739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53740 53741 path="$MSVC_DLL" 53742 has_colon=`$ECHO $path | $GREP ^.:` 53743 new_path="$path" 53744 if test "x$has_colon" = x; then 53745 # Not in mixed or Windows style, start by that. 53746 new_path=`cmd //c echo $path` 53747 fi 53748 53749 53750 input_path="$new_path" 53751 # Check if we need to convert this using DOS-style short mode. If the path 53752 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53753 # take no chances and rewrite it. 53754 # Note: m4 eats our [], so we need to use [ and ] instead. 53755 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53756 if test "x$has_forbidden_chars" != x; then 53757 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53758 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53759 fi 53760 53761 53762 windows_path="$new_path" 53763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53764 unix_path=`$CYGPATH -u "$windows_path"` 53765 new_path="$unix_path" 53766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53767 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53768 new_path="$unix_path" 53769 fi 53770 53771 if test "x$path" != "x$new_path"; then 53772 MSVC_DLL="$new_path" 53773 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53774 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53775 fi 53776 53777 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53778 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53779 53780 else 53781 # We're on a unix platform. Hooray! :) 53782 path="$MSVC_DLL" 53783 has_space=`$ECHO "$path" | $GREP " "` 53784 if test "x$has_space" != x; then 53785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53786 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53787 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53788 fi 53789 53790 # Use eval to expand a potential ~ 53791 eval path="$path" 53792 if test ! -f "$path" && test ! -d "$path"; then 53793 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53794 fi 53795 53796 if test -d "$path"; then 53797 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53798 else 53799 dir="`$DIRNAME "$path"`" 53800 base="`$BASENAME "$path"`" 53801 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53802 fi 53803 fi 53804 fi 53805 53806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53807 $as_echo_n "checking for $DLL_NAME... " >&6; } 53808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53809 $as_echo "$MSVC_DLL" >&6; } 53810 else 53811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53812 $as_echo "incorrect, ignoring" >&6; } 53813 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53814 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53815 fi 53816 fi 53817 53818 if test "x$MSVC_DLL" = x; then 53819 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 53820 fi 53821 MSVCR_DLL="$MSVC_DLL" 53822 else 53823 53824 DLL_NAME="${MSVCR_NAME}" 53825 MSVC_DLL= 53826 53827 if test "x$MSVC_DLL" = x; then 53828 # Probe: Using well-known location from Visual Studio 10.0 53829 if test "x$VCINSTALLDIR" != x; then 53830 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 53831 53832 windows_path="$CYGWIN_VC_INSTALL_DIR" 53833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53834 unix_path=`$CYGPATH -u "$windows_path"` 53835 CYGWIN_VC_INSTALL_DIR="$unix_path" 53836 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53837 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53838 CYGWIN_VC_INSTALL_DIR="$unix_path" 53839 fi 53840 53841 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 53842 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53843 else 53844 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53845 fi 53846 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 53847 53848 DLL_NAME="$DLL_NAME" 53849 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53850 METHOD="well-known location in VCINSTALLDIR" 53851 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53852 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53853 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53854 53855 # Need to check if the found msvcr is correct architecture 53856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53857 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53858 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53860 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53861 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53862 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53863 CORRECT_MSVCR_ARCH="PE32 executable" 53864 else 53865 CORRECT_MSVCR_ARCH="PE32+ executable" 53866 fi 53867 else 53868 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53869 CORRECT_MSVCR_ARCH=386 53870 else 53871 CORRECT_MSVCR_ARCH=x86-64 53872 fi 53873 fi 53874 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53876 $as_echo "ok" >&6; } 53877 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53878 53879 # Only process if variable expands to non-empty 53880 53881 if test "x$MSVC_DLL" != x; then 53882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53883 53884 # Input might be given as Windows format, start by converting to 53885 # unix format. 53886 path="$MSVC_DLL" 53887 new_path=`$CYGPATH -u "$path"` 53888 53889 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53890 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53891 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53892 # "foo.exe" is OK but "foo" is an error. 53893 # 53894 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53895 # It is also a way to make sure we got the proper file name for the real test later on. 53896 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53897 if test "x$test_shortpath" = x; then 53898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53899 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53900 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53901 fi 53902 53903 # Call helper function which possibly converts this using DOS-style short mode. 53904 # If so, the updated path is stored in $new_path. 53905 53906 input_path="$new_path" 53907 # Check if we need to convert this using DOS-style short mode. If the path 53908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53909 # take no chances and rewrite it. 53910 # Note: m4 eats our [], so we need to use [ and ] instead. 53911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53912 if test "x$has_forbidden_chars" != x; then 53913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53914 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53915 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53916 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53917 # Going to short mode and back again did indeed matter. Since short mode is 53918 # case insensitive, let's make it lowercase to improve readability. 53919 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53920 # Now convert it back to Unix-style (cygpath) 53921 input_path=`$CYGPATH -u "$shortmode_path"` 53922 new_path="$input_path" 53923 fi 53924 fi 53925 53926 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53927 if test "x$test_cygdrive_prefix" = x; then 53928 # As a simple fix, exclude /usr/bin since it's not a real path. 53929 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53930 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53931 # a path prefixed by /cygdrive for fixpath to work. 53932 new_path="$CYGWIN_ROOT_PATH$input_path" 53933 fi 53934 fi 53935 53936 53937 if test "x$path" != "x$new_path"; then 53938 MSVC_DLL="$new_path" 53939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53940 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53941 fi 53942 53943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53944 53945 path="$MSVC_DLL" 53946 has_colon=`$ECHO $path | $GREP ^.:` 53947 new_path="$path" 53948 if test "x$has_colon" = x; then 53949 # Not in mixed or Windows style, start by that. 53950 new_path=`cmd //c echo $path` 53951 fi 53952 53953 53954 input_path="$new_path" 53955 # Check if we need to convert this using DOS-style short mode. If the path 53956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53957 # take no chances and rewrite it. 53958 # Note: m4 eats our [], so we need to use [ and ] instead. 53959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53960 if test "x$has_forbidden_chars" != x; then 53961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53962 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53963 fi 53964 53965 53966 windows_path="$new_path" 53967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53968 unix_path=`$CYGPATH -u "$windows_path"` 53969 new_path="$unix_path" 53970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53972 new_path="$unix_path" 53973 fi 53974 53975 if test "x$path" != "x$new_path"; then 53976 MSVC_DLL="$new_path" 53977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53978 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53979 fi 53980 53981 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53982 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53983 53984 else 53985 # We're on a unix platform. Hooray! :) 53986 path="$MSVC_DLL" 53987 has_space=`$ECHO "$path" | $GREP " "` 53988 if test "x$has_space" != x; then 53989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53990 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53991 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53992 fi 53993 53994 # Use eval to expand a potential ~ 53995 eval path="$path" 53996 if test ! -f "$path" && test ! -d "$path"; then 53997 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53998 fi 53999 54000 if test -d "$path"; then 54001 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54002 else 54003 dir="`$DIRNAME "$path"`" 54004 base="`$BASENAME "$path"`" 54005 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54006 fi 54007 fi 54008 fi 54009 54010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54011 $as_echo_n "checking for $DLL_NAME... " >&6; } 54012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54013 $as_echo "$MSVC_DLL" >&6; } 54014 else 54015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54016 $as_echo "incorrect, ignoring" >&6; } 54017 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54018 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54019 fi 54020 fi 54021 54022 fi 54023 fi 54024 54025 if test "x$MSVC_DLL" = x; then 54026 # Probe: Check in the Boot JDK directory. 54027 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 54028 54029 DLL_NAME="$DLL_NAME" 54030 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54031 METHOD="well-known location in Boot JDK" 54032 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54033 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54034 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54035 54036 # Need to check if the found msvcr is correct architecture 54037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54038 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54039 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54041 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54042 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54043 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54044 CORRECT_MSVCR_ARCH="PE32 executable" 54045 else 54046 CORRECT_MSVCR_ARCH="PE32+ executable" 54047 fi 54048 else 54049 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54050 CORRECT_MSVCR_ARCH=386 54051 else 54052 CORRECT_MSVCR_ARCH=x86-64 54053 fi 54054 fi 54055 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54057 $as_echo "ok" >&6; } 54058 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54059 54060 # Only process if variable expands to non-empty 54061 54062 if test "x$MSVC_DLL" != x; then 54063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54064 54065 # Input might be given as Windows format, start by converting to 54066 # unix format. 54067 path="$MSVC_DLL" 54068 new_path=`$CYGPATH -u "$path"` 54069 54070 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54071 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54072 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54073 # "foo.exe" is OK but "foo" is an error. 54074 # 54075 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54076 # It is also a way to make sure we got the proper file name for the real test later on. 54077 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54078 if test "x$test_shortpath" = x; then 54079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54080 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54081 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54082 fi 54083 54084 # Call helper function which possibly converts this using DOS-style short mode. 54085 # If so, the updated path is stored in $new_path. 54086 54087 input_path="$new_path" 54088 # Check if we need to convert this using DOS-style short mode. If the path 54089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54090 # take no chances and rewrite it. 54091 # Note: m4 eats our [], so we need to use [ and ] instead. 54092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54093 if test "x$has_forbidden_chars" != x; then 54094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54095 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54096 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54097 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54098 # Going to short mode and back again did indeed matter. Since short mode is 54099 # case insensitive, let's make it lowercase to improve readability. 54100 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54101 # Now convert it back to Unix-style (cygpath) 54102 input_path=`$CYGPATH -u "$shortmode_path"` 54103 new_path="$input_path" 54104 fi 54105 fi 54106 54107 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54108 if test "x$test_cygdrive_prefix" = x; then 54109 # As a simple fix, exclude /usr/bin since it's not a real path. 54110 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54111 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54112 # a path prefixed by /cygdrive for fixpath to work. 54113 new_path="$CYGWIN_ROOT_PATH$input_path" 54114 fi 54115 fi 54116 54117 54118 if test "x$path" != "x$new_path"; then 54119 MSVC_DLL="$new_path" 54120 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54121 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54122 fi 54123 54124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54125 54126 path="$MSVC_DLL" 54127 has_colon=`$ECHO $path | $GREP ^.:` 54128 new_path="$path" 54129 if test "x$has_colon" = x; then 54130 # Not in mixed or Windows style, start by that. 54131 new_path=`cmd //c echo $path` 54132 fi 54133 54134 54135 input_path="$new_path" 54136 # Check if we need to convert this using DOS-style short mode. If the path 54137 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54138 # take no chances and rewrite it. 54139 # Note: m4 eats our [], so we need to use [ and ] instead. 54140 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54141 if test "x$has_forbidden_chars" != x; then 54142 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54143 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54144 fi 54145 54146 54147 windows_path="$new_path" 54148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54149 unix_path=`$CYGPATH -u "$windows_path"` 54150 new_path="$unix_path" 54151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54152 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54153 new_path="$unix_path" 54154 fi 54155 54156 if test "x$path" != "x$new_path"; then 54157 MSVC_DLL="$new_path" 54158 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54159 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54160 fi 54161 54162 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54163 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54164 54165 else 54166 # We're on a unix platform. Hooray! :) 54167 path="$MSVC_DLL" 54168 has_space=`$ECHO "$path" | $GREP " "` 54169 if test "x$has_space" != x; then 54170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54171 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54172 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54173 fi 54174 54175 # Use eval to expand a potential ~ 54176 eval path="$path" 54177 if test ! -f "$path" && test ! -d "$path"; then 54178 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54179 fi 54180 54181 if test -d "$path"; then 54182 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54183 else 54184 dir="`$DIRNAME "$path"`" 54185 base="`$BASENAME "$path"`" 54186 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54187 fi 54188 fi 54189 fi 54190 54191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54192 $as_echo_n "checking for $DLL_NAME... " >&6; } 54193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54194 $as_echo "$MSVC_DLL" >&6; } 54195 else 54196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54197 $as_echo "incorrect, ignoring" >&6; } 54198 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54199 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54200 fi 54201 fi 54202 54203 fi 54204 54205 if test "x$MSVC_DLL" = x; then 54206 # Probe: Look in the Windows system32 directory 54207 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 54208 54209 windows_path="$CYGWIN_SYSTEMROOT" 54210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54211 unix_path=`$CYGPATH -u "$windows_path"` 54212 CYGWIN_SYSTEMROOT="$unix_path" 54213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54215 CYGWIN_SYSTEMROOT="$unix_path" 54216 fi 54217 54218 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 54219 54220 DLL_NAME="$DLL_NAME" 54221 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54222 METHOD="well-known location in SYSTEMROOT" 54223 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54224 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54225 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54226 54227 # Need to check if the found msvcr is correct architecture 54228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54229 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54230 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54232 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54233 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54234 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54235 CORRECT_MSVCR_ARCH="PE32 executable" 54236 else 54237 CORRECT_MSVCR_ARCH="PE32+ executable" 54238 fi 54239 else 54240 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54241 CORRECT_MSVCR_ARCH=386 54242 else 54243 CORRECT_MSVCR_ARCH=x86-64 54244 fi 54245 fi 54246 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54248 $as_echo "ok" >&6; } 54249 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54250 54251 # Only process if variable expands to non-empty 54252 54253 if test "x$MSVC_DLL" != x; then 54254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54255 54256 # Input might be given as Windows format, start by converting to 54257 # unix format. 54258 path="$MSVC_DLL" 54259 new_path=`$CYGPATH -u "$path"` 54260 54261 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54262 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54263 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54264 # "foo.exe" is OK but "foo" is an error. 54265 # 54266 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54267 # It is also a way to make sure we got the proper file name for the real test later on. 54268 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54269 if test "x$test_shortpath" = x; then 54270 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54271 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54272 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54273 fi 54274 54275 # Call helper function which possibly converts this using DOS-style short mode. 54276 # If so, the updated path is stored in $new_path. 54277 54278 input_path="$new_path" 54279 # Check if we need to convert this using DOS-style short mode. If the path 54280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54281 # take no chances and rewrite it. 54282 # Note: m4 eats our [], so we need to use [ and ] instead. 54283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54284 if test "x$has_forbidden_chars" != x; then 54285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54289 # Going to short mode and back again did indeed matter. Since short mode is 54290 # case insensitive, let's make it lowercase to improve readability. 54291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54292 # Now convert it back to Unix-style (cygpath) 54293 input_path=`$CYGPATH -u "$shortmode_path"` 54294 new_path="$input_path" 54295 fi 54296 fi 54297 54298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54299 if test "x$test_cygdrive_prefix" = x; then 54300 # As a simple fix, exclude /usr/bin since it's not a real path. 54301 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54303 # a path prefixed by /cygdrive for fixpath to work. 54304 new_path="$CYGWIN_ROOT_PATH$input_path" 54305 fi 54306 fi 54307 54308 54309 if test "x$path" != "x$new_path"; then 54310 MSVC_DLL="$new_path" 54311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54312 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54313 fi 54314 54315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54316 54317 path="$MSVC_DLL" 54318 has_colon=`$ECHO $path | $GREP ^.:` 54319 new_path="$path" 54320 if test "x$has_colon" = x; then 54321 # Not in mixed or Windows style, start by that. 54322 new_path=`cmd //c echo $path` 54323 fi 54324 54325 54326 input_path="$new_path" 54327 # Check if we need to convert this using DOS-style short mode. If the path 54328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54329 # take no chances and rewrite it. 54330 # Note: m4 eats our [], so we need to use [ and ] instead. 54331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54332 if test "x$has_forbidden_chars" != x; then 54333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54334 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54335 fi 54336 54337 54338 windows_path="$new_path" 54339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54340 unix_path=`$CYGPATH -u "$windows_path"` 54341 new_path="$unix_path" 54342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54344 new_path="$unix_path" 54345 fi 54346 54347 if test "x$path" != "x$new_path"; then 54348 MSVC_DLL="$new_path" 54349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54350 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54351 fi 54352 54353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54355 54356 else 54357 # We're on a unix platform. Hooray! :) 54358 path="$MSVC_DLL" 54359 has_space=`$ECHO "$path" | $GREP " "` 54360 if test "x$has_space" != 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 $? "Spaces are not allowed in this path." "$LINENO" 5 54364 fi 54365 54366 # Use eval to expand a potential ~ 54367 eval path="$path" 54368 if test ! -f "$path" && test ! -d "$path"; then 54369 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54370 fi 54371 54372 if test -d "$path"; then 54373 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54374 else 54375 dir="`$DIRNAME "$path"`" 54376 base="`$BASENAME "$path"`" 54377 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54378 fi 54379 fi 54380 fi 54381 54382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54383 $as_echo_n "checking for $DLL_NAME... " >&6; } 54384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54385 $as_echo "$MSVC_DLL" >&6; } 54386 else 54387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54388 $as_echo "incorrect, ignoring" >&6; } 54389 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54390 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54391 fi 54392 fi 54393 54394 fi 54395 54396 if test "x$MSVC_DLL" = x; then 54397 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 54398 if test "x$VS100COMNTOOLS" != x; then 54399 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 54400 54401 windows_path="$CYGWIN_VS_TOOLS_DIR" 54402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54403 unix_path=`$CYGPATH -u "$windows_path"` 54404 CYGWIN_VS_TOOLS_DIR="$unix_path" 54405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54407 CYGWIN_VS_TOOLS_DIR="$unix_path" 54408 fi 54409 54410 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54411 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54412 | $GREP -i /x64/ | $HEAD --lines 1` 54413 else 54414 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54415 | $GREP -i /x86/ | $HEAD --lines 1` 54416 fi 54417 54418 DLL_NAME="$DLL_NAME" 54419 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54420 METHOD="search of VS100COMNTOOLS" 54421 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54422 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54423 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54424 54425 # Need to check if the found msvcr is correct architecture 54426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54427 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54428 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54430 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54431 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54432 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54433 CORRECT_MSVCR_ARCH="PE32 executable" 54434 else 54435 CORRECT_MSVCR_ARCH="PE32+ executable" 54436 fi 54437 else 54438 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54439 CORRECT_MSVCR_ARCH=386 54440 else 54441 CORRECT_MSVCR_ARCH=x86-64 54442 fi 54443 fi 54444 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54446 $as_echo "ok" >&6; } 54447 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54448 54449 # Only process if variable expands to non-empty 54450 54451 if test "x$MSVC_DLL" != x; then 54452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54453 54454 # Input might be given as Windows format, start by converting to 54455 # unix format. 54456 path="$MSVC_DLL" 54457 new_path=`$CYGPATH -u "$path"` 54458 54459 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54460 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54461 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54462 # "foo.exe" is OK but "foo" is an error. 54463 # 54464 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54465 # It is also a way to make sure we got the proper file name for the real test later on. 54466 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54467 if test "x$test_shortpath" = x; then 54468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54469 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54470 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54471 fi 54472 54473 # Call helper function which possibly converts this using DOS-style short mode. 54474 # If so, the updated path is stored in $new_path. 54475 54476 input_path="$new_path" 54477 # Check if we need to convert this using DOS-style short mode. If the path 54478 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54479 # take no chances and rewrite it. 54480 # Note: m4 eats our [], so we need to use [ and ] instead. 54481 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54482 if test "x$has_forbidden_chars" != x; then 54483 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54484 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54485 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54486 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54487 # Going to short mode and back again did indeed matter. Since short mode is 54488 # case insensitive, let's make it lowercase to improve readability. 54489 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54490 # Now convert it back to Unix-style (cygpath) 54491 input_path=`$CYGPATH -u "$shortmode_path"` 54492 new_path="$input_path" 54493 fi 54494 fi 54495 54496 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54497 if test "x$test_cygdrive_prefix" = x; then 54498 # As a simple fix, exclude /usr/bin since it's not a real path. 54499 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54500 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54501 # a path prefixed by /cygdrive for fixpath to work. 54502 new_path="$CYGWIN_ROOT_PATH$input_path" 54503 fi 54504 fi 54505 54506 54507 if test "x$path" != "x$new_path"; then 54508 MSVC_DLL="$new_path" 54509 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54510 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54511 fi 54512 54513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54514 54515 path="$MSVC_DLL" 54516 has_colon=`$ECHO $path | $GREP ^.:` 54517 new_path="$path" 54518 if test "x$has_colon" = x; then 54519 # Not in mixed or Windows style, start by that. 54520 new_path=`cmd //c echo $path` 54521 fi 54522 54523 54524 input_path="$new_path" 54525 # Check if we need to convert this using DOS-style short mode. If the path 54526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54527 # take no chances and rewrite it. 54528 # Note: m4 eats our [], so we need to use [ and ] instead. 54529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54530 if test "x$has_forbidden_chars" != x; then 54531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54532 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54533 fi 54534 54535 54536 windows_path="$new_path" 54537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54538 unix_path=`$CYGPATH -u "$windows_path"` 54539 new_path="$unix_path" 54540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54541 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54542 new_path="$unix_path" 54543 fi 54544 54545 if test "x$path" != "x$new_path"; then 54546 MSVC_DLL="$new_path" 54547 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54548 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54549 fi 54550 54551 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54552 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54553 54554 else 54555 # We're on a unix platform. Hooray! :) 54556 path="$MSVC_DLL" 54557 has_space=`$ECHO "$path" | $GREP " "` 54558 if test "x$has_space" != x; then 54559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54560 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54561 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54562 fi 54563 54564 # Use eval to expand a potential ~ 54565 eval path="$path" 54566 if test ! -f "$path" && test ! -d "$path"; then 54567 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54568 fi 54569 54570 if test -d "$path"; then 54571 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54572 else 54573 dir="`$DIRNAME "$path"`" 54574 base="`$BASENAME "$path"`" 54575 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54576 fi 54577 fi 54578 fi 54579 54580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54581 $as_echo_n "checking for $DLL_NAME... " >&6; } 54582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54583 $as_echo "$MSVC_DLL" >&6; } 54584 else 54585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54586 $as_echo "incorrect, ignoring" >&6; } 54587 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54588 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54589 fi 54590 fi 54591 54592 fi 54593 fi 54594 54595 if test "x$MSVC_DLL" = x; then 54596 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 54597 # (This was the original behaviour; kept since it might turn something up) 54598 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 54599 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54600 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54601 | $GREP x64 | $HEAD --lines 1` 54602 else 54603 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54604 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 54605 if test "x$POSSIBLE_MSVC_DLL" = x; then 54606 # We're grasping at straws now... 54607 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54608 | $HEAD --lines 1` 54609 fi 54610 fi 54611 54612 54613 DLL_NAME="$DLL_NAME" 54614 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54615 METHOD="search of VCINSTALLDIR" 54616 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54617 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54618 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54619 54620 # Need to check if the found msvcr is correct architecture 54621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54622 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54623 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54625 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54626 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54627 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54628 CORRECT_MSVCR_ARCH="PE32 executable" 54629 else 54630 CORRECT_MSVCR_ARCH="PE32+ executable" 54631 fi 54632 else 54633 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54634 CORRECT_MSVCR_ARCH=386 54635 else 54636 CORRECT_MSVCR_ARCH=x86-64 54637 fi 54638 fi 54639 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54641 $as_echo "ok" >&6; } 54642 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54643 54644 # Only process if variable expands to non-empty 54645 54646 if test "x$MSVC_DLL" != x; then 54647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54648 54649 # Input might be given as Windows format, start by converting to 54650 # unix format. 54651 path="$MSVC_DLL" 54652 new_path=`$CYGPATH -u "$path"` 54653 54654 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54655 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54656 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54657 # "foo.exe" is OK but "foo" is an error. 54658 # 54659 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54660 # It is also a way to make sure we got the proper file name for the real test later on. 54661 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54662 if test "x$test_shortpath" = x; then 54663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54664 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54665 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54666 fi 54667 54668 # Call helper function which possibly converts this using DOS-style short mode. 54669 # If so, the updated path is stored in $new_path. 54670 54671 input_path="$new_path" 54672 # Check if we need to convert this using DOS-style short mode. If the path 54673 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54674 # take no chances and rewrite it. 54675 # Note: m4 eats our [], so we need to use [ and ] instead. 54676 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54677 if test "x$has_forbidden_chars" != x; then 54678 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54679 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54680 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54681 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54682 # Going to short mode and back again did indeed matter. Since short mode is 54683 # case insensitive, let's make it lowercase to improve readability. 54684 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54685 # Now convert it back to Unix-style (cygpath) 54686 input_path=`$CYGPATH -u "$shortmode_path"` 54687 new_path="$input_path" 54688 fi 54689 fi 54690 54691 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54692 if test "x$test_cygdrive_prefix" = x; then 54693 # As a simple fix, exclude /usr/bin since it's not a real path. 54694 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54695 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54696 # a path prefixed by /cygdrive for fixpath to work. 54697 new_path="$CYGWIN_ROOT_PATH$input_path" 54698 fi 54699 fi 54700 54701 54702 if test "x$path" != "x$new_path"; then 54703 MSVC_DLL="$new_path" 54704 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54705 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54706 fi 54707 54708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54709 54710 path="$MSVC_DLL" 54711 has_colon=`$ECHO $path | $GREP ^.:` 54712 new_path="$path" 54713 if test "x$has_colon" = x; then 54714 # Not in mixed or Windows style, start by that. 54715 new_path=`cmd //c echo $path` 54716 fi 54717 54718 54719 input_path="$new_path" 54720 # Check if we need to convert this using DOS-style short mode. If the path 54721 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54722 # take no chances and rewrite it. 54723 # Note: m4 eats our [], so we need to use [ and ] instead. 54724 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54725 if test "x$has_forbidden_chars" != x; then 54726 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54727 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54728 fi 54729 54730 54731 windows_path="$new_path" 54732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54733 unix_path=`$CYGPATH -u "$windows_path"` 54734 new_path="$unix_path" 54735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54737 new_path="$unix_path" 54738 fi 54739 54740 if test "x$path" != "x$new_path"; then 54741 MSVC_DLL="$new_path" 54742 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54743 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54744 fi 54745 54746 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54747 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54748 54749 else 54750 # We're on a unix platform. Hooray! :) 54751 path="$MSVC_DLL" 54752 has_space=`$ECHO "$path" | $GREP " "` 54753 if test "x$has_space" != x; then 54754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54755 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54756 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54757 fi 54758 54759 # Use eval to expand a potential ~ 54760 eval path="$path" 54761 if test ! -f "$path" && test ! -d "$path"; then 54762 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54763 fi 54764 54765 if test -d "$path"; then 54766 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54767 else 54768 dir="`$DIRNAME "$path"`" 54769 base="`$BASENAME "$path"`" 54770 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54771 fi 54772 fi 54773 fi 54774 54775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54776 $as_echo_n "checking for $DLL_NAME... " >&6; } 54777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54778 $as_echo "$MSVC_DLL" >&6; } 54779 else 54780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54781 $as_echo "incorrect, ignoring" >&6; } 54782 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54783 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54784 fi 54785 fi 54786 54787 fi 54788 fi 54789 54790 if test "x$MSVC_DLL" = x; then 54791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54792 $as_echo_n "checking for $DLL_NAME... " >&6; } 54793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54794 $as_echo "no" >&6; } 54795 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 54796 fi 54797 54798 MSVCR_DLL="$MSVC_DLL" 54799 fi 54800 54801 54802 54803 # Check whether --with-msvcp-dll was given. 54804 if test "${with_msvcp_dll+set}" = set; then : 54805 withval=$with_msvcp_dll; 54806 fi 54807 54808 54809 if test "x$MSVCP_NAME" != "x"; then 54810 if test "x$with_msvcp_dll" != x; then 54811 # If given explicitely by user, do not probe. If not present, fail directly. 54812 54813 DLL_NAME="$MSVCP_NAME" 54814 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 54815 METHOD="--with-msvcp-dll" 54816 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54817 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54818 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54819 54820 # Need to check if the found msvcr is correct architecture 54821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54822 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54823 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54825 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54826 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54827 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54828 CORRECT_MSVCR_ARCH="PE32 executable" 54829 else 54830 CORRECT_MSVCR_ARCH="PE32+ executable" 54831 fi 54832 else 54833 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54834 CORRECT_MSVCR_ARCH=386 54835 else 54836 CORRECT_MSVCR_ARCH=x86-64 54837 fi 54838 fi 54839 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54841 $as_echo "ok" >&6; } 54842 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54843 54844 # Only process if variable expands to non-empty 54845 54846 if test "x$MSVC_DLL" != x; then 54847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54848 54849 # Input might be given as Windows format, start by converting to 54850 # unix format. 54851 path="$MSVC_DLL" 54852 new_path=`$CYGPATH -u "$path"` 54853 54854 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54855 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54856 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54857 # "foo.exe" is OK but "foo" is an error. 54858 # 54859 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54860 # It is also a way to make sure we got the proper file name for the real test later on. 54861 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54862 if test "x$test_shortpath" = x; then 54863 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54864 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54865 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54866 fi 54867 54868 # Call helper function which possibly converts this using DOS-style short mode. 54869 # If so, the updated path is stored in $new_path. 54870 54871 input_path="$new_path" 54872 # Check if we need to convert this using DOS-style short mode. If the path 54873 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54874 # take no chances and rewrite it. 54875 # Note: m4 eats our [], so we need to use [ and ] instead. 54876 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54877 if test "x$has_forbidden_chars" != x; then 54878 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54879 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54880 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54881 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54882 # Going to short mode and back again did indeed matter. Since short mode is 54883 # case insensitive, let's make it lowercase to improve readability. 54884 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54885 # Now convert it back to Unix-style (cygpath) 54886 input_path=`$CYGPATH -u "$shortmode_path"` 54887 new_path="$input_path" 54888 fi 54889 fi 54890 54891 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54892 if test "x$test_cygdrive_prefix" = x; then 54893 # As a simple fix, exclude /usr/bin since it's not a real path. 54894 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54895 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54896 # a path prefixed by /cygdrive for fixpath to work. 54897 new_path="$CYGWIN_ROOT_PATH$input_path" 54898 fi 54899 fi 54900 54901 54902 if test "x$path" != "x$new_path"; then 54903 MSVC_DLL="$new_path" 54904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54905 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54906 fi 54907 54908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54909 54910 path="$MSVC_DLL" 54911 has_colon=`$ECHO $path | $GREP ^.:` 54912 new_path="$path" 54913 if test "x$has_colon" = x; then 54914 # Not in mixed or Windows style, start by that. 54915 new_path=`cmd //c echo $path` 54916 fi 54917 54918 54919 input_path="$new_path" 54920 # Check if we need to convert this using DOS-style short mode. If the path 54921 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54922 # take no chances and rewrite it. 54923 # Note: m4 eats our [], so we need to use [ and ] instead. 54924 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54925 if test "x$has_forbidden_chars" != x; then 54926 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54927 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54928 fi 54929 54930 54931 windows_path="$new_path" 54932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54933 unix_path=`$CYGPATH -u "$windows_path"` 54934 new_path="$unix_path" 54935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54937 new_path="$unix_path" 54938 fi 54939 54940 if test "x$path" != "x$new_path"; then 54941 MSVC_DLL="$new_path" 54942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54943 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54944 fi 54945 54946 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54947 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54948 54949 else 54950 # We're on a unix platform. Hooray! :) 54951 path="$MSVC_DLL" 54952 has_space=`$ECHO "$path" | $GREP " "` 54953 if test "x$has_space" != x; then 54954 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54955 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54956 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54957 fi 54958 54959 # Use eval to expand a potential ~ 54960 eval path="$path" 54961 if test ! -f "$path" && test ! -d "$path"; then 54962 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54963 fi 54964 54965 if test -d "$path"; then 54966 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54967 else 54968 dir="`$DIRNAME "$path"`" 54969 base="`$BASENAME "$path"`" 54970 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54971 fi 54972 fi 54973 fi 54974 54975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54976 $as_echo_n "checking for $DLL_NAME... " >&6; } 54977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54978 $as_echo "$MSVC_DLL" >&6; } 54979 else 54980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54981 $as_echo "incorrect, ignoring" >&6; } 54982 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54983 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54984 fi 54985 fi 54986 54987 if test "x$MSVC_DLL" = x; then 54988 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 54989 fi 54990 MSVCP_DLL="$MSVC_DLL" 54991 elif test "x$DEVKIT_MSVCP_DLL" != x; then 54992 54993 DLL_NAME="$MSVCP_NAME" 54994 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 54995 METHOD="devkit" 54996 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54997 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54998 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54999 55000 # Need to check if the found msvcr is correct architecture 55001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55002 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55003 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55005 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55006 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55007 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55008 CORRECT_MSVCR_ARCH="PE32 executable" 55009 else 55010 CORRECT_MSVCR_ARCH="PE32+ executable" 55011 fi 55012 else 55013 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55014 CORRECT_MSVCR_ARCH=386 55015 else 55016 CORRECT_MSVCR_ARCH=x86-64 55017 fi 55018 fi 55019 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55021 $as_echo "ok" >&6; } 55022 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55023 55024 # Only process if variable expands to non-empty 55025 55026 if test "x$MSVC_DLL" != x; then 55027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55028 55029 # Input might be given as Windows format, start by converting to 55030 # unix format. 55031 path="$MSVC_DLL" 55032 new_path=`$CYGPATH -u "$path"` 55033 55034 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55035 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55036 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55037 # "foo.exe" is OK but "foo" is an error. 55038 # 55039 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55040 # It is also a way to make sure we got the proper file name for the real test later on. 55041 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55042 if test "x$test_shortpath" = x; then 55043 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55044 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55045 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55046 fi 55047 55048 # Call helper function which possibly converts this using DOS-style short mode. 55049 # If so, the updated path is stored in $new_path. 55050 55051 input_path="$new_path" 55052 # Check if we need to convert this using DOS-style short mode. If the path 55053 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55054 # take no chances and rewrite it. 55055 # Note: m4 eats our [], so we need to use [ and ] instead. 55056 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55057 if test "x$has_forbidden_chars" != x; then 55058 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55059 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55060 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55061 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55062 # Going to short mode and back again did indeed matter. Since short mode is 55063 # case insensitive, let's make it lowercase to improve readability. 55064 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55065 # Now convert it back to Unix-style (cygpath) 55066 input_path=`$CYGPATH -u "$shortmode_path"` 55067 new_path="$input_path" 55068 fi 55069 fi 55070 55071 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55072 if test "x$test_cygdrive_prefix" = x; then 55073 # As a simple fix, exclude /usr/bin since it's not a real path. 55074 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55075 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55076 # a path prefixed by /cygdrive for fixpath to work. 55077 new_path="$CYGWIN_ROOT_PATH$input_path" 55078 fi 55079 fi 55080 55081 55082 if test "x$path" != "x$new_path"; then 55083 MSVC_DLL="$new_path" 55084 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55085 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55086 fi 55087 55088 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55089 55090 path="$MSVC_DLL" 55091 has_colon=`$ECHO $path | $GREP ^.:` 55092 new_path="$path" 55093 if test "x$has_colon" = x; then 55094 # Not in mixed or Windows style, start by that. 55095 new_path=`cmd //c echo $path` 55096 fi 55097 55098 55099 input_path="$new_path" 55100 # Check if we need to convert this using DOS-style short mode. If the path 55101 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55102 # take no chances and rewrite it. 55103 # Note: m4 eats our [], so we need to use [ and ] instead. 55104 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55105 if test "x$has_forbidden_chars" != x; then 55106 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55107 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55108 fi 55109 55110 55111 windows_path="$new_path" 55112 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55113 unix_path=`$CYGPATH -u "$windows_path"` 55114 new_path="$unix_path" 55115 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55116 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55117 new_path="$unix_path" 55118 fi 55119 55120 if test "x$path" != "x$new_path"; then 55121 MSVC_DLL="$new_path" 55122 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55123 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55124 fi 55125 55126 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55127 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55128 55129 else 55130 # We're on a unix platform. Hooray! :) 55131 path="$MSVC_DLL" 55132 has_space=`$ECHO "$path" | $GREP " "` 55133 if test "x$has_space" != x; then 55134 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55135 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55136 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55137 fi 55138 55139 # Use eval to expand a potential ~ 55140 eval path="$path" 55141 if test ! -f "$path" && test ! -d "$path"; then 55142 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55143 fi 55144 55145 if test -d "$path"; then 55146 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55147 else 55148 dir="`$DIRNAME "$path"`" 55149 base="`$BASENAME "$path"`" 55150 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55151 fi 55152 fi 55153 fi 55154 55155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55156 $as_echo_n "checking for $DLL_NAME... " >&6; } 55157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55158 $as_echo "$MSVC_DLL" >&6; } 55159 else 55160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55161 $as_echo "incorrect, ignoring" >&6; } 55162 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55163 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55164 fi 55165 fi 55166 55167 if test "x$MSVC_DLL" = x; then 55168 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 55169 fi 55170 MSVCP_DLL="$MSVC_DLL" 55171 else 55172 55173 DLL_NAME="${MSVCP_NAME}" 55174 MSVC_DLL= 55175 55176 if test "x$MSVC_DLL" = x; then 55177 # Probe: Using well-known location from Visual Studio 10.0 55178 if test "x$VCINSTALLDIR" != x; then 55179 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 55180 55181 windows_path="$CYGWIN_VC_INSTALL_DIR" 55182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55183 unix_path=`$CYGPATH -u "$windows_path"` 55184 CYGWIN_VC_INSTALL_DIR="$unix_path" 55185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55187 CYGWIN_VC_INSTALL_DIR="$unix_path" 55188 fi 55189 55190 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55191 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55192 else 55193 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55194 fi 55195 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 55196 55197 DLL_NAME="$DLL_NAME" 55198 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55199 METHOD="well-known location in VCINSTALLDIR" 55200 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55201 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55202 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55203 55204 # Need to check if the found msvcr is correct architecture 55205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55206 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55207 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55208 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55209 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55210 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55211 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55212 CORRECT_MSVCR_ARCH="PE32 executable" 55213 else 55214 CORRECT_MSVCR_ARCH="PE32+ executable" 55215 fi 55216 else 55217 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55218 CORRECT_MSVCR_ARCH=386 55219 else 55220 CORRECT_MSVCR_ARCH=x86-64 55221 fi 55222 fi 55223 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55225 $as_echo "ok" >&6; } 55226 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55227 55228 # Only process if variable expands to non-empty 55229 55230 if test "x$MSVC_DLL" != x; then 55231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55232 55233 # Input might be given as Windows format, start by converting to 55234 # unix format. 55235 path="$MSVC_DLL" 55236 new_path=`$CYGPATH -u "$path"` 55237 55238 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55239 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55240 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55241 # "foo.exe" is OK but "foo" is an error. 55242 # 55243 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55244 # It is also a way to make sure we got the proper file name for the real test later on. 55245 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55246 if test "x$test_shortpath" = x; then 55247 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55248 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55249 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55250 fi 55251 55252 # Call helper function which possibly converts this using DOS-style short mode. 55253 # If so, the updated path is stored in $new_path. 55254 55255 input_path="$new_path" 55256 # Check if we need to convert this using DOS-style short mode. If the path 55257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55258 # take no chances and rewrite it. 55259 # Note: m4 eats our [], so we need to use [ and ] instead. 55260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55261 if test "x$has_forbidden_chars" != x; then 55262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55263 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55264 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55265 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55266 # Going to short mode and back again did indeed matter. Since short mode is 55267 # case insensitive, let's make it lowercase to improve readability. 55268 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55269 # Now convert it back to Unix-style (cygpath) 55270 input_path=`$CYGPATH -u "$shortmode_path"` 55271 new_path="$input_path" 55272 fi 55273 fi 55274 55275 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55276 if test "x$test_cygdrive_prefix" = x; then 55277 # As a simple fix, exclude /usr/bin since it's not a real path. 55278 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55279 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55280 # a path prefixed by /cygdrive for fixpath to work. 55281 new_path="$CYGWIN_ROOT_PATH$input_path" 55282 fi 55283 fi 55284 55285 55286 if test "x$path" != "x$new_path"; then 55287 MSVC_DLL="$new_path" 55288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55289 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55290 fi 55291 55292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55293 55294 path="$MSVC_DLL" 55295 has_colon=`$ECHO $path | $GREP ^.:` 55296 new_path="$path" 55297 if test "x$has_colon" = x; then 55298 # Not in mixed or Windows style, start by that. 55299 new_path=`cmd //c echo $path` 55300 fi 55301 55302 55303 input_path="$new_path" 55304 # Check if we need to convert this using DOS-style short mode. If the path 55305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55306 # take no chances and rewrite it. 55307 # Note: m4 eats our [], so we need to use [ and ] instead. 55308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55309 if test "x$has_forbidden_chars" != x; then 55310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55311 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55312 fi 55313 55314 55315 windows_path="$new_path" 55316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55317 unix_path=`$CYGPATH -u "$windows_path"` 55318 new_path="$unix_path" 55319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55321 new_path="$unix_path" 55322 fi 55323 55324 if test "x$path" != "x$new_path"; then 55325 MSVC_DLL="$new_path" 55326 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55327 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55328 fi 55329 55330 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55331 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55332 55333 else 55334 # We're on a unix platform. Hooray! :) 55335 path="$MSVC_DLL" 55336 has_space=`$ECHO "$path" | $GREP " "` 55337 if test "x$has_space" != x; then 55338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55339 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55340 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55341 fi 55342 55343 # Use eval to expand a potential ~ 55344 eval path="$path" 55345 if test ! -f "$path" && test ! -d "$path"; then 55346 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55347 fi 55348 55349 if test -d "$path"; then 55350 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55351 else 55352 dir="`$DIRNAME "$path"`" 55353 base="`$BASENAME "$path"`" 55354 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55355 fi 55356 fi 55357 fi 55358 55359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55360 $as_echo_n "checking for $DLL_NAME... " >&6; } 55361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55362 $as_echo "$MSVC_DLL" >&6; } 55363 else 55364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55365 $as_echo "incorrect, ignoring" >&6; } 55366 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55367 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55368 fi 55369 fi 55370 55371 fi 55372 fi 55373 55374 if test "x$MSVC_DLL" = x; then 55375 # Probe: Check in the Boot JDK directory. 55376 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 55377 55378 DLL_NAME="$DLL_NAME" 55379 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55380 METHOD="well-known location in Boot JDK" 55381 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55382 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55383 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55384 55385 # Need to check if the found msvcr is correct architecture 55386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55387 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55388 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55390 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55391 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55392 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55393 CORRECT_MSVCR_ARCH="PE32 executable" 55394 else 55395 CORRECT_MSVCR_ARCH="PE32+ executable" 55396 fi 55397 else 55398 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55399 CORRECT_MSVCR_ARCH=386 55400 else 55401 CORRECT_MSVCR_ARCH=x86-64 55402 fi 55403 fi 55404 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55406 $as_echo "ok" >&6; } 55407 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55408 55409 # Only process if variable expands to non-empty 55410 55411 if test "x$MSVC_DLL" != x; then 55412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55413 55414 # Input might be given as Windows format, start by converting to 55415 # unix format. 55416 path="$MSVC_DLL" 55417 new_path=`$CYGPATH -u "$path"` 55418 55419 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55420 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55421 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55422 # "foo.exe" is OK but "foo" is an error. 55423 # 55424 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55425 # It is also a way to make sure we got the proper file name for the real test later on. 55426 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55427 if test "x$test_shortpath" = x; then 55428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55429 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55430 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55431 fi 55432 55433 # Call helper function which possibly converts this using DOS-style short mode. 55434 # If so, the updated path is stored in $new_path. 55435 55436 input_path="$new_path" 55437 # Check if we need to convert this using DOS-style short mode. If the path 55438 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55439 # take no chances and rewrite it. 55440 # Note: m4 eats our [], so we need to use [ and ] instead. 55441 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55442 if test "x$has_forbidden_chars" != x; then 55443 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55444 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55445 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55446 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55447 # Going to short mode and back again did indeed matter. Since short mode is 55448 # case insensitive, let's make it lowercase to improve readability. 55449 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55450 # Now convert it back to Unix-style (cygpath) 55451 input_path=`$CYGPATH -u "$shortmode_path"` 55452 new_path="$input_path" 55453 fi 55454 fi 55455 55456 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55457 if test "x$test_cygdrive_prefix" = x; then 55458 # As a simple fix, exclude /usr/bin since it's not a real path. 55459 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55460 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55461 # a path prefixed by /cygdrive for fixpath to work. 55462 new_path="$CYGWIN_ROOT_PATH$input_path" 55463 fi 55464 fi 55465 55466 55467 if test "x$path" != "x$new_path"; then 55468 MSVC_DLL="$new_path" 55469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55470 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55471 fi 55472 55473 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55474 55475 path="$MSVC_DLL" 55476 has_colon=`$ECHO $path | $GREP ^.:` 55477 new_path="$path" 55478 if test "x$has_colon" = x; then 55479 # Not in mixed or Windows style, start by that. 55480 new_path=`cmd //c echo $path` 55481 fi 55482 55483 55484 input_path="$new_path" 55485 # Check if we need to convert this using DOS-style short mode. If the path 55486 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55487 # take no chances and rewrite it. 55488 # Note: m4 eats our [], so we need to use [ and ] instead. 55489 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55490 if test "x$has_forbidden_chars" != x; then 55491 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55492 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55493 fi 55494 55495 55496 windows_path="$new_path" 55497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55498 unix_path=`$CYGPATH -u "$windows_path"` 55499 new_path="$unix_path" 55500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55501 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55502 new_path="$unix_path" 55503 fi 55504 55505 if test "x$path" != "x$new_path"; then 55506 MSVC_DLL="$new_path" 55507 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55508 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55509 fi 55510 55511 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55512 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55513 55514 else 55515 # We're on a unix platform. Hooray! :) 55516 path="$MSVC_DLL" 55517 has_space=`$ECHO "$path" | $GREP " "` 55518 if test "x$has_space" != x; then 55519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55520 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55521 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55522 fi 55523 55524 # Use eval to expand a potential ~ 55525 eval path="$path" 55526 if test ! -f "$path" && test ! -d "$path"; then 55527 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55528 fi 55529 55530 if test -d "$path"; then 55531 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55532 else 55533 dir="`$DIRNAME "$path"`" 55534 base="`$BASENAME "$path"`" 55535 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55536 fi 55537 fi 55538 fi 55539 55540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55541 $as_echo_n "checking for $DLL_NAME... " >&6; } 55542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55543 $as_echo "$MSVC_DLL" >&6; } 55544 else 55545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55546 $as_echo "incorrect, ignoring" >&6; } 55547 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55548 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55549 fi 55550 fi 55551 55552 fi 55553 55554 if test "x$MSVC_DLL" = x; then 55555 # Probe: Look in the Windows system32 directory 55556 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55557 55558 windows_path="$CYGWIN_SYSTEMROOT" 55559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55560 unix_path=`$CYGPATH -u "$windows_path"` 55561 CYGWIN_SYSTEMROOT="$unix_path" 55562 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55563 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55564 CYGWIN_SYSTEMROOT="$unix_path" 55565 fi 55566 55567 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55568 55569 DLL_NAME="$DLL_NAME" 55570 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55571 METHOD="well-known location in SYSTEMROOT" 55572 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55573 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55574 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55575 55576 # Need to check if the found msvcr is correct architecture 55577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55578 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55579 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55581 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55582 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55583 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55584 CORRECT_MSVCR_ARCH="PE32 executable" 55585 else 55586 CORRECT_MSVCR_ARCH="PE32+ executable" 55587 fi 55588 else 55589 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55590 CORRECT_MSVCR_ARCH=386 55591 else 55592 CORRECT_MSVCR_ARCH=x86-64 55593 fi 55594 fi 55595 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55597 $as_echo "ok" >&6; } 55598 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55599 55600 # Only process if variable expands to non-empty 55601 55602 if test "x$MSVC_DLL" != x; then 55603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55604 55605 # Input might be given as Windows format, start by converting to 55606 # unix format. 55607 path="$MSVC_DLL" 55608 new_path=`$CYGPATH -u "$path"` 55609 55610 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55611 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55612 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55613 # "foo.exe" is OK but "foo" is an error. 55614 # 55615 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55616 # It is also a way to make sure we got the proper file name for the real test later on. 55617 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55618 if test "x$test_shortpath" = x; then 55619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55620 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55621 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55622 fi 55623 55624 # Call helper function which possibly converts this using DOS-style short mode. 55625 # If so, the updated path is stored in $new_path. 55626 55627 input_path="$new_path" 55628 # Check if we need to convert this using DOS-style short mode. If the path 55629 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55630 # take no chances and rewrite it. 55631 # Note: m4 eats our [], so we need to use [ and ] instead. 55632 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55633 if test "x$has_forbidden_chars" != x; then 55634 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55635 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55636 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55637 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55638 # Going to short mode and back again did indeed matter. Since short mode is 55639 # case insensitive, let's make it lowercase to improve readability. 55640 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55641 # Now convert it back to Unix-style (cygpath) 55642 input_path=`$CYGPATH -u "$shortmode_path"` 55643 new_path="$input_path" 55644 fi 55645 fi 55646 55647 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55648 if test "x$test_cygdrive_prefix" = x; then 55649 # As a simple fix, exclude /usr/bin since it's not a real path. 55650 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55651 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55652 # a path prefixed by /cygdrive for fixpath to work. 55653 new_path="$CYGWIN_ROOT_PATH$input_path" 55654 fi 55655 fi 55656 55657 55658 if test "x$path" != "x$new_path"; then 55659 MSVC_DLL="$new_path" 55660 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55661 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55662 fi 55663 55664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55665 55666 path="$MSVC_DLL" 55667 has_colon=`$ECHO $path | $GREP ^.:` 55668 new_path="$path" 55669 if test "x$has_colon" = x; then 55670 # Not in mixed or Windows style, start by that. 55671 new_path=`cmd //c echo $path` 55672 fi 55673 55674 55675 input_path="$new_path" 55676 # Check if we need to convert this using DOS-style short mode. If the path 55677 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55678 # take no chances and rewrite it. 55679 # Note: m4 eats our [], so we need to use [ and ] instead. 55680 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55681 if test "x$has_forbidden_chars" != x; then 55682 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55683 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55684 fi 55685 55686 55687 windows_path="$new_path" 55688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55689 unix_path=`$CYGPATH -u "$windows_path"` 55690 new_path="$unix_path" 55691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55692 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55693 new_path="$unix_path" 55694 fi 55695 55696 if test "x$path" != "x$new_path"; then 55697 MSVC_DLL="$new_path" 55698 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55699 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55700 fi 55701 55702 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55703 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55704 55705 else 55706 # We're on a unix platform. Hooray! :) 55707 path="$MSVC_DLL" 55708 has_space=`$ECHO "$path" | $GREP " "` 55709 if test "x$has_space" != 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 $? "Spaces are not allowed in this path." "$LINENO" 5 55713 fi 55714 55715 # Use eval to expand a potential ~ 55716 eval path="$path" 55717 if test ! -f "$path" && test ! -d "$path"; then 55718 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55719 fi 55720 55721 if test -d "$path"; then 55722 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55723 else 55724 dir="`$DIRNAME "$path"`" 55725 base="`$BASENAME "$path"`" 55726 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55727 fi 55728 fi 55729 fi 55730 55731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55732 $as_echo_n "checking for $DLL_NAME... " >&6; } 55733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55734 $as_echo "$MSVC_DLL" >&6; } 55735 else 55736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55737 $as_echo "incorrect, ignoring" >&6; } 55738 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55739 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55740 fi 55741 fi 55742 55743 fi 55744 55745 if test "x$MSVC_DLL" = x; then 55746 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 55747 if test "x$VS100COMNTOOLS" != x; then 55748 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 55749 55750 windows_path="$CYGWIN_VS_TOOLS_DIR" 55751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55752 unix_path=`$CYGPATH -u "$windows_path"` 55753 CYGWIN_VS_TOOLS_DIR="$unix_path" 55754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55755 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55756 CYGWIN_VS_TOOLS_DIR="$unix_path" 55757 fi 55758 55759 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55760 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55761 | $GREP -i /x64/ | $HEAD --lines 1` 55762 else 55763 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55764 | $GREP -i /x86/ | $HEAD --lines 1` 55765 fi 55766 55767 DLL_NAME="$DLL_NAME" 55768 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55769 METHOD="search of VS100COMNTOOLS" 55770 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55771 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55772 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55773 55774 # Need to check if the found msvcr is correct architecture 55775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55776 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55777 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55779 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55780 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55781 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55782 CORRECT_MSVCR_ARCH="PE32 executable" 55783 else 55784 CORRECT_MSVCR_ARCH="PE32+ executable" 55785 fi 55786 else 55787 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55788 CORRECT_MSVCR_ARCH=386 55789 else 55790 CORRECT_MSVCR_ARCH=x86-64 55791 fi 55792 fi 55793 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55795 $as_echo "ok" >&6; } 55796 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55797 55798 # Only process if variable expands to non-empty 55799 55800 if test "x$MSVC_DLL" != x; then 55801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55802 55803 # Input might be given as Windows format, start by converting to 55804 # unix format. 55805 path="$MSVC_DLL" 55806 new_path=`$CYGPATH -u "$path"` 55807 55808 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55809 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55810 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55811 # "foo.exe" is OK but "foo" is an error. 55812 # 55813 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55814 # It is also a way to make sure we got the proper file name for the real test later on. 55815 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55816 if test "x$test_shortpath" = x; then 55817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55818 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55819 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55820 fi 55821 55822 # Call helper function which possibly converts this using DOS-style short mode. 55823 # If so, the updated path is stored in $new_path. 55824 55825 input_path="$new_path" 55826 # Check if we need to convert this using DOS-style short mode. If the path 55827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55828 # take no chances and rewrite it. 55829 # Note: m4 eats our [], so we need to use [ and ] instead. 55830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55831 if test "x$has_forbidden_chars" != x; then 55832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55833 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55834 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55835 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55836 # Going to short mode and back again did indeed matter. Since short mode is 55837 # case insensitive, let's make it lowercase to improve readability. 55838 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55839 # Now convert it back to Unix-style (cygpath) 55840 input_path=`$CYGPATH -u "$shortmode_path"` 55841 new_path="$input_path" 55842 fi 55843 fi 55844 55845 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55846 if test "x$test_cygdrive_prefix" = x; then 55847 # As a simple fix, exclude /usr/bin since it's not a real path. 55848 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55849 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55850 # a path prefixed by /cygdrive for fixpath to work. 55851 new_path="$CYGWIN_ROOT_PATH$input_path" 55852 fi 55853 fi 55854 55855 55856 if test "x$path" != "x$new_path"; then 55857 MSVC_DLL="$new_path" 55858 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55859 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55860 fi 55861 55862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55863 55864 path="$MSVC_DLL" 55865 has_colon=`$ECHO $path | $GREP ^.:` 55866 new_path="$path" 55867 if test "x$has_colon" = x; then 55868 # Not in mixed or Windows style, start by that. 55869 new_path=`cmd //c echo $path` 55870 fi 55871 55872 55873 input_path="$new_path" 55874 # Check if we need to convert this using DOS-style short mode. If the path 55875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55876 # take no chances and rewrite it. 55877 # Note: m4 eats our [], so we need to use [ and ] instead. 55878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55879 if test "x$has_forbidden_chars" != x; then 55880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55881 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55882 fi 55883 55884 55885 windows_path="$new_path" 55886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55887 unix_path=`$CYGPATH -u "$windows_path"` 55888 new_path="$unix_path" 55889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55890 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55891 new_path="$unix_path" 55892 fi 55893 55894 if test "x$path" != "x$new_path"; then 55895 MSVC_DLL="$new_path" 55896 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55897 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55898 fi 55899 55900 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55901 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55902 55903 else 55904 # We're on a unix platform. Hooray! :) 55905 path="$MSVC_DLL" 55906 has_space=`$ECHO "$path" | $GREP " "` 55907 if test "x$has_space" != x; then 55908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55909 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55910 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55911 fi 55912 55913 # Use eval to expand a potential ~ 55914 eval path="$path" 55915 if test ! -f "$path" && test ! -d "$path"; then 55916 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55917 fi 55918 55919 if test -d "$path"; then 55920 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55921 else 55922 dir="`$DIRNAME "$path"`" 55923 base="`$BASENAME "$path"`" 55924 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55925 fi 55926 fi 55927 fi 55928 55929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55930 $as_echo_n "checking for $DLL_NAME... " >&6; } 55931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55932 $as_echo "$MSVC_DLL" >&6; } 55933 else 55934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55935 $as_echo "incorrect, ignoring" >&6; } 55936 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55937 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55938 fi 55939 fi 55940 55941 fi 55942 fi 55943 55944 if test "x$MSVC_DLL" = x; then 55945 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 55946 # (This was the original behaviour; kept since it might turn something up) 55947 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 55948 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55949 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55950 | $GREP x64 | $HEAD --lines 1` 55951 else 55952 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55953 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 55954 if test "x$POSSIBLE_MSVC_DLL" = x; then 55955 # We're grasping at straws now... 55956 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55957 | $HEAD --lines 1` 55958 fi 55959 fi 55960 55961 55962 DLL_NAME="$DLL_NAME" 55963 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55964 METHOD="search of VCINSTALLDIR" 55965 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55966 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55967 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55968 55969 # Need to check if the found msvcr is correct architecture 55970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55971 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55972 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55974 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55975 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55976 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55977 CORRECT_MSVCR_ARCH="PE32 executable" 55978 else 55979 CORRECT_MSVCR_ARCH="PE32+ executable" 55980 fi 55981 else 55982 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55983 CORRECT_MSVCR_ARCH=386 55984 else 55985 CORRECT_MSVCR_ARCH=x86-64 55986 fi 55987 fi 55988 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55990 $as_echo "ok" >&6; } 55991 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55992 55993 # Only process if variable expands to non-empty 55994 55995 if test "x$MSVC_DLL" != x; then 55996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55997 55998 # Input might be given as Windows format, start by converting to 55999 # unix format. 56000 path="$MSVC_DLL" 56001 new_path=`$CYGPATH -u "$path"` 56002 56003 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56004 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56005 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56006 # "foo.exe" is OK but "foo" is an error. 56007 # 56008 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56009 # It is also a way to make sure we got the proper file name for the real test later on. 56010 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56011 if test "x$test_shortpath" = x; then 56012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56013 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56014 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56015 fi 56016 56017 # Call helper function which possibly converts this using DOS-style short mode. 56018 # If so, the updated path is stored in $new_path. 56019 56020 input_path="$new_path" 56021 # Check if we need to convert this using DOS-style short mode. If the path 56022 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56023 # take no chances and rewrite it. 56024 # Note: m4 eats our [], so we need to use [ and ] instead. 56025 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56026 if test "x$has_forbidden_chars" != x; then 56027 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56028 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56029 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56030 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56031 # Going to short mode and back again did indeed matter. Since short mode is 56032 # case insensitive, let's make it lowercase to improve readability. 56033 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56034 # Now convert it back to Unix-style (cygpath) 56035 input_path=`$CYGPATH -u "$shortmode_path"` 56036 new_path="$input_path" 56037 fi 56038 fi 56039 56040 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56041 if test "x$test_cygdrive_prefix" = x; then 56042 # As a simple fix, exclude /usr/bin since it's not a real path. 56043 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56044 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56045 # a path prefixed by /cygdrive for fixpath to work. 56046 new_path="$CYGWIN_ROOT_PATH$input_path" 56047 fi 56048 fi 56049 56050 56051 if test "x$path" != "x$new_path"; then 56052 MSVC_DLL="$new_path" 56053 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56054 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56055 fi 56056 56057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56058 56059 path="$MSVC_DLL" 56060 has_colon=`$ECHO $path | $GREP ^.:` 56061 new_path="$path" 56062 if test "x$has_colon" = x; then 56063 # Not in mixed or Windows style, start by that. 56064 new_path=`cmd //c echo $path` 56065 fi 56066 56067 56068 input_path="$new_path" 56069 # Check if we need to convert this using DOS-style short mode. If the path 56070 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56071 # take no chances and rewrite it. 56072 # Note: m4 eats our [], so we need to use [ and ] instead. 56073 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56074 if test "x$has_forbidden_chars" != x; then 56075 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56076 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56077 fi 56078 56079 56080 windows_path="$new_path" 56081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56082 unix_path=`$CYGPATH -u "$windows_path"` 56083 new_path="$unix_path" 56084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56086 new_path="$unix_path" 56087 fi 56088 56089 if test "x$path" != "x$new_path"; then 56090 MSVC_DLL="$new_path" 56091 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56092 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56093 fi 56094 56095 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56096 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56097 56098 else 56099 # We're on a unix platform. Hooray! :) 56100 path="$MSVC_DLL" 56101 has_space=`$ECHO "$path" | $GREP " "` 56102 if test "x$has_space" != x; then 56103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56104 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56105 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56106 fi 56107 56108 # Use eval to expand a potential ~ 56109 eval path="$path" 56110 if test ! -f "$path" && test ! -d "$path"; then 56111 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56112 fi 56113 56114 if test -d "$path"; then 56115 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56116 else 56117 dir="`$DIRNAME "$path"`" 56118 base="`$BASENAME "$path"`" 56119 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56120 fi 56121 fi 56122 fi 56123 56124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56125 $as_echo_n "checking for $DLL_NAME... " >&6; } 56126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56127 $as_echo "$MSVC_DLL" >&6; } 56128 else 56129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56130 $as_echo "incorrect, ignoring" >&6; } 56131 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56132 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56133 fi 56134 fi 56135 56136 fi 56137 fi 56138 56139 if test "x$MSVC_DLL" = x; then 56140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56141 $as_echo_n "checking for $DLL_NAME... " >&6; } 56142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56143 $as_echo "no" >&6; } 56144 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 56145 fi 56146 56147 MSVCP_DLL="$MSVC_DLL" 56148 fi 56149 56150 fi 56151 56152 fi 56153 56154 56155 if test "x$NEEDS_LIB_X11" = xfalse; then 56156 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 56157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 56158 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 56159 fi 56160 X_CFLAGS= 56161 X_LIBS= 56162 else 56163 56164 if test "x${with_x}" = xno; then 56165 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 56166 fi 56167 56168 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 56169 # The user has specified a X11 base directory. Use it for includes and 56170 # libraries, unless explicitely overridden. 56171 if test "x$x_includes" = xNONE; then 56172 x_includes="${with_x}/include" 56173 fi 56174 if test "x$x_libraries" = xNONE; then 56175 x_libraries="${with_x}/lib" 56176 fi 56177 else 56178 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 56179 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 56180 # --x-libraries for the sysroot, if that seems to be correct. 56181 if test "x$SYSROOT" != "x"; then 56182 if test "x$x_includes" = xNONE; then 56183 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 56184 x_includes="$SYSROOT/usr/X11R6/include" 56185 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 56186 x_includes="$SYSROOT/usr/include" 56187 fi 56188 fi 56189 if test "x$x_libraries" = xNONE; then 56190 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 56191 x_libraries="$SYSROOT/usr/X11R6/lib" 56192 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56193 x_libraries="$SYSROOT/usr/lib64" 56194 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 56195 x_libraries="$SYSROOT/usr/lib" 56196 fi 56197 fi 56198 fi 56199 fi 56200 56201 # Now let autoconf do it's magic 56202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 56203 $as_echo_n "checking for X... " >&6; } 56204 56205 56206 # Check whether --with-x was given. 56207 if test "${with_x+set}" = set; then : 56208 withval=$with_x; 56209 fi 56210 56211 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 56212 if test "x$with_x" = xno; then 56213 # The user explicitly disabled X. 56214 have_x=disabled 56215 else 56216 case $x_includes,$x_libraries in #( 56217 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 56218 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 56219 $as_echo_n "(cached) " >&6 56220 else 56221 # One or both of the vars are not set, and there is no cached value. 56222 ac_x_includes=no ac_x_libraries=no 56223 rm -f -r conftest.dir 56224 if mkdir conftest.dir; then 56225 cd conftest.dir 56226 cat >Imakefile <<'_ACEOF' 56227 incroot: 56228 @echo incroot='${INCROOT}' 56229 usrlibdir: 56230 @echo usrlibdir='${USRLIBDIR}' 56231 libdir: 56232 @echo libdir='${LIBDIR}' 56233 _ACEOF 56234 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 56235 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 56236 for ac_var in incroot usrlibdir libdir; do 56237 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 56238 done 56239 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 56240 for ac_extension in a so sl dylib la dll; do 56241 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 56242 test -f "$ac_im_libdir/libX11.$ac_extension"; then 56243 ac_im_usrlibdir=$ac_im_libdir; break 56244 fi 56245 done 56246 # Screen out bogus values from the imake configuration. They are 56247 # bogus both because they are the default anyway, and because 56248 # using them would break gcc on systems where it needs fixed includes. 56249 case $ac_im_incroot in 56250 /usr/include) ac_x_includes= ;; 56251 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 56252 esac 56253 case $ac_im_usrlibdir in 56254 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 56255 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 56256 esac 56257 fi 56258 cd .. 56259 rm -f -r conftest.dir 56260 fi 56261 56262 # Standard set of common directories for X headers. 56263 # Check X11 before X11Rn because it is often a symlink to the current release. 56264 ac_x_header_dirs=' 56265 /usr/X11/include 56266 /usr/X11R7/include 56267 /usr/X11R6/include 56268 /usr/X11R5/include 56269 /usr/X11R4/include 56270 56271 /usr/include/X11 56272 /usr/include/X11R7 56273 /usr/include/X11R6 56274 /usr/include/X11R5 56275 /usr/include/X11R4 56276 56277 /usr/local/X11/include 56278 /usr/local/X11R7/include 56279 /usr/local/X11R6/include 56280 /usr/local/X11R5/include 56281 /usr/local/X11R4/include 56282 56283 /usr/local/include/X11 56284 /usr/local/include/X11R7 56285 /usr/local/include/X11R6 56286 /usr/local/include/X11R5 56287 /usr/local/include/X11R4 56288 56289 /usr/X386/include 56290 /usr/x386/include 56291 /usr/XFree86/include/X11 56292 56293 /usr/include 56294 /usr/local/include 56295 /usr/unsupported/include 56296 /usr/athena/include 56297 /usr/local/x11r5/include 56298 /usr/lpp/Xamples/include 56299 56300 /usr/openwin/include 56301 /usr/openwin/share/include' 56302 56303 if test "$ac_x_includes" = no; then 56304 # Guess where to find include files, by looking for Xlib.h. 56305 # First, try using that file with no special directory specified. 56306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56307 /* end confdefs.h. */ 56308 #include <X11/Xlib.h> 56309 _ACEOF 56310 if ac_fn_cxx_try_cpp "$LINENO"; then : 56311 # We can compile using X headers with no special include directory. 56312 ac_x_includes= 56313 else 56314 for ac_dir in $ac_x_header_dirs; do 56315 if test -r "$ac_dir/X11/Xlib.h"; then 56316 ac_x_includes=$ac_dir 56317 break 56318 fi 56319 done 56320 fi 56321 rm -f conftest.err conftest.i conftest.$ac_ext 56322 fi # $ac_x_includes = no 56323 56324 if test "$ac_x_libraries" = no; then 56325 # Check for the libraries. 56326 # See if we find them without any special options. 56327 # Don't add to $LIBS permanently. 56328 ac_save_LIBS=$LIBS 56329 LIBS="-lX11 $LIBS" 56330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56331 /* end confdefs.h. */ 56332 #include <X11/Xlib.h> 56333 int 56334 main () 56335 { 56336 XrmInitialize () 56337 ; 56338 return 0; 56339 } 56340 _ACEOF 56341 if ac_fn_cxx_try_link "$LINENO"; then : 56342 LIBS=$ac_save_LIBS 56343 # We can link X programs with no special library path. 56344 ac_x_libraries= 56345 else 56346 LIBS=$ac_save_LIBS 56347 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 56348 do 56349 # Don't even attempt the hair of trying to link an X program! 56350 for ac_extension in a so sl dylib la dll; do 56351 if test -r "$ac_dir/libX11.$ac_extension"; then 56352 ac_x_libraries=$ac_dir 56353 break 2 56354 fi 56355 done 56356 done 56357 fi 56358 rm -f core conftest.err conftest.$ac_objext \ 56359 conftest$ac_exeext conftest.$ac_ext 56360 fi # $ac_x_libraries = no 56361 56362 case $ac_x_includes,$ac_x_libraries in #( 56363 no,* | *,no | *\'*) 56364 # Didn't find X, or a directory has "'" in its name. 56365 ac_cv_have_x="have_x=no";; #( 56366 *) 56367 # Record where we found X for the cache. 56368 ac_cv_have_x="have_x=yes\ 56369 ac_x_includes='$ac_x_includes'\ 56370 ac_x_libraries='$ac_x_libraries'" 56371 esac 56372 fi 56373 ;; #( 56374 *) have_x=yes;; 56375 esac 56376 eval "$ac_cv_have_x" 56377 fi # $with_x != no 56378 56379 if test "$have_x" != yes; then 56380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 56381 $as_echo "$have_x" >&6; } 56382 no_x=yes 56383 else 56384 # If each of the values was on the command line, it overrides each guess. 56385 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 56386 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 56387 # Update the cache value to reflect the command line values. 56388 ac_cv_have_x="have_x=yes\ 56389 ac_x_includes='$x_includes'\ 56390 ac_x_libraries='$x_libraries'" 56391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 56392 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 56393 fi 56394 56395 if test "$no_x" = yes; then 56396 # Not all programs may use this symbol, but it does not hurt to define it. 56397 56398 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 56399 56400 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 56401 else 56402 if test -n "$x_includes"; then 56403 X_CFLAGS="$X_CFLAGS -I$x_includes" 56404 fi 56405 56406 # It would also be nice to do this for all -L options, not just this one. 56407 if test -n "$x_libraries"; then 56408 X_LIBS="$X_LIBS -L$x_libraries" 56409 # For Solaris; some versions of Sun CC require a space after -R and 56410 # others require no space. Words are not sufficient . . . . 56411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 56412 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 56413 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 56414 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 56415 ac_cxx_werror_flag=yes 56416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56417 /* end confdefs.h. */ 56418 56419 int 56420 main () 56421 { 56422 56423 ; 56424 return 0; 56425 } 56426 _ACEOF 56427 if ac_fn_cxx_try_link "$LINENO"; then : 56428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56429 $as_echo "no" >&6; } 56430 X_LIBS="$X_LIBS -R$x_libraries" 56431 else 56432 LIBS="$ac_xsave_LIBS -R $x_libraries" 56433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56434 /* end confdefs.h. */ 56435 56436 int 56437 main () 56438 { 56439 56440 ; 56441 return 0; 56442 } 56443 _ACEOF 56444 if ac_fn_cxx_try_link "$LINENO"; then : 56445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56446 $as_echo "yes" >&6; } 56447 X_LIBS="$X_LIBS -R $x_libraries" 56448 else 56449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 56450 $as_echo "neither works" >&6; } 56451 fi 56452 rm -f core conftest.err conftest.$ac_objext \ 56453 conftest$ac_exeext conftest.$ac_ext 56454 fi 56455 rm -f core conftest.err conftest.$ac_objext \ 56456 conftest$ac_exeext conftest.$ac_ext 56457 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 56458 LIBS=$ac_xsave_LIBS 56459 fi 56460 56461 # Check for system-dependent libraries X programs must link with. 56462 # Do this before checking for the system-independent R6 libraries 56463 # (-lICE), since we may need -lsocket or whatever for X linking. 56464 56465 if test "$ISC" = yes; then 56466 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 56467 else 56468 # Martyn Johnson says this is needed for Ultrix, if the X 56469 # libraries were built with DECnet support. And Karl Berry says 56470 # the Alpha needs dnet_stub (dnet does not exist). 56471 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 56472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56473 /* end confdefs.h. */ 56474 56475 /* Override any GCC internal prototype to avoid an error. 56476 Use char because int might match the return type of a GCC 56477 builtin and then its argument prototype would still apply. */ 56478 #ifdef __cplusplus 56479 extern "C" 56480 #endif 56481 char XOpenDisplay (); 56482 int 56483 main () 56484 { 56485 return XOpenDisplay (); 56486 ; 56487 return 0; 56488 } 56489 _ACEOF 56490 if ac_fn_cxx_try_link "$LINENO"; then : 56491 56492 else 56493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 56494 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 56495 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 56496 $as_echo_n "(cached) " >&6 56497 else 56498 ac_check_lib_save_LIBS=$LIBS 56499 LIBS="-ldnet $LIBS" 56500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56501 /* end confdefs.h. */ 56502 56503 /* Override any GCC internal prototype to avoid an error. 56504 Use char because int might match the return type of a GCC 56505 builtin and then its argument prototype would still apply. */ 56506 #ifdef __cplusplus 56507 extern "C" 56508 #endif 56509 char dnet_ntoa (); 56510 int 56511 main () 56512 { 56513 return dnet_ntoa (); 56514 ; 56515 return 0; 56516 } 56517 _ACEOF 56518 if ac_fn_cxx_try_link "$LINENO"; then : 56519 ac_cv_lib_dnet_dnet_ntoa=yes 56520 else 56521 ac_cv_lib_dnet_dnet_ntoa=no 56522 fi 56523 rm -f core conftest.err conftest.$ac_objext \ 56524 conftest$ac_exeext conftest.$ac_ext 56525 LIBS=$ac_check_lib_save_LIBS 56526 fi 56527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 56528 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 56529 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 56530 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 56531 fi 56532 56533 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 56534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 56535 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 56536 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 56537 $as_echo_n "(cached) " >&6 56538 else 56539 ac_check_lib_save_LIBS=$LIBS 56540 LIBS="-ldnet_stub $LIBS" 56541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56542 /* end confdefs.h. */ 56543 56544 /* Override any GCC internal prototype to avoid an error. 56545 Use char because int might match the return type of a GCC 56546 builtin and then its argument prototype would still apply. */ 56547 #ifdef __cplusplus 56548 extern "C" 56549 #endif 56550 char dnet_ntoa (); 56551 int 56552 main () 56553 { 56554 return dnet_ntoa (); 56555 ; 56556 return 0; 56557 } 56558 _ACEOF 56559 if ac_fn_cxx_try_link "$LINENO"; then : 56560 ac_cv_lib_dnet_stub_dnet_ntoa=yes 56561 else 56562 ac_cv_lib_dnet_stub_dnet_ntoa=no 56563 fi 56564 rm -f core conftest.err conftest.$ac_objext \ 56565 conftest$ac_exeext conftest.$ac_ext 56566 LIBS=$ac_check_lib_save_LIBS 56567 fi 56568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 56569 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 56570 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 56571 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 56572 fi 56573 56574 fi 56575 fi 56576 rm -f core conftest.err conftest.$ac_objext \ 56577 conftest$ac_exeext conftest.$ac_ext 56578 LIBS="$ac_xsave_LIBS" 56579 56580 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 56581 # to get the SysV transport functions. 56582 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 56583 # needs -lnsl. 56584 # The nsl library prevents programs from opening the X display 56585 # on Irix 5.2, according to T.E. Dickey. 56586 # The functions gethostbyname, getservbyname, and inet_addr are 56587 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 56588 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 56589 if test "x$ac_cv_func_gethostbyname" = xyes; then : 56590 56591 fi 56592 56593 if test $ac_cv_func_gethostbyname = no; then 56594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 56595 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 56596 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 56597 $as_echo_n "(cached) " >&6 56598 else 56599 ac_check_lib_save_LIBS=$LIBS 56600 LIBS="-lnsl $LIBS" 56601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56602 /* end confdefs.h. */ 56603 56604 /* Override any GCC internal prototype to avoid an error. 56605 Use char because int might match the return type of a GCC 56606 builtin and then its argument prototype would still apply. */ 56607 #ifdef __cplusplus 56608 extern "C" 56609 #endif 56610 char gethostbyname (); 56611 int 56612 main () 56613 { 56614 return gethostbyname (); 56615 ; 56616 return 0; 56617 } 56618 _ACEOF 56619 if ac_fn_cxx_try_link "$LINENO"; then : 56620 ac_cv_lib_nsl_gethostbyname=yes 56621 else 56622 ac_cv_lib_nsl_gethostbyname=no 56623 fi 56624 rm -f core conftest.err conftest.$ac_objext \ 56625 conftest$ac_exeext conftest.$ac_ext 56626 LIBS=$ac_check_lib_save_LIBS 56627 fi 56628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 56629 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 56630 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 56631 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 56632 fi 56633 56634 if test $ac_cv_lib_nsl_gethostbyname = no; then 56635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 56636 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 56637 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 56638 $as_echo_n "(cached) " >&6 56639 else 56640 ac_check_lib_save_LIBS=$LIBS 56641 LIBS="-lbsd $LIBS" 56642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56643 /* end confdefs.h. */ 56644 56645 /* Override any GCC internal prototype to avoid an error. 56646 Use char because int might match the return type of a GCC 56647 builtin and then its argument prototype would still apply. */ 56648 #ifdef __cplusplus 56649 extern "C" 56650 #endif 56651 char gethostbyname (); 56652 int 56653 main () 56654 { 56655 return gethostbyname (); 56656 ; 56657 return 0; 56658 } 56659 _ACEOF 56660 if ac_fn_cxx_try_link "$LINENO"; then : 56661 ac_cv_lib_bsd_gethostbyname=yes 56662 else 56663 ac_cv_lib_bsd_gethostbyname=no 56664 fi 56665 rm -f core conftest.err conftest.$ac_objext \ 56666 conftest$ac_exeext conftest.$ac_ext 56667 LIBS=$ac_check_lib_save_LIBS 56668 fi 56669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 56670 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 56671 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 56672 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 56673 fi 56674 56675 fi 56676 fi 56677 56678 # lieder@skyler.mavd.honeywell.com says without -lsocket, 56679 # socket/setsockopt and other routines are undefined under SCO ODT 56680 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 56681 # on later versions), says Simon Leinen: it contains gethostby* 56682 # variants that don't use the name server (or something). -lsocket 56683 # must be given before -lnsl if both are needed. We assume that 56684 # if connect needs -lnsl, so does gethostbyname. 56685 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 56686 if test "x$ac_cv_func_connect" = xyes; then : 56687 56688 fi 56689 56690 if test $ac_cv_func_connect = no; then 56691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 56692 $as_echo_n "checking for connect in -lsocket... " >&6; } 56693 if ${ac_cv_lib_socket_connect+:} false; then : 56694 $as_echo_n "(cached) " >&6 56695 else 56696 ac_check_lib_save_LIBS=$LIBS 56697 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 56698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56699 /* end confdefs.h. */ 56700 56701 /* Override any GCC internal prototype to avoid an error. 56702 Use char because int might match the return type of a GCC 56703 builtin and then its argument prototype would still apply. */ 56704 #ifdef __cplusplus 56705 extern "C" 56706 #endif 56707 char connect (); 56708 int 56709 main () 56710 { 56711 return connect (); 56712 ; 56713 return 0; 56714 } 56715 _ACEOF 56716 if ac_fn_cxx_try_link "$LINENO"; then : 56717 ac_cv_lib_socket_connect=yes 56718 else 56719 ac_cv_lib_socket_connect=no 56720 fi 56721 rm -f core conftest.err conftest.$ac_objext \ 56722 conftest$ac_exeext conftest.$ac_ext 56723 LIBS=$ac_check_lib_save_LIBS 56724 fi 56725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 56726 $as_echo "$ac_cv_lib_socket_connect" >&6; } 56727 if test "x$ac_cv_lib_socket_connect" = xyes; then : 56728 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 56729 fi 56730 56731 fi 56732 56733 # Guillermo Gomez says -lposix is necessary on A/UX. 56734 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 56735 if test "x$ac_cv_func_remove" = xyes; then : 56736 56737 fi 56738 56739 if test $ac_cv_func_remove = no; then 56740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 56741 $as_echo_n "checking for remove in -lposix... " >&6; } 56742 if ${ac_cv_lib_posix_remove+:} false; then : 56743 $as_echo_n "(cached) " >&6 56744 else 56745 ac_check_lib_save_LIBS=$LIBS 56746 LIBS="-lposix $LIBS" 56747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56748 /* end confdefs.h. */ 56749 56750 /* Override any GCC internal prototype to avoid an error. 56751 Use char because int might match the return type of a GCC 56752 builtin and then its argument prototype would still apply. */ 56753 #ifdef __cplusplus 56754 extern "C" 56755 #endif 56756 char remove (); 56757 int 56758 main () 56759 { 56760 return remove (); 56761 ; 56762 return 0; 56763 } 56764 _ACEOF 56765 if ac_fn_cxx_try_link "$LINENO"; then : 56766 ac_cv_lib_posix_remove=yes 56767 else 56768 ac_cv_lib_posix_remove=no 56769 fi 56770 rm -f core conftest.err conftest.$ac_objext \ 56771 conftest$ac_exeext conftest.$ac_ext 56772 LIBS=$ac_check_lib_save_LIBS 56773 fi 56774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 56775 $as_echo "$ac_cv_lib_posix_remove" >&6; } 56776 if test "x$ac_cv_lib_posix_remove" = xyes; then : 56777 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 56778 fi 56779 56780 fi 56781 56782 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 56783 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 56784 if test "x$ac_cv_func_shmat" = xyes; then : 56785 56786 fi 56787 56788 if test $ac_cv_func_shmat = no; then 56789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 56790 $as_echo_n "checking for shmat in -lipc... " >&6; } 56791 if ${ac_cv_lib_ipc_shmat+:} false; then : 56792 $as_echo_n "(cached) " >&6 56793 else 56794 ac_check_lib_save_LIBS=$LIBS 56795 LIBS="-lipc $LIBS" 56796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56797 /* end confdefs.h. */ 56798 56799 /* Override any GCC internal prototype to avoid an error. 56800 Use char because int might match the return type of a GCC 56801 builtin and then its argument prototype would still apply. */ 56802 #ifdef __cplusplus 56803 extern "C" 56804 #endif 56805 char shmat (); 56806 int 56807 main () 56808 { 56809 return shmat (); 56810 ; 56811 return 0; 56812 } 56813 _ACEOF 56814 if ac_fn_cxx_try_link "$LINENO"; then : 56815 ac_cv_lib_ipc_shmat=yes 56816 else 56817 ac_cv_lib_ipc_shmat=no 56818 fi 56819 rm -f core conftest.err conftest.$ac_objext \ 56820 conftest$ac_exeext conftest.$ac_ext 56821 LIBS=$ac_check_lib_save_LIBS 56822 fi 56823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 56824 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 56825 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 56826 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 56827 fi 56828 56829 fi 56830 fi 56831 56832 # Check for libraries that X11R6 Xt/Xaw programs need. 56833 ac_save_LDFLAGS=$LDFLAGS 56834 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 56835 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 56836 # check for ICE first), but we must link in the order -lSM -lICE or 56837 # we get undefined symbols. So assume we have SM if we have ICE. 56838 # These have to be linked with before -lX11, unlike the other 56839 # libraries we check for below, so use a different variable. 56840 # John Interrante, Karl Berry 56841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 56842 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 56843 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 56844 $as_echo_n "(cached) " >&6 56845 else 56846 ac_check_lib_save_LIBS=$LIBS 56847 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 56848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56849 /* end confdefs.h. */ 56850 56851 /* Override any GCC internal prototype to avoid an error. 56852 Use char because int might match the return type of a GCC 56853 builtin and then its argument prototype would still apply. */ 56854 #ifdef __cplusplus 56855 extern "C" 56856 #endif 56857 char IceConnectionNumber (); 56858 int 56859 main () 56860 { 56861 return IceConnectionNumber (); 56862 ; 56863 return 0; 56864 } 56865 _ACEOF 56866 if ac_fn_cxx_try_link "$LINENO"; then : 56867 ac_cv_lib_ICE_IceConnectionNumber=yes 56868 else 56869 ac_cv_lib_ICE_IceConnectionNumber=no 56870 fi 56871 rm -f core conftest.err conftest.$ac_objext \ 56872 conftest$ac_exeext conftest.$ac_ext 56873 LIBS=$ac_check_lib_save_LIBS 56874 fi 56875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 56876 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 56877 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 56878 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 56879 fi 56880 56881 LDFLAGS=$ac_save_LDFLAGS 56882 56883 fi 56884 56885 56886 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 56887 # this doesn't make sense so we remove it. 56888 if test "x$COMPILE_TYPE" = xcross; then 56889 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 56890 fi 56891 56892 if test "x$no_x" = xyes; then 56893 56894 # Print a helpful message on how to acquire the necessary build dependency. 56895 # x11 is the help tag: freetype, cups, alsa etc 56896 MISSING_DEPENDENCY=x11 56897 56898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56899 cygwin_help $MISSING_DEPENDENCY 56900 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56901 msys_help $MISSING_DEPENDENCY 56902 else 56903 PKGHANDLER_COMMAND= 56904 56905 case $PKGHANDLER in 56906 apt-get) 56907 apt_help $MISSING_DEPENDENCY ;; 56908 yum) 56909 yum_help $MISSING_DEPENDENCY ;; 56910 port) 56911 port_help $MISSING_DEPENDENCY ;; 56912 pkgutil) 56913 pkgutil_help $MISSING_DEPENDENCY ;; 56914 pkgadd) 56915 pkgadd_help $MISSING_DEPENDENCY ;; 56916 esac 56917 56918 if test "x$PKGHANDLER_COMMAND" != x; then 56919 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56920 fi 56921 fi 56922 56923 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 56924 fi 56925 56926 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 56927 OPENWIN_HOME="/usr/openwin" 56928 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 56929 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 56930 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 56931 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 56932 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 56933 fi 56934 56935 ac_ext=c 56936 ac_cpp='$CPP $CPPFLAGS' 56937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56939 ac_compiler_gnu=$ac_cv_c_compiler_gnu 56940 56941 OLD_CFLAGS="$CFLAGS" 56942 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 56943 56944 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 56945 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 56946 do : 56947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56948 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 56949 # include <X11/Xlib.h> 56950 # include <X11/Xutil.h> 56951 56952 56953 " 56954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56955 cat >>confdefs.h <<_ACEOF 56956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56957 _ACEOF 56958 X11_HEADERS_OK=yes 56959 else 56960 X11_HEADERS_OK=no; break 56961 fi 56962 56963 done 56964 56965 56966 if test "x$X11_HEADERS_OK" = xno; then 56967 56968 # Print a helpful message on how to acquire the necessary build dependency. 56969 # x11 is the help tag: freetype, cups, alsa etc 56970 MISSING_DEPENDENCY=x11 56971 56972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56973 cygwin_help $MISSING_DEPENDENCY 56974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56975 msys_help $MISSING_DEPENDENCY 56976 else 56977 PKGHANDLER_COMMAND= 56978 56979 case $PKGHANDLER in 56980 apt-get) 56981 apt_help $MISSING_DEPENDENCY ;; 56982 yum) 56983 yum_help $MISSING_DEPENDENCY ;; 56984 port) 56985 port_help $MISSING_DEPENDENCY ;; 56986 pkgutil) 56987 pkgutil_help $MISSING_DEPENDENCY ;; 56988 pkgadd) 56989 pkgadd_help $MISSING_DEPENDENCY ;; 56990 esac 56991 56992 if test "x$PKGHANDLER_COMMAND" != x; then 56993 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56994 fi 56995 fi 56996 56997 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 56998 fi 56999 57000 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 57001 # defined in libawt_xawt. 57002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 57003 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 57004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57005 /* end confdefs.h. */ 57006 #include <X11/extensions/Xrender.h> 57007 int 57008 main () 57009 { 57010 XLinearGradient x; 57011 ; 57012 return 0; 57013 } 57014 _ACEOF 57015 if ac_fn_c_try_compile "$LINENO"; then : 57016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57017 $as_echo "yes" >&6; } 57018 else 57019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57020 $as_echo "no" >&6; } 57021 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 57022 fi 57023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57024 57025 CFLAGS="$OLD_CFLAGS" 57026 ac_ext=cpp 57027 ac_cpp='$CXXCPP $CPPFLAGS' 57028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 57029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 57030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 57031 57032 fi # NEEDS_LIB_X11 57033 57034 57035 57036 57037 57038 57039 # Check whether --with-cups was given. 57040 if test "${with_cups+set}" = set; then : 57041 withval=$with_cups; 57042 fi 57043 57044 57045 # Check whether --with-cups-include was given. 57046 if test "${with_cups_include+set}" = set; then : 57047 withval=$with_cups_include; 57048 fi 57049 57050 57051 if test "x$NEEDS_LIB_CUPS" = xfalse; then 57052 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 57053 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 57054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 57055 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 57056 fi 57057 CUPS_CFLAGS= 57058 else 57059 CUPS_FOUND=no 57060 57061 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 57062 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 57063 fi 57064 57065 if test "x${with_cups}" != x; then 57066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 57067 $as_echo_n "checking for cups headers... " >&6; } 57068 if test -s "${with_cups}/include/cups/cups.h"; then 57069 CUPS_CFLAGS="-I${with_cups}/include" 57070 CUPS_FOUND=yes 57071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 57072 $as_echo "$CUPS_FOUND" >&6; } 57073 else 57074 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 57075 fi 57076 fi 57077 if test "x${with_cups_include}" != x; then 57078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 57079 $as_echo_n "checking for cups headers... " >&6; } 57080 if test -s "${with_cups_include}/cups/cups.h"; then 57081 CUPS_CFLAGS="-I${with_cups_include}" 57082 CUPS_FOUND=yes 57083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 57084 $as_echo "$CUPS_FOUND" >&6; } 57085 else 57086 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 57087 fi 57088 fi 57089 if test "x$CUPS_FOUND" = xno; then 57090 # Are the cups headers installed in the default /usr/include location? 57091 for ac_header in cups/cups.h cups/ppd.h 57092 do : 57093 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 57094 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 57095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 57096 cat >>confdefs.h <<_ACEOF 57097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 57098 _ACEOF 57099 57100 CUPS_FOUND=yes 57101 CUPS_CFLAGS= 57102 DEFAULT_CUPS=yes 57103 57104 fi 57105 57106 done 57107 57108 fi 57109 if test "x$CUPS_FOUND" = xno; then 57110 # Getting nervous now? Lets poke around for standard Solaris third-party 57111 # package installation locations. 57112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 57113 $as_echo_n "checking for cups headers... " >&6; } 57114 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 57115 # An SFW package seems to be installed! 57116 CUPS_FOUND=yes 57117 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 57118 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 57119 # A CSW package seems to be installed! 57120 CUPS_FOUND=yes 57121 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 57122 fi 57123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 57124 $as_echo "$CUPS_FOUND" >&6; } 57125 fi 57126 if test "x$CUPS_FOUND" = xno; then 57127 57128 # Print a helpful message on how to acquire the necessary build dependency. 57129 # cups is the help tag: freetype, cups, alsa etc 57130 MISSING_DEPENDENCY=cups 57131 57132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57133 cygwin_help $MISSING_DEPENDENCY 57134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57135 msys_help $MISSING_DEPENDENCY 57136 else 57137 PKGHANDLER_COMMAND= 57138 57139 case $PKGHANDLER in 57140 apt-get) 57141 apt_help $MISSING_DEPENDENCY ;; 57142 yum) 57143 yum_help $MISSING_DEPENDENCY ;; 57144 port) 57145 port_help $MISSING_DEPENDENCY ;; 57146 pkgutil) 57147 pkgutil_help $MISSING_DEPENDENCY ;; 57148 pkgadd) 57149 pkgadd_help $MISSING_DEPENDENCY ;; 57150 esac 57151 57152 if test "x$PKGHANDLER_COMMAND" != x; then 57153 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57154 fi 57155 fi 57156 57157 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 57158 fi 57159 fi 57160 57161 57162 57163 57164 57165 # Check whether --with-freetype was given. 57166 if test "${with_freetype+set}" = set; then : 57167 withval=$with_freetype; 57168 fi 57169 57170 57171 # Check whether --with-freetype-include was given. 57172 if test "${with_freetype_include+set}" = set; then : 57173 withval=$with_freetype_include; 57174 fi 57175 57176 57177 # Check whether --with-freetype-lib was given. 57178 if test "${with_freetype_lib+set}" = set; then : 57179 withval=$with_freetype_lib; 57180 fi 57181 57182 57183 # Check whether --with-freetype-src was given. 57184 if test "${with_freetype_src+set}" = set; then : 57185 withval=$with_freetype_src; 57186 fi 57187 57188 # Check whether --enable-freetype-bundling was given. 57189 if test "${enable_freetype_bundling+set}" = set; then : 57190 enableval=$enable_freetype_bundling; 57191 fi 57192 57193 57194 # Need to specify explicitly since it needs to be overridden on some versions of macosx 57195 FREETYPE_BASE_NAME=freetype 57196 FREETYPE_CFLAGS= 57197 FREETYPE_LIBS= 57198 FREETYPE_BUNDLE_LIB_PATH= 57199 57200 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 57201 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 57202 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 57203 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 57204 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 57205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 57206 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 57207 fi 57208 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 57209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 57210 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 57211 fi 57212 else 57213 # freetype is needed to build; go get it! 57214 57215 BUNDLE_FREETYPE="$enable_freetype_bundling" 57216 57217 if test "x$with_freetype_src" != x; then 57218 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57219 # Try to build freetype if --with-freetype-src was given on Windows 57220 57221 FREETYPE_SRC_PATH="$with_freetype_src" 57222 BUILD_FREETYPE=yes 57223 57224 # Check if the freetype sources are acessible.. 57225 if ! test -d $FREETYPE_SRC_PATH; then 57226 { $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 57227 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 57228 BUILD_FREETYPE=no 57229 fi 57230 # ..and contain a vc2010 project file 57231 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 57232 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 57233 { $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 57234 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 57235 BUILD_FREETYPE=no 57236 fi 57237 # Now check if configure found a version of 'msbuild.exe' 57238 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 57239 { $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 57240 $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;} 57241 BUILD_FREETYPE=no 57242 fi 57243 57244 # Ready to go.. 57245 if test "x$BUILD_FREETYPE" = xyes; then 57246 # msbuild requires trailing slashes for output directories 57247 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 57248 freetype_lib_path_unix="$freetype_lib_path" 57249 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 57250 57251 unix_path="$vcxproj_path" 57252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57253 windows_path=`$CYGPATH -m "$unix_path"` 57254 vcxproj_path="$windows_path" 57255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57256 windows_path=`cmd //c echo $unix_path` 57257 vcxproj_path="$windows_path" 57258 fi 57259 57260 57261 unix_path="$freetype_lib_path" 57262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57263 windows_path=`$CYGPATH -m "$unix_path"` 57264 freetype_lib_path="$windows_path" 57265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57266 windows_path=`cmd //c echo $unix_path` 57267 freetype_lib_path="$windows_path" 57268 fi 57269 57270 57271 unix_path="$freetype_obj_path" 57272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57273 windows_path=`$CYGPATH -m "$unix_path"` 57274 freetype_obj_path="$windows_path" 57275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57276 windows_path=`cmd //c echo $unix_path` 57277 freetype_obj_path="$windows_path" 57278 fi 57279 57280 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57281 freetype_platform=x64 57282 else 57283 freetype_platform=win32 57284 fi 57285 57286 # The original freetype project file is for VS 2010 (i.e. 'v100'), 57287 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 57288 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 57289 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 57290 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 57291 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 57292 57293 # First we try to build the freetype.dll 57294 $ECHO -e "@echo off\n"\ 57295 "$MSBUILD $vcxproj_path "\ 57296 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 57297 "/p:Configuration=\"Release Multithreaded\" "\ 57298 "/p:Platform=$freetype_platform "\ 57299 "/p:ConfigurationType=DynamicLibrary "\ 57300 "/p:TargetName=freetype "\ 57301 "/p:OutDir=\"$freetype_lib_path\" "\ 57302 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 57303 cmd /c freetype.bat 57304 57305 if test -s "$freetype_lib_path_unix/freetype.dll"; then 57306 # If that succeeds we also build freetype.lib 57307 $ECHO -e "@echo off\n"\ 57308 "$MSBUILD $vcxproj_path "\ 57309 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 57310 "/p:Configuration=\"Release Multithreaded\" "\ 57311 "/p:Platform=$freetype_platform "\ 57312 "/p:ConfigurationType=StaticLibrary "\ 57313 "/p:TargetName=freetype "\ 57314 "/p:OutDir=\"$freetype_lib_path\" "\ 57315 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 57316 cmd /c freetype.bat 57317 57318 if test -s "$freetype_lib_path_unix/freetype.lib"; then 57319 # Once we build both, lib and dll, set freetype lib and include path appropriately 57320 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 57321 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 57322 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 57323 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 57324 else 57325 BUILD_FREETYPE=no 57326 fi 57327 else 57328 BUILD_FREETYPE=no 57329 fi 57330 fi 57331 57332 if test "x$BUILD_FREETYPE" = xyes; then 57333 # Okay, we built it. Check that it works. 57334 57335 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57336 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57337 METHOD="--with-freetype-src" 57338 57339 # Let's start with an optimistic view of the world :-) 57340 FOUND_FREETYPE=yes 57341 57342 # First look for the canonical freetype main include file ft2build.h. 57343 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57344 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57345 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57346 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57347 # Fail. 57348 FOUND_FREETYPE=no 57349 fi 57350 fi 57351 57352 if test "x$FOUND_FREETYPE" = xyes; then 57353 # Include file found, let's continue the sanity check. 57354 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57355 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57356 57357 # Reset to default value 57358 FREETYPE_BASE_NAME=freetype 57359 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57360 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57361 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 57362 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57363 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57364 # for the .6 version explicitly. 57365 FREETYPE_BASE_NAME=freetype.6 57366 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57367 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57368 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57369 else 57370 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57371 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57372 FOUND_FREETYPE=no 57373 fi 57374 else 57375 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57376 # On Windows, we will need both .lib and .dll file. 57377 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57378 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57379 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57380 FOUND_FREETYPE=no 57381 fi 57382 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57383 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57384 # Found lib in isa dir, use that instead. 57385 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57386 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57387 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57388 fi 57389 fi 57390 fi 57391 57392 if test "x$FOUND_FREETYPE" = xyes; then 57393 57394 # Only process if variable expands to non-empty 57395 57396 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57398 57399 # Input might be given as Windows format, start by converting to 57400 # unix format. 57401 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57402 new_path=`$CYGPATH -u "$path"` 57403 57404 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57405 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57406 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57407 # "foo.exe" is OK but "foo" is an error. 57408 # 57409 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57410 # It is also a way to make sure we got the proper file name for the real test later on. 57411 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57412 if test "x$test_shortpath" = x; then 57413 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57414 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57415 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57416 fi 57417 57418 # Call helper function which possibly converts this using DOS-style short mode. 57419 # If so, the updated path is stored in $new_path. 57420 57421 input_path="$new_path" 57422 # Check if we need to convert this using DOS-style short mode. If the path 57423 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57424 # take no chances and rewrite it. 57425 # Note: m4 eats our [], so we need to use [ and ] instead. 57426 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57427 if test "x$has_forbidden_chars" != x; then 57428 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57429 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57430 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57431 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57432 # Going to short mode and back again did indeed matter. Since short mode is 57433 # case insensitive, let's make it lowercase to improve readability. 57434 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57435 # Now convert it back to Unix-style (cygpath) 57436 input_path=`$CYGPATH -u "$shortmode_path"` 57437 new_path="$input_path" 57438 fi 57439 fi 57440 57441 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57442 if test "x$test_cygdrive_prefix" = x; then 57443 # As a simple fix, exclude /usr/bin since it's not a real path. 57444 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57445 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57446 # a path prefixed by /cygdrive for fixpath to work. 57447 new_path="$CYGWIN_ROOT_PATH$input_path" 57448 fi 57449 fi 57450 57451 57452 if test "x$path" != "x$new_path"; then 57453 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57454 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57455 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57456 fi 57457 57458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57459 57460 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57461 has_colon=`$ECHO $path | $GREP ^.:` 57462 new_path="$path" 57463 if test "x$has_colon" = x; then 57464 # Not in mixed or Windows style, start by that. 57465 new_path=`cmd //c echo $path` 57466 fi 57467 57468 57469 input_path="$new_path" 57470 # Check if we need to convert this using DOS-style short mode. If the path 57471 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57472 # take no chances and rewrite it. 57473 # Note: m4 eats our [], so we need to use [ and ] instead. 57474 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57475 if test "x$has_forbidden_chars" != x; then 57476 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57477 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57478 fi 57479 57480 57481 windows_path="$new_path" 57482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57483 unix_path=`$CYGPATH -u "$windows_path"` 57484 new_path="$unix_path" 57485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57486 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57487 new_path="$unix_path" 57488 fi 57489 57490 if test "x$path" != "x$new_path"; then 57491 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57492 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57493 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57494 fi 57495 57496 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57497 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57498 57499 else 57500 # We're on a unix platform. Hooray! :) 57501 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57502 has_space=`$ECHO "$path" | $GREP " "` 57503 if test "x$has_space" != x; then 57504 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57505 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57506 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57507 fi 57508 57509 # Use eval to expand a potential ~ 57510 eval path="$path" 57511 if test ! -f "$path" && test ! -d "$path"; then 57512 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57513 fi 57514 57515 if test -d "$path"; then 57516 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57517 else 57518 dir="`$DIRNAME "$path"`" 57519 base="`$BASENAME "$path"`" 57520 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57521 fi 57522 fi 57523 fi 57524 57525 57526 # Only process if variable expands to non-empty 57527 57528 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57530 57531 # Input might be given as Windows format, start by converting to 57532 # unix format. 57533 path="$POTENTIAL_FREETYPE_LIB_PATH" 57534 new_path=`$CYGPATH -u "$path"` 57535 57536 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57537 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57538 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57539 # "foo.exe" is OK but "foo" is an error. 57540 # 57541 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57542 # It is also a way to make sure we got the proper file name for the real test later on. 57543 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57544 if test "x$test_shortpath" = x; then 57545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57546 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57547 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57548 fi 57549 57550 # Call helper function which possibly converts this using DOS-style short mode. 57551 # If so, the updated path is stored in $new_path. 57552 57553 input_path="$new_path" 57554 # Check if we need to convert this using DOS-style short mode. If the path 57555 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57556 # take no chances and rewrite it. 57557 # Note: m4 eats our [], so we need to use [ and ] instead. 57558 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57559 if test "x$has_forbidden_chars" != x; then 57560 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57561 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57562 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57563 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57564 # Going to short mode and back again did indeed matter. Since short mode is 57565 # case insensitive, let's make it lowercase to improve readability. 57566 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57567 # Now convert it back to Unix-style (cygpath) 57568 input_path=`$CYGPATH -u "$shortmode_path"` 57569 new_path="$input_path" 57570 fi 57571 fi 57572 57573 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57574 if test "x$test_cygdrive_prefix" = x; then 57575 # As a simple fix, exclude /usr/bin since it's not a real path. 57576 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57577 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57578 # a path prefixed by /cygdrive for fixpath to work. 57579 new_path="$CYGWIN_ROOT_PATH$input_path" 57580 fi 57581 fi 57582 57583 57584 if test "x$path" != "x$new_path"; then 57585 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57586 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57587 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57588 fi 57589 57590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57591 57592 path="$POTENTIAL_FREETYPE_LIB_PATH" 57593 has_colon=`$ECHO $path | $GREP ^.:` 57594 new_path="$path" 57595 if test "x$has_colon" = x; then 57596 # Not in mixed or Windows style, start by that. 57597 new_path=`cmd //c echo $path` 57598 fi 57599 57600 57601 input_path="$new_path" 57602 # Check if we need to convert this using DOS-style short mode. If the path 57603 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57604 # take no chances and rewrite it. 57605 # Note: m4 eats our [], so we need to use [ and ] instead. 57606 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57607 if test "x$has_forbidden_chars" != x; then 57608 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57609 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57610 fi 57611 57612 57613 windows_path="$new_path" 57614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57615 unix_path=`$CYGPATH -u "$windows_path"` 57616 new_path="$unix_path" 57617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57618 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57619 new_path="$unix_path" 57620 fi 57621 57622 if test "x$path" != "x$new_path"; then 57623 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57625 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57626 fi 57627 57628 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57629 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57630 57631 else 57632 # We're on a unix platform. Hooray! :) 57633 path="$POTENTIAL_FREETYPE_LIB_PATH" 57634 has_space=`$ECHO "$path" | $GREP " "` 57635 if test "x$has_space" != x; then 57636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57637 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57638 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57639 fi 57640 57641 # Use eval to expand a potential ~ 57642 eval path="$path" 57643 if test ! -f "$path" && test ! -d "$path"; then 57644 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57645 fi 57646 57647 if test -d "$path"; then 57648 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57649 else 57650 dir="`$DIRNAME "$path"`" 57651 base="`$BASENAME "$path"`" 57652 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57653 fi 57654 fi 57655 fi 57656 57657 57658 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57660 $as_echo_n "checking for freetype includes... " >&6; } 57661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57662 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57663 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57665 $as_echo_n "checking for freetype libraries... " >&6; } 57666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57667 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57668 fi 57669 57670 if test "x$FOUND_FREETYPE" != xyes; then 57671 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 57672 fi 57673 else 57674 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 57675 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 57676 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 57677 fi 57678 else 57679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 57680 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 57681 fi 57682 fi 57683 57684 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 57685 # User has specified settings 57686 57687 if test "x$BUNDLE_FREETYPE" = x; then 57688 # If not specified, default is to bundle freetype 57689 BUNDLE_FREETYPE=yes 57690 fi 57691 57692 if test "x$with_freetype" != x; then 57693 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 57694 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 57695 fi 57696 57697 # Allow --with-freetype-lib and --with-freetype-include to override 57698 if test "x$with_freetype_include" != x; then 57699 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 57700 fi 57701 if test "x$with_freetype_lib" != x; then 57702 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 57703 fi 57704 57705 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57706 # Okay, we got it. Check that it works. 57707 57708 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57709 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57710 METHOD="--with-freetype" 57711 57712 # Let's start with an optimistic view of the world :-) 57713 FOUND_FREETYPE=yes 57714 57715 # First look for the canonical freetype main include file ft2build.h. 57716 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57717 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57718 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57719 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57720 # Fail. 57721 FOUND_FREETYPE=no 57722 fi 57723 fi 57724 57725 if test "x$FOUND_FREETYPE" = xyes; then 57726 # Include file found, let's continue the sanity check. 57727 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57728 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57729 57730 # Reset to default value 57731 FREETYPE_BASE_NAME=freetype 57732 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57733 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57734 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 57735 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57736 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57737 # for the .6 version explicitly. 57738 FREETYPE_BASE_NAME=freetype.6 57739 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57740 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57741 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57742 else 57743 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57744 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57745 FOUND_FREETYPE=no 57746 fi 57747 else 57748 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57749 # On Windows, we will need both .lib and .dll file. 57750 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57751 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57752 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57753 FOUND_FREETYPE=no 57754 fi 57755 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57756 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57757 # Found lib in isa dir, use that instead. 57758 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57759 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57760 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57761 fi 57762 fi 57763 fi 57764 57765 if test "x$FOUND_FREETYPE" = xyes; then 57766 57767 # Only process if variable expands to non-empty 57768 57769 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57771 57772 # Input might be given as Windows format, start by converting to 57773 # unix format. 57774 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57775 new_path=`$CYGPATH -u "$path"` 57776 57777 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57778 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57779 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57780 # "foo.exe" is OK but "foo" is an error. 57781 # 57782 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57783 # It is also a way to make sure we got the proper file name for the real test later on. 57784 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57785 if test "x$test_shortpath" = x; then 57786 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57787 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57788 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57789 fi 57790 57791 # Call helper function which possibly converts this using DOS-style short mode. 57792 # If so, the updated path is stored in $new_path. 57793 57794 input_path="$new_path" 57795 # Check if we need to convert this using DOS-style short mode. If the path 57796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57797 # take no chances and rewrite it. 57798 # Note: m4 eats our [], so we need to use [ and ] instead. 57799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57800 if test "x$has_forbidden_chars" != x; then 57801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57802 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57803 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57804 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57805 # Going to short mode and back again did indeed matter. Since short mode is 57806 # case insensitive, let's make it lowercase to improve readability. 57807 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57808 # Now convert it back to Unix-style (cygpath) 57809 input_path=`$CYGPATH -u "$shortmode_path"` 57810 new_path="$input_path" 57811 fi 57812 fi 57813 57814 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57815 if test "x$test_cygdrive_prefix" = x; then 57816 # As a simple fix, exclude /usr/bin since it's not a real path. 57817 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57818 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57819 # a path prefixed by /cygdrive for fixpath to work. 57820 new_path="$CYGWIN_ROOT_PATH$input_path" 57821 fi 57822 fi 57823 57824 57825 if test "x$path" != "x$new_path"; then 57826 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57827 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57828 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57829 fi 57830 57831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57832 57833 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57834 has_colon=`$ECHO $path | $GREP ^.:` 57835 new_path="$path" 57836 if test "x$has_colon" = x; then 57837 # Not in mixed or Windows style, start by that. 57838 new_path=`cmd //c echo $path` 57839 fi 57840 57841 57842 input_path="$new_path" 57843 # Check if we need to convert this using DOS-style short mode. If the path 57844 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57845 # take no chances and rewrite it. 57846 # Note: m4 eats our [], so we need to use [ and ] instead. 57847 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57848 if test "x$has_forbidden_chars" != x; then 57849 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57850 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57851 fi 57852 57853 57854 windows_path="$new_path" 57855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57856 unix_path=`$CYGPATH -u "$windows_path"` 57857 new_path="$unix_path" 57858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57859 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57860 new_path="$unix_path" 57861 fi 57862 57863 if test "x$path" != "x$new_path"; then 57864 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57865 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57866 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57867 fi 57868 57869 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57870 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57871 57872 else 57873 # We're on a unix platform. Hooray! :) 57874 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57875 has_space=`$ECHO "$path" | $GREP " "` 57876 if test "x$has_space" != x; then 57877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57878 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57879 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57880 fi 57881 57882 # Use eval to expand a potential ~ 57883 eval path="$path" 57884 if test ! -f "$path" && test ! -d "$path"; then 57885 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57886 fi 57887 57888 if test -d "$path"; then 57889 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57890 else 57891 dir="`$DIRNAME "$path"`" 57892 base="`$BASENAME "$path"`" 57893 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57894 fi 57895 fi 57896 fi 57897 57898 57899 # Only process if variable expands to non-empty 57900 57901 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57903 57904 # Input might be given as Windows format, start by converting to 57905 # unix format. 57906 path="$POTENTIAL_FREETYPE_LIB_PATH" 57907 new_path=`$CYGPATH -u "$path"` 57908 57909 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57910 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57911 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57912 # "foo.exe" is OK but "foo" is an error. 57913 # 57914 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57915 # It is also a way to make sure we got the proper file name for the real test later on. 57916 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57917 if test "x$test_shortpath" = x; then 57918 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57919 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57920 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57921 fi 57922 57923 # Call helper function which possibly converts this using DOS-style short mode. 57924 # If so, the updated path is stored in $new_path. 57925 57926 input_path="$new_path" 57927 # Check if we need to convert this using DOS-style short mode. If the path 57928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57929 # take no chances and rewrite it. 57930 # Note: m4 eats our [], so we need to use [ and ] instead. 57931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57932 if test "x$has_forbidden_chars" != x; then 57933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57934 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57935 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57936 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57937 # Going to short mode and back again did indeed matter. Since short mode is 57938 # case insensitive, let's make it lowercase to improve readability. 57939 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57940 # Now convert it back to Unix-style (cygpath) 57941 input_path=`$CYGPATH -u "$shortmode_path"` 57942 new_path="$input_path" 57943 fi 57944 fi 57945 57946 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57947 if test "x$test_cygdrive_prefix" = x; then 57948 # As a simple fix, exclude /usr/bin since it's not a real path. 57949 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57950 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57951 # a path prefixed by /cygdrive for fixpath to work. 57952 new_path="$CYGWIN_ROOT_PATH$input_path" 57953 fi 57954 fi 57955 57956 57957 if test "x$path" != "x$new_path"; then 57958 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57959 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57960 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57961 fi 57962 57963 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57964 57965 path="$POTENTIAL_FREETYPE_LIB_PATH" 57966 has_colon=`$ECHO $path | $GREP ^.:` 57967 new_path="$path" 57968 if test "x$has_colon" = x; then 57969 # Not in mixed or Windows style, start by that. 57970 new_path=`cmd //c echo $path` 57971 fi 57972 57973 57974 input_path="$new_path" 57975 # Check if we need to convert this using DOS-style short mode. If the path 57976 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57977 # take no chances and rewrite it. 57978 # Note: m4 eats our [], so we need to use [ and ] instead. 57979 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57980 if test "x$has_forbidden_chars" != x; then 57981 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57982 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57983 fi 57984 57985 57986 windows_path="$new_path" 57987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57988 unix_path=`$CYGPATH -u "$windows_path"` 57989 new_path="$unix_path" 57990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57991 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57992 new_path="$unix_path" 57993 fi 57994 57995 if test "x$path" != "x$new_path"; then 57996 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57998 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57999 fi 58000 58001 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58002 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58003 58004 else 58005 # We're on a unix platform. Hooray! :) 58006 path="$POTENTIAL_FREETYPE_LIB_PATH" 58007 has_space=`$ECHO "$path" | $GREP " "` 58008 if test "x$has_space" != x; then 58009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58010 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58011 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58012 fi 58013 58014 # Use eval to expand a potential ~ 58015 eval path="$path" 58016 if test ! -f "$path" && test ! -d "$path"; then 58017 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58018 fi 58019 58020 if test -d "$path"; then 58021 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58022 else 58023 dir="`$DIRNAME "$path"`" 58024 base="`$BASENAME "$path"`" 58025 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58026 fi 58027 fi 58028 fi 58029 58030 58031 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58033 $as_echo_n "checking for freetype includes... " >&6; } 58034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58035 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58036 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58038 $as_echo_n "checking for freetype libraries... " >&6; } 58039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58040 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58041 fi 58042 58043 if test "x$FOUND_FREETYPE" != xyes; then 58044 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 58045 fi 58046 else 58047 # User specified only one of lib or include. This is an error. 58048 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 58049 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 58050 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 58051 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 58052 else 58053 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 58054 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 58055 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 58056 fi 58057 fi 58058 else 58059 # User did not specify settings, but we need freetype. Try to locate it. 58060 58061 if test "x$BUNDLE_FREETYPE" = x; then 58062 # If not specified, default is to bundle freetype only on windows 58063 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58064 BUNDLE_FREETYPE=yes 58065 else 58066 BUNDLE_FREETYPE=no 58067 fi 58068 fi 58069 58070 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 58071 if test "x$SYSROOT" = x; then 58072 if test "x$FOUND_FREETYPE" != xyes; then 58073 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 58074 if test "x$PKG_CONFIG" != x; then 58075 58076 pkg_failed=no 58077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 58078 $as_echo_n "checking for FREETYPE... " >&6; } 58079 58080 if test -n "$FREETYPE_CFLAGS"; then 58081 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 58082 elif test -n "$PKG_CONFIG"; then 58083 if test -n "$PKG_CONFIG" && \ 58084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 58085 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 58086 ac_status=$? 58087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 58088 test $ac_status = 0; }; then 58089 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 58090 else 58091 pkg_failed=yes 58092 fi 58093 else 58094 pkg_failed=untried 58095 fi 58096 if test -n "$FREETYPE_LIBS"; then 58097 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 58098 elif test -n "$PKG_CONFIG"; then 58099 if test -n "$PKG_CONFIG" && \ 58100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 58101 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 58102 ac_status=$? 58103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 58104 test $ac_status = 0; }; then 58105 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 58106 else 58107 pkg_failed=yes 58108 fi 58109 else 58110 pkg_failed=untried 58111 fi 58112 58113 58114 58115 if test $pkg_failed = yes; then 58116 58117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 58118 _pkg_short_errors_supported=yes 58119 else 58120 _pkg_short_errors_supported=no 58121 fi 58122 if test $_pkg_short_errors_supported = yes; then 58123 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 58124 else 58125 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 58126 fi 58127 # Put the nasty error message in config.log where it belongs 58128 echo "$FREETYPE_PKG_ERRORS" >&5 58129 58130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58131 $as_echo "no" >&6; } 58132 FOUND_FREETYPE=no 58133 elif test $pkg_failed = untried; then 58134 FOUND_FREETYPE=no 58135 else 58136 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 58137 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 58138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58139 $as_echo "yes" >&6; } 58140 FOUND_FREETYPE=yes 58141 fi 58142 if test "x$FOUND_FREETYPE" = xyes; then 58143 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 58144 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 58145 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 58146 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 58147 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 58148 fi 58149 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 58150 if test "x$BUNDLE_FREETYPE" = xyes; then 58151 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 58152 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 58153 FOUND_FREETYPE=no 58154 else 58155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 58156 $as_echo_n "checking for freetype... " >&6; } 58157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 58158 $as_echo "yes (using pkg-config)" >&6; } 58159 fi 58160 fi 58161 fi 58162 fi 58163 fi 58164 58165 if test "x$FOUND_FREETYPE" != xyes; then 58166 # Check in well-known locations 58167 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58168 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 58169 58170 windows_path="$FREETYPE_BASE_DIR" 58171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58172 unix_path=`$CYGPATH -u "$windows_path"` 58173 FREETYPE_BASE_DIR="$unix_path" 58174 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58175 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58176 FREETYPE_BASE_DIR="$unix_path" 58177 fi 58178 58179 58180 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58181 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 58182 METHOD="well-known location" 58183 58184 # Let's start with an optimistic view of the world :-) 58185 FOUND_FREETYPE=yes 58186 58187 # First look for the canonical freetype main include file ft2build.h. 58188 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58189 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58190 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58191 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58192 # Fail. 58193 FOUND_FREETYPE=no 58194 fi 58195 fi 58196 58197 if test "x$FOUND_FREETYPE" = xyes; then 58198 # Include file found, let's continue the sanity check. 58199 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58200 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58201 58202 # Reset to default value 58203 FREETYPE_BASE_NAME=freetype 58204 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58205 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58206 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 58207 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58208 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58209 # for the .6 version explicitly. 58210 FREETYPE_BASE_NAME=freetype.6 58211 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58212 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58213 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58214 else 58215 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58216 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58217 FOUND_FREETYPE=no 58218 fi 58219 else 58220 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58221 # On Windows, we will need both .lib and .dll file. 58222 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58223 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58224 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58225 FOUND_FREETYPE=no 58226 fi 58227 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58228 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58229 # Found lib in isa dir, use that instead. 58230 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58231 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58232 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58233 fi 58234 fi 58235 fi 58236 58237 if test "x$FOUND_FREETYPE" = xyes; then 58238 58239 # Only process if variable expands to non-empty 58240 58241 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58243 58244 # Input might be given as Windows format, start by converting to 58245 # unix format. 58246 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58247 new_path=`$CYGPATH -u "$path"` 58248 58249 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58250 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58251 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58252 # "foo.exe" is OK but "foo" is an error. 58253 # 58254 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58255 # It is also a way to make sure we got the proper file name for the real test later on. 58256 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58257 if test "x$test_shortpath" = x; then 58258 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58259 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58260 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58261 fi 58262 58263 # Call helper function which possibly converts this using DOS-style short mode. 58264 # If so, the updated path is stored in $new_path. 58265 58266 input_path="$new_path" 58267 # Check if we need to convert this using DOS-style short mode. If the path 58268 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58269 # take no chances and rewrite it. 58270 # Note: m4 eats our [], so we need to use [ and ] instead. 58271 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58272 if test "x$has_forbidden_chars" != x; then 58273 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58274 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58275 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58276 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58277 # Going to short mode and back again did indeed matter. Since short mode is 58278 # case insensitive, let's make it lowercase to improve readability. 58279 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58280 # Now convert it back to Unix-style (cygpath) 58281 input_path=`$CYGPATH -u "$shortmode_path"` 58282 new_path="$input_path" 58283 fi 58284 fi 58285 58286 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58287 if test "x$test_cygdrive_prefix" = x; then 58288 # As a simple fix, exclude /usr/bin since it's not a real path. 58289 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58290 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58291 # a path prefixed by /cygdrive for fixpath to work. 58292 new_path="$CYGWIN_ROOT_PATH$input_path" 58293 fi 58294 fi 58295 58296 58297 if test "x$path" != "x$new_path"; then 58298 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58299 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58300 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58301 fi 58302 58303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58304 58305 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58306 has_colon=`$ECHO $path | $GREP ^.:` 58307 new_path="$path" 58308 if test "x$has_colon" = x; then 58309 # Not in mixed or Windows style, start by that. 58310 new_path=`cmd //c echo $path` 58311 fi 58312 58313 58314 input_path="$new_path" 58315 # Check if we need to convert this using DOS-style short mode. If the path 58316 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58317 # take no chances and rewrite it. 58318 # Note: m4 eats our [], so we need to use [ and ] instead. 58319 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58320 if test "x$has_forbidden_chars" != x; then 58321 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58322 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58323 fi 58324 58325 58326 windows_path="$new_path" 58327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58328 unix_path=`$CYGPATH -u "$windows_path"` 58329 new_path="$unix_path" 58330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58331 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58332 new_path="$unix_path" 58333 fi 58334 58335 if test "x$path" != "x$new_path"; then 58336 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58337 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58338 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58339 fi 58340 58341 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58342 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58343 58344 else 58345 # We're on a unix platform. Hooray! :) 58346 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58347 has_space=`$ECHO "$path" | $GREP " "` 58348 if test "x$has_space" != x; then 58349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58350 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58351 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58352 fi 58353 58354 # Use eval to expand a potential ~ 58355 eval path="$path" 58356 if test ! -f "$path" && test ! -d "$path"; then 58357 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58358 fi 58359 58360 if test -d "$path"; then 58361 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58362 else 58363 dir="`$DIRNAME "$path"`" 58364 base="`$BASENAME "$path"`" 58365 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58366 fi 58367 fi 58368 fi 58369 58370 58371 # Only process if variable expands to non-empty 58372 58373 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58375 58376 # Input might be given as Windows format, start by converting to 58377 # unix format. 58378 path="$POTENTIAL_FREETYPE_LIB_PATH" 58379 new_path=`$CYGPATH -u "$path"` 58380 58381 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58382 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58383 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58384 # "foo.exe" is OK but "foo" is an error. 58385 # 58386 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58387 # It is also a way to make sure we got the proper file name for the real test later on. 58388 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58389 if test "x$test_shortpath" = x; then 58390 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58391 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58392 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58393 fi 58394 58395 # Call helper function which possibly converts this using DOS-style short mode. 58396 # If so, the updated path is stored in $new_path. 58397 58398 input_path="$new_path" 58399 # Check if we need to convert this using DOS-style short mode. If the path 58400 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58401 # take no chances and rewrite it. 58402 # Note: m4 eats our [], so we need to use [ and ] instead. 58403 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58404 if test "x$has_forbidden_chars" != x; then 58405 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58406 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58407 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58408 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58409 # Going to short mode and back again did indeed matter. Since short mode is 58410 # case insensitive, let's make it lowercase to improve readability. 58411 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58412 # Now convert it back to Unix-style (cygpath) 58413 input_path=`$CYGPATH -u "$shortmode_path"` 58414 new_path="$input_path" 58415 fi 58416 fi 58417 58418 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58419 if test "x$test_cygdrive_prefix" = x; then 58420 # As a simple fix, exclude /usr/bin since it's not a real path. 58421 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58422 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58423 # a path prefixed by /cygdrive for fixpath to work. 58424 new_path="$CYGWIN_ROOT_PATH$input_path" 58425 fi 58426 fi 58427 58428 58429 if test "x$path" != "x$new_path"; then 58430 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58431 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58432 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58433 fi 58434 58435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58436 58437 path="$POTENTIAL_FREETYPE_LIB_PATH" 58438 has_colon=`$ECHO $path | $GREP ^.:` 58439 new_path="$path" 58440 if test "x$has_colon" = x; then 58441 # Not in mixed or Windows style, start by that. 58442 new_path=`cmd //c echo $path` 58443 fi 58444 58445 58446 input_path="$new_path" 58447 # Check if we need to convert this using DOS-style short mode. If the path 58448 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58449 # take no chances and rewrite it. 58450 # Note: m4 eats our [], so we need to use [ and ] instead. 58451 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58452 if test "x$has_forbidden_chars" != x; then 58453 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58454 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58455 fi 58456 58457 58458 windows_path="$new_path" 58459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58460 unix_path=`$CYGPATH -u "$windows_path"` 58461 new_path="$unix_path" 58462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58463 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58464 new_path="$unix_path" 58465 fi 58466 58467 if test "x$path" != "x$new_path"; then 58468 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58470 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58471 fi 58472 58473 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58474 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58475 58476 else 58477 # We're on a unix platform. Hooray! :) 58478 path="$POTENTIAL_FREETYPE_LIB_PATH" 58479 has_space=`$ECHO "$path" | $GREP " "` 58480 if test "x$has_space" != x; then 58481 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58482 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58483 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58484 fi 58485 58486 # Use eval to expand a potential ~ 58487 eval path="$path" 58488 if test ! -f "$path" && test ! -d "$path"; then 58489 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58490 fi 58491 58492 if test -d "$path"; then 58493 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58494 else 58495 dir="`$DIRNAME "$path"`" 58496 base="`$BASENAME "$path"`" 58497 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58498 fi 58499 fi 58500 fi 58501 58502 58503 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58505 $as_echo_n "checking for freetype includes... " >&6; } 58506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58507 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58508 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58510 $as_echo_n "checking for freetype libraries... " >&6; } 58511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58512 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58513 fi 58514 58515 if test "x$FOUND_FREETYPE" != xyes; then 58516 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 58517 58518 windows_path="$FREETYPE_BASE_DIR" 58519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58520 unix_path=`$CYGPATH -u "$windows_path"` 58521 FREETYPE_BASE_DIR="$unix_path" 58522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58523 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58524 FREETYPE_BASE_DIR="$unix_path" 58525 fi 58526 58527 58528 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58529 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 58530 METHOD="well-known location" 58531 58532 # Let's start with an optimistic view of the world :-) 58533 FOUND_FREETYPE=yes 58534 58535 # First look for the canonical freetype main include file ft2build.h. 58536 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58537 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58538 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58539 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58540 # Fail. 58541 FOUND_FREETYPE=no 58542 fi 58543 fi 58544 58545 if test "x$FOUND_FREETYPE" = xyes; then 58546 # Include file found, let's continue the sanity check. 58547 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58548 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58549 58550 # Reset to default value 58551 FREETYPE_BASE_NAME=freetype 58552 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58553 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58554 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 58555 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58556 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58557 # for the .6 version explicitly. 58558 FREETYPE_BASE_NAME=freetype.6 58559 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58560 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58561 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58562 else 58563 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58564 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58565 FOUND_FREETYPE=no 58566 fi 58567 else 58568 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58569 # On Windows, we will need both .lib and .dll file. 58570 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58571 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58572 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58573 FOUND_FREETYPE=no 58574 fi 58575 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58576 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58577 # Found lib in isa dir, use that instead. 58578 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58579 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58580 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58581 fi 58582 fi 58583 fi 58584 58585 if test "x$FOUND_FREETYPE" = xyes; then 58586 58587 # Only process if variable expands to non-empty 58588 58589 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58591 58592 # Input might be given as Windows format, start by converting to 58593 # unix format. 58594 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58595 new_path=`$CYGPATH -u "$path"` 58596 58597 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58598 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58599 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58600 # "foo.exe" is OK but "foo" is an error. 58601 # 58602 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58603 # It is also a way to make sure we got the proper file name for the real test later on. 58604 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58605 if test "x$test_shortpath" = x; then 58606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58607 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58608 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58609 fi 58610 58611 # Call helper function which possibly converts this using DOS-style short mode. 58612 # If so, the updated path is stored in $new_path. 58613 58614 input_path="$new_path" 58615 # Check if we need to convert this using DOS-style short mode. If the path 58616 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58617 # take no chances and rewrite it. 58618 # Note: m4 eats our [], so we need to use [ and ] instead. 58619 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58620 if test "x$has_forbidden_chars" != x; then 58621 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58622 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58623 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58624 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58625 # Going to short mode and back again did indeed matter. Since short mode is 58626 # case insensitive, let's make it lowercase to improve readability. 58627 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58628 # Now convert it back to Unix-style (cygpath) 58629 input_path=`$CYGPATH -u "$shortmode_path"` 58630 new_path="$input_path" 58631 fi 58632 fi 58633 58634 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58635 if test "x$test_cygdrive_prefix" = x; then 58636 # As a simple fix, exclude /usr/bin since it's not a real path. 58637 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58638 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58639 # a path prefixed by /cygdrive for fixpath to work. 58640 new_path="$CYGWIN_ROOT_PATH$input_path" 58641 fi 58642 fi 58643 58644 58645 if test "x$path" != "x$new_path"; then 58646 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58647 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58648 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58649 fi 58650 58651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58652 58653 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58654 has_colon=`$ECHO $path | $GREP ^.:` 58655 new_path="$path" 58656 if test "x$has_colon" = x; then 58657 # Not in mixed or Windows style, start by that. 58658 new_path=`cmd //c echo $path` 58659 fi 58660 58661 58662 input_path="$new_path" 58663 # Check if we need to convert this using DOS-style short mode. If the path 58664 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58665 # take no chances and rewrite it. 58666 # Note: m4 eats our [], so we need to use [ and ] instead. 58667 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58668 if test "x$has_forbidden_chars" != x; then 58669 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58670 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58671 fi 58672 58673 58674 windows_path="$new_path" 58675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58676 unix_path=`$CYGPATH -u "$windows_path"` 58677 new_path="$unix_path" 58678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58680 new_path="$unix_path" 58681 fi 58682 58683 if test "x$path" != "x$new_path"; then 58684 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58685 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58686 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58687 fi 58688 58689 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58690 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58691 58692 else 58693 # We're on a unix platform. Hooray! :) 58694 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58695 has_space=`$ECHO "$path" | $GREP " "` 58696 if test "x$has_space" != x; then 58697 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58698 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58699 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58700 fi 58701 58702 # Use eval to expand a potential ~ 58703 eval path="$path" 58704 if test ! -f "$path" && test ! -d "$path"; then 58705 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58706 fi 58707 58708 if test -d "$path"; then 58709 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58710 else 58711 dir="`$DIRNAME "$path"`" 58712 base="`$BASENAME "$path"`" 58713 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58714 fi 58715 fi 58716 fi 58717 58718 58719 # Only process if variable expands to non-empty 58720 58721 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58723 58724 # Input might be given as Windows format, start by converting to 58725 # unix format. 58726 path="$POTENTIAL_FREETYPE_LIB_PATH" 58727 new_path=`$CYGPATH -u "$path"` 58728 58729 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58730 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58731 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58732 # "foo.exe" is OK but "foo" is an error. 58733 # 58734 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58735 # It is also a way to make sure we got the proper file name for the real test later on. 58736 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58737 if test "x$test_shortpath" = x; then 58738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58739 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58740 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58741 fi 58742 58743 # Call helper function which possibly converts this using DOS-style short mode. 58744 # If so, the updated path is stored in $new_path. 58745 58746 input_path="$new_path" 58747 # Check if we need to convert this using DOS-style short mode. If the path 58748 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58749 # take no chances and rewrite it. 58750 # Note: m4 eats our [], so we need to use [ and ] instead. 58751 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58752 if test "x$has_forbidden_chars" != x; then 58753 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58754 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58755 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58756 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58757 # Going to short mode and back again did indeed matter. Since short mode is 58758 # case insensitive, let's make it lowercase to improve readability. 58759 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58760 # Now convert it back to Unix-style (cygpath) 58761 input_path=`$CYGPATH -u "$shortmode_path"` 58762 new_path="$input_path" 58763 fi 58764 fi 58765 58766 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58767 if test "x$test_cygdrive_prefix" = x; then 58768 # As a simple fix, exclude /usr/bin since it's not a real path. 58769 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58770 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58771 # a path prefixed by /cygdrive for fixpath to work. 58772 new_path="$CYGWIN_ROOT_PATH$input_path" 58773 fi 58774 fi 58775 58776 58777 if test "x$path" != "x$new_path"; then 58778 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58779 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58780 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58781 fi 58782 58783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58784 58785 path="$POTENTIAL_FREETYPE_LIB_PATH" 58786 has_colon=`$ECHO $path | $GREP ^.:` 58787 new_path="$path" 58788 if test "x$has_colon" = x; then 58789 # Not in mixed or Windows style, start by that. 58790 new_path=`cmd //c echo $path` 58791 fi 58792 58793 58794 input_path="$new_path" 58795 # Check if we need to convert this using DOS-style short mode. If the path 58796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58797 # take no chances and rewrite it. 58798 # Note: m4 eats our [], so we need to use [ and ] instead. 58799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58800 if test "x$has_forbidden_chars" != x; then 58801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58802 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58803 fi 58804 58805 58806 windows_path="$new_path" 58807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58808 unix_path=`$CYGPATH -u "$windows_path"` 58809 new_path="$unix_path" 58810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58812 new_path="$unix_path" 58813 fi 58814 58815 if test "x$path" != "x$new_path"; then 58816 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58817 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58818 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58819 fi 58820 58821 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58822 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58823 58824 else 58825 # We're on a unix platform. Hooray! :) 58826 path="$POTENTIAL_FREETYPE_LIB_PATH" 58827 has_space=`$ECHO "$path" | $GREP " "` 58828 if test "x$has_space" != x; then 58829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58830 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58831 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58832 fi 58833 58834 # Use eval to expand a potential ~ 58835 eval path="$path" 58836 if test ! -f "$path" && test ! -d "$path"; then 58837 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58838 fi 58839 58840 if test -d "$path"; then 58841 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58842 else 58843 dir="`$DIRNAME "$path"`" 58844 base="`$BASENAME "$path"`" 58845 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58846 fi 58847 fi 58848 fi 58849 58850 58851 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58853 $as_echo_n "checking for freetype includes... " >&6; } 58854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58855 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58856 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58858 $as_echo_n "checking for freetype libraries... " >&6; } 58859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58860 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58861 fi 58862 58863 fi 58864 if test "x$FOUND_FREETYPE" != xyes; then 58865 FREETYPE_BASE_DIR="$HOME/freetype" 58866 58867 windows_path="$FREETYPE_BASE_DIR" 58868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58869 unix_path=`$CYGPATH -u "$windows_path"` 58870 FREETYPE_BASE_DIR="$unix_path" 58871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58872 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58873 FREETYPE_BASE_DIR="$unix_path" 58874 fi 58875 58876 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58877 58878 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58879 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 58880 METHOD="well-known location" 58881 58882 # Let's start with an optimistic view of the world :-) 58883 FOUND_FREETYPE=yes 58884 58885 # First look for the canonical freetype main include file ft2build.h. 58886 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58887 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58888 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58889 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58890 # Fail. 58891 FOUND_FREETYPE=no 58892 fi 58893 fi 58894 58895 if test "x$FOUND_FREETYPE" = xyes; then 58896 # Include file found, let's continue the sanity check. 58897 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58898 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58899 58900 # Reset to default value 58901 FREETYPE_BASE_NAME=freetype 58902 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58903 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58904 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 58905 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58906 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58907 # for the .6 version explicitly. 58908 FREETYPE_BASE_NAME=freetype.6 58909 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58910 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58911 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58912 else 58913 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58914 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58915 FOUND_FREETYPE=no 58916 fi 58917 else 58918 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58919 # On Windows, we will need both .lib and .dll file. 58920 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58921 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58922 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58923 FOUND_FREETYPE=no 58924 fi 58925 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58926 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58927 # Found lib in isa dir, use that instead. 58928 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58930 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58931 fi 58932 fi 58933 fi 58934 58935 if test "x$FOUND_FREETYPE" = xyes; then 58936 58937 # Only process if variable expands to non-empty 58938 58939 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58941 58942 # Input might be given as Windows format, start by converting to 58943 # unix format. 58944 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58945 new_path=`$CYGPATH -u "$path"` 58946 58947 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58948 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58949 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58950 # "foo.exe" is OK but "foo" is an error. 58951 # 58952 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58953 # It is also a way to make sure we got the proper file name for the real test later on. 58954 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58955 if test "x$test_shortpath" = x; then 58956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58957 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58958 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58959 fi 58960 58961 # Call helper function which possibly converts this using DOS-style short mode. 58962 # If so, the updated path is stored in $new_path. 58963 58964 input_path="$new_path" 58965 # Check if we need to convert this using DOS-style short mode. If the path 58966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58967 # take no chances and rewrite it. 58968 # Note: m4 eats our [], so we need to use [ and ] instead. 58969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58970 if test "x$has_forbidden_chars" != x; then 58971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58972 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58973 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58974 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58975 # Going to short mode and back again did indeed matter. Since short mode is 58976 # case insensitive, let's make it lowercase to improve readability. 58977 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58978 # Now convert it back to Unix-style (cygpath) 58979 input_path=`$CYGPATH -u "$shortmode_path"` 58980 new_path="$input_path" 58981 fi 58982 fi 58983 58984 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58985 if test "x$test_cygdrive_prefix" = x; then 58986 # As a simple fix, exclude /usr/bin since it's not a real path. 58987 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58988 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58989 # a path prefixed by /cygdrive for fixpath to work. 58990 new_path="$CYGWIN_ROOT_PATH$input_path" 58991 fi 58992 fi 58993 58994 58995 if test "x$path" != "x$new_path"; then 58996 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58998 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58999 fi 59000 59001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59002 59003 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59004 has_colon=`$ECHO $path | $GREP ^.:` 59005 new_path="$path" 59006 if test "x$has_colon" = x; then 59007 # Not in mixed or Windows style, start by that. 59008 new_path=`cmd //c echo $path` 59009 fi 59010 59011 59012 input_path="$new_path" 59013 # Check if we need to convert this using DOS-style short mode. If the path 59014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59015 # take no chances and rewrite it. 59016 # Note: m4 eats our [], so we need to use [ and ] instead. 59017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59018 if test "x$has_forbidden_chars" != x; then 59019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59021 fi 59022 59023 59024 windows_path="$new_path" 59025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59026 unix_path=`$CYGPATH -u "$windows_path"` 59027 new_path="$unix_path" 59028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59030 new_path="$unix_path" 59031 fi 59032 59033 if test "x$path" != "x$new_path"; then 59034 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59035 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59036 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59037 fi 59038 59039 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59040 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59041 59042 else 59043 # We're on a unix platform. Hooray! :) 59044 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59045 has_space=`$ECHO "$path" | $GREP " "` 59046 if test "x$has_space" != x; then 59047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59048 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59049 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59050 fi 59051 59052 # Use eval to expand a potential ~ 59053 eval path="$path" 59054 if test ! -f "$path" && test ! -d "$path"; then 59055 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59056 fi 59057 59058 if test -d "$path"; then 59059 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59060 else 59061 dir="`$DIRNAME "$path"`" 59062 base="`$BASENAME "$path"`" 59063 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59064 fi 59065 fi 59066 fi 59067 59068 59069 # Only process if variable expands to non-empty 59070 59071 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59073 59074 # Input might be given as Windows format, start by converting to 59075 # unix format. 59076 path="$POTENTIAL_FREETYPE_LIB_PATH" 59077 new_path=`$CYGPATH -u "$path"` 59078 59079 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59080 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59081 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59082 # "foo.exe" is OK but "foo" is an error. 59083 # 59084 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59085 # It is also a way to make sure we got the proper file name for the real test later on. 59086 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59087 if test "x$test_shortpath" = x; then 59088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59089 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59090 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59091 fi 59092 59093 # Call helper function which possibly converts this using DOS-style short mode. 59094 # If so, the updated path is stored in $new_path. 59095 59096 input_path="$new_path" 59097 # Check if we need to convert this using DOS-style short mode. If the path 59098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59099 # take no chances and rewrite it. 59100 # Note: m4 eats our [], so we need to use [ and ] instead. 59101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59102 if test "x$has_forbidden_chars" != x; then 59103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59107 # Going to short mode and back again did indeed matter. Since short mode is 59108 # case insensitive, let's make it lowercase to improve readability. 59109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59110 # Now convert it back to Unix-style (cygpath) 59111 input_path=`$CYGPATH -u "$shortmode_path"` 59112 new_path="$input_path" 59113 fi 59114 fi 59115 59116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59117 if test "x$test_cygdrive_prefix" = x; then 59118 # As a simple fix, exclude /usr/bin since it's not a real path. 59119 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59121 # a path prefixed by /cygdrive for fixpath to work. 59122 new_path="$CYGWIN_ROOT_PATH$input_path" 59123 fi 59124 fi 59125 59126 59127 if test "x$path" != "x$new_path"; then 59128 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59130 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59131 fi 59132 59133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59134 59135 path="$POTENTIAL_FREETYPE_LIB_PATH" 59136 has_colon=`$ECHO $path | $GREP ^.:` 59137 new_path="$path" 59138 if test "x$has_colon" = x; then 59139 # Not in mixed or Windows style, start by that. 59140 new_path=`cmd //c echo $path` 59141 fi 59142 59143 59144 input_path="$new_path" 59145 # Check if we need to convert this using DOS-style short mode. If the path 59146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59147 # take no chances and rewrite it. 59148 # Note: m4 eats our [], so we need to use [ and ] instead. 59149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59150 if test "x$has_forbidden_chars" != x; then 59151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59152 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59153 fi 59154 59155 59156 windows_path="$new_path" 59157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59158 unix_path=`$CYGPATH -u "$windows_path"` 59159 new_path="$unix_path" 59160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59162 new_path="$unix_path" 59163 fi 59164 59165 if test "x$path" != "x$new_path"; then 59166 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59168 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59169 fi 59170 59171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59173 59174 else 59175 # We're on a unix platform. Hooray! :) 59176 path="$POTENTIAL_FREETYPE_LIB_PATH" 59177 has_space=`$ECHO "$path" | $GREP " "` 59178 if test "x$has_space" != x; then 59179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59180 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59181 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59182 fi 59183 59184 # Use eval to expand a potential ~ 59185 eval path="$path" 59186 if test ! -f "$path" && test ! -d "$path"; then 59187 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59188 fi 59189 59190 if test -d "$path"; then 59191 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59192 else 59193 dir="`$DIRNAME "$path"`" 59194 base="`$BASENAME "$path"`" 59195 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59196 fi 59197 fi 59198 fi 59199 59200 59201 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59203 $as_echo_n "checking for freetype includes... " >&6; } 59204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59205 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59206 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59208 $as_echo_n "checking for freetype libraries... " >&6; } 59209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59210 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59211 fi 59212 59213 else 59214 59215 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59216 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 59217 METHOD="well-known location" 59218 59219 # Let's start with an optimistic view of the world :-) 59220 FOUND_FREETYPE=yes 59221 59222 # First look for the canonical freetype main include file ft2build.h. 59223 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59224 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59225 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59226 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59227 # Fail. 59228 FOUND_FREETYPE=no 59229 fi 59230 fi 59231 59232 if test "x$FOUND_FREETYPE" = xyes; then 59233 # Include file found, let's continue the sanity check. 59234 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59235 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59236 59237 # Reset to default value 59238 FREETYPE_BASE_NAME=freetype 59239 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59240 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59241 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 59242 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59243 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59244 # for the .6 version explicitly. 59245 FREETYPE_BASE_NAME=freetype.6 59246 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59247 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59248 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59249 else 59250 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59251 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59252 FOUND_FREETYPE=no 59253 fi 59254 else 59255 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59256 # On Windows, we will need both .lib and .dll file. 59257 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59258 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59259 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59260 FOUND_FREETYPE=no 59261 fi 59262 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59263 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59264 # Found lib in isa dir, use that instead. 59265 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59266 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59267 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59268 fi 59269 fi 59270 fi 59271 59272 if test "x$FOUND_FREETYPE" = xyes; then 59273 59274 # Only process if variable expands to non-empty 59275 59276 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59278 59279 # Input might be given as Windows format, start by converting to 59280 # unix format. 59281 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59282 new_path=`$CYGPATH -u "$path"` 59283 59284 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59285 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59286 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59287 # "foo.exe" is OK but "foo" is an error. 59288 # 59289 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59290 # It is also a way to make sure we got the proper file name for the real test later on. 59291 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59292 if test "x$test_shortpath" = x; then 59293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59294 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59295 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59296 fi 59297 59298 # Call helper function which possibly converts this using DOS-style short mode. 59299 # If so, the updated path is stored in $new_path. 59300 59301 input_path="$new_path" 59302 # Check if we need to convert this using DOS-style short mode. If the path 59303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59304 # take no chances and rewrite it. 59305 # Note: m4 eats our [], so we need to use [ and ] instead. 59306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59307 if test "x$has_forbidden_chars" != x; then 59308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59309 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59310 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59311 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59312 # Going to short mode and back again did indeed matter. Since short mode is 59313 # case insensitive, let's make it lowercase to improve readability. 59314 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59315 # Now convert it back to Unix-style (cygpath) 59316 input_path=`$CYGPATH -u "$shortmode_path"` 59317 new_path="$input_path" 59318 fi 59319 fi 59320 59321 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59322 if test "x$test_cygdrive_prefix" = x; then 59323 # As a simple fix, exclude /usr/bin since it's not a real path. 59324 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59325 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59326 # a path prefixed by /cygdrive for fixpath to work. 59327 new_path="$CYGWIN_ROOT_PATH$input_path" 59328 fi 59329 fi 59330 59331 59332 if test "x$path" != "x$new_path"; then 59333 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59334 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59335 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59336 fi 59337 59338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59339 59340 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59341 has_colon=`$ECHO $path | $GREP ^.:` 59342 new_path="$path" 59343 if test "x$has_colon" = x; then 59344 # Not in mixed or Windows style, start by that. 59345 new_path=`cmd //c echo $path` 59346 fi 59347 59348 59349 input_path="$new_path" 59350 # Check if we need to convert this using DOS-style short mode. If the path 59351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59352 # take no chances and rewrite it. 59353 # Note: m4 eats our [], so we need to use [ and ] instead. 59354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59355 if test "x$has_forbidden_chars" != x; then 59356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59357 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59358 fi 59359 59360 59361 windows_path="$new_path" 59362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59363 unix_path=`$CYGPATH -u "$windows_path"` 59364 new_path="$unix_path" 59365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59367 new_path="$unix_path" 59368 fi 59369 59370 if test "x$path" != "x$new_path"; then 59371 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59372 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59373 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59374 fi 59375 59376 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59377 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59378 59379 else 59380 # We're on a unix platform. Hooray! :) 59381 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59382 has_space=`$ECHO "$path" | $GREP " "` 59383 if test "x$has_space" != x; then 59384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59385 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59386 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59387 fi 59388 59389 # Use eval to expand a potential ~ 59390 eval path="$path" 59391 if test ! -f "$path" && test ! -d "$path"; then 59392 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59393 fi 59394 59395 if test -d "$path"; then 59396 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59397 else 59398 dir="`$DIRNAME "$path"`" 59399 base="`$BASENAME "$path"`" 59400 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59401 fi 59402 fi 59403 fi 59404 59405 59406 # Only process if variable expands to non-empty 59407 59408 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59410 59411 # Input might be given as Windows format, start by converting to 59412 # unix format. 59413 path="$POTENTIAL_FREETYPE_LIB_PATH" 59414 new_path=`$CYGPATH -u "$path"` 59415 59416 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59417 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59418 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59419 # "foo.exe" is OK but "foo" is an error. 59420 # 59421 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59422 # It is also a way to make sure we got the proper file name for the real test later on. 59423 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59424 if test "x$test_shortpath" = x; then 59425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59426 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59427 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59428 fi 59429 59430 # Call helper function which possibly converts this using DOS-style short mode. 59431 # If so, the updated path is stored in $new_path. 59432 59433 input_path="$new_path" 59434 # Check if we need to convert this using DOS-style short mode. If the path 59435 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59436 # take no chances and rewrite it. 59437 # Note: m4 eats our [], so we need to use [ and ] instead. 59438 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59439 if test "x$has_forbidden_chars" != x; then 59440 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59441 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59442 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59443 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59444 # Going to short mode and back again did indeed matter. Since short mode is 59445 # case insensitive, let's make it lowercase to improve readability. 59446 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59447 # Now convert it back to Unix-style (cygpath) 59448 input_path=`$CYGPATH -u "$shortmode_path"` 59449 new_path="$input_path" 59450 fi 59451 fi 59452 59453 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59454 if test "x$test_cygdrive_prefix" = x; then 59455 # As a simple fix, exclude /usr/bin since it's not a real path. 59456 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59457 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59458 # a path prefixed by /cygdrive for fixpath to work. 59459 new_path="$CYGWIN_ROOT_PATH$input_path" 59460 fi 59461 fi 59462 59463 59464 if test "x$path" != "x$new_path"; then 59465 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59467 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59468 fi 59469 59470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59471 59472 path="$POTENTIAL_FREETYPE_LIB_PATH" 59473 has_colon=`$ECHO $path | $GREP ^.:` 59474 new_path="$path" 59475 if test "x$has_colon" = x; then 59476 # Not in mixed or Windows style, start by that. 59477 new_path=`cmd //c echo $path` 59478 fi 59479 59480 59481 input_path="$new_path" 59482 # Check if we need to convert this using DOS-style short mode. If the path 59483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59484 # take no chances and rewrite it. 59485 # Note: m4 eats our [], so we need to use [ and ] instead. 59486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59487 if test "x$has_forbidden_chars" != x; then 59488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59489 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59490 fi 59491 59492 59493 windows_path="$new_path" 59494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59495 unix_path=`$CYGPATH -u "$windows_path"` 59496 new_path="$unix_path" 59497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59499 new_path="$unix_path" 59500 fi 59501 59502 if test "x$path" != "x$new_path"; then 59503 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59504 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59505 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59506 fi 59507 59508 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59509 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59510 59511 else 59512 # We're on a unix platform. Hooray! :) 59513 path="$POTENTIAL_FREETYPE_LIB_PATH" 59514 has_space=`$ECHO "$path" | $GREP " "` 59515 if test "x$has_space" != x; then 59516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59517 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59518 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59519 fi 59520 59521 # Use eval to expand a potential ~ 59522 eval path="$path" 59523 if test ! -f "$path" && test ! -d "$path"; then 59524 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59525 fi 59526 59527 if test -d "$path"; then 59528 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59529 else 59530 dir="`$DIRNAME "$path"`" 59531 base="`$BASENAME "$path"`" 59532 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59533 fi 59534 fi 59535 fi 59536 59537 59538 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59540 $as_echo_n "checking for freetype includes... " >&6; } 59541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59542 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59543 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59545 $as_echo_n "checking for freetype libraries... " >&6; } 59546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59547 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59548 fi 59549 59550 fi 59551 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 59552 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 59553 # Source is available, as a last resort try to build freetype in default location 59554 59555 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 59556 BUILD_FREETYPE=yes 59557 59558 # Check if the freetype sources are acessible.. 59559 if ! test -d $FREETYPE_SRC_PATH; then 59560 { $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 59561 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59562 BUILD_FREETYPE=no 59563 fi 59564 # ..and contain a vc2010 project file 59565 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59566 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59567 { $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 59568 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59569 BUILD_FREETYPE=no 59570 fi 59571 # Now check if configure found a version of 'msbuild.exe' 59572 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59573 { $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 59574 $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;} 59575 BUILD_FREETYPE=no 59576 fi 59577 59578 # Ready to go.. 59579 if test "x$BUILD_FREETYPE" = xyes; then 59580 # msbuild requires trailing slashes for output directories 59581 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59582 freetype_lib_path_unix="$freetype_lib_path" 59583 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59584 59585 unix_path="$vcxproj_path" 59586 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59587 windows_path=`$CYGPATH -m "$unix_path"` 59588 vcxproj_path="$windows_path" 59589 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59590 windows_path=`cmd //c echo $unix_path` 59591 vcxproj_path="$windows_path" 59592 fi 59593 59594 59595 unix_path="$freetype_lib_path" 59596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59597 windows_path=`$CYGPATH -m "$unix_path"` 59598 freetype_lib_path="$windows_path" 59599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59600 windows_path=`cmd //c echo $unix_path` 59601 freetype_lib_path="$windows_path" 59602 fi 59603 59604 59605 unix_path="$freetype_obj_path" 59606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59607 windows_path=`$CYGPATH -m "$unix_path"` 59608 freetype_obj_path="$windows_path" 59609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59610 windows_path=`cmd //c echo $unix_path` 59611 freetype_obj_path="$windows_path" 59612 fi 59613 59614 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59615 freetype_platform=x64 59616 else 59617 freetype_platform=win32 59618 fi 59619 59620 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59621 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59622 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59623 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59624 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59625 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59626 59627 # First we try to build the freetype.dll 59628 $ECHO -e "@echo off\n"\ 59629 "$MSBUILD $vcxproj_path "\ 59630 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59631 "/p:Configuration=\"Release Multithreaded\" "\ 59632 "/p:Platform=$freetype_platform "\ 59633 "/p:ConfigurationType=DynamicLibrary "\ 59634 "/p:TargetName=freetype "\ 59635 "/p:OutDir=\"$freetype_lib_path\" "\ 59636 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59637 cmd /c freetype.bat 59638 59639 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59640 # If that succeeds we also build freetype.lib 59641 $ECHO -e "@echo off\n"\ 59642 "$MSBUILD $vcxproj_path "\ 59643 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59644 "/p:Configuration=\"Release Multithreaded\" "\ 59645 "/p:Platform=$freetype_platform "\ 59646 "/p:ConfigurationType=StaticLibrary "\ 59647 "/p:TargetName=freetype "\ 59648 "/p:OutDir=\"$freetype_lib_path\" "\ 59649 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59650 cmd /c freetype.bat 59651 59652 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59653 # Once we build both, lib and dll, set freetype lib and include path appropriately 59654 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59655 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59656 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59657 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59658 else 59659 BUILD_FREETYPE=no 59660 fi 59661 else 59662 BUILD_FREETYPE=no 59663 fi 59664 fi 59665 59666 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59667 59668 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59669 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59670 METHOD="well-known location" 59671 59672 # Let's start with an optimistic view of the world :-) 59673 FOUND_FREETYPE=yes 59674 59675 # First look for the canonical freetype main include file ft2build.h. 59676 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59677 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59678 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59679 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59680 # Fail. 59681 FOUND_FREETYPE=no 59682 fi 59683 fi 59684 59685 if test "x$FOUND_FREETYPE" = xyes; then 59686 # Include file found, let's continue the sanity check. 59687 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59688 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59689 59690 # Reset to default value 59691 FREETYPE_BASE_NAME=freetype 59692 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59693 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59694 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 59695 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59696 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59697 # for the .6 version explicitly. 59698 FREETYPE_BASE_NAME=freetype.6 59699 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59700 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59701 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59702 else 59703 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59704 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59705 FOUND_FREETYPE=no 59706 fi 59707 else 59708 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59709 # On Windows, we will need both .lib and .dll file. 59710 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59711 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59712 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59713 FOUND_FREETYPE=no 59714 fi 59715 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59716 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59717 # Found lib in isa dir, use that instead. 59718 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59719 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59720 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59721 fi 59722 fi 59723 fi 59724 59725 if test "x$FOUND_FREETYPE" = xyes; then 59726 59727 # Only process if variable expands to non-empty 59728 59729 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59731 59732 # Input might be given as Windows format, start by converting to 59733 # unix format. 59734 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59735 new_path=`$CYGPATH -u "$path"` 59736 59737 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59738 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59739 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59740 # "foo.exe" is OK but "foo" is an error. 59741 # 59742 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59743 # It is also a way to make sure we got the proper file name for the real test later on. 59744 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59745 if test "x$test_shortpath" = x; then 59746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59747 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59748 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59749 fi 59750 59751 # Call helper function which possibly converts this using DOS-style short mode. 59752 # If so, the updated path is stored in $new_path. 59753 59754 input_path="$new_path" 59755 # Check if we need to convert this using DOS-style short mode. If the path 59756 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59757 # take no chances and rewrite it. 59758 # Note: m4 eats our [], so we need to use [ and ] instead. 59759 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59760 if test "x$has_forbidden_chars" != x; then 59761 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59762 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59763 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59764 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59765 # Going to short mode and back again did indeed matter. Since short mode is 59766 # case insensitive, let's make it lowercase to improve readability. 59767 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59768 # Now convert it back to Unix-style (cygpath) 59769 input_path=`$CYGPATH -u "$shortmode_path"` 59770 new_path="$input_path" 59771 fi 59772 fi 59773 59774 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59775 if test "x$test_cygdrive_prefix" = x; then 59776 # As a simple fix, exclude /usr/bin since it's not a real path. 59777 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59778 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59779 # a path prefixed by /cygdrive for fixpath to work. 59780 new_path="$CYGWIN_ROOT_PATH$input_path" 59781 fi 59782 fi 59783 59784 59785 if test "x$path" != "x$new_path"; then 59786 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59787 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59788 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59789 fi 59790 59791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59792 59793 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59794 has_colon=`$ECHO $path | $GREP ^.:` 59795 new_path="$path" 59796 if test "x$has_colon" = x; then 59797 # Not in mixed or Windows style, start by that. 59798 new_path=`cmd //c echo $path` 59799 fi 59800 59801 59802 input_path="$new_path" 59803 # Check if we need to convert this using DOS-style short mode. If the path 59804 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59805 # take no chances and rewrite it. 59806 # Note: m4 eats our [], so we need to use [ and ] instead. 59807 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59808 if test "x$has_forbidden_chars" != x; then 59809 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59810 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59811 fi 59812 59813 59814 windows_path="$new_path" 59815 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59816 unix_path=`$CYGPATH -u "$windows_path"` 59817 new_path="$unix_path" 59818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59819 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59820 new_path="$unix_path" 59821 fi 59822 59823 if test "x$path" != "x$new_path"; then 59824 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59825 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59826 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59827 fi 59828 59829 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59830 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59831 59832 else 59833 # We're on a unix platform. Hooray! :) 59834 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59835 has_space=`$ECHO "$path" | $GREP " "` 59836 if test "x$has_space" != x; then 59837 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59838 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59839 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59840 fi 59841 59842 # Use eval to expand a potential ~ 59843 eval path="$path" 59844 if test ! -f "$path" && test ! -d "$path"; then 59845 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59846 fi 59847 59848 if test -d "$path"; then 59849 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59850 else 59851 dir="`$DIRNAME "$path"`" 59852 base="`$BASENAME "$path"`" 59853 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59854 fi 59855 fi 59856 fi 59857 59858 59859 # Only process if variable expands to non-empty 59860 59861 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59863 59864 # Input might be given as Windows format, start by converting to 59865 # unix format. 59866 path="$POTENTIAL_FREETYPE_LIB_PATH" 59867 new_path=`$CYGPATH -u "$path"` 59868 59869 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59870 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59871 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59872 # "foo.exe" is OK but "foo" is an error. 59873 # 59874 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59875 # It is also a way to make sure we got the proper file name for the real test later on. 59876 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59877 if test "x$test_shortpath" = x; then 59878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59879 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59880 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59881 fi 59882 59883 # Call helper function which possibly converts this using DOS-style short mode. 59884 # If so, the updated path is stored in $new_path. 59885 59886 input_path="$new_path" 59887 # Check if we need to convert this using DOS-style short mode. If the path 59888 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59889 # take no chances and rewrite it. 59890 # Note: m4 eats our [], so we need to use [ and ] instead. 59891 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59892 if test "x$has_forbidden_chars" != x; then 59893 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59894 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59895 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59896 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59897 # Going to short mode and back again did indeed matter. Since short mode is 59898 # case insensitive, let's make it lowercase to improve readability. 59899 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59900 # Now convert it back to Unix-style (cygpath) 59901 input_path=`$CYGPATH -u "$shortmode_path"` 59902 new_path="$input_path" 59903 fi 59904 fi 59905 59906 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59907 if test "x$test_cygdrive_prefix" = x; then 59908 # As a simple fix, exclude /usr/bin since it's not a real path. 59909 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59910 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59911 # a path prefixed by /cygdrive for fixpath to work. 59912 new_path="$CYGWIN_ROOT_PATH$input_path" 59913 fi 59914 fi 59915 59916 59917 if test "x$path" != "x$new_path"; then 59918 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59919 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59920 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59921 fi 59922 59923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59924 59925 path="$POTENTIAL_FREETYPE_LIB_PATH" 59926 has_colon=`$ECHO $path | $GREP ^.:` 59927 new_path="$path" 59928 if test "x$has_colon" = x; then 59929 # Not in mixed or Windows style, start by that. 59930 new_path=`cmd //c echo $path` 59931 fi 59932 59933 59934 input_path="$new_path" 59935 # Check if we need to convert this using DOS-style short mode. If the path 59936 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59937 # take no chances and rewrite it. 59938 # Note: m4 eats our [], so we need to use [ and ] instead. 59939 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59940 if test "x$has_forbidden_chars" != x; then 59941 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59942 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59943 fi 59944 59945 59946 windows_path="$new_path" 59947 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59948 unix_path=`$CYGPATH -u "$windows_path"` 59949 new_path="$unix_path" 59950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59951 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59952 new_path="$unix_path" 59953 fi 59954 59955 if test "x$path" != "x$new_path"; then 59956 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59957 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59958 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59959 fi 59960 59961 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59962 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59963 59964 else 59965 # We're on a unix platform. Hooray! :) 59966 path="$POTENTIAL_FREETYPE_LIB_PATH" 59967 has_space=`$ECHO "$path" | $GREP " "` 59968 if test "x$has_space" != x; then 59969 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59970 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59971 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59972 fi 59973 59974 # Use eval to expand a potential ~ 59975 eval path="$path" 59976 if test ! -f "$path" && test ! -d "$path"; then 59977 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59978 fi 59979 59980 if test -d "$path"; then 59981 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59982 else 59983 dir="`$DIRNAME "$path"`" 59984 base="`$BASENAME "$path"`" 59985 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59986 fi 59987 fi 59988 fi 59989 59990 59991 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59993 $as_echo_n "checking for freetype includes... " >&6; } 59994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59995 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59996 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59998 $as_echo_n "checking for freetype libraries... " >&6; } 59999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60000 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60001 fi 60002 60003 else 60004 60005 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60006 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 60007 METHOD="well-known location" 60008 60009 # Let's start with an optimistic view of the world :-) 60010 FOUND_FREETYPE=yes 60011 60012 # First look for the canonical freetype main include file ft2build.h. 60013 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60014 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60015 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60016 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60017 # Fail. 60018 FOUND_FREETYPE=no 60019 fi 60020 fi 60021 60022 if test "x$FOUND_FREETYPE" = xyes; then 60023 # Include file found, let's continue the sanity check. 60024 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60025 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60026 60027 # Reset to default value 60028 FREETYPE_BASE_NAME=freetype 60029 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60030 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60031 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 60032 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60033 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60034 # for the .6 version explicitly. 60035 FREETYPE_BASE_NAME=freetype.6 60036 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60037 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60038 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60039 else 60040 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60041 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60042 FOUND_FREETYPE=no 60043 fi 60044 else 60045 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60046 # On Windows, we will need both .lib and .dll file. 60047 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60048 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60049 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60050 FOUND_FREETYPE=no 60051 fi 60052 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60053 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60054 # Found lib in isa dir, use that instead. 60055 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60056 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60057 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60058 fi 60059 fi 60060 fi 60061 60062 if test "x$FOUND_FREETYPE" = xyes; then 60063 60064 # Only process if variable expands to non-empty 60065 60066 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60068 60069 # Input might be given as Windows format, start by converting to 60070 # unix format. 60071 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60072 new_path=`$CYGPATH -u "$path"` 60073 60074 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60075 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60076 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60077 # "foo.exe" is OK but "foo" is an error. 60078 # 60079 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60080 # It is also a way to make sure we got the proper file name for the real test later on. 60081 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60082 if test "x$test_shortpath" = x; then 60083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60084 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60085 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60086 fi 60087 60088 # Call helper function which possibly converts this using DOS-style short mode. 60089 # If so, the updated path is stored in $new_path. 60090 60091 input_path="$new_path" 60092 # Check if we need to convert this using DOS-style short mode. If the path 60093 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60094 # take no chances and rewrite it. 60095 # Note: m4 eats our [], so we need to use [ and ] instead. 60096 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60097 if test "x$has_forbidden_chars" != x; then 60098 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60099 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60100 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60101 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60102 # Going to short mode and back again did indeed matter. Since short mode is 60103 # case insensitive, let's make it lowercase to improve readability. 60104 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60105 # Now convert it back to Unix-style (cygpath) 60106 input_path=`$CYGPATH -u "$shortmode_path"` 60107 new_path="$input_path" 60108 fi 60109 fi 60110 60111 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60112 if test "x$test_cygdrive_prefix" = x; then 60113 # As a simple fix, exclude /usr/bin since it's not a real path. 60114 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60115 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60116 # a path prefixed by /cygdrive for fixpath to work. 60117 new_path="$CYGWIN_ROOT_PATH$input_path" 60118 fi 60119 fi 60120 60121 60122 if test "x$path" != "x$new_path"; then 60123 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60124 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60125 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60126 fi 60127 60128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60129 60130 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60131 has_colon=`$ECHO $path | $GREP ^.:` 60132 new_path="$path" 60133 if test "x$has_colon" = x; then 60134 # Not in mixed or Windows style, start by that. 60135 new_path=`cmd //c echo $path` 60136 fi 60137 60138 60139 input_path="$new_path" 60140 # Check if we need to convert this using DOS-style short mode. If the path 60141 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60142 # take no chances and rewrite it. 60143 # Note: m4 eats our [], so we need to use [ and ] instead. 60144 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60145 if test "x$has_forbidden_chars" != x; then 60146 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60147 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60148 fi 60149 60150 60151 windows_path="$new_path" 60152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60153 unix_path=`$CYGPATH -u "$windows_path"` 60154 new_path="$unix_path" 60155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60156 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60157 new_path="$unix_path" 60158 fi 60159 60160 if test "x$path" != "x$new_path"; then 60161 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60162 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60163 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60164 fi 60165 60166 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60167 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60168 60169 else 60170 # We're on a unix platform. Hooray! :) 60171 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60172 has_space=`$ECHO "$path" | $GREP " "` 60173 if test "x$has_space" != x; then 60174 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60175 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60176 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60177 fi 60178 60179 # Use eval to expand a potential ~ 60180 eval path="$path" 60181 if test ! -f "$path" && test ! -d "$path"; then 60182 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60183 fi 60184 60185 if test -d "$path"; then 60186 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60187 else 60188 dir="`$DIRNAME "$path"`" 60189 base="`$BASENAME "$path"`" 60190 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60191 fi 60192 fi 60193 fi 60194 60195 60196 # Only process if variable expands to non-empty 60197 60198 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60200 60201 # Input might be given as Windows format, start by converting to 60202 # unix format. 60203 path="$POTENTIAL_FREETYPE_LIB_PATH" 60204 new_path=`$CYGPATH -u "$path"` 60205 60206 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60207 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60208 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60209 # "foo.exe" is OK but "foo" is an error. 60210 # 60211 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60212 # It is also a way to make sure we got the proper file name for the real test later on. 60213 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60214 if test "x$test_shortpath" = x; then 60215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60216 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60217 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60218 fi 60219 60220 # Call helper function which possibly converts this using DOS-style short mode. 60221 # If so, the updated path is stored in $new_path. 60222 60223 input_path="$new_path" 60224 # Check if we need to convert this using DOS-style short mode. If the path 60225 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60226 # take no chances and rewrite it. 60227 # Note: m4 eats our [], so we need to use [ and ] instead. 60228 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60229 if test "x$has_forbidden_chars" != x; then 60230 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60231 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60232 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60233 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60234 # Going to short mode and back again did indeed matter. Since short mode is 60235 # case insensitive, let's make it lowercase to improve readability. 60236 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60237 # Now convert it back to Unix-style (cygpath) 60238 input_path=`$CYGPATH -u "$shortmode_path"` 60239 new_path="$input_path" 60240 fi 60241 fi 60242 60243 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60244 if test "x$test_cygdrive_prefix" = x; then 60245 # As a simple fix, exclude /usr/bin since it's not a real path. 60246 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60247 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60248 # a path prefixed by /cygdrive for fixpath to work. 60249 new_path="$CYGWIN_ROOT_PATH$input_path" 60250 fi 60251 fi 60252 60253 60254 if test "x$path" != "x$new_path"; then 60255 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60256 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60257 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60258 fi 60259 60260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60261 60262 path="$POTENTIAL_FREETYPE_LIB_PATH" 60263 has_colon=`$ECHO $path | $GREP ^.:` 60264 new_path="$path" 60265 if test "x$has_colon" = x; then 60266 # Not in mixed or Windows style, start by that. 60267 new_path=`cmd //c echo $path` 60268 fi 60269 60270 60271 input_path="$new_path" 60272 # Check if we need to convert this using DOS-style short mode. If the path 60273 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60274 # take no chances and rewrite it. 60275 # Note: m4 eats our [], so we need to use [ and ] instead. 60276 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60277 if test "x$has_forbidden_chars" != x; then 60278 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60279 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60280 fi 60281 60282 60283 windows_path="$new_path" 60284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60285 unix_path=`$CYGPATH -u "$windows_path"` 60286 new_path="$unix_path" 60287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60288 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60289 new_path="$unix_path" 60290 fi 60291 60292 if test "x$path" != "x$new_path"; then 60293 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60295 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60296 fi 60297 60298 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60299 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60300 60301 else 60302 # We're on a unix platform. Hooray! :) 60303 path="$POTENTIAL_FREETYPE_LIB_PATH" 60304 has_space=`$ECHO "$path" | $GREP " "` 60305 if test "x$has_space" != x; then 60306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60307 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60308 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60309 fi 60310 60311 # Use eval to expand a potential ~ 60312 eval path="$path" 60313 if test ! -f "$path" && test ! -d "$path"; then 60314 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60315 fi 60316 60317 if test -d "$path"; then 60318 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60319 else 60320 dir="`$DIRNAME "$path"`" 60321 base="`$BASENAME "$path"`" 60322 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60323 fi 60324 fi 60325 fi 60326 60327 60328 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60330 $as_echo_n "checking for freetype includes... " >&6; } 60331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60332 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60333 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60335 $as_echo_n "checking for freetype libraries... " >&6; } 60336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60337 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60338 fi 60339 60340 fi 60341 fi 60342 fi 60343 else 60344 FREETYPE_BASE_DIR="$SYSROOT/usr" 60345 60346 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60347 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60348 METHOD="well-known location" 60349 60350 # Let's start with an optimistic view of the world :-) 60351 FOUND_FREETYPE=yes 60352 60353 # First look for the canonical freetype main include file ft2build.h. 60354 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60355 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60356 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60357 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60358 # Fail. 60359 FOUND_FREETYPE=no 60360 fi 60361 fi 60362 60363 if test "x$FOUND_FREETYPE" = xyes; then 60364 # Include file found, let's continue the sanity check. 60365 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60366 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60367 60368 # Reset to default value 60369 FREETYPE_BASE_NAME=freetype 60370 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60371 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60372 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 60373 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60374 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60375 # for the .6 version explicitly. 60376 FREETYPE_BASE_NAME=freetype.6 60377 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60378 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60379 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60380 else 60381 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60382 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60383 FOUND_FREETYPE=no 60384 fi 60385 else 60386 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60387 # On Windows, we will need both .lib and .dll file. 60388 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60389 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60390 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60391 FOUND_FREETYPE=no 60392 fi 60393 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60394 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60395 # Found lib in isa dir, use that instead. 60396 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60398 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60399 fi 60400 fi 60401 fi 60402 60403 if test "x$FOUND_FREETYPE" = xyes; then 60404 60405 # Only process if variable expands to non-empty 60406 60407 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60409 60410 # Input might be given as Windows format, start by converting to 60411 # unix format. 60412 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60413 new_path=`$CYGPATH -u "$path"` 60414 60415 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60416 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60417 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60418 # "foo.exe" is OK but "foo" is an error. 60419 # 60420 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60421 # It is also a way to make sure we got the proper file name for the real test later on. 60422 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60423 if test "x$test_shortpath" = x; then 60424 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60425 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60426 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60427 fi 60428 60429 # Call helper function which possibly converts this using DOS-style short mode. 60430 # If so, the updated path is stored in $new_path. 60431 60432 input_path="$new_path" 60433 # Check if we need to convert this using DOS-style short mode. If the path 60434 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60435 # take no chances and rewrite it. 60436 # Note: m4 eats our [], so we need to use [ and ] instead. 60437 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60438 if test "x$has_forbidden_chars" != x; then 60439 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60440 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60441 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60442 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60443 # Going to short mode and back again did indeed matter. Since short mode is 60444 # case insensitive, let's make it lowercase to improve readability. 60445 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60446 # Now convert it back to Unix-style (cygpath) 60447 input_path=`$CYGPATH -u "$shortmode_path"` 60448 new_path="$input_path" 60449 fi 60450 fi 60451 60452 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60453 if test "x$test_cygdrive_prefix" = x; then 60454 # As a simple fix, exclude /usr/bin since it's not a real path. 60455 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60456 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60457 # a path prefixed by /cygdrive for fixpath to work. 60458 new_path="$CYGWIN_ROOT_PATH$input_path" 60459 fi 60460 fi 60461 60462 60463 if test "x$path" != "x$new_path"; then 60464 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60466 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60467 fi 60468 60469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60470 60471 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60472 has_colon=`$ECHO $path | $GREP ^.:` 60473 new_path="$path" 60474 if test "x$has_colon" = x; then 60475 # Not in mixed or Windows style, start by that. 60476 new_path=`cmd //c echo $path` 60477 fi 60478 60479 60480 input_path="$new_path" 60481 # Check if we need to convert this using DOS-style short mode. If the path 60482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60483 # take no chances and rewrite it. 60484 # Note: m4 eats our [], so we need to use [ and ] instead. 60485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60486 if test "x$has_forbidden_chars" != x; then 60487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60488 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60489 fi 60490 60491 60492 windows_path="$new_path" 60493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60494 unix_path=`$CYGPATH -u "$windows_path"` 60495 new_path="$unix_path" 60496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60497 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60498 new_path="$unix_path" 60499 fi 60500 60501 if test "x$path" != "x$new_path"; then 60502 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60503 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60504 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60505 fi 60506 60507 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60508 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60509 60510 else 60511 # We're on a unix platform. Hooray! :) 60512 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60513 has_space=`$ECHO "$path" | $GREP " "` 60514 if test "x$has_space" != x; then 60515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60516 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60517 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60518 fi 60519 60520 # Use eval to expand a potential ~ 60521 eval path="$path" 60522 if test ! -f "$path" && test ! -d "$path"; then 60523 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60524 fi 60525 60526 if test -d "$path"; then 60527 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60528 else 60529 dir="`$DIRNAME "$path"`" 60530 base="`$BASENAME "$path"`" 60531 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60532 fi 60533 fi 60534 fi 60535 60536 60537 # Only process if variable expands to non-empty 60538 60539 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60541 60542 # Input might be given as Windows format, start by converting to 60543 # unix format. 60544 path="$POTENTIAL_FREETYPE_LIB_PATH" 60545 new_path=`$CYGPATH -u "$path"` 60546 60547 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60548 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60549 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60550 # "foo.exe" is OK but "foo" is an error. 60551 # 60552 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60553 # It is also a way to make sure we got the proper file name for the real test later on. 60554 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60555 if test "x$test_shortpath" = x; then 60556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60557 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60558 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60559 fi 60560 60561 # Call helper function which possibly converts this using DOS-style short mode. 60562 # If so, the updated path is stored in $new_path. 60563 60564 input_path="$new_path" 60565 # Check if we need to convert this using DOS-style short mode. If the path 60566 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60567 # take no chances and rewrite it. 60568 # Note: m4 eats our [], so we need to use [ and ] instead. 60569 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60570 if test "x$has_forbidden_chars" != x; then 60571 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60572 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60573 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60574 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60575 # Going to short mode and back again did indeed matter. Since short mode is 60576 # case insensitive, let's make it lowercase to improve readability. 60577 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60578 # Now convert it back to Unix-style (cygpath) 60579 input_path=`$CYGPATH -u "$shortmode_path"` 60580 new_path="$input_path" 60581 fi 60582 fi 60583 60584 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60585 if test "x$test_cygdrive_prefix" = x; then 60586 # As a simple fix, exclude /usr/bin since it's not a real path. 60587 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60588 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60589 # a path prefixed by /cygdrive for fixpath to work. 60590 new_path="$CYGWIN_ROOT_PATH$input_path" 60591 fi 60592 fi 60593 60594 60595 if test "x$path" != "x$new_path"; then 60596 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60597 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60598 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60599 fi 60600 60601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60602 60603 path="$POTENTIAL_FREETYPE_LIB_PATH" 60604 has_colon=`$ECHO $path | $GREP ^.:` 60605 new_path="$path" 60606 if test "x$has_colon" = x; then 60607 # Not in mixed or Windows style, start by that. 60608 new_path=`cmd //c echo $path` 60609 fi 60610 60611 60612 input_path="$new_path" 60613 # Check if we need to convert this using DOS-style short mode. If the path 60614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60615 # take no chances and rewrite it. 60616 # Note: m4 eats our [], so we need to use [ and ] instead. 60617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60618 if test "x$has_forbidden_chars" != x; then 60619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60620 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60621 fi 60622 60623 60624 windows_path="$new_path" 60625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60626 unix_path=`$CYGPATH -u "$windows_path"` 60627 new_path="$unix_path" 60628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60629 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60630 new_path="$unix_path" 60631 fi 60632 60633 if test "x$path" != "x$new_path"; then 60634 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60635 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60636 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60637 fi 60638 60639 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60640 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60641 60642 else 60643 # We're on a unix platform. Hooray! :) 60644 path="$POTENTIAL_FREETYPE_LIB_PATH" 60645 has_space=`$ECHO "$path" | $GREP " "` 60646 if test "x$has_space" != x; then 60647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60648 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60649 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60650 fi 60651 60652 # Use eval to expand a potential ~ 60653 eval path="$path" 60654 if test ! -f "$path" && test ! -d "$path"; then 60655 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60656 fi 60657 60658 if test -d "$path"; then 60659 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60660 else 60661 dir="`$DIRNAME "$path"`" 60662 base="`$BASENAME "$path"`" 60663 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60664 fi 60665 fi 60666 fi 60667 60668 60669 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60671 $as_echo_n "checking for freetype includes... " >&6; } 60672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60673 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60674 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60676 $as_echo_n "checking for freetype libraries... " >&6; } 60677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60678 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60679 fi 60680 60681 60682 if test "x$FOUND_FREETYPE" != xyes; then 60683 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 60684 60685 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60686 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60687 METHOD="well-known location" 60688 60689 # Let's start with an optimistic view of the world :-) 60690 FOUND_FREETYPE=yes 60691 60692 # First look for the canonical freetype main include file ft2build.h. 60693 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60694 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60695 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60696 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60697 # Fail. 60698 FOUND_FREETYPE=no 60699 fi 60700 fi 60701 60702 if test "x$FOUND_FREETYPE" = xyes; then 60703 # Include file found, let's continue the sanity check. 60704 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60705 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60706 60707 # Reset to default value 60708 FREETYPE_BASE_NAME=freetype 60709 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60710 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60711 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 60712 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60713 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60714 # for the .6 version explicitly. 60715 FREETYPE_BASE_NAME=freetype.6 60716 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60717 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60718 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60719 else 60720 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60721 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60722 FOUND_FREETYPE=no 60723 fi 60724 else 60725 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60726 # On Windows, we will need both .lib and .dll file. 60727 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60728 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60729 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60730 FOUND_FREETYPE=no 60731 fi 60732 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60733 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60734 # Found lib in isa dir, use that instead. 60735 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60736 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60737 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60738 fi 60739 fi 60740 fi 60741 60742 if test "x$FOUND_FREETYPE" = xyes; then 60743 60744 # Only process if variable expands to non-empty 60745 60746 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60748 60749 # Input might be given as Windows format, start by converting to 60750 # unix format. 60751 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60752 new_path=`$CYGPATH -u "$path"` 60753 60754 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60755 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60756 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60757 # "foo.exe" is OK but "foo" is an error. 60758 # 60759 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60760 # It is also a way to make sure we got the proper file name for the real test later on. 60761 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60762 if test "x$test_shortpath" = x; then 60763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60764 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60765 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60766 fi 60767 60768 # Call helper function which possibly converts this using DOS-style short mode. 60769 # If so, the updated path is stored in $new_path. 60770 60771 input_path="$new_path" 60772 # Check if we need to convert this using DOS-style short mode. If the path 60773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60774 # take no chances and rewrite it. 60775 # Note: m4 eats our [], so we need to use [ and ] instead. 60776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60777 if test "x$has_forbidden_chars" != x; then 60778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60779 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60780 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60781 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60782 # Going to short mode and back again did indeed matter. Since short mode is 60783 # case insensitive, let's make it lowercase to improve readability. 60784 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60785 # Now convert it back to Unix-style (cygpath) 60786 input_path=`$CYGPATH -u "$shortmode_path"` 60787 new_path="$input_path" 60788 fi 60789 fi 60790 60791 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60792 if test "x$test_cygdrive_prefix" = x; then 60793 # As a simple fix, exclude /usr/bin since it's not a real path. 60794 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60795 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60796 # a path prefixed by /cygdrive for fixpath to work. 60797 new_path="$CYGWIN_ROOT_PATH$input_path" 60798 fi 60799 fi 60800 60801 60802 if test "x$path" != "x$new_path"; then 60803 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60805 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60806 fi 60807 60808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60809 60810 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60811 has_colon=`$ECHO $path | $GREP ^.:` 60812 new_path="$path" 60813 if test "x$has_colon" = x; then 60814 # Not in mixed or Windows style, start by that. 60815 new_path=`cmd //c echo $path` 60816 fi 60817 60818 60819 input_path="$new_path" 60820 # Check if we need to convert this using DOS-style short mode. If the path 60821 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60822 # take no chances and rewrite it. 60823 # Note: m4 eats our [], so we need to use [ and ] instead. 60824 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60825 if test "x$has_forbidden_chars" != x; then 60826 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60827 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60828 fi 60829 60830 60831 windows_path="$new_path" 60832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60833 unix_path=`$CYGPATH -u "$windows_path"` 60834 new_path="$unix_path" 60835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60837 new_path="$unix_path" 60838 fi 60839 60840 if test "x$path" != "x$new_path"; then 60841 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60843 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60844 fi 60845 60846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60848 60849 else 60850 # We're on a unix platform. Hooray! :) 60851 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60852 has_space=`$ECHO "$path" | $GREP " "` 60853 if test "x$has_space" != x; then 60854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60855 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60856 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60857 fi 60858 60859 # Use eval to expand a potential ~ 60860 eval path="$path" 60861 if test ! -f "$path" && test ! -d "$path"; then 60862 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60863 fi 60864 60865 if test -d "$path"; then 60866 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60867 else 60868 dir="`$DIRNAME "$path"`" 60869 base="`$BASENAME "$path"`" 60870 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60871 fi 60872 fi 60873 fi 60874 60875 60876 # Only process if variable expands to non-empty 60877 60878 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60880 60881 # Input might be given as Windows format, start by converting to 60882 # unix format. 60883 path="$POTENTIAL_FREETYPE_LIB_PATH" 60884 new_path=`$CYGPATH -u "$path"` 60885 60886 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60887 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60888 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60889 # "foo.exe" is OK but "foo" is an error. 60890 # 60891 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60892 # It is also a way to make sure we got the proper file name for the real test later on. 60893 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60894 if test "x$test_shortpath" = x; then 60895 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60896 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60897 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60898 fi 60899 60900 # Call helper function which possibly converts this using DOS-style short mode. 60901 # If so, the updated path is stored in $new_path. 60902 60903 input_path="$new_path" 60904 # Check if we need to convert this using DOS-style short mode. If the path 60905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60906 # take no chances and rewrite it. 60907 # Note: m4 eats our [], so we need to use [ and ] instead. 60908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60909 if test "x$has_forbidden_chars" != x; then 60910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60911 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60912 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60913 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60914 # Going to short mode and back again did indeed matter. Since short mode is 60915 # case insensitive, let's make it lowercase to improve readability. 60916 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60917 # Now convert it back to Unix-style (cygpath) 60918 input_path=`$CYGPATH -u "$shortmode_path"` 60919 new_path="$input_path" 60920 fi 60921 fi 60922 60923 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60924 if test "x$test_cygdrive_prefix" = x; then 60925 # As a simple fix, exclude /usr/bin since it's not a real path. 60926 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60927 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60928 # a path prefixed by /cygdrive for fixpath to work. 60929 new_path="$CYGWIN_ROOT_PATH$input_path" 60930 fi 60931 fi 60932 60933 60934 if test "x$path" != "x$new_path"; then 60935 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60937 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60938 fi 60939 60940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60941 60942 path="$POTENTIAL_FREETYPE_LIB_PATH" 60943 has_colon=`$ECHO $path | $GREP ^.:` 60944 new_path="$path" 60945 if test "x$has_colon" = x; then 60946 # Not in mixed or Windows style, start by that. 60947 new_path=`cmd //c echo $path` 60948 fi 60949 60950 60951 input_path="$new_path" 60952 # Check if we need to convert this using DOS-style short mode. If the path 60953 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60954 # take no chances and rewrite it. 60955 # Note: m4 eats our [], so we need to use [ and ] instead. 60956 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60957 if test "x$has_forbidden_chars" != x; then 60958 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60959 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60960 fi 60961 60962 60963 windows_path="$new_path" 60964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60965 unix_path=`$CYGPATH -u "$windows_path"` 60966 new_path="$unix_path" 60967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60968 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60969 new_path="$unix_path" 60970 fi 60971 60972 if test "x$path" != "x$new_path"; then 60973 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60974 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60975 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60976 fi 60977 60978 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60979 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60980 60981 else 60982 # We're on a unix platform. Hooray! :) 60983 path="$POTENTIAL_FREETYPE_LIB_PATH" 60984 has_space=`$ECHO "$path" | $GREP " "` 60985 if test "x$has_space" != x; then 60986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60987 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60988 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60989 fi 60990 60991 # Use eval to expand a potential ~ 60992 eval path="$path" 60993 if test ! -f "$path" && test ! -d "$path"; then 60994 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60995 fi 60996 60997 if test -d "$path"; then 60998 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60999 else 61000 dir="`$DIRNAME "$path"`" 61001 base="`$BASENAME "$path"`" 61002 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61003 fi 61004 fi 61005 fi 61006 61007 61008 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61010 $as_echo_n "checking for freetype includes... " >&6; } 61011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61012 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61013 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61015 $as_echo_n "checking for freetype libraries... " >&6; } 61016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61017 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61018 fi 61019 61020 fi 61021 61022 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 61023 if test "x$FOUND_FREETYPE" != xyes; then 61024 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 61025 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 61026 61027 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61028 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61029 METHOD="well-known location" 61030 61031 # Let's start with an optimistic view of the world :-) 61032 FOUND_FREETYPE=yes 61033 61034 # First look for the canonical freetype main include file ft2build.h. 61035 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61036 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61037 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61038 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61039 # Fail. 61040 FOUND_FREETYPE=no 61041 fi 61042 fi 61043 61044 if test "x$FOUND_FREETYPE" = xyes; then 61045 # Include file found, let's continue the sanity check. 61046 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61047 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61048 61049 # Reset to default value 61050 FREETYPE_BASE_NAME=freetype 61051 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61052 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61053 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 61054 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61055 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61056 # for the .6 version explicitly. 61057 FREETYPE_BASE_NAME=freetype.6 61058 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61059 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61060 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61061 else 61062 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61063 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61064 FOUND_FREETYPE=no 61065 fi 61066 else 61067 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61068 # On Windows, we will need both .lib and .dll file. 61069 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61070 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61071 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61072 FOUND_FREETYPE=no 61073 fi 61074 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61075 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61076 # Found lib in isa dir, use that instead. 61077 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61079 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61080 fi 61081 fi 61082 fi 61083 61084 if test "x$FOUND_FREETYPE" = xyes; then 61085 61086 # Only process if variable expands to non-empty 61087 61088 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61090 61091 # Input might be given as Windows format, start by converting to 61092 # unix format. 61093 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61094 new_path=`$CYGPATH -u "$path"` 61095 61096 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61097 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61098 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61099 # "foo.exe" is OK but "foo" is an error. 61100 # 61101 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61102 # It is also a way to make sure we got the proper file name for the real test later on. 61103 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61104 if test "x$test_shortpath" = x; then 61105 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61106 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61107 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61108 fi 61109 61110 # Call helper function which possibly converts this using DOS-style short mode. 61111 # If so, the updated path is stored in $new_path. 61112 61113 input_path="$new_path" 61114 # Check if we need to convert this using DOS-style short mode. If the path 61115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61116 # take no chances and rewrite it. 61117 # Note: m4 eats our [], so we need to use [ and ] instead. 61118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61119 if test "x$has_forbidden_chars" != x; then 61120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61121 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61122 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61123 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61124 # Going to short mode and back again did indeed matter. Since short mode is 61125 # case insensitive, let's make it lowercase to improve readability. 61126 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61127 # Now convert it back to Unix-style (cygpath) 61128 input_path=`$CYGPATH -u "$shortmode_path"` 61129 new_path="$input_path" 61130 fi 61131 fi 61132 61133 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61134 if test "x$test_cygdrive_prefix" = x; then 61135 # As a simple fix, exclude /usr/bin since it's not a real path. 61136 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61137 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61138 # a path prefixed by /cygdrive for fixpath to work. 61139 new_path="$CYGWIN_ROOT_PATH$input_path" 61140 fi 61141 fi 61142 61143 61144 if test "x$path" != "x$new_path"; then 61145 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61146 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61147 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61148 fi 61149 61150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61151 61152 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61153 has_colon=`$ECHO $path | $GREP ^.:` 61154 new_path="$path" 61155 if test "x$has_colon" = x; then 61156 # Not in mixed or Windows style, start by that. 61157 new_path=`cmd //c echo $path` 61158 fi 61159 61160 61161 input_path="$new_path" 61162 # Check if we need to convert this using DOS-style short mode. If the path 61163 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61164 # take no chances and rewrite it. 61165 # Note: m4 eats our [], so we need to use [ and ] instead. 61166 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61167 if test "x$has_forbidden_chars" != x; then 61168 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61169 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61170 fi 61171 61172 61173 windows_path="$new_path" 61174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61175 unix_path=`$CYGPATH -u "$windows_path"` 61176 new_path="$unix_path" 61177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61178 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61179 new_path="$unix_path" 61180 fi 61181 61182 if test "x$path" != "x$new_path"; then 61183 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61184 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61185 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61186 fi 61187 61188 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61189 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61190 61191 else 61192 # We're on a unix platform. Hooray! :) 61193 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61194 has_space=`$ECHO "$path" | $GREP " "` 61195 if test "x$has_space" != x; then 61196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61197 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61198 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61199 fi 61200 61201 # Use eval to expand a potential ~ 61202 eval path="$path" 61203 if test ! -f "$path" && test ! -d "$path"; then 61204 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61205 fi 61206 61207 if test -d "$path"; then 61208 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61209 else 61210 dir="`$DIRNAME "$path"`" 61211 base="`$BASENAME "$path"`" 61212 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61213 fi 61214 fi 61215 fi 61216 61217 61218 # Only process if variable expands to non-empty 61219 61220 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61222 61223 # Input might be given as Windows format, start by converting to 61224 # unix format. 61225 path="$POTENTIAL_FREETYPE_LIB_PATH" 61226 new_path=`$CYGPATH -u "$path"` 61227 61228 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61229 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61230 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61231 # "foo.exe" is OK but "foo" is an error. 61232 # 61233 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61234 # It is also a way to make sure we got the proper file name for the real test later on. 61235 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61236 if test "x$test_shortpath" = x; then 61237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61238 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61239 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61240 fi 61241 61242 # Call helper function which possibly converts this using DOS-style short mode. 61243 # If so, the updated path is stored in $new_path. 61244 61245 input_path="$new_path" 61246 # Check if we need to convert this using DOS-style short mode. If the path 61247 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61248 # take no chances and rewrite it. 61249 # Note: m4 eats our [], so we need to use [ and ] instead. 61250 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61251 if test "x$has_forbidden_chars" != x; then 61252 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61253 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61254 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61255 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61256 # Going to short mode and back again did indeed matter. Since short mode is 61257 # case insensitive, let's make it lowercase to improve readability. 61258 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61259 # Now convert it back to Unix-style (cygpath) 61260 input_path=`$CYGPATH -u "$shortmode_path"` 61261 new_path="$input_path" 61262 fi 61263 fi 61264 61265 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61266 if test "x$test_cygdrive_prefix" = x; then 61267 # As a simple fix, exclude /usr/bin since it's not a real path. 61268 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61269 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61270 # a path prefixed by /cygdrive for fixpath to work. 61271 new_path="$CYGWIN_ROOT_PATH$input_path" 61272 fi 61273 fi 61274 61275 61276 if test "x$path" != "x$new_path"; then 61277 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61278 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61279 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61280 fi 61281 61282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61283 61284 path="$POTENTIAL_FREETYPE_LIB_PATH" 61285 has_colon=`$ECHO $path | $GREP ^.:` 61286 new_path="$path" 61287 if test "x$has_colon" = x; then 61288 # Not in mixed or Windows style, start by that. 61289 new_path=`cmd //c echo $path` 61290 fi 61291 61292 61293 input_path="$new_path" 61294 # Check if we need to convert this using DOS-style short mode. If the path 61295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61296 # take no chances and rewrite it. 61297 # Note: m4 eats our [], so we need to use [ and ] instead. 61298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61299 if test "x$has_forbidden_chars" != x; then 61300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61301 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61302 fi 61303 61304 61305 windows_path="$new_path" 61306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61307 unix_path=`$CYGPATH -u "$windows_path"` 61308 new_path="$unix_path" 61309 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61310 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61311 new_path="$unix_path" 61312 fi 61313 61314 if test "x$path" != "x$new_path"; then 61315 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61316 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61317 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61318 fi 61319 61320 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61321 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61322 61323 else 61324 # We're on a unix platform. Hooray! :) 61325 path="$POTENTIAL_FREETYPE_LIB_PATH" 61326 has_space=`$ECHO "$path" | $GREP " "` 61327 if test "x$has_space" != x; then 61328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61329 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61330 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61331 fi 61332 61333 # Use eval to expand a potential ~ 61334 eval path="$path" 61335 if test ! -f "$path" && test ! -d "$path"; then 61336 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61337 fi 61338 61339 if test -d "$path"; then 61340 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61341 else 61342 dir="`$DIRNAME "$path"`" 61343 base="`$BASENAME "$path"`" 61344 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61345 fi 61346 fi 61347 fi 61348 61349 61350 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61352 $as_echo_n "checking for freetype includes... " >&6; } 61353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61354 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61355 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61357 $as_echo_n "checking for freetype libraries... " >&6; } 61358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61359 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61360 fi 61361 61362 fi 61363 fi 61364 61365 if test "x$FOUND_FREETYPE" != xyes; then 61366 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 61367 61368 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61369 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61370 METHOD="well-known location" 61371 61372 # Let's start with an optimistic view of the world :-) 61373 FOUND_FREETYPE=yes 61374 61375 # First look for the canonical freetype main include file ft2build.h. 61376 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61377 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61378 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61379 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61380 # Fail. 61381 FOUND_FREETYPE=no 61382 fi 61383 fi 61384 61385 if test "x$FOUND_FREETYPE" = xyes; then 61386 # Include file found, let's continue the sanity check. 61387 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61388 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61389 61390 # Reset to default value 61391 FREETYPE_BASE_NAME=freetype 61392 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61393 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61394 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 61395 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61396 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61397 # for the .6 version explicitly. 61398 FREETYPE_BASE_NAME=freetype.6 61399 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61400 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61401 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61402 else 61403 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61404 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61405 FOUND_FREETYPE=no 61406 fi 61407 else 61408 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61409 # On Windows, we will need both .lib and .dll file. 61410 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61411 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61412 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61413 FOUND_FREETYPE=no 61414 fi 61415 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61416 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61417 # Found lib in isa dir, use that instead. 61418 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61419 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61420 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61421 fi 61422 fi 61423 fi 61424 61425 if test "x$FOUND_FREETYPE" = xyes; then 61426 61427 # Only process if variable expands to non-empty 61428 61429 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61431 61432 # Input might be given as Windows format, start by converting to 61433 # unix format. 61434 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61435 new_path=`$CYGPATH -u "$path"` 61436 61437 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61438 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61439 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61440 # "foo.exe" is OK but "foo" is an error. 61441 # 61442 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61443 # It is also a way to make sure we got the proper file name for the real test later on. 61444 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61445 if test "x$test_shortpath" = x; then 61446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61447 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61448 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61449 fi 61450 61451 # Call helper function which possibly converts this using DOS-style short mode. 61452 # If so, the updated path is stored in $new_path. 61453 61454 input_path="$new_path" 61455 # Check if we need to convert this using DOS-style short mode. If the path 61456 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61457 # take no chances and rewrite it. 61458 # Note: m4 eats our [], so we need to use [ and ] instead. 61459 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61460 if test "x$has_forbidden_chars" != x; then 61461 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61462 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61463 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61464 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61465 # Going to short mode and back again did indeed matter. Since short mode is 61466 # case insensitive, let's make it lowercase to improve readability. 61467 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61468 # Now convert it back to Unix-style (cygpath) 61469 input_path=`$CYGPATH -u "$shortmode_path"` 61470 new_path="$input_path" 61471 fi 61472 fi 61473 61474 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61475 if test "x$test_cygdrive_prefix" = x; then 61476 # As a simple fix, exclude /usr/bin since it's not a real path. 61477 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61478 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61479 # a path prefixed by /cygdrive for fixpath to work. 61480 new_path="$CYGWIN_ROOT_PATH$input_path" 61481 fi 61482 fi 61483 61484 61485 if test "x$path" != "x$new_path"; then 61486 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61487 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61488 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61489 fi 61490 61491 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61492 61493 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61494 has_colon=`$ECHO $path | $GREP ^.:` 61495 new_path="$path" 61496 if test "x$has_colon" = x; then 61497 # Not in mixed or Windows style, start by that. 61498 new_path=`cmd //c echo $path` 61499 fi 61500 61501 61502 input_path="$new_path" 61503 # Check if we need to convert this using DOS-style short mode. If the path 61504 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61505 # take no chances and rewrite it. 61506 # Note: m4 eats our [], so we need to use [ and ] instead. 61507 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61508 if test "x$has_forbidden_chars" != x; then 61509 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61510 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61511 fi 61512 61513 61514 windows_path="$new_path" 61515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61516 unix_path=`$CYGPATH -u "$windows_path"` 61517 new_path="$unix_path" 61518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61519 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61520 new_path="$unix_path" 61521 fi 61522 61523 if test "x$path" != "x$new_path"; then 61524 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61525 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61526 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61527 fi 61528 61529 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61530 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61531 61532 else 61533 # We're on a unix platform. Hooray! :) 61534 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61535 has_space=`$ECHO "$path" | $GREP " "` 61536 if test "x$has_space" != x; then 61537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61538 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61539 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61540 fi 61541 61542 # Use eval to expand a potential ~ 61543 eval path="$path" 61544 if test ! -f "$path" && test ! -d "$path"; then 61545 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61546 fi 61547 61548 if test -d "$path"; then 61549 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61550 else 61551 dir="`$DIRNAME "$path"`" 61552 base="`$BASENAME "$path"`" 61553 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61554 fi 61555 fi 61556 fi 61557 61558 61559 # Only process if variable expands to non-empty 61560 61561 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61562 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61563 61564 # Input might be given as Windows format, start by converting to 61565 # unix format. 61566 path="$POTENTIAL_FREETYPE_LIB_PATH" 61567 new_path=`$CYGPATH -u "$path"` 61568 61569 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61570 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61571 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61572 # "foo.exe" is OK but "foo" is an error. 61573 # 61574 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61575 # It is also a way to make sure we got the proper file name for the real test later on. 61576 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61577 if test "x$test_shortpath" = x; then 61578 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61579 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61580 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61581 fi 61582 61583 # Call helper function which possibly converts this using DOS-style short mode. 61584 # If so, the updated path is stored in $new_path. 61585 61586 input_path="$new_path" 61587 # Check if we need to convert this using DOS-style short mode. If the path 61588 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61589 # take no chances and rewrite it. 61590 # Note: m4 eats our [], so we need to use [ and ] instead. 61591 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61592 if test "x$has_forbidden_chars" != x; then 61593 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61594 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61595 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61596 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61597 # Going to short mode and back again did indeed matter. Since short mode is 61598 # case insensitive, let's make it lowercase to improve readability. 61599 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61600 # Now convert it back to Unix-style (cygpath) 61601 input_path=`$CYGPATH -u "$shortmode_path"` 61602 new_path="$input_path" 61603 fi 61604 fi 61605 61606 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61607 if test "x$test_cygdrive_prefix" = x; then 61608 # As a simple fix, exclude /usr/bin since it's not a real path. 61609 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61610 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61611 # a path prefixed by /cygdrive for fixpath to work. 61612 new_path="$CYGWIN_ROOT_PATH$input_path" 61613 fi 61614 fi 61615 61616 61617 if test "x$path" != "x$new_path"; then 61618 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61619 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61620 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61621 fi 61622 61623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61624 61625 path="$POTENTIAL_FREETYPE_LIB_PATH" 61626 has_colon=`$ECHO $path | $GREP ^.:` 61627 new_path="$path" 61628 if test "x$has_colon" = x; then 61629 # Not in mixed or Windows style, start by that. 61630 new_path=`cmd //c echo $path` 61631 fi 61632 61633 61634 input_path="$new_path" 61635 # Check if we need to convert this using DOS-style short mode. If the path 61636 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61637 # take no chances and rewrite it. 61638 # Note: m4 eats our [], so we need to use [ and ] instead. 61639 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61640 if test "x$has_forbidden_chars" != x; then 61641 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61642 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61643 fi 61644 61645 61646 windows_path="$new_path" 61647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61648 unix_path=`$CYGPATH -u "$windows_path"` 61649 new_path="$unix_path" 61650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61651 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61652 new_path="$unix_path" 61653 fi 61654 61655 if test "x$path" != "x$new_path"; then 61656 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61657 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61658 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61659 fi 61660 61661 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61662 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61663 61664 else 61665 # We're on a unix platform. Hooray! :) 61666 path="$POTENTIAL_FREETYPE_LIB_PATH" 61667 has_space=`$ECHO "$path" | $GREP " "` 61668 if test "x$has_space" != x; then 61669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61670 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61671 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61672 fi 61673 61674 # Use eval to expand a potential ~ 61675 eval path="$path" 61676 if test ! -f "$path" && test ! -d "$path"; then 61677 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61678 fi 61679 61680 if test -d "$path"; then 61681 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61682 else 61683 dir="`$DIRNAME "$path"`" 61684 base="`$BASENAME "$path"`" 61685 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61686 fi 61687 fi 61688 fi 61689 61690 61691 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61693 $as_echo_n "checking for freetype includes... " >&6; } 61694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61695 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61696 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61698 $as_echo_n "checking for freetype libraries... " >&6; } 61699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61700 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61701 fi 61702 61703 fi 61704 61705 if test "x$FOUND_FREETYPE" != xyes; then 61706 FREETYPE_BASE_DIR="$SYSROOT/usr" 61707 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61708 61709 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61710 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 61711 METHOD="well-known location" 61712 61713 # Let's start with an optimistic view of the world :-) 61714 FOUND_FREETYPE=yes 61715 61716 # First look for the canonical freetype main include file ft2build.h. 61717 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61718 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61719 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61720 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61721 # Fail. 61722 FOUND_FREETYPE=no 61723 fi 61724 fi 61725 61726 if test "x$FOUND_FREETYPE" = xyes; then 61727 # Include file found, let's continue the sanity check. 61728 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61729 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61730 61731 # Reset to default value 61732 FREETYPE_BASE_NAME=freetype 61733 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61734 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61735 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 61736 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61737 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61738 # for the .6 version explicitly. 61739 FREETYPE_BASE_NAME=freetype.6 61740 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61741 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61742 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61743 else 61744 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61745 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61746 FOUND_FREETYPE=no 61747 fi 61748 else 61749 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61750 # On Windows, we will need both .lib and .dll file. 61751 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61752 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61753 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61754 FOUND_FREETYPE=no 61755 fi 61756 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61757 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61758 # Found lib in isa dir, use that instead. 61759 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61760 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61761 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61762 fi 61763 fi 61764 fi 61765 61766 if test "x$FOUND_FREETYPE" = xyes; then 61767 61768 # Only process if variable expands to non-empty 61769 61770 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61772 61773 # Input might be given as Windows format, start by converting to 61774 # unix format. 61775 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61776 new_path=`$CYGPATH -u "$path"` 61777 61778 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61779 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61780 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61781 # "foo.exe" is OK but "foo" is an error. 61782 # 61783 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61784 # It is also a way to make sure we got the proper file name for the real test later on. 61785 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61786 if test "x$test_shortpath" = x; then 61787 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61788 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61789 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61790 fi 61791 61792 # Call helper function which possibly converts this using DOS-style short mode. 61793 # If so, the updated path is stored in $new_path. 61794 61795 input_path="$new_path" 61796 # Check if we need to convert this using DOS-style short mode. If the path 61797 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61798 # take no chances and rewrite it. 61799 # Note: m4 eats our [], so we need to use [ and ] instead. 61800 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61801 if test "x$has_forbidden_chars" != x; then 61802 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61803 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61804 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61805 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61806 # Going to short mode and back again did indeed matter. Since short mode is 61807 # case insensitive, let's make it lowercase to improve readability. 61808 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61809 # Now convert it back to Unix-style (cygpath) 61810 input_path=`$CYGPATH -u "$shortmode_path"` 61811 new_path="$input_path" 61812 fi 61813 fi 61814 61815 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61816 if test "x$test_cygdrive_prefix" = x; then 61817 # As a simple fix, exclude /usr/bin since it's not a real path. 61818 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61819 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61820 # a path prefixed by /cygdrive for fixpath to work. 61821 new_path="$CYGWIN_ROOT_PATH$input_path" 61822 fi 61823 fi 61824 61825 61826 if test "x$path" != "x$new_path"; then 61827 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61828 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61829 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61830 fi 61831 61832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61833 61834 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61835 has_colon=`$ECHO $path | $GREP ^.:` 61836 new_path="$path" 61837 if test "x$has_colon" = x; then 61838 # Not in mixed or Windows style, start by that. 61839 new_path=`cmd //c echo $path` 61840 fi 61841 61842 61843 input_path="$new_path" 61844 # Check if we need to convert this using DOS-style short mode. If the path 61845 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61846 # take no chances and rewrite it. 61847 # Note: m4 eats our [], so we need to use [ and ] instead. 61848 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61849 if test "x$has_forbidden_chars" != x; then 61850 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61851 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61852 fi 61853 61854 61855 windows_path="$new_path" 61856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61857 unix_path=`$CYGPATH -u "$windows_path"` 61858 new_path="$unix_path" 61859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61860 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61861 new_path="$unix_path" 61862 fi 61863 61864 if test "x$path" != "x$new_path"; then 61865 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61866 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61867 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61868 fi 61869 61870 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61871 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61872 61873 else 61874 # We're on a unix platform. Hooray! :) 61875 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61876 has_space=`$ECHO "$path" | $GREP " "` 61877 if test "x$has_space" != x; then 61878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61879 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61880 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61881 fi 61882 61883 # Use eval to expand a potential ~ 61884 eval path="$path" 61885 if test ! -f "$path" && test ! -d "$path"; then 61886 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61887 fi 61888 61889 if test -d "$path"; then 61890 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61891 else 61892 dir="`$DIRNAME "$path"`" 61893 base="`$BASENAME "$path"`" 61894 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61895 fi 61896 fi 61897 fi 61898 61899 61900 # Only process if variable expands to non-empty 61901 61902 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61904 61905 # Input might be given as Windows format, start by converting to 61906 # unix format. 61907 path="$POTENTIAL_FREETYPE_LIB_PATH" 61908 new_path=`$CYGPATH -u "$path"` 61909 61910 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61911 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61912 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61913 # "foo.exe" is OK but "foo" is an error. 61914 # 61915 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61916 # It is also a way to make sure we got the proper file name for the real test later on. 61917 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61918 if test "x$test_shortpath" = x; then 61919 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61920 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61921 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61922 fi 61923 61924 # Call helper function which possibly converts this using DOS-style short mode. 61925 # If so, the updated path is stored in $new_path. 61926 61927 input_path="$new_path" 61928 # Check if we need to convert this using DOS-style short mode. If the path 61929 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61930 # take no chances and rewrite it. 61931 # Note: m4 eats our [], so we need to use [ and ] instead. 61932 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61933 if test "x$has_forbidden_chars" != x; then 61934 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61935 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61936 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61937 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61938 # Going to short mode and back again did indeed matter. Since short mode is 61939 # case insensitive, let's make it lowercase to improve readability. 61940 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61941 # Now convert it back to Unix-style (cygpath) 61942 input_path=`$CYGPATH -u "$shortmode_path"` 61943 new_path="$input_path" 61944 fi 61945 fi 61946 61947 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61948 if test "x$test_cygdrive_prefix" = x; then 61949 # As a simple fix, exclude /usr/bin since it's not a real path. 61950 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61951 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61952 # a path prefixed by /cygdrive for fixpath to work. 61953 new_path="$CYGWIN_ROOT_PATH$input_path" 61954 fi 61955 fi 61956 61957 61958 if test "x$path" != "x$new_path"; then 61959 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61960 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61961 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61962 fi 61963 61964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61965 61966 path="$POTENTIAL_FREETYPE_LIB_PATH" 61967 has_colon=`$ECHO $path | $GREP ^.:` 61968 new_path="$path" 61969 if test "x$has_colon" = x; then 61970 # Not in mixed or Windows style, start by that. 61971 new_path=`cmd //c echo $path` 61972 fi 61973 61974 61975 input_path="$new_path" 61976 # Check if we need to convert this using DOS-style short mode. If the path 61977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61978 # take no chances and rewrite it. 61979 # Note: m4 eats our [], so we need to use [ and ] instead. 61980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61981 if test "x$has_forbidden_chars" != x; then 61982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61983 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61984 fi 61985 61986 61987 windows_path="$new_path" 61988 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61989 unix_path=`$CYGPATH -u "$windows_path"` 61990 new_path="$unix_path" 61991 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61992 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61993 new_path="$unix_path" 61994 fi 61995 61996 if test "x$path" != "x$new_path"; then 61997 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61998 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61999 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62000 fi 62001 62002 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62003 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62004 62005 else 62006 # We're on a unix platform. Hooray! :) 62007 path="$POTENTIAL_FREETYPE_LIB_PATH" 62008 has_space=`$ECHO "$path" | $GREP " "` 62009 if test "x$has_space" != x; then 62010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62011 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62012 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62013 fi 62014 62015 # Use eval to expand a potential ~ 62016 eval path="$path" 62017 if test ! -f "$path" && test ! -d "$path"; then 62018 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62019 fi 62020 62021 if test -d "$path"; then 62022 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62023 else 62024 dir="`$DIRNAME "$path"`" 62025 base="`$BASENAME "$path"`" 62026 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62027 fi 62028 fi 62029 fi 62030 62031 62032 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62034 $as_echo_n "checking for freetype includes... " >&6; } 62035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62036 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62037 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62039 $as_echo_n "checking for freetype libraries... " >&6; } 62040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62041 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62042 fi 62043 62044 else 62045 62046 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62047 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 62048 METHOD="well-known location" 62049 62050 # Let's start with an optimistic view of the world :-) 62051 FOUND_FREETYPE=yes 62052 62053 # First look for the canonical freetype main include file ft2build.h. 62054 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62055 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62056 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62057 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62058 # Fail. 62059 FOUND_FREETYPE=no 62060 fi 62061 fi 62062 62063 if test "x$FOUND_FREETYPE" = xyes; then 62064 # Include file found, let's continue the sanity check. 62065 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62066 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62067 62068 # Reset to default value 62069 FREETYPE_BASE_NAME=freetype 62070 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62071 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62072 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 62073 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62074 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62075 # for the .6 version explicitly. 62076 FREETYPE_BASE_NAME=freetype.6 62077 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62078 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62079 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62080 else 62081 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62082 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62083 FOUND_FREETYPE=no 62084 fi 62085 else 62086 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62087 # On Windows, we will need both .lib and .dll file. 62088 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62089 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62090 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62091 FOUND_FREETYPE=no 62092 fi 62093 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62094 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62095 # Found lib in isa dir, use that instead. 62096 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62097 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62098 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62099 fi 62100 fi 62101 fi 62102 62103 if test "x$FOUND_FREETYPE" = xyes; then 62104 62105 # Only process if variable expands to non-empty 62106 62107 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62109 62110 # Input might be given as Windows format, start by converting to 62111 # unix format. 62112 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62113 new_path=`$CYGPATH -u "$path"` 62114 62115 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62116 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62117 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62118 # "foo.exe" is OK but "foo" is an error. 62119 # 62120 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62121 # It is also a way to make sure we got the proper file name for the real test later on. 62122 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62123 if test "x$test_shortpath" = x; then 62124 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62125 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62126 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62127 fi 62128 62129 # Call helper function which possibly converts this using DOS-style short mode. 62130 # If so, the updated path is stored in $new_path. 62131 62132 input_path="$new_path" 62133 # Check if we need to convert this using DOS-style short mode. If the path 62134 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62135 # take no chances and rewrite it. 62136 # Note: m4 eats our [], so we need to use [ and ] instead. 62137 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62138 if test "x$has_forbidden_chars" != x; then 62139 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62140 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62141 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62142 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62143 # Going to short mode and back again did indeed matter. Since short mode is 62144 # case insensitive, let's make it lowercase to improve readability. 62145 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62146 # Now convert it back to Unix-style (cygpath) 62147 input_path=`$CYGPATH -u "$shortmode_path"` 62148 new_path="$input_path" 62149 fi 62150 fi 62151 62152 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62153 if test "x$test_cygdrive_prefix" = x; then 62154 # As a simple fix, exclude /usr/bin since it's not a real path. 62155 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62156 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62157 # a path prefixed by /cygdrive for fixpath to work. 62158 new_path="$CYGWIN_ROOT_PATH$input_path" 62159 fi 62160 fi 62161 62162 62163 if test "x$path" != "x$new_path"; then 62164 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62165 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62166 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62167 fi 62168 62169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62170 62171 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62172 has_colon=`$ECHO $path | $GREP ^.:` 62173 new_path="$path" 62174 if test "x$has_colon" = x; then 62175 # Not in mixed or Windows style, start by that. 62176 new_path=`cmd //c echo $path` 62177 fi 62178 62179 62180 input_path="$new_path" 62181 # Check if we need to convert this using DOS-style short mode. If the path 62182 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62183 # take no chances and rewrite it. 62184 # Note: m4 eats our [], so we need to use [ and ] instead. 62185 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62186 if test "x$has_forbidden_chars" != x; then 62187 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62188 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62189 fi 62190 62191 62192 windows_path="$new_path" 62193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62194 unix_path=`$CYGPATH -u "$windows_path"` 62195 new_path="$unix_path" 62196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62198 new_path="$unix_path" 62199 fi 62200 62201 if test "x$path" != "x$new_path"; then 62202 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62203 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62204 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62205 fi 62206 62207 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62208 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62209 62210 else 62211 # We're on a unix platform. Hooray! :) 62212 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62213 has_space=`$ECHO "$path" | $GREP " "` 62214 if test "x$has_space" != x; then 62215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62216 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62217 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62218 fi 62219 62220 # Use eval to expand a potential ~ 62221 eval path="$path" 62222 if test ! -f "$path" && test ! -d "$path"; then 62223 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62224 fi 62225 62226 if test -d "$path"; then 62227 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62228 else 62229 dir="`$DIRNAME "$path"`" 62230 base="`$BASENAME "$path"`" 62231 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62232 fi 62233 fi 62234 fi 62235 62236 62237 # Only process if variable expands to non-empty 62238 62239 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62240 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62241 62242 # Input might be given as Windows format, start by converting to 62243 # unix format. 62244 path="$POTENTIAL_FREETYPE_LIB_PATH" 62245 new_path=`$CYGPATH -u "$path"` 62246 62247 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62248 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62249 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62250 # "foo.exe" is OK but "foo" is an error. 62251 # 62252 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62253 # It is also a way to make sure we got the proper file name for the real test later on. 62254 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62255 if test "x$test_shortpath" = x; then 62256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62257 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62258 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62259 fi 62260 62261 # Call helper function which possibly converts this using DOS-style short mode. 62262 # If so, the updated path is stored in $new_path. 62263 62264 input_path="$new_path" 62265 # Check if we need to convert this using DOS-style short mode. If the path 62266 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62267 # take no chances and rewrite it. 62268 # Note: m4 eats our [], so we need to use [ and ] instead. 62269 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62270 if test "x$has_forbidden_chars" != x; then 62271 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62272 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62273 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62274 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62275 # Going to short mode and back again did indeed matter. Since short mode is 62276 # case insensitive, let's make it lowercase to improve readability. 62277 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62278 # Now convert it back to Unix-style (cygpath) 62279 input_path=`$CYGPATH -u "$shortmode_path"` 62280 new_path="$input_path" 62281 fi 62282 fi 62283 62284 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62285 if test "x$test_cygdrive_prefix" = x; then 62286 # As a simple fix, exclude /usr/bin since it's not a real path. 62287 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62288 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62289 # a path prefixed by /cygdrive for fixpath to work. 62290 new_path="$CYGWIN_ROOT_PATH$input_path" 62291 fi 62292 fi 62293 62294 62295 if test "x$path" != "x$new_path"; then 62296 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62297 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62298 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62299 fi 62300 62301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62302 62303 path="$POTENTIAL_FREETYPE_LIB_PATH" 62304 has_colon=`$ECHO $path | $GREP ^.:` 62305 new_path="$path" 62306 if test "x$has_colon" = x; then 62307 # Not in mixed or Windows style, start by that. 62308 new_path=`cmd //c echo $path` 62309 fi 62310 62311 62312 input_path="$new_path" 62313 # Check if we need to convert this using DOS-style short mode. If the path 62314 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62315 # take no chances and rewrite it. 62316 # Note: m4 eats our [], so we need to use [ and ] instead. 62317 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62318 if test "x$has_forbidden_chars" != x; then 62319 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62320 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62321 fi 62322 62323 62324 windows_path="$new_path" 62325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62326 unix_path=`$CYGPATH -u "$windows_path"` 62327 new_path="$unix_path" 62328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62330 new_path="$unix_path" 62331 fi 62332 62333 if test "x$path" != "x$new_path"; then 62334 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62335 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62336 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62337 fi 62338 62339 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62340 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62341 62342 else 62343 # We're on a unix platform. Hooray! :) 62344 path="$POTENTIAL_FREETYPE_LIB_PATH" 62345 has_space=`$ECHO "$path" | $GREP " "` 62346 if test "x$has_space" != x; then 62347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62348 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62349 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62350 fi 62351 62352 # Use eval to expand a potential ~ 62353 eval path="$path" 62354 if test ! -f "$path" && test ! -d "$path"; then 62355 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62356 fi 62357 62358 if test -d "$path"; then 62359 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62360 else 62361 dir="`$DIRNAME "$path"`" 62362 base="`$BASENAME "$path"`" 62363 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62364 fi 62365 fi 62366 fi 62367 62368 62369 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62371 $as_echo_n "checking for freetype includes... " >&6; } 62372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62373 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62374 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62376 $as_echo_n "checking for freetype libraries... " >&6; } 62377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62378 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62379 fi 62380 62381 if test "x$FOUND_FREETYPE" != xyes; then 62382 62383 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62384 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 62385 METHOD="well-known location" 62386 62387 # Let's start with an optimistic view of the world :-) 62388 FOUND_FREETYPE=yes 62389 62390 # First look for the canonical freetype main include file ft2build.h. 62391 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62392 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62393 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62394 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62395 # Fail. 62396 FOUND_FREETYPE=no 62397 fi 62398 fi 62399 62400 if test "x$FOUND_FREETYPE" = xyes; then 62401 # Include file found, let's continue the sanity check. 62402 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62403 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62404 62405 # Reset to default value 62406 FREETYPE_BASE_NAME=freetype 62407 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62408 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62409 if test "x$OPENJDK_BUILD_OS" = "xmacosx" && 62410 test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62411 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62412 # for the .6 version explicitly. 62413 FREETYPE_BASE_NAME=freetype.6 62414 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62415 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62416 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62417 else 62418 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62419 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62420 FOUND_FREETYPE=no 62421 fi 62422 else 62423 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62424 # On Windows, we will need both .lib and .dll file. 62425 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62426 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62427 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62428 FOUND_FREETYPE=no 62429 fi 62430 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62431 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62432 # Found lib in isa dir, use that instead. 62433 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62434 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62435 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62436 fi 62437 fi 62438 fi 62439 62440 if test "x$FOUND_FREETYPE" = xyes; then 62441 62442 # Only process if variable expands to non-empty 62443 62444 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62446 62447 # Input might be given as Windows format, start by converting to 62448 # unix format. 62449 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62450 new_path=`$CYGPATH -u "$path"` 62451 62452 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62453 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62454 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62455 # "foo.exe" is OK but "foo" is an error. 62456 # 62457 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62458 # It is also a way to make sure we got the proper file name for the real test later on. 62459 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62460 if test "x$test_shortpath" = x; then 62461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62462 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62463 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62464 fi 62465 62466 # Call helper function which possibly converts this using DOS-style short mode. 62467 # If so, the updated path is stored in $new_path. 62468 62469 input_path="$new_path" 62470 # Check if we need to convert this using DOS-style short mode. If the path 62471 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62472 # take no chances and rewrite it. 62473 # Note: m4 eats our [], so we need to use [ and ] instead. 62474 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62475 if test "x$has_forbidden_chars" != x; then 62476 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62477 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62478 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62479 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62480 # Going to short mode and back again did indeed matter. Since short mode is 62481 # case insensitive, let's make it lowercase to improve readability. 62482 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62483 # Now convert it back to Unix-style (cygpath) 62484 input_path=`$CYGPATH -u "$shortmode_path"` 62485 new_path="$input_path" 62486 fi 62487 fi 62488 62489 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62490 if test "x$test_cygdrive_prefix" = x; then 62491 # As a simple fix, exclude /usr/bin since it's not a real path. 62492 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62493 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62494 # a path prefixed by /cygdrive for fixpath to work. 62495 new_path="$CYGWIN_ROOT_PATH$input_path" 62496 fi 62497 fi 62498 62499 62500 if test "x$path" != "x$new_path"; then 62501 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62503 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62504 fi 62505 62506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62507 62508 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62509 has_colon=`$ECHO $path | $GREP ^.:` 62510 new_path="$path" 62511 if test "x$has_colon" = x; then 62512 # Not in mixed or Windows style, start by that. 62513 new_path=`cmd //c echo $path` 62514 fi 62515 62516 62517 input_path="$new_path" 62518 # Check if we need to convert this using DOS-style short mode. If the path 62519 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62520 # take no chances and rewrite it. 62521 # Note: m4 eats our [], so we need to use [ and ] instead. 62522 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62523 if test "x$has_forbidden_chars" != x; then 62524 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62525 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62526 fi 62527 62528 62529 windows_path="$new_path" 62530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62531 unix_path=`$CYGPATH -u "$windows_path"` 62532 new_path="$unix_path" 62533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62534 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62535 new_path="$unix_path" 62536 fi 62537 62538 if test "x$path" != "x$new_path"; then 62539 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62540 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62541 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62542 fi 62543 62544 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62545 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62546 62547 else 62548 # We're on a unix platform. Hooray! :) 62549 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62550 has_space=`$ECHO "$path" | $GREP " "` 62551 if test "x$has_space" != x; then 62552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62553 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62554 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62555 fi 62556 62557 # Use eval to expand a potential ~ 62558 eval path="$path" 62559 if test ! -f "$path" && test ! -d "$path"; then 62560 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62561 fi 62562 62563 if test -d "$path"; then 62564 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62565 else 62566 dir="`$DIRNAME "$path"`" 62567 base="`$BASENAME "$path"`" 62568 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62569 fi 62570 fi 62571 fi 62572 62573 62574 # Only process if variable expands to non-empty 62575 62576 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62578 62579 # Input might be given as Windows format, start by converting to 62580 # unix format. 62581 path="$POTENTIAL_FREETYPE_LIB_PATH" 62582 new_path=`$CYGPATH -u "$path"` 62583 62584 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62585 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62586 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62587 # "foo.exe" is OK but "foo" is an error. 62588 # 62589 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62590 # It is also a way to make sure we got the proper file name for the real test later on. 62591 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62592 if test "x$test_shortpath" = x; then 62593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62594 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62595 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62596 fi 62597 62598 # Call helper function which possibly converts this using DOS-style short mode. 62599 # If so, the updated path is stored in $new_path. 62600 62601 input_path="$new_path" 62602 # Check if we need to convert this using DOS-style short mode. If the path 62603 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62604 # take no chances and rewrite it. 62605 # Note: m4 eats our [], so we need to use [ and ] instead. 62606 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62607 if test "x$has_forbidden_chars" != x; then 62608 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62609 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62610 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62611 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62612 # Going to short mode and back again did indeed matter. Since short mode is 62613 # case insensitive, let's make it lowercase to improve readability. 62614 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62615 # Now convert it back to Unix-style (cygpath) 62616 input_path=`$CYGPATH -u "$shortmode_path"` 62617 new_path="$input_path" 62618 fi 62619 fi 62620 62621 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62622 if test "x$test_cygdrive_prefix" = x; then 62623 # As a simple fix, exclude /usr/bin since it's not a real path. 62624 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62625 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62626 # a path prefixed by /cygdrive for fixpath to work. 62627 new_path="$CYGWIN_ROOT_PATH$input_path" 62628 fi 62629 fi 62630 62631 62632 if test "x$path" != "x$new_path"; then 62633 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62634 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62635 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62636 fi 62637 62638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62639 62640 path="$POTENTIAL_FREETYPE_LIB_PATH" 62641 has_colon=`$ECHO $path | $GREP ^.:` 62642 new_path="$path" 62643 if test "x$has_colon" = x; then 62644 # Not in mixed or Windows style, start by that. 62645 new_path=`cmd //c echo $path` 62646 fi 62647 62648 62649 input_path="$new_path" 62650 # Check if we need to convert this using DOS-style short mode. If the path 62651 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62652 # take no chances and rewrite it. 62653 # Note: m4 eats our [], so we need to use [ and ] instead. 62654 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62655 if test "x$has_forbidden_chars" != x; then 62656 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62657 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62658 fi 62659 62660 62661 windows_path="$new_path" 62662 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62663 unix_path=`$CYGPATH -u "$windows_path"` 62664 new_path="$unix_path" 62665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62666 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62667 new_path="$unix_path" 62668 fi 62669 62670 if test "x$path" != "x$new_path"; then 62671 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62672 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62673 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62674 fi 62675 62676 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62677 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62678 62679 else 62680 # We're on a unix platform. Hooray! :) 62681 path="$POTENTIAL_FREETYPE_LIB_PATH" 62682 has_space=`$ECHO "$path" | $GREP " "` 62683 if test "x$has_space" != x; then 62684 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62685 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62686 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62687 fi 62688 62689 # Use eval to expand a potential ~ 62690 eval path="$path" 62691 if test ! -f "$path" && test ! -d "$path"; then 62692 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62693 fi 62694 62695 if test -d "$path"; then 62696 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62697 else 62698 dir="`$DIRNAME "$path"`" 62699 base="`$BASENAME "$path"`" 62700 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62701 fi 62702 fi 62703 fi 62704 62705 62706 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62708 $as_echo_n "checking for freetype includes... " >&6; } 62709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62710 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62711 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62713 $as_echo_n "checking for freetype libraries... " >&6; } 62714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62715 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62716 fi 62717 62718 fi 62719 fi 62720 fi 62721 fi 62722 fi # end check in well-known locations 62723 62724 if test "x$FOUND_FREETYPE" != xyes; then 62725 62726 # Print a helpful message on how to acquire the necessary build dependency. 62727 # freetype is the help tag: freetype, cups, alsa etc 62728 MISSING_DEPENDENCY=freetype 62729 62730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62731 cygwin_help $MISSING_DEPENDENCY 62732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62733 msys_help $MISSING_DEPENDENCY 62734 else 62735 PKGHANDLER_COMMAND= 62736 62737 case $PKGHANDLER in 62738 apt-get) 62739 apt_help $MISSING_DEPENDENCY ;; 62740 yum) 62741 yum_help $MISSING_DEPENDENCY ;; 62742 port) 62743 port_help $MISSING_DEPENDENCY ;; 62744 pkgutil) 62745 pkgutil_help $MISSING_DEPENDENCY ;; 62746 pkgadd) 62747 pkgadd_help $MISSING_DEPENDENCY ;; 62748 esac 62749 62750 if test "x$PKGHANDLER_COMMAND" != x; then 62751 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62752 fi 62753 fi 62754 62755 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 62756 fi 62757 fi # end user specified settings 62758 62759 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 62760 if test "x$FREETYPE_CFLAGS" = x; then 62761 62762 # Only process if variable expands to non-empty 62763 62764 if test "x$FREETYPE_INCLUDE_PATH" != x; then 62765 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62766 62767 # Input might be given as Windows format, start by converting to 62768 # unix format. 62769 path="$FREETYPE_INCLUDE_PATH" 62770 new_path=`$CYGPATH -u "$path"` 62771 62772 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62773 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62774 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62775 # "foo.exe" is OK but "foo" is an error. 62776 # 62777 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62778 # It is also a way to make sure we got the proper file name for the real test later on. 62779 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62780 if test "x$test_shortpath" = x; then 62781 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62782 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62783 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 62784 fi 62785 62786 # Call helper function which possibly converts this using DOS-style short mode. 62787 # If so, the updated path is stored in $new_path. 62788 62789 input_path="$new_path" 62790 # Check if we need to convert this using DOS-style short mode. If the path 62791 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62792 # take no chances and rewrite it. 62793 # Note: m4 eats our [], so we need to use [ and ] instead. 62794 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62795 if test "x$has_forbidden_chars" != x; then 62796 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62797 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62798 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62799 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62800 # Going to short mode and back again did indeed matter. Since short mode is 62801 # case insensitive, let's make it lowercase to improve readability. 62802 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62803 # Now convert it back to Unix-style (cygpath) 62804 input_path=`$CYGPATH -u "$shortmode_path"` 62805 new_path="$input_path" 62806 fi 62807 fi 62808 62809 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62810 if test "x$test_cygdrive_prefix" = x; then 62811 # As a simple fix, exclude /usr/bin since it's not a real path. 62812 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62813 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62814 # a path prefixed by /cygdrive for fixpath to work. 62815 new_path="$CYGWIN_ROOT_PATH$input_path" 62816 fi 62817 fi 62818 62819 62820 if test "x$path" != "x$new_path"; then 62821 FREETYPE_INCLUDE_PATH="$new_path" 62822 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62823 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62824 fi 62825 62826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62827 62828 path="$FREETYPE_INCLUDE_PATH" 62829 has_colon=`$ECHO $path | $GREP ^.:` 62830 new_path="$path" 62831 if test "x$has_colon" = x; then 62832 # Not in mixed or Windows style, start by that. 62833 new_path=`cmd //c echo $path` 62834 fi 62835 62836 62837 input_path="$new_path" 62838 # Check if we need to convert this using DOS-style short mode. If the path 62839 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62840 # take no chances and rewrite it. 62841 # Note: m4 eats our [], so we need to use [ and ] instead. 62842 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62843 if test "x$has_forbidden_chars" != x; then 62844 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62845 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62846 fi 62847 62848 62849 windows_path="$new_path" 62850 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62851 unix_path=`$CYGPATH -u "$windows_path"` 62852 new_path="$unix_path" 62853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62854 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62855 new_path="$unix_path" 62856 fi 62857 62858 if test "x$path" != "x$new_path"; then 62859 FREETYPE_INCLUDE_PATH="$new_path" 62860 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62861 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62862 fi 62863 62864 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62865 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62866 62867 else 62868 # We're on a unix platform. Hooray! :) 62869 path="$FREETYPE_INCLUDE_PATH" 62870 has_space=`$ECHO "$path" | $GREP " "` 62871 if test "x$has_space" != x; then 62872 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62873 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62874 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62875 fi 62876 62877 # Use eval to expand a potential ~ 62878 eval path="$path" 62879 if test ! -f "$path" && test ! -d "$path"; then 62880 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62881 fi 62882 62883 if test -d "$path"; then 62884 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62885 else 62886 dir="`$DIRNAME "$path"`" 62887 base="`$BASENAME "$path"`" 62888 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62889 fi 62890 fi 62891 fi 62892 62893 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 62894 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 62895 else 62896 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 62897 fi 62898 fi 62899 62900 if test "x$FREETYPE_LIBS" = x; then 62901 62902 # Only process if variable expands to non-empty 62903 62904 if test "x$FREETYPE_LIB_PATH" != x; then 62905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62906 62907 # Input might be given as Windows format, start by converting to 62908 # unix format. 62909 path="$FREETYPE_LIB_PATH" 62910 new_path=`$CYGPATH -u "$path"` 62911 62912 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62913 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62914 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62915 # "foo.exe" is OK but "foo" is an error. 62916 # 62917 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62918 # It is also a way to make sure we got the proper file name for the real test later on. 62919 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62920 if test "x$test_shortpath" = x; then 62921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62922 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62923 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 62924 fi 62925 62926 # Call helper function which possibly converts this using DOS-style short mode. 62927 # If so, the updated path is stored in $new_path. 62928 62929 input_path="$new_path" 62930 # Check if we need to convert this using DOS-style short mode. If the path 62931 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62932 # take no chances and rewrite it. 62933 # Note: m4 eats our [], so we need to use [ and ] instead. 62934 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62935 if test "x$has_forbidden_chars" != x; then 62936 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62937 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62938 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62939 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62940 # Going to short mode and back again did indeed matter. Since short mode is 62941 # case insensitive, let's make it lowercase to improve readability. 62942 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62943 # Now convert it back to Unix-style (cygpath) 62944 input_path=`$CYGPATH -u "$shortmode_path"` 62945 new_path="$input_path" 62946 fi 62947 fi 62948 62949 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62950 if test "x$test_cygdrive_prefix" = x; then 62951 # As a simple fix, exclude /usr/bin since it's not a real path. 62952 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62953 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62954 # a path prefixed by /cygdrive for fixpath to work. 62955 new_path="$CYGWIN_ROOT_PATH$input_path" 62956 fi 62957 fi 62958 62959 62960 if test "x$path" != "x$new_path"; then 62961 FREETYPE_LIB_PATH="$new_path" 62962 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62963 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62964 fi 62965 62966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62967 62968 path="$FREETYPE_LIB_PATH" 62969 has_colon=`$ECHO $path | $GREP ^.:` 62970 new_path="$path" 62971 if test "x$has_colon" = x; then 62972 # Not in mixed or Windows style, start by that. 62973 new_path=`cmd //c echo $path` 62974 fi 62975 62976 62977 input_path="$new_path" 62978 # Check if we need to convert this using DOS-style short mode. If the path 62979 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62980 # take no chances and rewrite it. 62981 # Note: m4 eats our [], so we need to use [ and ] instead. 62982 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62983 if test "x$has_forbidden_chars" != x; then 62984 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62985 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62986 fi 62987 62988 62989 windows_path="$new_path" 62990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62991 unix_path=`$CYGPATH -u "$windows_path"` 62992 new_path="$unix_path" 62993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62994 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62995 new_path="$unix_path" 62996 fi 62997 62998 if test "x$path" != "x$new_path"; then 62999 FREETYPE_LIB_PATH="$new_path" 63000 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 63001 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63002 fi 63003 63004 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63005 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63006 63007 else 63008 # We're on a unix platform. Hooray! :) 63009 path="$FREETYPE_LIB_PATH" 63010 has_space=`$ECHO "$path" | $GREP " "` 63011 if test "x$has_space" != x; then 63012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63013 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63014 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63015 fi 63016 63017 # Use eval to expand a potential ~ 63018 eval path="$path" 63019 if test ! -f "$path" && test ! -d "$path"; then 63020 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63021 fi 63022 63023 if test -d "$path"; then 63024 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63025 else 63026 dir="`$DIRNAME "$path"`" 63027 base="`$BASENAME "$path"`" 63028 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63029 fi 63030 fi 63031 fi 63032 63033 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63034 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 63035 else 63036 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 63037 fi 63038 fi 63039 63040 # Try to compile it 63041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 63042 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 63043 ac_ext=cpp 63044 ac_cpp='$CXXCPP $CPPFLAGS' 63045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 63048 63049 PREV_CXXCFLAGS="$CXXFLAGS" 63050 PREV_LIBS="$LIBS" 63051 PREV_CXX="$CXX" 63052 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 63053 LIBS="$LIBS $FREETYPE_LIBS" 63054 CXX="$FIXPATH $CXX" 63055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63056 /* end confdefs.h. */ 63057 63058 #include<ft2build.h> 63059 #include FT_FREETYPE_H 63060 int main () { 63061 FT_Init_FreeType(NULL); 63062 return 0; 63063 } 63064 63065 _ACEOF 63066 if ac_fn_cxx_try_link "$LINENO"; then : 63067 63068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63069 $as_echo "yes" >&6; } 63070 63071 else 63072 63073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63074 $as_echo "no" >&6; } 63075 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 63076 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 63077 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 63078 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 63079 63080 63081 # Print a helpful message on how to acquire the necessary build dependency. 63082 # freetype is the help tag: freetype, cups, alsa etc 63083 MISSING_DEPENDENCY=freetype 63084 63085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63086 cygwin_help $MISSING_DEPENDENCY 63087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63088 msys_help $MISSING_DEPENDENCY 63089 else 63090 PKGHANDLER_COMMAND= 63091 63092 case $PKGHANDLER in 63093 apt-get) 63094 apt_help $MISSING_DEPENDENCY ;; 63095 yum) 63096 yum_help $MISSING_DEPENDENCY ;; 63097 port) 63098 port_help $MISSING_DEPENDENCY ;; 63099 pkgutil) 63100 pkgutil_help $MISSING_DEPENDENCY ;; 63101 pkgadd) 63102 pkgadd_help $MISSING_DEPENDENCY ;; 63103 esac 63104 63105 if test "x$PKGHANDLER_COMMAND" != x; then 63106 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63107 fi 63108 fi 63109 63110 63111 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 63112 63113 63114 fi 63115 rm -f core conftest.err conftest.$ac_objext \ 63116 conftest$ac_exeext conftest.$ac_ext 63117 CXXCFLAGS="$PREV_CXXFLAGS" 63118 LIBS="$PREV_LIBS" 63119 CXX="$PREV_CXX" 63120 ac_ext=cpp 63121 ac_cpp='$CXXCPP $CPPFLAGS' 63122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 63125 63126 63127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 63128 $as_echo_n "checking if we should bundle freetype... " >&6; } 63129 if test "x$BUNDLE_FREETYPE" = xyes; then 63130 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 63131 fi 63132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 63133 $as_echo "$BUNDLE_FREETYPE" >&6; } 63134 63135 fi # end freetype needed 63136 63137 63138 63139 63140 63141 63142 63143 # Check whether --with-alsa was given. 63144 if test "${with_alsa+set}" = set; then : 63145 withval=$with_alsa; 63146 fi 63147 63148 63149 # Check whether --with-alsa-include was given. 63150 if test "${with_alsa_include+set}" = set; then : 63151 withval=$with_alsa_include; 63152 fi 63153 63154 63155 # Check whether --with-alsa-lib was given. 63156 if test "${with_alsa_lib+set}" = set; then : 63157 withval=$with_alsa_lib; 63158 fi 63159 63160 63161 if test "x$NEEDS_LIB_ALSA" = xfalse; then 63162 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 63163 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 63164 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 63165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 63166 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 63167 fi 63168 ALSA_CFLAGS= 63169 ALSA_LIBS= 63170 else 63171 ALSA_FOUND=no 63172 63173 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 63174 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 63175 fi 63176 63177 if test "x${with_alsa}" != x; then 63178 ALSA_LIBS="-L${with_alsa}/lib -lasound" 63179 ALSA_CFLAGS="-I${with_alsa}/include" 63180 ALSA_FOUND=yes 63181 fi 63182 if test "x${with_alsa_include}" != x; then 63183 ALSA_CFLAGS="-I${with_alsa_include}" 63184 ALSA_FOUND=yes 63185 fi 63186 if test "x${with_alsa_lib}" != x; then 63187 ALSA_LIBS="-L${with_alsa_lib} -lasound" 63188 ALSA_FOUND=yes 63189 fi 63190 # Do not try pkg-config if we have a sysroot set. 63191 if test "x$SYSROOT" = x; then 63192 if test "x$ALSA_FOUND" = xno; then 63193 63194 pkg_failed=no 63195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 63196 $as_echo_n "checking for ALSA... " >&6; } 63197 63198 if test -n "$ALSA_CFLAGS"; then 63199 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 63200 elif test -n "$PKG_CONFIG"; then 63201 if test -n "$PKG_CONFIG" && \ 63202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 63203 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 63204 ac_status=$? 63205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63206 test $ac_status = 0; }; then 63207 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 63208 else 63209 pkg_failed=yes 63210 fi 63211 else 63212 pkg_failed=untried 63213 fi 63214 if test -n "$ALSA_LIBS"; then 63215 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 63216 elif test -n "$PKG_CONFIG"; then 63217 if test -n "$PKG_CONFIG" && \ 63218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 63219 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 63220 ac_status=$? 63221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63222 test $ac_status = 0; }; then 63223 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 63224 else 63225 pkg_failed=yes 63226 fi 63227 else 63228 pkg_failed=untried 63229 fi 63230 63231 63232 63233 if test $pkg_failed = yes; then 63234 63235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63236 _pkg_short_errors_supported=yes 63237 else 63238 _pkg_short_errors_supported=no 63239 fi 63240 if test $_pkg_short_errors_supported = yes; then 63241 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 63242 else 63243 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 63244 fi 63245 # Put the nasty error message in config.log where it belongs 63246 echo "$ALSA_PKG_ERRORS" >&5 63247 63248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63249 $as_echo "no" >&6; } 63250 ALSA_FOUND=no 63251 elif test $pkg_failed = untried; then 63252 ALSA_FOUND=no 63253 else 63254 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 63255 ALSA_LIBS=$pkg_cv_ALSA_LIBS 63256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63257 $as_echo "yes" >&6; } 63258 ALSA_FOUND=yes 63259 fi 63260 fi 63261 fi 63262 if test "x$ALSA_FOUND" = xno; then 63263 for ac_header in alsa/asoundlib.h 63264 do : 63265 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 63266 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 63267 cat >>confdefs.h <<_ACEOF 63268 #define HAVE_ALSA_ASOUNDLIB_H 1 63269 _ACEOF 63270 63271 ALSA_FOUND=yes 63272 ALSA_CFLAGS=-Iignoreme 63273 ALSA_LIBS=-lasound 63274 DEFAULT_ALSA=yes 63275 63276 else 63277 ALSA_FOUND=no 63278 63279 fi 63280 63281 done 63282 63283 fi 63284 if test "x$ALSA_FOUND" = xno; then 63285 63286 # Print a helpful message on how to acquire the necessary build dependency. 63287 # alsa is the help tag: freetype, cups, alsa etc 63288 MISSING_DEPENDENCY=alsa 63289 63290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63291 cygwin_help $MISSING_DEPENDENCY 63292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63293 msys_help $MISSING_DEPENDENCY 63294 else 63295 PKGHANDLER_COMMAND= 63296 63297 case $PKGHANDLER in 63298 apt-get) 63299 apt_help $MISSING_DEPENDENCY ;; 63300 yum) 63301 yum_help $MISSING_DEPENDENCY ;; 63302 port) 63303 port_help $MISSING_DEPENDENCY ;; 63304 pkgutil) 63305 pkgutil_help $MISSING_DEPENDENCY ;; 63306 pkgadd) 63307 pkgadd_help $MISSING_DEPENDENCY ;; 63308 esac 63309 63310 if test "x$PKGHANDLER_COMMAND" != x; then 63311 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63312 fi 63313 fi 63314 63315 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 63316 fi 63317 fi 63318 63319 63320 63321 63322 63323 63324 # Check whether --with-libffi was given. 63325 if test "${with_libffi+set}" = set; then : 63326 withval=$with_libffi; 63327 fi 63328 63329 63330 # Check whether --with-libffi-include was given. 63331 if test "${with_libffi_include+set}" = set; then : 63332 withval=$with_libffi_include; 63333 fi 63334 63335 63336 # Check whether --with-libffi-lib was given. 63337 if test "${with_libffi_lib+set}" = set; then : 63338 withval=$with_libffi_lib; 63339 fi 63340 63341 # Check whether --enable-libffi-bundling was given. 63342 if test "${enable_libffi_bundling+set}" = set; then : 63343 enableval=$enable_libffi_bundling; 63344 fi 63345 63346 63347 if test "x$NEEDS_LIB_FFI" = xfalse; then 63348 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 63349 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 63350 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 63351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 63352 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 63353 fi 63354 LIBFFI_CFLAGS= 63355 LIBFFI_LIBS= 63356 else 63357 LIBFFI_FOUND=no 63358 63359 BUNDLE_LIBFFI="$enable_libffi_bundling" 63360 if test "x$BUNDLE_LIBFFI" = x; then 63361 # If not specified, default is to bundle libffi on Android/Zero VM 63362 if test "x$OPENJDK_TARGET_OS" = xandroid && [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 63363 BUNDLE_LIBFFI=yes 63364 fi 63365 fi 63366 63367 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 63368 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 63369 fi 63370 63371 if test "x${with_libffi}" != x; then 63372 LIBFFI_LIB_PATH=${with_libffi}/lib 63373 LIBFFI_LIBS="-L${LIBFFI_LIB_PATH} -lffi" 63374 LIBFFI_CFLAGS="-I${with_libffi}/include" 63375 LIBFFI_FOUND=yes 63376 fi 63377 if test "x${with_libffi_include}" != x; then 63378 LIBFFI_CFLAGS="-I${with_libffi_include}" 63379 LIBFFI_FOUND=yes 63380 fi 63381 if test "x${with_libffi_lib}" != x; then 63382 LIBFFI_LIB_PATH=${with_libffi_lib} 63383 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 63384 LIBFFI_FOUND=yes 63385 fi 63386 # Do not try pkg-config if we have a sysroot set. 63387 if test "x$SYSROOT" = x; then 63388 if test "x$LIBFFI_FOUND" = xno; then 63389 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 63390 63391 pkg_failed=no 63392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 63393 $as_echo_n "checking for LIBFFI... " >&6; } 63394 63395 if test -n "$LIBFFI_CFLAGS"; then 63396 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 63397 elif test -n "$PKG_CONFIG"; then 63398 if test -n "$PKG_CONFIG" && \ 63399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 63400 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 63401 ac_status=$? 63402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63403 test $ac_status = 0; }; then 63404 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 63405 else 63406 pkg_failed=yes 63407 fi 63408 else 63409 pkg_failed=untried 63410 fi 63411 if test -n "$LIBFFI_LIBS"; then 63412 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 63413 elif test -n "$PKG_CONFIG"; then 63414 if test -n "$PKG_CONFIG" && \ 63415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 63416 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 63417 ac_status=$? 63418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63419 test $ac_status = 0; }; then 63420 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 63421 else 63422 pkg_failed=yes 63423 fi 63424 else 63425 pkg_failed=untried 63426 fi 63427 63428 63429 63430 if test $pkg_failed = yes; then 63431 63432 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63433 _pkg_short_errors_supported=yes 63434 else 63435 _pkg_short_errors_supported=no 63436 fi 63437 if test $_pkg_short_errors_supported = yes; then 63438 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 63439 else 63440 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 63441 fi 63442 # Put the nasty error message in config.log where it belongs 63443 echo "$LIBFFI_PKG_ERRORS" >&5 63444 63445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63446 $as_echo "no" >&6; } 63447 LIBFFI_FOUND=no 63448 elif test $pkg_failed = untried; then 63449 LIBFFI_FOUND=no 63450 else 63451 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 63452 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 63453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63454 $as_echo "yes" >&6; } 63455 LIBFFI_FOUND=yes 63456 fi 63457 fi 63458 fi 63459 if test "x$LIBFFI_FOUND" = xno; then 63460 for ac_header in ffi.h 63461 do : 63462 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 63463 if test "x$ac_cv_header_ffi_h" = xyes; then : 63464 cat >>confdefs.h <<_ACEOF 63465 #define HAVE_FFI_H 1 63466 _ACEOF 63467 63468 LIBFFI_FOUND=yes 63469 LIBFFI_CFLAGS= 63470 LIBFFI_LIBS=-lffi 63471 63472 else 63473 LIBFFI_FOUND=no 63474 63475 fi 63476 63477 done 63478 63479 fi 63480 if test "x$LIBFFI_FOUND" = xno; then 63481 63482 # Print a helpful message on how to acquire the necessary build dependency. 63483 # ffi is the help tag: freetype, cups, alsa etc 63484 MISSING_DEPENDENCY=ffi 63485 63486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63487 cygwin_help $MISSING_DEPENDENCY 63488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63489 msys_help $MISSING_DEPENDENCY 63490 else 63491 PKGHANDLER_COMMAND= 63492 63493 case $PKGHANDLER in 63494 apt-get) 63495 apt_help $MISSING_DEPENDENCY ;; 63496 yum) 63497 yum_help $MISSING_DEPENDENCY ;; 63498 port) 63499 port_help $MISSING_DEPENDENCY ;; 63500 pkgutil) 63501 pkgutil_help $MISSING_DEPENDENCY ;; 63502 pkgadd) 63503 pkgadd_help $MISSING_DEPENDENCY ;; 63504 esac 63505 63506 if test "x$PKGHANDLER_COMMAND" != x; then 63507 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63508 fi 63509 fi 63510 63511 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 63512 fi 63513 63514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 63515 $as_echo_n "checking if libffi works... " >&6; } 63516 ac_ext=c 63517 ac_cpp='$CPP $CPPFLAGS' 63518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63520 ac_compiler_gnu=$ac_cv_c_compiler_gnu 63521 63522 OLD_CFLAGS="$CFLAGS" 63523 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 63524 OLD_LIBS="$LIBS" 63525 LIBS="$LIBS $LIBFFI_LIBS" 63526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63527 /* end confdefs.h. */ 63528 #include <ffi.h> 63529 int 63530 main () 63531 { 63532 63533 ffi_call(NULL, NULL, NULL, NULL); 63534 return 0; 63535 63536 ; 63537 return 0; 63538 } 63539 _ACEOF 63540 if ac_fn_c_try_link "$LINENO"; then : 63541 LIBFFI_WORKS=yes 63542 else 63543 LIBFFI_WORKS=no 63544 63545 fi 63546 rm -f core conftest.err conftest.$ac_objext \ 63547 conftest$ac_exeext conftest.$ac_ext 63548 CFLAGS="$OLD_CFLAGS" 63549 LIBS="$OLD_LIBS" 63550 ac_ext=cpp 63551 ac_cpp='$CXXCPP $CPPFLAGS' 63552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 63555 63556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 63557 $as_echo "$LIBFFI_WORKS" >&6; } 63558 63559 if test "x$LIBFFI_WORKS" = xno; then 63560 63561 # Print a helpful message on how to acquire the necessary build dependency. 63562 # ffi is the help tag: freetype, cups, alsa etc 63563 MISSING_DEPENDENCY=ffi 63564 63565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63566 cygwin_help $MISSING_DEPENDENCY 63567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63568 msys_help $MISSING_DEPENDENCY 63569 else 63570 PKGHANDLER_COMMAND= 63571 63572 case $PKGHANDLER in 63573 apt-get) 63574 apt_help $MISSING_DEPENDENCY ;; 63575 yum) 63576 yum_help $MISSING_DEPENDENCY ;; 63577 port) 63578 port_help $MISSING_DEPENDENCY ;; 63579 pkgutil) 63580 pkgutil_help $MISSING_DEPENDENCY ;; 63581 pkgadd) 63582 pkgadd_help $MISSING_DEPENDENCY ;; 63583 esac 63584 63585 if test "x$PKGHANDLER_COMMAND" != x; then 63586 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63587 fi 63588 fi 63589 63590 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 63591 fi 63592 63593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle libffi" >&5 63594 $as_echo_n "checking if we should bundle libffi... " >&6; } 63595 if test "x$BUNDLE_LIBFFI" = xyes; then 63596 if test "x$LIBFFI_LIB_PATH" != x; then 63597 LIBFFI_BUNDLE_LIB_PATH="$LIBFFI_LIB_PATH" 63598 else 63599 as_fn_error $? "BUNDLE_LIBFFI set but no LIBFFI_LIB_PATH" "$LINENO" 5 63600 fi 63601 fi 63602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_LIBFFI" >&5 63603 $as_echo "$BUNDLE_LIBFFI" >&6; } 63604 63605 fi 63606 63607 63608 63609 63610 63611 63612 if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 63613 # Extract the first word of "llvm-config", so it can be a program name with args. 63614 set dummy llvm-config; ac_word=$2 63615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 63616 $as_echo_n "checking for $ac_word... " >&6; } 63617 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 63618 $as_echo_n "(cached) " >&6 63619 else 63620 if test -n "$LLVM_CONFIG"; then 63621 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 63622 else 63623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 63624 for as_dir in $PATH 63625 do 63626 IFS=$as_save_IFS 63627 test -z "$as_dir" && as_dir=. 63628 for ac_exec_ext in '' $ac_executable_extensions; do 63629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 63630 ac_cv_prog_LLVM_CONFIG="llvm-config" 63631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 63632 break 2 63633 fi 63634 done 63635 done 63636 IFS=$as_save_IFS 63637 63638 fi 63639 fi 63640 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 63641 if test -n "$LLVM_CONFIG"; then 63642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 63643 $as_echo "$LLVM_CONFIG" >&6; } 63644 else 63645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63646 $as_echo "no" >&6; } 63647 fi 63648 63649 63650 63651 if test "x$LLVM_CONFIG" != xllvm-config; then 63652 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 63653 fi 63654 63655 llvm_components="jit mcjit engine nativecodegen native" 63656 unset LLVM_CFLAGS 63657 for flag in $("$LLVM_CONFIG" --cxxflags); do 63658 if echo "${flag}" | grep -q '^-[ID]'; then 63659 if test "${flag}" != "-D_DEBUG" ; then 63660 if test "${LLVM_CFLAGS}" != "" ; then 63661 LLVM_CFLAGS="${LLVM_CFLAGS} " 63662 fi 63663 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 63664 fi 63665 fi 63666 done 63667 llvm_version=$("${LLVM_CONFIG}" --version | $SED 's/\.//; s/svn.*//') 63668 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 63669 63670 unset LLVM_LDFLAGS 63671 for flag in $("${LLVM_CONFIG}" --ldflags); do 63672 if echo "${flag}" | grep -q '^-L'; then 63673 if test "${LLVM_LDFLAGS}" != ""; then 63674 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 63675 fi 63676 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 63677 fi 63678 done 63679 63680 unset LLVM_LIBS 63681 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 63682 if echo "${flag}" | grep -q '^-l'; then 63683 if test "${LLVM_LIBS}" != ""; then 63684 LLVM_LIBS="${LLVM_LIBS} " 63685 fi 63686 LLVM_LIBS="${LLVM_LIBS}${flag}" 63687 fi 63688 done 63689 63690 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 63691 # always properly detect -ltinfo 63692 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 63693 63694 63695 63696 63697 fi 63698 63699 63700 63701 # Check whether --with-libjpeg was given. 63702 if test "${with_libjpeg+set}" = set; then : 63703 withval=$with_libjpeg; 63704 fi 63705 63706 63707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 63708 $as_echo_n "checking for which libjpeg to use... " >&6; } 63709 # default is bundled 63710 DEFAULT_LIBJPEG=bundled 63711 # if user didn't specify, use DEFAULT_LIBJPEG 63712 if test "x${with_libjpeg}" = "x"; then 63713 with_libjpeg=${DEFAULT_LIBJPEG} 63714 fi 63715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 63716 $as_echo "${with_libjpeg}" >&6; } 63717 63718 if test "x${with_libjpeg}" = "xbundled"; then 63719 USE_EXTERNAL_LIBJPEG=false 63720 elif test "x${with_libjpeg}" = "xsystem"; then 63721 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 63722 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 63723 63724 else 63725 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 63726 fi 63727 63728 63729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 63730 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 63731 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 63732 $as_echo_n "(cached) " >&6 63733 else 63734 ac_check_lib_save_LIBS=$LIBS 63735 LIBS="-ljpeg $LIBS" 63736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63737 /* end confdefs.h. */ 63738 63739 /* Override any GCC internal prototype to avoid an error. 63740 Use char because int might match the return type of a GCC 63741 builtin and then its argument prototype would still apply. */ 63742 #ifdef __cplusplus 63743 extern "C" 63744 #endif 63745 char jpeg_CreateDecompress (); 63746 int 63747 main () 63748 { 63749 return jpeg_CreateDecompress (); 63750 ; 63751 return 0; 63752 } 63753 _ACEOF 63754 if ac_fn_cxx_try_link "$LINENO"; then : 63755 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 63756 else 63757 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 63758 fi 63759 rm -f core conftest.err conftest.$ac_objext \ 63760 conftest$ac_exeext conftest.$ac_ext 63761 LIBS=$ac_check_lib_save_LIBS 63762 fi 63763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 63764 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 63765 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 63766 cat >>confdefs.h <<_ACEOF 63767 #define HAVE_LIBJPEG 1 63768 _ACEOF 63769 63770 LIBS="-ljpeg $LIBS" 63771 63772 else 63773 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 63774 fi 63775 63776 63777 USE_EXTERNAL_LIBJPEG=true 63778 else 63779 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 63780 fi 63781 63782 63783 63784 63785 63786 # Check whether --with-giflib was given. 63787 if test "${with_giflib+set}" = set; then : 63788 withval=$with_giflib; 63789 fi 63790 63791 63792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 63793 $as_echo_n "checking for which giflib to use... " >&6; } 63794 # default is bundled 63795 DEFAULT_GIFLIB=bundled 63796 # if user didn't specify, use DEFAULT_GIFLIB 63797 if test "x${with_giflib}" = "x"; then 63798 with_giflib=${DEFAULT_GIFLIB} 63799 fi 63800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 63801 $as_echo "${with_giflib}" >&6; } 63802 63803 if test "x${with_giflib}" = "xbundled"; then 63804 USE_EXTERNAL_LIBGIF=false 63805 elif test "x${with_giflib}" = "xsystem"; then 63806 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 63807 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 63808 63809 else 63810 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 63811 fi 63812 63813 63814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 63815 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 63816 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 63817 $as_echo_n "(cached) " >&6 63818 else 63819 ac_check_lib_save_LIBS=$LIBS 63820 LIBS="-lgif $LIBS" 63821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63822 /* end confdefs.h. */ 63823 63824 /* Override any GCC internal prototype to avoid an error. 63825 Use char because int might match the return type of a GCC 63826 builtin and then its argument prototype would still apply. */ 63827 #ifdef __cplusplus 63828 extern "C" 63829 #endif 63830 char DGifGetCode (); 63831 int 63832 main () 63833 { 63834 return DGifGetCode (); 63835 ; 63836 return 0; 63837 } 63838 _ACEOF 63839 if ac_fn_cxx_try_link "$LINENO"; then : 63840 ac_cv_lib_gif_DGifGetCode=yes 63841 else 63842 ac_cv_lib_gif_DGifGetCode=no 63843 fi 63844 rm -f core conftest.err conftest.$ac_objext \ 63845 conftest$ac_exeext conftest.$ac_ext 63846 LIBS=$ac_check_lib_save_LIBS 63847 fi 63848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 63849 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 63850 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 63851 cat >>confdefs.h <<_ACEOF 63852 #define HAVE_LIBGIF 1 63853 _ACEOF 63854 63855 LIBS="-lgif $LIBS" 63856 63857 else 63858 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 63859 fi 63860 63861 63862 USE_EXTERNAL_LIBGIF=true 63863 else 63864 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 63865 fi 63866 63867 63868 63869 63870 63871 # Check whether --with-libpng was given. 63872 if test "${with_libpng+set}" = set; then : 63873 withval=$with_libpng; 63874 fi 63875 63876 63877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 63878 $as_echo_n "checking for which libpng to use... " >&6; } 63879 63880 # default is bundled 63881 DEFAULT_LIBPNG=bundled 63882 # if user didn't specify, use DEFAULT_LIBPNG 63883 if test "x${with_libpng}" = "x"; then 63884 with_libpng=${DEFAULT_LIBPNG} 63885 fi 63886 63887 if test "x${with_libpng}" = "xbundled"; then 63888 USE_EXTERNAL_LIBPNG=false 63889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63890 $as_echo "bundled" >&6; } 63891 elif test "x${with_libpng}" = "xsystem"; then 63892 63893 pkg_failed=no 63894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 63895 $as_echo_n "checking for PNG... " >&6; } 63896 63897 if test -n "$PNG_CFLAGS"; then 63898 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 63899 elif test -n "$PKG_CONFIG"; then 63900 if test -n "$PKG_CONFIG" && \ 63901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63902 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63903 ac_status=$? 63904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63905 test $ac_status = 0; }; then 63906 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 63907 else 63908 pkg_failed=yes 63909 fi 63910 else 63911 pkg_failed=untried 63912 fi 63913 if test -n "$PNG_LIBS"; then 63914 pkg_cv_PNG_LIBS="$PNG_LIBS" 63915 elif test -n "$PKG_CONFIG"; then 63916 if test -n "$PKG_CONFIG" && \ 63917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63918 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63919 ac_status=$? 63920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63921 test $ac_status = 0; }; then 63922 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 63923 else 63924 pkg_failed=yes 63925 fi 63926 else 63927 pkg_failed=untried 63928 fi 63929 63930 63931 63932 if test $pkg_failed = yes; then 63933 63934 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63935 _pkg_short_errors_supported=yes 63936 else 63937 _pkg_short_errors_supported=no 63938 fi 63939 if test $_pkg_short_errors_supported = yes; then 63940 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 63941 else 63942 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 63943 fi 63944 # Put the nasty error message in config.log where it belongs 63945 echo "$PNG_PKG_ERRORS" >&5 63946 63947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63948 $as_echo "no" >&6; } 63949 LIBPNG_FOUND=no 63950 elif test $pkg_failed = untried; then 63951 LIBPNG_FOUND=no 63952 else 63953 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 63954 PNG_LIBS=$pkg_cv_PNG_LIBS 63955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63956 $as_echo "yes" >&6; } 63957 LIBPNG_FOUND=yes 63958 fi 63959 if test "x${LIBPNG_FOUND}" = "xyes"; then 63960 USE_EXTERNAL_LIBPNG=true 63961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63962 $as_echo "system" >&6; } 63963 else 63964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63965 $as_echo "system not found" >&6; } 63966 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 63967 fi 63968 else 63969 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 63970 fi 63971 63972 63973 63974 63975 63976 # Check whether --with-zlib was given. 63977 if test "${with_zlib+set}" = set; then : 63978 withval=$with_zlib; 63979 fi 63980 63981 63982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 63983 $as_echo_n "checking for compress in -lz... " >&6; } 63984 if ${ac_cv_lib_z_compress+:} false; then : 63985 $as_echo_n "(cached) " >&6 63986 else 63987 ac_check_lib_save_LIBS=$LIBS 63988 LIBS="-lz $LIBS" 63989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63990 /* end confdefs.h. */ 63991 63992 /* Override any GCC internal prototype to avoid an error. 63993 Use char because int might match the return type of a GCC 63994 builtin and then its argument prototype would still apply. */ 63995 #ifdef __cplusplus 63996 extern "C" 63997 #endif 63998 char compress (); 63999 int 64000 main () 64001 { 64002 return compress (); 64003 ; 64004 return 0; 64005 } 64006 _ACEOF 64007 if ac_fn_cxx_try_link "$LINENO"; then : 64008 ac_cv_lib_z_compress=yes 64009 else 64010 ac_cv_lib_z_compress=no 64011 fi 64012 rm -f core conftest.err conftest.$ac_objext \ 64013 conftest$ac_exeext conftest.$ac_ext 64014 LIBS=$ac_check_lib_save_LIBS 64015 fi 64016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 64017 $as_echo "$ac_cv_lib_z_compress" >&6; } 64018 if test "x$ac_cv_lib_z_compress" = xyes; then : 64019 ZLIB_FOUND=yes 64020 else 64021 ZLIB_FOUND=no 64022 fi 64023 64024 64025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 64026 $as_echo_n "checking for which zlib to use... " >&6; } 64027 64028 DEFAULT_ZLIB=system 64029 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64030 # On windows default is bundled...on others default is system 64031 DEFAULT_ZLIB=bundled 64032 fi 64033 64034 if test "x${ZLIB_FOUND}" != "xyes"; then 64035 # If we don't find any system...set default to bundled 64036 DEFAULT_ZLIB=bundled 64037 fi 64038 64039 # If user didn't specify, use DEFAULT_ZLIB 64040 if test "x${with_zlib}" = "x"; then 64041 with_zlib=${DEFAULT_ZLIB} 64042 fi 64043 64044 if test "x${with_zlib}" = "xbundled"; then 64045 USE_EXTERNAL_LIBZ=false 64046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 64047 $as_echo "bundled" >&6; } 64048 elif test "x${with_zlib}" = "xsystem"; then 64049 if test "x${ZLIB_FOUND}" = "xyes"; then 64050 USE_EXTERNAL_LIBZ=true 64051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 64052 $as_echo "system" >&6; } 64053 else 64054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 64055 $as_echo "system not found" >&6; } 64056 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 64057 fi 64058 else 64059 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 64060 fi 64061 64062 64063 64064 64065 64066 # Check whether --with-lcms was given. 64067 if test "${with_lcms+set}" = set; then : 64068 withval=$with_lcms; 64069 fi 64070 64071 64072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 64073 $as_echo_n "checking for which lcms to use... " >&6; } 64074 64075 DEFAULT_LCMS=bundled 64076 # If user didn't specify, use DEFAULT_LCMS 64077 if test "x${with_lcms}" = "x"; then 64078 with_lcms=${DEFAULT_LCMS} 64079 fi 64080 64081 if test "x${with_lcms}" = "xbundled"; then 64082 USE_EXTERNAL_LCMS=false 64083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 64084 $as_echo "bundled" >&6; } 64085 elif test "x${with_lcms}" = "xsystem"; then 64086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 64087 $as_echo "system" >&6; } 64088 64089 pkg_failed=no 64090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 64091 $as_echo_n "checking for LCMS... " >&6; } 64092 64093 if test -n "$LCMS_CFLAGS"; then 64094 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 64095 elif test -n "$PKG_CONFIG"; then 64096 if test -n "$PKG_CONFIG" && \ 64097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 64098 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 64099 ac_status=$? 64100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64101 test $ac_status = 0; }; then 64102 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 64103 else 64104 pkg_failed=yes 64105 fi 64106 else 64107 pkg_failed=untried 64108 fi 64109 if test -n "$LCMS_LIBS"; then 64110 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 64111 elif test -n "$PKG_CONFIG"; then 64112 if test -n "$PKG_CONFIG" && \ 64113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 64114 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 64115 ac_status=$? 64116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64117 test $ac_status = 0; }; then 64118 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 64119 else 64120 pkg_failed=yes 64121 fi 64122 else 64123 pkg_failed=untried 64124 fi 64125 64126 64127 64128 if test $pkg_failed = yes; then 64129 64130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64131 _pkg_short_errors_supported=yes 64132 else 64133 _pkg_short_errors_supported=no 64134 fi 64135 if test $_pkg_short_errors_supported = yes; then 64136 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 64137 else 64138 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 64139 fi 64140 # Put the nasty error message in config.log where it belongs 64141 echo "$LCMS_PKG_ERRORS" >&5 64142 64143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64144 $as_echo "no" >&6; } 64145 LCMS_FOUND=no 64146 elif test $pkg_failed = untried; then 64147 LCMS_FOUND=no 64148 else 64149 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 64150 LCMS_LIBS=$pkg_cv_LCMS_LIBS 64151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64152 $as_echo "yes" >&6; } 64153 LCMS_FOUND=yes 64154 fi 64155 if test "x${LCMS_FOUND}" = "xyes"; then 64156 USE_EXTERNAL_LCMS=true 64157 else 64158 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 64159 fi 64160 else 64161 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 64162 fi 64163 64164 64165 64166 64167 64168 64169 64170 64171 64172 64173 64174 # Setup libm (the maths library) 64175 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 64176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 64177 $as_echo_n "checking for cos in -lm... " >&6; } 64178 if ${ac_cv_lib_m_cos+:} false; then : 64179 $as_echo_n "(cached) " >&6 64180 else 64181 ac_check_lib_save_LIBS=$LIBS 64182 LIBS="-lm $LIBS" 64183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64184 /* end confdefs.h. */ 64185 64186 /* Override any GCC internal prototype to avoid an error. 64187 Use char because int might match the return type of a GCC 64188 builtin and then its argument prototype would still apply. */ 64189 #ifdef __cplusplus 64190 extern "C" 64191 #endif 64192 char cos (); 64193 int 64194 main () 64195 { 64196 return cos (); 64197 ; 64198 return 0; 64199 } 64200 _ACEOF 64201 if ac_fn_cxx_try_link "$LINENO"; then : 64202 ac_cv_lib_m_cos=yes 64203 else 64204 ac_cv_lib_m_cos=no 64205 fi 64206 rm -f core conftest.err conftest.$ac_objext \ 64207 conftest$ac_exeext conftest.$ac_ext 64208 LIBS=$ac_check_lib_save_LIBS 64209 fi 64210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 64211 $as_echo "$ac_cv_lib_m_cos" >&6; } 64212 if test "x$ac_cv_lib_m_cos" = xyes; then : 64213 cat >>confdefs.h <<_ACEOF 64214 #define HAVE_LIBM 1 64215 _ACEOF 64216 64217 LIBS="-lm $LIBS" 64218 64219 else 64220 64221 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 64222 $as_echo "$as_me: Maths library was not found" >&6;} 64223 64224 fi 64225 64226 LIBM="-lm" 64227 else 64228 LIBM="" 64229 fi 64230 64231 64232 # Setup libdl (for dynamic library loading) 64233 save_LIBS="$LIBS" 64234 LIBS="" 64235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 64236 $as_echo_n "checking for dlopen in -ldl... " >&6; } 64237 if ${ac_cv_lib_dl_dlopen+:} false; then : 64238 $as_echo_n "(cached) " >&6 64239 else 64240 ac_check_lib_save_LIBS=$LIBS 64241 LIBS="-ldl $LIBS" 64242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64243 /* end confdefs.h. */ 64244 64245 /* Override any GCC internal prototype to avoid an error. 64246 Use char because int might match the return type of a GCC 64247 builtin and then its argument prototype would still apply. */ 64248 #ifdef __cplusplus 64249 extern "C" 64250 #endif 64251 char dlopen (); 64252 int 64253 main () 64254 { 64255 return dlopen (); 64256 ; 64257 return 0; 64258 } 64259 _ACEOF 64260 if ac_fn_cxx_try_link "$LINENO"; then : 64261 ac_cv_lib_dl_dlopen=yes 64262 else 64263 ac_cv_lib_dl_dlopen=no 64264 fi 64265 rm -f core conftest.err conftest.$ac_objext \ 64266 conftest$ac_exeext conftest.$ac_ext 64267 LIBS=$ac_check_lib_save_LIBS 64268 fi 64269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 64270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 64271 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 64272 cat >>confdefs.h <<_ACEOF 64273 #define HAVE_LIBDL 1 64274 _ACEOF 64275 64276 LIBS="-ldl $LIBS" 64277 64278 fi 64279 64280 LIBDL="$LIBS" 64281 64282 LIBS="$save_LIBS" 64283 64284 # Deprecated libraries, keep the flags for backwards compatibility 64285 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 64286 64287 64288 # Check whether --with-dxsdk was given. 64289 if test "${with_dxsdk+set}" = set; then : 64290 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 64291 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 64292 fi 64293 64294 64295 64296 64297 # Check whether --with-dxsdk-lib was given. 64298 if test "${with_dxsdk_lib+set}" = set; then : 64299 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 64300 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 64301 fi 64302 64303 64304 64305 64306 # Check whether --with-dxsdk-include was given. 64307 if test "${with_dxsdk_include+set}" = set; then : 64308 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 64309 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 64310 fi 64311 64312 64313 fi 64314 64315 # Control if libzip can use mmap. Available for purposes of overriding. 64316 LIBZIP_CAN_USE_MMAP=true 64317 64318 64319 64320 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 64321 # Find the root of the Solaris Studio installation from the compiler path 64322 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 64323 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 64324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 64325 $as_echo_n "checking for libstlport.so.1... " >&6; } 64326 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 64327 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 64328 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 64329 fi 64330 if test -f "$STLPORT_LIB"; then 64331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 64332 $as_echo "yes, $STLPORT_LIB" >&6; } 64333 64334 # Only process if variable expands to non-empty 64335 64336 if test "x$STLPORT_LIB" != x; then 64337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64338 64339 # Input might be given as Windows format, start by converting to 64340 # unix format. 64341 path="$STLPORT_LIB" 64342 new_path=`$CYGPATH -u "$path"` 64343 64344 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64345 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64346 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64347 # "foo.exe" is OK but "foo" is an error. 64348 # 64349 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64350 # It is also a way to make sure we got the proper file name for the real test later on. 64351 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64352 if test "x$test_shortpath" = x; then 64353 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 64354 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 64355 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 64356 fi 64357 64358 # Call helper function which possibly converts this using DOS-style short mode. 64359 # If so, the updated path is stored in $new_path. 64360 64361 input_path="$new_path" 64362 # Check if we need to convert this using DOS-style short mode. If the path 64363 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64364 # take no chances and rewrite it. 64365 # Note: m4 eats our [], so we need to use [ and ] instead. 64366 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64367 if test "x$has_forbidden_chars" != x; then 64368 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64369 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64370 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64371 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64372 # Going to short mode and back again did indeed matter. Since short mode is 64373 # case insensitive, let's make it lowercase to improve readability. 64374 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64375 # Now convert it back to Unix-style (cygpath) 64376 input_path=`$CYGPATH -u "$shortmode_path"` 64377 new_path="$input_path" 64378 fi 64379 fi 64380 64381 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64382 if test "x$test_cygdrive_prefix" = x; then 64383 # As a simple fix, exclude /usr/bin since it's not a real path. 64384 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64385 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64386 # a path prefixed by /cygdrive for fixpath to work. 64387 new_path="$CYGWIN_ROOT_PATH$input_path" 64388 fi 64389 fi 64390 64391 64392 if test "x$path" != "x$new_path"; then 64393 STLPORT_LIB="$new_path" 64394 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 64395 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 64396 fi 64397 64398 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64399 64400 path="$STLPORT_LIB" 64401 has_colon=`$ECHO $path | $GREP ^.:` 64402 new_path="$path" 64403 if test "x$has_colon" = x; then 64404 # Not in mixed or Windows style, start by that. 64405 new_path=`cmd //c echo $path` 64406 fi 64407 64408 64409 input_path="$new_path" 64410 # Check if we need to convert this using DOS-style short mode. If the path 64411 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64412 # take no chances and rewrite it. 64413 # Note: m4 eats our [], so we need to use [ and ] instead. 64414 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64415 if test "x$has_forbidden_chars" != x; then 64416 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64417 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64418 fi 64419 64420 64421 windows_path="$new_path" 64422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64423 unix_path=`$CYGPATH -u "$windows_path"` 64424 new_path="$unix_path" 64425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64426 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64427 new_path="$unix_path" 64428 fi 64429 64430 if test "x$path" != "x$new_path"; then 64431 STLPORT_LIB="$new_path" 64432 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 64433 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 64434 fi 64435 64436 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64437 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64438 64439 else 64440 # We're on a unix platform. Hooray! :) 64441 path="$STLPORT_LIB" 64442 has_space=`$ECHO "$path" | $GREP " "` 64443 if test "x$has_space" != x; then 64444 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 64445 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 64446 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64447 fi 64448 64449 # Use eval to expand a potential ~ 64450 eval path="$path" 64451 if test ! -f "$path" && test ! -d "$path"; then 64452 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 64453 fi 64454 64455 if test -d "$path"; then 64456 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 64457 else 64458 dir="`$DIRNAME "$path"`" 64459 base="`$BASENAME "$path"`" 64460 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 64461 fi 64462 fi 64463 fi 64464 64465 else 64466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 64467 $as_echo "no, not found at $STLPORT_LIB" >&6; } 64468 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 64469 fi 64470 64471 fi 64472 64473 64474 64475 64476 64477 64478 64479 64480 64481 64482 64483 64484 64485 64486 ############################################################################### 64487 # 64488 # We need to do some final tweaking, when everything else is done. 64489 # 64490 ############################################################################### 64491 64492 64493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 64494 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 64495 64496 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 64497 ENABLE_INTREE_EC=yes 64498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64499 $as_echo "yes" >&6; } 64500 else 64501 ENABLE_INTREE_EC=no 64502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64503 $as_echo "no" >&6; } 64504 fi 64505 64506 64507 64508 64509 # Check whether --enable-jtreg-failure-handler was given. 64510 if test "${enable_jtreg_failure_handler+set}" = set; then : 64511 enableval=$enable_jtreg_failure_handler; 64512 fi 64513 64514 64515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 64516 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 64517 64518 if test "x$enable_jtreg_failure_handler" = "xyes"; then 64519 if test "x$JT_HOME" = "x"; then 64520 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 64521 else 64522 BUILD_FAILURE_HANDLER=true 64523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64524 $as_echo "yes, forced" >&6; } 64525 fi 64526 elif test "x$enable_jtreg_failure_handler" = "xno"; then 64527 BUILD_FAILURE_HANDLER=false 64528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64529 $as_echo "no, forced" >&6; } 64530 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 64531 || test "x$enable_jtreg_failure_handler" = "x"; then 64532 if test "x$JT_HOME" = "x"; then 64533 BUILD_FAILURE_HANDLER=false 64534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 64535 $as_echo "no, missing jtreg" >&6; } 64536 else 64537 BUILD_FAILURE_HANDLER=true 64538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 64539 $as_echo "yes, jtreg present" >&6; } 64540 fi 64541 else 64542 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 64543 fi 64544 64545 64546 64547 64548 # Check whether --enable-generate-classlist was given. 64549 if test "${enable_generate_classlist+set}" = set; then : 64550 enableval=$enable_generate_classlist; 64551 fi 64552 64553 64554 # Check if it's likely that it's possible to generate the classlist. Depending 64555 # on exact jvm configuration it could be possible anyway. 64556 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ; then 64557 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 64558 else 64559 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 64560 fi 64561 64562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 64563 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 64564 if test "x$enable_generate_classlist" = "xyes"; then 64565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64566 $as_echo "yes, forced" >&6; } 64567 ENABLE_GENERATE_CLASSLIST="true" 64568 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 64569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&5 64570 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&2;} 64571 fi 64572 elif test "x$enable_generate_classlist" = "xno"; then 64573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64574 $as_echo "no, forced" >&6; } 64575 ENABLE_GENERATE_CLASSLIST="false" 64576 elif test "x$enable_generate_classlist" = "x"; then 64577 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 64578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64579 $as_echo "yes" >&6; } 64580 ENABLE_GENERATE_CLASSLIST="true" 64581 else 64582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64583 $as_echo "no" >&6; } 64584 ENABLE_GENERATE_CLASSLIST="false" 64585 fi 64586 else 64587 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 64588 fi 64589 64590 64591 64592 64593 ############################################################################### 64594 # 64595 # Configure parts of the build that only affect the build performance, 64596 # not the result. 64597 # 64598 ############################################################################### 64599 64600 64601 # How many cores do we have on this build system? 64602 64603 # Check whether --with-num-cores was given. 64604 if test "${with_num_cores+set}" = set; then : 64605 withval=$with_num_cores; 64606 fi 64607 64608 if test "x$with_num_cores" = x; then 64609 # The number of cores were not specified, try to probe them. 64610 64611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 64612 $as_echo_n "checking for number of cores... " >&6; } 64613 NUM_CORES=1 64614 FOUND_CORES=no 64615 64616 if test -f /proc/cpuinfo; then 64617 # Looks like a Linux (or cygwin) system 64618 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 64619 FOUND_CORES=yes 64620 elif test -x /usr/sbin/psrinfo; then 64621 # Looks like a Solaris system 64622 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 64623 FOUND_CORES=yes 64624 elif test -x /usr/sbin/sysctl; then 64625 # Looks like a MacOSX system 64626 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 64627 FOUND_CORES=yes 64628 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 64629 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 64630 FOUND_CORES=yes 64631 elif test -n "$NUMBER_OF_PROCESSORS"; then 64632 # On windows, look in the env 64633 NUM_CORES=$NUMBER_OF_PROCESSORS 64634 FOUND_CORES=yes 64635 fi 64636 64637 if test "x$FOUND_CORES" = xyes; then 64638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 64639 $as_echo "$NUM_CORES" >&6; } 64640 else 64641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 64642 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 64643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 64644 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 64645 fi 64646 64647 else 64648 NUM_CORES=$with_num_cores 64649 fi 64650 64651 64652 64653 # How much memory do we have on this build system? 64654 64655 # Check whether --with-memory-size was given. 64656 if test "${with_memory_size+set}" = set; then : 64657 withval=$with_memory_size; 64658 fi 64659 64660 if test "x$with_memory_size" = x; then 64661 # The memory size was not specified, try to probe it. 64662 64663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 64664 $as_echo_n "checking for memory size... " >&6; } 64665 # Default to 1024 MB 64666 MEMORY_SIZE=1024 64667 FOUND_MEM=no 64668 64669 if test -f /proc/meminfo; then 64670 # Looks like a Linux (or cygwin) system 64671 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 64672 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 64673 FOUND_MEM=yes 64674 elif test -x /usr/sbin/prtconf; then 64675 # Looks like a Solaris or AIX system 64676 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 64677 FOUND_MEM=yes 64678 elif test -x /usr/sbin/sysctl; then 64679 # Looks like a MacOSX system 64680 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 64681 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64682 FOUND_MEM=yes 64683 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 64684 # Windows, but without cygwin 64685 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 64686 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64687 FOUND_MEM=yes 64688 fi 64689 64690 if test "x$FOUND_MEM" = xyes; then 64691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 64692 $as_echo "$MEMORY_SIZE MB" >&6; } 64693 else 64694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 64695 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 64696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 64697 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 64698 fi 64699 64700 else 64701 MEMORY_SIZE=$with_memory_size 64702 fi 64703 64704 64705 64706 # Provide a decent default number of parallel jobs for make depending on 64707 # number of cores, amount of memory and machine architecture. 64708 64709 # Check whether --with-jobs was given. 64710 if test "${with_jobs+set}" = set; then : 64711 withval=$with_jobs; 64712 fi 64713 64714 if test "x$with_jobs" = x; then 64715 # Number of jobs was not specified, calculate. 64716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 64717 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 64718 # Approximate memory in GB. 64719 memory_gb=`expr $MEMORY_SIZE / 1024` 64720 # Pick the lowest of memory in gb and number of cores. 64721 if test "$memory_gb" -lt "$NUM_CORES"; then 64722 JOBS="$memory_gb" 64723 else 64724 JOBS="$NUM_CORES" 64725 fi 64726 if test "$JOBS" -eq "0"; then 64727 JOBS=1 64728 fi 64729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 64730 $as_echo "$JOBS" >&6; } 64731 else 64732 JOBS=$with_jobs 64733 fi 64734 64735 64736 64737 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 64738 64739 # Check whether --with-test-jobs was given. 64740 if test "${with_test_jobs+set}" = set; then : 64741 withval=$with_test_jobs; 64742 fi 64743 64744 if test "x$with_test_jobs" = x; then 64745 TEST_JOBS=0 64746 else 64747 TEST_JOBS=$with_test_jobs 64748 fi 64749 64750 64751 64752 # Setup arguments for the boot jdk (after cores and memory have been setup) 64753 64754 ############################################################################## 64755 # 64756 # Specify jvm options for anything that is run with the Boot JDK. 64757 # Not all JVM:s accept the same arguments on the command line. 64758 # 64759 64760 # Check whether --with-boot-jdk-jvmargs was given. 64761 if test "${with_boot_jdk_jvmargs+set}" = set; then : 64762 withval=$with_boot_jdk_jvmargs; 64763 fi 64764 64765 64766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 64767 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 64768 64769 # Disable special log output when a debug build is used as Boot JDK... 64770 64771 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 64772 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 64773 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 64774 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64775 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64776 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64777 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 64778 JVM_ARG_OK=true 64779 else 64780 $ECHO "Arg failed:" >&5 64781 $ECHO "$OUTPUT" >&5 64782 JVM_ARG_OK=false 64783 fi 64784 64785 64786 # Force en-US environment 64787 64788 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 64789 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 64790 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 64791 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64792 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64793 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64794 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 64795 JVM_ARG_OK=true 64796 else 64797 $ECHO "Arg failed:" >&5 64798 $ECHO "$OUTPUT" >&5 64799 JVM_ARG_OK=false 64800 fi 64801 64802 64803 # Apply user provided options. 64804 64805 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 64806 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 64807 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 64808 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64809 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64810 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64811 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 64812 JVM_ARG_OK=true 64813 else 64814 $ECHO "Arg failed:" >&5 64815 $ECHO "$OUTPUT" >&5 64816 JVM_ARG_OK=false 64817 fi 64818 64819 64820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 64821 $as_echo "$boot_jdk_jvmargs" >&6; } 64822 64823 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 64824 JAVA_FLAGS=$boot_jdk_jvmargs 64825 64826 64827 64828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 64829 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 64830 64831 # Starting amount of heap memory. 64832 64833 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 64834 $ECHO "Command: $JAVA -Xms64M -version" >&5 64835 OUTPUT=`$JAVA -Xms64M -version 2>&1` 64836 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64837 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64838 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64839 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 64840 JVM_ARG_OK=true 64841 else 64842 $ECHO "Arg failed:" >&5 64843 $ECHO "$OUTPUT" >&5 64844 JVM_ARG_OK=false 64845 fi 64846 64847 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 64848 64849 # Maximum amount of heap memory and stack size. 64850 JVM_HEAP_LIMIT_32="1024" 64851 # Running a 64 bit JVM allows for and requires a bigger heap 64852 JVM_HEAP_LIMIT_64="1600" 64853 STACK_SIZE_32=768 64854 STACK_SIZE_64=1536 64855 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 64856 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 64857 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 64858 fi 64859 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 64860 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 64861 fi 64862 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 64863 JVM_HEAP_LIMIT_32=512 64864 JVM_HEAP_LIMIT_64=512 64865 fi 64866 64867 if test "x$BOOT_JDK_BITS" = "x32"; then 64868 STACK_SIZE=$STACK_SIZE_32 64869 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 64870 else 64871 STACK_SIZE=$STACK_SIZE_64 64872 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 64873 fi 64874 64875 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 64876 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 64877 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 64878 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64879 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64880 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64881 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 64882 JVM_ARG_OK=true 64883 else 64884 $ECHO "Arg failed:" >&5 64885 $ECHO "$OUTPUT" >&5 64886 JVM_ARG_OK=false 64887 fi 64888 64889 64890 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 64891 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 64892 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 64893 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64894 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64895 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64896 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 64897 JVM_ARG_OK=true 64898 else 64899 $ECHO "Arg failed:" >&5 64900 $ECHO "$OUTPUT" >&5 64901 JVM_ARG_OK=false 64902 fi 64903 64904 64905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 64906 $as_echo "$boot_jdk_jvmargs_big" >&6; } 64907 64908 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 64909 64910 64911 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 64912 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 64913 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 64914 else 64915 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 64916 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 64917 fi 64918 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 64919 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 64920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 64921 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 64922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 64923 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 64924 64925 64926 # By default, the main javac compilations use big 64927 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 64928 64929 64930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 64931 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 64932 64933 # Use serial gc for small short lived tools if possible 64934 64935 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 64936 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 64937 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 64938 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64939 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64940 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64941 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 64942 JVM_ARG_OK=true 64943 else 64944 $ECHO "Arg failed:" >&5 64945 $ECHO "$OUTPUT" >&5 64946 JVM_ARG_OK=false 64947 fi 64948 64949 64950 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 64951 $ECHO "Command: $JAVA -Xms32M -version" >&5 64952 OUTPUT=`$JAVA -Xms32M -version 2>&1` 64953 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64954 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64955 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64956 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 64957 JVM_ARG_OK=true 64958 else 64959 $ECHO "Arg failed:" >&5 64960 $ECHO "$OUTPUT" >&5 64961 JVM_ARG_OK=false 64962 fi 64963 64964 64965 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 64966 $ECHO "Command: $JAVA -Xmx512M -version" >&5 64967 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 64968 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64969 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64970 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64971 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 64972 JVM_ARG_OK=true 64973 else 64974 $ECHO "Arg failed:" >&5 64975 $ECHO "$OUTPUT" >&5 64976 JVM_ARG_OK=false 64977 fi 64978 64979 64980 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 64981 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 64982 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 64983 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64984 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64985 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64986 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 64987 JVM_ARG_OK=true 64988 else 64989 $ECHO "Arg failed:" >&5 64990 $ECHO "$OUTPUT" >&5 64991 JVM_ARG_OK=false 64992 fi 64993 64994 64995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 64996 $as_echo "$boot_jdk_jvmargs_small" >&6; } 64997 64998 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 64999 65000 65001 JAVA_TOOL_FLAGS_SMALL="" 65002 for f in $JAVA_FLAGS_SMALL; do 65003 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 65004 done 65005 65006 65007 65008 # Setup smart javac (after cores and memory have been setup) 65009 65010 65011 # Check whether --with-sjavac-server-java was given. 65012 if test "${with_sjavac_server_java+set}" = set; then : 65013 withval=$with_sjavac_server_java; 65014 fi 65015 65016 65017 if test "x$with_sjavac_server_java" != x; then 65018 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 65019 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 65020 if test "x$FOUND_VERSION" = x; then 65021 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 65022 fi 65023 else 65024 SJAVAC_SERVER_JAVA="$JAVA" 65025 fi 65026 65027 65028 if test "$MEMORY_SIZE" -gt "3000"; then 65029 65030 $ECHO "Check if jvm arg is ok: -d64" >&5 65031 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 65032 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 65033 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65034 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65035 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65036 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 65037 JVM_ARG_OK=true 65038 else 65039 $ECHO "Arg failed:" >&5 65040 $ECHO "$OUTPUT" >&5 65041 JVM_ARG_OK=false 65042 fi 65043 65044 if test "$JVM_ARG_OK" = true; then 65045 JVM_64BIT=true 65046 JVM_ARG_OK=false 65047 fi 65048 fi 65049 65050 MX_VALUE=`expr $MEMORY_SIZE / 2` 65051 if test "$JVM_64BIT" = true; then 65052 # Set ms lower than mx since more than one instance of the server might 65053 # get launched at the same time before they figure out which instance won. 65054 MS_VALUE=512 65055 if test "$MX_VALUE" -gt "2048"; then 65056 MX_VALUE=2048 65057 fi 65058 else 65059 MS_VALUE=256 65060 if test "$MX_VALUE" -gt "1500"; then 65061 MX_VALUE=1500 65062 fi 65063 fi 65064 if test "$MX_VALUE" -lt "512"; then 65065 MX_VALUE=512 65066 fi 65067 65068 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 65069 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 65070 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 65071 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 65072 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 65073 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 65074 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 65075 JVM_ARG_OK=true 65076 else 65077 $ECHO "Arg failed:" >&5 65078 $ECHO "$OUTPUT" >&5 65079 JVM_ARG_OK=false 65080 fi 65081 65082 65083 65084 # Check whether --enable-sjavac was given. 65085 if test "${enable_sjavac+set}" = set; then : 65086 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 65087 else 65088 ENABLE_SJAVAC="no" 65089 fi 65090 65091 if test "x$JVM_ARG_OK" = "xfalse"; then 65092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 65093 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 65094 ENABLE_SJAVAC="no" 65095 fi 65096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 65097 $as_echo_n "checking whether to use sjavac... " >&6; } 65098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 65099 $as_echo "$ENABLE_SJAVAC" >&6; } 65100 65101 65102 # Check whether --enable-javac-server was given. 65103 if test "${enable_javac_server+set}" = set; then : 65104 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 65105 else 65106 ENABLE_JAVAC_SERVER="yes" 65107 fi 65108 65109 if test "x$JVM_ARG_OK" = "xfalse"; then 65110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 65111 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 65112 ENABLE_JAVAC_SERVER="no" 65113 fi 65114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 65115 $as_echo_n "checking whether to use javac server... " >&6; } 65116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 65117 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 65118 65119 65120 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 65121 # When using a server javac, the small client instances do not need much 65122 # resources. 65123 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 65124 fi 65125 65126 65127 # Setup use of icecc if requested 65128 65129 # Check whether --enable-icecc was given. 65130 if test "${enable_icecc+set}" = set; then : 65131 enableval=$enable_icecc; 65132 fi 65133 65134 65135 if test "x${enable_icecc}" = "xyes"; then 65136 65137 65138 65139 # Publish this variable in the help. 65140 65141 65142 if [ -z "${ICECC_CMD+x}" ]; then 65143 # The variable is not set by user, try to locate tool using the code snippet 65144 for ac_prog in icecc 65145 do 65146 # Extract the first word of "$ac_prog", so it can be a program name with args. 65147 set dummy $ac_prog; ac_word=$2 65148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65149 $as_echo_n "checking for $ac_word... " >&6; } 65150 if ${ac_cv_path_ICECC_CMD+:} false; then : 65151 $as_echo_n "(cached) " >&6 65152 else 65153 case $ICECC_CMD in 65154 [\\/]* | ?:[\\/]*) 65155 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 65156 ;; 65157 *) 65158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65159 for as_dir in $PATH 65160 do 65161 IFS=$as_save_IFS 65162 test -z "$as_dir" && as_dir=. 65163 for ac_exec_ext in '' $ac_executable_extensions; do 65164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65165 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 65166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65167 break 2 65168 fi 65169 done 65170 done 65171 IFS=$as_save_IFS 65172 65173 ;; 65174 esac 65175 fi 65176 ICECC_CMD=$ac_cv_path_ICECC_CMD 65177 if test -n "$ICECC_CMD"; then 65178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 65179 $as_echo "$ICECC_CMD" >&6; } 65180 else 65181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65182 $as_echo "no" >&6; } 65183 fi 65184 65185 65186 test -n "$ICECC_CMD" && break 65187 done 65188 65189 else 65190 # The variable is set, but is it from the command line or the environment? 65191 65192 # Try to remove the string !ICECC_CMD! from our list. 65193 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 65194 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65195 # If it failed, the variable was not from the command line. Ignore it, 65196 # but warn the user (except for BASH, which is always set by the calling BASH). 65197 if test "xICECC_CMD" != xBASH; then 65198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 65199 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 65200 fi 65201 # Try to locate tool using the code snippet 65202 for ac_prog in icecc 65203 do 65204 # Extract the first word of "$ac_prog", so it can be a program name with args. 65205 set dummy $ac_prog; ac_word=$2 65206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65207 $as_echo_n "checking for $ac_word... " >&6; } 65208 if ${ac_cv_path_ICECC_CMD+:} false; then : 65209 $as_echo_n "(cached) " >&6 65210 else 65211 case $ICECC_CMD in 65212 [\\/]* | ?:[\\/]*) 65213 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 65214 ;; 65215 *) 65216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65217 for as_dir in $PATH 65218 do 65219 IFS=$as_save_IFS 65220 test -z "$as_dir" && as_dir=. 65221 for ac_exec_ext in '' $ac_executable_extensions; do 65222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65223 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 65224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65225 break 2 65226 fi 65227 done 65228 done 65229 IFS=$as_save_IFS 65230 65231 ;; 65232 esac 65233 fi 65234 ICECC_CMD=$ac_cv_path_ICECC_CMD 65235 if test -n "$ICECC_CMD"; then 65236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 65237 $as_echo "$ICECC_CMD" >&6; } 65238 else 65239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65240 $as_echo "no" >&6; } 65241 fi 65242 65243 65244 test -n "$ICECC_CMD" && break 65245 done 65246 65247 else 65248 # If it succeeded, then it was overridden by the user. We will use it 65249 # for the tool. 65250 65251 # First remove it from the list of overridden variables, so we can test 65252 # for unknown variables in the end. 65253 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65254 65255 # Check if we try to supply an empty value 65256 if test "x$ICECC_CMD" = x; then 65257 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 65258 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 65259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 65260 $as_echo_n "checking for ICECC_CMD... " >&6; } 65261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65262 $as_echo "disabled" >&6; } 65263 else 65264 # Check if the provided tool contains a complete path. 65265 tool_specified="$ICECC_CMD" 65266 tool_basename="${tool_specified##*/}" 65267 if test "x$tool_basename" = "x$tool_specified"; then 65268 # A command without a complete path is provided, search $PATH. 65269 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 65270 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 65271 # Extract the first word of "$tool_basename", so it can be a program name with args. 65272 set dummy $tool_basename; ac_word=$2 65273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65274 $as_echo_n "checking for $ac_word... " >&6; } 65275 if ${ac_cv_path_ICECC_CMD+:} false; then : 65276 $as_echo_n "(cached) " >&6 65277 else 65278 case $ICECC_CMD in 65279 [\\/]* | ?:[\\/]*) 65280 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 65281 ;; 65282 *) 65283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65284 for as_dir in $PATH 65285 do 65286 IFS=$as_save_IFS 65287 test -z "$as_dir" && as_dir=. 65288 for ac_exec_ext in '' $ac_executable_extensions; do 65289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65290 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 65291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65292 break 2 65293 fi 65294 done 65295 done 65296 IFS=$as_save_IFS 65297 65298 ;; 65299 esac 65300 fi 65301 ICECC_CMD=$ac_cv_path_ICECC_CMD 65302 if test -n "$ICECC_CMD"; then 65303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 65304 $as_echo "$ICECC_CMD" >&6; } 65305 else 65306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65307 $as_echo "no" >&6; } 65308 fi 65309 65310 65311 if test "x$ICECC_CMD" = x; then 65312 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65313 fi 65314 else 65315 # Otherwise we believe it is a complete path. Use it as it is. 65316 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 65317 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 65318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 65319 $as_echo_n "checking for ICECC_CMD... " >&6; } 65320 if test ! -x "$tool_specified"; then 65321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65322 $as_echo "not found" >&6; } 65323 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 65324 fi 65325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65326 $as_echo "$tool_specified" >&6; } 65327 fi 65328 fi 65329 fi 65330 65331 fi 65332 65333 65334 65335 if test "x$ICECC_CMD" = x; then 65336 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 65337 fi 65338 65339 65340 old_path="$PATH" 65341 65342 # Look for icecc-create-env in some known places 65343 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 65344 65345 65346 65347 # Publish this variable in the help. 65348 65349 65350 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 65351 # The variable is not set by user, try to locate tool using the code snippet 65352 for ac_prog in icecc-create-env 65353 do 65354 # Extract the first word of "$ac_prog", so it can be a program name with args. 65355 set dummy $ac_prog; ac_word=$2 65356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65357 $as_echo_n "checking for $ac_word... " >&6; } 65358 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65359 $as_echo_n "(cached) " >&6 65360 else 65361 case $ICECC_CREATE_ENV in 65362 [\\/]* | ?:[\\/]*) 65363 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65364 ;; 65365 *) 65366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65367 for as_dir in $PATH 65368 do 65369 IFS=$as_save_IFS 65370 test -z "$as_dir" && as_dir=. 65371 for ac_exec_ext in '' $ac_executable_extensions; do 65372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65373 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65375 break 2 65376 fi 65377 done 65378 done 65379 IFS=$as_save_IFS 65380 65381 ;; 65382 esac 65383 fi 65384 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65385 if test -n "$ICECC_CREATE_ENV"; then 65386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65387 $as_echo "$ICECC_CREATE_ENV" >&6; } 65388 else 65389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65390 $as_echo "no" >&6; } 65391 fi 65392 65393 65394 test -n "$ICECC_CREATE_ENV" && break 65395 done 65396 65397 else 65398 # The variable is set, but is it from the command line or the environment? 65399 65400 # Try to remove the string !ICECC_CREATE_ENV! from our list. 65401 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 65402 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65403 # If it failed, the variable was not from the command line. Ignore it, 65404 # but warn the user (except for BASH, which is always set by the calling BASH). 65405 if test "xICECC_CREATE_ENV" != xBASH; then 65406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 65407 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 65408 fi 65409 # Try to locate tool using the code snippet 65410 for ac_prog in icecc-create-env 65411 do 65412 # Extract the first word of "$ac_prog", so it can be a program name with args. 65413 set dummy $ac_prog; ac_word=$2 65414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65415 $as_echo_n "checking for $ac_word... " >&6; } 65416 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65417 $as_echo_n "(cached) " >&6 65418 else 65419 case $ICECC_CREATE_ENV in 65420 [\\/]* | ?:[\\/]*) 65421 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65422 ;; 65423 *) 65424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65425 for as_dir in $PATH 65426 do 65427 IFS=$as_save_IFS 65428 test -z "$as_dir" && as_dir=. 65429 for ac_exec_ext in '' $ac_executable_extensions; do 65430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65431 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65433 break 2 65434 fi 65435 done 65436 done 65437 IFS=$as_save_IFS 65438 65439 ;; 65440 esac 65441 fi 65442 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65443 if test -n "$ICECC_CREATE_ENV"; then 65444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65445 $as_echo "$ICECC_CREATE_ENV" >&6; } 65446 else 65447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65448 $as_echo "no" >&6; } 65449 fi 65450 65451 65452 test -n "$ICECC_CREATE_ENV" && break 65453 done 65454 65455 else 65456 # If it succeeded, then it was overridden by the user. We will use it 65457 # for the tool. 65458 65459 # First remove it from the list of overridden variables, so we can test 65460 # for unknown variables in the end. 65461 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65462 65463 # Check if we try to supply an empty value 65464 if test "x$ICECC_CREATE_ENV" = x; then 65465 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 65466 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 65467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 65468 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 65469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65470 $as_echo "disabled" >&6; } 65471 else 65472 # Check if the provided tool contains a complete path. 65473 tool_specified="$ICECC_CREATE_ENV" 65474 tool_basename="${tool_specified##*/}" 65475 if test "x$tool_basename" = "x$tool_specified"; then 65476 # A command without a complete path is provided, search $PATH. 65477 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 65478 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 65479 # Extract the first word of "$tool_basename", so it can be a program name with args. 65480 set dummy $tool_basename; ac_word=$2 65481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65482 $as_echo_n "checking for $ac_word... " >&6; } 65483 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65484 $as_echo_n "(cached) " >&6 65485 else 65486 case $ICECC_CREATE_ENV in 65487 [\\/]* | ?:[\\/]*) 65488 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65489 ;; 65490 *) 65491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65492 for as_dir in $PATH 65493 do 65494 IFS=$as_save_IFS 65495 test -z "$as_dir" && as_dir=. 65496 for ac_exec_ext in '' $ac_executable_extensions; do 65497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65498 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65500 break 2 65501 fi 65502 done 65503 done 65504 IFS=$as_save_IFS 65505 65506 ;; 65507 esac 65508 fi 65509 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65510 if test -n "$ICECC_CREATE_ENV"; then 65511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65512 $as_echo "$ICECC_CREATE_ENV" >&6; } 65513 else 65514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65515 $as_echo "no" >&6; } 65516 fi 65517 65518 65519 if test "x$ICECC_CREATE_ENV" = x; then 65520 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65521 fi 65522 else 65523 # Otherwise we believe it is a complete path. Use it as it is. 65524 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 65525 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 65526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 65527 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 65528 if test ! -x "$tool_specified"; then 65529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65530 $as_echo "not found" >&6; } 65531 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 65532 fi 65533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65534 $as_echo "$tool_specified" >&6; } 65535 fi 65536 fi 65537 fi 65538 65539 fi 65540 65541 65542 65543 if test "x$ICECC_CREATE_ENV" = x; then 65544 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 65545 fi 65546 65547 65548 # Use icecc-create-env to create a minimal compilation environment that can 65549 # be sent to the other hosts in the icecream cluster. 65550 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 65551 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 65552 # Older versions of icecc does not have the --gcc parameter 65553 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 65554 icecc_gcc_arg="--gcc" 65555 fi 65556 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 65557 65558 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65559 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 65560 ${icecc_create_env_log} 2>&1 ) 65561 if test "$?" != "0"; then 65562 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65563 $as_echo "$as_me: icecc-create-env output:" >&6;} 65564 cat \ 65565 ${icecc_create_env_log} 65566 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65567 fi 65568 65569 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 65570 # For clang, the icecc compilerwrapper is needed. It usually resides next 65571 # to icecc-create-env. 65572 65573 65574 65575 # Publish this variable in the help. 65576 65577 65578 if [ -z "${ICECC_WRAPPER+x}" ]; then 65579 # The variable is not set by user, try to locate tool using the code snippet 65580 for ac_prog in compilerwrapper 65581 do 65582 # Extract the first word of "$ac_prog", so it can be a program name with args. 65583 set dummy $ac_prog; ac_word=$2 65584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65585 $as_echo_n "checking for $ac_word... " >&6; } 65586 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65587 $as_echo_n "(cached) " >&6 65588 else 65589 case $ICECC_WRAPPER in 65590 [\\/]* | ?:[\\/]*) 65591 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65592 ;; 65593 *) 65594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65595 for as_dir in $PATH 65596 do 65597 IFS=$as_save_IFS 65598 test -z "$as_dir" && as_dir=. 65599 for ac_exec_ext in '' $ac_executable_extensions; do 65600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65601 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65603 break 2 65604 fi 65605 done 65606 done 65607 IFS=$as_save_IFS 65608 65609 ;; 65610 esac 65611 fi 65612 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65613 if test -n "$ICECC_WRAPPER"; then 65614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65615 $as_echo "$ICECC_WRAPPER" >&6; } 65616 else 65617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65618 $as_echo "no" >&6; } 65619 fi 65620 65621 65622 test -n "$ICECC_WRAPPER" && break 65623 done 65624 65625 else 65626 # The variable is set, but is it from the command line or the environment? 65627 65628 # Try to remove the string !ICECC_WRAPPER! from our list. 65629 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 65630 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65631 # If it failed, the variable was not from the command line. Ignore it, 65632 # but warn the user (except for BASH, which is always set by the calling BASH). 65633 if test "xICECC_WRAPPER" != xBASH; then 65634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 65635 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 65636 fi 65637 # Try to locate tool using the code snippet 65638 for ac_prog in compilerwrapper 65639 do 65640 # Extract the first word of "$ac_prog", so it can be a program name with args. 65641 set dummy $ac_prog; ac_word=$2 65642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65643 $as_echo_n "checking for $ac_word... " >&6; } 65644 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65645 $as_echo_n "(cached) " >&6 65646 else 65647 case $ICECC_WRAPPER in 65648 [\\/]* | ?:[\\/]*) 65649 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65650 ;; 65651 *) 65652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65653 for as_dir in $PATH 65654 do 65655 IFS=$as_save_IFS 65656 test -z "$as_dir" && as_dir=. 65657 for ac_exec_ext in '' $ac_executable_extensions; do 65658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65659 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65661 break 2 65662 fi 65663 done 65664 done 65665 IFS=$as_save_IFS 65666 65667 ;; 65668 esac 65669 fi 65670 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65671 if test -n "$ICECC_WRAPPER"; then 65672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65673 $as_echo "$ICECC_WRAPPER" >&6; } 65674 else 65675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65676 $as_echo "no" >&6; } 65677 fi 65678 65679 65680 test -n "$ICECC_WRAPPER" && break 65681 done 65682 65683 else 65684 # If it succeeded, then it was overridden by the user. We will use it 65685 # for the tool. 65686 65687 # First remove it from the list of overridden variables, so we can test 65688 # for unknown variables in the end. 65689 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65690 65691 # Check if we try to supply an empty value 65692 if test "x$ICECC_WRAPPER" = x; then 65693 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 65694 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 65695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65696 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65698 $as_echo "disabled" >&6; } 65699 else 65700 # Check if the provided tool contains a complete path. 65701 tool_specified="$ICECC_WRAPPER" 65702 tool_basename="${tool_specified##*/}" 65703 if test "x$tool_basename" = "x$tool_specified"; then 65704 # A command without a complete path is provided, search $PATH. 65705 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 65706 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 65707 # Extract the first word of "$tool_basename", so it can be a program name with args. 65708 set dummy $tool_basename; ac_word=$2 65709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65710 $as_echo_n "checking for $ac_word... " >&6; } 65711 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65712 $as_echo_n "(cached) " >&6 65713 else 65714 case $ICECC_WRAPPER in 65715 [\\/]* | ?:[\\/]*) 65716 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65717 ;; 65718 *) 65719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65720 for as_dir in $PATH 65721 do 65722 IFS=$as_save_IFS 65723 test -z "$as_dir" && as_dir=. 65724 for ac_exec_ext in '' $ac_executable_extensions; do 65725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65726 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65728 break 2 65729 fi 65730 done 65731 done 65732 IFS=$as_save_IFS 65733 65734 ;; 65735 esac 65736 fi 65737 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65738 if test -n "$ICECC_WRAPPER"; then 65739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65740 $as_echo "$ICECC_WRAPPER" >&6; } 65741 else 65742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65743 $as_echo "no" >&6; } 65744 fi 65745 65746 65747 if test "x$ICECC_WRAPPER" = x; then 65748 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65749 fi 65750 else 65751 # Otherwise we believe it is a complete path. Use it as it is. 65752 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 65753 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 65754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65755 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65756 if test ! -x "$tool_specified"; then 65757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65758 $as_echo "not found" >&6; } 65759 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 65760 fi 65761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65762 $as_echo "$tool_specified" >&6; } 65763 fi 65764 fi 65765 fi 65766 65767 fi 65768 65769 65770 65771 if test "x$ICECC_WRAPPER" = x; then 65772 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 65773 fi 65774 65775 65776 65777 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65778 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 65779 if test "$?" != "0"; then 65780 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65781 $as_echo "$as_me: icecc-create-env output:" >&6;} 65782 cat ${icecc_create_env_log} 65783 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65784 fi 65785 65786 else 65787 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 65788 fi 65789 PATH="$old_path" 65790 # The bundle with the compiler gets a name based on checksums. Parse log file 65791 # to find it. 65792 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 65793 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 65794 if test ! -f ${ICECC_ENV_BUNDLE}; then 65795 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 65796 fi 65797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 65798 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 65799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 65800 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 65801 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 65802 65803 if test "x${COMPILE_TYPE}" = "xcross"; then 65804 # If cross compiling, create a separate env package for the build compiler 65805 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 65806 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 65807 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 65808 65809 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65810 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 65811 ${icecc_create_env_log_build} 2>&1 ) 65812 if test "$?" != "0"; then 65813 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65814 $as_echo "$as_me: icecc-create-env output:" >&6;} 65815 cat \ 65816 ${icecc_create_env_log_build} 65817 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65818 fi 65819 65820 elif test "x${BUILD_CC##*/}" = "xclang"; then 65821 65822 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65823 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 65824 if test "$?" != "0"; then 65825 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65826 $as_echo "$as_me: icecc-create-env output:" >&6;} 65827 cat ${icecc_create_env_log_build} 65828 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65829 fi 65830 65831 else 65832 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 65833 fi 65834 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 65835 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 65836 if test ! -f ${ICECC_ENV_BUNDLE}; then 65837 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 65838 fi 65839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 65840 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 65841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 65842 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 65843 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 65844 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 65845 else 65846 BUILD_ICECC="${ICECC}" 65847 fi 65848 65849 65850 fi 65851 65852 65853 # Can the C/C++ compiler use precompiled headers? 65854 65855 65856 ############################################################################### 65857 # 65858 # Can the C/C++ compiler use precompiled headers? 65859 # 65860 # Check whether --enable-precompiled-headers was given. 65861 if test "${enable_precompiled_headers+set}" = set; then : 65862 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 65863 else 65864 ENABLE_PRECOMPH=yes 65865 fi 65866 65867 65868 USE_PRECOMPILED_HEADER=1 65869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 65870 $as_echo_n "checking If precompiled header is enabled... " >&6; } 65871 if test "x$ENABLE_PRECOMPH" = xno; then 65872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65873 $as_echo "no, forced" >&6; } 65874 USE_PRECOMPILED_HEADER=0 65875 elif test "x$ICECC" != "x"; then 65876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 65877 $as_echo "no, does not work effectively with icecc" >&6; } 65878 USE_PRECOMPILED_HEADER=0 65879 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 65880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 65881 $as_echo "no, does not work with Solaris Studio" >&6; } 65882 USE_PRECOMPILED_HEADER=0 65883 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 65884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 65885 $as_echo "no, does not work with xlc" >&6; } 65886 USE_PRECOMPILED_HEADER=0 65887 else 65888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65889 $as_echo "yes" >&6; } 65890 fi 65891 65892 if test "x$ENABLE_PRECOMPH" = xyes; then 65893 # Check that the compiler actually supports precomp headers. 65894 if test "x$TOOLCHAIN_TYPE" = xgcc; then 65895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 65896 $as_echo_n "checking that precompiled headers work... " >&6; } 65897 echo "int alfa();" > conftest.h 65898 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 65899 if test ! -f conftest.hpp.gch; then 65900 USE_PRECOMPILED_HEADER=0 65901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65902 $as_echo "no" >&6; } 65903 else 65904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65905 $as_echo "yes" >&6; } 65906 fi 65907 $RM conftest.h conftest.hpp.gch 65908 fi 65909 fi 65910 65911 65912 65913 65914 # Setup use of ccache, if available 65915 65916 # Check whether --enable-ccache was given. 65917 if test "${enable_ccache+set}" = set; then : 65918 enableval=$enable_ccache; 65919 fi 65920 65921 65922 CCACHE= 65923 CCACHE_STATUS= 65924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 65925 $as_echo_n "checking is ccache enabled... " >&6; } 65926 if test "x$enable_ccache" = xyes; then 65927 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 65928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65929 $as_echo "yes" >&6; } 65930 OLD_PATH="$PATH" 65931 if test "x$TOOLCHAIN_PATH" != x; then 65932 PATH=$TOOLCHAIN_PATH:$PATH 65933 fi 65934 65935 65936 65937 # Publish this variable in the help. 65938 65939 65940 if [ -z "${CCACHE+x}" ]; then 65941 # The variable is not set by user, try to locate tool using the code snippet 65942 for ac_prog in ccache 65943 do 65944 # Extract the first word of "$ac_prog", so it can be a program name with args. 65945 set dummy $ac_prog; ac_word=$2 65946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65947 $as_echo_n "checking for $ac_word... " >&6; } 65948 if ${ac_cv_path_CCACHE+:} false; then : 65949 $as_echo_n "(cached) " >&6 65950 else 65951 case $CCACHE in 65952 [\\/]* | ?:[\\/]*) 65953 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65954 ;; 65955 *) 65956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65957 for as_dir in $PATH 65958 do 65959 IFS=$as_save_IFS 65960 test -z "$as_dir" && as_dir=. 65961 for ac_exec_ext in '' $ac_executable_extensions; do 65962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65963 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65965 break 2 65966 fi 65967 done 65968 done 65969 IFS=$as_save_IFS 65970 65971 ;; 65972 esac 65973 fi 65974 CCACHE=$ac_cv_path_CCACHE 65975 if test -n "$CCACHE"; then 65976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65977 $as_echo "$CCACHE" >&6; } 65978 else 65979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65980 $as_echo "no" >&6; } 65981 fi 65982 65983 65984 test -n "$CCACHE" && break 65985 done 65986 65987 else 65988 # The variable is set, but is it from the command line or the environment? 65989 65990 # Try to remove the string !CCACHE! from our list. 65991 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 65992 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65993 # If it failed, the variable was not from the command line. Ignore it, 65994 # but warn the user (except for BASH, which is always set by the calling BASH). 65995 if test "xCCACHE" != xBASH; then 65996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 65997 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 65998 fi 65999 # Try to locate tool using the code snippet 66000 for ac_prog in ccache 66001 do 66002 # Extract the first word of "$ac_prog", so it can be a program name with args. 66003 set dummy $ac_prog; ac_word=$2 66004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66005 $as_echo_n "checking for $ac_word... " >&6; } 66006 if ${ac_cv_path_CCACHE+:} false; then : 66007 $as_echo_n "(cached) " >&6 66008 else 66009 case $CCACHE in 66010 [\\/]* | ?:[\\/]*) 66011 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 66012 ;; 66013 *) 66014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66015 for as_dir in $PATH 66016 do 66017 IFS=$as_save_IFS 66018 test -z "$as_dir" && as_dir=. 66019 for ac_exec_ext in '' $ac_executable_extensions; do 66020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66021 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 66022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66023 break 2 66024 fi 66025 done 66026 done 66027 IFS=$as_save_IFS 66028 66029 ;; 66030 esac 66031 fi 66032 CCACHE=$ac_cv_path_CCACHE 66033 if test -n "$CCACHE"; then 66034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 66035 $as_echo "$CCACHE" >&6; } 66036 else 66037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66038 $as_echo "no" >&6; } 66039 fi 66040 66041 66042 test -n "$CCACHE" && break 66043 done 66044 66045 else 66046 # If it succeeded, then it was overridden by the user. We will use it 66047 # for the tool. 66048 66049 # First remove it from the list of overridden variables, so we can test 66050 # for unknown variables in the end. 66051 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66052 66053 # Check if we try to supply an empty value 66054 if test "x$CCACHE" = x; then 66055 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 66056 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 66057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 66058 $as_echo_n "checking for CCACHE... " >&6; } 66059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66060 $as_echo "disabled" >&6; } 66061 else 66062 # Check if the provided tool contains a complete path. 66063 tool_specified="$CCACHE" 66064 tool_basename="${tool_specified##*/}" 66065 if test "x$tool_basename" = "x$tool_specified"; then 66066 # A command without a complete path is provided, search $PATH. 66067 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 66068 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 66069 # Extract the first word of "$tool_basename", so it can be a program name with args. 66070 set dummy $tool_basename; ac_word=$2 66071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66072 $as_echo_n "checking for $ac_word... " >&6; } 66073 if ${ac_cv_path_CCACHE+:} false; then : 66074 $as_echo_n "(cached) " >&6 66075 else 66076 case $CCACHE in 66077 [\\/]* | ?:[\\/]*) 66078 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 66079 ;; 66080 *) 66081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66082 for as_dir in $PATH 66083 do 66084 IFS=$as_save_IFS 66085 test -z "$as_dir" && as_dir=. 66086 for ac_exec_ext in '' $ac_executable_extensions; do 66087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66088 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 66089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66090 break 2 66091 fi 66092 done 66093 done 66094 IFS=$as_save_IFS 66095 66096 ;; 66097 esac 66098 fi 66099 CCACHE=$ac_cv_path_CCACHE 66100 if test -n "$CCACHE"; then 66101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 66102 $as_echo "$CCACHE" >&6; } 66103 else 66104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66105 $as_echo "no" >&6; } 66106 fi 66107 66108 66109 if test "x$CCACHE" = x; then 66110 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66111 fi 66112 else 66113 # Otherwise we believe it is a complete path. Use it as it is. 66114 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 66115 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 66116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 66117 $as_echo_n "checking for CCACHE... " >&6; } 66118 if test ! -x "$tool_specified"; then 66119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66120 $as_echo "not found" >&6; } 66121 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 66122 fi 66123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66124 $as_echo "$tool_specified" >&6; } 66125 fi 66126 fi 66127 fi 66128 66129 fi 66130 66131 66132 66133 if test "x$CCACHE" = x; then 66134 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 66135 fi 66136 66137 66138 PATH="$OLD_PATH" 66139 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 66140 CCACHE_STATUS="Active ($CCACHE_VERSION)" 66141 else 66142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66143 $as_echo "no" >&6; } 66144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 66145 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 66146 fi 66147 elif test "x$enable_ccache" = xno; then 66148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 66149 $as_echo "no, explicitly disabled" >&6; } 66150 CCACHE_STATUS="Disabled" 66151 elif test "x$enable_ccache" = x; then 66152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66153 $as_echo "no" >&6; } 66154 else 66155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 66156 $as_echo "unknown" >&6; } 66157 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 66158 fi 66159 66160 66161 66162 # Check whether --with-ccache-dir was given. 66163 if test "${with_ccache_dir+set}" = set; then : 66164 withval=$with_ccache_dir; 66165 fi 66166 66167 66168 if test "x$with_ccache_dir" != x; then 66169 # When using a non home ccache directory, assume the use is to share ccache files 66170 # with other users. Thus change the umask. 66171 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 66172 if test "x$CCACHE" = x; then 66173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 66174 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 66175 fi 66176 fi 66177 66178 if test "x$CCACHE" != x; then 66179 66180 if test "x$CCACHE" != x; then 66181 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 66182 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 66183 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 66184 if test "x$HAS_BAD_CCACHE" != "x"; then 66185 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 66186 fi 66187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 66188 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 66189 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 66190 PUSHED_FLAGS="$CXXFLAGS" 66191 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 66192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66193 /* end confdefs.h. */ 66194 66195 int 66196 main () 66197 { 66198 66199 ; 66200 return 0; 66201 } 66202 _ACEOF 66203 if ac_fn_cxx_try_compile "$LINENO"; then : 66204 CC_KNOWS_CCACHE_TRICK=yes 66205 else 66206 CC_KNOWS_CCACHE_TRICK=no 66207 fi 66208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66209 CXXFLAGS="$PUSHED_FLAGS" 66210 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 66211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66212 $as_echo "yes" >&6; } 66213 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 66214 66215 CCACHE_SLOPPINESS=pch_defines,time_macros 66216 else 66217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66218 $as_echo "no" >&6; } 66219 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 66220 fi 66221 fi 66222 66223 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 66224 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 66225 66226 if test "x$SET_CCACHE_DIR" != x; then 66227 mkdir -p $CCACHE_DIR > /dev/null 2>&1 66228 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 66229 fi 66230 fi 66231 66232 fi 66233 66234 66235 ############################################################################### 66236 # 66237 # And now the finish... 66238 # 66239 ############################################################################### 66240 66241 # Check for some common pitfalls 66242 66243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66244 file_to_test="$SRC_ROOT/LICENSE" 66245 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 66246 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 66247 fi 66248 fi 66249 66250 66251 # Did user specify any unknown variables? 66252 66253 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 66254 # Replace the separating ! with spaces before presenting for end user. 66255 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 66256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 66257 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 66258 fi 66259 66260 66261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 66262 $as_echo_n "checking if build directory is on local disk... " >&6; } 66263 66264 # df -l lists only local disks; if the given directory is not found then 66265 # a non-zero exit code is given 66266 if test "x$DF" = x; then 66267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66268 # msys does not have df; use Windows "net use" instead. 66269 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 66270 if test "x$IS_NETWORK_DISK" = x; then 66271 OUTPUT_DIR_IS_LOCAL="yes" 66272 else 66273 OUTPUT_DIR_IS_LOCAL="no" 66274 fi 66275 else 66276 # No df here, say it's local 66277 OUTPUT_DIR_IS_LOCAL="yes" 66278 fi 66279 else 66280 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 66281 OUTPUT_DIR_IS_LOCAL="yes" 66282 else 66283 OUTPUT_DIR_IS_LOCAL="no" 66284 fi 66285 fi 66286 66287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 66288 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 66289 66290 66291 66292 # Check if the user has any old-style ALT_ variables set. 66293 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 66294 66295 # Before generating output files, test if they exist. If they do, this is a reconfigure. 66296 # Since we can't properly handle the dependencies for this, warn the user about the situation 66297 if test -e $OUTPUT_ROOT/spec.gmk; then 66298 IS_RECONFIGURE=yes 66299 else 66300 IS_RECONFIGURE=no 66301 fi 66302 66303 66304 # At the end, call the custom hook. (Dummy macro if no custom sources available) 66305 66306 66307 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 66308 66309 # Keep feature lists sorted and free of duplicates 66310 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 66311 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 66312 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 66313 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 66314 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 66315 JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" 66316 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 66317 66318 # Validate features 66319 for variant in $JVM_VARIANTS; do 66320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 66321 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 66322 features_var_name=JVM_FEATURES_$variant 66323 JVM_FEATURES_TO_TEST=${!features_var_name} 66324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 66325 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 66326 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 66327 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 66328 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 66329 if test "x$INVALID_FEATURES" != x; then 66330 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 66331 fi 66332 done 66333 66334 66335 # We're messing a bit with internal autoconf variables to put the config.status 66336 # in the output directory instead of the current directory. 66337 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 66338 66339 # Create the actual output files. Now the main work of configure is done. 66340 cat >confcache <<\_ACEOF 66341 # This file is a shell script that caches the results of configure 66342 # tests run on this system so they can be shared between configure 66343 # scripts and configure runs, see configure's option --config-cache. 66344 # It is not useful on other systems. If it contains results you don't 66345 # want to keep, you may remove or edit it. 66346 # 66347 # config.status only pays attention to the cache file if you give it 66348 # the --recheck option to rerun configure. 66349 # 66350 # `ac_cv_env_foo' variables (set or unset) will be overridden when 66351 # loading this file, other *unset* `ac_cv_foo' will be assigned the 66352 # following values. 66353 66354 _ACEOF 66355 66356 # The following way of writing the cache mishandles newlines in values, 66357 # but we know of no workaround that is simple, portable, and efficient. 66358 # So, we kill variables containing newlines. 66359 # Ultrix sh set writes to stderr and can't be redirected directly, 66360 # and sets the high bit in the cache file unless we assign to the vars. 66361 ( 66362 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 66363 eval ac_val=\$$ac_var 66364 case $ac_val in #( 66365 *${as_nl}*) 66366 case $ac_var in #( 66367 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 66368 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 66369 esac 66370 case $ac_var in #( 66371 _ | IFS | as_nl) ;; #( 66372 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 66373 *) { eval $ac_var=; unset $ac_var;} ;; 66374 esac ;; 66375 esac 66376 done 66377 66378 (set) 2>&1 | 66379 case $as_nl`(ac_space=' '; set) 2>&1` in #( 66380 *${as_nl}ac_space=\ *) 66381 # `set' does not quote correctly, so add quotes: double-quote 66382 # substitution turns \\\\ into \\, and sed turns \\ into \. 66383 sed -n \ 66384 "s/'/'\\\\''/g; 66385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 66386 ;; #( 66387 *) 66388 # `set' quotes correctly as required by POSIX, so do not add quotes. 66389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 66390 ;; 66391 esac | 66392 sort 66393 ) | 66394 sed ' 66395 /^ac_cv_env_/b end 66396 t clear 66397 :clear 66398 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 66399 t end 66400 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 66401 :end' >>confcache 66402 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 66403 if test -w "$cache_file"; then 66404 if test "x$cache_file" != "x/dev/null"; then 66405 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 66406 $as_echo "$as_me: updating cache $cache_file" >&6;} 66407 if test ! -f "$cache_file" || test -h "$cache_file"; then 66408 cat confcache >"$cache_file" 66409 else 66410 case $cache_file in #( 66411 */* | ?:*) 66412 mv -f confcache "$cache_file"$$ && 66413 mv -f "$cache_file"$$ "$cache_file" ;; #( 66414 *) 66415 mv -f confcache "$cache_file" ;; 66416 esac 66417 fi 66418 fi 66419 else 66420 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 66421 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 66422 fi 66423 fi 66424 rm -f confcache 66425 66426 test "x$prefix" = xNONE && prefix=$ac_default_prefix 66427 # Let make expand exec_prefix. 66428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 66429 66430 # Transform confdefs.h into DEFS. 66431 # Protect against shell expansion while executing Makefile rules. 66432 # Protect against Makefile macro expansion. 66433 # 66434 # If the first sed substitution is executed (which looks for macros that 66435 # take arguments), then branch to the quote section. Otherwise, 66436 # look for a macro that doesn't take arguments. 66437 ac_script=' 66438 :mline 66439 /\\$/{ 66440 N 66441 s,\\\n,, 66442 b mline 66443 } 66444 t clear 66445 :clear 66446 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 66447 t quote 66448 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 66449 t quote 66450 b any 66451 :quote 66452 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 66453 s/\[/\\&/g 66454 s/\]/\\&/g 66455 s/\$/$$/g 66456 H 66457 :any 66458 ${ 66459 g 66460 s/^\n// 66461 s/\n/ /g 66462 p 66463 } 66464 ' 66465 DEFS=`sed -n "$ac_script" confdefs.h` 66466 66467 66468 ac_libobjs= 66469 ac_ltlibobjs= 66470 U= 66471 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 66472 # 1. Remove the extension, and $U if already installed. 66473 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 66474 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 66475 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 66476 # will be set to the directory where LIBOBJS objects are built. 66477 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 66478 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 66479 done 66480 LIBOBJS=$ac_libobjs 66481 66482 LTLIBOBJS=$ac_ltlibobjs 66483 66484 66485 66486 : "${CONFIG_STATUS=./config.status}" 66487 ac_write_fail=0 66488 ac_clean_files_save=$ac_clean_files 66489 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 66490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 66491 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 66492 as_write_fail=0 66493 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 66494 #! $SHELL 66495 # Generated by $as_me. 66496 # Run this file to recreate the current configuration. 66497 # Compiler output produced by configure, useful for debugging 66498 # configure, is in config.log if it exists. 66499 66500 debug=false 66501 ac_cs_recheck=false 66502 ac_cs_silent=false 66503 66504 SHELL=\${CONFIG_SHELL-$SHELL} 66505 export SHELL 66506 _ASEOF 66507 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 66508 ## -------------------- ## 66509 ## M4sh Initialization. ## 66510 ## -------------------- ## 66511 66512 # Be more Bourne compatible 66513 DUALCASE=1; export DUALCASE # for MKS sh 66514 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 66515 emulate sh 66516 NULLCMD=: 66517 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 66518 # is contrary to our usage. Disable this feature. 66519 alias -g '${1+"$@"}'='"$@"' 66520 setopt NO_GLOB_SUBST 66521 else 66522 case `(set -o) 2>/dev/null` in #( 66523 *posix*) : 66524 set -o posix ;; #( 66525 *) : 66526 ;; 66527 esac 66528 fi 66529 66530 66531 as_nl=' 66532 ' 66533 export as_nl 66534 # Printing a long string crashes Solaris 7 /usr/bin/printf. 66535 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 66536 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 66537 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 66538 # Prefer a ksh shell builtin over an external printf program on Solaris, 66539 # but without wasting forks for bash or zsh. 66540 if test -z "$BASH_VERSION$ZSH_VERSION" \ 66541 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 66542 as_echo='print -r --' 66543 as_echo_n='print -rn --' 66544 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 66545 as_echo='printf %s\n' 66546 as_echo_n='printf %s' 66547 else 66548 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 66549 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 66550 as_echo_n='/usr/ucb/echo -n' 66551 else 66552 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66553 as_echo_n_body='eval 66554 arg=$1; 66555 case $arg in #( 66556 *"$as_nl"*) 66557 expr "X$arg" : "X\\(.*\\)$as_nl"; 66558 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66559 esac; 66560 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66561 ' 66562 export as_echo_n_body 66563 as_echo_n='sh -c $as_echo_n_body as_echo' 66564 fi 66565 export as_echo_body 66566 as_echo='sh -c $as_echo_body as_echo' 66567 fi 66568 66569 # The user is always right. 66570 if test "${PATH_SEPARATOR+set}" != set; then 66571 PATH_SEPARATOR=: 66572 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 66573 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 66574 PATH_SEPARATOR=';' 66575 } 66576 fi 66577 66578 66579 # IFS 66580 # We need space, tab and new line, in precisely that order. Quoting is 66581 # there to prevent editors from complaining about space-tab. 66582 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 66583 # splitting by setting IFS to empty value.) 66584 IFS=" "" $as_nl" 66585 66586 # Find who we are. Look in the path if we contain no directory separator. 66587 as_myself= 66588 case $0 in #(( 66589 *[\\/]* ) as_myself=$0 ;; 66590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66591 for as_dir in $PATH 66592 do 66593 IFS=$as_save_IFS 66594 test -z "$as_dir" && as_dir=. 66595 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 66596 done 66597 IFS=$as_save_IFS 66598 66599 ;; 66600 esac 66601 # We did not find ourselves, most probably we were run as `sh COMMAND' 66602 # in which case we are not to be found in the path. 66603 if test "x$as_myself" = x; then 66604 as_myself=$0 66605 fi 66606 if test ! -f "$as_myself"; then 66607 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 66608 exit 1 66609 fi 66610 66611 # Unset variables that we do not need and which cause bugs (e.g. in 66612 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 66613 # suppresses any "Segmentation fault" message there. '((' could 66614 # trigger a bug in pdksh 5.2.14. 66615 for as_var in BASH_ENV ENV MAIL MAILPATH 66616 do eval test x\${$as_var+set} = xset \ 66617 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 66618 done 66619 PS1='$ ' 66620 PS2='> ' 66621 PS4='+ ' 66622 66623 # NLS nuisances. 66624 LC_ALL=C 66625 export LC_ALL 66626 LANGUAGE=C 66627 export LANGUAGE 66628 66629 # CDPATH. 66630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 66631 66632 66633 # as_fn_error STATUS ERROR [LINENO LOG_FD] 66634 # ---------------------------------------- 66635 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 66636 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 66637 # script with STATUS, using 1 if that was 0. 66638 as_fn_error () 66639 { 66640 as_status=$1; test $as_status -eq 0 && as_status=1 66641 if test "$4"; then 66642 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 66643 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 66644 fi 66645 $as_echo "$as_me: error: $2" >&2 66646 as_fn_exit $as_status 66647 } # as_fn_error 66648 66649 66650 # as_fn_set_status STATUS 66651 # ----------------------- 66652 # Set $? to STATUS, without forking. 66653 as_fn_set_status () 66654 { 66655 return $1 66656 } # as_fn_set_status 66657 66658 # as_fn_exit STATUS 66659 # ----------------- 66660 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 66661 as_fn_exit () 66662 { 66663 set +e 66664 as_fn_set_status $1 66665 exit $1 66666 } # as_fn_exit 66667 66668 # as_fn_unset VAR 66669 # --------------- 66670 # Portably unset VAR. 66671 as_fn_unset () 66672 { 66673 { eval $1=; unset $1;} 66674 } 66675 as_unset=as_fn_unset 66676 # as_fn_append VAR VALUE 66677 # ---------------------- 66678 # Append the text in VALUE to the end of the definition contained in VAR. Take 66679 # advantage of any shell optimizations that allow amortized linear growth over 66680 # repeated appends, instead of the typical quadratic growth present in naive 66681 # implementations. 66682 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 66683 eval 'as_fn_append () 66684 { 66685 eval $1+=\$2 66686 }' 66687 else 66688 as_fn_append () 66689 { 66690 eval $1=\$$1\$2 66691 } 66692 fi # as_fn_append 66693 66694 # as_fn_arith ARG... 66695 # ------------------ 66696 # Perform arithmetic evaluation on the ARGs, and store the result in the 66697 # global $as_val. Take advantage of shells that can avoid forks. The arguments 66698 # must be portable across $(()) and expr. 66699 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 66700 eval 'as_fn_arith () 66701 { 66702 as_val=$(( $* )) 66703 }' 66704 else 66705 as_fn_arith () 66706 { 66707 as_val=`expr "$@" || test $? -eq 1` 66708 } 66709 fi # as_fn_arith 66710 66711 66712 if expr a : '\(a\)' >/dev/null 2>&1 && 66713 test "X`expr 00001 : '.*\(...\)'`" = X001; then 66714 as_expr=expr 66715 else 66716 as_expr=false 66717 fi 66718 66719 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 66720 as_basename=basename 66721 else 66722 as_basename=false 66723 fi 66724 66725 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 66726 as_dirname=dirname 66727 else 66728 as_dirname=false 66729 fi 66730 66731 as_me=`$as_basename -- "$0" || 66732 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 66733 X"$0" : 'X\(//\)$' \| \ 66734 X"$0" : 'X\(/\)' \| . 2>/dev/null || 66735 $as_echo X/"$0" | 66736 sed '/^.*\/\([^/][^/]*\)\/*$/{ 66737 s//\1/ 66738 q 66739 } 66740 /^X\/\(\/\/\)$/{ 66741 s//\1/ 66742 q 66743 } 66744 /^X\/\(\/\).*/{ 66745 s//\1/ 66746 q 66747 } 66748 s/.*/./; q'` 66749 66750 # Avoid depending upon Character Ranges. 66751 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 66752 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 66753 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 66754 as_cr_digits='0123456789' 66755 as_cr_alnum=$as_cr_Letters$as_cr_digits 66756 66757 ECHO_C= ECHO_N= ECHO_T= 66758 case `echo -n x` in #((((( 66759 -n*) 66760 case `echo 'xy\c'` in 66761 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 66762 xy) ECHO_C='\c';; 66763 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 66764 ECHO_T=' ';; 66765 esac;; 66766 *) 66767 ECHO_N='-n';; 66768 esac 66769 66770 rm -f conf$$ conf$$.exe conf$$.file 66771 if test -d conf$$.dir; then 66772 rm -f conf$$.dir/conf$$.file 66773 else 66774 rm -f conf$$.dir 66775 mkdir conf$$.dir 2>/dev/null 66776 fi 66777 if (echo >conf$$.file) 2>/dev/null; then 66778 if ln -s conf$$.file conf$$ 2>/dev/null; then 66779 as_ln_s='ln -s' 66780 # ... but there are two gotchas: 66781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 66782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 66783 # In both cases, we have to default to `cp -pR'. 66784 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 66785 as_ln_s='cp -pR' 66786 elif ln conf$$.file conf$$ 2>/dev/null; then 66787 as_ln_s=ln 66788 else 66789 as_ln_s='cp -pR' 66790 fi 66791 else 66792 as_ln_s='cp -pR' 66793 fi 66794 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 66795 rmdir conf$$.dir 2>/dev/null 66796 66797 66798 # as_fn_mkdir_p 66799 # ------------- 66800 # Create "$as_dir" as a directory, including parents if necessary. 66801 as_fn_mkdir_p () 66802 { 66803 66804 case $as_dir in #( 66805 -*) as_dir=./$as_dir;; 66806 esac 66807 test -d "$as_dir" || eval $as_mkdir_p || { 66808 as_dirs= 66809 while :; do 66810 case $as_dir in #( 66811 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 66812 *) as_qdir=$as_dir;; 66813 esac 66814 as_dirs="'$as_qdir' $as_dirs" 66815 as_dir=`$as_dirname -- "$as_dir" || 66816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66817 X"$as_dir" : 'X\(//\)[^/]' \| \ 66818 X"$as_dir" : 'X\(//\)$' \| \ 66819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 66820 $as_echo X"$as_dir" | 66821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 66822 s//\1/ 66823 q 66824 } 66825 /^X\(\/\/\)[^/].*/{ 66826 s//\1/ 66827 q 66828 } 66829 /^X\(\/\/\)$/{ 66830 s//\1/ 66831 q 66832 } 66833 /^X\(\/\).*/{ 66834 s//\1/ 66835 q 66836 } 66837 s/.*/./; q'` 66838 test -d "$as_dir" && break 66839 done 66840 test -z "$as_dirs" || eval "mkdir $as_dirs" 66841 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 66842 66843 66844 } # as_fn_mkdir_p 66845 if mkdir -p . 2>/dev/null; then 66846 as_mkdir_p='mkdir -p "$as_dir"' 66847 else 66848 test -d ./-p && rmdir ./-p 66849 as_mkdir_p=false 66850 fi 66851 66852 66853 # as_fn_executable_p FILE 66854 # ----------------------- 66855 # Test if FILE is an executable regular file. 66856 as_fn_executable_p () 66857 { 66858 test -f "$1" && test -x "$1" 66859 } # as_fn_executable_p 66860 as_test_x='test -x' 66861 as_executable_p=as_fn_executable_p 66862 66863 # Sed expression to map a string onto a valid CPP name. 66864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 66865 66866 # Sed expression to map a string onto a valid variable name. 66867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 66868 66869 66870 exec 6>&1 66871 ## ----------------------------------- ## 66872 ## Main body of $CONFIG_STATUS script. ## 66873 ## ----------------------------------- ## 66874 _ASEOF 66875 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 66876 66877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66878 # Save the log message, to keep $0 and so on meaningful, and to 66879 # report actual input values of CONFIG_FILES etc. instead of their 66880 # values after options handling. 66881 ac_log=" 66882 This file was extended by OpenJDK $as_me jdk9, which was 66883 generated by GNU Autoconf 2.69. Invocation command line was 66884 66885 CONFIG_FILES = $CONFIG_FILES 66886 CONFIG_HEADERS = $CONFIG_HEADERS 66887 CONFIG_LINKS = $CONFIG_LINKS 66888 CONFIG_COMMANDS = $CONFIG_COMMANDS 66889 $ $0 $@ 66890 66891 on `(hostname || uname -n) 2>/dev/null | sed 1q` 66892 " 66893 66894 _ACEOF 66895 66896 case $ac_config_files in *" 66897 "*) set x $ac_config_files; shift; ac_config_files=$*;; 66898 esac 66899 66900 66901 66902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66903 # Files that config.status was made for. 66904 config_files="$ac_config_files" 66905 66906 _ACEOF 66907 66908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66909 ac_cs_usage="\ 66910 \`$as_me' instantiates files and other configuration actions 66911 from templates according to the current configuration. Unless the files 66912 and actions are specified as TAGs, all are instantiated by default. 66913 66914 Usage: $0 [OPTION]... [TAG]... 66915 66916 -h, --help print this help, then exit 66917 -V, --version print version number and configuration settings, then exit 66918 --config print configuration, then exit 66919 -q, --quiet, --silent 66920 do not print progress messages 66921 -d, --debug don't remove temporary files 66922 --recheck update $as_me by reconfiguring in the same conditions 66923 --file=FILE[:TEMPLATE] 66924 instantiate the configuration file FILE 66925 66926 Configuration files: 66927 $config_files 66928 66929 Report bugs to <build-dev@openjdk.java.net>. 66930 OpenJDK home page: <http://openjdk.java.net>." 66931 66932 _ACEOF 66933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66934 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 66935 ac_cs_version="\\ 66936 OpenJDK config.status jdk9 66937 configured by $0, generated by GNU Autoconf 2.69, 66938 with options \\"\$ac_cs_config\\" 66939 66940 Copyright (C) 2012 Free Software Foundation, Inc. 66941 This config.status script is free software; the Free Software Foundation 66942 gives unlimited permission to copy, distribute and modify it." 66943 66944 ac_pwd='$ac_pwd' 66945 srcdir='$srcdir' 66946 AWK='$AWK' 66947 test -n "\$AWK" || AWK=awk 66948 _ACEOF 66949 66950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66951 # The default lists apply if the user does not specify any file. 66952 ac_need_defaults=: 66953 while test $# != 0 66954 do 66955 case $1 in 66956 --*=?*) 66957 ac_option=`expr "X$1" : 'X\([^=]*\)='` 66958 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 66959 ac_shift=: 66960 ;; 66961 --*=) 66962 ac_option=`expr "X$1" : 'X\([^=]*\)='` 66963 ac_optarg= 66964 ac_shift=: 66965 ;; 66966 *) 66967 ac_option=$1 66968 ac_optarg=$2 66969 ac_shift=shift 66970 ;; 66971 esac 66972 66973 case $ac_option in 66974 # Handling of the options. 66975 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 66976 ac_cs_recheck=: ;; 66977 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 66978 $as_echo "$ac_cs_version"; exit ;; 66979 --config | --confi | --conf | --con | --co | --c ) 66980 $as_echo "$ac_cs_config"; exit ;; 66981 --debug | --debu | --deb | --de | --d | -d ) 66982 debug=: ;; 66983 --file | --fil | --fi | --f ) 66984 $ac_shift 66985 case $ac_optarg in 66986 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 66987 '') as_fn_error $? "missing file argument" ;; 66988 esac 66989 as_fn_append CONFIG_FILES " '$ac_optarg'" 66990 ac_need_defaults=false;; 66991 --he | --h | --help | --hel | -h ) 66992 $as_echo "$ac_cs_usage"; exit ;; 66993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 66994 | -silent | --silent | --silen | --sile | --sil | --si | --s) 66995 ac_cs_silent=: ;; 66996 66997 # This is an error. 66998 -*) as_fn_error $? "unrecognized option: \`$1' 66999 Try \`$0 --help' for more information." ;; 67000 67001 *) as_fn_append ac_config_targets " $1" 67002 ac_need_defaults=false ;; 67003 67004 esac 67005 shift 67006 done 67007 67008 ac_configure_extra_args= 67009 67010 if $ac_cs_silent; then 67011 exec 6>/dev/null 67012 ac_configure_extra_args="$ac_configure_extra_args --silent" 67013 fi 67014 67015 _ACEOF 67016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67017 if \$ac_cs_recheck; then 67018 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 67019 shift 67020 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 67021 CONFIG_SHELL='$SHELL' 67022 export CONFIG_SHELL 67023 exec "\$@" 67024 fi 67025 67026 _ACEOF 67027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67028 exec 5>>config.log 67029 { 67030 echo 67031 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 67032 ## Running $as_me. ## 67033 _ASBOX 67034 $as_echo "$ac_log" 67035 } >&5 67036 67037 _ACEOF 67038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67039 _ACEOF 67040 67041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67042 67043 # Handling of arguments. 67044 for ac_config_target in $ac_config_targets 67045 do 67046 case $ac_config_target in 67047 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 67048 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 67049 "$OUTPUT_ROOT/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 67050 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 67051 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 67052 67053 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 67054 esac 67055 done 67056 67057 67058 # If the user did not use the arguments to specify the items to instantiate, 67059 # then the envvar interface is used. Set only those that are not. 67060 # We use the long form for the default assignment because of an extremely 67061 # bizarre bug on SunOS 4.1.3. 67062 if $ac_need_defaults; then 67063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 67064 fi 67065 67066 # Have a temporary directory for convenience. Make it in the build tree 67067 # simply because there is no reason against having it here, and in addition, 67068 # creating and moving files from /tmp can sometimes cause problems. 67069 # Hook for its removal unless debugging. 67070 # Note that there is a small window in which the directory will not be cleaned: 67071 # after its creation but before its name has been assigned to `$tmp'. 67072 $debug || 67073 { 67074 tmp= ac_tmp= 67075 trap 'exit_status=$? 67076 : "${ac_tmp:=$tmp}" 67077 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 67078 ' 0 67079 trap 'as_fn_exit 1' 1 2 13 15 67080 } 67081 # Create a (secure) tmp directory for tmp files. 67082 67083 { 67084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 67085 test -d "$tmp" 67086 } || 67087 { 67088 tmp=./conf$$-$RANDOM 67089 (umask 077 && mkdir "$tmp") 67090 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 67091 ac_tmp=$tmp 67092 67093 # Set up the scripts for CONFIG_FILES section. 67094 # No need to generate them if there are no CONFIG_FILES. 67095 # This happens for instance with `./config.status config.h'. 67096 if test -n "$CONFIG_FILES"; then 67097 67098 67099 ac_cr=`echo X | tr X '\015'` 67100 # On cygwin, bash can eat \r inside `` if the user requested igncr. 67101 # But we know of no other shell where ac_cr would be empty at this 67102 # point, so we can use a bashism as a fallback. 67103 if test "x$ac_cr" = x; then 67104 eval ac_cr=\$\'\\r\' 67105 fi 67106 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 67107 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 67108 ac_cs_awk_cr='\\r' 67109 else 67110 ac_cs_awk_cr=$ac_cr 67111 fi 67112 67113 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 67114 _ACEOF 67115 67116 67117 { 67118 echo "cat >conf$$subs.awk <<_ACEOF" && 67119 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 67120 echo "_ACEOF" 67121 } >conf$$subs.sh || 67122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 67123 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 67124 ac_delim='%!_!# ' 67125 for ac_last_try in false false false false false :; do 67126 . ./conf$$subs.sh || 67127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 67128 67129 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 67130 if test $ac_delim_n = $ac_delim_num; then 67131 break 67132 elif $ac_last_try; then 67133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 67134 else 67135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 67136 fi 67137 done 67138 rm -f conf$$subs.sh 67139 67140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67141 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 67142 _ACEOF 67143 sed -n ' 67144 h 67145 s/^/S["/; s/!.*/"]=/ 67146 p 67147 g 67148 s/^[^!]*!// 67149 :repl 67150 t repl 67151 s/'"$ac_delim"'$// 67152 t delim 67153 :nl 67154 h 67155 s/\(.\{148\}\)..*/\1/ 67156 t more1 67157 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 67158 p 67159 n 67160 b repl 67161 :more1 67162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 67163 p 67164 g 67165 s/.\{148\}// 67166 t nl 67167 :delim 67168 h 67169 s/\(.\{148\}\)..*/\1/ 67170 t more2 67171 s/["\\]/\\&/g; s/^/"/; s/$/"/ 67172 p 67173 b 67174 :more2 67175 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 67176 p 67177 g 67178 s/.\{148\}// 67179 t delim 67180 ' <conf$$subs.awk | sed ' 67181 /^[^""]/{ 67182 N 67183 s/\n// 67184 } 67185 ' >>$CONFIG_STATUS || ac_write_fail=1 67186 rm -f conf$$subs.awk 67187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67188 _ACAWK 67189 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 67190 for (key in S) S_is_set[key] = 1 67191 FS = "" 67192 67193 } 67194 { 67195 line = $ 0 67196 nfields = split(line, field, "@") 67197 substed = 0 67198 len = length(field[1]) 67199 for (i = 2; i < nfields; i++) { 67200 key = field[i] 67201 keylen = length(key) 67202 if (S_is_set[key]) { 67203 value = S[key] 67204 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 67205 len += length(value) + length(field[++i]) 67206 substed = 1 67207 } else 67208 len += 1 + keylen 67209 } 67210 67211 print line 67212 } 67213 67214 _ACAWK 67215 _ACEOF 67216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67217 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 67218 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 67219 else 67220 cat 67221 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 67222 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 67223 _ACEOF 67224 67225 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 67226 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 67227 # trailing colons and then remove the whole line if VPATH becomes empty 67228 # (actually we leave an empty line to preserve line numbers). 67229 if test "x$srcdir" = x.; then 67230 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 67231 h 67232 s/// 67233 s/^/:/ 67234 s/[ ]*$/:/ 67235 s/:\$(srcdir):/:/g 67236 s/:\${srcdir}:/:/g 67237 s/:@srcdir@:/:/g 67238 s/^:*// 67239 s/:*$// 67240 x 67241 s/\(=[ ]*\).*/\1/ 67242 G 67243 s/\n// 67244 s/^[^=]*=[ ]*$// 67245 }' 67246 fi 67247 67248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67249 fi # test -n "$CONFIG_FILES" 67250 67251 67252 eval set X " :F $CONFIG_FILES " 67253 shift 67254 for ac_tag 67255 do 67256 case $ac_tag in 67257 :[FHLC]) ac_mode=$ac_tag; continue;; 67258 esac 67259 case $ac_mode$ac_tag in 67260 :[FHL]*:*);; 67261 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 67262 :[FH]-) ac_tag=-:-;; 67263 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 67264 esac 67265 ac_save_IFS=$IFS 67266 IFS=: 67267 set x $ac_tag 67268 IFS=$ac_save_IFS 67269 shift 67270 ac_file=$1 67271 shift 67272 67273 case $ac_mode in 67274 :L) ac_source=$1;; 67275 :[FH]) 67276 ac_file_inputs= 67277 for ac_f 67278 do 67279 case $ac_f in 67280 -) ac_f="$ac_tmp/stdin";; 67281 *) # Look for the file first in the build tree, then in the source tree 67282 # (if the path is not absolute). The absolute path cannot be DOS-style, 67283 # because $ac_f cannot contain `:'. 67284 test -f "$ac_f" || 67285 case $ac_f in 67286 [\\/$]*) false;; 67287 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 67288 esac || 67289 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 67290 esac 67291 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 67292 as_fn_append ac_file_inputs " '$ac_f'" 67293 done 67294 67295 # Let's still pretend it is `configure' which instantiates (i.e., don't 67296 # use $as_me), people would be surprised to read: 67297 # /* config.h. Generated by config.status. */ 67298 configure_input='Generated from '` 67299 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 67300 `' by configure.' 67301 if test x"$ac_file" != x-; then 67302 configure_input="$ac_file. $configure_input" 67303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 67304 $as_echo "$as_me: creating $ac_file" >&6;} 67305 fi 67306 # Neutralize special characters interpreted by sed in replacement strings. 67307 case $configure_input in #( 67308 *\&* | *\|* | *\\* ) 67309 ac_sed_conf_input=`$as_echo "$configure_input" | 67310 sed 's/[\\\\&|]/\\\\&/g'`;; #( 67311 *) ac_sed_conf_input=$configure_input;; 67312 esac 67313 67314 case $ac_tag in 67315 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 67316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 67317 esac 67318 ;; 67319 esac 67320 67321 ac_dir=`$as_dirname -- "$ac_file" || 67322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 67323 X"$ac_file" : 'X\(//\)[^/]' \| \ 67324 X"$ac_file" : 'X\(//\)$' \| \ 67325 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 67326 $as_echo X"$ac_file" | 67327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 67328 s//\1/ 67329 q 67330 } 67331 /^X\(\/\/\)[^/].*/{ 67332 s//\1/ 67333 q 67334 } 67335 /^X\(\/\/\)$/{ 67336 s//\1/ 67337 q 67338 } 67339 /^X\(\/\).*/{ 67340 s//\1/ 67341 q 67342 } 67343 s/.*/./; q'` 67344 as_dir="$ac_dir"; as_fn_mkdir_p 67345 ac_builddir=. 67346 67347 case "$ac_dir" in 67348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 67349 *) 67350 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 67351 # A ".." for each directory in $ac_dir_suffix. 67352 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 67353 case $ac_top_builddir_sub in 67354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 67355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 67356 esac ;; 67357 esac 67358 ac_abs_top_builddir=$ac_pwd 67359 ac_abs_builddir=$ac_pwd$ac_dir_suffix 67360 # for backward compatibility: 67361 ac_top_builddir=$ac_top_build_prefix 67362 67363 case $srcdir in 67364 .) # We are building in place. 67365 ac_srcdir=. 67366 ac_top_srcdir=$ac_top_builddir_sub 67367 ac_abs_top_srcdir=$ac_pwd ;; 67368 [\\/]* | ?:[\\/]* ) # Absolute name. 67369 ac_srcdir=$srcdir$ac_dir_suffix; 67370 ac_top_srcdir=$srcdir 67371 ac_abs_top_srcdir=$srcdir ;; 67372 *) # Relative name. 67373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 67374 ac_top_srcdir=$ac_top_build_prefix$srcdir 67375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 67376 esac 67377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 67378 67379 67380 case $ac_mode in 67381 :F) 67382 # 67383 # CONFIG_FILE 67384 # 67385 67386 _ACEOF 67387 67388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67389 # If the template does not know about datarootdir, expand it. 67390 # FIXME: This hack should be removed a few years after 2.60. 67391 ac_datarootdir_hack=; ac_datarootdir_seen= 67392 ac_sed_dataroot=' 67393 /datarootdir/ { 67394 p 67395 q 67396 } 67397 /@datadir@/p 67398 /@docdir@/p 67399 /@infodir@/p 67400 /@localedir@/p 67401 /@mandir@/p' 67402 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 67403 *datarootdir*) ac_datarootdir_seen=yes;; 67404 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 67405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 67406 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 67407 _ACEOF 67408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67409 ac_datarootdir_hack=' 67410 s&@datadir@&$datadir&g 67411 s&@docdir@&$docdir&g 67412 s&@infodir@&$infodir&g 67413 s&@localedir@&$localedir&g 67414 s&@mandir@&$mandir&g 67415 s&\\\${datarootdir}&$datarootdir&g' ;; 67416 esac 67417 _ACEOF 67418 67419 # Neutralize VPATH when `$srcdir' = `.'. 67420 # Shell code in configure.ac might set extrasub. 67421 # FIXME: do we really want to maintain this feature? 67422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67423 ac_sed_extra="$ac_vpsub 67424 $extrasub 67425 _ACEOF 67426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67427 :t 67428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 67429 s|@configure_input@|$ac_sed_conf_input|;t t 67430 s&@top_builddir@&$ac_top_builddir_sub&;t t 67431 s&@top_build_prefix@&$ac_top_build_prefix&;t t 67432 s&@srcdir@&$ac_srcdir&;t t 67433 s&@abs_srcdir@&$ac_abs_srcdir&;t t 67434 s&@top_srcdir@&$ac_top_srcdir&;t t 67435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 67436 s&@builddir@&$ac_builddir&;t t 67437 s&@abs_builddir@&$ac_abs_builddir&;t t 67438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 67439 $ac_datarootdir_hack 67440 " 67441 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 67442 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67443 67444 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 67445 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 67446 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 67447 "$ac_tmp/out"`; test -z "$ac_out"; } && 67448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 67449 which seems to be undefined. Please make sure it is defined" >&5 67450 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 67451 which seems to be undefined. Please make sure it is defined" >&2;} 67452 67453 rm -f "$ac_tmp/stdin" 67454 case $ac_file in 67455 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 67456 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 67457 esac \ 67458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67459 ;; 67460 67461 67462 67463 esac 67464 67465 done # for ac_tag 67466 67467 67468 as_fn_exit 0 67469 _ACEOF 67470 ac_clean_files=$ac_clean_files_save 67471 67472 test $ac_write_fail = 0 || 67473 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 67474 67475 67476 # configure is writing to config.log, and then calls config.status. 67477 # config.status does its own redirection, appending to config.log. 67478 # Unfortunately, on DOS this fails, as config.log is still kept open 67479 # by configure, so config.status won't be able to write to it; its 67480 # output is simply discarded. So we exec the FD to /dev/null, 67481 # effectively closing config.log, so it can be properly (re)opened and 67482 # appended to by config.status. When coming back to configure, we 67483 # need to make the FD available again. 67484 if test "$no_create" != yes; then 67485 ac_cs_success=: 67486 ac_config_status_args= 67487 test "$silent" = yes && 67488 ac_config_status_args="$ac_config_status_args --quiet" 67489 exec 5>/dev/null 67490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 67491 exec 5>>config.log 67492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 67493 # would make configure fail if this is the last instruction. 67494 $ac_cs_success || as_fn_exit 1 67495 fi 67496 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 67497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 67498 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 67499 fi 67500 67501 67502 # After AC_OUTPUT, we need to do final work 67503 67504 67505 # Try to move config.log (generated by autoconf) to the configure-support directory. 67506 if test -e ./config.log; then 67507 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 67508 fi 67509 67510 # Rotate our log file (configure.log) 67511 if test -e "$OUTPUT_ROOT/configure.log.old"; then 67512 $RM -f "$OUTPUT_ROOT/configure.log.old" 67513 fi 67514 if test -e "$OUTPUT_ROOT/configure.log"; then 67515 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 67516 fi 67517 67518 # Move configure.log from current directory to the build output root 67519 if test -e ./configure.log; then 67520 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 67521 fi 67522 67523 # Make the compare script executable 67524 $CHMOD +x $OUTPUT_ROOT/compare.sh 67525 67526 67527 # Finally output some useful information to the user 67528 67529 # Finally output some useful information to the user 67530 67531 printf "\n" 67532 printf "====================================================\n" 67533 if test "x$no_create" != "xyes"; then 67534 if test "x$IS_RECONFIGURE" != "xyes"; then 67535 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 67536 else 67537 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 67538 fi 67539 else 67540 if test "x$IS_RECONFIGURE" != "xyes"; then 67541 printf "A configuration has been successfully checked but not created\n" 67542 else 67543 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 67544 fi 67545 fi 67546 if test "x$CONFIGURE_COMMAND_LINE" != x; then 67547 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 67548 else 67549 printf "using default settings.\n" 67550 fi 67551 67552 printf "\n" 67553 printf "Configuration summary:\n" 67554 printf "* Debug level: $DEBUG_LEVEL\n" 67555 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 67556 printf "* JDK variant: $JDK_VARIANT\n" 67557 printf "* JVM variants: $JVM_VARIANTS\n" 67558 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 67559 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 67560 67561 printf "\n" 67562 printf "Tools summary:\n" 67563 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 67564 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 67565 fi 67566 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 67567 if test "x$TOOLCHAIN_VERSION" != "x"; then 67568 print_version=" $TOOLCHAIN_VERSION" 67569 fi 67570 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 67571 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 67572 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 67573 67574 printf "\n" 67575 printf "Build performance summary:\n" 67576 printf "* Cores to use: $JOBS\n" 67577 printf "* Memory limit: $MEMORY_SIZE MB\n" 67578 if test "x$CCACHE_STATUS" != "x"; then 67579 printf "* ccache status: $CCACHE_STATUS\n" 67580 fi 67581 printf "\n" 67582 67583 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 67584 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 67585 printf "will result in longer build times.\n" 67586 printf "\n" 67587 fi 67588 67589 if test "x$FOUND_ALT_VARIABLES" != "x"; then 67590 printf "WARNING: You have old-style ALT_ environment variables set.\n" 67591 printf "These are not respected, and will be ignored. It is recommended\n" 67592 printf "that you clean your environment. The following variables are set:\n" 67593 printf "$FOUND_ALT_VARIABLES\n" 67594 printf "\n" 67595 fi 67596 67597 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 67598 printf "WARNING: Your build output directory is not on a local disk.\n" 67599 printf "This will severely degrade build performance!\n" 67600 printf "It is recommended that you create an output directory on a local disk,\n" 67601 printf "and run the configure script again from that directory.\n" 67602 printf "\n" 67603 fi 67604 67605 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 67606 printf "WARNING: The result of this configuration has overridden an older\n" 67607 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 67608 printf "proper build. Failure to do so might result in strange build problems.\n" 67609 printf "\n" 67610 fi 67611 67612 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 67613 printf "WARNING: The result of this configuration was not saved.\n" 67614 printf "You should run without '--no-create | -n' to create the configuration.\n" 67615 printf "\n" 67616 fi 67617 67618 67619 67620 # Locate config.log. 67621 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 67622 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 67623 elif test -e "./config.log"; then 67624 CONFIG_LOG_PATH="." 67625 fi 67626 67627 if test -e "$CONFIG_LOG_PATH/config.log"; then 67628 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 67629 if test $? -eq 0; then 67630 printf "The following warnings were produced. Repeated here for convenience:\n" 67631 # We must quote sed expression (using []) to stop m4 from eating the []. 67632 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 67633 printf "\n" 67634 fi 67635 fi 67636