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 jdk8. 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='jdk8' 590 PACKAGE_STRING='OpenJDK jdk8' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA 637 JOBS 638 MEMORY_SIZE 639 NUM_CORES 640 ENABLE_INTREE_EC 641 SALIB_NAME 642 HOTSPOT_MAKE_ARGS 643 MSVCR_DLL 644 LIBCXX 645 LLVM_LIBS 646 LLVM_LDFLAGS 647 LLVM_CFLAGS 648 LLVM_CONFIG 649 LIBFFI_LIBS 650 LIBFFI_CFLAGS 651 STATIC_CXX_SETTING 652 LIBDL 653 LIBM 654 LIBZIP_CAN_USE_MMAP 655 USE_EXTERNAL_LIBZ 656 USE_EXTERNAL_LIBGIF 657 USE_EXTERNAL_LIBJPEG 658 ALSA_LIBS 659 ALSA_CFLAGS 660 FREETYPE_BUNDLE_LIB_PATH 661 FREETYPE_LIBS 662 FREETYPE_CFLAGS 663 CUPS_CFLAGS 664 X_EXTRA_LIBS 665 X_LIBS 666 X_PRE_LIBS 667 X_CFLAGS 668 XMKMF 669 FIXPATH 670 ZIP_DEBUGINFO_FILES 671 ENABLE_DEBUG_SYMBOLS 672 COMPILER_SUPPORTS_TARGET_BITS_FLAG 673 ZERO_ARCHFLAG 674 LDFLAGS_CXX_JDK 675 LDFLAGS_JDKEXE_SUFFIX 676 LDFLAGS_JDKLIB_SUFFIX 677 LDFLAGS_JDKEXE 678 LDFLAGS_JDKLIB 679 CXXFLAGS_JDKEXE 680 CXXFLAGS_JDKLIB 681 CFLAGS_JDKEXE 682 CFLAGS_JDKLIB 683 MACOSX_VERSION_MIN 684 NO_LIFETIME_DSE_CFLAG 685 NO_DELETE_NULL_POINTER_CHECKS_CFLAG 686 LEGACY_EXTRA_LDFLAGS 687 LEGACY_EXTRA_CXXFLAGS 688 LEGACY_EXTRA_CFLAGS 689 CXXSTD_CXXFLAG 690 CXX_O_FLAG_NONE 691 CXX_O_FLAG_NORM 692 CXX_O_FLAG_HI 693 CXX_O_FLAG_HIGHEST 694 C_O_FLAG_NONE 695 C_O_FLAG_NORM 696 C_O_FLAG_HI 697 C_O_FLAG_HIGHEST 698 CXXFLAGS_DEBUG_SYMBOLS 699 CFLAGS_DEBUG_SYMBOLS 700 CXX_FLAG_DEPS 701 C_FLAG_DEPS 702 SET_SHARED_LIBRARY_MAPFILE 703 SET_SHARED_LIBRARY_NAME 704 SET_SHARED_LIBRARY_ORIGIN 705 SET_EXECUTABLE_ORIGIN 706 SHARED_LIBRARY_FLAGS 707 CXX_FLAG_REORDER 708 C_FLAG_REORDER 709 SYSROOT_LDFLAGS 710 SYSROOT_CFLAGS 711 RC_FLAGS 712 AR_OUT_OPTION 713 LD_OUT_OPTION 714 EXE_OUT_OPTION 715 CC_OUT_OPTION 716 POST_MCS_CMD 717 POST_STRIP_CMD 718 ARFLAGS 719 COMPILER_TARGET_BITS_FLAG 720 JT_HOME 721 JTREGEXE 722 USING_BROKEN_SUSE_LD 723 PACKAGE_PATH 724 LDEXECXX 725 LDEXE 726 USE_CLANG 727 HOTSPOT_LD 728 HOTSPOT_CXX 729 HOTSPOT_RC 730 HOTSPOT_MT 731 BUILD_LD 732 BUILD_CXX 733 BUILD_CC 734 ac_ct_OBJDUMP 735 OBJDUMP 736 ac_ct_OBJCOPY 737 OBJCOPY 738 ac_ct_NM 739 OTOOL 740 ac_ct_STRIP 741 MCS 742 GNM 743 NM 744 STRIP 745 DUMPBIN 746 RC 747 MT 748 LIPO 749 ac_ct_OBJC 750 OBJCFLAGS 751 OBJC 752 ac_ct_AR 753 AR 754 AS 755 LDCXX 756 LD 757 CXXCPP 758 CPP 759 CXX_VERSION_NUMBER 760 CC_VERSION_NUMBER 761 ac_ct_CXX 762 CXXFLAGS 763 CXX 764 ac_ct_PROPER_COMPILER_CXX 765 PROPER_COMPILER_CXX 766 TOOLCHAIN_PATH_CXX 767 POTENTIAL_CXX 768 OBJEXT 769 EXEEXT 770 ac_ct_CC 771 CPPFLAGS 772 LDFLAGS 773 CFLAGS 774 CC 775 ac_ct_PROPER_COMPILER_CC 776 PROPER_COMPILER_CC 777 TOOLCHAIN_PATH_CC 778 POTENTIAL_CC 779 SDKPATH 780 XCODEBUILD 781 SET_DEVELOPER_DIR 782 VS_LIB 783 VS_INCLUDE 784 VS_PATH 785 CYGWIN_LINK 786 EXE_SUFFIX 787 OBJ_SUFFIX 788 STATIC_LIBRARY 789 SHARED_LIBRARY 790 STATIC_LIBRARY_SUFFIX 791 SHARED_LIBRARY_SUFFIX 792 LIBRARY_PREFIX 793 TOOLCHAIN_TYPE 794 BUILD_HOTSPOT 795 HOTSPOT_DIST 796 BUILD_OUTPUT 797 OVERRIDE_SRC_ROOT 798 ADD_SRC_ROOT 799 JDK_TOPDIR 800 NASHORN_TOPDIR 801 HOTSPOT_TOPDIR 802 JAXWS_TOPDIR 803 JAXP_TOPDIR 804 CORBA_TOPDIR 805 LANGTOOLS_TOPDIR 806 JAVA_FLAGS_SMALL 807 JAVA_FLAGS_BIG 808 JAVA_FLAGS 809 BOOT_JDK_BITS 810 JAVAC_FLAGS 811 BOOT_JDK_SOURCETARGET 812 BOOT_JDK 813 BOOT_TOOLSJAR 814 BOOT_RTJAR 815 JAVA_CHECK 816 JAVAC_CHECK 817 COOKED_BUILD_NUMBER 818 COOKED_JDK_UPDATE_VERSION 819 JDK_VERSION 820 COPYRIGHT_YEAR 821 MACOSX_BUNDLE_ID_BASE 822 MACOSX_BUNDLE_NAME_BASE 823 COMPANY_NAME 824 JDK_RC_PLATFORM_NAME 825 PRODUCT_SUFFIX 826 PRODUCT_NAME 827 LAUNCHER_NAME 828 MILESTONE 829 JDK_BUILD_NUMBER 830 JDK_UPDATE_VERSION 831 JDK_MICRO_VERSION 832 JDK_MINOR_VERSION 833 JDK_MAJOR_VERSION 834 USER_RELEASE_SUFFIX 835 COMPRESS_JARS 836 UNLIMITED_CRYPTO 837 CACERTS_FILE 838 TEST_IN_BUILD 839 BUILD_HEADLESS 840 SUPPORT_HEADFUL 841 SUPPORT_HEADLESS 842 BDEPS_FTP 843 BDEPS_UNZIP 844 OS_VERSION_MICRO 845 OS_VERSION_MINOR 846 OS_VERSION_MAJOR 847 PKG_CONFIG 848 CODESIGN 849 XATTR 850 DSYMUTIL 851 IS_GNU_TIME 852 TIME 853 STAT 854 HG 855 READELF 856 LDD 857 ZIP 858 UNZIP 859 FIND_DELETE 860 MAKE 861 CHECK_TOOLSDIR_MAKE 862 CHECK_TOOLSDIR_GMAKE 863 CHECK_MAKE 864 CHECK_GMAKE 865 PKGHANDLER 866 OUTPUT_ROOT 867 CONF_NAME 868 SPEC 869 BUILD_VARIANT_RELEASE 870 DEBUG_CLASSFILES 871 FASTDEBUG 872 VARIANT 873 DEBUG_LEVEL 874 MACOSX_UNIVERSAL 875 INCLUDE_SA 876 JVM_VARIANT_CORE 877 JVM_VARIANT_ZEROSHARK 878 JVM_VARIANT_ZERO 879 JVM_VARIANT_KERNEL 880 JVM_VARIANT_MINIMAL1 881 JVM_VARIANT_CLIENT 882 JVM_VARIANT_SERVER 883 JVM_VARIANTS 884 JVM_INTERPRETER 885 JDK_VARIANT 886 SET_OPENJDK 887 BUILD_LOG_WRAPPER 888 BUILD_LOG_PREVIOUS 889 BUILD_LOG 890 TOPDIR 891 PATH_SEP 892 ZERO_ARCHDEF 893 DEFINE_CROSS_COMPILE_ARCH 894 LP64 895 OPENJDK_TARGET_OS_EXPORT_DIR 896 OPENJDK_TARGET_OS_API_DIR 897 OPENJDK_TARGET_CPU_JLI_CFLAGS 898 OPENJDK_TARGET_CPU_OSARCH 899 OPENJDK_TARGET_CPU_ISADIR 900 OPENJDK_TARGET_CPU_LIBDIR 901 OPENJDK_TARGET_CPU_LEGACY_LIB 902 OPENJDK_TARGET_CPU_LEGACY 903 REQUIRED_OS_VERSION 904 REQUIRED_OS_NAME 905 COMPILE_TYPE 906 OPENJDK_TARGET_CPU_ENDIAN 907 OPENJDK_TARGET_CPU_BITS 908 OPENJDK_TARGET_CPU_ARCH 909 OPENJDK_TARGET_CPU 910 OPENJDK_TARGET_OS_API 911 OPENJDK_TARGET_OS 912 OPENJDK_BUILD_CPU_ENDIAN 913 OPENJDK_BUILD_CPU_BITS 914 OPENJDK_BUILD_CPU_ARCH 915 OPENJDK_BUILD_CPU 916 OPENJDK_BUILD_OS_API 917 OPENJDK_BUILD_OS 918 OPENJDK_BUILD_AUTOCONF_NAME 919 OPENJDK_TARGET_AUTOCONF_NAME 920 target_os 921 target_vendor 922 target_cpu 923 target 924 host_os 925 host_vendor 926 host_cpu 927 host 928 build_os 929 build_vendor 930 build_cpu 931 build 932 SETFILE 933 DF 934 READLINK 935 CYGPATH 936 SED 937 FGREP 938 EGREP 939 GREP 940 AWK 941 XARGS 942 WHICH 943 WC 944 UNIQ 945 UNAME 946 TR 947 TOUCH 948 TEE 949 TAR 950 TAIL 951 SORT 952 SH 953 RM 954 PRINTF 955 NAWK 956 MV 957 MKTEMP 958 MKDIR 959 LS 960 LN 961 HEAD 962 FIND 963 FILE 964 EXPR 965 ECHO 966 DIRNAME 967 DIFF 968 DATE 969 CUT 970 CPIO 971 CP 972 COMM 973 CMP 974 CHMOD 975 CAT 976 BASH 977 BASENAME 978 DATE_WHEN_CONFIGURED 979 CONFIGURE_COMMAND_LINE 980 CUSTOM_MAKE_DIR 981 target_alias 982 host_alias 983 build_alias 984 LIBS 985 ECHO_T 986 ECHO_N 987 ECHO_C 988 DEFS 989 mandir 990 localedir 991 libdir 992 psdir 993 pdfdir 994 dvidir 995 htmldir 996 infodir 997 docdir 998 oldincludedir 999 includedir 1000 localstatedir 1001 sharedstatedir 1002 sysconfdir 1003 datadir 1004 datarootdir 1005 libexecdir 1006 sbindir 1007 bindir 1008 program_transform_name 1009 prefix 1010 exec_prefix 1011 PACKAGE_URL 1012 PACKAGE_BUGREPORT 1013 PACKAGE_STRING 1014 PACKAGE_VERSION 1015 PACKAGE_TARNAME 1016 PACKAGE_NAME 1017 PATH_SEPARATOR 1018 SHELL' 1019 ac_subst_files='' 1020 ac_user_opts=' 1021 enable_option_checking 1022 with_custom_make_dir 1023 with_target_bits 1024 enable_openjdk_only 1025 with_jdk_variant 1026 with_jvm_interpreter 1027 with_jvm_variants 1028 enable_debug 1029 with_debug_level 1030 with_devkit 1031 with_sys_root 1032 with_sysroot 1033 with_tools_dir 1034 with_toolchain_path 1035 with_extra_path 1036 with_xcode_path 1037 with_conf_name 1038 with_builddeps_conf 1039 with_builddeps_server 1040 with_builddeps_dir 1041 with_builddeps_group 1042 enable_headful 1043 enable_hotspot_test_in_build 1044 with_cacerts_file 1045 enable_unlimited_crypto 1046 with_milestone 1047 with_update_version 1048 with_user_release_suffix 1049 with_build_number 1050 with_copyright_year 1051 with_boot_jdk 1052 with_boot_jdk_jvmargs 1053 with_add_source_root 1054 with_override_source_root 1055 with_adds_and_overrides 1056 with_override_langtools 1057 with_override_corba 1058 with_override_jaxp 1059 with_override_jaxws 1060 with_override_hotspot 1061 with_override_nashorn 1062 with_override_jdk 1063 with_import_hotspot 1064 with_toolchain_type 1065 with_jtreg 1066 with_extra_cflags 1067 with_extra_cxxflags 1068 with_extra_ldflags 1069 enable_debug_symbols 1070 enable_zip_debug_info 1071 enable_macosx_runtime_support 1072 with_x 1073 with_cups 1074 with_cups_include 1075 with_freetype 1076 with_freetype_include 1077 with_freetype_lib 1078 enable_freetype_bundling 1079 with_alsa 1080 with_alsa_include 1081 with_alsa_lib 1082 with_giflib 1083 with_zlib 1084 with_stdc__lib 1085 with_msvcr_dll 1086 with_dxsdk 1087 with_dxsdk_lib 1088 with_dxsdk_include 1089 with_num_cores 1090 with_memory_size 1091 with_jobs 1092 with_sjavac_server_java 1093 enable_sjavac 1094 enable_precompiled_headers 1095 enable_ccache 1096 with_ccache_dir 1097 ' 1098 ac_precious_vars='build_alias 1099 host_alias 1100 target_alias 1101 BASENAME 1102 BASH 1103 CAT 1104 CHMOD 1105 CMP 1106 COMM 1107 CP 1108 CPIO 1109 CUT 1110 DATE 1111 DIFF 1112 DIRNAME 1113 ECHO 1114 EXPR 1115 FILE 1116 FIND 1117 HEAD 1118 LN 1119 LS 1120 MKDIR 1121 MKTEMP 1122 MV 1123 NAWK 1124 PRINTF 1125 RM 1126 SH 1127 SORT 1128 TAIL 1129 TAR 1130 TEE 1131 TOUCH 1132 TR 1133 UNAME 1134 UNIQ 1135 WC 1136 WHICH 1137 XARGS 1138 AWK 1139 GREP 1140 EGREP 1141 FGREP 1142 SED 1143 CYGPATH 1144 READLINK 1145 DF 1146 SETFILE 1147 UNZIP 1148 ZIP 1149 LDD 1150 READELF 1151 HG 1152 STAT 1153 TIME 1154 DSYMUTIL 1155 XATTR 1156 CODESIGN 1157 PKG_CONFIG 1158 CC 1159 CFLAGS 1160 LDFLAGS 1161 LIBS 1162 CPPFLAGS 1163 CXX 1164 CXXFLAGS 1165 CCC 1166 CPP 1167 CXXCPP 1168 AS 1169 AR 1170 OBJC 1171 OBJCFLAGS 1172 LIPO 1173 STRIP 1174 NM 1175 GNM 1176 MCS 1177 OBJCOPY 1178 OBJDUMP 1179 BUILD_CC 1180 BUILD_CXX 1181 BUILD_LD 1182 JTREGEXE 1183 XMKMF 1184 FREETYPE_CFLAGS 1185 FREETYPE_LIBS 1186 ALSA_CFLAGS 1187 ALSA_LIBS 1188 LIBFFI_CFLAGS 1189 LIBFFI_LIBS 1190 CCACHE' 1191 1192 1193 # Initialize some variables set by options. 1194 ac_init_help= 1195 ac_init_version=false 1196 ac_unrecognized_opts= 1197 ac_unrecognized_sep= 1198 # The variables have the same names as the options, with 1199 # dashes changed to underlines. 1200 cache_file=/dev/null 1201 exec_prefix=NONE 1202 no_create= 1203 no_recursion= 1204 prefix=NONE 1205 program_prefix=NONE 1206 program_suffix=NONE 1207 program_transform_name=s,x,x, 1208 silent= 1209 site= 1210 srcdir= 1211 verbose= 1212 x_includes=NONE 1213 x_libraries=NONE 1214 1215 # Installation directory options. 1216 # These are left unexpanded so users can "make install exec_prefix=/foo" 1217 # and all the variables that are supposed to be based on exec_prefix 1218 # by default will actually change. 1219 # Use braces instead of parens because sh, perl, etc. also accept them. 1220 # (The list follows the same order as the GNU Coding Standards.) 1221 bindir='${exec_prefix}/bin' 1222 sbindir='${exec_prefix}/sbin' 1223 libexecdir='${exec_prefix}/libexec' 1224 datarootdir='${prefix}/share' 1225 datadir='${datarootdir}' 1226 sysconfdir='${prefix}/etc' 1227 sharedstatedir='${prefix}/com' 1228 localstatedir='${prefix}/var' 1229 includedir='${prefix}/include' 1230 oldincludedir='/usr/include' 1231 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1232 infodir='${datarootdir}/info' 1233 htmldir='${docdir}' 1234 dvidir='${docdir}' 1235 pdfdir='${docdir}' 1236 psdir='${docdir}' 1237 libdir='${exec_prefix}/lib' 1238 localedir='${datarootdir}/locale' 1239 mandir='${datarootdir}/man' 1240 1241 ac_prev= 1242 ac_dashdash= 1243 for ac_option 1244 do 1245 # If the previous option needs an argument, assign it. 1246 if test -n "$ac_prev"; then 1247 eval $ac_prev=\$ac_option 1248 ac_prev= 1249 continue 1250 fi 1251 1252 case $ac_option in 1253 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1254 *=) ac_optarg= ;; 1255 *) ac_optarg=yes ;; 1256 esac 1257 1258 # Accept the important Cygnus configure options, so we can diagnose typos. 1259 1260 case $ac_dashdash$ac_option in 1261 --) 1262 ac_dashdash=yes ;; 1263 1264 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1265 ac_prev=bindir ;; 1266 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1267 bindir=$ac_optarg ;; 1268 1269 -build | --build | --buil | --bui | --bu) 1270 ac_prev=build_alias ;; 1271 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1272 build_alias=$ac_optarg ;; 1273 1274 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1275 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1276 ac_prev=cache_file ;; 1277 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1278 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1279 cache_file=$ac_optarg ;; 1280 1281 --config-cache | -C) 1282 cache_file=config.cache ;; 1283 1284 -datadir | --datadir | --datadi | --datad) 1285 ac_prev=datadir ;; 1286 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1287 datadir=$ac_optarg ;; 1288 1289 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1290 | --dataroo | --dataro | --datar) 1291 ac_prev=datarootdir ;; 1292 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1293 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1294 datarootdir=$ac_optarg ;; 1295 1296 -disable-* | --disable-*) 1297 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1298 # Reject names that are not valid shell variable names. 1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1300 as_fn_error $? "invalid feature name: $ac_useropt" 1301 ac_useropt_orig=$ac_useropt 1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1303 case $ac_user_opts in 1304 *" 1305 "enable_$ac_useropt" 1306 "*) ;; 1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1308 ac_unrecognized_sep=', ';; 1309 esac 1310 eval enable_$ac_useropt=no ;; 1311 1312 -docdir | --docdir | --docdi | --doc | --do) 1313 ac_prev=docdir ;; 1314 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1315 docdir=$ac_optarg ;; 1316 1317 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1318 ac_prev=dvidir ;; 1319 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1320 dvidir=$ac_optarg ;; 1321 1322 -enable-* | --enable-*) 1323 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1324 # Reject names that are not valid shell variable names. 1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1326 as_fn_error $? "invalid feature name: $ac_useropt" 1327 ac_useropt_orig=$ac_useropt 1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1329 case $ac_user_opts in 1330 *" 1331 "enable_$ac_useropt" 1332 "*) ;; 1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1334 ac_unrecognized_sep=', ';; 1335 esac 1336 eval enable_$ac_useropt=\$ac_optarg ;; 1337 1338 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1339 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1340 | --exec | --exe | --ex) 1341 ac_prev=exec_prefix ;; 1342 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1343 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1344 | --exec=* | --exe=* | --ex=*) 1345 exec_prefix=$ac_optarg ;; 1346 1347 -gas | --gas | --ga | --g) 1348 # Obsolete; use --with-gas. 1349 with_gas=yes ;; 1350 1351 -help | --help | --hel | --he | -h) 1352 ac_init_help=long ;; 1353 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1354 ac_init_help=recursive ;; 1355 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1356 ac_init_help=short ;; 1357 1358 -host | --host | --hos | --ho) 1359 ac_prev=host_alias ;; 1360 -host=* | --host=* | --hos=* | --ho=*) 1361 host_alias=$ac_optarg ;; 1362 1363 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1364 ac_prev=htmldir ;; 1365 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1366 | --ht=*) 1367 htmldir=$ac_optarg ;; 1368 1369 -includedir | --includedir | --includedi | --included | --include \ 1370 | --includ | --inclu | --incl | --inc) 1371 ac_prev=includedir ;; 1372 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1373 | --includ=* | --inclu=* | --incl=* | --inc=*) 1374 includedir=$ac_optarg ;; 1375 1376 -infodir | --infodir | --infodi | --infod | --info | --inf) 1377 ac_prev=infodir ;; 1378 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1379 infodir=$ac_optarg ;; 1380 1381 -libdir | --libdir | --libdi | --libd) 1382 ac_prev=libdir ;; 1383 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1384 libdir=$ac_optarg ;; 1385 1386 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1387 | --libexe | --libex | --libe) 1388 ac_prev=libexecdir ;; 1389 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1390 | --libexe=* | --libex=* | --libe=*) 1391 libexecdir=$ac_optarg ;; 1392 1393 -localedir | --localedir | --localedi | --localed | --locale) 1394 ac_prev=localedir ;; 1395 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1396 localedir=$ac_optarg ;; 1397 1398 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1399 | --localstate | --localstat | --localsta | --localst | --locals) 1400 ac_prev=localstatedir ;; 1401 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1402 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1403 localstatedir=$ac_optarg ;; 1404 1405 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1406 ac_prev=mandir ;; 1407 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1408 mandir=$ac_optarg ;; 1409 1410 -nfp | --nfp | --nf) 1411 # Obsolete; use --without-fp. 1412 with_fp=no ;; 1413 1414 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1415 | --no-cr | --no-c | -n) 1416 no_create=yes ;; 1417 1418 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1419 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1420 no_recursion=yes ;; 1421 1422 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1423 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1424 | --oldin | --oldi | --old | --ol | --o) 1425 ac_prev=oldincludedir ;; 1426 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1427 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1428 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1429 oldincludedir=$ac_optarg ;; 1430 1431 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1432 ac_prev=prefix ;; 1433 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1434 prefix=$ac_optarg ;; 1435 1436 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1437 | --program-pre | --program-pr | --program-p) 1438 ac_prev=program_prefix ;; 1439 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1440 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1441 program_prefix=$ac_optarg ;; 1442 1443 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1444 | --program-suf | --program-su | --program-s) 1445 ac_prev=program_suffix ;; 1446 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1447 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1448 program_suffix=$ac_optarg ;; 1449 1450 -program-transform-name | --program-transform-name \ 1451 | --program-transform-nam | --program-transform-na \ 1452 | --program-transform-n | --program-transform- \ 1453 | --program-transform | --program-transfor \ 1454 | --program-transfo | --program-transf \ 1455 | --program-trans | --program-tran \ 1456 | --progr-tra | --program-tr | --program-t) 1457 ac_prev=program_transform_name ;; 1458 -program-transform-name=* | --program-transform-name=* \ 1459 | --program-transform-nam=* | --program-transform-na=* \ 1460 | --program-transform-n=* | --program-transform-=* \ 1461 | --program-transform=* | --program-transfor=* \ 1462 | --program-transfo=* | --program-transf=* \ 1463 | --program-trans=* | --program-tran=* \ 1464 | --progr-tra=* | --program-tr=* | --program-t=*) 1465 program_transform_name=$ac_optarg ;; 1466 1467 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1468 ac_prev=pdfdir ;; 1469 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1470 pdfdir=$ac_optarg ;; 1471 1472 -psdir | --psdir | --psdi | --psd | --ps) 1473 ac_prev=psdir ;; 1474 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1475 psdir=$ac_optarg ;; 1476 1477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1478 | -silent | --silent | --silen | --sile | --sil) 1479 silent=yes ;; 1480 1481 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1482 ac_prev=sbindir ;; 1483 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1484 | --sbi=* | --sb=*) 1485 sbindir=$ac_optarg ;; 1486 1487 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1488 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1489 | --sharedst | --shareds | --shared | --share | --shar \ 1490 | --sha | --sh) 1491 ac_prev=sharedstatedir ;; 1492 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1493 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1494 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1495 | --sha=* | --sh=*) 1496 sharedstatedir=$ac_optarg ;; 1497 1498 -site | --site | --sit) 1499 ac_prev=site ;; 1500 -site=* | --site=* | --sit=*) 1501 site=$ac_optarg ;; 1502 1503 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1504 ac_prev=srcdir ;; 1505 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1506 srcdir=$ac_optarg ;; 1507 1508 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1509 | --syscon | --sysco | --sysc | --sys | --sy) 1510 ac_prev=sysconfdir ;; 1511 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1512 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1513 sysconfdir=$ac_optarg ;; 1514 1515 -target | --target | --targe | --targ | --tar | --ta | --t) 1516 ac_prev=target_alias ;; 1517 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1518 target_alias=$ac_optarg ;; 1519 1520 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1521 verbose=yes ;; 1522 1523 -version | --version | --versio | --versi | --vers | -V) 1524 ac_init_version=: ;; 1525 1526 -with-* | --with-*) 1527 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1528 # Reject names that are not valid shell variable names. 1529 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1530 as_fn_error $? "invalid package name: $ac_useropt" 1531 ac_useropt_orig=$ac_useropt 1532 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1533 case $ac_user_opts in 1534 *" 1535 "with_$ac_useropt" 1536 "*) ;; 1537 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1538 ac_unrecognized_sep=', ';; 1539 esac 1540 eval with_$ac_useropt=\$ac_optarg ;; 1541 1542 -without-* | --without-*) 1543 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1544 # Reject names that are not valid shell variable names. 1545 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1546 as_fn_error $? "invalid package name: $ac_useropt" 1547 ac_useropt_orig=$ac_useropt 1548 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1549 case $ac_user_opts in 1550 *" 1551 "with_$ac_useropt" 1552 "*) ;; 1553 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1554 ac_unrecognized_sep=', ';; 1555 esac 1556 eval with_$ac_useropt=no ;; 1557 1558 --x) 1559 # Obsolete; use --with-x. 1560 with_x=yes ;; 1561 1562 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1563 | --x-incl | --x-inc | --x-in | --x-i) 1564 ac_prev=x_includes ;; 1565 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1566 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1567 x_includes=$ac_optarg ;; 1568 1569 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1570 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1571 ac_prev=x_libraries ;; 1572 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1573 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1574 x_libraries=$ac_optarg ;; 1575 1576 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1577 Try \`$0 --help' for more information" 1578 ;; 1579 1580 *=*) 1581 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1582 # Reject names that are not valid shell variable names. 1583 case $ac_envvar in #( 1584 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1585 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1586 esac 1587 eval $ac_envvar=\$ac_optarg 1588 export $ac_envvar ;; 1589 1590 *) 1591 # FIXME: should be removed in autoconf 3.0. 1592 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1593 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1594 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1595 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1596 ;; 1597 1598 esac 1599 done 1600 1601 if test -n "$ac_prev"; then 1602 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1603 as_fn_error $? "missing argument to $ac_option" 1604 fi 1605 1606 if test -n "$ac_unrecognized_opts"; then 1607 case $enable_option_checking in 1608 no) ;; 1609 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1610 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1611 esac 1612 fi 1613 1614 # Check all directory arguments for consistency. 1615 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1616 datadir sysconfdir sharedstatedir localstatedir includedir \ 1617 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1618 libdir localedir mandir 1619 do 1620 eval ac_val=\$$ac_var 1621 # Remove trailing slashes. 1622 case $ac_val in 1623 */ ) 1624 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1625 eval $ac_var=\$ac_val;; 1626 esac 1627 # Be sure to have absolute directory names. 1628 case $ac_val in 1629 [\\/$]* | ?:[\\/]* ) continue;; 1630 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1631 esac 1632 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1633 done 1634 1635 # There might be people who depend on the old broken behavior: `$host' 1636 # used to hold the argument of --host etc. 1637 # FIXME: To remove some day. 1638 build=$build_alias 1639 host=$host_alias 1640 target=$target_alias 1641 1642 # FIXME: To remove some day. 1643 if test "x$host_alias" != x; then 1644 if test "x$build_alias" = x; then 1645 cross_compiling=maybe 1646 elif test "x$build_alias" != "x$host_alias"; then 1647 cross_compiling=yes 1648 fi 1649 fi 1650 1651 ac_tool_prefix= 1652 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1653 1654 test "$silent" = yes && exec 6>/dev/null 1655 1656 1657 ac_pwd=`pwd` && test -n "$ac_pwd" && 1658 ac_ls_di=`ls -di .` && 1659 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1660 as_fn_error $? "working directory cannot be determined" 1661 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1662 as_fn_error $? "pwd does not report name of working directory" 1663 1664 1665 # Find the source files, if location was not specified. 1666 if test -z "$srcdir"; then 1667 ac_srcdir_defaulted=yes 1668 # Try the directory containing this script, then the parent directory. 1669 ac_confdir=`$as_dirname -- "$as_myself" || 1670 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1671 X"$as_myself" : 'X\(//\)[^/]' \| \ 1672 X"$as_myself" : 'X\(//\)$' \| \ 1673 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1674 $as_echo X"$as_myself" | 1675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1676 s//\1/ 1677 q 1678 } 1679 /^X\(\/\/\)[^/].*/{ 1680 s//\1/ 1681 q 1682 } 1683 /^X\(\/\/\)$/{ 1684 s//\1/ 1685 q 1686 } 1687 /^X\(\/\).*/{ 1688 s//\1/ 1689 q 1690 } 1691 s/.*/./; q'` 1692 srcdir=$ac_confdir 1693 if test ! -r "$srcdir/$ac_unique_file"; then 1694 srcdir=.. 1695 fi 1696 else 1697 ac_srcdir_defaulted=no 1698 fi 1699 if test ! -r "$srcdir/$ac_unique_file"; then 1700 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1701 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1702 fi 1703 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1704 ac_abs_confdir=`( 1705 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1706 pwd)` 1707 # When building in place, set srcdir=. 1708 if test "$ac_abs_confdir" = "$ac_pwd"; then 1709 srcdir=. 1710 fi 1711 # Remove unnecessary trailing slashes from srcdir. 1712 # Double slashes in file names in object file debugging info 1713 # mess up M-x gdb in Emacs. 1714 case $srcdir in 1715 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1716 esac 1717 for ac_var in $ac_precious_vars; do 1718 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1719 eval ac_env_${ac_var}_value=\$${ac_var} 1720 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1721 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1722 done 1723 1724 # 1725 # Report the --help message. 1726 # 1727 if test "$ac_init_help" = "long"; then 1728 # Omit some internal or obsolete options to make the list less imposing. 1729 # This message is too long to be a string in the A/UX 3.1 sh. 1730 cat <<_ACEOF 1731 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems. 1732 1733 Usage: $0 [OPTION]... [VAR=VALUE]... 1734 1735 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1736 VAR=VALUE. See below for descriptions of some of the useful variables. 1737 1738 Defaults for the options are specified in brackets. 1739 1740 Configuration: 1741 -h, --help display this help and exit 1742 --help=short display options specific to this package 1743 --help=recursive display the short help of all the included packages 1744 -V, --version display version information and exit 1745 -q, --quiet, --silent do not print \`checking ...' messages 1746 --cache-file=FILE cache test results in FILE [disabled] 1747 -C, --config-cache alias for \`--cache-file=config.cache' 1748 -n, --no-create do not create output files 1749 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1750 1751 Installation directories: 1752 --prefix=PREFIX install architecture-independent files in PREFIX 1753 [$ac_default_prefix] 1754 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1755 [PREFIX] 1756 1757 By default, \`make install' will install all the files in 1758 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1759 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1760 for instance \`--prefix=\$HOME'. 1761 1762 For better control, use the options below. 1763 1764 Fine tuning of the installation directories: 1765 --bindir=DIR user executables [EPREFIX/bin] 1766 --sbindir=DIR system admin executables [EPREFIX/sbin] 1767 --libexecdir=DIR program executables [EPREFIX/libexec] 1768 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1769 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1770 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1771 --libdir=DIR object code libraries [EPREFIX/lib] 1772 --includedir=DIR C header files [PREFIX/include] 1773 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1774 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1775 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1776 --infodir=DIR info documentation [DATAROOTDIR/info] 1777 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1778 --mandir=DIR man documentation [DATAROOTDIR/man] 1779 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1780 --htmldir=DIR html documentation [DOCDIR] 1781 --dvidir=DIR dvi documentation [DOCDIR] 1782 --pdfdir=DIR pdf documentation [DOCDIR] 1783 --psdir=DIR ps documentation [DOCDIR] 1784 _ACEOF 1785 1786 cat <<\_ACEOF 1787 1788 X features: 1789 --x-includes=DIR X include files are in DIR 1790 --x-libraries=DIR X library files are in DIR 1791 1792 System types: 1793 --build=BUILD configure for building on BUILD [guessed] 1794 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1795 --target=TARGET configure for building compilers for TARGET [HOST] 1796 _ACEOF 1797 fi 1798 1799 if test -n "$ac_init_help"; then 1800 case $ac_init_help in 1801 short | recursive ) echo "Configuration of OpenJDK jdk8:";; 1802 esac 1803 cat <<\_ACEOF 1804 1805 Optional Features: 1806 --disable-option-checking ignore unrecognized --enable/--with options 1807 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1808 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1809 --enable-openjdk-only suppress building custom source even if present 1810 [disabled] 1811 --enable-debug set the debug level to fastdebug (shorthand for 1812 --with-debug-level=fastdebug) [disabled] 1813 --disable-headful disable building headful support (graphical UI 1814 support) [enabled] 1815 --enable-hotspot-test-in-build 1816 run the Queens test after Hotspot build [disabled] 1817 --enable-unlimited-crypto 1818 Enable unlimited crypto policy [disabled] 1819 --disable-debug-symbols disable generation of debug symbols [enabled] 1820 --disable-zip-debug-info 1821 disable zipping of debug-info files [enabled] 1822 --enable-macosx-runtime-support 1823 Deprecated. Option is kept for backwards 1824 compatibility and is ignored 1825 --disable-freetype-bundling 1826 disable bundling of the freetype library with the 1827 build result [enabled on Windows or when using 1828 --with-freetype, disabled otherwise] 1829 --enable-sjavac use sjavac to do fast incremental compiles 1830 [disabled] 1831 --disable-precompiled-headers 1832 disable using precompiled headers when compiling C++ 1833 [enabled] 1834 --enable-ccache enable using ccache to speed up recompilations 1835 [disabled] 1836 1837 Optional Packages: 1838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1840 --with-custom-make-dir use this directory for custom build/make files 1841 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1842 support it), e.g. --with-target-bits=32 [guessed] 1843 --with-jdk-variant JDK variant to build (normal) [normal] 1844 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1845 --with-jvm-variants JVM variants (separated by commas) to build (server, 1846 client, minimal1, kernel, zero, zeroshark, core) 1847 [server] 1848 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1849 [release] 1850 --with-devkit use this devkit for compilers, tools and resources 1851 --with-sys-root alias for --with-sysroot for backwards compatability 1852 --with-sysroot use this directory as sysroot) 1853 --with-tools-dir alias for --with-toolchain-path for backwards 1854 compatibility 1855 --with-toolchain-path prepend these directories when searching for 1856 toolchain binaries (compilers etc) 1857 --with-extra-path prepend these directories to the default path 1858 --with-xcode-path explicit path to Xcode 4 (generally for building on 1859 10.9 and later) 1860 --with-conf-name use this as the name of the configuration [generated 1861 from important configuration options] 1862 --with-builddeps-conf use this configuration file for the builddeps 1863 --with-builddeps-server download and use build dependencies from this server 1864 url 1865 --with-builddeps-dir store downloaded build dependencies here 1866 [/localhome/builddeps] 1867 --with-builddeps-group chgrp the downloaded build dependencies to this 1868 group 1869 --with-cacerts-file specify alternative cacerts file 1870 --with-milestone Set milestone value for build [internal] 1871 --with-update-version Set update version value for build [b00] 1872 --with-user-release-suffix 1873 Add a custom string to the version string if build 1874 number isn't set.[username_builddateb00] 1875 --with-build-number Set build number value for build [b00] 1876 --with-copyright-year Set copyright year value for build [current year] 1877 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1878 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all 1879 invocations of the Boot JDK, overriding the default 1880 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1881 -enableassertions" 1882 --with-add-source-root for each and every source directory, look in this 1883 additional source root for the same directory; if it 1884 exists and have files in it, include it in the build 1885 --with-override-source-root 1886 for each and every source directory, look in this 1887 override source root for the same directory; if it 1888 exists, use that directory instead and ignore the 1889 directory in the original source root 1890 --with-adds-and-overrides 1891 use the subdirs 'adds' and 'overrides' in the 1892 specified directory as add-source-root and 1893 override-source-root 1894 --with-override-langtools 1895 use this langtools dir for the build 1896 --with-override-corba use this corba dir for the build 1897 --with-override-jaxp use this jaxp dir for the build 1898 --with-override-jaxws use this jaxws dir for the build 1899 --with-override-hotspot use this hotspot dir for the build 1900 --with-override-nashorn use this nashorn dir for the build 1901 --with-override-jdk use this jdk dir for the build 1902 --with-import-hotspot import hotspot binaries from this jdk image or 1903 hotspot build dist dir instead of building from 1904 source 1905 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1906 to show possible values [platform dependent] 1907 --with-jtreg Regression Test Harness [probed] 1908 --with-extra-cflags extra flags to be used when compiling jdk c-files 1909 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1910 --with-extra-ldflags extra flags to be used when linking jdk 1911 --with-x use the X Window System 1912 --with-cups specify prefix directory for the cups package 1913 (expecting the headers under PATH/include) 1914 --with-cups-include specify directory for the cups include files 1915 --with-freetype specify prefix directory for the freetype package 1916 (expecting the libraries under PATH/lib and the 1917 headers under PATH/include) 1918 --with-freetype-include specify directory for the freetype include files 1919 --with-freetype-lib specify directory for the freetype library 1920 --with-alsa specify prefix directory for the alsa package 1921 (expecting the libraries under PATH/lib and the 1922 headers under PATH/include) 1923 --with-alsa-include specify directory for the alsa include files 1924 --with-alsa-lib specify directory for the alsa library 1925 --with-giflib use giflib from build system or OpenJDK source 1926 (system, bundled) [bundled] 1927 --with-zlib use zlib from build system or OpenJDK source 1928 (system, bundled) [bundled] 1929 --with-stdc++lib=<static>,<dynamic>,<default> 1930 force linking of the C++ runtime on Linux to either 1931 static or dynamic, default is static with dynamic as 1932 fallback 1933 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1934 only) [probed] 1935 --with-dxsdk Deprecated. Option is kept for backwards 1936 compatibility and is ignored 1937 --with-dxsdk-lib Deprecated. Option is kept for backwards 1938 compatibility and is ignored 1939 --with-dxsdk-include Deprecated. Option is kept for backwards 1940 compatibility and is ignored 1941 --with-num-cores number of cores in the build system, e.g. 1942 --with-num-cores=8 [probed] 1943 --with-memory-size memory (in MB) available in the build system, e.g. 1944 --with-memory-size=1024 [probed] 1945 --with-jobs number of parallel jobs to let make run [calculated 1946 based on cores and memory] 1947 --with-sjavac-server-java 1948 use this java binary for running the sjavac 1949 background server [Boot JDK java] 1950 --with-ccache-dir where to store ccache files [~/.ccache] 1951 1952 Some influential environment variables: 1953 BASENAME Override default value for BASENAME 1954 BASH Override default value for BASH 1955 CAT Override default value for CAT 1956 CHMOD Override default value for CHMOD 1957 CMP Override default value for CMP 1958 COMM Override default value for COMM 1959 CP Override default value for CP 1960 CPIO Override default value for CPIO 1961 CUT Override default value for CUT 1962 DATE Override default value for DATE 1963 DIFF Override default value for DIFF 1964 DIRNAME Override default value for DIRNAME 1965 ECHO Override default value for ECHO 1966 EXPR Override default value for EXPR 1967 FILE Override default value for FILE 1968 FIND Override default value for FIND 1969 HEAD Override default value for HEAD 1970 LN Override default value for LN 1971 LS Override default value for LS 1972 MKDIR Override default value for MKDIR 1973 MKTEMP Override default value for MKTEMP 1974 MV Override default value for MV 1975 NAWK Override default value for NAWK 1976 PRINTF Override default value for PRINTF 1977 RM Override default value for RM 1978 SH Override default value for SH 1979 SORT Override default value for SORT 1980 TAIL Override default value for TAIL 1981 TAR Override default value for TAR 1982 TEE Override default value for TEE 1983 TOUCH Override default value for TOUCH 1984 TR Override default value for TR 1985 UNAME Override default value for UNAME 1986 UNIQ Override default value for UNIQ 1987 WC Override default value for WC 1988 WHICH Override default value for WHICH 1989 XARGS Override default value for XARGS 1990 AWK Override default value for AWK 1991 GREP Override default value for GREP 1992 EGREP Override default value for EGREP 1993 FGREP Override default value for FGREP 1994 SED Override default value for SED 1995 CYGPATH Override default value for CYGPATH 1996 READLINK Override default value for READLINK 1997 DF Override default value for DF 1998 SETFILE Override default value for SETFILE 1999 UNZIP Override default value for UNZIP 2000 ZIP Override default value for ZIP 2001 LDD Override default value for LDD 2002 READELF Override default value for READELF 2003 HG Override default value for HG 2004 STAT Override default value for STAT 2005 TIME Override default value for TIME 2006 DSYMUTIL Override default value for DSYMUTIL 2007 XATTR Override default value for XATTR 2008 CODESIGN Override default value for CODESIGN 2009 PKG_CONFIG path to pkg-config utility 2010 CC C compiler command 2011 CFLAGS C compiler flags 2012 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2013 nonstandard directory <lib dir> 2014 LIBS libraries to pass to the linker, e.g. -l<library> 2015 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2016 you have headers in a nonstandard directory <include dir> 2017 CXX C++ compiler command 2018 CXXFLAGS C++ compiler flags 2019 CPP C preprocessor 2020 CXXCPP C++ preprocessor 2021 AS Override default value for AS 2022 AR Override default value for AR 2023 OBJC Objective C compiler command 2024 OBJCFLAGS Objective C compiler flags 2025 LIPO Override default value for LIPO 2026 STRIP Override default value for STRIP 2027 NM Override default value for NM 2028 GNM Override default value for GNM 2029 MCS Override default value for MCS 2030 OBJCOPY Override default value for OBJCOPY 2031 OBJDUMP Override default value for OBJDUMP 2032 BUILD_CC Override default value for BUILD_CC 2033 BUILD_CXX Override default value for BUILD_CXX 2034 BUILD_LD Override default value for BUILD_LD 2035 JTREGEXE Override default value for JTREGEXE 2036 XMKMF Path to xmkmf, Makefile generator for X Window System 2037 FREETYPE_CFLAGS 2038 C compiler flags for FREETYPE, overriding pkg-config 2039 FREETYPE_LIBS 2040 linker flags for FREETYPE, overriding pkg-config 2041 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2042 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2043 LIBFFI_CFLAGS 2044 C compiler flags for LIBFFI, overriding pkg-config 2045 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2046 CCACHE Override default value for CCACHE 2047 2048 Use these variables to override the choices made by `configure' or to help 2049 it to find libraries and programs with nonstandard names/locations. 2050 2051 Report bugs to <build-dev@openjdk.java.net>. 2052 OpenJDK home page: <http://openjdk.java.net>. 2053 _ACEOF 2054 ac_status=$? 2055 fi 2056 2057 if test "$ac_init_help" = "recursive"; then 2058 # If there are subdirs, report their specific --help. 2059 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2060 test -d "$ac_dir" || 2061 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2062 continue 2063 ac_builddir=. 2064 2065 case "$ac_dir" in 2066 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2067 *) 2068 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2069 # A ".." for each directory in $ac_dir_suffix. 2070 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2071 case $ac_top_builddir_sub in 2072 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2073 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2074 esac ;; 2075 esac 2076 ac_abs_top_builddir=$ac_pwd 2077 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2078 # for backward compatibility: 2079 ac_top_builddir=$ac_top_build_prefix 2080 2081 case $srcdir in 2082 .) # We are building in place. 2083 ac_srcdir=. 2084 ac_top_srcdir=$ac_top_builddir_sub 2085 ac_abs_top_srcdir=$ac_pwd ;; 2086 [\\/]* | ?:[\\/]* ) # Absolute name. 2087 ac_srcdir=$srcdir$ac_dir_suffix; 2088 ac_top_srcdir=$srcdir 2089 ac_abs_top_srcdir=$srcdir ;; 2090 *) # Relative name. 2091 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2092 ac_top_srcdir=$ac_top_build_prefix$srcdir 2093 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2094 esac 2095 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2096 2097 cd "$ac_dir" || { ac_status=$?; continue; } 2098 # Check for guested configure. 2099 if test -f "$ac_srcdir/configure.gnu"; then 2100 echo && 2101 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2102 elif test -f "$ac_srcdir/configure"; then 2103 echo && 2104 $SHELL "$ac_srcdir/configure" --help=recursive 2105 else 2106 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2107 fi || ac_status=$? 2108 cd "$ac_pwd" || { ac_status=$?; break; } 2109 done 2110 fi 2111 2112 test -n "$ac_init_help" && exit $ac_status 2113 if $ac_init_version; then 2114 cat <<\_ACEOF 2115 OpenJDK configure jdk8 2116 generated by GNU Autoconf 2.69 2117 2118 Copyright (C) 2012 Free Software Foundation, Inc. 2119 This configure script is free software; the Free Software Foundation 2120 gives unlimited permission to copy, distribute and modify it. 2121 _ACEOF 2122 exit 2123 fi 2124 2125 ## ------------------------ ## 2126 ## Autoconf initialization. ## 2127 ## ------------------------ ## 2128 2129 # ac_fn_c_try_compile LINENO 2130 # -------------------------- 2131 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2132 ac_fn_c_try_compile () 2133 { 2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2135 rm -f conftest.$ac_objext 2136 if { { ac_try="$ac_compile" 2137 case "(($ac_try" in 2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2139 *) ac_try_echo=$ac_try;; 2140 esac 2141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2142 $as_echo "$ac_try_echo"; } >&5 2143 (eval "$ac_compile") 2>conftest.err 2144 ac_status=$? 2145 if test -s conftest.err; then 2146 grep -v '^ *+' conftest.err >conftest.er1 2147 cat conftest.er1 >&5 2148 mv -f conftest.er1 conftest.err 2149 fi 2150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2151 test $ac_status = 0; } && { 2152 test -z "$ac_c_werror_flag" || 2153 test ! -s conftest.err 2154 } && test -s conftest.$ac_objext; then : 2155 ac_retval=0 2156 else 2157 $as_echo "$as_me: failed program was:" >&5 2158 sed 's/^/| /' conftest.$ac_ext >&5 2159 2160 ac_retval=1 2161 fi 2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2163 as_fn_set_status $ac_retval 2164 2165 } # ac_fn_c_try_compile 2166 2167 # ac_fn_cxx_try_compile LINENO 2168 # ---------------------------- 2169 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2170 ac_fn_cxx_try_compile () 2171 { 2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2173 rm -f conftest.$ac_objext 2174 if { { ac_try="$ac_compile" 2175 case "(($ac_try" in 2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2177 *) ac_try_echo=$ac_try;; 2178 esac 2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2180 $as_echo "$ac_try_echo"; } >&5 2181 (eval "$ac_compile") 2>conftest.err 2182 ac_status=$? 2183 if test -s conftest.err; then 2184 grep -v '^ *+' conftest.err >conftest.er1 2185 cat conftest.er1 >&5 2186 mv -f conftest.er1 conftest.err 2187 fi 2188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2189 test $ac_status = 0; } && { 2190 test -z "$ac_cxx_werror_flag" || 2191 test ! -s conftest.err 2192 } && test -s conftest.$ac_objext; then : 2193 ac_retval=0 2194 else 2195 $as_echo "$as_me: failed program was:" >&5 2196 sed 's/^/| /' conftest.$ac_ext >&5 2197 2198 ac_retval=1 2199 fi 2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2201 as_fn_set_status $ac_retval 2202 2203 } # ac_fn_cxx_try_compile 2204 2205 # ac_fn_c_try_cpp LINENO 2206 # ---------------------- 2207 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2208 ac_fn_c_try_cpp () 2209 { 2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2211 if { { ac_try="$ac_cpp conftest.$ac_ext" 2212 case "(($ac_try" in 2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2214 *) ac_try_echo=$ac_try;; 2215 esac 2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2217 $as_echo "$ac_try_echo"; } >&5 2218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2219 ac_status=$? 2220 if test -s conftest.err; then 2221 grep -v '^ *+' conftest.err >conftest.er1 2222 cat conftest.er1 >&5 2223 mv -f conftest.er1 conftest.err 2224 fi 2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2226 test $ac_status = 0; } > conftest.i && { 2227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2228 test ! -s conftest.err 2229 }; then : 2230 ac_retval=0 2231 else 2232 $as_echo "$as_me: failed program was:" >&5 2233 sed 's/^/| /' conftest.$ac_ext >&5 2234 2235 ac_retval=1 2236 fi 2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2238 as_fn_set_status $ac_retval 2239 2240 } # ac_fn_c_try_cpp 2241 2242 # ac_fn_cxx_try_cpp LINENO 2243 # ------------------------ 2244 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2245 ac_fn_cxx_try_cpp () 2246 { 2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2248 if { { ac_try="$ac_cpp conftest.$ac_ext" 2249 case "(($ac_try" in 2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2251 *) ac_try_echo=$ac_try;; 2252 esac 2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2254 $as_echo "$ac_try_echo"; } >&5 2255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2256 ac_status=$? 2257 if test -s conftest.err; then 2258 grep -v '^ *+' conftest.err >conftest.er1 2259 cat conftest.er1 >&5 2260 mv -f conftest.er1 conftest.err 2261 fi 2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2263 test $ac_status = 0; } > conftest.i && { 2264 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2265 test ! -s conftest.err 2266 }; then : 2267 ac_retval=0 2268 else 2269 $as_echo "$as_me: failed program was:" >&5 2270 sed 's/^/| /' conftest.$ac_ext >&5 2271 2272 ac_retval=1 2273 fi 2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2275 as_fn_set_status $ac_retval 2276 2277 } # ac_fn_cxx_try_cpp 2278 2279 # ac_fn_objc_try_compile LINENO 2280 # ----------------------------- 2281 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2282 ac_fn_objc_try_compile () 2283 { 2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2285 rm -f conftest.$ac_objext 2286 if { { ac_try="$ac_compile" 2287 case "(($ac_try" in 2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2289 *) ac_try_echo=$ac_try;; 2290 esac 2291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2292 $as_echo "$ac_try_echo"; } >&5 2293 (eval "$ac_compile") 2>conftest.err 2294 ac_status=$? 2295 if test -s conftest.err; then 2296 grep -v '^ *+' conftest.err >conftest.er1 2297 cat conftest.er1 >&5 2298 mv -f conftest.er1 conftest.err 2299 fi 2300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2301 test $ac_status = 0; } && { 2302 test -z "$ac_objc_werror_flag" || 2303 test ! -s conftest.err 2304 } && test -s conftest.$ac_objext; then : 2305 ac_retval=0 2306 else 2307 $as_echo "$as_me: failed program was:" >&5 2308 sed 's/^/| /' conftest.$ac_ext >&5 2309 2310 ac_retval=1 2311 fi 2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2313 as_fn_set_status $ac_retval 2314 2315 } # ac_fn_objc_try_compile 2316 2317 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2318 # --------------------------------------------------------- 2319 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2320 # the include files in INCLUDES and setting the cache variable VAR 2321 # accordingly. 2322 ac_fn_cxx_check_header_mongrel () 2323 { 2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2325 if eval \${$3+:} false; then : 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2327 $as_echo_n "checking for $2... " >&6; } 2328 if eval \${$3+:} false; then : 2329 $as_echo_n "(cached) " >&6 2330 fi 2331 eval ac_res=\$$3 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2333 $as_echo "$ac_res" >&6; } 2334 else 2335 # Is the header compilable? 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2337 $as_echo_n "checking $2 usability... " >&6; } 2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2339 /* end confdefs.h. */ 2340 $4 2341 #include <$2> 2342 _ACEOF 2343 if ac_fn_cxx_try_compile "$LINENO"; then : 2344 ac_header_compiler=yes 2345 else 2346 ac_header_compiler=no 2347 fi 2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2350 $as_echo "$ac_header_compiler" >&6; } 2351 2352 # Is the header present? 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2354 $as_echo_n "checking $2 presence... " >&6; } 2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2356 /* end confdefs.h. */ 2357 #include <$2> 2358 _ACEOF 2359 if ac_fn_cxx_try_cpp "$LINENO"; then : 2360 ac_header_preproc=yes 2361 else 2362 ac_header_preproc=no 2363 fi 2364 rm -f conftest.err conftest.i conftest.$ac_ext 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2366 $as_echo "$ac_header_preproc" >&6; } 2367 2368 # So? What about this header? 2369 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2370 yes:no: ) 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2372 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2374 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2375 ;; 2376 no:yes:* ) 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2378 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2380 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2382 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2384 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2386 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2387 ( $as_echo "## ----------------------------------------- ## 2388 ## Report this to build-dev@openjdk.java.net ## 2389 ## ----------------------------------------- ##" 2390 ) | sed "s/^/$as_me: WARNING: /" >&2 2391 ;; 2392 esac 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2394 $as_echo_n "checking for $2... " >&6; } 2395 if eval \${$3+:} false; then : 2396 $as_echo_n "(cached) " >&6 2397 else 2398 eval "$3=\$ac_header_compiler" 2399 fi 2400 eval ac_res=\$$3 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2402 $as_echo "$ac_res" >&6; } 2403 fi 2404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2405 2406 } # ac_fn_cxx_check_header_mongrel 2407 2408 # ac_fn_cxx_try_run LINENO 2409 # ------------------------ 2410 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2411 # that executables *can* be run. 2412 ac_fn_cxx_try_run () 2413 { 2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2415 if { { ac_try="$ac_link" 2416 case "(($ac_try" in 2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2418 *) ac_try_echo=$ac_try;; 2419 esac 2420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2421 $as_echo "$ac_try_echo"; } >&5 2422 (eval "$ac_link") 2>&5 2423 ac_status=$? 2424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2425 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2426 { { case "(($ac_try" in 2427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2428 *) ac_try_echo=$ac_try;; 2429 esac 2430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2431 $as_echo "$ac_try_echo"; } >&5 2432 (eval "$ac_try") 2>&5 2433 ac_status=$? 2434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2435 test $ac_status = 0; }; }; then : 2436 ac_retval=0 2437 else 2438 $as_echo "$as_me: program exited with status $ac_status" >&5 2439 $as_echo "$as_me: failed program was:" >&5 2440 sed 's/^/| /' conftest.$ac_ext >&5 2441 2442 ac_retval=$ac_status 2443 fi 2444 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2446 as_fn_set_status $ac_retval 2447 2448 } # ac_fn_cxx_try_run 2449 2450 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2451 # --------------------------------------------------------- 2452 # Tests whether HEADER exists and can be compiled using the include files in 2453 # INCLUDES, setting the cache variable VAR accordingly. 2454 ac_fn_cxx_check_header_compile () 2455 { 2456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2458 $as_echo_n "checking for $2... " >&6; } 2459 if eval \${$3+:} false; then : 2460 $as_echo_n "(cached) " >&6 2461 else 2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2463 /* end confdefs.h. */ 2464 $4 2465 #include <$2> 2466 _ACEOF 2467 if ac_fn_cxx_try_compile "$LINENO"; then : 2468 eval "$3=yes" 2469 else 2470 eval "$3=no" 2471 fi 2472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2473 fi 2474 eval ac_res=\$$3 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2476 $as_echo "$ac_res" >&6; } 2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2478 2479 } # ac_fn_cxx_check_header_compile 2480 2481 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2482 # ---------------------------------------------- 2483 # Tries to find the compile-time value of EXPR in a program that includes 2484 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2485 # computed 2486 ac_fn_cxx_compute_int () 2487 { 2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2489 if test "$cross_compiling" = yes; then 2490 # Depending upon the size, compute the lo and hi bounds. 2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2492 /* end confdefs.h. */ 2493 $4 2494 int 2495 main () 2496 { 2497 static int test_array [1 - 2 * !(($2) >= 0)]; 2498 test_array [0] = 0; 2499 return test_array [0]; 2500 2501 ; 2502 return 0; 2503 } 2504 _ACEOF 2505 if ac_fn_cxx_try_compile "$LINENO"; then : 2506 ac_lo=0 ac_mid=0 2507 while :; do 2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2509 /* end confdefs.h. */ 2510 $4 2511 int 2512 main () 2513 { 2514 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2515 test_array [0] = 0; 2516 return test_array [0]; 2517 2518 ; 2519 return 0; 2520 } 2521 _ACEOF 2522 if ac_fn_cxx_try_compile "$LINENO"; then : 2523 ac_hi=$ac_mid; break 2524 else 2525 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2526 if test $ac_lo -le $ac_mid; then 2527 ac_lo= ac_hi= 2528 break 2529 fi 2530 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2531 fi 2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2533 done 2534 else 2535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2536 /* end confdefs.h. */ 2537 $4 2538 int 2539 main () 2540 { 2541 static int test_array [1 - 2 * !(($2) < 0)]; 2542 test_array [0] = 0; 2543 return test_array [0]; 2544 2545 ; 2546 return 0; 2547 } 2548 _ACEOF 2549 if ac_fn_cxx_try_compile "$LINENO"; then : 2550 ac_hi=-1 ac_mid=-1 2551 while :; do 2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2553 /* end confdefs.h. */ 2554 $4 2555 int 2556 main () 2557 { 2558 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2559 test_array [0] = 0; 2560 return test_array [0]; 2561 2562 ; 2563 return 0; 2564 } 2565 _ACEOF 2566 if ac_fn_cxx_try_compile "$LINENO"; then : 2567 ac_lo=$ac_mid; break 2568 else 2569 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2570 if test $ac_mid -le $ac_hi; then 2571 ac_lo= ac_hi= 2572 break 2573 fi 2574 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2575 fi 2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2577 done 2578 else 2579 ac_lo= ac_hi= 2580 fi 2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2582 fi 2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2584 # Binary search between lo and hi bounds. 2585 while test "x$ac_lo" != "x$ac_hi"; do 2586 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2588 /* end confdefs.h. */ 2589 $4 2590 int 2591 main () 2592 { 2593 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2594 test_array [0] = 0; 2595 return test_array [0]; 2596 2597 ; 2598 return 0; 2599 } 2600 _ACEOF 2601 if ac_fn_cxx_try_compile "$LINENO"; then : 2602 ac_hi=$ac_mid 2603 else 2604 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2605 fi 2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2607 done 2608 case $ac_lo in #(( 2609 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2610 '') ac_retval=1 ;; 2611 esac 2612 else 2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2614 /* end confdefs.h. */ 2615 $4 2616 static long int longval () { return $2; } 2617 static unsigned long int ulongval () { return $2; } 2618 #include <stdio.h> 2619 #include <stdlib.h> 2620 int 2621 main () 2622 { 2623 2624 FILE *f = fopen ("conftest.val", "w"); 2625 if (! f) 2626 return 1; 2627 if (($2) < 0) 2628 { 2629 long int i = longval (); 2630 if (i != ($2)) 2631 return 1; 2632 fprintf (f, "%ld", i); 2633 } 2634 else 2635 { 2636 unsigned long int i = ulongval (); 2637 if (i != ($2)) 2638 return 1; 2639 fprintf (f, "%lu", i); 2640 } 2641 /* Do not output a trailing newline, as this causes \r\n confusion 2642 on some platforms. */ 2643 return ferror (f) || fclose (f) != 0; 2644 2645 ; 2646 return 0; 2647 } 2648 _ACEOF 2649 if ac_fn_cxx_try_run "$LINENO"; then : 2650 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2651 else 2652 ac_retval=1 2653 fi 2654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2655 conftest.$ac_objext conftest.beam conftest.$ac_ext 2656 rm -f conftest.val 2657 2658 fi 2659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2660 as_fn_set_status $ac_retval 2661 2662 } # ac_fn_cxx_compute_int 2663 2664 # ac_fn_cxx_try_link LINENO 2665 # ------------------------- 2666 # Try to link conftest.$ac_ext, and return whether this succeeded. 2667 ac_fn_cxx_try_link () 2668 { 2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2670 rm -f conftest.$ac_objext conftest$ac_exeext 2671 if { { ac_try="$ac_link" 2672 case "(($ac_try" in 2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2674 *) ac_try_echo=$ac_try;; 2675 esac 2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2677 $as_echo "$ac_try_echo"; } >&5 2678 (eval "$ac_link") 2>conftest.err 2679 ac_status=$? 2680 if test -s conftest.err; then 2681 grep -v '^ *+' conftest.err >conftest.er1 2682 cat conftest.er1 >&5 2683 mv -f conftest.er1 conftest.err 2684 fi 2685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2686 test $ac_status = 0; } && { 2687 test -z "$ac_cxx_werror_flag" || 2688 test ! -s conftest.err 2689 } && test -s conftest$ac_exeext && { 2690 test "$cross_compiling" = yes || 2691 test -x conftest$ac_exeext 2692 }; then : 2693 ac_retval=0 2694 else 2695 $as_echo "$as_me: failed program was:" >&5 2696 sed 's/^/| /' conftest.$ac_ext >&5 2697 2698 ac_retval=1 2699 fi 2700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2702 # interfere with the next link command; also delete a directory that is 2703 # left behind by Apple's compiler. We do this before executing the actions. 2704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2706 as_fn_set_status $ac_retval 2707 2708 } # ac_fn_cxx_try_link 2709 2710 # ac_fn_cxx_check_func LINENO FUNC VAR 2711 # ------------------------------------ 2712 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2713 ac_fn_cxx_check_func () 2714 { 2715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2717 $as_echo_n "checking for $2... " >&6; } 2718 if eval \${$3+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720 else 2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2722 /* end confdefs.h. */ 2723 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2724 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2725 #define $2 innocuous_$2 2726 2727 /* System header to define __stub macros and hopefully few prototypes, 2728 which can conflict with char $2 (); below. 2729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2730 <limits.h> exists even on freestanding compilers. */ 2731 2732 #ifdef __STDC__ 2733 # include <limits.h> 2734 #else 2735 # include <assert.h> 2736 #endif 2737 2738 #undef $2 2739 2740 /* Override any GCC internal prototype to avoid an error. 2741 Use char because int might match the return type of a GCC 2742 builtin and then its argument prototype would still apply. */ 2743 #ifdef __cplusplus 2744 extern "C" 2745 #endif 2746 char $2 (); 2747 /* The GNU C library defines this for functions which it implements 2748 to always fail with ENOSYS. Some functions are actually named 2749 something starting with __ and the normal name is an alias. */ 2750 #if defined __stub_$2 || defined __stub___$2 2751 choke me 2752 #endif 2753 2754 int 2755 main () 2756 { 2757 return $2 (); 2758 ; 2759 return 0; 2760 } 2761 _ACEOF 2762 if ac_fn_cxx_try_link "$LINENO"; then : 2763 eval "$3=yes" 2764 else 2765 eval "$3=no" 2766 fi 2767 rm -f core conftest.err conftest.$ac_objext \ 2768 conftest$ac_exeext conftest.$ac_ext 2769 fi 2770 eval ac_res=\$$3 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2772 $as_echo "$ac_res" >&6; } 2773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2774 2775 } # ac_fn_cxx_check_func 2776 2777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2778 # ------------------------------------------------------- 2779 # Tests whether HEADER exists and can be compiled using the include files in 2780 # INCLUDES, setting the cache variable VAR accordingly. 2781 ac_fn_c_check_header_compile () 2782 { 2783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2785 $as_echo_n "checking for $2... " >&6; } 2786 if eval \${$3+:} false; then : 2787 $as_echo_n "(cached) " >&6 2788 else 2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2790 /* end confdefs.h. */ 2791 $4 2792 #include <$2> 2793 _ACEOF 2794 if ac_fn_c_try_compile "$LINENO"; then : 2795 eval "$3=yes" 2796 else 2797 eval "$3=no" 2798 fi 2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2800 fi 2801 eval ac_res=\$$3 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2803 $as_echo "$ac_res" >&6; } 2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2805 2806 } # ac_fn_c_check_header_compile 2807 cat >config.log <<_ACEOF 2808 This file contains any messages produced by compilers while 2809 running configure, to aid debugging if configure makes a mistake. 2810 2811 It was created by OpenJDK $as_me jdk8, which was 2812 generated by GNU Autoconf 2.69. Invocation command line was 2813 2814 $ $0 $@ 2815 2816 _ACEOF 2817 exec 5>>config.log 2818 { 2819 cat <<_ASUNAME 2820 ## --------- ## 2821 ## Platform. ## 2822 ## --------- ## 2823 2824 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2825 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2826 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2827 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2828 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2829 2830 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2831 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2832 2833 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2834 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2835 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2836 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2837 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2838 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2839 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2840 2841 _ASUNAME 2842 2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2844 for as_dir in $PATH 2845 do 2846 IFS=$as_save_IFS 2847 test -z "$as_dir" && as_dir=. 2848 $as_echo "PATH: $as_dir" 2849 done 2850 IFS=$as_save_IFS 2851 2852 } >&5 2853 2854 cat >&5 <<_ACEOF 2855 2856 2857 ## ----------- ## 2858 ## Core tests. ## 2859 ## ----------- ## 2860 2861 _ACEOF 2862 2863 2864 # Keep a trace of the command line. 2865 # Strip out --no-create and --no-recursion so they do not pile up. 2866 # Strip out --silent because we don't want to record it for future runs. 2867 # Also quote any args containing shell meta-characters. 2868 # Make two passes to allow for proper duplicate-argument suppression. 2869 ac_configure_args= 2870 ac_configure_args0= 2871 ac_configure_args1= 2872 ac_must_keep_next=false 2873 for ac_pass in 1 2 2874 do 2875 for ac_arg 2876 do 2877 case $ac_arg in 2878 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2880 | -silent | --silent | --silen | --sile | --sil) 2881 continue ;; 2882 *\'*) 2883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2884 esac 2885 case $ac_pass in 2886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2887 2) 2888 as_fn_append ac_configure_args1 " '$ac_arg'" 2889 if test $ac_must_keep_next = true; then 2890 ac_must_keep_next=false # Got value, back to normal. 2891 else 2892 case $ac_arg in 2893 *=* | --config-cache | -C | -disable-* | --disable-* \ 2894 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2895 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2896 | -with-* | --with-* | -without-* | --without-* | --x) 2897 case "$ac_configure_args0 " in 2898 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2899 esac 2900 ;; 2901 -* ) ac_must_keep_next=true ;; 2902 esac 2903 fi 2904 as_fn_append ac_configure_args " '$ac_arg'" 2905 ;; 2906 esac 2907 done 2908 done 2909 { ac_configure_args0=; unset ac_configure_args0;} 2910 { ac_configure_args1=; unset ac_configure_args1;} 2911 2912 # When interrupted or exit'd, cleanup temporary files, and complete 2913 # config.log. We remove comments because anyway the quotes in there 2914 # would cause problems or look ugly. 2915 # WARNING: Use '\'' to represent an apostrophe within the trap. 2916 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2917 trap 'exit_status=$? 2918 # Save into config.log some information that might help in debugging. 2919 { 2920 echo 2921 2922 $as_echo "## ---------------- ## 2923 ## Cache variables. ## 2924 ## ---------------- ##" 2925 echo 2926 # The following way of writing the cache mishandles newlines in values, 2927 ( 2928 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2929 eval ac_val=\$$ac_var 2930 case $ac_val in #( 2931 *${as_nl}*) 2932 case $ac_var in #( 2933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2935 esac 2936 case $ac_var in #( 2937 _ | IFS | as_nl) ;; #( 2938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2939 *) { eval $ac_var=; unset $ac_var;} ;; 2940 esac ;; 2941 esac 2942 done 2943 (set) 2>&1 | 2944 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2945 *${as_nl}ac_space=\ *) 2946 sed -n \ 2947 "s/'\''/'\''\\\\'\'''\''/g; 2948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2949 ;; #( 2950 *) 2951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2952 ;; 2953 esac | 2954 sort 2955 ) 2956 echo 2957 2958 $as_echo "## ----------------- ## 2959 ## Output variables. ## 2960 ## ----------------- ##" 2961 echo 2962 for ac_var in $ac_subst_vars 2963 do 2964 eval ac_val=\$$ac_var 2965 case $ac_val in 2966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2967 esac 2968 $as_echo "$ac_var='\''$ac_val'\''" 2969 done | sort 2970 echo 2971 2972 if test -n "$ac_subst_files"; then 2973 $as_echo "## ------------------- ## 2974 ## File substitutions. ## 2975 ## ------------------- ##" 2976 echo 2977 for ac_var in $ac_subst_files 2978 do 2979 eval ac_val=\$$ac_var 2980 case $ac_val in 2981 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2982 esac 2983 $as_echo "$ac_var='\''$ac_val'\''" 2984 done | sort 2985 echo 2986 fi 2987 2988 if test -s confdefs.h; then 2989 $as_echo "## ----------- ## 2990 ## confdefs.h. ## 2991 ## ----------- ##" 2992 echo 2993 cat confdefs.h 2994 echo 2995 fi 2996 test "$ac_signal" != 0 && 2997 $as_echo "$as_me: caught signal $ac_signal" 2998 $as_echo "$as_me: exit $exit_status" 2999 } >&5 3000 rm -f core *.core core.conftest.* && 3001 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3002 exit $exit_status 3003 ' 0 3004 for ac_signal in 1 2 13 15; do 3005 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3006 done 3007 ac_signal=0 3008 3009 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3010 rm -f -r conftest* confdefs.h 3011 3012 $as_echo "/* confdefs.h */" > confdefs.h 3013 3014 # Predefined preprocessor variables. 3015 3016 cat >>confdefs.h <<_ACEOF 3017 #define PACKAGE_NAME "$PACKAGE_NAME" 3018 _ACEOF 3019 3020 cat >>confdefs.h <<_ACEOF 3021 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3022 _ACEOF 3023 3024 cat >>confdefs.h <<_ACEOF 3025 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3026 _ACEOF 3027 3028 cat >>confdefs.h <<_ACEOF 3029 #define PACKAGE_STRING "$PACKAGE_STRING" 3030 _ACEOF 3031 3032 cat >>confdefs.h <<_ACEOF 3033 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3034 _ACEOF 3035 3036 cat >>confdefs.h <<_ACEOF 3037 #define PACKAGE_URL "$PACKAGE_URL" 3038 _ACEOF 3039 3040 3041 # Let the site file select an alternate cache file if it wants to. 3042 # Prefer an explicitly selected file to automatically selected ones. 3043 ac_site_file1=NONE 3044 ac_site_file2=NONE 3045 if test -n "$CONFIG_SITE"; then 3046 # We do not want a PATH search for config.site. 3047 case $CONFIG_SITE in #(( 3048 -*) ac_site_file1=./$CONFIG_SITE;; 3049 */*) ac_site_file1=$CONFIG_SITE;; 3050 *) ac_site_file1=./$CONFIG_SITE;; 3051 esac 3052 elif test "x$prefix" != xNONE; then 3053 ac_site_file1=$prefix/share/config.site 3054 ac_site_file2=$prefix/etc/config.site 3055 else 3056 ac_site_file1=$ac_default_prefix/share/config.site 3057 ac_site_file2=$ac_default_prefix/etc/config.site 3058 fi 3059 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3060 do 3061 test "x$ac_site_file" = xNONE && continue 3062 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3064 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3065 sed 's/^/| /' "$ac_site_file" >&5 3066 . "$ac_site_file" \ 3067 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3069 as_fn_error $? "failed to load site script $ac_site_file 3070 See \`config.log' for more details" "$LINENO" 5; } 3071 fi 3072 done 3073 3074 if test -r "$cache_file"; then 3075 # Some versions of bash will fail to source /dev/null (special files 3076 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3077 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3079 $as_echo "$as_me: loading cache $cache_file" >&6;} 3080 case $cache_file in 3081 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3082 *) . "./$cache_file";; 3083 esac 3084 fi 3085 else 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3087 $as_echo "$as_me: creating cache $cache_file" >&6;} 3088 >$cache_file 3089 fi 3090 3091 # Check that the precious variables saved in the cache have kept the same 3092 # value. 3093 ac_cache_corrupted=false 3094 for ac_var in $ac_precious_vars; do 3095 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3096 eval ac_new_set=\$ac_env_${ac_var}_set 3097 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3098 eval ac_new_val=\$ac_env_${ac_var}_value 3099 case $ac_old_set,$ac_new_set in 3100 set,) 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3102 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3103 ac_cache_corrupted=: ;; 3104 ,set) 3105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3106 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3107 ac_cache_corrupted=: ;; 3108 ,);; 3109 *) 3110 if test "x$ac_old_val" != "x$ac_new_val"; then 3111 # differences in whitespace do not lead to failure. 3112 ac_old_val_w=`echo x $ac_old_val` 3113 ac_new_val_w=`echo x $ac_new_val` 3114 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3116 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3117 ac_cache_corrupted=: 3118 else 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3120 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3121 eval $ac_var=\$ac_old_val 3122 fi 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3124 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3126 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3127 fi;; 3128 esac 3129 # Pass precious variables to config.status. 3130 if test "$ac_new_set" = set; then 3131 case $ac_new_val in 3132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3133 *) ac_arg=$ac_var=$ac_new_val ;; 3134 esac 3135 case " $ac_configure_args " in 3136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3137 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3138 esac 3139 fi 3140 done 3141 if $ac_cache_corrupted; then 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3145 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3146 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3147 fi 3148 ## -------------------- ## 3149 ## Main body of script. ## 3150 ## -------------------- ## 3151 3152 ac_ext=c 3153 ac_cpp='$CPP $CPPFLAGS' 3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3157 3158 3159 3160 ac_aux_dir= 3161 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3162 if test -f "$ac_dir/install-sh"; then 3163 ac_aux_dir=$ac_dir 3164 ac_install_sh="$ac_aux_dir/install-sh -c" 3165 break 3166 elif test -f "$ac_dir/install.sh"; then 3167 ac_aux_dir=$ac_dir 3168 ac_install_sh="$ac_aux_dir/install.sh -c" 3169 break 3170 elif test -f "$ac_dir/shtool"; then 3171 ac_aux_dir=$ac_dir 3172 ac_install_sh="$ac_aux_dir/shtool install -c" 3173 break 3174 fi 3175 done 3176 if test -z "$ac_aux_dir"; then 3177 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 3178 fi 3179 3180 # These three variables are undocumented and unsupported, 3181 # and are intended to be withdrawn in a future Autoconf release. 3182 # They can cause serious problems if a builder's source tree is in a directory 3183 # whose full name contains unusual characters. 3184 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3185 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3186 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3187 3188 3189 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3190 3191 # 3192 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3193 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3194 # 3195 # This code is free software; you can redistribute it and/or modify it 3196 # under the terms of the GNU General Public License version 2 only, as 3197 # published by the Free Software Foundation. Oracle designates this 3198 # particular file as subject to the "Classpath" exception as provided 3199 # by Oracle in the LICENSE file that accompanied this code. 3200 # 3201 # This code is distributed in the hope that it will be useful, but WITHOUT 3202 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3203 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3204 # version 2 for more details (a copy is included in the LICENSE file that 3205 # accompanied this code). 3206 # 3207 # You should have received a copy of the GNU General Public License version 3208 # 2 along with this work; if not, write to the Free Software Foundation, 3209 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3210 # 3211 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3212 # or visit www.oracle.com if you need additional information or have any 3213 # questions. 3214 # 3215 3216 # 3217 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3218 # 3219 # This program is free software; you can redistribute it and/or modify 3220 # it under the terms of the GNU General Public License as published by 3221 # the Free Software Foundation; either version 2 of the License, or 3222 # (at your option) any later version. 3223 # 3224 # This program is distributed in the hope that it will be useful, but 3225 # WITHOUT ANY WARRANTY; without even the implied warranty of 3226 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3227 # General Public License for more details. 3228 # 3229 # You should have received a copy of the GNU General Public License 3230 # along with this program; if not, write to the Free Software 3231 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3232 # 3233 # As a special exception to the GNU General Public License, if you 3234 # distribute this file as part of a program that contains a 3235 # configuration script generated by Autoconf, you may include it under 3236 # the same distribution terms that you use for the rest of that program. 3237 3238 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3239 # ---------------------------------- 3240 # PKG_PROG_PKG_CONFIG 3241 3242 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3243 # 3244 # Check to see whether a particular set of modules exists. Similar 3245 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3246 # 3247 # 3248 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3249 # this or PKG_CHECK_MODULES is called, or make sure to call 3250 # PKG_CHECK_EXISTS manually 3251 # -------------------------------------------------------------- 3252 3253 3254 3255 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3256 # --------------------------------------------- 3257 # _PKG_CONFIG 3258 3259 # _PKG_SHORT_ERRORS_SUPPORTED 3260 # ----------------------------- 3261 # _PKG_SHORT_ERRORS_SUPPORTED 3262 3263 3264 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3265 # [ACTION-IF-NOT-FOUND]) 3266 # 3267 # 3268 # Note that if there is a possibility the first call to 3269 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3270 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3271 # 3272 # 3273 # -------------------------------------------------------------- 3274 # PKG_CHECK_MODULES 3275 3276 3277 # Include these first... 3278 # 3279 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3280 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3281 # 3282 # This code is free software; you can redistribute it and/or modify it 3283 # under the terms of the GNU General Public License version 2 only, as 3284 # published by the Free Software Foundation. Oracle designates this 3285 # particular file as subject to the "Classpath" exception as provided 3286 # by Oracle in the LICENSE file that accompanied this code. 3287 # 3288 # This code is distributed in the hope that it will be useful, but WITHOUT 3289 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3290 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3291 # version 2 for more details (a copy is included in the LICENSE file that 3292 # accompanied this code). 3293 # 3294 # You should have received a copy of the GNU General Public License version 3295 # 2 along with this work; if not, write to the Free Software Foundation, 3296 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3297 # 3298 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3299 # or visit www.oracle.com if you need additional information or have any 3300 # questions. 3301 # 3302 3303 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3304 # If so, then append $1 to $2 \ 3305 # Also set JVM_ARG_OK to true/false depending on outcome. 3306 3307 3308 # Appends a string to a path variable, only adding the : when needed. 3309 3310 3311 # Prepends a string to a path variable, only adding the : when needed. 3312 3313 3314 # This will make sure the given variable points to a full and proper 3315 # path. This means: 3316 # 1) There will be no spaces in the path. On posix platforms, 3317 # spaces in the path will result in an error. On Windows, 3318 # the path will be rewritten using short-style to be space-free. 3319 # 2) The path will be absolute, and it will be in unix-style (on 3320 # cygwin). 3321 # $1: The name of the variable to fix 3322 3323 3324 # This will make sure the given variable points to a executable 3325 # with a full and proper path. This means: 3326 # 1) There will be no spaces in the path. On posix platforms, 3327 # spaces in the path will result in an error. On Windows, 3328 # the path will be rewritten using short-style to be space-free. 3329 # 2) The path will be absolute, and it will be in unix-style (on 3330 # cygwin). 3331 # Any arguments given to the executable is preserved. 3332 # If the input variable does not have a directory specification, then 3333 # it need to be in the PATH. 3334 # $1: The name of the variable to fix 3335 3336 3337 3338 3339 # Register a --with argument but mark it as deprecated 3340 # $1: The name of the with argument to deprecate, not including --with- 3341 3342 3343 # Register a --enable argument but mark it as deprecated 3344 # $1: The name of the with argument to deprecate, not including --enable- 3345 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3346 3347 3348 3349 3350 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3351 # $1: variable to check 3352 3353 3354 # Check that there are no unprocessed overridden variables left. 3355 # If so, they are an incorrect argument and we will exit with an error. 3356 3357 3358 # Setup a tool for the given variable. If correctly specified by the user, 3359 # use that value, otherwise search for the tool using the supplied code snippet. 3360 # $1: variable to set 3361 # $2: code snippet to call to look for the tool 3362 3363 3364 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3365 # $1: variable to set 3366 # $2: executable name (or list of names) to look for 3367 3368 3369 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3370 # $1: variable to set 3371 # $2: executable name (or list of names) to look for 3372 3373 3374 # Like BASIC_PATH_PROGS but fails if no tool was found. 3375 # $1: variable to set 3376 # $2: executable name (or list of names) to look for 3377 3378 3379 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3380 # $1: variable to set 3381 # $2: autoconf macro to call to look for the special tool 3382 3383 3384 # Setup the most fundamental tools that relies on not much else to set up, 3385 # but is used by much of the early bootstrap code. 3386 3387 3388 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 #%%% Simple tools %%% 3399 3400 # Check if we have found a usable version of make 3401 # $1: the path to a potential make binary (or empty) 3402 # $2: the description on how we found this 3403 3404 3405 # Goes looking for a usable version of GNU make. 3406 3407 3408 3409 3410 3411 3412 # Check if build directory is on local disk. If not possible to determine, 3413 # we prefer to claim it's local. 3414 # Argument 1: directory to test 3415 # Argument 2: what to do if it is on local disk 3416 # Argument 3: what to do otherwise (remote disk or failure) 3417 3418 3419 # Check that source files have basic read permissions set. This might 3420 # not be the case in cygwin in certain conditions. 3421 3422 3423 3424 3425 # 3426 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3427 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3428 # 3429 # This code is free software; you can redistribute it and/or modify it 3430 # under the terms of the GNU General Public License version 2 only, as 3431 # published by the Free Software Foundation. Oracle designates this 3432 # particular file as subject to the "Classpath" exception as provided 3433 # by Oracle in the LICENSE file that accompanied this code. 3434 # 3435 # This code is distributed in the hope that it will be useful, but WITHOUT 3436 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3437 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3438 # version 2 for more details (a copy is included in the LICENSE file that 3439 # accompanied this code). 3440 # 3441 # You should have received a copy of the GNU General Public License version 3442 # 2 along with this work; if not, write to the Free Software Foundation, 3443 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3444 # 3445 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3446 # or visit www.oracle.com if you need additional information or have any 3447 # questions. 3448 # 3449 3450 3451 3452 3453 3454 # Helper function which possibly converts a path using DOS-style short mode. 3455 # If so, the updated path is stored in $new_path. 3456 # $1: The path to check 3457 3458 3459 # Helper function which possibly converts a path using DOS-style short mode. 3460 # If so, the updated path is stored in $new_path. 3461 # $1: The path to check 3462 3463 3464 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3465 # and could probably be heavily simplified. However, all changes in this 3466 # area tend to need lot of testing in different scenarios, and in lack of 3467 # proper unit testing, cleaning this up has not been deemed worth the effort 3468 # at the moment. 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3479 3480 3481 3482 3483 # 3484 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3485 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3486 # 3487 # This code is free software; you can redistribute it and/or modify it 3488 # under the terms of the GNU General Public License version 2 only, as 3489 # published by the Free Software Foundation. Oracle designates this 3490 # particular file as subject to the "Classpath" exception as provided 3491 # by Oracle in the LICENSE file that accompanied this code. 3492 # 3493 # This code is distributed in the hope that it will be useful, but WITHOUT 3494 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3495 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3496 # version 2 for more details (a copy is included in the LICENSE file that 3497 # accompanied this code). 3498 # 3499 # You should have received a copy of the GNU General Public License version 3500 # 2 along with this work; if not, write to the Free Software Foundation, 3501 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3502 # 3503 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3504 # or visit www.oracle.com if you need additional information or have any 3505 # questions. 3506 # 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 # ... then the rest 3519 # 3520 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3521 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3522 # 3523 # This code is free software; you can redistribute it and/or modify it 3524 # under the terms of the GNU General Public License version 2 only, as 3525 # published by the Free Software Foundation. Oracle designates this 3526 # particular file as subject to the "Classpath" exception as provided 3527 # by Oracle in the LICENSE file that accompanied this code. 3528 # 3529 # This code is distributed in the hope that it will be useful, but WITHOUT 3530 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3531 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3532 # version 2 for more details (a copy is included in the LICENSE file that 3533 # accompanied this code). 3534 # 3535 # You should have received a copy of the GNU General Public License version 3536 # 2 along with this work; if not, write to the Free Software Foundation, 3537 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3538 # 3539 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3540 # or visit www.oracle.com if you need additional information or have any 3541 # questions. 3542 # 3543 3544 # Execute the check given as argument, and verify the result 3545 # If the Boot JDK was previously found, do nothing 3546 # $1 A command line (typically autoconf macro) to execute 3547 3548 3549 # Test: Is bootjdk explicitely set by command line arguments? 3550 3551 3552 # Test: Is bootjdk available from builddeps? 3553 3554 3555 # Test: Is $JAVA_HOME set? 3556 3557 3558 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3559 3560 3561 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3562 3563 3564 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3565 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3566 # $1 = Path to directory containing jdk installations. 3567 # $2 = String to append to the found JDK directory to get the proper JDK home 3568 3569 3570 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3571 # environmental variable as base for where to look. 3572 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3573 3574 3575 # Test: Is there a JDK installed in default, well-known locations? 3576 3577 3578 # Check that a command-line tool in the Boot JDK is correct 3579 # $1 = name of variable to assign 3580 # $2 = name of binary 3581 3582 3583 ############################################################################### 3584 # 3585 # We need a Boot JDK to bootstrap the build. 3586 # 3587 3588 3589 3590 3591 3592 # 3593 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3594 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3595 # 3596 # This code is free software; you can redistribute it and/or modify it 3597 # under the terms of the GNU General Public License version 2 only, as 3598 # published by the Free Software Foundation. Oracle designates this 3599 # particular file as subject to the "Classpath" exception as provided 3600 # by Oracle in the LICENSE file that accompanied this code. 3601 # 3602 # This code is distributed in the hope that it will be useful, but WITHOUT 3603 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3604 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3605 # version 2 for more details (a copy is included in the LICENSE file that 3606 # accompanied this code). 3607 # 3608 # You should have received a copy of the GNU General Public License version 3609 # 2 along with this work; if not, write to the Free Software Foundation, 3610 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3611 # 3612 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3613 # or visit www.oracle.com if you need additional information or have any 3614 # questions. 3615 # 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 # 3637 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3638 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3639 # 3640 # This code is free software; you can redistribute it and/or modify it 3641 # under the terms of the GNU General Public License version 2 only, as 3642 # published by the Free Software Foundation. Oracle designates this 3643 # particular file as subject to the "Classpath" exception as provided 3644 # by Oracle in the LICENSE file that accompanied this code. 3645 # 3646 # This code is distributed in the hope that it will be useful, but WITHOUT 3647 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3648 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3649 # version 2 for more details (a copy is included in the LICENSE file that 3650 # accompanied this code). 3651 # 3652 # You should have received a copy of the GNU General Public License version 3653 # 2 along with this work; if not, write to the Free Software Foundation, 3654 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3655 # 3656 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3657 # or visit www.oracle.com if you need additional information or have any 3658 # questions. 3659 # 3660 3661 3662 3663 3664 3665 # Documentation on common flags used for solstudio in HIGHEST. 3666 # 3667 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3668 # done with care, there are some assumptions below that need to 3669 # be understood about the use of pointers, and IEEE behavior. 3670 # 3671 # -fns: Use non-standard floating point mode (not IEEE 754) 3672 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3673 # -fsingle: Use single precision floating point with 'float' 3674 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3675 # (Source with excessing pointer casting and data access with mixed 3676 # pointer types are not recommended) 3677 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3678 # (If you expect perfect errno behavior, do not use this) 3679 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3680 # -xrestrict: Pointer parameters to functions do not overlap 3681 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3682 # If you pass in multiple pointers to the same data, do not use this) 3683 # -xlibmil: Inline some library routines 3684 # (If you expect perfect errno behavior, do not use this) 3685 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3686 # (If you expect perfect errno behavior, do not use this) 3687 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3688 3689 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3690 # Bug? 3691 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3692 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3693 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3694 #fi 3695 3696 3697 3698 3699 3700 3701 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3702 # [RUN-IF-FALSE]) 3703 # ------------------------------------------------------------ 3704 # Check that the C compiler supports an argument 3705 3706 3707 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3708 # [RUN-IF-FALSE]) 3709 # ------------------------------------------------------------ 3710 # Check that the C++ compiler supports an argument 3711 3712 3713 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3714 # [RUN-IF-FALSE]) 3715 # ------------------------------------------------------------ 3716 # Check that the C and C++ compilers support an argument 3717 3718 3719 3720 3721 3722 3723 3724 # 3725 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3726 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3727 # 3728 # This code is free software; you can redistribute it and/or modify it 3729 # under the terms of the GNU General Public License version 2 only, as 3730 # published by the Free Software Foundation. Oracle designates this 3731 # particular file as subject to the "Classpath" exception as provided 3732 # by Oracle in the LICENSE file that accompanied this code. 3733 # 3734 # This code is distributed in the hope that it will be useful, but WITHOUT 3735 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3736 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3737 # version 2 for more details (a copy is included in the LICENSE file that 3738 # accompanied this code). 3739 # 3740 # You should have received a copy of the GNU General Public License version 3741 # 2 along with this work; if not, write to the Free Software Foundation, 3742 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3743 # 3744 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3745 # or visit www.oracle.com if you need additional information or have any 3746 # questions. 3747 # 3748 3749 3750 3751 3752 3753 cygwin_help() { 3754 case $1 in 3755 unzip) 3756 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3757 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3758 ;; 3759 zip) 3760 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3761 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3762 ;; 3763 make) 3764 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3765 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3766 ;; 3767 freetype) 3768 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 3769 HELP_MSG="To install freetype, run: 3770 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe 3771 chmod +x /tmp/freetype-setup.exe 3772 /tmp/freetype-setup.exe 3773 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\". 3774 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll." 3775 else 3776 HELP_MSG="You need to build a 64-bit version of freetype. 3777 This is not readily available. 3778 You can find source code and build instructions on 3779 http://www.freetype.org/ 3780 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically." 3781 fi 3782 ;; 3783 esac 3784 } 3785 3786 msys_help() { 3787 PKGHANDLER_COMMAND="" 3788 } 3789 3790 apt_help() { 3791 case $1 in 3792 devkit) 3793 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3794 openjdk) 3795 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3796 alsa) 3797 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3798 cups) 3799 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3800 freetype) 3801 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3802 pulse) 3803 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3804 x11) 3805 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3806 ccache) 3807 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3808 esac 3809 } 3810 3811 yum_help() { 3812 case $1 in 3813 devkit) 3814 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3815 openjdk) 3816 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3817 alsa) 3818 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3819 cups) 3820 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3821 freetype) 3822 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3823 pulse) 3824 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3825 x11) 3826 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3827 ccache) 3828 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3829 esac 3830 } 3831 3832 port_help() { 3833 PKGHANDLER_COMMAND="" 3834 } 3835 3836 pkgutil_help() { 3837 PKGHANDLER_COMMAND="" 3838 } 3839 3840 pkgadd_help() { 3841 PKGHANDLER_COMMAND="" 3842 } 3843 3844 # This function will check if we're called from the "configure" wrapper while 3845 # printing --help. If so, we will print out additional information that can 3846 # only be extracted within the autoconf script, and then exit. This must be 3847 # called at the very beginning in configure.ac. 3848 3849 3850 3851 3852 # 3853 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3854 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3855 # 3856 # This code is free software; you can redistribute it and/or modify it 3857 # under the terms of the GNU General Public License version 2 only, as 3858 # published by the Free Software Foundation. Oracle designates this 3859 # particular file as subject to the "Classpath" exception as provided 3860 # by Oracle in the LICENSE file that accompanied this code. 3861 # 3862 # This code is distributed in the hope that it will be useful, but WITHOUT 3863 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3864 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3865 # version 2 for more details (a copy is included in the LICENSE file that 3866 # accompanied this code). 3867 # 3868 # You should have received a copy of the GNU General Public License version 3869 # 2 along with this work; if not, write to the Free Software Foundation, 3870 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3871 # 3872 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3873 # or visit www.oracle.com if you need additional information or have any 3874 # questions. 3875 # 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 ############################################################################### 3887 # 3888 # Should we build only OpenJDK even if closed sources are present? 3889 # 3890 3891 3892 3893 3894 ############################################################################### 3895 # 3896 # Setup version numbers 3897 # 3898 3899 3900 3901 3902 3903 3904 # Support for customization of the build process. Some build files 3905 # will include counterparts from this location, if they exist. This allows 3906 # for a degree of customization of the build targets and the rules/recipes 3907 # to create them 3908 3909 # Check whether --with-custom-make-dir was given. 3910 if test "${with_custom_make_dir+set}" = set; then : 3911 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir 3912 fi 3913 3914 3915 3916 # 3917 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3918 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3919 # 3920 # This code is free software; you can redistribute it and/or modify it 3921 # under the terms of the GNU General Public License version 2 only, as 3922 # published by the Free Software Foundation. Oracle designates this 3923 # particular file as subject to the "Classpath" exception as provided 3924 # by Oracle in the LICENSE file that accompanied this code. 3925 # 3926 # This code is distributed in the hope that it will be useful, but WITHOUT 3927 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3928 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3929 # version 2 for more details (a copy is included in the LICENSE file that 3930 # accompanied this code). 3931 # 3932 # You should have received a copy of the GNU General Public License version 3933 # 2 along with this work; if not, write to the Free Software Foundation, 3934 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3935 # 3936 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3937 # or visit www.oracle.com if you need additional information or have any 3938 # questions. 3939 # 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 # 3960 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3961 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3962 # 3963 # This code is free software; you can redistribute it and/or modify it 3964 # under the terms of the GNU General Public License version 2 only, as 3965 # published by the Free Software Foundation. Oracle designates this 3966 # particular file as subject to the "Classpath" exception as provided 3967 # by Oracle in the LICENSE file that accompanied this code. 3968 # 3969 # This code is distributed in the hope that it will be useful, but WITHOUT 3970 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3971 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3972 # version 2 for more details (a copy is included in the LICENSE file that 3973 # accompanied this code). 3974 # 3975 # You should have received a copy of the GNU General Public License version 3976 # 2 along with this work; if not, write to the Free Software Foundation, 3977 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3978 # 3979 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3980 # or visit www.oracle.com if you need additional information or have any 3981 # questions. 3982 # 3983 3984 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 3985 # Converts autoconf style CPU name to OpenJDK style, into 3986 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 3987 3988 3989 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 3990 # Converts autoconf style OS name to OpenJDK style, into 3991 # VAR_OS and VAR_OS_API. 3992 3993 3994 # Expects $host_os $host_cpu $build_os and $build_cpu 3995 # and $with_target_bits to have been setup! 3996 # 3997 # Translate the standard triplet(quadruplet) definition 3998 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 3999 # OPENJDK_BUILD_OS, etc. 4000 4001 4002 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4003 # accordingly. Must be done after setting up build and target system, but before 4004 # doing anything else with these values. 4005 4006 4007 # Setup the legacy variables, for controlling the old makefiles. 4008 # 4009 4010 4011 4012 4013 #%%% Build and target systems %%% 4014 4015 4016 4017 4018 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4019 # Add -mX to various FLAGS variables. 4020 4021 4022 4023 4024 4025 4026 # 4027 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4028 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4029 # 4030 # This code is free software; you can redistribute it and/or modify it 4031 # under the terms of the GNU General Public License version 2 only, as 4032 # published by the Free Software Foundation. Oracle designates this 4033 # particular file as subject to the "Classpath" exception as provided 4034 # by Oracle in the LICENSE file that accompanied this code. 4035 # 4036 # This code is distributed in the hope that it will be useful, but WITHOUT 4037 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4038 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4039 # version 2 for more details (a copy is included in the LICENSE file that 4040 # accompanied this code). 4041 # 4042 # You should have received a copy of the GNU General Public License version 4043 # 2 along with this work; if not, write to the Free Software Foundation, 4044 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4045 # 4046 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4047 # or visit www.oracle.com if you need additional information or have any 4048 # questions. 4049 # 4050 4051 4052 4053 4054 4055 4056 4057 4058 # 4059 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4060 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4061 # 4062 # This code is free software; you can redistribute it and/or modify it 4063 # under the terms of the GNU General Public License version 2 only, as 4064 # published by the Free Software Foundation. Oracle designates this 4065 # particular file as subject to the "Classpath" exception as provided 4066 # by Oracle in the LICENSE file that accompanied this code. 4067 # 4068 # This code is distributed in the hope that it will be useful, but WITHOUT 4069 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4070 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4071 # version 2 for more details (a copy is included in the LICENSE file that 4072 # accompanied this code). 4073 # 4074 # You should have received a copy of the GNU General Public License version 4075 # 2 along with this work; if not, write to the Free Software Foundation, 4076 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4077 # 4078 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4079 # or visit www.oracle.com if you need additional information or have any 4080 # questions. 4081 # 4082 4083 ######################################################################## 4084 # This file is responsible for detecting, verifying and setting up the 4085 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4086 # proper paths to the binaries, but it will not setup any flags. 4087 # 4088 # The binaries used is determined by the toolchain type, which is the family of 4089 # compilers and related tools that are used. 4090 ######################################################################## 4091 4092 4093 # All valid toolchains, regardless of platform (used by help.m4) 4094 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4095 4096 # These toolchains are valid on different platforms 4097 VALID_TOOLCHAINS_linux="gcc clang" 4098 VALID_TOOLCHAINS_solaris="solstudio" 4099 VALID_TOOLCHAINS_macosx="gcc clang" 4100 VALID_TOOLCHAINS_aix="xlc" 4101 VALID_TOOLCHAINS_windows="microsoft" 4102 4103 # Toolchain descriptions 4104 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4105 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4106 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4107 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4108 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4109 4110 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4111 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4112 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4113 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4114 4115 4116 # Check if the configured compiler (C and C++) is of a specific version or 4117 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4118 # 4119 # Arguments: 4120 # $1: The version string to check against the found version 4121 # $2: block to run if the compiler is at least this version (>=) 4122 # $3: block to run if the compiler is older than this version (<) 4123 4124 4125 4126 # Setup a number of variables describing how native output files are 4127 # named on this platform/toolchain. 4128 4129 4130 # Determine which toolchain type to use, and make sure it is valid for this 4131 # platform. Setup various information about the selected toolchain. 4132 4133 4134 # Before we start detecting the toolchain executables, we might need some 4135 # special setup, e.g. additional paths etc. 4136 4137 4138 # Restore path, etc 4139 4140 4141 # Check if a compiler is of the toolchain type we expect, and save the version 4142 # information from it. If the compiler does not match the expected type, 4143 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4144 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4145 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4146 # 4147 # $1 = compiler to test (CC or CXX) 4148 # $2 = human readable name of compiler (C or C++) 4149 4150 4151 4152 # Try to locate the given C or C++ compiler in the path, or otherwise. 4153 # 4154 # $1 = compiler to test (CC or CXX) 4155 # $2 = human readable name of compiler (C or C++) 4156 # $3 = list of compiler names to search for 4157 4158 4159 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4160 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4161 # archiver (AR). Verify that the compilers are correct according to the 4162 # toolchain type. 4163 4164 4165 # Setup additional tools that is considered a part of the toolchain, but not the 4166 # core part. Many of these are highly platform-specific and do not exist, 4167 # and/or are not needed on all platforms. 4168 4169 4170 # Setup the build tools (i.e, the compiler and linker used to build programs 4171 # that should be run on the build platform, not the target platform, as a build 4172 # helper). Since the non-cross-compile case uses the normal, target compilers 4173 # for this, we can only do this after these have been setup. 4174 4175 4176 # Setup legacy variables that are still needed as alternative ways to refer to 4177 # parts of the toolchain. 4178 4179 4180 # Do some additional checks on the detected tools. 4181 4182 4183 # Setup the JTReg Regression Test Harness. 4184 4185 4186 4187 # 4188 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4189 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4190 # 4191 # This code is free software; you can redistribute it and/or modify it 4192 # under the terms of the GNU General Public License version 2 only, as 4193 # published by the Free Software Foundation. Oracle designates this 4194 # particular file as subject to the "Classpath" exception as provided 4195 # by Oracle in the LICENSE file that accompanied this code. 4196 # 4197 # This code is distributed in the hope that it will be useful, but WITHOUT 4198 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4199 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4200 # version 2 for more details (a copy is included in the LICENSE file that 4201 # accompanied this code). 4202 # 4203 # You should have received a copy of the GNU General Public License version 4204 # 2 along with this work; if not, write to the Free Software Foundation, 4205 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4206 # 4207 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4208 # or visit www.oracle.com if you need additional information or have any 4209 # questions. 4210 # 4211 4212 4213 4214 4215 4216 4217 4218 # Check if the VS env variables were setup prior to running configure. 4219 # If not, then find vcvarsall.bat and run it automatically, and integrate 4220 # the set env variables into the spec file. 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 # This line needs to be here, verbatim, after all includes and the dummy hook 4233 # definitions. It is replaced with custom functionality when building 4234 # custom sources. 4235 #CUSTOM_AUTOCONF_INCLUDE 4236 4237 # Do not change or remove the following line, it is needed for consistency checks: 4238 DATE_WHEN_GENERATED=1523633263 4239 4240 ############################################################################### 4241 # 4242 # Initialization / Boot-strapping 4243 # 4244 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4245 # thus it jumps back and forth, each time gaining something needed later on. 4246 # 4247 ############################################################################### 4248 4249 # If we are requested to print additional help, do that and then exit. 4250 # This must be the very first call. 4251 4252 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4253 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4254 $PRINTF "Which are valid to use depends on the build platform.\n" 4255 for toolchain in $VALID_TOOLCHAINS_all; do 4256 # Use indirect variable referencing 4257 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4258 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4259 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4260 done 4261 4262 # And now exit directly 4263 exit 0 4264 fi 4265 4266 4267 # Basic initialization that must happen first of all in the normal process. 4268 4269 # Save the original command line. This is passed to us by the wrapper configure script. 4270 4271 DATE_WHEN_CONFIGURED=`LANG=C date` 4272 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4274 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4275 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4276 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4277 4278 4279 # Start with tools that do not need have cross compilation support 4280 # and can be expected to be found in the default PATH. These tools are 4281 # used by configure. Nor are these tools expected to be found in the 4282 # devkit from the builddeps server either, since they are 4283 # needed to download the devkit. 4284 4285 # First are all the simple required tools. 4286 4287 4288 4289 # Publish this variable in the help. 4290 4291 4292 if test "x$BASENAME" = x; then 4293 # The variable is not set by user, try to locate tool using the code snippet 4294 for ac_prog in basename 4295 do 4296 # Extract the first word of "$ac_prog", so it can be a program name with args. 4297 set dummy $ac_prog; ac_word=$2 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4299 $as_echo_n "checking for $ac_word... " >&6; } 4300 if ${ac_cv_path_BASENAME+:} false; then : 4301 $as_echo_n "(cached) " >&6 4302 else 4303 case $BASENAME in 4304 [\\/]* | ?:[\\/]*) 4305 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4306 ;; 4307 *) 4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4309 for as_dir in $PATH 4310 do 4311 IFS=$as_save_IFS 4312 test -z "$as_dir" && as_dir=. 4313 for ac_exec_ext in '' $ac_executable_extensions; do 4314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4315 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4317 break 2 4318 fi 4319 done 4320 done 4321 IFS=$as_save_IFS 4322 4323 ;; 4324 esac 4325 fi 4326 BASENAME=$ac_cv_path_BASENAME 4327 if test -n "$BASENAME"; then 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4329 $as_echo "$BASENAME" >&6; } 4330 else 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332 $as_echo "no" >&6; } 4333 fi 4334 4335 4336 test -n "$BASENAME" && break 4337 done 4338 4339 else 4340 # The variable is set, but is it from the command line or the environment? 4341 4342 # Try to remove the string !BASENAME! from our list. 4343 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4344 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4345 # If it failed, the variable was not from the command line. Ignore it, 4346 # but warn the user (except for BASH, which is always set by the calling BASH). 4347 if test "xBASENAME" != xBASH; then 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4349 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4350 fi 4351 # Try to locate tool using the code snippet 4352 for ac_prog in basename 4353 do 4354 # Extract the first word of "$ac_prog", so it can be a program name with args. 4355 set dummy $ac_prog; ac_word=$2 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4357 $as_echo_n "checking for $ac_word... " >&6; } 4358 if ${ac_cv_path_BASENAME+:} false; then : 4359 $as_echo_n "(cached) " >&6 4360 else 4361 case $BASENAME in 4362 [\\/]* | ?:[\\/]*) 4363 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4364 ;; 4365 *) 4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4367 for as_dir in $PATH 4368 do 4369 IFS=$as_save_IFS 4370 test -z "$as_dir" && as_dir=. 4371 for ac_exec_ext in '' $ac_executable_extensions; do 4372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4373 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4375 break 2 4376 fi 4377 done 4378 done 4379 IFS=$as_save_IFS 4380 4381 ;; 4382 esac 4383 fi 4384 BASENAME=$ac_cv_path_BASENAME 4385 if test -n "$BASENAME"; then 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4387 $as_echo "$BASENAME" >&6; } 4388 else 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4390 $as_echo "no" >&6; } 4391 fi 4392 4393 4394 test -n "$BASENAME" && break 4395 done 4396 4397 else 4398 # If it succeeded, then it was overridden by the user. We will use it 4399 # for the tool. 4400 4401 # First remove it from the list of overridden variables, so we can test 4402 # for unknown variables in the end. 4403 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4404 4405 # Check if the provided tool contains a complete path. 4406 tool_specified="$BASENAME" 4407 tool_basename="${tool_specified##*/}" 4408 if test "x$tool_basename" = "x$tool_specified"; then 4409 # A command without a complete path is provided, search $PATH. 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4411 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4412 # Extract the first word of "$tool_basename", so it can be a program name with args. 4413 set dummy $tool_basename; ac_word=$2 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4415 $as_echo_n "checking for $ac_word... " >&6; } 4416 if ${ac_cv_path_BASENAME+:} false; then : 4417 $as_echo_n "(cached) " >&6 4418 else 4419 case $BASENAME in 4420 [\\/]* | ?:[\\/]*) 4421 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4422 ;; 4423 *) 4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4425 for as_dir in $PATH 4426 do 4427 IFS=$as_save_IFS 4428 test -z "$as_dir" && as_dir=. 4429 for ac_exec_ext in '' $ac_executable_extensions; do 4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4431 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4433 break 2 4434 fi 4435 done 4436 done 4437 IFS=$as_save_IFS 4438 4439 ;; 4440 esac 4441 fi 4442 BASENAME=$ac_cv_path_BASENAME 4443 if test -n "$BASENAME"; then 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4445 $as_echo "$BASENAME" >&6; } 4446 else 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4448 $as_echo "no" >&6; } 4449 fi 4450 4451 4452 if test "x$BASENAME" = x; then 4453 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4454 fi 4455 else 4456 # Otherwise we believe it is a complete path. Use it as it is. 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4458 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4460 $as_echo_n "checking for BASENAME... " >&6; } 4461 if test ! -x "$tool_specified"; then 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4463 $as_echo "not found" >&6; } 4464 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4465 fi 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4467 $as_echo "$tool_specified" >&6; } 4468 fi 4469 fi 4470 fi 4471 4472 4473 4474 if test "x$BASENAME" = x; then 4475 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4476 fi 4477 4478 4479 4480 4481 4482 # Publish this variable in the help. 4483 4484 4485 if test "x$BASH" = x; then 4486 # The variable is not set by user, try to locate tool using the code snippet 4487 for ac_prog in bash 4488 do 4489 # Extract the first word of "$ac_prog", so it can be a program name with args. 4490 set dummy $ac_prog; ac_word=$2 4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4492 $as_echo_n "checking for $ac_word... " >&6; } 4493 if ${ac_cv_path_BASH+:} false; then : 4494 $as_echo_n "(cached) " >&6 4495 else 4496 case $BASH in 4497 [\\/]* | ?:[\\/]*) 4498 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4499 ;; 4500 *) 4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4502 for as_dir in $PATH 4503 do 4504 IFS=$as_save_IFS 4505 test -z "$as_dir" && as_dir=. 4506 for ac_exec_ext in '' $ac_executable_extensions; do 4507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4508 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4510 break 2 4511 fi 4512 done 4513 done 4514 IFS=$as_save_IFS 4515 4516 ;; 4517 esac 4518 fi 4519 BASH=$ac_cv_path_BASH 4520 if test -n "$BASH"; then 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4522 $as_echo "$BASH" >&6; } 4523 else 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4525 $as_echo "no" >&6; } 4526 fi 4527 4528 4529 test -n "$BASH" && break 4530 done 4531 4532 else 4533 # The variable is set, but is it from the command line or the environment? 4534 4535 # Try to remove the string !BASH! from our list. 4536 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4537 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4538 # If it failed, the variable was not from the command line. Ignore it, 4539 # but warn the user (except for BASH, which is always set by the calling BASH). 4540 if test "xBASH" != xBASH; then 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4542 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4543 fi 4544 # Try to locate tool using the code snippet 4545 for ac_prog in bash 4546 do 4547 # Extract the first word of "$ac_prog", so it can be a program name with args. 4548 set dummy $ac_prog; ac_word=$2 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4550 $as_echo_n "checking for $ac_word... " >&6; } 4551 if ${ac_cv_path_BASH+:} false; then : 4552 $as_echo_n "(cached) " >&6 4553 else 4554 case $BASH in 4555 [\\/]* | ?:[\\/]*) 4556 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4557 ;; 4558 *) 4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4560 for as_dir in $PATH 4561 do 4562 IFS=$as_save_IFS 4563 test -z "$as_dir" && as_dir=. 4564 for ac_exec_ext in '' $ac_executable_extensions; do 4565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4566 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4568 break 2 4569 fi 4570 done 4571 done 4572 IFS=$as_save_IFS 4573 4574 ;; 4575 esac 4576 fi 4577 BASH=$ac_cv_path_BASH 4578 if test -n "$BASH"; then 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4580 $as_echo "$BASH" >&6; } 4581 else 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4583 $as_echo "no" >&6; } 4584 fi 4585 4586 4587 test -n "$BASH" && break 4588 done 4589 4590 else 4591 # If it succeeded, then it was overridden by the user. We will use it 4592 # for the tool. 4593 4594 # First remove it from the list of overridden variables, so we can test 4595 # for unknown variables in the end. 4596 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4597 4598 # Check if the provided tool contains a complete path. 4599 tool_specified="$BASH" 4600 tool_basename="${tool_specified##*/}" 4601 if test "x$tool_basename" = "x$tool_specified"; then 4602 # A command without a complete path is provided, search $PATH. 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4604 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4605 # Extract the first word of "$tool_basename", so it can be a program name with args. 4606 set dummy $tool_basename; ac_word=$2 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4608 $as_echo_n "checking for $ac_word... " >&6; } 4609 if ${ac_cv_path_BASH+:} false; then : 4610 $as_echo_n "(cached) " >&6 4611 else 4612 case $BASH in 4613 [\\/]* | ?:[\\/]*) 4614 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4615 ;; 4616 *) 4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4618 for as_dir in $PATH 4619 do 4620 IFS=$as_save_IFS 4621 test -z "$as_dir" && as_dir=. 4622 for ac_exec_ext in '' $ac_executable_extensions; do 4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4624 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4626 break 2 4627 fi 4628 done 4629 done 4630 IFS=$as_save_IFS 4631 4632 ;; 4633 esac 4634 fi 4635 BASH=$ac_cv_path_BASH 4636 if test -n "$BASH"; then 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4638 $as_echo "$BASH" >&6; } 4639 else 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4641 $as_echo "no" >&6; } 4642 fi 4643 4644 4645 if test "x$BASH" = x; then 4646 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4647 fi 4648 else 4649 # Otherwise we believe it is a complete path. Use it as it is. 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4651 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4653 $as_echo_n "checking for BASH... " >&6; } 4654 if test ! -x "$tool_specified"; then 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4656 $as_echo "not found" >&6; } 4657 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4658 fi 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4660 $as_echo "$tool_specified" >&6; } 4661 fi 4662 fi 4663 fi 4664 4665 4666 4667 if test "x$BASH" = x; then 4668 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4669 fi 4670 4671 4672 4673 4674 4675 # Publish this variable in the help. 4676 4677 4678 if test "x$CAT" = x; then 4679 # The variable is not set by user, try to locate tool using the code snippet 4680 for ac_prog in cat 4681 do 4682 # Extract the first word of "$ac_prog", so it can be a program name with args. 4683 set dummy $ac_prog; ac_word=$2 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4685 $as_echo_n "checking for $ac_word... " >&6; } 4686 if ${ac_cv_path_CAT+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688 else 4689 case $CAT in 4690 [\\/]* | ?:[\\/]*) 4691 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4692 ;; 4693 *) 4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4695 for as_dir in $PATH 4696 do 4697 IFS=$as_save_IFS 4698 test -z "$as_dir" && as_dir=. 4699 for ac_exec_ext in '' $ac_executable_extensions; do 4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4701 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4703 break 2 4704 fi 4705 done 4706 done 4707 IFS=$as_save_IFS 4708 4709 ;; 4710 esac 4711 fi 4712 CAT=$ac_cv_path_CAT 4713 if test -n "$CAT"; then 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4715 $as_echo "$CAT" >&6; } 4716 else 4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4718 $as_echo "no" >&6; } 4719 fi 4720 4721 4722 test -n "$CAT" && break 4723 done 4724 4725 else 4726 # The variable is set, but is it from the command line or the environment? 4727 4728 # Try to remove the string !CAT! from our list. 4729 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4730 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4731 # If it failed, the variable was not from the command line. Ignore it, 4732 # but warn the user (except for BASH, which is always set by the calling BASH). 4733 if test "xCAT" != xBASH; then 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4735 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4736 fi 4737 # Try to locate tool using the code snippet 4738 for ac_prog in cat 4739 do 4740 # Extract the first word of "$ac_prog", so it can be a program name with args. 4741 set dummy $ac_prog; ac_word=$2 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4743 $as_echo_n "checking for $ac_word... " >&6; } 4744 if ${ac_cv_path_CAT+:} false; then : 4745 $as_echo_n "(cached) " >&6 4746 else 4747 case $CAT in 4748 [\\/]* | ?:[\\/]*) 4749 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4750 ;; 4751 *) 4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4753 for as_dir in $PATH 4754 do 4755 IFS=$as_save_IFS 4756 test -z "$as_dir" && as_dir=. 4757 for ac_exec_ext in '' $ac_executable_extensions; do 4758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4759 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4761 break 2 4762 fi 4763 done 4764 done 4765 IFS=$as_save_IFS 4766 4767 ;; 4768 esac 4769 fi 4770 CAT=$ac_cv_path_CAT 4771 if test -n "$CAT"; then 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4773 $as_echo "$CAT" >&6; } 4774 else 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4776 $as_echo "no" >&6; } 4777 fi 4778 4779 4780 test -n "$CAT" && break 4781 done 4782 4783 else 4784 # If it succeeded, then it was overridden by the user. We will use it 4785 # for the tool. 4786 4787 # First remove it from the list of overridden variables, so we can test 4788 # for unknown variables in the end. 4789 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4790 4791 # Check if the provided tool contains a complete path. 4792 tool_specified="$CAT" 4793 tool_basename="${tool_specified##*/}" 4794 if test "x$tool_basename" = "x$tool_specified"; then 4795 # A command without a complete path is provided, search $PATH. 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4797 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4798 # Extract the first word of "$tool_basename", so it can be a program name with args. 4799 set dummy $tool_basename; ac_word=$2 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4801 $as_echo_n "checking for $ac_word... " >&6; } 4802 if ${ac_cv_path_CAT+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804 else 4805 case $CAT in 4806 [\\/]* | ?:[\\/]*) 4807 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4808 ;; 4809 *) 4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4811 for as_dir in $PATH 4812 do 4813 IFS=$as_save_IFS 4814 test -z "$as_dir" && as_dir=. 4815 for ac_exec_ext in '' $ac_executable_extensions; do 4816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4817 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4819 break 2 4820 fi 4821 done 4822 done 4823 IFS=$as_save_IFS 4824 4825 ;; 4826 esac 4827 fi 4828 CAT=$ac_cv_path_CAT 4829 if test -n "$CAT"; then 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4831 $as_echo "$CAT" >&6; } 4832 else 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4834 $as_echo "no" >&6; } 4835 fi 4836 4837 4838 if test "x$CAT" = x; then 4839 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4840 fi 4841 else 4842 # Otherwise we believe it is a complete path. Use it as it is. 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4844 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4846 $as_echo_n "checking for CAT... " >&6; } 4847 if test ! -x "$tool_specified"; then 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4849 $as_echo "not found" >&6; } 4850 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4851 fi 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4853 $as_echo "$tool_specified" >&6; } 4854 fi 4855 fi 4856 fi 4857 4858 4859 4860 if test "x$CAT" = x; then 4861 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4862 fi 4863 4864 4865 4866 4867 4868 # Publish this variable in the help. 4869 4870 4871 if test "x$CHMOD" = x; then 4872 # The variable is not set by user, try to locate tool using the code snippet 4873 for ac_prog in chmod 4874 do 4875 # Extract the first word of "$ac_prog", so it can be a program name with args. 4876 set dummy $ac_prog; ac_word=$2 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4878 $as_echo_n "checking for $ac_word... " >&6; } 4879 if ${ac_cv_path_CHMOD+:} false; then : 4880 $as_echo_n "(cached) " >&6 4881 else 4882 case $CHMOD in 4883 [\\/]* | ?:[\\/]*) 4884 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4885 ;; 4886 *) 4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4888 for as_dir in $PATH 4889 do 4890 IFS=$as_save_IFS 4891 test -z "$as_dir" && as_dir=. 4892 for ac_exec_ext in '' $ac_executable_extensions; do 4893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4894 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4896 break 2 4897 fi 4898 done 4899 done 4900 IFS=$as_save_IFS 4901 4902 ;; 4903 esac 4904 fi 4905 CHMOD=$ac_cv_path_CHMOD 4906 if test -n "$CHMOD"; then 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4908 $as_echo "$CHMOD" >&6; } 4909 else 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4911 $as_echo "no" >&6; } 4912 fi 4913 4914 4915 test -n "$CHMOD" && break 4916 done 4917 4918 else 4919 # The variable is set, but is it from the command line or the environment? 4920 4921 # Try to remove the string !CHMOD! from our list. 4922 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 4923 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4924 # If it failed, the variable was not from the command line. Ignore it, 4925 # but warn the user (except for BASH, which is always set by the calling BASH). 4926 if test "xCHMOD" != xBASH; then 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 4928 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 4929 fi 4930 # Try to locate tool using the code snippet 4931 for ac_prog in chmod 4932 do 4933 # Extract the first word of "$ac_prog", so it can be a program name with args. 4934 set dummy $ac_prog; ac_word=$2 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4936 $as_echo_n "checking for $ac_word... " >&6; } 4937 if ${ac_cv_path_CHMOD+:} false; then : 4938 $as_echo_n "(cached) " >&6 4939 else 4940 case $CHMOD in 4941 [\\/]* | ?:[\\/]*) 4942 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4943 ;; 4944 *) 4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4946 for as_dir in $PATH 4947 do 4948 IFS=$as_save_IFS 4949 test -z "$as_dir" && as_dir=. 4950 for ac_exec_ext in '' $ac_executable_extensions; do 4951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4952 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4954 break 2 4955 fi 4956 done 4957 done 4958 IFS=$as_save_IFS 4959 4960 ;; 4961 esac 4962 fi 4963 CHMOD=$ac_cv_path_CHMOD 4964 if test -n "$CHMOD"; then 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4966 $as_echo "$CHMOD" >&6; } 4967 else 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4969 $as_echo "no" >&6; } 4970 fi 4971 4972 4973 test -n "$CHMOD" && break 4974 done 4975 4976 else 4977 # If it succeeded, then it was overridden by the user. We will use it 4978 # for the tool. 4979 4980 # First remove it from the list of overridden variables, so we can test 4981 # for unknown variables in the end. 4982 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4983 4984 # Check if the provided tool contains a complete path. 4985 tool_specified="$CHMOD" 4986 tool_basename="${tool_specified##*/}" 4987 if test "x$tool_basename" = "x$tool_specified"; then 4988 # A command without a complete path is provided, search $PATH. 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 4990 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 4991 # Extract the first word of "$tool_basename", so it can be a program name with args. 4992 set dummy $tool_basename; ac_word=$2 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4994 $as_echo_n "checking for $ac_word... " >&6; } 4995 if ${ac_cv_path_CHMOD+:} false; then : 4996 $as_echo_n "(cached) " >&6 4997 else 4998 case $CHMOD in 4999 [\\/]* | ?:[\\/]*) 5000 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5001 ;; 5002 *) 5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5004 for as_dir in $PATH 5005 do 5006 IFS=$as_save_IFS 5007 test -z "$as_dir" && as_dir=. 5008 for ac_exec_ext in '' $ac_executable_extensions; do 5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5010 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5012 break 2 5013 fi 5014 done 5015 done 5016 IFS=$as_save_IFS 5017 5018 ;; 5019 esac 5020 fi 5021 CHMOD=$ac_cv_path_CHMOD 5022 if test -n "$CHMOD"; then 5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5024 $as_echo "$CHMOD" >&6; } 5025 else 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5027 $as_echo "no" >&6; } 5028 fi 5029 5030 5031 if test "x$CHMOD" = x; then 5032 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5033 fi 5034 else 5035 # Otherwise we believe it is a complete path. Use it as it is. 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5037 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5039 $as_echo_n "checking for CHMOD... " >&6; } 5040 if test ! -x "$tool_specified"; then 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5042 $as_echo "not found" >&6; } 5043 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5044 fi 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5046 $as_echo "$tool_specified" >&6; } 5047 fi 5048 fi 5049 fi 5050 5051 5052 5053 if test "x$CHMOD" = x; then 5054 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5055 fi 5056 5057 5058 5059 5060 5061 # Publish this variable in the help. 5062 5063 5064 if test "x$CMP" = x; then 5065 # The variable is not set by user, try to locate tool using the code snippet 5066 for ac_prog in cmp 5067 do 5068 # Extract the first word of "$ac_prog", so it can be a program name with args. 5069 set dummy $ac_prog; ac_word=$2 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5071 $as_echo_n "checking for $ac_word... " >&6; } 5072 if ${ac_cv_path_CMP+:} false; then : 5073 $as_echo_n "(cached) " >&6 5074 else 5075 case $CMP in 5076 [\\/]* | ?:[\\/]*) 5077 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5078 ;; 5079 *) 5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5081 for as_dir in $PATH 5082 do 5083 IFS=$as_save_IFS 5084 test -z "$as_dir" && as_dir=. 5085 for ac_exec_ext in '' $ac_executable_extensions; do 5086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5087 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5089 break 2 5090 fi 5091 done 5092 done 5093 IFS=$as_save_IFS 5094 5095 ;; 5096 esac 5097 fi 5098 CMP=$ac_cv_path_CMP 5099 if test -n "$CMP"; then 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5101 $as_echo "$CMP" >&6; } 5102 else 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5104 $as_echo "no" >&6; } 5105 fi 5106 5107 5108 test -n "$CMP" && break 5109 done 5110 5111 else 5112 # The variable is set, but is it from the command line or the environment? 5113 5114 # Try to remove the string !CMP! from our list. 5115 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5116 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5117 # If it failed, the variable was not from the command line. Ignore it, 5118 # but warn the user (except for BASH, which is always set by the calling BASH). 5119 if test "xCMP" != xBASH; then 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5121 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5122 fi 5123 # Try to locate tool using the code snippet 5124 for ac_prog in cmp 5125 do 5126 # Extract the first word of "$ac_prog", so it can be a program name with args. 5127 set dummy $ac_prog; ac_word=$2 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5129 $as_echo_n "checking for $ac_word... " >&6; } 5130 if ${ac_cv_path_CMP+:} false; then : 5131 $as_echo_n "(cached) " >&6 5132 else 5133 case $CMP in 5134 [\\/]* | ?:[\\/]*) 5135 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5136 ;; 5137 *) 5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139 for as_dir in $PATH 5140 do 5141 IFS=$as_save_IFS 5142 test -z "$as_dir" && as_dir=. 5143 for ac_exec_ext in '' $ac_executable_extensions; do 5144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5145 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5147 break 2 5148 fi 5149 done 5150 done 5151 IFS=$as_save_IFS 5152 5153 ;; 5154 esac 5155 fi 5156 CMP=$ac_cv_path_CMP 5157 if test -n "$CMP"; then 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5159 $as_echo "$CMP" >&6; } 5160 else 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5162 $as_echo "no" >&6; } 5163 fi 5164 5165 5166 test -n "$CMP" && break 5167 done 5168 5169 else 5170 # If it succeeded, then it was overridden by the user. We will use it 5171 # for the tool. 5172 5173 # First remove it from the list of overridden variables, so we can test 5174 # for unknown variables in the end. 5175 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5176 5177 # Check if the provided tool contains a complete path. 5178 tool_specified="$CMP" 5179 tool_basename="${tool_specified##*/}" 5180 if test "x$tool_basename" = "x$tool_specified"; then 5181 # A command without a complete path is provided, search $PATH. 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5183 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5184 # Extract the first word of "$tool_basename", so it can be a program name with args. 5185 set dummy $tool_basename; ac_word=$2 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5187 $as_echo_n "checking for $ac_word... " >&6; } 5188 if ${ac_cv_path_CMP+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190 else 5191 case $CMP in 5192 [\\/]* | ?:[\\/]*) 5193 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5194 ;; 5195 *) 5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5197 for as_dir in $PATH 5198 do 5199 IFS=$as_save_IFS 5200 test -z "$as_dir" && as_dir=. 5201 for ac_exec_ext in '' $ac_executable_extensions; do 5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5203 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5205 break 2 5206 fi 5207 done 5208 done 5209 IFS=$as_save_IFS 5210 5211 ;; 5212 esac 5213 fi 5214 CMP=$ac_cv_path_CMP 5215 if test -n "$CMP"; then 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5217 $as_echo "$CMP" >&6; } 5218 else 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5220 $as_echo "no" >&6; } 5221 fi 5222 5223 5224 if test "x$CMP" = x; then 5225 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5226 fi 5227 else 5228 # Otherwise we believe it is a complete path. Use it as it is. 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5230 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5232 $as_echo_n "checking for CMP... " >&6; } 5233 if test ! -x "$tool_specified"; then 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5235 $as_echo "not found" >&6; } 5236 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5237 fi 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5239 $as_echo "$tool_specified" >&6; } 5240 fi 5241 fi 5242 fi 5243 5244 5245 5246 if test "x$CMP" = x; then 5247 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5248 fi 5249 5250 5251 5252 5253 5254 # Publish this variable in the help. 5255 5256 5257 if test "x$COMM" = x; then 5258 # The variable is not set by user, try to locate tool using the code snippet 5259 for ac_prog in comm 5260 do 5261 # Extract the first word of "$ac_prog", so it can be a program name with args. 5262 set dummy $ac_prog; ac_word=$2 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5264 $as_echo_n "checking for $ac_word... " >&6; } 5265 if ${ac_cv_path_COMM+:} false; then : 5266 $as_echo_n "(cached) " >&6 5267 else 5268 case $COMM in 5269 [\\/]* | ?:[\\/]*) 5270 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5271 ;; 5272 *) 5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5274 for as_dir in $PATH 5275 do 5276 IFS=$as_save_IFS 5277 test -z "$as_dir" && as_dir=. 5278 for ac_exec_ext in '' $ac_executable_extensions; do 5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5280 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5282 break 2 5283 fi 5284 done 5285 done 5286 IFS=$as_save_IFS 5287 5288 ;; 5289 esac 5290 fi 5291 COMM=$ac_cv_path_COMM 5292 if test -n "$COMM"; then 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5294 $as_echo "$COMM" >&6; } 5295 else 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5297 $as_echo "no" >&6; } 5298 fi 5299 5300 5301 test -n "$COMM" && break 5302 done 5303 5304 else 5305 # The variable is set, but is it from the command line or the environment? 5306 5307 # Try to remove the string !COMM! from our list. 5308 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5309 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5310 # If it failed, the variable was not from the command line. Ignore it, 5311 # but warn the user (except for BASH, which is always set by the calling BASH). 5312 if test "xCOMM" != xBASH; then 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5314 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5315 fi 5316 # Try to locate tool using the code snippet 5317 for ac_prog in comm 5318 do 5319 # Extract the first word of "$ac_prog", so it can be a program name with args. 5320 set dummy $ac_prog; ac_word=$2 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5322 $as_echo_n "checking for $ac_word... " >&6; } 5323 if ${ac_cv_path_COMM+:} false; then : 5324 $as_echo_n "(cached) " >&6 5325 else 5326 case $COMM in 5327 [\\/]* | ?:[\\/]*) 5328 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5329 ;; 5330 *) 5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5332 for as_dir in $PATH 5333 do 5334 IFS=$as_save_IFS 5335 test -z "$as_dir" && as_dir=. 5336 for ac_exec_ext in '' $ac_executable_extensions; do 5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5338 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5340 break 2 5341 fi 5342 done 5343 done 5344 IFS=$as_save_IFS 5345 5346 ;; 5347 esac 5348 fi 5349 COMM=$ac_cv_path_COMM 5350 if test -n "$COMM"; then 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5352 $as_echo "$COMM" >&6; } 5353 else 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5355 $as_echo "no" >&6; } 5356 fi 5357 5358 5359 test -n "$COMM" && break 5360 done 5361 5362 else 5363 # If it succeeded, then it was overridden by the user. We will use it 5364 # for the tool. 5365 5366 # First remove it from the list of overridden variables, so we can test 5367 # for unknown variables in the end. 5368 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5369 5370 # Check if the provided tool contains a complete path. 5371 tool_specified="$COMM" 5372 tool_basename="${tool_specified##*/}" 5373 if test "x$tool_basename" = "x$tool_specified"; then 5374 # A command without a complete path is provided, search $PATH. 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5376 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5377 # Extract the first word of "$tool_basename", so it can be a program name with args. 5378 set dummy $tool_basename; ac_word=$2 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5380 $as_echo_n "checking for $ac_word... " >&6; } 5381 if ${ac_cv_path_COMM+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383 else 5384 case $COMM in 5385 [\\/]* | ?:[\\/]*) 5386 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5387 ;; 5388 *) 5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5390 for as_dir in $PATH 5391 do 5392 IFS=$as_save_IFS 5393 test -z "$as_dir" && as_dir=. 5394 for ac_exec_ext in '' $ac_executable_extensions; do 5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5396 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5398 break 2 5399 fi 5400 done 5401 done 5402 IFS=$as_save_IFS 5403 5404 ;; 5405 esac 5406 fi 5407 COMM=$ac_cv_path_COMM 5408 if test -n "$COMM"; then 5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5410 $as_echo "$COMM" >&6; } 5411 else 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5413 $as_echo "no" >&6; } 5414 fi 5415 5416 5417 if test "x$COMM" = x; then 5418 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5419 fi 5420 else 5421 # Otherwise we believe it is a complete path. Use it as it is. 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5423 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5425 $as_echo_n "checking for COMM... " >&6; } 5426 if test ! -x "$tool_specified"; then 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5428 $as_echo "not found" >&6; } 5429 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5430 fi 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5432 $as_echo "$tool_specified" >&6; } 5433 fi 5434 fi 5435 fi 5436 5437 5438 5439 if test "x$COMM" = x; then 5440 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5441 fi 5442 5443 5444 5445 5446 5447 # Publish this variable in the help. 5448 5449 5450 if test "x$CP" = x; then 5451 # The variable is not set by user, try to locate tool using the code snippet 5452 for ac_prog in cp 5453 do 5454 # Extract the first word of "$ac_prog", so it can be a program name with args. 5455 set dummy $ac_prog; ac_word=$2 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5457 $as_echo_n "checking for $ac_word... " >&6; } 5458 if ${ac_cv_path_CP+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460 else 5461 case $CP in 5462 [\\/]* | ?:[\\/]*) 5463 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5464 ;; 5465 *) 5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5467 for as_dir in $PATH 5468 do 5469 IFS=$as_save_IFS 5470 test -z "$as_dir" && as_dir=. 5471 for ac_exec_ext in '' $ac_executable_extensions; do 5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5473 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5475 break 2 5476 fi 5477 done 5478 done 5479 IFS=$as_save_IFS 5480 5481 ;; 5482 esac 5483 fi 5484 CP=$ac_cv_path_CP 5485 if test -n "$CP"; then 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5487 $as_echo "$CP" >&6; } 5488 else 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5490 $as_echo "no" >&6; } 5491 fi 5492 5493 5494 test -n "$CP" && break 5495 done 5496 5497 else 5498 # The variable is set, but is it from the command line or the environment? 5499 5500 # Try to remove the string !CP! from our list. 5501 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5502 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5503 # If it failed, the variable was not from the command line. Ignore it, 5504 # but warn the user (except for BASH, which is always set by the calling BASH). 5505 if test "xCP" != xBASH; then 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5507 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5508 fi 5509 # Try to locate tool using the code snippet 5510 for ac_prog in cp 5511 do 5512 # Extract the first word of "$ac_prog", so it can be a program name with args. 5513 set dummy $ac_prog; ac_word=$2 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5515 $as_echo_n "checking for $ac_word... " >&6; } 5516 if ${ac_cv_path_CP+:} false; then : 5517 $as_echo_n "(cached) " >&6 5518 else 5519 case $CP in 5520 [\\/]* | ?:[\\/]*) 5521 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5522 ;; 5523 *) 5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5525 for as_dir in $PATH 5526 do 5527 IFS=$as_save_IFS 5528 test -z "$as_dir" && as_dir=. 5529 for ac_exec_ext in '' $ac_executable_extensions; do 5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5531 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5533 break 2 5534 fi 5535 done 5536 done 5537 IFS=$as_save_IFS 5538 5539 ;; 5540 esac 5541 fi 5542 CP=$ac_cv_path_CP 5543 if test -n "$CP"; then 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5545 $as_echo "$CP" >&6; } 5546 else 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5548 $as_echo "no" >&6; } 5549 fi 5550 5551 5552 test -n "$CP" && break 5553 done 5554 5555 else 5556 # If it succeeded, then it was overridden by the user. We will use it 5557 # for the tool. 5558 5559 # First remove it from the list of overridden variables, so we can test 5560 # for unknown variables in the end. 5561 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5562 5563 # Check if the provided tool contains a complete path. 5564 tool_specified="$CP" 5565 tool_basename="${tool_specified##*/}" 5566 if test "x$tool_basename" = "x$tool_specified"; then 5567 # A command without a complete path is provided, search $PATH. 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5569 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5570 # Extract the first word of "$tool_basename", so it can be a program name with args. 5571 set dummy $tool_basename; ac_word=$2 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5573 $as_echo_n "checking for $ac_word... " >&6; } 5574 if ${ac_cv_path_CP+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576 else 5577 case $CP in 5578 [\\/]* | ?:[\\/]*) 5579 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5580 ;; 5581 *) 5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5583 for as_dir in $PATH 5584 do 5585 IFS=$as_save_IFS 5586 test -z "$as_dir" && as_dir=. 5587 for ac_exec_ext in '' $ac_executable_extensions; do 5588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5589 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5591 break 2 5592 fi 5593 done 5594 done 5595 IFS=$as_save_IFS 5596 5597 ;; 5598 esac 5599 fi 5600 CP=$ac_cv_path_CP 5601 if test -n "$CP"; then 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5603 $as_echo "$CP" >&6; } 5604 else 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5606 $as_echo "no" >&6; } 5607 fi 5608 5609 5610 if test "x$CP" = x; then 5611 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5612 fi 5613 else 5614 # Otherwise we believe it is a complete path. Use it as it is. 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5616 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5618 $as_echo_n "checking for CP... " >&6; } 5619 if test ! -x "$tool_specified"; then 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5621 $as_echo "not found" >&6; } 5622 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5623 fi 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5625 $as_echo "$tool_specified" >&6; } 5626 fi 5627 fi 5628 fi 5629 5630 5631 5632 if test "x$CP" = x; then 5633 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5634 fi 5635 5636 5637 5638 5639 5640 # Publish this variable in the help. 5641 5642 5643 if test "x$CPIO" = x; then 5644 # The variable is not set by user, try to locate tool using the code snippet 5645 for ac_prog in cpio 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_CPIO+:} false; then : 5652 $as_echo_n "(cached) " >&6 5653 else 5654 case $CPIO in 5655 [\\/]* | ?:[\\/]*) 5656 ac_cv_path_CPIO="$CPIO" # 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_CPIO="$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 CPIO=$ac_cv_path_CPIO 5678 if test -n "$CPIO"; then 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5680 $as_echo "$CPIO" >&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 "$CPIO" && break 5688 done 5689 5690 else 5691 # The variable is set, but is it from the command line or the environment? 5692 5693 # Try to remove the string !CPIO! from our list. 5694 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 5695 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5696 # If it failed, the variable was not from the command line. Ignore it, 5697 # but warn the user (except for BASH, which is always set by the calling BASH). 5698 if test "xCPIO" != xBASH; then 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 5700 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 5701 fi 5702 # Try to locate tool using the code snippet 5703 for ac_prog in cpio 5704 do 5705 # Extract the first word of "$ac_prog", so it can be a program name with args. 5706 set dummy $ac_prog; ac_word=$2 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5708 $as_echo_n "checking for $ac_word... " >&6; } 5709 if ${ac_cv_path_CPIO+:} false; then : 5710 $as_echo_n "(cached) " >&6 5711 else 5712 case $CPIO in 5713 [\\/]* | ?:[\\/]*) 5714 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5715 ;; 5716 *) 5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5718 for as_dir in $PATH 5719 do 5720 IFS=$as_save_IFS 5721 test -z "$as_dir" && as_dir=. 5722 for ac_exec_ext in '' $ac_executable_extensions; do 5723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5724 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5726 break 2 5727 fi 5728 done 5729 done 5730 IFS=$as_save_IFS 5731 5732 ;; 5733 esac 5734 fi 5735 CPIO=$ac_cv_path_CPIO 5736 if test -n "$CPIO"; then 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5738 $as_echo "$CPIO" >&6; } 5739 else 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5741 $as_echo "no" >&6; } 5742 fi 5743 5744 5745 test -n "$CPIO" && break 5746 done 5747 5748 else 5749 # If it succeeded, then it was overridden by the user. We will use it 5750 # for the tool. 5751 5752 # First remove it from the list of overridden variables, so we can test 5753 # for unknown variables in the end. 5754 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5755 5756 # Check if the provided tool contains a complete path. 5757 tool_specified="$CPIO" 5758 tool_basename="${tool_specified##*/}" 5759 if test "x$tool_basename" = "x$tool_specified"; then 5760 # A command without a complete path is provided, search $PATH. 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 5762 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 5763 # Extract the first word of "$tool_basename", so it can be a program name with args. 5764 set dummy $tool_basename; ac_word=$2 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5766 $as_echo_n "checking for $ac_word... " >&6; } 5767 if ${ac_cv_path_CPIO+:} false; then : 5768 $as_echo_n "(cached) " >&6 5769 else 5770 case $CPIO in 5771 [\\/]* | ?:[\\/]*) 5772 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5773 ;; 5774 *) 5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5776 for as_dir in $PATH 5777 do 5778 IFS=$as_save_IFS 5779 test -z "$as_dir" && as_dir=. 5780 for ac_exec_ext in '' $ac_executable_extensions; do 5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5782 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5784 break 2 5785 fi 5786 done 5787 done 5788 IFS=$as_save_IFS 5789 5790 ;; 5791 esac 5792 fi 5793 CPIO=$ac_cv_path_CPIO 5794 if test -n "$CPIO"; then 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5796 $as_echo "$CPIO" >&6; } 5797 else 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5799 $as_echo "no" >&6; } 5800 fi 5801 5802 5803 if test "x$CPIO" = x; then 5804 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5805 fi 5806 else 5807 # Otherwise we believe it is a complete path. Use it as it is. 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 5809 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 5811 $as_echo_n "checking for CPIO... " >&6; } 5812 if test ! -x "$tool_specified"; then 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5814 $as_echo "not found" >&6; } 5815 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 5816 fi 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5818 $as_echo "$tool_specified" >&6; } 5819 fi 5820 fi 5821 fi 5822 5823 5824 5825 if test "x$CPIO" = x; then 5826 as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5 5827 fi 5828 5829 5830 5831 5832 5833 # Publish this variable in the help. 5834 5835 5836 if test "x$CUT" = x; then 5837 # The variable is not set by user, try to locate tool using the code snippet 5838 for ac_prog in cut 5839 do 5840 # Extract the first word of "$ac_prog", so it can be a program name with args. 5841 set dummy $ac_prog; ac_word=$2 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5843 $as_echo_n "checking for $ac_word... " >&6; } 5844 if ${ac_cv_path_CUT+:} false; then : 5845 $as_echo_n "(cached) " >&6 5846 else 5847 case $CUT in 5848 [\\/]* | ?:[\\/]*) 5849 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5850 ;; 5851 *) 5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5853 for as_dir in $PATH 5854 do 5855 IFS=$as_save_IFS 5856 test -z "$as_dir" && as_dir=. 5857 for ac_exec_ext in '' $ac_executable_extensions; do 5858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5859 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5861 break 2 5862 fi 5863 done 5864 done 5865 IFS=$as_save_IFS 5866 5867 ;; 5868 esac 5869 fi 5870 CUT=$ac_cv_path_CUT 5871 if test -n "$CUT"; then 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5873 $as_echo "$CUT" >&6; } 5874 else 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5876 $as_echo "no" >&6; } 5877 fi 5878 5879 5880 test -n "$CUT" && break 5881 done 5882 5883 else 5884 # The variable is set, but is it from the command line or the environment? 5885 5886 # Try to remove the string !CUT! from our list. 5887 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5888 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5889 # If it failed, the variable was not from the command line. Ignore it, 5890 # but warn the user (except for BASH, which is always set by the calling BASH). 5891 if test "xCUT" != xBASH; then 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5893 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5894 fi 5895 # Try to locate tool using the code snippet 5896 for ac_prog in cut 5897 do 5898 # Extract the first word of "$ac_prog", so it can be a program name with args. 5899 set dummy $ac_prog; ac_word=$2 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5901 $as_echo_n "checking for $ac_word... " >&6; } 5902 if ${ac_cv_path_CUT+:} false; then : 5903 $as_echo_n "(cached) " >&6 5904 else 5905 case $CUT in 5906 [\\/]* | ?:[\\/]*) 5907 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5908 ;; 5909 *) 5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5911 for as_dir in $PATH 5912 do 5913 IFS=$as_save_IFS 5914 test -z "$as_dir" && as_dir=. 5915 for ac_exec_ext in '' $ac_executable_extensions; do 5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5917 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5919 break 2 5920 fi 5921 done 5922 done 5923 IFS=$as_save_IFS 5924 5925 ;; 5926 esac 5927 fi 5928 CUT=$ac_cv_path_CUT 5929 if test -n "$CUT"; then 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5931 $as_echo "$CUT" >&6; } 5932 else 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5934 $as_echo "no" >&6; } 5935 fi 5936 5937 5938 test -n "$CUT" && break 5939 done 5940 5941 else 5942 # If it succeeded, then it was overridden by the user. We will use it 5943 # for the tool. 5944 5945 # First remove it from the list of overridden variables, so we can test 5946 # for unknown variables in the end. 5947 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5948 5949 # Check if the provided tool contains a complete path. 5950 tool_specified="$CUT" 5951 tool_basename="${tool_specified##*/}" 5952 if test "x$tool_basename" = "x$tool_specified"; then 5953 # A command without a complete path is provided, search $PATH. 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5955 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5956 # Extract the first word of "$tool_basename", so it can be a program name with args. 5957 set dummy $tool_basename; ac_word=$2 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5959 $as_echo_n "checking for $ac_word... " >&6; } 5960 if ${ac_cv_path_CUT+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962 else 5963 case $CUT in 5964 [\\/]* | ?:[\\/]*) 5965 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5966 ;; 5967 *) 5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5969 for as_dir in $PATH 5970 do 5971 IFS=$as_save_IFS 5972 test -z "$as_dir" && as_dir=. 5973 for ac_exec_ext in '' $ac_executable_extensions; do 5974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5975 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5977 break 2 5978 fi 5979 done 5980 done 5981 IFS=$as_save_IFS 5982 5983 ;; 5984 esac 5985 fi 5986 CUT=$ac_cv_path_CUT 5987 if test -n "$CUT"; then 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5989 $as_echo "$CUT" >&6; } 5990 else 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5992 $as_echo "no" >&6; } 5993 fi 5994 5995 5996 if test "x$CUT" = x; then 5997 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5998 fi 5999 else 6000 # Otherwise we believe it is a complete path. Use it as it is. 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6002 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6004 $as_echo_n "checking for CUT... " >&6; } 6005 if test ! -x "$tool_specified"; then 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6007 $as_echo "not found" >&6; } 6008 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6009 fi 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6011 $as_echo "$tool_specified" >&6; } 6012 fi 6013 fi 6014 fi 6015 6016 6017 6018 if test "x$CUT" = x; then 6019 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6020 fi 6021 6022 6023 6024 6025 6026 # Publish this variable in the help. 6027 6028 6029 if test "x$DATE" = x; then 6030 # The variable is not set by user, try to locate tool using the code snippet 6031 for ac_prog in date 6032 do 6033 # Extract the first word of "$ac_prog", so it can be a program name with args. 6034 set dummy $ac_prog; ac_word=$2 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6036 $as_echo_n "checking for $ac_word... " >&6; } 6037 if ${ac_cv_path_DATE+:} false; then : 6038 $as_echo_n "(cached) " >&6 6039 else 6040 case $DATE in 6041 [\\/]* | ?:[\\/]*) 6042 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6043 ;; 6044 *) 6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6046 for as_dir in $PATH 6047 do 6048 IFS=$as_save_IFS 6049 test -z "$as_dir" && as_dir=. 6050 for ac_exec_ext in '' $ac_executable_extensions; do 6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6052 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6054 break 2 6055 fi 6056 done 6057 done 6058 IFS=$as_save_IFS 6059 6060 ;; 6061 esac 6062 fi 6063 DATE=$ac_cv_path_DATE 6064 if test -n "$DATE"; then 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6066 $as_echo "$DATE" >&6; } 6067 else 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6069 $as_echo "no" >&6; } 6070 fi 6071 6072 6073 test -n "$DATE" && break 6074 done 6075 6076 else 6077 # The variable is set, but is it from the command line or the environment? 6078 6079 # Try to remove the string !DATE! from our list. 6080 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6081 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6082 # If it failed, the variable was not from the command line. Ignore it, 6083 # but warn the user (except for BASH, which is always set by the calling BASH). 6084 if test "xDATE" != xBASH; then 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6086 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6087 fi 6088 # Try to locate tool using the code snippet 6089 for ac_prog in date 6090 do 6091 # Extract the first word of "$ac_prog", so it can be a program name with args. 6092 set dummy $ac_prog; ac_word=$2 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6094 $as_echo_n "checking for $ac_word... " >&6; } 6095 if ${ac_cv_path_DATE+:} false; then : 6096 $as_echo_n "(cached) " >&6 6097 else 6098 case $DATE in 6099 [\\/]* | ?:[\\/]*) 6100 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6101 ;; 6102 *) 6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104 for as_dir in $PATH 6105 do 6106 IFS=$as_save_IFS 6107 test -z "$as_dir" && as_dir=. 6108 for ac_exec_ext in '' $ac_executable_extensions; do 6109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6110 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6112 break 2 6113 fi 6114 done 6115 done 6116 IFS=$as_save_IFS 6117 6118 ;; 6119 esac 6120 fi 6121 DATE=$ac_cv_path_DATE 6122 if test -n "$DATE"; then 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6124 $as_echo "$DATE" >&6; } 6125 else 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6127 $as_echo "no" >&6; } 6128 fi 6129 6130 6131 test -n "$DATE" && break 6132 done 6133 6134 else 6135 # If it succeeded, then it was overridden by the user. We will use it 6136 # for the tool. 6137 6138 # First remove it from the list of overridden variables, so we can test 6139 # for unknown variables in the end. 6140 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6141 6142 # Check if the provided tool contains a complete path. 6143 tool_specified="$DATE" 6144 tool_basename="${tool_specified##*/}" 6145 if test "x$tool_basename" = "x$tool_specified"; then 6146 # A command without a complete path is provided, search $PATH. 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6148 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6149 # Extract the first word of "$tool_basename", so it can be a program name with args. 6150 set dummy $tool_basename; ac_word=$2 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6152 $as_echo_n "checking for $ac_word... " >&6; } 6153 if ${ac_cv_path_DATE+:} false; then : 6154 $as_echo_n "(cached) " >&6 6155 else 6156 case $DATE in 6157 [\\/]* | ?:[\\/]*) 6158 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6159 ;; 6160 *) 6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162 for as_dir in $PATH 6163 do 6164 IFS=$as_save_IFS 6165 test -z "$as_dir" && as_dir=. 6166 for ac_exec_ext in '' $ac_executable_extensions; do 6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6168 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6170 break 2 6171 fi 6172 done 6173 done 6174 IFS=$as_save_IFS 6175 6176 ;; 6177 esac 6178 fi 6179 DATE=$ac_cv_path_DATE 6180 if test -n "$DATE"; then 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6182 $as_echo "$DATE" >&6; } 6183 else 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6185 $as_echo "no" >&6; } 6186 fi 6187 6188 6189 if test "x$DATE" = x; then 6190 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6191 fi 6192 else 6193 # Otherwise we believe it is a complete path. Use it as it is. 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6195 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6197 $as_echo_n "checking for DATE... " >&6; } 6198 if test ! -x "$tool_specified"; then 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6200 $as_echo "not found" >&6; } 6201 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6202 fi 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6204 $as_echo "$tool_specified" >&6; } 6205 fi 6206 fi 6207 fi 6208 6209 6210 6211 if test "x$DATE" = x; then 6212 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6213 fi 6214 6215 6216 6217 6218 6219 # Publish this variable in the help. 6220 6221 6222 if test "x$DIFF" = x; then 6223 # The variable is not set by user, try to locate tool using the code snippet 6224 for ac_prog in gdiff diff 6225 do 6226 # Extract the first word of "$ac_prog", so it can be a program name with args. 6227 set dummy $ac_prog; ac_word=$2 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6229 $as_echo_n "checking for $ac_word... " >&6; } 6230 if ${ac_cv_path_DIFF+:} false; then : 6231 $as_echo_n "(cached) " >&6 6232 else 6233 case $DIFF in 6234 [\\/]* | ?:[\\/]*) 6235 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6236 ;; 6237 *) 6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6239 for as_dir in $PATH 6240 do 6241 IFS=$as_save_IFS 6242 test -z "$as_dir" && as_dir=. 6243 for ac_exec_ext in '' $ac_executable_extensions; do 6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6245 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6247 break 2 6248 fi 6249 done 6250 done 6251 IFS=$as_save_IFS 6252 6253 ;; 6254 esac 6255 fi 6256 DIFF=$ac_cv_path_DIFF 6257 if test -n "$DIFF"; then 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6259 $as_echo "$DIFF" >&6; } 6260 else 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6262 $as_echo "no" >&6; } 6263 fi 6264 6265 6266 test -n "$DIFF" && break 6267 done 6268 6269 else 6270 # The variable is set, but is it from the command line or the environment? 6271 6272 # Try to remove the string !DIFF! from our list. 6273 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6274 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6275 # If it failed, the variable was not from the command line. Ignore it, 6276 # but warn the user (except for BASH, which is always set by the calling BASH). 6277 if test "xDIFF" != xBASH; then 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6279 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6280 fi 6281 # Try to locate tool using the code snippet 6282 for ac_prog in gdiff diff 6283 do 6284 # Extract the first word of "$ac_prog", so it can be a program name with args. 6285 set dummy $ac_prog; ac_word=$2 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6287 $as_echo_n "checking for $ac_word... " >&6; } 6288 if ${ac_cv_path_DIFF+:} false; then : 6289 $as_echo_n "(cached) " >&6 6290 else 6291 case $DIFF in 6292 [\\/]* | ?:[\\/]*) 6293 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6294 ;; 6295 *) 6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6297 for as_dir in $PATH 6298 do 6299 IFS=$as_save_IFS 6300 test -z "$as_dir" && as_dir=. 6301 for ac_exec_ext in '' $ac_executable_extensions; do 6302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6303 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6305 break 2 6306 fi 6307 done 6308 done 6309 IFS=$as_save_IFS 6310 6311 ;; 6312 esac 6313 fi 6314 DIFF=$ac_cv_path_DIFF 6315 if test -n "$DIFF"; then 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6317 $as_echo "$DIFF" >&6; } 6318 else 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6320 $as_echo "no" >&6; } 6321 fi 6322 6323 6324 test -n "$DIFF" && break 6325 done 6326 6327 else 6328 # If it succeeded, then it was overridden by the user. We will use it 6329 # for the tool. 6330 6331 # First remove it from the list of overridden variables, so we can test 6332 # for unknown variables in the end. 6333 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6334 6335 # Check if the provided tool contains a complete path. 6336 tool_specified="$DIFF" 6337 tool_basename="${tool_specified##*/}" 6338 if test "x$tool_basename" = "x$tool_specified"; then 6339 # A command without a complete path is provided, search $PATH. 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6341 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6342 # Extract the first word of "$tool_basename", so it can be a program name with args. 6343 set dummy $tool_basename; ac_word=$2 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6345 $as_echo_n "checking for $ac_word... " >&6; } 6346 if ${ac_cv_path_DIFF+:} false; then : 6347 $as_echo_n "(cached) " >&6 6348 else 6349 case $DIFF in 6350 [\\/]* | ?:[\\/]*) 6351 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6352 ;; 6353 *) 6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6355 for as_dir in $PATH 6356 do 6357 IFS=$as_save_IFS 6358 test -z "$as_dir" && as_dir=. 6359 for ac_exec_ext in '' $ac_executable_extensions; do 6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6361 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6363 break 2 6364 fi 6365 done 6366 done 6367 IFS=$as_save_IFS 6368 6369 ;; 6370 esac 6371 fi 6372 DIFF=$ac_cv_path_DIFF 6373 if test -n "$DIFF"; then 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6375 $as_echo "$DIFF" >&6; } 6376 else 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6378 $as_echo "no" >&6; } 6379 fi 6380 6381 6382 if test "x$DIFF" = x; then 6383 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6384 fi 6385 else 6386 # Otherwise we believe it is a complete path. Use it as it is. 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6388 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6390 $as_echo_n "checking for DIFF... " >&6; } 6391 if test ! -x "$tool_specified"; then 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6393 $as_echo "not found" >&6; } 6394 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6395 fi 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6397 $as_echo "$tool_specified" >&6; } 6398 fi 6399 fi 6400 fi 6401 6402 6403 6404 if test "x$DIFF" = x; then 6405 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6406 fi 6407 6408 6409 6410 6411 6412 # Publish this variable in the help. 6413 6414 6415 if test "x$DIRNAME" = x; then 6416 # The variable is not set by user, try to locate tool using the code snippet 6417 for ac_prog in dirname 6418 do 6419 # Extract the first word of "$ac_prog", so it can be a program name with args. 6420 set dummy $ac_prog; ac_word=$2 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6422 $as_echo_n "checking for $ac_word... " >&6; } 6423 if ${ac_cv_path_DIRNAME+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425 else 6426 case $DIRNAME in 6427 [\\/]* | ?:[\\/]*) 6428 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6429 ;; 6430 *) 6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6432 for as_dir in $PATH 6433 do 6434 IFS=$as_save_IFS 6435 test -z "$as_dir" && as_dir=. 6436 for ac_exec_ext in '' $ac_executable_extensions; do 6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6438 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6440 break 2 6441 fi 6442 done 6443 done 6444 IFS=$as_save_IFS 6445 6446 ;; 6447 esac 6448 fi 6449 DIRNAME=$ac_cv_path_DIRNAME 6450 if test -n "$DIRNAME"; then 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6452 $as_echo "$DIRNAME" >&6; } 6453 else 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6455 $as_echo "no" >&6; } 6456 fi 6457 6458 6459 test -n "$DIRNAME" && break 6460 done 6461 6462 else 6463 # The variable is set, but is it from the command line or the environment? 6464 6465 # Try to remove the string !DIRNAME! from our list. 6466 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6467 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6468 # If it failed, the variable was not from the command line. Ignore it, 6469 # but warn the user (except for BASH, which is always set by the calling BASH). 6470 if test "xDIRNAME" != xBASH; then 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6472 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6473 fi 6474 # Try to locate tool using the code snippet 6475 for ac_prog in dirname 6476 do 6477 # Extract the first word of "$ac_prog", so it can be a program name with args. 6478 set dummy $ac_prog; ac_word=$2 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6480 $as_echo_n "checking for $ac_word... " >&6; } 6481 if ${ac_cv_path_DIRNAME+:} false; then : 6482 $as_echo_n "(cached) " >&6 6483 else 6484 case $DIRNAME in 6485 [\\/]* | ?:[\\/]*) 6486 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6487 ;; 6488 *) 6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6490 for as_dir in $PATH 6491 do 6492 IFS=$as_save_IFS 6493 test -z "$as_dir" && as_dir=. 6494 for ac_exec_ext in '' $ac_executable_extensions; do 6495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6496 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6498 break 2 6499 fi 6500 done 6501 done 6502 IFS=$as_save_IFS 6503 6504 ;; 6505 esac 6506 fi 6507 DIRNAME=$ac_cv_path_DIRNAME 6508 if test -n "$DIRNAME"; then 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6510 $as_echo "$DIRNAME" >&6; } 6511 else 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6513 $as_echo "no" >&6; } 6514 fi 6515 6516 6517 test -n "$DIRNAME" && break 6518 done 6519 6520 else 6521 # If it succeeded, then it was overridden by the user. We will use it 6522 # for the tool. 6523 6524 # First remove it from the list of overridden variables, so we can test 6525 # for unknown variables in the end. 6526 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6527 6528 # Check if the provided tool contains a complete path. 6529 tool_specified="$DIRNAME" 6530 tool_basename="${tool_specified##*/}" 6531 if test "x$tool_basename" = "x$tool_specified"; then 6532 # A command without a complete path is provided, search $PATH. 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6534 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6535 # Extract the first word of "$tool_basename", so it can be a program name with args. 6536 set dummy $tool_basename; ac_word=$2 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6538 $as_echo_n "checking for $ac_word... " >&6; } 6539 if ${ac_cv_path_DIRNAME+:} false; then : 6540 $as_echo_n "(cached) " >&6 6541 else 6542 case $DIRNAME in 6543 [\\/]* | ?:[\\/]*) 6544 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6545 ;; 6546 *) 6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6548 for as_dir in $PATH 6549 do 6550 IFS=$as_save_IFS 6551 test -z "$as_dir" && as_dir=. 6552 for ac_exec_ext in '' $ac_executable_extensions; do 6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6554 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6556 break 2 6557 fi 6558 done 6559 done 6560 IFS=$as_save_IFS 6561 6562 ;; 6563 esac 6564 fi 6565 DIRNAME=$ac_cv_path_DIRNAME 6566 if test -n "$DIRNAME"; then 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6568 $as_echo "$DIRNAME" >&6; } 6569 else 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6571 $as_echo "no" >&6; } 6572 fi 6573 6574 6575 if test "x$DIRNAME" = x; then 6576 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6577 fi 6578 else 6579 # Otherwise we believe it is a complete path. Use it as it is. 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6581 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6583 $as_echo_n "checking for DIRNAME... " >&6; } 6584 if test ! -x "$tool_specified"; then 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6586 $as_echo "not found" >&6; } 6587 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6588 fi 6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6590 $as_echo "$tool_specified" >&6; } 6591 fi 6592 fi 6593 fi 6594 6595 6596 6597 if test "x$DIRNAME" = x; then 6598 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6599 fi 6600 6601 6602 6603 6604 6605 # Publish this variable in the help. 6606 6607 6608 if test "x$ECHO" = x; then 6609 # The variable is not set by user, try to locate tool using the code snippet 6610 for ac_prog in echo 6611 do 6612 # Extract the first word of "$ac_prog", so it can be a program name with args. 6613 set dummy $ac_prog; ac_word=$2 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6615 $as_echo_n "checking for $ac_word... " >&6; } 6616 if ${ac_cv_path_ECHO+:} false; then : 6617 $as_echo_n "(cached) " >&6 6618 else 6619 case $ECHO in 6620 [\\/]* | ?:[\\/]*) 6621 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6622 ;; 6623 *) 6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6625 for as_dir in $PATH 6626 do 6627 IFS=$as_save_IFS 6628 test -z "$as_dir" && as_dir=. 6629 for ac_exec_ext in '' $ac_executable_extensions; do 6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6631 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6633 break 2 6634 fi 6635 done 6636 done 6637 IFS=$as_save_IFS 6638 6639 ;; 6640 esac 6641 fi 6642 ECHO=$ac_cv_path_ECHO 6643 if test -n "$ECHO"; then 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6645 $as_echo "$ECHO" >&6; } 6646 else 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6648 $as_echo "no" >&6; } 6649 fi 6650 6651 6652 test -n "$ECHO" && break 6653 done 6654 6655 else 6656 # The variable is set, but is it from the command line or the environment? 6657 6658 # Try to remove the string !ECHO! from our list. 6659 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6660 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6661 # If it failed, the variable was not from the command line. Ignore it, 6662 # but warn the user (except for BASH, which is always set by the calling BASH). 6663 if test "xECHO" != xBASH; then 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6665 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6666 fi 6667 # Try to locate tool using the code snippet 6668 for ac_prog in echo 6669 do 6670 # Extract the first word of "$ac_prog", so it can be a program name with args. 6671 set dummy $ac_prog; ac_word=$2 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6673 $as_echo_n "checking for $ac_word... " >&6; } 6674 if ${ac_cv_path_ECHO+:} false; then : 6675 $as_echo_n "(cached) " >&6 6676 else 6677 case $ECHO in 6678 [\\/]* | ?:[\\/]*) 6679 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6680 ;; 6681 *) 6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6683 for as_dir in $PATH 6684 do 6685 IFS=$as_save_IFS 6686 test -z "$as_dir" && as_dir=. 6687 for ac_exec_ext in '' $ac_executable_extensions; do 6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6689 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6691 break 2 6692 fi 6693 done 6694 done 6695 IFS=$as_save_IFS 6696 6697 ;; 6698 esac 6699 fi 6700 ECHO=$ac_cv_path_ECHO 6701 if test -n "$ECHO"; then 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6703 $as_echo "$ECHO" >&6; } 6704 else 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6706 $as_echo "no" >&6; } 6707 fi 6708 6709 6710 test -n "$ECHO" && break 6711 done 6712 6713 else 6714 # If it succeeded, then it was overridden by the user. We will use it 6715 # for the tool. 6716 6717 # First remove it from the list of overridden variables, so we can test 6718 # for unknown variables in the end. 6719 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6720 6721 # Check if the provided tool contains a complete path. 6722 tool_specified="$ECHO" 6723 tool_basename="${tool_specified##*/}" 6724 if test "x$tool_basename" = "x$tool_specified"; then 6725 # A command without a complete path is provided, search $PATH. 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6727 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6728 # Extract the first word of "$tool_basename", so it can be a program name with args. 6729 set dummy $tool_basename; ac_word=$2 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6731 $as_echo_n "checking for $ac_word... " >&6; } 6732 if ${ac_cv_path_ECHO+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734 else 6735 case $ECHO in 6736 [\\/]* | ?:[\\/]*) 6737 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6738 ;; 6739 *) 6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6741 for as_dir in $PATH 6742 do 6743 IFS=$as_save_IFS 6744 test -z "$as_dir" && as_dir=. 6745 for ac_exec_ext in '' $ac_executable_extensions; do 6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6747 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6749 break 2 6750 fi 6751 done 6752 done 6753 IFS=$as_save_IFS 6754 6755 ;; 6756 esac 6757 fi 6758 ECHO=$ac_cv_path_ECHO 6759 if test -n "$ECHO"; then 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6761 $as_echo "$ECHO" >&6; } 6762 else 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6764 $as_echo "no" >&6; } 6765 fi 6766 6767 6768 if test "x$ECHO" = x; then 6769 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6770 fi 6771 else 6772 # Otherwise we believe it is a complete path. Use it as it is. 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6774 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6776 $as_echo_n "checking for ECHO... " >&6; } 6777 if test ! -x "$tool_specified"; then 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6779 $as_echo "not found" >&6; } 6780 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6781 fi 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6783 $as_echo "$tool_specified" >&6; } 6784 fi 6785 fi 6786 fi 6787 6788 6789 6790 if test "x$ECHO" = x; then 6791 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6792 fi 6793 6794 6795 6796 6797 6798 # Publish this variable in the help. 6799 6800 6801 if test "x$EXPR" = x; then 6802 # The variable is not set by user, try to locate tool using the code snippet 6803 for ac_prog in expr 6804 do 6805 # Extract the first word of "$ac_prog", so it can be a program name with args. 6806 set dummy $ac_prog; ac_word=$2 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6808 $as_echo_n "checking for $ac_word... " >&6; } 6809 if ${ac_cv_path_EXPR+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811 else 6812 case $EXPR in 6813 [\\/]* | ?:[\\/]*) 6814 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6815 ;; 6816 *) 6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6818 for as_dir in $PATH 6819 do 6820 IFS=$as_save_IFS 6821 test -z "$as_dir" && as_dir=. 6822 for ac_exec_ext in '' $ac_executable_extensions; do 6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6824 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6826 break 2 6827 fi 6828 done 6829 done 6830 IFS=$as_save_IFS 6831 6832 ;; 6833 esac 6834 fi 6835 EXPR=$ac_cv_path_EXPR 6836 if test -n "$EXPR"; then 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6838 $as_echo "$EXPR" >&6; } 6839 else 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6841 $as_echo "no" >&6; } 6842 fi 6843 6844 6845 test -n "$EXPR" && break 6846 done 6847 6848 else 6849 # The variable is set, but is it from the command line or the environment? 6850 6851 # Try to remove the string !EXPR! from our list. 6852 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6853 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6854 # If it failed, the variable was not from the command line. Ignore it, 6855 # but warn the user (except for BASH, which is always set by the calling BASH). 6856 if test "xEXPR" != xBASH; then 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6858 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6859 fi 6860 # Try to locate tool using the code snippet 6861 for ac_prog in expr 6862 do 6863 # Extract the first word of "$ac_prog", so it can be a program name with args. 6864 set dummy $ac_prog; ac_word=$2 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6866 $as_echo_n "checking for $ac_word... " >&6; } 6867 if ${ac_cv_path_EXPR+:} false; then : 6868 $as_echo_n "(cached) " >&6 6869 else 6870 case $EXPR in 6871 [\\/]* | ?:[\\/]*) 6872 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6873 ;; 6874 *) 6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6876 for as_dir in $PATH 6877 do 6878 IFS=$as_save_IFS 6879 test -z "$as_dir" && as_dir=. 6880 for ac_exec_ext in '' $ac_executable_extensions; do 6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6882 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6884 break 2 6885 fi 6886 done 6887 done 6888 IFS=$as_save_IFS 6889 6890 ;; 6891 esac 6892 fi 6893 EXPR=$ac_cv_path_EXPR 6894 if test -n "$EXPR"; then 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6896 $as_echo "$EXPR" >&6; } 6897 else 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6899 $as_echo "no" >&6; } 6900 fi 6901 6902 6903 test -n "$EXPR" && break 6904 done 6905 6906 else 6907 # If it succeeded, then it was overridden by the user. We will use it 6908 # for the tool. 6909 6910 # First remove it from the list of overridden variables, so we can test 6911 # for unknown variables in the end. 6912 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6913 6914 # Check if the provided tool contains a complete path. 6915 tool_specified="$EXPR" 6916 tool_basename="${tool_specified##*/}" 6917 if test "x$tool_basename" = "x$tool_specified"; then 6918 # A command without a complete path is provided, search $PATH. 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6920 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6921 # Extract the first word of "$tool_basename", so it can be a program name with args. 6922 set dummy $tool_basename; ac_word=$2 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6924 $as_echo_n "checking for $ac_word... " >&6; } 6925 if ${ac_cv_path_EXPR+:} false; then : 6926 $as_echo_n "(cached) " >&6 6927 else 6928 case $EXPR in 6929 [\\/]* | ?:[\\/]*) 6930 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6931 ;; 6932 *) 6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6934 for as_dir in $PATH 6935 do 6936 IFS=$as_save_IFS 6937 test -z "$as_dir" && as_dir=. 6938 for ac_exec_ext in '' $ac_executable_extensions; do 6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6940 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6942 break 2 6943 fi 6944 done 6945 done 6946 IFS=$as_save_IFS 6947 6948 ;; 6949 esac 6950 fi 6951 EXPR=$ac_cv_path_EXPR 6952 if test -n "$EXPR"; then 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6954 $as_echo "$EXPR" >&6; } 6955 else 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6957 $as_echo "no" >&6; } 6958 fi 6959 6960 6961 if test "x$EXPR" = x; then 6962 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6963 fi 6964 else 6965 # Otherwise we believe it is a complete path. Use it as it is. 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6967 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6969 $as_echo_n "checking for EXPR... " >&6; } 6970 if test ! -x "$tool_specified"; then 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6972 $as_echo "not found" >&6; } 6973 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6974 fi 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6976 $as_echo "$tool_specified" >&6; } 6977 fi 6978 fi 6979 fi 6980 6981 6982 6983 if test "x$EXPR" = x; then 6984 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6985 fi 6986 6987 6988 6989 6990 6991 # Publish this variable in the help. 6992 6993 6994 if test "x$FILE" = x; then 6995 # The variable is not set by user, try to locate tool using the code snippet 6996 for ac_prog in file 6997 do 6998 # Extract the first word of "$ac_prog", so it can be a program name with args. 6999 set dummy $ac_prog; ac_word=$2 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7001 $as_echo_n "checking for $ac_word... " >&6; } 7002 if ${ac_cv_path_FILE+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004 else 7005 case $FILE in 7006 [\\/]* | ?:[\\/]*) 7007 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7008 ;; 7009 *) 7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7011 for as_dir in $PATH 7012 do 7013 IFS=$as_save_IFS 7014 test -z "$as_dir" && as_dir=. 7015 for ac_exec_ext in '' $ac_executable_extensions; do 7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7017 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7019 break 2 7020 fi 7021 done 7022 done 7023 IFS=$as_save_IFS 7024 7025 ;; 7026 esac 7027 fi 7028 FILE=$ac_cv_path_FILE 7029 if test -n "$FILE"; then 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7031 $as_echo "$FILE" >&6; } 7032 else 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7034 $as_echo "no" >&6; } 7035 fi 7036 7037 7038 test -n "$FILE" && break 7039 done 7040 7041 else 7042 # The variable is set, but is it from the command line or the environment? 7043 7044 # Try to remove the string !FILE! from our list. 7045 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7046 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7047 # If it failed, the variable was not from the command line. Ignore it, 7048 # but warn the user (except for BASH, which is always set by the calling BASH). 7049 if test "xFILE" != xBASH; then 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7051 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7052 fi 7053 # Try to locate tool using the code snippet 7054 for ac_prog in file 7055 do 7056 # Extract the first word of "$ac_prog", so it can be a program name with args. 7057 set dummy $ac_prog; ac_word=$2 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7059 $as_echo_n "checking for $ac_word... " >&6; } 7060 if ${ac_cv_path_FILE+:} false; then : 7061 $as_echo_n "(cached) " >&6 7062 else 7063 case $FILE in 7064 [\\/]* | ?:[\\/]*) 7065 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7066 ;; 7067 *) 7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7069 for as_dir in $PATH 7070 do 7071 IFS=$as_save_IFS 7072 test -z "$as_dir" && as_dir=. 7073 for ac_exec_ext in '' $ac_executable_extensions; do 7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7075 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7077 break 2 7078 fi 7079 done 7080 done 7081 IFS=$as_save_IFS 7082 7083 ;; 7084 esac 7085 fi 7086 FILE=$ac_cv_path_FILE 7087 if test -n "$FILE"; then 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7089 $as_echo "$FILE" >&6; } 7090 else 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7092 $as_echo "no" >&6; } 7093 fi 7094 7095 7096 test -n "$FILE" && break 7097 done 7098 7099 else 7100 # If it succeeded, then it was overridden by the user. We will use it 7101 # for the tool. 7102 7103 # First remove it from the list of overridden variables, so we can test 7104 # for unknown variables in the end. 7105 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7106 7107 # Check if the provided tool contains a complete path. 7108 tool_specified="$FILE" 7109 tool_basename="${tool_specified##*/}" 7110 if test "x$tool_basename" = "x$tool_specified"; then 7111 # A command without a complete path is provided, search $PATH. 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7113 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7114 # Extract the first word of "$tool_basename", so it can be a program name with args. 7115 set dummy $tool_basename; ac_word=$2 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7117 $as_echo_n "checking for $ac_word... " >&6; } 7118 if ${ac_cv_path_FILE+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120 else 7121 case $FILE in 7122 [\\/]* | ?:[\\/]*) 7123 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7124 ;; 7125 *) 7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7127 for as_dir in $PATH 7128 do 7129 IFS=$as_save_IFS 7130 test -z "$as_dir" && as_dir=. 7131 for ac_exec_ext in '' $ac_executable_extensions; do 7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7133 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7135 break 2 7136 fi 7137 done 7138 done 7139 IFS=$as_save_IFS 7140 7141 ;; 7142 esac 7143 fi 7144 FILE=$ac_cv_path_FILE 7145 if test -n "$FILE"; then 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7147 $as_echo "$FILE" >&6; } 7148 else 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7150 $as_echo "no" >&6; } 7151 fi 7152 7153 7154 if test "x$FILE" = x; then 7155 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7156 fi 7157 else 7158 # Otherwise we believe it is a complete path. Use it as it is. 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7160 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7162 $as_echo_n "checking for FILE... " >&6; } 7163 if test ! -x "$tool_specified"; then 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7165 $as_echo "not found" >&6; } 7166 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7167 fi 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7169 $as_echo "$tool_specified" >&6; } 7170 fi 7171 fi 7172 fi 7173 7174 7175 7176 if test "x$FILE" = x; then 7177 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7178 fi 7179 7180 7181 7182 7183 7184 # Publish this variable in the help. 7185 7186 7187 if test "x$FIND" = x; then 7188 # The variable is not set by user, try to locate tool using the code snippet 7189 for ac_prog in find 7190 do 7191 # Extract the first word of "$ac_prog", so it can be a program name with args. 7192 set dummy $ac_prog; ac_word=$2 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7194 $as_echo_n "checking for $ac_word... " >&6; } 7195 if ${ac_cv_path_FIND+:} false; then : 7196 $as_echo_n "(cached) " >&6 7197 else 7198 case $FIND in 7199 [\\/]* | ?:[\\/]*) 7200 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7201 ;; 7202 *) 7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7204 for as_dir in $PATH 7205 do 7206 IFS=$as_save_IFS 7207 test -z "$as_dir" && as_dir=. 7208 for ac_exec_ext in '' $ac_executable_extensions; do 7209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7210 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7212 break 2 7213 fi 7214 done 7215 done 7216 IFS=$as_save_IFS 7217 7218 ;; 7219 esac 7220 fi 7221 FIND=$ac_cv_path_FIND 7222 if test -n "$FIND"; then 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7224 $as_echo "$FIND" >&6; } 7225 else 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7227 $as_echo "no" >&6; } 7228 fi 7229 7230 7231 test -n "$FIND" && break 7232 done 7233 7234 else 7235 # The variable is set, but is it from the command line or the environment? 7236 7237 # Try to remove the string !FIND! from our list. 7238 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7239 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7240 # If it failed, the variable was not from the command line. Ignore it, 7241 # but warn the user (except for BASH, which is always set by the calling BASH). 7242 if test "xFIND" != xBASH; then 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7244 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7245 fi 7246 # Try to locate tool using the code snippet 7247 for ac_prog in find 7248 do 7249 # Extract the first word of "$ac_prog", so it can be a program name with args. 7250 set dummy $ac_prog; ac_word=$2 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7252 $as_echo_n "checking for $ac_word... " >&6; } 7253 if ${ac_cv_path_FIND+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255 else 7256 case $FIND in 7257 [\\/]* | ?:[\\/]*) 7258 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7259 ;; 7260 *) 7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7262 for as_dir in $PATH 7263 do 7264 IFS=$as_save_IFS 7265 test -z "$as_dir" && as_dir=. 7266 for ac_exec_ext in '' $ac_executable_extensions; do 7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7268 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7270 break 2 7271 fi 7272 done 7273 done 7274 IFS=$as_save_IFS 7275 7276 ;; 7277 esac 7278 fi 7279 FIND=$ac_cv_path_FIND 7280 if test -n "$FIND"; then 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7282 $as_echo "$FIND" >&6; } 7283 else 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7285 $as_echo "no" >&6; } 7286 fi 7287 7288 7289 test -n "$FIND" && break 7290 done 7291 7292 else 7293 # If it succeeded, then it was overridden by the user. We will use it 7294 # for the tool. 7295 7296 # First remove it from the list of overridden variables, so we can test 7297 # for unknown variables in the end. 7298 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7299 7300 # Check if the provided tool contains a complete path. 7301 tool_specified="$FIND" 7302 tool_basename="${tool_specified##*/}" 7303 if test "x$tool_basename" = "x$tool_specified"; then 7304 # A command without a complete path is provided, search $PATH. 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7306 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7307 # Extract the first word of "$tool_basename", so it can be a program name with args. 7308 set dummy $tool_basename; ac_word=$2 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7310 $as_echo_n "checking for $ac_word... " >&6; } 7311 if ${ac_cv_path_FIND+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313 else 7314 case $FIND in 7315 [\\/]* | ?:[\\/]*) 7316 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7317 ;; 7318 *) 7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7320 for as_dir in $PATH 7321 do 7322 IFS=$as_save_IFS 7323 test -z "$as_dir" && as_dir=. 7324 for ac_exec_ext in '' $ac_executable_extensions; do 7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7326 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7328 break 2 7329 fi 7330 done 7331 done 7332 IFS=$as_save_IFS 7333 7334 ;; 7335 esac 7336 fi 7337 FIND=$ac_cv_path_FIND 7338 if test -n "$FIND"; then 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7340 $as_echo "$FIND" >&6; } 7341 else 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7343 $as_echo "no" >&6; } 7344 fi 7345 7346 7347 if test "x$FIND" = x; then 7348 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7349 fi 7350 else 7351 # Otherwise we believe it is a complete path. Use it as it is. 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7353 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7355 $as_echo_n "checking for FIND... " >&6; } 7356 if test ! -x "$tool_specified"; then 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7358 $as_echo "not found" >&6; } 7359 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7360 fi 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7362 $as_echo "$tool_specified" >&6; } 7363 fi 7364 fi 7365 fi 7366 7367 7368 7369 if test "x$FIND" = x; then 7370 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7371 fi 7372 7373 7374 7375 7376 7377 # Publish this variable in the help. 7378 7379 7380 if test "x$HEAD" = x; then 7381 # The variable is not set by user, try to locate tool using the code snippet 7382 for ac_prog in head 7383 do 7384 # Extract the first word of "$ac_prog", so it can be a program name with args. 7385 set dummy $ac_prog; ac_word=$2 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7387 $as_echo_n "checking for $ac_word... " >&6; } 7388 if ${ac_cv_path_HEAD+:} false; then : 7389 $as_echo_n "(cached) " >&6 7390 else 7391 case $HEAD in 7392 [\\/]* | ?:[\\/]*) 7393 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7394 ;; 7395 *) 7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7397 for as_dir in $PATH 7398 do 7399 IFS=$as_save_IFS 7400 test -z "$as_dir" && as_dir=. 7401 for ac_exec_ext in '' $ac_executable_extensions; do 7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7403 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7405 break 2 7406 fi 7407 done 7408 done 7409 IFS=$as_save_IFS 7410 7411 ;; 7412 esac 7413 fi 7414 HEAD=$ac_cv_path_HEAD 7415 if test -n "$HEAD"; then 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7417 $as_echo "$HEAD" >&6; } 7418 else 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7420 $as_echo "no" >&6; } 7421 fi 7422 7423 7424 test -n "$HEAD" && break 7425 done 7426 7427 else 7428 # The variable is set, but is it from the command line or the environment? 7429 7430 # Try to remove the string !HEAD! from our list. 7431 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7432 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7433 # If it failed, the variable was not from the command line. Ignore it, 7434 # but warn the user (except for BASH, which is always set by the calling BASH). 7435 if test "xHEAD" != xBASH; then 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7437 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7438 fi 7439 # Try to locate tool using the code snippet 7440 for ac_prog in head 7441 do 7442 # Extract the first word of "$ac_prog", so it can be a program name with args. 7443 set dummy $ac_prog; ac_word=$2 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7445 $as_echo_n "checking for $ac_word... " >&6; } 7446 if ${ac_cv_path_HEAD+:} false; then : 7447 $as_echo_n "(cached) " >&6 7448 else 7449 case $HEAD in 7450 [\\/]* | ?:[\\/]*) 7451 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7452 ;; 7453 *) 7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7455 for as_dir in $PATH 7456 do 7457 IFS=$as_save_IFS 7458 test -z "$as_dir" && as_dir=. 7459 for ac_exec_ext in '' $ac_executable_extensions; do 7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7461 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7463 break 2 7464 fi 7465 done 7466 done 7467 IFS=$as_save_IFS 7468 7469 ;; 7470 esac 7471 fi 7472 HEAD=$ac_cv_path_HEAD 7473 if test -n "$HEAD"; then 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7475 $as_echo "$HEAD" >&6; } 7476 else 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7478 $as_echo "no" >&6; } 7479 fi 7480 7481 7482 test -n "$HEAD" && break 7483 done 7484 7485 else 7486 # If it succeeded, then it was overridden by the user. We will use it 7487 # for the tool. 7488 7489 # First remove it from the list of overridden variables, so we can test 7490 # for unknown variables in the end. 7491 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7492 7493 # Check if the provided tool contains a complete path. 7494 tool_specified="$HEAD" 7495 tool_basename="${tool_specified##*/}" 7496 if test "x$tool_basename" = "x$tool_specified"; then 7497 # A command without a complete path is provided, search $PATH. 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7499 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7500 # Extract the first word of "$tool_basename", so it can be a program name with args. 7501 set dummy $tool_basename; ac_word=$2 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7503 $as_echo_n "checking for $ac_word... " >&6; } 7504 if ${ac_cv_path_HEAD+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506 else 7507 case $HEAD in 7508 [\\/]* | ?:[\\/]*) 7509 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7510 ;; 7511 *) 7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7513 for as_dir in $PATH 7514 do 7515 IFS=$as_save_IFS 7516 test -z "$as_dir" && as_dir=. 7517 for ac_exec_ext in '' $ac_executable_extensions; do 7518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7519 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7521 break 2 7522 fi 7523 done 7524 done 7525 IFS=$as_save_IFS 7526 7527 ;; 7528 esac 7529 fi 7530 HEAD=$ac_cv_path_HEAD 7531 if test -n "$HEAD"; then 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7533 $as_echo "$HEAD" >&6; } 7534 else 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7536 $as_echo "no" >&6; } 7537 fi 7538 7539 7540 if test "x$HEAD" = x; then 7541 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7542 fi 7543 else 7544 # Otherwise we believe it is a complete path. Use it as it is. 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7546 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7548 $as_echo_n "checking for HEAD... " >&6; } 7549 if test ! -x "$tool_specified"; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7551 $as_echo "not found" >&6; } 7552 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7553 fi 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7555 $as_echo "$tool_specified" >&6; } 7556 fi 7557 fi 7558 fi 7559 7560 7561 7562 if test "x$HEAD" = x; then 7563 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7564 fi 7565 7566 7567 7568 7569 7570 # Publish this variable in the help. 7571 7572 7573 if test "x$LN" = x; then 7574 # The variable is not set by user, try to locate tool using the code snippet 7575 for ac_prog in ln 7576 do 7577 # Extract the first word of "$ac_prog", so it can be a program name with args. 7578 set dummy $ac_prog; ac_word=$2 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7580 $as_echo_n "checking for $ac_word... " >&6; } 7581 if ${ac_cv_path_LN+:} false; then : 7582 $as_echo_n "(cached) " >&6 7583 else 7584 case $LN in 7585 [\\/]* | ?:[\\/]*) 7586 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7587 ;; 7588 *) 7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7590 for as_dir in $PATH 7591 do 7592 IFS=$as_save_IFS 7593 test -z "$as_dir" && as_dir=. 7594 for ac_exec_ext in '' $ac_executable_extensions; do 7595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7596 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7598 break 2 7599 fi 7600 done 7601 done 7602 IFS=$as_save_IFS 7603 7604 ;; 7605 esac 7606 fi 7607 LN=$ac_cv_path_LN 7608 if test -n "$LN"; then 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7610 $as_echo "$LN" >&6; } 7611 else 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7613 $as_echo "no" >&6; } 7614 fi 7615 7616 7617 test -n "$LN" && break 7618 done 7619 7620 else 7621 # The variable is set, but is it from the command line or the environment? 7622 7623 # Try to remove the string !LN! from our list. 7624 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7625 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7626 # If it failed, the variable was not from the command line. Ignore it, 7627 # but warn the user (except for BASH, which is always set by the calling BASH). 7628 if test "xLN" != xBASH; then 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7630 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7631 fi 7632 # Try to locate tool using the code snippet 7633 for ac_prog in ln 7634 do 7635 # Extract the first word of "$ac_prog", so it can be a program name with args. 7636 set dummy $ac_prog; ac_word=$2 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7638 $as_echo_n "checking for $ac_word... " >&6; } 7639 if ${ac_cv_path_LN+:} false; then : 7640 $as_echo_n "(cached) " >&6 7641 else 7642 case $LN in 7643 [\\/]* | ?:[\\/]*) 7644 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7645 ;; 7646 *) 7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7648 for as_dir in $PATH 7649 do 7650 IFS=$as_save_IFS 7651 test -z "$as_dir" && as_dir=. 7652 for ac_exec_ext in '' $ac_executable_extensions; do 7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7654 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7656 break 2 7657 fi 7658 done 7659 done 7660 IFS=$as_save_IFS 7661 7662 ;; 7663 esac 7664 fi 7665 LN=$ac_cv_path_LN 7666 if test -n "$LN"; then 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7668 $as_echo "$LN" >&6; } 7669 else 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7671 $as_echo "no" >&6; } 7672 fi 7673 7674 7675 test -n "$LN" && break 7676 done 7677 7678 else 7679 # If it succeeded, then it was overridden by the user. We will use it 7680 # for the tool. 7681 7682 # First remove it from the list of overridden variables, so we can test 7683 # for unknown variables in the end. 7684 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7685 7686 # Check if the provided tool contains a complete path. 7687 tool_specified="$LN" 7688 tool_basename="${tool_specified##*/}" 7689 if test "x$tool_basename" = "x$tool_specified"; then 7690 # A command without a complete path is provided, search $PATH. 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7692 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7693 # Extract the first word of "$tool_basename", so it can be a program name with args. 7694 set dummy $tool_basename; ac_word=$2 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7696 $as_echo_n "checking for $ac_word... " >&6; } 7697 if ${ac_cv_path_LN+:} false; then : 7698 $as_echo_n "(cached) " >&6 7699 else 7700 case $LN in 7701 [\\/]* | ?:[\\/]*) 7702 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7703 ;; 7704 *) 7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7706 for as_dir in $PATH 7707 do 7708 IFS=$as_save_IFS 7709 test -z "$as_dir" && as_dir=. 7710 for ac_exec_ext in '' $ac_executable_extensions; do 7711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7712 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7714 break 2 7715 fi 7716 done 7717 done 7718 IFS=$as_save_IFS 7719 7720 ;; 7721 esac 7722 fi 7723 LN=$ac_cv_path_LN 7724 if test -n "$LN"; then 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7726 $as_echo "$LN" >&6; } 7727 else 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7729 $as_echo "no" >&6; } 7730 fi 7731 7732 7733 if test "x$LN" = x; then 7734 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7735 fi 7736 else 7737 # Otherwise we believe it is a complete path. Use it as it is. 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7739 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7741 $as_echo_n "checking for LN... " >&6; } 7742 if test ! -x "$tool_specified"; then 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7744 $as_echo "not found" >&6; } 7745 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7746 fi 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7748 $as_echo "$tool_specified" >&6; } 7749 fi 7750 fi 7751 fi 7752 7753 7754 7755 if test "x$LN" = x; then 7756 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7757 fi 7758 7759 7760 7761 7762 7763 # Publish this variable in the help. 7764 7765 7766 if test "x$LS" = x; then 7767 # The variable is not set by user, try to locate tool using the code snippet 7768 for ac_prog in ls 7769 do 7770 # Extract the first word of "$ac_prog", so it can be a program name with args. 7771 set dummy $ac_prog; ac_word=$2 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7773 $as_echo_n "checking for $ac_word... " >&6; } 7774 if ${ac_cv_path_LS+:} false; then : 7775 $as_echo_n "(cached) " >&6 7776 else 7777 case $LS in 7778 [\\/]* | ?:[\\/]*) 7779 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7780 ;; 7781 *) 7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7783 for as_dir in $PATH 7784 do 7785 IFS=$as_save_IFS 7786 test -z "$as_dir" && as_dir=. 7787 for ac_exec_ext in '' $ac_executable_extensions; do 7788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7789 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7791 break 2 7792 fi 7793 done 7794 done 7795 IFS=$as_save_IFS 7796 7797 ;; 7798 esac 7799 fi 7800 LS=$ac_cv_path_LS 7801 if test -n "$LS"; then 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7803 $as_echo "$LS" >&6; } 7804 else 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7806 $as_echo "no" >&6; } 7807 fi 7808 7809 7810 test -n "$LS" && break 7811 done 7812 7813 else 7814 # The variable is set, but is it from the command line or the environment? 7815 7816 # Try to remove the string !LS! from our list. 7817 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7818 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7819 # If it failed, the variable was not from the command line. Ignore it, 7820 # but warn the user (except for BASH, which is always set by the calling BASH). 7821 if test "xLS" != xBASH; then 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7823 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7824 fi 7825 # Try to locate tool using the code snippet 7826 for ac_prog in ls 7827 do 7828 # Extract the first word of "$ac_prog", so it can be a program name with args. 7829 set dummy $ac_prog; ac_word=$2 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7831 $as_echo_n "checking for $ac_word... " >&6; } 7832 if ${ac_cv_path_LS+:} false; then : 7833 $as_echo_n "(cached) " >&6 7834 else 7835 case $LS in 7836 [\\/]* | ?:[\\/]*) 7837 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7838 ;; 7839 *) 7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7841 for as_dir in $PATH 7842 do 7843 IFS=$as_save_IFS 7844 test -z "$as_dir" && as_dir=. 7845 for ac_exec_ext in '' $ac_executable_extensions; do 7846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7847 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7849 break 2 7850 fi 7851 done 7852 done 7853 IFS=$as_save_IFS 7854 7855 ;; 7856 esac 7857 fi 7858 LS=$ac_cv_path_LS 7859 if test -n "$LS"; then 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7861 $as_echo "$LS" >&6; } 7862 else 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7864 $as_echo "no" >&6; } 7865 fi 7866 7867 7868 test -n "$LS" && break 7869 done 7870 7871 else 7872 # If it succeeded, then it was overridden by the user. We will use it 7873 # for the tool. 7874 7875 # First remove it from the list of overridden variables, so we can test 7876 # for unknown variables in the end. 7877 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7878 7879 # Check if the provided tool contains a complete path. 7880 tool_specified="$LS" 7881 tool_basename="${tool_specified##*/}" 7882 if test "x$tool_basename" = "x$tool_specified"; then 7883 # A command without a complete path is provided, search $PATH. 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7885 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7886 # Extract the first word of "$tool_basename", so it can be a program name with args. 7887 set dummy $tool_basename; ac_word=$2 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7889 $as_echo_n "checking for $ac_word... " >&6; } 7890 if ${ac_cv_path_LS+:} false; then : 7891 $as_echo_n "(cached) " >&6 7892 else 7893 case $LS in 7894 [\\/]* | ?:[\\/]*) 7895 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7896 ;; 7897 *) 7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7899 for as_dir in $PATH 7900 do 7901 IFS=$as_save_IFS 7902 test -z "$as_dir" && as_dir=. 7903 for ac_exec_ext in '' $ac_executable_extensions; do 7904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7905 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7907 break 2 7908 fi 7909 done 7910 done 7911 IFS=$as_save_IFS 7912 7913 ;; 7914 esac 7915 fi 7916 LS=$ac_cv_path_LS 7917 if test -n "$LS"; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7919 $as_echo "$LS" >&6; } 7920 else 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7922 $as_echo "no" >&6; } 7923 fi 7924 7925 7926 if test "x$LS" = x; then 7927 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7928 fi 7929 else 7930 # Otherwise we believe it is a complete path. Use it as it is. 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7932 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7934 $as_echo_n "checking for LS... " >&6; } 7935 if test ! -x "$tool_specified"; then 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7937 $as_echo "not found" >&6; } 7938 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7939 fi 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7941 $as_echo "$tool_specified" >&6; } 7942 fi 7943 fi 7944 fi 7945 7946 7947 7948 if test "x$LS" = x; then 7949 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7950 fi 7951 7952 7953 7954 7955 7956 # Publish this variable in the help. 7957 7958 7959 if test "x$MKDIR" = x; then 7960 # The variable is not set by user, try to locate tool using the code snippet 7961 for ac_prog in mkdir 7962 do 7963 # Extract the first word of "$ac_prog", so it can be a program name with args. 7964 set dummy $ac_prog; ac_word=$2 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7966 $as_echo_n "checking for $ac_word... " >&6; } 7967 if ${ac_cv_path_MKDIR+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969 else 7970 case $MKDIR in 7971 [\\/]* | ?:[\\/]*) 7972 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7973 ;; 7974 *) 7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7976 for as_dir in $PATH 7977 do 7978 IFS=$as_save_IFS 7979 test -z "$as_dir" && as_dir=. 7980 for ac_exec_ext in '' $ac_executable_extensions; do 7981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7982 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7984 break 2 7985 fi 7986 done 7987 done 7988 IFS=$as_save_IFS 7989 7990 ;; 7991 esac 7992 fi 7993 MKDIR=$ac_cv_path_MKDIR 7994 if test -n "$MKDIR"; then 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7996 $as_echo "$MKDIR" >&6; } 7997 else 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7999 $as_echo "no" >&6; } 8000 fi 8001 8002 8003 test -n "$MKDIR" && break 8004 done 8005 8006 else 8007 # The variable is set, but is it from the command line or the environment? 8008 8009 # Try to remove the string !MKDIR! from our list. 8010 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8011 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8012 # If it failed, the variable was not from the command line. Ignore it, 8013 # but warn the user (except for BASH, which is always set by the calling BASH). 8014 if test "xMKDIR" != xBASH; then 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8016 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8017 fi 8018 # Try to locate tool using the code snippet 8019 for ac_prog in mkdir 8020 do 8021 # Extract the first word of "$ac_prog", so it can be a program name with args. 8022 set dummy $ac_prog; ac_word=$2 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8024 $as_echo_n "checking for $ac_word... " >&6; } 8025 if ${ac_cv_path_MKDIR+:} false; then : 8026 $as_echo_n "(cached) " >&6 8027 else 8028 case $MKDIR in 8029 [\\/]* | ?:[\\/]*) 8030 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8031 ;; 8032 *) 8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8034 for as_dir in $PATH 8035 do 8036 IFS=$as_save_IFS 8037 test -z "$as_dir" && as_dir=. 8038 for ac_exec_ext in '' $ac_executable_extensions; do 8039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8040 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8042 break 2 8043 fi 8044 done 8045 done 8046 IFS=$as_save_IFS 8047 8048 ;; 8049 esac 8050 fi 8051 MKDIR=$ac_cv_path_MKDIR 8052 if test -n "$MKDIR"; then 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8054 $as_echo "$MKDIR" >&6; } 8055 else 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8057 $as_echo "no" >&6; } 8058 fi 8059 8060 8061 test -n "$MKDIR" && break 8062 done 8063 8064 else 8065 # If it succeeded, then it was overridden by the user. We will use it 8066 # for the tool. 8067 8068 # First remove it from the list of overridden variables, so we can test 8069 # for unknown variables in the end. 8070 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8071 8072 # Check if the provided tool contains a complete path. 8073 tool_specified="$MKDIR" 8074 tool_basename="${tool_specified##*/}" 8075 if test "x$tool_basename" = "x$tool_specified"; then 8076 # A command without a complete path is provided, search $PATH. 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8078 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8079 # Extract the first word of "$tool_basename", so it can be a program name with args. 8080 set dummy $tool_basename; ac_word=$2 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8082 $as_echo_n "checking for $ac_word... " >&6; } 8083 if ${ac_cv_path_MKDIR+:} false; then : 8084 $as_echo_n "(cached) " >&6 8085 else 8086 case $MKDIR in 8087 [\\/]* | ?:[\\/]*) 8088 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8089 ;; 8090 *) 8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8092 for as_dir in $PATH 8093 do 8094 IFS=$as_save_IFS 8095 test -z "$as_dir" && as_dir=. 8096 for ac_exec_ext in '' $ac_executable_extensions; do 8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8098 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8100 break 2 8101 fi 8102 done 8103 done 8104 IFS=$as_save_IFS 8105 8106 ;; 8107 esac 8108 fi 8109 MKDIR=$ac_cv_path_MKDIR 8110 if test -n "$MKDIR"; then 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8112 $as_echo "$MKDIR" >&6; } 8113 else 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8115 $as_echo "no" >&6; } 8116 fi 8117 8118 8119 if test "x$MKDIR" = x; then 8120 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8121 fi 8122 else 8123 # Otherwise we believe it is a complete path. Use it as it is. 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8125 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8127 $as_echo_n "checking for MKDIR... " >&6; } 8128 if test ! -x "$tool_specified"; then 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8130 $as_echo "not found" >&6; } 8131 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8132 fi 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8134 $as_echo "$tool_specified" >&6; } 8135 fi 8136 fi 8137 fi 8138 8139 8140 8141 if test "x$MKDIR" = x; then 8142 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8143 fi 8144 8145 8146 8147 8148 8149 # Publish this variable in the help. 8150 8151 8152 if test "x$MKTEMP" = x; then 8153 # The variable is not set by user, try to locate tool using the code snippet 8154 for ac_prog in mktemp 8155 do 8156 # Extract the first word of "$ac_prog", so it can be a program name with args. 8157 set dummy $ac_prog; ac_word=$2 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8159 $as_echo_n "checking for $ac_word... " >&6; } 8160 if ${ac_cv_path_MKTEMP+:} false; then : 8161 $as_echo_n "(cached) " >&6 8162 else 8163 case $MKTEMP in 8164 [\\/]* | ?:[\\/]*) 8165 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8166 ;; 8167 *) 8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8169 for as_dir in $PATH 8170 do 8171 IFS=$as_save_IFS 8172 test -z "$as_dir" && as_dir=. 8173 for ac_exec_ext in '' $ac_executable_extensions; do 8174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8175 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8177 break 2 8178 fi 8179 done 8180 done 8181 IFS=$as_save_IFS 8182 8183 ;; 8184 esac 8185 fi 8186 MKTEMP=$ac_cv_path_MKTEMP 8187 if test -n "$MKTEMP"; then 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8189 $as_echo "$MKTEMP" >&6; } 8190 else 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8192 $as_echo "no" >&6; } 8193 fi 8194 8195 8196 test -n "$MKTEMP" && break 8197 done 8198 8199 else 8200 # The variable is set, but is it from the command line or the environment? 8201 8202 # Try to remove the string !MKTEMP! from our list. 8203 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8204 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8205 # If it failed, the variable was not from the command line. Ignore it, 8206 # but warn the user (except for BASH, which is always set by the calling BASH). 8207 if test "xMKTEMP" != xBASH; then 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8209 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8210 fi 8211 # Try to locate tool using the code snippet 8212 for ac_prog in mktemp 8213 do 8214 # Extract the first word of "$ac_prog", so it can be a program name with args. 8215 set dummy $ac_prog; ac_word=$2 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8217 $as_echo_n "checking for $ac_word... " >&6; } 8218 if ${ac_cv_path_MKTEMP+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220 else 8221 case $MKTEMP in 8222 [\\/]* | ?:[\\/]*) 8223 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8224 ;; 8225 *) 8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8227 for as_dir in $PATH 8228 do 8229 IFS=$as_save_IFS 8230 test -z "$as_dir" && as_dir=. 8231 for ac_exec_ext in '' $ac_executable_extensions; do 8232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8233 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8235 break 2 8236 fi 8237 done 8238 done 8239 IFS=$as_save_IFS 8240 8241 ;; 8242 esac 8243 fi 8244 MKTEMP=$ac_cv_path_MKTEMP 8245 if test -n "$MKTEMP"; then 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8247 $as_echo "$MKTEMP" >&6; } 8248 else 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8250 $as_echo "no" >&6; } 8251 fi 8252 8253 8254 test -n "$MKTEMP" && break 8255 done 8256 8257 else 8258 # If it succeeded, then it was overridden by the user. We will use it 8259 # for the tool. 8260 8261 # First remove it from the list of overridden variables, so we can test 8262 # for unknown variables in the end. 8263 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8264 8265 # Check if the provided tool contains a complete path. 8266 tool_specified="$MKTEMP" 8267 tool_basename="${tool_specified##*/}" 8268 if test "x$tool_basename" = "x$tool_specified"; then 8269 # A command without a complete path is provided, search $PATH. 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8271 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8272 # Extract the first word of "$tool_basename", so it can be a program name with args. 8273 set dummy $tool_basename; ac_word=$2 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8275 $as_echo_n "checking for $ac_word... " >&6; } 8276 if ${ac_cv_path_MKTEMP+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278 else 8279 case $MKTEMP in 8280 [\\/]* | ?:[\\/]*) 8281 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8282 ;; 8283 *) 8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8285 for as_dir in $PATH 8286 do 8287 IFS=$as_save_IFS 8288 test -z "$as_dir" && as_dir=. 8289 for ac_exec_ext in '' $ac_executable_extensions; do 8290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8291 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8293 break 2 8294 fi 8295 done 8296 done 8297 IFS=$as_save_IFS 8298 8299 ;; 8300 esac 8301 fi 8302 MKTEMP=$ac_cv_path_MKTEMP 8303 if test -n "$MKTEMP"; then 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8305 $as_echo "$MKTEMP" >&6; } 8306 else 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8308 $as_echo "no" >&6; } 8309 fi 8310 8311 8312 if test "x$MKTEMP" = x; then 8313 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8314 fi 8315 else 8316 # Otherwise we believe it is a complete path. Use it as it is. 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8318 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8320 $as_echo_n "checking for MKTEMP... " >&6; } 8321 if test ! -x "$tool_specified"; then 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8323 $as_echo "not found" >&6; } 8324 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8325 fi 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8327 $as_echo "$tool_specified" >&6; } 8328 fi 8329 fi 8330 fi 8331 8332 8333 8334 if test "x$MKTEMP" = x; then 8335 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8336 fi 8337 8338 8339 8340 8341 8342 # Publish this variable in the help. 8343 8344 8345 if test "x$MV" = x; then 8346 # The variable is not set by user, try to locate tool using the code snippet 8347 for ac_prog in mv 8348 do 8349 # Extract the first word of "$ac_prog", so it can be a program name with args. 8350 set dummy $ac_prog; ac_word=$2 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8352 $as_echo_n "checking for $ac_word... " >&6; } 8353 if ${ac_cv_path_MV+:} false; then : 8354 $as_echo_n "(cached) " >&6 8355 else 8356 case $MV in 8357 [\\/]* | ?:[\\/]*) 8358 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8359 ;; 8360 *) 8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8362 for as_dir in $PATH 8363 do 8364 IFS=$as_save_IFS 8365 test -z "$as_dir" && as_dir=. 8366 for ac_exec_ext in '' $ac_executable_extensions; do 8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8368 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8370 break 2 8371 fi 8372 done 8373 done 8374 IFS=$as_save_IFS 8375 8376 ;; 8377 esac 8378 fi 8379 MV=$ac_cv_path_MV 8380 if test -n "$MV"; then 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8382 $as_echo "$MV" >&6; } 8383 else 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8385 $as_echo "no" >&6; } 8386 fi 8387 8388 8389 test -n "$MV" && break 8390 done 8391 8392 else 8393 # The variable is set, but is it from the command line or the environment? 8394 8395 # Try to remove the string !MV! from our list. 8396 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8397 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8398 # If it failed, the variable was not from the command line. Ignore it, 8399 # but warn the user (except for BASH, which is always set by the calling BASH). 8400 if test "xMV" != xBASH; then 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8402 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8403 fi 8404 # Try to locate tool using the code snippet 8405 for ac_prog in mv 8406 do 8407 # Extract the first word of "$ac_prog", so it can be a program name with args. 8408 set dummy $ac_prog; ac_word=$2 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8410 $as_echo_n "checking for $ac_word... " >&6; } 8411 if ${ac_cv_path_MV+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413 else 8414 case $MV in 8415 [\\/]* | ?:[\\/]*) 8416 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8417 ;; 8418 *) 8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8420 for as_dir in $PATH 8421 do 8422 IFS=$as_save_IFS 8423 test -z "$as_dir" && as_dir=. 8424 for ac_exec_ext in '' $ac_executable_extensions; do 8425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8426 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8428 break 2 8429 fi 8430 done 8431 done 8432 IFS=$as_save_IFS 8433 8434 ;; 8435 esac 8436 fi 8437 MV=$ac_cv_path_MV 8438 if test -n "$MV"; then 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8440 $as_echo "$MV" >&6; } 8441 else 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8443 $as_echo "no" >&6; } 8444 fi 8445 8446 8447 test -n "$MV" && break 8448 done 8449 8450 else 8451 # If it succeeded, then it was overridden by the user. We will use it 8452 # for the tool. 8453 8454 # First remove it from the list of overridden variables, so we can test 8455 # for unknown variables in the end. 8456 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8457 8458 # Check if the provided tool contains a complete path. 8459 tool_specified="$MV" 8460 tool_basename="${tool_specified##*/}" 8461 if test "x$tool_basename" = "x$tool_specified"; then 8462 # A command without a complete path is provided, search $PATH. 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8464 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8465 # Extract the first word of "$tool_basename", so it can be a program name with args. 8466 set dummy $tool_basename; ac_word=$2 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8468 $as_echo_n "checking for $ac_word... " >&6; } 8469 if ${ac_cv_path_MV+:} false; then : 8470 $as_echo_n "(cached) " >&6 8471 else 8472 case $MV in 8473 [\\/]* | ?:[\\/]*) 8474 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8475 ;; 8476 *) 8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8478 for as_dir in $PATH 8479 do 8480 IFS=$as_save_IFS 8481 test -z "$as_dir" && as_dir=. 8482 for ac_exec_ext in '' $ac_executable_extensions; do 8483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8484 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8486 break 2 8487 fi 8488 done 8489 done 8490 IFS=$as_save_IFS 8491 8492 ;; 8493 esac 8494 fi 8495 MV=$ac_cv_path_MV 8496 if test -n "$MV"; then 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8498 $as_echo "$MV" >&6; } 8499 else 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8501 $as_echo "no" >&6; } 8502 fi 8503 8504 8505 if test "x$MV" = x; then 8506 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8507 fi 8508 else 8509 # Otherwise we believe it is a complete path. Use it as it is. 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8511 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8513 $as_echo_n "checking for MV... " >&6; } 8514 if test ! -x "$tool_specified"; then 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8516 $as_echo "not found" >&6; } 8517 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8518 fi 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8520 $as_echo "$tool_specified" >&6; } 8521 fi 8522 fi 8523 fi 8524 8525 8526 8527 if test "x$MV" = x; then 8528 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8529 fi 8530 8531 8532 8533 8534 8535 # Publish this variable in the help. 8536 8537 8538 if test "x$NAWK" = x; then 8539 # The variable is not set by user, try to locate tool using the code snippet 8540 for ac_prog in nawk gawk awk 8541 do 8542 # Extract the first word of "$ac_prog", so it can be a program name with args. 8543 set dummy $ac_prog; ac_word=$2 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8545 $as_echo_n "checking for $ac_word... " >&6; } 8546 if ${ac_cv_path_NAWK+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548 else 8549 case $NAWK in 8550 [\\/]* | ?:[\\/]*) 8551 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8552 ;; 8553 *) 8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8555 for as_dir in $PATH 8556 do 8557 IFS=$as_save_IFS 8558 test -z "$as_dir" && as_dir=. 8559 for ac_exec_ext in '' $ac_executable_extensions; do 8560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8561 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8563 break 2 8564 fi 8565 done 8566 done 8567 IFS=$as_save_IFS 8568 8569 ;; 8570 esac 8571 fi 8572 NAWK=$ac_cv_path_NAWK 8573 if test -n "$NAWK"; then 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8575 $as_echo "$NAWK" >&6; } 8576 else 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8578 $as_echo "no" >&6; } 8579 fi 8580 8581 8582 test -n "$NAWK" && break 8583 done 8584 8585 else 8586 # The variable is set, but is it from the command line or the environment? 8587 8588 # Try to remove the string !NAWK! from our list. 8589 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8590 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8591 # If it failed, the variable was not from the command line. Ignore it, 8592 # but warn the user (except for BASH, which is always set by the calling BASH). 8593 if test "xNAWK" != xBASH; then 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8595 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8596 fi 8597 # Try to locate tool using the code snippet 8598 for ac_prog in nawk gawk awk 8599 do 8600 # Extract the first word of "$ac_prog", so it can be a program name with args. 8601 set dummy $ac_prog; ac_word=$2 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8603 $as_echo_n "checking for $ac_word... " >&6; } 8604 if ${ac_cv_path_NAWK+:} false; then : 8605 $as_echo_n "(cached) " >&6 8606 else 8607 case $NAWK in 8608 [\\/]* | ?:[\\/]*) 8609 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8610 ;; 8611 *) 8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8613 for as_dir in $PATH 8614 do 8615 IFS=$as_save_IFS 8616 test -z "$as_dir" && as_dir=. 8617 for ac_exec_ext in '' $ac_executable_extensions; do 8618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8619 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8621 break 2 8622 fi 8623 done 8624 done 8625 IFS=$as_save_IFS 8626 8627 ;; 8628 esac 8629 fi 8630 NAWK=$ac_cv_path_NAWK 8631 if test -n "$NAWK"; then 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8633 $as_echo "$NAWK" >&6; } 8634 else 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8636 $as_echo "no" >&6; } 8637 fi 8638 8639 8640 test -n "$NAWK" && break 8641 done 8642 8643 else 8644 # If it succeeded, then it was overridden by the user. We will use it 8645 # for the tool. 8646 8647 # First remove it from the list of overridden variables, so we can test 8648 # for unknown variables in the end. 8649 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8650 8651 # Check if the provided tool contains a complete path. 8652 tool_specified="$NAWK" 8653 tool_basename="${tool_specified##*/}" 8654 if test "x$tool_basename" = "x$tool_specified"; then 8655 # A command without a complete path is provided, search $PATH. 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8657 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8658 # Extract the first word of "$tool_basename", so it can be a program name with args. 8659 set dummy $tool_basename; ac_word=$2 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8661 $as_echo_n "checking for $ac_word... " >&6; } 8662 if ${ac_cv_path_NAWK+:} false; then : 8663 $as_echo_n "(cached) " >&6 8664 else 8665 case $NAWK in 8666 [\\/]* | ?:[\\/]*) 8667 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8668 ;; 8669 *) 8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8671 for as_dir in $PATH 8672 do 8673 IFS=$as_save_IFS 8674 test -z "$as_dir" && as_dir=. 8675 for ac_exec_ext in '' $ac_executable_extensions; do 8676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8677 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8679 break 2 8680 fi 8681 done 8682 done 8683 IFS=$as_save_IFS 8684 8685 ;; 8686 esac 8687 fi 8688 NAWK=$ac_cv_path_NAWK 8689 if test -n "$NAWK"; then 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8691 $as_echo "$NAWK" >&6; } 8692 else 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8694 $as_echo "no" >&6; } 8695 fi 8696 8697 8698 if test "x$NAWK" = x; then 8699 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8700 fi 8701 else 8702 # Otherwise we believe it is a complete path. Use it as it is. 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8704 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8706 $as_echo_n "checking for NAWK... " >&6; } 8707 if test ! -x "$tool_specified"; then 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8709 $as_echo "not found" >&6; } 8710 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8711 fi 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8713 $as_echo "$tool_specified" >&6; } 8714 fi 8715 fi 8716 fi 8717 8718 8719 8720 if test "x$NAWK" = x; then 8721 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8722 fi 8723 8724 8725 8726 8727 8728 # Publish this variable in the help. 8729 8730 8731 if test "x$PRINTF" = x; then 8732 # The variable is not set by user, try to locate tool using the code snippet 8733 for ac_prog in printf 8734 do 8735 # Extract the first word of "$ac_prog", so it can be a program name with args. 8736 set dummy $ac_prog; ac_word=$2 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8738 $as_echo_n "checking for $ac_word... " >&6; } 8739 if ${ac_cv_path_PRINTF+:} false; then : 8740 $as_echo_n "(cached) " >&6 8741 else 8742 case $PRINTF in 8743 [\\/]* | ?:[\\/]*) 8744 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8745 ;; 8746 *) 8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8748 for as_dir in $PATH 8749 do 8750 IFS=$as_save_IFS 8751 test -z "$as_dir" && as_dir=. 8752 for ac_exec_ext in '' $ac_executable_extensions; do 8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8754 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8756 break 2 8757 fi 8758 done 8759 done 8760 IFS=$as_save_IFS 8761 8762 ;; 8763 esac 8764 fi 8765 PRINTF=$ac_cv_path_PRINTF 8766 if test -n "$PRINTF"; then 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8768 $as_echo "$PRINTF" >&6; } 8769 else 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8771 $as_echo "no" >&6; } 8772 fi 8773 8774 8775 test -n "$PRINTF" && break 8776 done 8777 8778 else 8779 # The variable is set, but is it from the command line or the environment? 8780 8781 # Try to remove the string !PRINTF! from our list. 8782 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8783 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8784 # If it failed, the variable was not from the command line. Ignore it, 8785 # but warn the user (except for BASH, which is always set by the calling BASH). 8786 if test "xPRINTF" != xBASH; then 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8788 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8789 fi 8790 # Try to locate tool using the code snippet 8791 for ac_prog in printf 8792 do 8793 # Extract the first word of "$ac_prog", so it can be a program name with args. 8794 set dummy $ac_prog; ac_word=$2 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8796 $as_echo_n "checking for $ac_word... " >&6; } 8797 if ${ac_cv_path_PRINTF+:} false; then : 8798 $as_echo_n "(cached) " >&6 8799 else 8800 case $PRINTF in 8801 [\\/]* | ?:[\\/]*) 8802 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8803 ;; 8804 *) 8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8806 for as_dir in $PATH 8807 do 8808 IFS=$as_save_IFS 8809 test -z "$as_dir" && as_dir=. 8810 for ac_exec_ext in '' $ac_executable_extensions; do 8811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8812 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8814 break 2 8815 fi 8816 done 8817 done 8818 IFS=$as_save_IFS 8819 8820 ;; 8821 esac 8822 fi 8823 PRINTF=$ac_cv_path_PRINTF 8824 if test -n "$PRINTF"; then 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8826 $as_echo "$PRINTF" >&6; } 8827 else 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8829 $as_echo "no" >&6; } 8830 fi 8831 8832 8833 test -n "$PRINTF" && break 8834 done 8835 8836 else 8837 # If it succeeded, then it was overridden by the user. We will use it 8838 # for the tool. 8839 8840 # First remove it from the list of overridden variables, so we can test 8841 # for unknown variables in the end. 8842 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8843 8844 # Check if the provided tool contains a complete path. 8845 tool_specified="$PRINTF" 8846 tool_basename="${tool_specified##*/}" 8847 if test "x$tool_basename" = "x$tool_specified"; then 8848 # A command without a complete path is provided, search $PATH. 8849 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8850 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8851 # Extract the first word of "$tool_basename", so it can be a program name with args. 8852 set dummy $tool_basename; ac_word=$2 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8854 $as_echo_n "checking for $ac_word... " >&6; } 8855 if ${ac_cv_path_PRINTF+:} false; then : 8856 $as_echo_n "(cached) " >&6 8857 else 8858 case $PRINTF in 8859 [\\/]* | ?:[\\/]*) 8860 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8861 ;; 8862 *) 8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8864 for as_dir in $PATH 8865 do 8866 IFS=$as_save_IFS 8867 test -z "$as_dir" && as_dir=. 8868 for ac_exec_ext in '' $ac_executable_extensions; do 8869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8870 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8872 break 2 8873 fi 8874 done 8875 done 8876 IFS=$as_save_IFS 8877 8878 ;; 8879 esac 8880 fi 8881 PRINTF=$ac_cv_path_PRINTF 8882 if test -n "$PRINTF"; then 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8884 $as_echo "$PRINTF" >&6; } 8885 else 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8887 $as_echo "no" >&6; } 8888 fi 8889 8890 8891 if test "x$PRINTF" = x; then 8892 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8893 fi 8894 else 8895 # Otherwise we believe it is a complete path. Use it as it is. 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8897 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8899 $as_echo_n "checking for PRINTF... " >&6; } 8900 if test ! -x "$tool_specified"; then 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8902 $as_echo "not found" >&6; } 8903 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8904 fi 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8906 $as_echo "$tool_specified" >&6; } 8907 fi 8908 fi 8909 fi 8910 8911 8912 8913 if test "x$PRINTF" = x; then 8914 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8915 fi 8916 8917 8918 8919 8920 8921 # Publish this variable in the help. 8922 8923 8924 if test "x$RM" = x; then 8925 # The variable is not set by user, try to locate tool using the code snippet 8926 for ac_prog in rm 8927 do 8928 # Extract the first word of "$ac_prog", so it can be a program name with args. 8929 set dummy $ac_prog; ac_word=$2 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8931 $as_echo_n "checking for $ac_word... " >&6; } 8932 if ${ac_cv_path_RM+:} false; then : 8933 $as_echo_n "(cached) " >&6 8934 else 8935 case $RM in 8936 [\\/]* | ?:[\\/]*) 8937 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8938 ;; 8939 *) 8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8941 for as_dir in $PATH 8942 do 8943 IFS=$as_save_IFS 8944 test -z "$as_dir" && as_dir=. 8945 for ac_exec_ext in '' $ac_executable_extensions; do 8946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8947 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8949 break 2 8950 fi 8951 done 8952 done 8953 IFS=$as_save_IFS 8954 8955 ;; 8956 esac 8957 fi 8958 RM=$ac_cv_path_RM 8959 if test -n "$RM"; then 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8961 $as_echo "$RM" >&6; } 8962 else 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8964 $as_echo "no" >&6; } 8965 fi 8966 8967 8968 test -n "$RM" && break 8969 done 8970 8971 else 8972 # The variable is set, but is it from the command line or the environment? 8973 8974 # Try to remove the string !RM! from our list. 8975 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8976 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8977 # If it failed, the variable was not from the command line. Ignore it, 8978 # but warn the user (except for BASH, which is always set by the calling BASH). 8979 if test "xRM" != xBASH; then 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8981 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8982 fi 8983 # Try to locate tool using the code snippet 8984 for ac_prog in rm 8985 do 8986 # Extract the first word of "$ac_prog", so it can be a program name with args. 8987 set dummy $ac_prog; ac_word=$2 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8989 $as_echo_n "checking for $ac_word... " >&6; } 8990 if ${ac_cv_path_RM+:} false; then : 8991 $as_echo_n "(cached) " >&6 8992 else 8993 case $RM in 8994 [\\/]* | ?:[\\/]*) 8995 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8996 ;; 8997 *) 8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8999 for as_dir in $PATH 9000 do 9001 IFS=$as_save_IFS 9002 test -z "$as_dir" && as_dir=. 9003 for ac_exec_ext in '' $ac_executable_extensions; do 9004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9005 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9007 break 2 9008 fi 9009 done 9010 done 9011 IFS=$as_save_IFS 9012 9013 ;; 9014 esac 9015 fi 9016 RM=$ac_cv_path_RM 9017 if test -n "$RM"; then 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9019 $as_echo "$RM" >&6; } 9020 else 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9022 $as_echo "no" >&6; } 9023 fi 9024 9025 9026 test -n "$RM" && break 9027 done 9028 9029 else 9030 # If it succeeded, then it was overridden by the user. We will use it 9031 # for the tool. 9032 9033 # First remove it from the list of overridden variables, so we can test 9034 # for unknown variables in the end. 9035 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9036 9037 # Check if the provided tool contains a complete path. 9038 tool_specified="$RM" 9039 tool_basename="${tool_specified##*/}" 9040 if test "x$tool_basename" = "x$tool_specified"; then 9041 # A command without a complete path is provided, search $PATH. 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9043 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9044 # Extract the first word of "$tool_basename", so it can be a program name with args. 9045 set dummy $tool_basename; ac_word=$2 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9047 $as_echo_n "checking for $ac_word... " >&6; } 9048 if ${ac_cv_path_RM+:} false; then : 9049 $as_echo_n "(cached) " >&6 9050 else 9051 case $RM in 9052 [\\/]* | ?:[\\/]*) 9053 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9054 ;; 9055 *) 9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9057 for as_dir in $PATH 9058 do 9059 IFS=$as_save_IFS 9060 test -z "$as_dir" && as_dir=. 9061 for ac_exec_ext in '' $ac_executable_extensions; do 9062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9063 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9065 break 2 9066 fi 9067 done 9068 done 9069 IFS=$as_save_IFS 9070 9071 ;; 9072 esac 9073 fi 9074 RM=$ac_cv_path_RM 9075 if test -n "$RM"; then 9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9077 $as_echo "$RM" >&6; } 9078 else 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9080 $as_echo "no" >&6; } 9081 fi 9082 9083 9084 if test "x$RM" = x; then 9085 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9086 fi 9087 else 9088 # Otherwise we believe it is a complete path. Use it as it is. 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9090 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9092 $as_echo_n "checking for RM... " >&6; } 9093 if test ! -x "$tool_specified"; then 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9095 $as_echo "not found" >&6; } 9096 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9097 fi 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9099 $as_echo "$tool_specified" >&6; } 9100 fi 9101 fi 9102 fi 9103 9104 9105 9106 if test "x$RM" = x; then 9107 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9108 fi 9109 9110 9111 9112 9113 9114 # Publish this variable in the help. 9115 9116 9117 if test "x$SH" = x; then 9118 # The variable is not set by user, try to locate tool using the code snippet 9119 for ac_prog in sh 9120 do 9121 # Extract the first word of "$ac_prog", so it can be a program name with args. 9122 set dummy $ac_prog; ac_word=$2 9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9124 $as_echo_n "checking for $ac_word... " >&6; } 9125 if ${ac_cv_path_SH+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127 else 9128 case $SH in 9129 [\\/]* | ?:[\\/]*) 9130 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9131 ;; 9132 *) 9133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9134 for as_dir in $PATH 9135 do 9136 IFS=$as_save_IFS 9137 test -z "$as_dir" && as_dir=. 9138 for ac_exec_ext in '' $ac_executable_extensions; do 9139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9140 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9142 break 2 9143 fi 9144 done 9145 done 9146 IFS=$as_save_IFS 9147 9148 ;; 9149 esac 9150 fi 9151 SH=$ac_cv_path_SH 9152 if test -n "$SH"; then 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9154 $as_echo "$SH" >&6; } 9155 else 9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9157 $as_echo "no" >&6; } 9158 fi 9159 9160 9161 test -n "$SH" && break 9162 done 9163 9164 else 9165 # The variable is set, but is it from the command line or the environment? 9166 9167 # Try to remove the string !SH! from our list. 9168 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9169 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9170 # If it failed, the variable was not from the command line. Ignore it, 9171 # but warn the user (except for BASH, which is always set by the calling BASH). 9172 if test "xSH" != xBASH; then 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9174 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9175 fi 9176 # Try to locate tool using the code snippet 9177 for ac_prog in sh 9178 do 9179 # Extract the first word of "$ac_prog", so it can be a program name with args. 9180 set dummy $ac_prog; ac_word=$2 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9182 $as_echo_n "checking for $ac_word... " >&6; } 9183 if ${ac_cv_path_SH+:} false; then : 9184 $as_echo_n "(cached) " >&6 9185 else 9186 case $SH in 9187 [\\/]* | ?:[\\/]*) 9188 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9189 ;; 9190 *) 9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9192 for as_dir in $PATH 9193 do 9194 IFS=$as_save_IFS 9195 test -z "$as_dir" && as_dir=. 9196 for ac_exec_ext in '' $ac_executable_extensions; do 9197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9198 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9200 break 2 9201 fi 9202 done 9203 done 9204 IFS=$as_save_IFS 9205 9206 ;; 9207 esac 9208 fi 9209 SH=$ac_cv_path_SH 9210 if test -n "$SH"; then 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9212 $as_echo "$SH" >&6; } 9213 else 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9215 $as_echo "no" >&6; } 9216 fi 9217 9218 9219 test -n "$SH" && break 9220 done 9221 9222 else 9223 # If it succeeded, then it was overridden by the user. We will use it 9224 # for the tool. 9225 9226 # First remove it from the list of overridden variables, so we can test 9227 # for unknown variables in the end. 9228 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9229 9230 # Check if the provided tool contains a complete path. 9231 tool_specified="$SH" 9232 tool_basename="${tool_specified##*/}" 9233 if test "x$tool_basename" = "x$tool_specified"; then 9234 # A command without a complete path is provided, search $PATH. 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9236 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9237 # Extract the first word of "$tool_basename", so it can be a program name with args. 9238 set dummy $tool_basename; ac_word=$2 9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9240 $as_echo_n "checking for $ac_word... " >&6; } 9241 if ${ac_cv_path_SH+:} false; then : 9242 $as_echo_n "(cached) " >&6 9243 else 9244 case $SH in 9245 [\\/]* | ?:[\\/]*) 9246 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9247 ;; 9248 *) 9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9250 for as_dir in $PATH 9251 do 9252 IFS=$as_save_IFS 9253 test -z "$as_dir" && as_dir=. 9254 for ac_exec_ext in '' $ac_executable_extensions; do 9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9256 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9258 break 2 9259 fi 9260 done 9261 done 9262 IFS=$as_save_IFS 9263 9264 ;; 9265 esac 9266 fi 9267 SH=$ac_cv_path_SH 9268 if test -n "$SH"; then 9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9270 $as_echo "$SH" >&6; } 9271 else 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9273 $as_echo "no" >&6; } 9274 fi 9275 9276 9277 if test "x$SH" = x; then 9278 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9279 fi 9280 else 9281 # Otherwise we believe it is a complete path. Use it as it is. 9282 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9283 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9285 $as_echo_n "checking for SH... " >&6; } 9286 if test ! -x "$tool_specified"; then 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9288 $as_echo "not found" >&6; } 9289 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9290 fi 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9292 $as_echo "$tool_specified" >&6; } 9293 fi 9294 fi 9295 fi 9296 9297 9298 9299 if test "x$SH" = x; then 9300 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9301 fi 9302 9303 9304 9305 9306 9307 # Publish this variable in the help. 9308 9309 9310 if test "x$SORT" = x; then 9311 # The variable is not set by user, try to locate tool using the code snippet 9312 for ac_prog in sort 9313 do 9314 # Extract the first word of "$ac_prog", so it can be a program name with args. 9315 set dummy $ac_prog; ac_word=$2 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9317 $as_echo_n "checking for $ac_word... " >&6; } 9318 if ${ac_cv_path_SORT+:} false; then : 9319 $as_echo_n "(cached) " >&6 9320 else 9321 case $SORT in 9322 [\\/]* | ?:[\\/]*) 9323 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9324 ;; 9325 *) 9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9327 for as_dir in $PATH 9328 do 9329 IFS=$as_save_IFS 9330 test -z "$as_dir" && as_dir=. 9331 for ac_exec_ext in '' $ac_executable_extensions; do 9332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9333 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9335 break 2 9336 fi 9337 done 9338 done 9339 IFS=$as_save_IFS 9340 9341 ;; 9342 esac 9343 fi 9344 SORT=$ac_cv_path_SORT 9345 if test -n "$SORT"; then 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9347 $as_echo "$SORT" >&6; } 9348 else 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9350 $as_echo "no" >&6; } 9351 fi 9352 9353 9354 test -n "$SORT" && break 9355 done 9356 9357 else 9358 # The variable is set, but is it from the command line or the environment? 9359 9360 # Try to remove the string !SORT! from our list. 9361 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9362 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9363 # If it failed, the variable was not from the command line. Ignore it, 9364 # but warn the user (except for BASH, which is always set by the calling BASH). 9365 if test "xSORT" != xBASH; then 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9367 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9368 fi 9369 # Try to locate tool using the code snippet 9370 for ac_prog in sort 9371 do 9372 # Extract the first word of "$ac_prog", so it can be a program name with args. 9373 set dummy $ac_prog; ac_word=$2 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9375 $as_echo_n "checking for $ac_word... " >&6; } 9376 if ${ac_cv_path_SORT+:} false; then : 9377 $as_echo_n "(cached) " >&6 9378 else 9379 case $SORT in 9380 [\\/]* | ?:[\\/]*) 9381 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9382 ;; 9383 *) 9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9385 for as_dir in $PATH 9386 do 9387 IFS=$as_save_IFS 9388 test -z "$as_dir" && as_dir=. 9389 for ac_exec_ext in '' $ac_executable_extensions; do 9390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9391 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9393 break 2 9394 fi 9395 done 9396 done 9397 IFS=$as_save_IFS 9398 9399 ;; 9400 esac 9401 fi 9402 SORT=$ac_cv_path_SORT 9403 if test -n "$SORT"; then 9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9405 $as_echo "$SORT" >&6; } 9406 else 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9408 $as_echo "no" >&6; } 9409 fi 9410 9411 9412 test -n "$SORT" && break 9413 done 9414 9415 else 9416 # If it succeeded, then it was overridden by the user. We will use it 9417 # for the tool. 9418 9419 # First remove it from the list of overridden variables, so we can test 9420 # for unknown variables in the end. 9421 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9422 9423 # Check if the provided tool contains a complete path. 9424 tool_specified="$SORT" 9425 tool_basename="${tool_specified##*/}" 9426 if test "x$tool_basename" = "x$tool_specified"; then 9427 # A command without a complete path is provided, search $PATH. 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9429 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9430 # Extract the first word of "$tool_basename", so it can be a program name with args. 9431 set dummy $tool_basename; ac_word=$2 9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9433 $as_echo_n "checking for $ac_word... " >&6; } 9434 if ${ac_cv_path_SORT+:} false; then : 9435 $as_echo_n "(cached) " >&6 9436 else 9437 case $SORT in 9438 [\\/]* | ?:[\\/]*) 9439 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9440 ;; 9441 *) 9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9443 for as_dir in $PATH 9444 do 9445 IFS=$as_save_IFS 9446 test -z "$as_dir" && as_dir=. 9447 for ac_exec_ext in '' $ac_executable_extensions; do 9448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9449 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9451 break 2 9452 fi 9453 done 9454 done 9455 IFS=$as_save_IFS 9456 9457 ;; 9458 esac 9459 fi 9460 SORT=$ac_cv_path_SORT 9461 if test -n "$SORT"; then 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9463 $as_echo "$SORT" >&6; } 9464 else 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9466 $as_echo "no" >&6; } 9467 fi 9468 9469 9470 if test "x$SORT" = x; then 9471 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9472 fi 9473 else 9474 # Otherwise we believe it is a complete path. Use it as it is. 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9476 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9478 $as_echo_n "checking for SORT... " >&6; } 9479 if test ! -x "$tool_specified"; then 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9481 $as_echo "not found" >&6; } 9482 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9483 fi 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9485 $as_echo "$tool_specified" >&6; } 9486 fi 9487 fi 9488 fi 9489 9490 9491 9492 if test "x$SORT" = x; then 9493 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9494 fi 9495 9496 9497 9498 9499 9500 # Publish this variable in the help. 9501 9502 9503 if test "x$TAIL" = x; then 9504 # The variable is not set by user, try to locate tool using the code snippet 9505 for ac_prog in tail 9506 do 9507 # Extract the first word of "$ac_prog", so it can be a program name with args. 9508 set dummy $ac_prog; ac_word=$2 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9510 $as_echo_n "checking for $ac_word... " >&6; } 9511 if ${ac_cv_path_TAIL+:} false; then : 9512 $as_echo_n "(cached) " >&6 9513 else 9514 case $TAIL in 9515 [\\/]* | ?:[\\/]*) 9516 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9517 ;; 9518 *) 9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9520 for as_dir in $PATH 9521 do 9522 IFS=$as_save_IFS 9523 test -z "$as_dir" && as_dir=. 9524 for ac_exec_ext in '' $ac_executable_extensions; do 9525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9526 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9528 break 2 9529 fi 9530 done 9531 done 9532 IFS=$as_save_IFS 9533 9534 ;; 9535 esac 9536 fi 9537 TAIL=$ac_cv_path_TAIL 9538 if test -n "$TAIL"; then 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9540 $as_echo "$TAIL" >&6; } 9541 else 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9543 $as_echo "no" >&6; } 9544 fi 9545 9546 9547 test -n "$TAIL" && break 9548 done 9549 9550 else 9551 # The variable is set, but is it from the command line or the environment? 9552 9553 # Try to remove the string !TAIL! from our list. 9554 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9555 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9556 # If it failed, the variable was not from the command line. Ignore it, 9557 # but warn the user (except for BASH, which is always set by the calling BASH). 9558 if test "xTAIL" != xBASH; then 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9560 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9561 fi 9562 # Try to locate tool using the code snippet 9563 for ac_prog in tail 9564 do 9565 # Extract the first word of "$ac_prog", so it can be a program name with args. 9566 set dummy $ac_prog; ac_word=$2 9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9568 $as_echo_n "checking for $ac_word... " >&6; } 9569 if ${ac_cv_path_TAIL+:} false; then : 9570 $as_echo_n "(cached) " >&6 9571 else 9572 case $TAIL in 9573 [\\/]* | ?:[\\/]*) 9574 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9575 ;; 9576 *) 9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9578 for as_dir in $PATH 9579 do 9580 IFS=$as_save_IFS 9581 test -z "$as_dir" && as_dir=. 9582 for ac_exec_ext in '' $ac_executable_extensions; do 9583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9584 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9586 break 2 9587 fi 9588 done 9589 done 9590 IFS=$as_save_IFS 9591 9592 ;; 9593 esac 9594 fi 9595 TAIL=$ac_cv_path_TAIL 9596 if test -n "$TAIL"; then 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9598 $as_echo "$TAIL" >&6; } 9599 else 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9601 $as_echo "no" >&6; } 9602 fi 9603 9604 9605 test -n "$TAIL" && break 9606 done 9607 9608 else 9609 # If it succeeded, then it was overridden by the user. We will use it 9610 # for the tool. 9611 9612 # First remove it from the list of overridden variables, so we can test 9613 # for unknown variables in the end. 9614 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9615 9616 # Check if the provided tool contains a complete path. 9617 tool_specified="$TAIL" 9618 tool_basename="${tool_specified##*/}" 9619 if test "x$tool_basename" = "x$tool_specified"; then 9620 # A command without a complete path is provided, search $PATH. 9621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9622 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9623 # Extract the first word of "$tool_basename", so it can be a program name with args. 9624 set dummy $tool_basename; ac_word=$2 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9626 $as_echo_n "checking for $ac_word... " >&6; } 9627 if ${ac_cv_path_TAIL+:} false; then : 9628 $as_echo_n "(cached) " >&6 9629 else 9630 case $TAIL in 9631 [\\/]* | ?:[\\/]*) 9632 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9633 ;; 9634 *) 9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9636 for as_dir in $PATH 9637 do 9638 IFS=$as_save_IFS 9639 test -z "$as_dir" && as_dir=. 9640 for ac_exec_ext in '' $ac_executable_extensions; do 9641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9642 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9644 break 2 9645 fi 9646 done 9647 done 9648 IFS=$as_save_IFS 9649 9650 ;; 9651 esac 9652 fi 9653 TAIL=$ac_cv_path_TAIL 9654 if test -n "$TAIL"; then 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9656 $as_echo "$TAIL" >&6; } 9657 else 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9659 $as_echo "no" >&6; } 9660 fi 9661 9662 9663 if test "x$TAIL" = x; then 9664 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9665 fi 9666 else 9667 # Otherwise we believe it is a complete path. Use it as it is. 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9669 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9671 $as_echo_n "checking for TAIL... " >&6; } 9672 if test ! -x "$tool_specified"; then 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9674 $as_echo "not found" >&6; } 9675 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9676 fi 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9678 $as_echo "$tool_specified" >&6; } 9679 fi 9680 fi 9681 fi 9682 9683 9684 9685 if test "x$TAIL" = x; then 9686 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9687 fi 9688 9689 9690 9691 9692 9693 # Publish this variable in the help. 9694 9695 9696 if test "x$TAR" = x; then 9697 # The variable is not set by user, try to locate tool using the code snippet 9698 for ac_prog in tar 9699 do 9700 # Extract the first word of "$ac_prog", so it can be a program name with args. 9701 set dummy $ac_prog; ac_word=$2 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9703 $as_echo_n "checking for $ac_word... " >&6; } 9704 if ${ac_cv_path_TAR+:} false; then : 9705 $as_echo_n "(cached) " >&6 9706 else 9707 case $TAR in 9708 [\\/]* | ?:[\\/]*) 9709 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9710 ;; 9711 *) 9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9713 for as_dir in $PATH 9714 do 9715 IFS=$as_save_IFS 9716 test -z "$as_dir" && as_dir=. 9717 for ac_exec_ext in '' $ac_executable_extensions; do 9718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9719 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9721 break 2 9722 fi 9723 done 9724 done 9725 IFS=$as_save_IFS 9726 9727 ;; 9728 esac 9729 fi 9730 TAR=$ac_cv_path_TAR 9731 if test -n "$TAR"; then 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9733 $as_echo "$TAR" >&6; } 9734 else 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9736 $as_echo "no" >&6; } 9737 fi 9738 9739 9740 test -n "$TAR" && break 9741 done 9742 9743 else 9744 # The variable is set, but is it from the command line or the environment? 9745 9746 # Try to remove the string !TAR! from our list. 9747 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9748 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9749 # If it failed, the variable was not from the command line. Ignore it, 9750 # but warn the user (except for BASH, which is always set by the calling BASH). 9751 if test "xTAR" != xBASH; then 9752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9753 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9754 fi 9755 # Try to locate tool using the code snippet 9756 for ac_prog in tar 9757 do 9758 # Extract the first word of "$ac_prog", so it can be a program name with args. 9759 set dummy $ac_prog; ac_word=$2 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9761 $as_echo_n "checking for $ac_word... " >&6; } 9762 if ${ac_cv_path_TAR+:} false; then : 9763 $as_echo_n "(cached) " >&6 9764 else 9765 case $TAR in 9766 [\\/]* | ?:[\\/]*) 9767 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9768 ;; 9769 *) 9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9771 for as_dir in $PATH 9772 do 9773 IFS=$as_save_IFS 9774 test -z "$as_dir" && as_dir=. 9775 for ac_exec_ext in '' $ac_executable_extensions; do 9776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9777 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9779 break 2 9780 fi 9781 done 9782 done 9783 IFS=$as_save_IFS 9784 9785 ;; 9786 esac 9787 fi 9788 TAR=$ac_cv_path_TAR 9789 if test -n "$TAR"; then 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9791 $as_echo "$TAR" >&6; } 9792 else 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9794 $as_echo "no" >&6; } 9795 fi 9796 9797 9798 test -n "$TAR" && break 9799 done 9800 9801 else 9802 # If it succeeded, then it was overridden by the user. We will use it 9803 # for the tool. 9804 9805 # First remove it from the list of overridden variables, so we can test 9806 # for unknown variables in the end. 9807 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9808 9809 # Check if the provided tool contains a complete path. 9810 tool_specified="$TAR" 9811 tool_basename="${tool_specified##*/}" 9812 if test "x$tool_basename" = "x$tool_specified"; then 9813 # A command without a complete path is provided, search $PATH. 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9815 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9816 # Extract the first word of "$tool_basename", so it can be a program name with args. 9817 set dummy $tool_basename; ac_word=$2 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9819 $as_echo_n "checking for $ac_word... " >&6; } 9820 if ${ac_cv_path_TAR+:} false; then : 9821 $as_echo_n "(cached) " >&6 9822 else 9823 case $TAR in 9824 [\\/]* | ?:[\\/]*) 9825 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9826 ;; 9827 *) 9828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9829 for as_dir in $PATH 9830 do 9831 IFS=$as_save_IFS 9832 test -z "$as_dir" && as_dir=. 9833 for ac_exec_ext in '' $ac_executable_extensions; do 9834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9835 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9837 break 2 9838 fi 9839 done 9840 done 9841 IFS=$as_save_IFS 9842 9843 ;; 9844 esac 9845 fi 9846 TAR=$ac_cv_path_TAR 9847 if test -n "$TAR"; then 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9849 $as_echo "$TAR" >&6; } 9850 else 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9852 $as_echo "no" >&6; } 9853 fi 9854 9855 9856 if test "x$TAR" = x; then 9857 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9858 fi 9859 else 9860 # Otherwise we believe it is a complete path. Use it as it is. 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9862 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9864 $as_echo_n "checking for TAR... " >&6; } 9865 if test ! -x "$tool_specified"; then 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9867 $as_echo "not found" >&6; } 9868 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9869 fi 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9871 $as_echo "$tool_specified" >&6; } 9872 fi 9873 fi 9874 fi 9875 9876 9877 9878 if test "x$TAR" = x; then 9879 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9880 fi 9881 9882 9883 9884 9885 9886 # Publish this variable in the help. 9887 9888 9889 if test "x$TEE" = x; then 9890 # The variable is not set by user, try to locate tool using the code snippet 9891 for ac_prog in tee 9892 do 9893 # Extract the first word of "$ac_prog", so it can be a program name with args. 9894 set dummy $ac_prog; ac_word=$2 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9896 $as_echo_n "checking for $ac_word... " >&6; } 9897 if ${ac_cv_path_TEE+:} false; then : 9898 $as_echo_n "(cached) " >&6 9899 else 9900 case $TEE in 9901 [\\/]* | ?:[\\/]*) 9902 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9903 ;; 9904 *) 9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9906 for as_dir in $PATH 9907 do 9908 IFS=$as_save_IFS 9909 test -z "$as_dir" && as_dir=. 9910 for ac_exec_ext in '' $ac_executable_extensions; do 9911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9912 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9914 break 2 9915 fi 9916 done 9917 done 9918 IFS=$as_save_IFS 9919 9920 ;; 9921 esac 9922 fi 9923 TEE=$ac_cv_path_TEE 9924 if test -n "$TEE"; then 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9926 $as_echo "$TEE" >&6; } 9927 else 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9929 $as_echo "no" >&6; } 9930 fi 9931 9932 9933 test -n "$TEE" && break 9934 done 9935 9936 else 9937 # The variable is set, but is it from the command line or the environment? 9938 9939 # Try to remove the string !TEE! from our list. 9940 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9941 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9942 # If it failed, the variable was not from the command line. Ignore it, 9943 # but warn the user (except for BASH, which is always set by the calling BASH). 9944 if test "xTEE" != xBASH; then 9945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9946 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9947 fi 9948 # Try to locate tool using the code snippet 9949 for ac_prog in tee 9950 do 9951 # Extract the first word of "$ac_prog", so it can be a program name with args. 9952 set dummy $ac_prog; ac_word=$2 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9954 $as_echo_n "checking for $ac_word... " >&6; } 9955 if ${ac_cv_path_TEE+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957 else 9958 case $TEE in 9959 [\\/]* | ?:[\\/]*) 9960 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9961 ;; 9962 *) 9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9964 for as_dir in $PATH 9965 do 9966 IFS=$as_save_IFS 9967 test -z "$as_dir" && as_dir=. 9968 for ac_exec_ext in '' $ac_executable_extensions; do 9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9970 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9972 break 2 9973 fi 9974 done 9975 done 9976 IFS=$as_save_IFS 9977 9978 ;; 9979 esac 9980 fi 9981 TEE=$ac_cv_path_TEE 9982 if test -n "$TEE"; then 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9984 $as_echo "$TEE" >&6; } 9985 else 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9987 $as_echo "no" >&6; } 9988 fi 9989 9990 9991 test -n "$TEE" && break 9992 done 9993 9994 else 9995 # If it succeeded, then it was overridden by the user. We will use it 9996 # for the tool. 9997 9998 # First remove it from the list of overridden variables, so we can test 9999 # for unknown variables in the end. 10000 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10001 10002 # Check if the provided tool contains a complete path. 10003 tool_specified="$TEE" 10004 tool_basename="${tool_specified##*/}" 10005 if test "x$tool_basename" = "x$tool_specified"; then 10006 # A command without a complete path is provided, search $PATH. 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 10008 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 10009 # Extract the first word of "$tool_basename", so it can be a program name with args. 10010 set dummy $tool_basename; ac_word=$2 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10012 $as_echo_n "checking for $ac_word... " >&6; } 10013 if ${ac_cv_path_TEE+:} false; then : 10014 $as_echo_n "(cached) " >&6 10015 else 10016 case $TEE in 10017 [\\/]* | ?:[\\/]*) 10018 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10019 ;; 10020 *) 10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10022 for as_dir in $PATH 10023 do 10024 IFS=$as_save_IFS 10025 test -z "$as_dir" && as_dir=. 10026 for ac_exec_ext in '' $ac_executable_extensions; do 10027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10028 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10030 break 2 10031 fi 10032 done 10033 done 10034 IFS=$as_save_IFS 10035 10036 ;; 10037 esac 10038 fi 10039 TEE=$ac_cv_path_TEE 10040 if test -n "$TEE"; then 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10042 $as_echo "$TEE" >&6; } 10043 else 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10045 $as_echo "no" >&6; } 10046 fi 10047 10048 10049 if test "x$TEE" = x; then 10050 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10051 fi 10052 else 10053 # Otherwise we believe it is a complete path. Use it as it is. 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10055 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10057 $as_echo_n "checking for TEE... " >&6; } 10058 if test ! -x "$tool_specified"; then 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10060 $as_echo "not found" >&6; } 10061 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10062 fi 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10064 $as_echo "$tool_specified" >&6; } 10065 fi 10066 fi 10067 fi 10068 10069 10070 10071 if test "x$TEE" = x; then 10072 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10073 fi 10074 10075 10076 10077 10078 10079 # Publish this variable in the help. 10080 10081 10082 if test "x$TOUCH" = x; then 10083 # The variable is not set by user, try to locate tool using the code snippet 10084 for ac_prog in touch 10085 do 10086 # Extract the first word of "$ac_prog", so it can be a program name with args. 10087 set dummy $ac_prog; ac_word=$2 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10089 $as_echo_n "checking for $ac_word... " >&6; } 10090 if ${ac_cv_path_TOUCH+:} false; then : 10091 $as_echo_n "(cached) " >&6 10092 else 10093 case $TOUCH in 10094 [\\/]* | ?:[\\/]*) 10095 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10096 ;; 10097 *) 10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10099 for as_dir in $PATH 10100 do 10101 IFS=$as_save_IFS 10102 test -z "$as_dir" && as_dir=. 10103 for ac_exec_ext in '' $ac_executable_extensions; do 10104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10105 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10107 break 2 10108 fi 10109 done 10110 done 10111 IFS=$as_save_IFS 10112 10113 ;; 10114 esac 10115 fi 10116 TOUCH=$ac_cv_path_TOUCH 10117 if test -n "$TOUCH"; then 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10119 $as_echo "$TOUCH" >&6; } 10120 else 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10122 $as_echo "no" >&6; } 10123 fi 10124 10125 10126 test -n "$TOUCH" && break 10127 done 10128 10129 else 10130 # The variable is set, but is it from the command line or the environment? 10131 10132 # Try to remove the string !TOUCH! from our list. 10133 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10134 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10135 # If it failed, the variable was not from the command line. Ignore it, 10136 # but warn the user (except for BASH, which is always set by the calling BASH). 10137 if test "xTOUCH" != xBASH; then 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10139 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10140 fi 10141 # Try to locate tool using the code snippet 10142 for ac_prog in touch 10143 do 10144 # Extract the first word of "$ac_prog", so it can be a program name with args. 10145 set dummy $ac_prog; ac_word=$2 10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10147 $as_echo_n "checking for $ac_word... " >&6; } 10148 if ${ac_cv_path_TOUCH+:} false; then : 10149 $as_echo_n "(cached) " >&6 10150 else 10151 case $TOUCH in 10152 [\\/]* | ?:[\\/]*) 10153 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10154 ;; 10155 *) 10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10157 for as_dir in $PATH 10158 do 10159 IFS=$as_save_IFS 10160 test -z "$as_dir" && as_dir=. 10161 for ac_exec_ext in '' $ac_executable_extensions; do 10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10163 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10165 break 2 10166 fi 10167 done 10168 done 10169 IFS=$as_save_IFS 10170 10171 ;; 10172 esac 10173 fi 10174 TOUCH=$ac_cv_path_TOUCH 10175 if test -n "$TOUCH"; then 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10177 $as_echo "$TOUCH" >&6; } 10178 else 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10180 $as_echo "no" >&6; } 10181 fi 10182 10183 10184 test -n "$TOUCH" && break 10185 done 10186 10187 else 10188 # If it succeeded, then it was overridden by the user. We will use it 10189 # for the tool. 10190 10191 # First remove it from the list of overridden variables, so we can test 10192 # for unknown variables in the end. 10193 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10194 10195 # Check if the provided tool contains a complete path. 10196 tool_specified="$TOUCH" 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 TOUCH=$tool_basename" >&5 10201 $as_echo "$as_me: Will search for user supplied tool TOUCH=$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_TOUCH+:} false; then : 10207 $as_echo_n "(cached) " >&6 10208 else 10209 case $TOUCH in 10210 [\\/]* | ?:[\\/]*) 10211 ac_cv_path_TOUCH="$TOUCH" # 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_TOUCH="$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 TOUCH=$ac_cv_path_TOUCH 10233 if test -n "$TOUCH"; then 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10235 $as_echo "$TOUCH" >&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$TOUCH" = 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 TOUCH=$tool_specified" >&5 10248 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10250 $as_echo_n "checking for TOUCH... " >&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 TOUCH=$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 10263 10264 if test "x$TOUCH" = x; then 10265 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10266 fi 10267 10268 10269 10270 10271 10272 # Publish this variable in the help. 10273 10274 10275 if test "x$TR" = x; then 10276 # The variable is not set by user, try to locate tool using the code snippet 10277 for ac_prog in tr 10278 do 10279 # Extract the first word of "$ac_prog", so it can be a program name with args. 10280 set dummy $ac_prog; ac_word=$2 10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10282 $as_echo_n "checking for $ac_word... " >&6; } 10283 if ${ac_cv_path_TR+:} false; then : 10284 $as_echo_n "(cached) " >&6 10285 else 10286 case $TR in 10287 [\\/]* | ?:[\\/]*) 10288 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10289 ;; 10290 *) 10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10292 for as_dir in $PATH 10293 do 10294 IFS=$as_save_IFS 10295 test -z "$as_dir" && as_dir=. 10296 for ac_exec_ext in '' $ac_executable_extensions; do 10297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10298 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10300 break 2 10301 fi 10302 done 10303 done 10304 IFS=$as_save_IFS 10305 10306 ;; 10307 esac 10308 fi 10309 TR=$ac_cv_path_TR 10310 if test -n "$TR"; then 10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10312 $as_echo "$TR" >&6; } 10313 else 10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10315 $as_echo "no" >&6; } 10316 fi 10317 10318 10319 test -n "$TR" && break 10320 done 10321 10322 else 10323 # The variable is set, but is it from the command line or the environment? 10324 10325 # Try to remove the string !TR! from our list. 10326 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10327 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10328 # If it failed, the variable was not from the command line. Ignore it, 10329 # but warn the user (except for BASH, which is always set by the calling BASH). 10330 if test "xTR" != xBASH; then 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10332 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10333 fi 10334 # Try to locate tool using the code snippet 10335 for ac_prog in tr 10336 do 10337 # Extract the first word of "$ac_prog", so it can be a program name with args. 10338 set dummy $ac_prog; ac_word=$2 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10340 $as_echo_n "checking for $ac_word... " >&6; } 10341 if ${ac_cv_path_TR+:} false; then : 10342 $as_echo_n "(cached) " >&6 10343 else 10344 case $TR in 10345 [\\/]* | ?:[\\/]*) 10346 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10347 ;; 10348 *) 10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10350 for as_dir in $PATH 10351 do 10352 IFS=$as_save_IFS 10353 test -z "$as_dir" && as_dir=. 10354 for ac_exec_ext in '' $ac_executable_extensions; do 10355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10356 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10358 break 2 10359 fi 10360 done 10361 done 10362 IFS=$as_save_IFS 10363 10364 ;; 10365 esac 10366 fi 10367 TR=$ac_cv_path_TR 10368 if test -n "$TR"; then 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10370 $as_echo "$TR" >&6; } 10371 else 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10373 $as_echo "no" >&6; } 10374 fi 10375 10376 10377 test -n "$TR" && break 10378 done 10379 10380 else 10381 # If it succeeded, then it was overridden by the user. We will use it 10382 # for the tool. 10383 10384 # First remove it from the list of overridden variables, so we can test 10385 # for unknown variables in the end. 10386 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10387 10388 # Check if the provided tool contains a complete path. 10389 tool_specified="$TR" 10390 tool_basename="${tool_specified##*/}" 10391 if test "x$tool_basename" = "x$tool_specified"; then 10392 # A command without a complete path is provided, search $PATH. 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10394 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10395 # Extract the first word of "$tool_basename", so it can be a program name with args. 10396 set dummy $tool_basename; ac_word=$2 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10398 $as_echo_n "checking for $ac_word... " >&6; } 10399 if ${ac_cv_path_TR+:} false; then : 10400 $as_echo_n "(cached) " >&6 10401 else 10402 case $TR in 10403 [\\/]* | ?:[\\/]*) 10404 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10405 ;; 10406 *) 10407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10408 for as_dir in $PATH 10409 do 10410 IFS=$as_save_IFS 10411 test -z "$as_dir" && as_dir=. 10412 for ac_exec_ext in '' $ac_executable_extensions; do 10413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10414 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10416 break 2 10417 fi 10418 done 10419 done 10420 IFS=$as_save_IFS 10421 10422 ;; 10423 esac 10424 fi 10425 TR=$ac_cv_path_TR 10426 if test -n "$TR"; then 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10428 $as_echo "$TR" >&6; } 10429 else 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10431 $as_echo "no" >&6; } 10432 fi 10433 10434 10435 if test "x$TR" = x; then 10436 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10437 fi 10438 else 10439 # Otherwise we believe it is a complete path. Use it as it is. 10440 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10441 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10443 $as_echo_n "checking for TR... " >&6; } 10444 if test ! -x "$tool_specified"; then 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10446 $as_echo "not found" >&6; } 10447 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10448 fi 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10450 $as_echo "$tool_specified" >&6; } 10451 fi 10452 fi 10453 fi 10454 10455 10456 10457 if test "x$TR" = x; then 10458 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10459 fi 10460 10461 10462 10463 10464 10465 # Publish this variable in the help. 10466 10467 10468 if test "x$UNAME" = x; then 10469 # The variable is not set by user, try to locate tool using the code snippet 10470 for ac_prog in uname 10471 do 10472 # Extract the first word of "$ac_prog", so it can be a program name with args. 10473 set dummy $ac_prog; ac_word=$2 10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10475 $as_echo_n "checking for $ac_word... " >&6; } 10476 if ${ac_cv_path_UNAME+:} false; then : 10477 $as_echo_n "(cached) " >&6 10478 else 10479 case $UNAME in 10480 [\\/]* | ?:[\\/]*) 10481 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10482 ;; 10483 *) 10484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10485 for as_dir in $PATH 10486 do 10487 IFS=$as_save_IFS 10488 test -z "$as_dir" && as_dir=. 10489 for ac_exec_ext in '' $ac_executable_extensions; do 10490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10491 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10493 break 2 10494 fi 10495 done 10496 done 10497 IFS=$as_save_IFS 10498 10499 ;; 10500 esac 10501 fi 10502 UNAME=$ac_cv_path_UNAME 10503 if test -n "$UNAME"; then 10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10505 $as_echo "$UNAME" >&6; } 10506 else 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10508 $as_echo "no" >&6; } 10509 fi 10510 10511 10512 test -n "$UNAME" && break 10513 done 10514 10515 else 10516 # The variable is set, but is it from the command line or the environment? 10517 10518 # Try to remove the string !UNAME! from our list. 10519 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10520 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10521 # If it failed, the variable was not from the command line. Ignore it, 10522 # but warn the user (except for BASH, which is always set by the calling BASH). 10523 if test "xUNAME" != xBASH; then 10524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10525 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10526 fi 10527 # Try to locate tool using the code snippet 10528 for ac_prog in uname 10529 do 10530 # Extract the first word of "$ac_prog", so it can be a program name with args. 10531 set dummy $ac_prog; ac_word=$2 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10533 $as_echo_n "checking for $ac_word... " >&6; } 10534 if ${ac_cv_path_UNAME+:} false; then : 10535 $as_echo_n "(cached) " >&6 10536 else 10537 case $UNAME in 10538 [\\/]* | ?:[\\/]*) 10539 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10540 ;; 10541 *) 10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10543 for as_dir in $PATH 10544 do 10545 IFS=$as_save_IFS 10546 test -z "$as_dir" && as_dir=. 10547 for ac_exec_ext in '' $ac_executable_extensions; do 10548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10549 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10551 break 2 10552 fi 10553 done 10554 done 10555 IFS=$as_save_IFS 10556 10557 ;; 10558 esac 10559 fi 10560 UNAME=$ac_cv_path_UNAME 10561 if test -n "$UNAME"; then 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10563 $as_echo "$UNAME" >&6; } 10564 else 10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10566 $as_echo "no" >&6; } 10567 fi 10568 10569 10570 test -n "$UNAME" && break 10571 done 10572 10573 else 10574 # If it succeeded, then it was overridden by the user. We will use it 10575 # for the tool. 10576 10577 # First remove it from the list of overridden variables, so we can test 10578 # for unknown variables in the end. 10579 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10580 10581 # Check if the provided tool contains a complete path. 10582 tool_specified="$UNAME" 10583 tool_basename="${tool_specified##*/}" 10584 if test "x$tool_basename" = "x$tool_specified"; then 10585 # A command without a complete path is provided, search $PATH. 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10587 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10588 # Extract the first word of "$tool_basename", so it can be a program name with args. 10589 set dummy $tool_basename; ac_word=$2 10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10591 $as_echo_n "checking for $ac_word... " >&6; } 10592 if ${ac_cv_path_UNAME+:} false; then : 10593 $as_echo_n "(cached) " >&6 10594 else 10595 case $UNAME in 10596 [\\/]* | ?:[\\/]*) 10597 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10598 ;; 10599 *) 10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10601 for as_dir in $PATH 10602 do 10603 IFS=$as_save_IFS 10604 test -z "$as_dir" && as_dir=. 10605 for ac_exec_ext in '' $ac_executable_extensions; do 10606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10607 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10609 break 2 10610 fi 10611 done 10612 done 10613 IFS=$as_save_IFS 10614 10615 ;; 10616 esac 10617 fi 10618 UNAME=$ac_cv_path_UNAME 10619 if test -n "$UNAME"; then 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10621 $as_echo "$UNAME" >&6; } 10622 else 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10624 $as_echo "no" >&6; } 10625 fi 10626 10627 10628 if test "x$UNAME" = x; then 10629 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10630 fi 10631 else 10632 # Otherwise we believe it is a complete path. Use it as it is. 10633 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10634 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10636 $as_echo_n "checking for UNAME... " >&6; } 10637 if test ! -x "$tool_specified"; then 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10639 $as_echo "not found" >&6; } 10640 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10641 fi 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10643 $as_echo "$tool_specified" >&6; } 10644 fi 10645 fi 10646 fi 10647 10648 10649 10650 if test "x$UNAME" = x; then 10651 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10652 fi 10653 10654 10655 10656 10657 10658 # Publish this variable in the help. 10659 10660 10661 if test "x$UNIQ" = x; then 10662 # The variable is not set by user, try to locate tool using the code snippet 10663 for ac_prog in uniq 10664 do 10665 # Extract the first word of "$ac_prog", so it can be a program name with args. 10666 set dummy $ac_prog; ac_word=$2 10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10668 $as_echo_n "checking for $ac_word... " >&6; } 10669 if ${ac_cv_path_UNIQ+:} false; then : 10670 $as_echo_n "(cached) " >&6 10671 else 10672 case $UNIQ in 10673 [\\/]* | ?:[\\/]*) 10674 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10675 ;; 10676 *) 10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10678 for as_dir in $PATH 10679 do 10680 IFS=$as_save_IFS 10681 test -z "$as_dir" && as_dir=. 10682 for ac_exec_ext in '' $ac_executable_extensions; do 10683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10684 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10686 break 2 10687 fi 10688 done 10689 done 10690 IFS=$as_save_IFS 10691 10692 ;; 10693 esac 10694 fi 10695 UNIQ=$ac_cv_path_UNIQ 10696 if test -n "$UNIQ"; then 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10698 $as_echo "$UNIQ" >&6; } 10699 else 10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10701 $as_echo "no" >&6; } 10702 fi 10703 10704 10705 test -n "$UNIQ" && break 10706 done 10707 10708 else 10709 # The variable is set, but is it from the command line or the environment? 10710 10711 # Try to remove the string !UNIQ! from our list. 10712 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10713 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10714 # If it failed, the variable was not from the command line. Ignore it, 10715 # but warn the user (except for BASH, which is always set by the calling BASH). 10716 if test "xUNIQ" != xBASH; then 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10718 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10719 fi 10720 # Try to locate tool using the code snippet 10721 for ac_prog in uniq 10722 do 10723 # Extract the first word of "$ac_prog", so it can be a program name with args. 10724 set dummy $ac_prog; ac_word=$2 10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10726 $as_echo_n "checking for $ac_word... " >&6; } 10727 if ${ac_cv_path_UNIQ+:} false; then : 10728 $as_echo_n "(cached) " >&6 10729 else 10730 case $UNIQ in 10731 [\\/]* | ?:[\\/]*) 10732 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10733 ;; 10734 *) 10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10736 for as_dir in $PATH 10737 do 10738 IFS=$as_save_IFS 10739 test -z "$as_dir" && as_dir=. 10740 for ac_exec_ext in '' $ac_executable_extensions; do 10741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10742 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10744 break 2 10745 fi 10746 done 10747 done 10748 IFS=$as_save_IFS 10749 10750 ;; 10751 esac 10752 fi 10753 UNIQ=$ac_cv_path_UNIQ 10754 if test -n "$UNIQ"; then 10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10756 $as_echo "$UNIQ" >&6; } 10757 else 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10759 $as_echo "no" >&6; } 10760 fi 10761 10762 10763 test -n "$UNIQ" && break 10764 done 10765 10766 else 10767 # If it succeeded, then it was overridden by the user. We will use it 10768 # for the tool. 10769 10770 # First remove it from the list of overridden variables, so we can test 10771 # for unknown variables in the end. 10772 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10773 10774 # Check if the provided tool contains a complete path. 10775 tool_specified="$UNIQ" 10776 tool_basename="${tool_specified##*/}" 10777 if test "x$tool_basename" = "x$tool_specified"; then 10778 # A command without a complete path is provided, search $PATH. 10779 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10780 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10781 # Extract the first word of "$tool_basename", so it can be a program name with args. 10782 set dummy $tool_basename; ac_word=$2 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10784 $as_echo_n "checking for $ac_word... " >&6; } 10785 if ${ac_cv_path_UNIQ+:} false; then : 10786 $as_echo_n "(cached) " >&6 10787 else 10788 case $UNIQ in 10789 [\\/]* | ?:[\\/]*) 10790 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10791 ;; 10792 *) 10793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10794 for as_dir in $PATH 10795 do 10796 IFS=$as_save_IFS 10797 test -z "$as_dir" && as_dir=. 10798 for ac_exec_ext in '' $ac_executable_extensions; do 10799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10800 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10802 break 2 10803 fi 10804 done 10805 done 10806 IFS=$as_save_IFS 10807 10808 ;; 10809 esac 10810 fi 10811 UNIQ=$ac_cv_path_UNIQ 10812 if test -n "$UNIQ"; then 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10814 $as_echo "$UNIQ" >&6; } 10815 else 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10817 $as_echo "no" >&6; } 10818 fi 10819 10820 10821 if test "x$UNIQ" = x; then 10822 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10823 fi 10824 else 10825 # Otherwise we believe it is a complete path. Use it as it is. 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10827 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10829 $as_echo_n "checking for UNIQ... " >&6; } 10830 if test ! -x "$tool_specified"; then 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10832 $as_echo "not found" >&6; } 10833 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10834 fi 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10836 $as_echo "$tool_specified" >&6; } 10837 fi 10838 fi 10839 fi 10840 10841 10842 10843 if test "x$UNIQ" = x; then 10844 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10845 fi 10846 10847 10848 10849 10850 10851 # Publish this variable in the help. 10852 10853 10854 if test "x$WC" = x; then 10855 # The variable is not set by user, try to locate tool using the code snippet 10856 for ac_prog in wc 10857 do 10858 # Extract the first word of "$ac_prog", so it can be a program name with args. 10859 set dummy $ac_prog; ac_word=$2 10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10861 $as_echo_n "checking for $ac_word... " >&6; } 10862 if ${ac_cv_path_WC+:} false; then : 10863 $as_echo_n "(cached) " >&6 10864 else 10865 case $WC in 10866 [\\/]* | ?:[\\/]*) 10867 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10868 ;; 10869 *) 10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10871 for as_dir in $PATH 10872 do 10873 IFS=$as_save_IFS 10874 test -z "$as_dir" && as_dir=. 10875 for ac_exec_ext in '' $ac_executable_extensions; do 10876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10877 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10879 break 2 10880 fi 10881 done 10882 done 10883 IFS=$as_save_IFS 10884 10885 ;; 10886 esac 10887 fi 10888 WC=$ac_cv_path_WC 10889 if test -n "$WC"; then 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10891 $as_echo "$WC" >&6; } 10892 else 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10894 $as_echo "no" >&6; } 10895 fi 10896 10897 10898 test -n "$WC" && break 10899 done 10900 10901 else 10902 # The variable is set, but is it from the command line or the environment? 10903 10904 # Try to remove the string !WC! from our list. 10905 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10906 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10907 # If it failed, the variable was not from the command line. Ignore it, 10908 # but warn the user (except for BASH, which is always set by the calling BASH). 10909 if test "xWC" != xBASH; then 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10911 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10912 fi 10913 # Try to locate tool using the code snippet 10914 for ac_prog in wc 10915 do 10916 # Extract the first word of "$ac_prog", so it can be a program name with args. 10917 set dummy $ac_prog; ac_word=$2 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10919 $as_echo_n "checking for $ac_word... " >&6; } 10920 if ${ac_cv_path_WC+:} false; then : 10921 $as_echo_n "(cached) " >&6 10922 else 10923 case $WC in 10924 [\\/]* | ?:[\\/]*) 10925 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10926 ;; 10927 *) 10928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10929 for as_dir in $PATH 10930 do 10931 IFS=$as_save_IFS 10932 test -z "$as_dir" && as_dir=. 10933 for ac_exec_ext in '' $ac_executable_extensions; do 10934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10935 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10937 break 2 10938 fi 10939 done 10940 done 10941 IFS=$as_save_IFS 10942 10943 ;; 10944 esac 10945 fi 10946 WC=$ac_cv_path_WC 10947 if test -n "$WC"; then 10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10949 $as_echo "$WC" >&6; } 10950 else 10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10952 $as_echo "no" >&6; } 10953 fi 10954 10955 10956 test -n "$WC" && break 10957 done 10958 10959 else 10960 # If it succeeded, then it was overridden by the user. We will use it 10961 # for the tool. 10962 10963 # First remove it from the list of overridden variables, so we can test 10964 # for unknown variables in the end. 10965 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10966 10967 # Check if the provided tool contains a complete path. 10968 tool_specified="$WC" 10969 tool_basename="${tool_specified##*/}" 10970 if test "x$tool_basename" = "x$tool_specified"; then 10971 # A command without a complete path is provided, search $PATH. 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10973 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10974 # Extract the first word of "$tool_basename", so it can be a program name with args. 10975 set dummy $tool_basename; ac_word=$2 10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10977 $as_echo_n "checking for $ac_word... " >&6; } 10978 if ${ac_cv_path_WC+:} false; then : 10979 $as_echo_n "(cached) " >&6 10980 else 10981 case $WC in 10982 [\\/]* | ?:[\\/]*) 10983 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10984 ;; 10985 *) 10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10987 for as_dir in $PATH 10988 do 10989 IFS=$as_save_IFS 10990 test -z "$as_dir" && as_dir=. 10991 for ac_exec_ext in '' $ac_executable_extensions; do 10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10993 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10995 break 2 10996 fi 10997 done 10998 done 10999 IFS=$as_save_IFS 11000 11001 ;; 11002 esac 11003 fi 11004 WC=$ac_cv_path_WC 11005 if test -n "$WC"; then 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11007 $as_echo "$WC" >&6; } 11008 else 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11010 $as_echo "no" >&6; } 11011 fi 11012 11013 11014 if test "x$WC" = x; then 11015 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11016 fi 11017 else 11018 # Otherwise we believe it is a complete path. Use it as it is. 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 11020 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11022 $as_echo_n "checking for WC... " >&6; } 11023 if test ! -x "$tool_specified"; then 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11025 $as_echo "not found" >&6; } 11026 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 11027 fi 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11029 $as_echo "$tool_specified" >&6; } 11030 fi 11031 fi 11032 fi 11033 11034 11035 11036 if test "x$WC" = x; then 11037 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11038 fi 11039 11040 11041 11042 11043 11044 # Publish this variable in the help. 11045 11046 11047 if test "x$WHICH" = x; then 11048 # The variable is not set by user, try to locate tool using the code snippet 11049 for ac_prog in which 11050 do 11051 # Extract the first word of "$ac_prog", so it can be a program name with args. 11052 set dummy $ac_prog; ac_word=$2 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11054 $as_echo_n "checking for $ac_word... " >&6; } 11055 if ${ac_cv_path_WHICH+:} false; then : 11056 $as_echo_n "(cached) " >&6 11057 else 11058 case $WHICH in 11059 [\\/]* | ?:[\\/]*) 11060 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11061 ;; 11062 *) 11063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11064 for as_dir in $PATH 11065 do 11066 IFS=$as_save_IFS 11067 test -z "$as_dir" && as_dir=. 11068 for ac_exec_ext in '' $ac_executable_extensions; do 11069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11070 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11072 break 2 11073 fi 11074 done 11075 done 11076 IFS=$as_save_IFS 11077 11078 ;; 11079 esac 11080 fi 11081 WHICH=$ac_cv_path_WHICH 11082 if test -n "$WHICH"; then 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11084 $as_echo "$WHICH" >&6; } 11085 else 11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11087 $as_echo "no" >&6; } 11088 fi 11089 11090 11091 test -n "$WHICH" && break 11092 done 11093 11094 else 11095 # The variable is set, but is it from the command line or the environment? 11096 11097 # Try to remove the string !WHICH! from our list. 11098 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11099 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11100 # If it failed, the variable was not from the command line. Ignore it, 11101 # but warn the user (except for BASH, which is always set by the calling BASH). 11102 if test "xWHICH" != xBASH; then 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11104 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11105 fi 11106 # Try to locate tool using the code snippet 11107 for ac_prog in which 11108 do 11109 # Extract the first word of "$ac_prog", so it can be a program name with args. 11110 set dummy $ac_prog; ac_word=$2 11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11112 $as_echo_n "checking for $ac_word... " >&6; } 11113 if ${ac_cv_path_WHICH+:} false; then : 11114 $as_echo_n "(cached) " >&6 11115 else 11116 case $WHICH in 11117 [\\/]* | ?:[\\/]*) 11118 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11119 ;; 11120 *) 11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11122 for as_dir in $PATH 11123 do 11124 IFS=$as_save_IFS 11125 test -z "$as_dir" && as_dir=. 11126 for ac_exec_ext in '' $ac_executable_extensions; do 11127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11128 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11130 break 2 11131 fi 11132 done 11133 done 11134 IFS=$as_save_IFS 11135 11136 ;; 11137 esac 11138 fi 11139 WHICH=$ac_cv_path_WHICH 11140 if test -n "$WHICH"; then 11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11142 $as_echo "$WHICH" >&6; } 11143 else 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11145 $as_echo "no" >&6; } 11146 fi 11147 11148 11149 test -n "$WHICH" && break 11150 done 11151 11152 else 11153 # If it succeeded, then it was overridden by the user. We will use it 11154 # for the tool. 11155 11156 # First remove it from the list of overridden variables, so we can test 11157 # for unknown variables in the end. 11158 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11159 11160 # Check if the provided tool contains a complete path. 11161 tool_specified="$WHICH" 11162 tool_basename="${tool_specified##*/}" 11163 if test "x$tool_basename" = "x$tool_specified"; then 11164 # A command without a complete path is provided, search $PATH. 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11166 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11167 # Extract the first word of "$tool_basename", so it can be a program name with args. 11168 set dummy $tool_basename; ac_word=$2 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11170 $as_echo_n "checking for $ac_word... " >&6; } 11171 if ${ac_cv_path_WHICH+:} false; then : 11172 $as_echo_n "(cached) " >&6 11173 else 11174 case $WHICH in 11175 [\\/]* | ?:[\\/]*) 11176 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11177 ;; 11178 *) 11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11180 for as_dir in $PATH 11181 do 11182 IFS=$as_save_IFS 11183 test -z "$as_dir" && as_dir=. 11184 for ac_exec_ext in '' $ac_executable_extensions; do 11185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11186 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11188 break 2 11189 fi 11190 done 11191 done 11192 IFS=$as_save_IFS 11193 11194 ;; 11195 esac 11196 fi 11197 WHICH=$ac_cv_path_WHICH 11198 if test -n "$WHICH"; then 11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11200 $as_echo "$WHICH" >&6; } 11201 else 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11203 $as_echo "no" >&6; } 11204 fi 11205 11206 11207 if test "x$WHICH" = x; then 11208 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11209 fi 11210 else 11211 # Otherwise we believe it is a complete path. Use it as it is. 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11213 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11215 $as_echo_n "checking for WHICH... " >&6; } 11216 if test ! -x "$tool_specified"; then 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11218 $as_echo "not found" >&6; } 11219 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11220 fi 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11222 $as_echo "$tool_specified" >&6; } 11223 fi 11224 fi 11225 fi 11226 11227 11228 11229 if test "x$WHICH" = x; then 11230 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11231 fi 11232 11233 11234 11235 11236 11237 # Publish this variable in the help. 11238 11239 11240 if test "x$XARGS" = x; then 11241 # The variable is not set by user, try to locate tool using the code snippet 11242 for ac_prog in xargs 11243 do 11244 # Extract the first word of "$ac_prog", so it can be a program name with args. 11245 set dummy $ac_prog; ac_word=$2 11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11247 $as_echo_n "checking for $ac_word... " >&6; } 11248 if ${ac_cv_path_XARGS+:} false; then : 11249 $as_echo_n "(cached) " >&6 11250 else 11251 case $XARGS in 11252 [\\/]* | ?:[\\/]*) 11253 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11254 ;; 11255 *) 11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11257 for as_dir in $PATH 11258 do 11259 IFS=$as_save_IFS 11260 test -z "$as_dir" && as_dir=. 11261 for ac_exec_ext in '' $ac_executable_extensions; do 11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11263 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11265 break 2 11266 fi 11267 done 11268 done 11269 IFS=$as_save_IFS 11270 11271 ;; 11272 esac 11273 fi 11274 XARGS=$ac_cv_path_XARGS 11275 if test -n "$XARGS"; then 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11277 $as_echo "$XARGS" >&6; } 11278 else 11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11280 $as_echo "no" >&6; } 11281 fi 11282 11283 11284 test -n "$XARGS" && break 11285 done 11286 11287 else 11288 # The variable is set, but is it from the command line or the environment? 11289 11290 # Try to remove the string !XARGS! from our list. 11291 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11292 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11293 # If it failed, the variable was not from the command line. Ignore it, 11294 # but warn the user (except for BASH, which is always set by the calling BASH). 11295 if test "xXARGS" != xBASH; then 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11297 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11298 fi 11299 # Try to locate tool using the code snippet 11300 for ac_prog in xargs 11301 do 11302 # Extract the first word of "$ac_prog", so it can be a program name with args. 11303 set dummy $ac_prog; ac_word=$2 11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11305 $as_echo_n "checking for $ac_word... " >&6; } 11306 if ${ac_cv_path_XARGS+:} false; then : 11307 $as_echo_n "(cached) " >&6 11308 else 11309 case $XARGS in 11310 [\\/]* | ?:[\\/]*) 11311 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11312 ;; 11313 *) 11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11315 for as_dir in $PATH 11316 do 11317 IFS=$as_save_IFS 11318 test -z "$as_dir" && as_dir=. 11319 for ac_exec_ext in '' $ac_executable_extensions; do 11320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11321 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11323 break 2 11324 fi 11325 done 11326 done 11327 IFS=$as_save_IFS 11328 11329 ;; 11330 esac 11331 fi 11332 XARGS=$ac_cv_path_XARGS 11333 if test -n "$XARGS"; then 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11335 $as_echo "$XARGS" >&6; } 11336 else 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11338 $as_echo "no" >&6; } 11339 fi 11340 11341 11342 test -n "$XARGS" && break 11343 done 11344 11345 else 11346 # If it succeeded, then it was overridden by the user. We will use it 11347 # for the tool. 11348 11349 # First remove it from the list of overridden variables, so we can test 11350 # for unknown variables in the end. 11351 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11352 11353 # Check if the provided tool contains a complete path. 11354 tool_specified="$XARGS" 11355 tool_basename="${tool_specified##*/}" 11356 if test "x$tool_basename" = "x$tool_specified"; then 11357 # A command without a complete path is provided, search $PATH. 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11359 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11360 # Extract the first word of "$tool_basename", so it can be a program name with args. 11361 set dummy $tool_basename; ac_word=$2 11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11363 $as_echo_n "checking for $ac_word... " >&6; } 11364 if ${ac_cv_path_XARGS+:} false; then : 11365 $as_echo_n "(cached) " >&6 11366 else 11367 case $XARGS in 11368 [\\/]* | ?:[\\/]*) 11369 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11370 ;; 11371 *) 11372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11373 for as_dir in $PATH 11374 do 11375 IFS=$as_save_IFS 11376 test -z "$as_dir" && as_dir=. 11377 for ac_exec_ext in '' $ac_executable_extensions; do 11378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11379 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11381 break 2 11382 fi 11383 done 11384 done 11385 IFS=$as_save_IFS 11386 11387 ;; 11388 esac 11389 fi 11390 XARGS=$ac_cv_path_XARGS 11391 if test -n "$XARGS"; then 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11393 $as_echo "$XARGS" >&6; } 11394 else 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11396 $as_echo "no" >&6; } 11397 fi 11398 11399 11400 if test "x$XARGS" = x; then 11401 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11402 fi 11403 else 11404 # Otherwise we believe it is a complete path. Use it as it is. 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11406 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11408 $as_echo_n "checking for XARGS... " >&6; } 11409 if test ! -x "$tool_specified"; then 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11411 $as_echo "not found" >&6; } 11412 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11413 fi 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11415 $as_echo "$tool_specified" >&6; } 11416 fi 11417 fi 11418 fi 11419 11420 11421 11422 if test "x$XARGS" = x; then 11423 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11424 fi 11425 11426 11427 11428 # Then required tools that require some special treatment. 11429 11430 11431 # Publish this variable in the help. 11432 11433 11434 if test "x$AWK" = x; then 11435 # The variable is not set by user, try to locate tool using the code snippet 11436 for ac_prog in gawk mawk nawk awk 11437 do 11438 # Extract the first word of "$ac_prog", so it can be a program name with args. 11439 set dummy $ac_prog; ac_word=$2 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11441 $as_echo_n "checking for $ac_word... " >&6; } 11442 if ${ac_cv_prog_AWK+:} false; then : 11443 $as_echo_n "(cached) " >&6 11444 else 11445 if test -n "$AWK"; then 11446 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11447 else 11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11449 for as_dir in $PATH 11450 do 11451 IFS=$as_save_IFS 11452 test -z "$as_dir" && as_dir=. 11453 for ac_exec_ext in '' $ac_executable_extensions; do 11454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11455 ac_cv_prog_AWK="$ac_prog" 11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11457 break 2 11458 fi 11459 done 11460 done 11461 IFS=$as_save_IFS 11462 11463 fi 11464 fi 11465 AWK=$ac_cv_prog_AWK 11466 if test -n "$AWK"; then 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11468 $as_echo "$AWK" >&6; } 11469 else 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11471 $as_echo "no" >&6; } 11472 fi 11473 11474 11475 test -n "$AWK" && break 11476 done 11477 11478 else 11479 # The variable is set, but is it from the command line or the environment? 11480 11481 # Try to remove the string !AWK! from our list. 11482 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11483 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11484 # If it failed, the variable was not from the command line. Ignore it, 11485 # but warn the user (except for BASH, which is always set by the calling BASH). 11486 if test "xAWK" != xBASH; then 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11488 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11489 fi 11490 # Try to locate tool using the code snippet 11491 for ac_prog in gawk mawk nawk awk 11492 do 11493 # Extract the first word of "$ac_prog", so it can be a program name with args. 11494 set dummy $ac_prog; ac_word=$2 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11496 $as_echo_n "checking for $ac_word... " >&6; } 11497 if ${ac_cv_prog_AWK+:} false; then : 11498 $as_echo_n "(cached) " >&6 11499 else 11500 if test -n "$AWK"; then 11501 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11502 else 11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11504 for as_dir in $PATH 11505 do 11506 IFS=$as_save_IFS 11507 test -z "$as_dir" && as_dir=. 11508 for ac_exec_ext in '' $ac_executable_extensions; do 11509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11510 ac_cv_prog_AWK="$ac_prog" 11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11512 break 2 11513 fi 11514 done 11515 done 11516 IFS=$as_save_IFS 11517 11518 fi 11519 fi 11520 AWK=$ac_cv_prog_AWK 11521 if test -n "$AWK"; then 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11523 $as_echo "$AWK" >&6; } 11524 else 11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11526 $as_echo "no" >&6; } 11527 fi 11528 11529 11530 test -n "$AWK" && break 11531 done 11532 11533 else 11534 # If it succeeded, then it was overridden by the user. We will use it 11535 # for the tool. 11536 11537 # First remove it from the list of overridden variables, so we can test 11538 # for unknown variables in the end. 11539 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11540 11541 # Check if the provided tool contains a complete path. 11542 tool_specified="$AWK" 11543 tool_basename="${tool_specified##*/}" 11544 if test "x$tool_basename" = "x$tool_specified"; then 11545 # A command without a complete path is provided, search $PATH. 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11547 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11548 # Extract the first word of "$tool_basename", so it can be a program name with args. 11549 set dummy $tool_basename; ac_word=$2 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11551 $as_echo_n "checking for $ac_word... " >&6; } 11552 if ${ac_cv_path_AWK+:} false; then : 11553 $as_echo_n "(cached) " >&6 11554 else 11555 case $AWK in 11556 [\\/]* | ?:[\\/]*) 11557 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11558 ;; 11559 *) 11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11561 for as_dir in $PATH 11562 do 11563 IFS=$as_save_IFS 11564 test -z "$as_dir" && as_dir=. 11565 for ac_exec_ext in '' $ac_executable_extensions; do 11566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11567 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11569 break 2 11570 fi 11571 done 11572 done 11573 IFS=$as_save_IFS 11574 11575 ;; 11576 esac 11577 fi 11578 AWK=$ac_cv_path_AWK 11579 if test -n "$AWK"; then 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11581 $as_echo "$AWK" >&6; } 11582 else 11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11584 $as_echo "no" >&6; } 11585 fi 11586 11587 11588 if test "x$AWK" = x; then 11589 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11590 fi 11591 else 11592 # Otherwise we believe it is a complete path. Use it as it is. 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11594 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11596 $as_echo_n "checking for AWK... " >&6; } 11597 if test ! -x "$tool_specified"; then 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11599 $as_echo "not found" >&6; } 11600 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11601 fi 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11603 $as_echo "$tool_specified" >&6; } 11604 fi 11605 fi 11606 fi 11607 11608 11609 if test "x$AWK" = x; then 11610 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11611 fi 11612 11613 11614 11615 11616 # Publish this variable in the help. 11617 11618 11619 if test "x$GREP" = x; then 11620 # The variable is not set by user, try to locate tool using the code snippet 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11622 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11623 if ${ac_cv_path_GREP+:} false; then : 11624 $as_echo_n "(cached) " >&6 11625 else 11626 if test -z "$GREP"; then 11627 ac_path_GREP_found=false 11628 # Loop through the user's path and test for each of PROGNAME-LIST 11629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11631 do 11632 IFS=$as_save_IFS 11633 test -z "$as_dir" && as_dir=. 11634 for ac_prog in grep ggrep; do 11635 for ac_exec_ext in '' $ac_executable_extensions; do 11636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11637 as_fn_executable_p "$ac_path_GREP" || continue 11638 # Check for GNU ac_path_GREP and select it if it is found. 11639 # Check for GNU $ac_path_GREP 11640 case `"$ac_path_GREP" --version 2>&1` in 11641 *GNU*) 11642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11643 *) 11644 ac_count=0 11645 $as_echo_n 0123456789 >"conftest.in" 11646 while : 11647 do 11648 cat "conftest.in" "conftest.in" >"conftest.tmp" 11649 mv "conftest.tmp" "conftest.in" 11650 cp "conftest.in" "conftest.nl" 11651 $as_echo 'GREP' >> "conftest.nl" 11652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11654 as_fn_arith $ac_count + 1 && ac_count=$as_val 11655 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11656 # Best one so far, save it but keep looking for a better one 11657 ac_cv_path_GREP="$ac_path_GREP" 11658 ac_path_GREP_max=$ac_count 11659 fi 11660 # 10*(2^10) chars as input seems more than enough 11661 test $ac_count -gt 10 && break 11662 done 11663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11664 esac 11665 11666 $ac_path_GREP_found && break 3 11667 done 11668 done 11669 done 11670 IFS=$as_save_IFS 11671 if test -z "$ac_cv_path_GREP"; then 11672 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11673 fi 11674 else 11675 ac_cv_path_GREP=$GREP 11676 fi 11677 11678 fi 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11680 $as_echo "$ac_cv_path_GREP" >&6; } 11681 GREP="$ac_cv_path_GREP" 11682 11683 11684 else 11685 # The variable is set, but is it from the command line or the environment? 11686 11687 # Try to remove the string !GREP! from our list. 11688 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11689 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11690 # If it failed, the variable was not from the command line. Ignore it, 11691 # but warn the user (except for BASH, which is always set by the calling BASH). 11692 if test "xGREP" != xBASH; then 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11694 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11695 fi 11696 # Try to locate tool using the code snippet 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11698 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11699 if ${ac_cv_path_GREP+:} false; then : 11700 $as_echo_n "(cached) " >&6 11701 else 11702 if test -z "$GREP"; then 11703 ac_path_GREP_found=false 11704 # Loop through the user's path and test for each of PROGNAME-LIST 11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11707 do 11708 IFS=$as_save_IFS 11709 test -z "$as_dir" && as_dir=. 11710 for ac_prog in grep ggrep; do 11711 for ac_exec_ext in '' $ac_executable_extensions; do 11712 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11713 as_fn_executable_p "$ac_path_GREP" || continue 11714 # Check for GNU ac_path_GREP and select it if it is found. 11715 # Check for GNU $ac_path_GREP 11716 case `"$ac_path_GREP" --version 2>&1` in 11717 *GNU*) 11718 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11719 *) 11720 ac_count=0 11721 $as_echo_n 0123456789 >"conftest.in" 11722 while : 11723 do 11724 cat "conftest.in" "conftest.in" >"conftest.tmp" 11725 mv "conftest.tmp" "conftest.in" 11726 cp "conftest.in" "conftest.nl" 11727 $as_echo 'GREP' >> "conftest.nl" 11728 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11730 as_fn_arith $ac_count + 1 && ac_count=$as_val 11731 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11732 # Best one so far, save it but keep looking for a better one 11733 ac_cv_path_GREP="$ac_path_GREP" 11734 ac_path_GREP_max=$ac_count 11735 fi 11736 # 10*(2^10) chars as input seems more than enough 11737 test $ac_count -gt 10 && break 11738 done 11739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11740 esac 11741 11742 $ac_path_GREP_found && break 3 11743 done 11744 done 11745 done 11746 IFS=$as_save_IFS 11747 if test -z "$ac_cv_path_GREP"; then 11748 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11749 fi 11750 else 11751 ac_cv_path_GREP=$GREP 11752 fi 11753 11754 fi 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11756 $as_echo "$ac_cv_path_GREP" >&6; } 11757 GREP="$ac_cv_path_GREP" 11758 11759 11760 else 11761 # If it succeeded, then it was overridden by the user. We will use it 11762 # for the tool. 11763 11764 # First remove it from the list of overridden variables, so we can test 11765 # for unknown variables in the end. 11766 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11767 11768 # Check if the provided tool contains a complete path. 11769 tool_specified="$GREP" 11770 tool_basename="${tool_specified##*/}" 11771 if test "x$tool_basename" = "x$tool_specified"; then 11772 # A command without a complete path is provided, search $PATH. 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11774 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11775 # Extract the first word of "$tool_basename", so it can be a program name with args. 11776 set dummy $tool_basename; ac_word=$2 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11778 $as_echo_n "checking for $ac_word... " >&6; } 11779 if ${ac_cv_path_GREP+:} false; then : 11780 $as_echo_n "(cached) " >&6 11781 else 11782 case $GREP in 11783 [\\/]* | ?:[\\/]*) 11784 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11785 ;; 11786 *) 11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11788 for as_dir in $PATH 11789 do 11790 IFS=$as_save_IFS 11791 test -z "$as_dir" && as_dir=. 11792 for ac_exec_ext in '' $ac_executable_extensions; do 11793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11794 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11796 break 2 11797 fi 11798 done 11799 done 11800 IFS=$as_save_IFS 11801 11802 ;; 11803 esac 11804 fi 11805 GREP=$ac_cv_path_GREP 11806 if test -n "$GREP"; then 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11808 $as_echo "$GREP" >&6; } 11809 else 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11811 $as_echo "no" >&6; } 11812 fi 11813 11814 11815 if test "x$GREP" = x; then 11816 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11817 fi 11818 else 11819 # Otherwise we believe it is a complete path. Use it as it is. 11820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11821 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11823 $as_echo_n "checking for GREP... " >&6; } 11824 if test ! -x "$tool_specified"; then 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11826 $as_echo "not found" >&6; } 11827 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11828 fi 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11830 $as_echo "$tool_specified" >&6; } 11831 fi 11832 fi 11833 fi 11834 11835 11836 if test "x$GREP" = x; then 11837 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11838 fi 11839 11840 11841 11842 11843 # Publish this variable in the help. 11844 11845 11846 if test "x$EGREP" = x; then 11847 # The variable is not set by user, try to locate tool using the code snippet 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11849 $as_echo_n "checking for egrep... " >&6; } 11850 if ${ac_cv_path_EGREP+:} false; then : 11851 $as_echo_n "(cached) " >&6 11852 else 11853 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11854 then ac_cv_path_EGREP="$GREP -E" 11855 else 11856 if test -z "$EGREP"; then 11857 ac_path_EGREP_found=false 11858 # Loop through the user's path and test for each of PROGNAME-LIST 11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11861 do 11862 IFS=$as_save_IFS 11863 test -z "$as_dir" && as_dir=. 11864 for ac_prog in egrep; do 11865 for ac_exec_ext in '' $ac_executable_extensions; do 11866 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11867 as_fn_executable_p "$ac_path_EGREP" || continue 11868 # Check for GNU ac_path_EGREP and select it if it is found. 11869 # Check for GNU $ac_path_EGREP 11870 case `"$ac_path_EGREP" --version 2>&1` in 11871 *GNU*) 11872 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11873 *) 11874 ac_count=0 11875 $as_echo_n 0123456789 >"conftest.in" 11876 while : 11877 do 11878 cat "conftest.in" "conftest.in" >"conftest.tmp" 11879 mv "conftest.tmp" "conftest.in" 11880 cp "conftest.in" "conftest.nl" 11881 $as_echo 'EGREP' >> "conftest.nl" 11882 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11884 as_fn_arith $ac_count + 1 && ac_count=$as_val 11885 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11886 # Best one so far, save it but keep looking for a better one 11887 ac_cv_path_EGREP="$ac_path_EGREP" 11888 ac_path_EGREP_max=$ac_count 11889 fi 11890 # 10*(2^10) chars as input seems more than enough 11891 test $ac_count -gt 10 && break 11892 done 11893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11894 esac 11895 11896 $ac_path_EGREP_found && break 3 11897 done 11898 done 11899 done 11900 IFS=$as_save_IFS 11901 if test -z "$ac_cv_path_EGREP"; then 11902 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11903 fi 11904 else 11905 ac_cv_path_EGREP=$EGREP 11906 fi 11907 11908 fi 11909 fi 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11911 $as_echo "$ac_cv_path_EGREP" >&6; } 11912 EGREP="$ac_cv_path_EGREP" 11913 11914 11915 else 11916 # The variable is set, but is it from the command line or the environment? 11917 11918 # Try to remove the string !EGREP! from our list. 11919 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11920 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11921 # If it failed, the variable was not from the command line. Ignore it, 11922 # but warn the user (except for BASH, which is always set by the calling BASH). 11923 if test "xEGREP" != xBASH; then 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11925 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11926 fi 11927 # Try to locate tool using the code snippet 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11929 $as_echo_n "checking for egrep... " >&6; } 11930 if ${ac_cv_path_EGREP+:} false; then : 11931 $as_echo_n "(cached) " >&6 11932 else 11933 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11934 then ac_cv_path_EGREP="$GREP -E" 11935 else 11936 if test -z "$EGREP"; then 11937 ac_path_EGREP_found=false 11938 # Loop through the user's path and test for each of PROGNAME-LIST 11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11941 do 11942 IFS=$as_save_IFS 11943 test -z "$as_dir" && as_dir=. 11944 for ac_prog in egrep; do 11945 for ac_exec_ext in '' $ac_executable_extensions; do 11946 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11947 as_fn_executable_p "$ac_path_EGREP" || continue 11948 # Check for GNU ac_path_EGREP and select it if it is found. 11949 # Check for GNU $ac_path_EGREP 11950 case `"$ac_path_EGREP" --version 2>&1` in 11951 *GNU*) 11952 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11953 *) 11954 ac_count=0 11955 $as_echo_n 0123456789 >"conftest.in" 11956 while : 11957 do 11958 cat "conftest.in" "conftest.in" >"conftest.tmp" 11959 mv "conftest.tmp" "conftest.in" 11960 cp "conftest.in" "conftest.nl" 11961 $as_echo 'EGREP' >> "conftest.nl" 11962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11964 as_fn_arith $ac_count + 1 && ac_count=$as_val 11965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11966 # Best one so far, save it but keep looking for a better one 11967 ac_cv_path_EGREP="$ac_path_EGREP" 11968 ac_path_EGREP_max=$ac_count 11969 fi 11970 # 10*(2^10) chars as input seems more than enough 11971 test $ac_count -gt 10 && break 11972 done 11973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11974 esac 11975 11976 $ac_path_EGREP_found && break 3 11977 done 11978 done 11979 done 11980 IFS=$as_save_IFS 11981 if test -z "$ac_cv_path_EGREP"; then 11982 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11983 fi 11984 else 11985 ac_cv_path_EGREP=$EGREP 11986 fi 11987 11988 fi 11989 fi 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11991 $as_echo "$ac_cv_path_EGREP" >&6; } 11992 EGREP="$ac_cv_path_EGREP" 11993 11994 11995 else 11996 # If it succeeded, then it was overridden by the user. We will use it 11997 # for the tool. 11998 11999 # First remove it from the list of overridden variables, so we can test 12000 # for unknown variables in the end. 12001 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12002 12003 # Check if the provided tool contains a complete path. 12004 tool_specified="$EGREP" 12005 tool_basename="${tool_specified##*/}" 12006 if test "x$tool_basename" = "x$tool_specified"; then 12007 # A command without a complete path is provided, search $PATH. 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 12009 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 12010 # Extract the first word of "$tool_basename", so it can be a program name with args. 12011 set dummy $tool_basename; ac_word=$2 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12013 $as_echo_n "checking for $ac_word... " >&6; } 12014 if ${ac_cv_path_EGREP+:} false; then : 12015 $as_echo_n "(cached) " >&6 12016 else 12017 case $EGREP in 12018 [\\/]* | ?:[\\/]*) 12019 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 12020 ;; 12021 *) 12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12023 for as_dir in $PATH 12024 do 12025 IFS=$as_save_IFS 12026 test -z "$as_dir" && as_dir=. 12027 for ac_exec_ext in '' $ac_executable_extensions; do 12028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12029 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12031 break 2 12032 fi 12033 done 12034 done 12035 IFS=$as_save_IFS 12036 12037 ;; 12038 esac 12039 fi 12040 EGREP=$ac_cv_path_EGREP 12041 if test -n "$EGREP"; then 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12043 $as_echo "$EGREP" >&6; } 12044 else 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12046 $as_echo "no" >&6; } 12047 fi 12048 12049 12050 if test "x$EGREP" = x; then 12051 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12052 fi 12053 else 12054 # Otherwise we believe it is a complete path. Use it as it is. 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12056 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12058 $as_echo_n "checking for EGREP... " >&6; } 12059 if test ! -x "$tool_specified"; then 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12061 $as_echo "not found" >&6; } 12062 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12063 fi 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12065 $as_echo "$tool_specified" >&6; } 12066 fi 12067 fi 12068 fi 12069 12070 12071 if test "x$EGREP" = x; then 12072 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12073 fi 12074 12075 12076 12077 12078 # Publish this variable in the help. 12079 12080 12081 if test "x$FGREP" = x; then 12082 # The variable is not set by user, try to locate tool using the code snippet 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12084 $as_echo_n "checking for fgrep... " >&6; } 12085 if ${ac_cv_path_FGREP+:} false; then : 12086 $as_echo_n "(cached) " >&6 12087 else 12088 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12089 then ac_cv_path_FGREP="$GREP -F" 12090 else 12091 if test -z "$FGREP"; then 12092 ac_path_FGREP_found=false 12093 # Loop through the user's path and test for each of PROGNAME-LIST 12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12096 do 12097 IFS=$as_save_IFS 12098 test -z "$as_dir" && as_dir=. 12099 for ac_prog in fgrep; do 12100 for ac_exec_ext in '' $ac_executable_extensions; do 12101 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12102 as_fn_executable_p "$ac_path_FGREP" || continue 12103 # Check for GNU ac_path_FGREP and select it if it is found. 12104 # Check for GNU $ac_path_FGREP 12105 case `"$ac_path_FGREP" --version 2>&1` in 12106 *GNU*) 12107 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12108 *) 12109 ac_count=0 12110 $as_echo_n 0123456789 >"conftest.in" 12111 while : 12112 do 12113 cat "conftest.in" "conftest.in" >"conftest.tmp" 12114 mv "conftest.tmp" "conftest.in" 12115 cp "conftest.in" "conftest.nl" 12116 $as_echo 'FGREP' >> "conftest.nl" 12117 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12119 as_fn_arith $ac_count + 1 && ac_count=$as_val 12120 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12121 # Best one so far, save it but keep looking for a better one 12122 ac_cv_path_FGREP="$ac_path_FGREP" 12123 ac_path_FGREP_max=$ac_count 12124 fi 12125 # 10*(2^10) chars as input seems more than enough 12126 test $ac_count -gt 10 && break 12127 done 12128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12129 esac 12130 12131 $ac_path_FGREP_found && break 3 12132 done 12133 done 12134 done 12135 IFS=$as_save_IFS 12136 if test -z "$ac_cv_path_FGREP"; then 12137 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12138 fi 12139 else 12140 ac_cv_path_FGREP=$FGREP 12141 fi 12142 12143 fi 12144 fi 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12146 $as_echo "$ac_cv_path_FGREP" >&6; } 12147 FGREP="$ac_cv_path_FGREP" 12148 12149 12150 else 12151 # The variable is set, but is it from the command line or the environment? 12152 12153 # Try to remove the string !FGREP! from our list. 12154 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12155 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12156 # If it failed, the variable was not from the command line. Ignore it, 12157 # but warn the user (except for BASH, which is always set by the calling BASH). 12158 if test "xFGREP" != xBASH; then 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12160 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12161 fi 12162 # Try to locate tool using the code snippet 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12164 $as_echo_n "checking for fgrep... " >&6; } 12165 if ${ac_cv_path_FGREP+:} false; then : 12166 $as_echo_n "(cached) " >&6 12167 else 12168 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12169 then ac_cv_path_FGREP="$GREP -F" 12170 else 12171 if test -z "$FGREP"; then 12172 ac_path_FGREP_found=false 12173 # Loop through the user's path and test for each of PROGNAME-LIST 12174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12176 do 12177 IFS=$as_save_IFS 12178 test -z "$as_dir" && as_dir=. 12179 for ac_prog in fgrep; do 12180 for ac_exec_ext in '' $ac_executable_extensions; do 12181 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12182 as_fn_executable_p "$ac_path_FGREP" || continue 12183 # Check for GNU ac_path_FGREP and select it if it is found. 12184 # Check for GNU $ac_path_FGREP 12185 case `"$ac_path_FGREP" --version 2>&1` in 12186 *GNU*) 12187 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12188 *) 12189 ac_count=0 12190 $as_echo_n 0123456789 >"conftest.in" 12191 while : 12192 do 12193 cat "conftest.in" "conftest.in" >"conftest.tmp" 12194 mv "conftest.tmp" "conftest.in" 12195 cp "conftest.in" "conftest.nl" 12196 $as_echo 'FGREP' >> "conftest.nl" 12197 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12199 as_fn_arith $ac_count + 1 && ac_count=$as_val 12200 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12201 # Best one so far, save it but keep looking for a better one 12202 ac_cv_path_FGREP="$ac_path_FGREP" 12203 ac_path_FGREP_max=$ac_count 12204 fi 12205 # 10*(2^10) chars as input seems more than enough 12206 test $ac_count -gt 10 && break 12207 done 12208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12209 esac 12210 12211 $ac_path_FGREP_found && break 3 12212 done 12213 done 12214 done 12215 IFS=$as_save_IFS 12216 if test -z "$ac_cv_path_FGREP"; then 12217 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12218 fi 12219 else 12220 ac_cv_path_FGREP=$FGREP 12221 fi 12222 12223 fi 12224 fi 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12226 $as_echo "$ac_cv_path_FGREP" >&6; } 12227 FGREP="$ac_cv_path_FGREP" 12228 12229 12230 else 12231 # If it succeeded, then it was overridden by the user. We will use it 12232 # for the tool. 12233 12234 # First remove it from the list of overridden variables, so we can test 12235 # for unknown variables in the end. 12236 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12237 12238 # Check if the provided tool contains a complete path. 12239 tool_specified="$FGREP" 12240 tool_basename="${tool_specified##*/}" 12241 if test "x$tool_basename" = "x$tool_specified"; then 12242 # A command without a complete path is provided, search $PATH. 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12244 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12245 # Extract the first word of "$tool_basename", so it can be a program name with args. 12246 set dummy $tool_basename; ac_word=$2 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12248 $as_echo_n "checking for $ac_word... " >&6; } 12249 if ${ac_cv_path_FGREP+:} false; then : 12250 $as_echo_n "(cached) " >&6 12251 else 12252 case $FGREP in 12253 [\\/]* | ?:[\\/]*) 12254 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12255 ;; 12256 *) 12257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12258 for as_dir in $PATH 12259 do 12260 IFS=$as_save_IFS 12261 test -z "$as_dir" && as_dir=. 12262 for ac_exec_ext in '' $ac_executable_extensions; do 12263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12264 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12266 break 2 12267 fi 12268 done 12269 done 12270 IFS=$as_save_IFS 12271 12272 ;; 12273 esac 12274 fi 12275 FGREP=$ac_cv_path_FGREP 12276 if test -n "$FGREP"; then 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12278 $as_echo "$FGREP" >&6; } 12279 else 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12281 $as_echo "no" >&6; } 12282 fi 12283 12284 12285 if test "x$FGREP" = x; then 12286 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12287 fi 12288 else 12289 # Otherwise we believe it is a complete path. Use it as it is. 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12291 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12293 $as_echo_n "checking for FGREP... " >&6; } 12294 if test ! -x "$tool_specified"; then 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12296 $as_echo "not found" >&6; } 12297 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12298 fi 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12300 $as_echo "$tool_specified" >&6; } 12301 fi 12302 fi 12303 fi 12304 12305 12306 if test "x$FGREP" = x; then 12307 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12308 fi 12309 12310 12311 12312 12313 # Publish this variable in the help. 12314 12315 12316 if test "x$SED" = x; then 12317 # The variable is not set by user, try to locate tool using the code snippet 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12319 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12320 if ${ac_cv_path_SED+:} false; then : 12321 $as_echo_n "(cached) " >&6 12322 else 12323 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12324 for ac_i in 1 2 3 4 5 6 7; do 12325 ac_script="$ac_script$as_nl$ac_script" 12326 done 12327 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12328 { ac_script=; unset ac_script;} 12329 if test -z "$SED"; then 12330 ac_path_SED_found=false 12331 # Loop through the user's path and test for each of PROGNAME-LIST 12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12333 for as_dir in $PATH 12334 do 12335 IFS=$as_save_IFS 12336 test -z "$as_dir" && as_dir=. 12337 for ac_prog in sed gsed; do 12338 for ac_exec_ext in '' $ac_executable_extensions; do 12339 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12340 as_fn_executable_p "$ac_path_SED" || continue 12341 # Check for GNU ac_path_SED and select it if it is found. 12342 # Check for GNU $ac_path_SED 12343 case `"$ac_path_SED" --version 2>&1` in 12344 *GNU*) 12345 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12346 *) 12347 ac_count=0 12348 $as_echo_n 0123456789 >"conftest.in" 12349 while : 12350 do 12351 cat "conftest.in" "conftest.in" >"conftest.tmp" 12352 mv "conftest.tmp" "conftest.in" 12353 cp "conftest.in" "conftest.nl" 12354 $as_echo '' >> "conftest.nl" 12355 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12357 as_fn_arith $ac_count + 1 && ac_count=$as_val 12358 if test $ac_count -gt ${ac_path_SED_max-0}; then 12359 # Best one so far, save it but keep looking for a better one 12360 ac_cv_path_SED="$ac_path_SED" 12361 ac_path_SED_max=$ac_count 12362 fi 12363 # 10*(2^10) chars as input seems more than enough 12364 test $ac_count -gt 10 && break 12365 done 12366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12367 esac 12368 12369 $ac_path_SED_found && break 3 12370 done 12371 done 12372 done 12373 IFS=$as_save_IFS 12374 if test -z "$ac_cv_path_SED"; then 12375 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12376 fi 12377 else 12378 ac_cv_path_SED=$SED 12379 fi 12380 12381 fi 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12383 $as_echo "$ac_cv_path_SED" >&6; } 12384 SED="$ac_cv_path_SED" 12385 rm -f conftest.sed 12386 12387 else 12388 # The variable is set, but is it from the command line or the environment? 12389 12390 # Try to remove the string !SED! from our list. 12391 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12392 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12393 # If it failed, the variable was not from the command line. Ignore it, 12394 # but warn the user (except for BASH, which is always set by the calling BASH). 12395 if test "xSED" != xBASH; then 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12397 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12398 fi 12399 # Try to locate tool using the code snippet 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12401 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12402 if ${ac_cv_path_SED+:} false; then : 12403 $as_echo_n "(cached) " >&6 12404 else 12405 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12406 for ac_i in 1 2 3 4 5 6 7; do 12407 ac_script="$ac_script$as_nl$ac_script" 12408 done 12409 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12410 { ac_script=; unset ac_script;} 12411 if test -z "$SED"; then 12412 ac_path_SED_found=false 12413 # Loop through the user's path and test for each of PROGNAME-LIST 12414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12415 for as_dir in $PATH 12416 do 12417 IFS=$as_save_IFS 12418 test -z "$as_dir" && as_dir=. 12419 for ac_prog in sed gsed; do 12420 for ac_exec_ext in '' $ac_executable_extensions; do 12421 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12422 as_fn_executable_p "$ac_path_SED" || continue 12423 # Check for GNU ac_path_SED and select it if it is found. 12424 # Check for GNU $ac_path_SED 12425 case `"$ac_path_SED" --version 2>&1` in 12426 *GNU*) 12427 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12428 *) 12429 ac_count=0 12430 $as_echo_n 0123456789 >"conftest.in" 12431 while : 12432 do 12433 cat "conftest.in" "conftest.in" >"conftest.tmp" 12434 mv "conftest.tmp" "conftest.in" 12435 cp "conftest.in" "conftest.nl" 12436 $as_echo '' >> "conftest.nl" 12437 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12439 as_fn_arith $ac_count + 1 && ac_count=$as_val 12440 if test $ac_count -gt ${ac_path_SED_max-0}; then 12441 # Best one so far, save it but keep looking for a better one 12442 ac_cv_path_SED="$ac_path_SED" 12443 ac_path_SED_max=$ac_count 12444 fi 12445 # 10*(2^10) chars as input seems more than enough 12446 test $ac_count -gt 10 && break 12447 done 12448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12449 esac 12450 12451 $ac_path_SED_found && break 3 12452 done 12453 done 12454 done 12455 IFS=$as_save_IFS 12456 if test -z "$ac_cv_path_SED"; then 12457 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12458 fi 12459 else 12460 ac_cv_path_SED=$SED 12461 fi 12462 12463 fi 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12465 $as_echo "$ac_cv_path_SED" >&6; } 12466 SED="$ac_cv_path_SED" 12467 rm -f conftest.sed 12468 12469 else 12470 # If it succeeded, then it was overridden by the user. We will use it 12471 # for the tool. 12472 12473 # First remove it from the list of overridden variables, so we can test 12474 # for unknown variables in the end. 12475 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12476 12477 # Check if the provided tool contains a complete path. 12478 tool_specified="$SED" 12479 tool_basename="${tool_specified##*/}" 12480 if test "x$tool_basename" = "x$tool_specified"; then 12481 # A command without a complete path is provided, search $PATH. 12482 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12483 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12484 # Extract the first word of "$tool_basename", so it can be a program name with args. 12485 set dummy $tool_basename; ac_word=$2 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12487 $as_echo_n "checking for $ac_word... " >&6; } 12488 if ${ac_cv_path_SED+:} false; then : 12489 $as_echo_n "(cached) " >&6 12490 else 12491 case $SED in 12492 [\\/]* | ?:[\\/]*) 12493 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12494 ;; 12495 *) 12496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12497 for as_dir in $PATH 12498 do 12499 IFS=$as_save_IFS 12500 test -z "$as_dir" && as_dir=. 12501 for ac_exec_ext in '' $ac_executable_extensions; do 12502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12503 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12505 break 2 12506 fi 12507 done 12508 done 12509 IFS=$as_save_IFS 12510 12511 ;; 12512 esac 12513 fi 12514 SED=$ac_cv_path_SED 12515 if test -n "$SED"; then 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12517 $as_echo "$SED" >&6; } 12518 else 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12520 $as_echo "no" >&6; } 12521 fi 12522 12523 12524 if test "x$SED" = x; then 12525 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12526 fi 12527 else 12528 # Otherwise we believe it is a complete path. Use it as it is. 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12530 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12532 $as_echo_n "checking for SED... " >&6; } 12533 if test ! -x "$tool_specified"; then 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12535 $as_echo "not found" >&6; } 12536 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12537 fi 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12539 $as_echo "$tool_specified" >&6; } 12540 fi 12541 fi 12542 fi 12543 12544 12545 if test "x$SED" = x; then 12546 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12547 fi 12548 12549 12550 12551 # Always force rm. 12552 RM="$RM -f" 12553 12554 # pwd behaves differently on various platforms and some don't support the -L flag. 12555 # Always use the bash builtin pwd to get uniform behavior. 12556 THEPWDCMD=pwd 12557 12558 # These are not required on all platforms 12559 12560 12561 # Publish this variable in the help. 12562 12563 12564 if test "x$CYGPATH" = x; then 12565 # The variable is not set by user, try to locate tool using the code snippet 12566 for ac_prog in cygpath 12567 do 12568 # Extract the first word of "$ac_prog", so it can be a program name with args. 12569 set dummy $ac_prog; ac_word=$2 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12571 $as_echo_n "checking for $ac_word... " >&6; } 12572 if ${ac_cv_path_CYGPATH+:} false; then : 12573 $as_echo_n "(cached) " >&6 12574 else 12575 case $CYGPATH in 12576 [\\/]* | ?:[\\/]*) 12577 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12578 ;; 12579 *) 12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12581 for as_dir in $PATH 12582 do 12583 IFS=$as_save_IFS 12584 test -z "$as_dir" && as_dir=. 12585 for ac_exec_ext in '' $ac_executable_extensions; do 12586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12587 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12589 break 2 12590 fi 12591 done 12592 done 12593 IFS=$as_save_IFS 12594 12595 ;; 12596 esac 12597 fi 12598 CYGPATH=$ac_cv_path_CYGPATH 12599 if test -n "$CYGPATH"; then 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12601 $as_echo "$CYGPATH" >&6; } 12602 else 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12604 $as_echo "no" >&6; } 12605 fi 12606 12607 12608 test -n "$CYGPATH" && break 12609 done 12610 12611 else 12612 # The variable is set, but is it from the command line or the environment? 12613 12614 # Try to remove the string !CYGPATH! from our list. 12615 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12616 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12617 # If it failed, the variable was not from the command line. Ignore it, 12618 # but warn the user (except for BASH, which is always set by the calling BASH). 12619 if test "xCYGPATH" != xBASH; then 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12621 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12622 fi 12623 # Try to locate tool using the code snippet 12624 for ac_prog in cygpath 12625 do 12626 # Extract the first word of "$ac_prog", so it can be a program name with args. 12627 set dummy $ac_prog; ac_word=$2 12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12629 $as_echo_n "checking for $ac_word... " >&6; } 12630 if ${ac_cv_path_CYGPATH+:} false; then : 12631 $as_echo_n "(cached) " >&6 12632 else 12633 case $CYGPATH in 12634 [\\/]* | ?:[\\/]*) 12635 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12636 ;; 12637 *) 12638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12639 for as_dir in $PATH 12640 do 12641 IFS=$as_save_IFS 12642 test -z "$as_dir" && as_dir=. 12643 for ac_exec_ext in '' $ac_executable_extensions; do 12644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12645 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12647 break 2 12648 fi 12649 done 12650 done 12651 IFS=$as_save_IFS 12652 12653 ;; 12654 esac 12655 fi 12656 CYGPATH=$ac_cv_path_CYGPATH 12657 if test -n "$CYGPATH"; then 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12659 $as_echo "$CYGPATH" >&6; } 12660 else 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12662 $as_echo "no" >&6; } 12663 fi 12664 12665 12666 test -n "$CYGPATH" && break 12667 done 12668 12669 else 12670 # If it succeeded, then it was overridden by the user. We will use it 12671 # for the tool. 12672 12673 # First remove it from the list of overridden variables, so we can test 12674 # for unknown variables in the end. 12675 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12676 12677 # Check if the provided tool contains a complete path. 12678 tool_specified="$CYGPATH" 12679 tool_basename="${tool_specified##*/}" 12680 if test "x$tool_basename" = "x$tool_specified"; then 12681 # A command without a complete path is provided, search $PATH. 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12683 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12684 # Extract the first word of "$tool_basename", so it can be a program name with args. 12685 set dummy $tool_basename; ac_word=$2 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12687 $as_echo_n "checking for $ac_word... " >&6; } 12688 if ${ac_cv_path_CYGPATH+:} false; then : 12689 $as_echo_n "(cached) " >&6 12690 else 12691 case $CYGPATH in 12692 [\\/]* | ?:[\\/]*) 12693 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12694 ;; 12695 *) 12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12697 for as_dir in $PATH 12698 do 12699 IFS=$as_save_IFS 12700 test -z "$as_dir" && as_dir=. 12701 for ac_exec_ext in '' $ac_executable_extensions; do 12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12703 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12705 break 2 12706 fi 12707 done 12708 done 12709 IFS=$as_save_IFS 12710 12711 ;; 12712 esac 12713 fi 12714 CYGPATH=$ac_cv_path_CYGPATH 12715 if test -n "$CYGPATH"; then 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12717 $as_echo "$CYGPATH" >&6; } 12718 else 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12720 $as_echo "no" >&6; } 12721 fi 12722 12723 12724 if test "x$CYGPATH" = x; then 12725 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12726 fi 12727 else 12728 # Otherwise we believe it is a complete path. Use it as it is. 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12730 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12732 $as_echo_n "checking for CYGPATH... " >&6; } 12733 if test ! -x "$tool_specified"; then 12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12735 $as_echo "not found" >&6; } 12736 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12737 fi 12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12739 $as_echo "$tool_specified" >&6; } 12740 fi 12741 fi 12742 fi 12743 12744 12745 12746 12747 # Publish this variable in the help. 12748 12749 12750 if test "x$READLINK" = x; then 12751 # The variable is not set by user, try to locate tool using the code snippet 12752 for ac_prog in greadlink readlink 12753 do 12754 # Extract the first word of "$ac_prog", so it can be a program name with args. 12755 set dummy $ac_prog; ac_word=$2 12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12757 $as_echo_n "checking for $ac_word... " >&6; } 12758 if ${ac_cv_path_READLINK+:} false; then : 12759 $as_echo_n "(cached) " >&6 12760 else 12761 case $READLINK in 12762 [\\/]* | ?:[\\/]*) 12763 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12764 ;; 12765 *) 12766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12767 for as_dir in $PATH 12768 do 12769 IFS=$as_save_IFS 12770 test -z "$as_dir" && as_dir=. 12771 for ac_exec_ext in '' $ac_executable_extensions; do 12772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12773 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12775 break 2 12776 fi 12777 done 12778 done 12779 IFS=$as_save_IFS 12780 12781 ;; 12782 esac 12783 fi 12784 READLINK=$ac_cv_path_READLINK 12785 if test -n "$READLINK"; then 12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12787 $as_echo "$READLINK" >&6; } 12788 else 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12790 $as_echo "no" >&6; } 12791 fi 12792 12793 12794 test -n "$READLINK" && break 12795 done 12796 12797 else 12798 # The variable is set, but is it from the command line or the environment? 12799 12800 # Try to remove the string !READLINK! from our list. 12801 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12802 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12803 # If it failed, the variable was not from the command line. Ignore it, 12804 # but warn the user (except for BASH, which is always set by the calling BASH). 12805 if test "xREADLINK" != xBASH; then 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12807 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12808 fi 12809 # Try to locate tool using the code snippet 12810 for ac_prog in greadlink readlink 12811 do 12812 # Extract the first word of "$ac_prog", so it can be a program name with args. 12813 set dummy $ac_prog; ac_word=$2 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12815 $as_echo_n "checking for $ac_word... " >&6; } 12816 if ${ac_cv_path_READLINK+:} false; then : 12817 $as_echo_n "(cached) " >&6 12818 else 12819 case $READLINK in 12820 [\\/]* | ?:[\\/]*) 12821 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12822 ;; 12823 *) 12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12825 for as_dir in $PATH 12826 do 12827 IFS=$as_save_IFS 12828 test -z "$as_dir" && as_dir=. 12829 for ac_exec_ext in '' $ac_executable_extensions; do 12830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12831 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12833 break 2 12834 fi 12835 done 12836 done 12837 IFS=$as_save_IFS 12838 12839 ;; 12840 esac 12841 fi 12842 READLINK=$ac_cv_path_READLINK 12843 if test -n "$READLINK"; then 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12845 $as_echo "$READLINK" >&6; } 12846 else 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12848 $as_echo "no" >&6; } 12849 fi 12850 12851 12852 test -n "$READLINK" && break 12853 done 12854 12855 else 12856 # If it succeeded, then it was overridden by the user. We will use it 12857 # for the tool. 12858 12859 # First remove it from the list of overridden variables, so we can test 12860 # for unknown variables in the end. 12861 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12862 12863 # Check if the provided tool contains a complete path. 12864 tool_specified="$READLINK" 12865 tool_basename="${tool_specified##*/}" 12866 if test "x$tool_basename" = "x$tool_specified"; then 12867 # A command without a complete path is provided, search $PATH. 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12869 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12870 # Extract the first word of "$tool_basename", so it can be a program name with args. 12871 set dummy $tool_basename; ac_word=$2 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12873 $as_echo_n "checking for $ac_word... " >&6; } 12874 if ${ac_cv_path_READLINK+:} false; then : 12875 $as_echo_n "(cached) " >&6 12876 else 12877 case $READLINK in 12878 [\\/]* | ?:[\\/]*) 12879 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12880 ;; 12881 *) 12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12883 for as_dir in $PATH 12884 do 12885 IFS=$as_save_IFS 12886 test -z "$as_dir" && as_dir=. 12887 for ac_exec_ext in '' $ac_executable_extensions; do 12888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12889 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12891 break 2 12892 fi 12893 done 12894 done 12895 IFS=$as_save_IFS 12896 12897 ;; 12898 esac 12899 fi 12900 READLINK=$ac_cv_path_READLINK 12901 if test -n "$READLINK"; then 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12903 $as_echo "$READLINK" >&6; } 12904 else 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12906 $as_echo "no" >&6; } 12907 fi 12908 12909 12910 if test "x$READLINK" = x; then 12911 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12912 fi 12913 else 12914 # Otherwise we believe it is a complete path. Use it as it is. 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12916 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12918 $as_echo_n "checking for READLINK... " >&6; } 12919 if test ! -x "$tool_specified"; then 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12921 $as_echo "not found" >&6; } 12922 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12923 fi 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12925 $as_echo "$tool_specified" >&6; } 12926 fi 12927 fi 12928 fi 12929 12930 12931 12932 12933 # Publish this variable in the help. 12934 12935 12936 if test "x$DF" = x; then 12937 # The variable is not set by user, try to locate tool using the code snippet 12938 for ac_prog in df 12939 do 12940 # Extract the first word of "$ac_prog", so it can be a program name with args. 12941 set dummy $ac_prog; ac_word=$2 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12943 $as_echo_n "checking for $ac_word... " >&6; } 12944 if ${ac_cv_path_DF+:} false; then : 12945 $as_echo_n "(cached) " >&6 12946 else 12947 case $DF in 12948 [\\/]* | ?:[\\/]*) 12949 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12950 ;; 12951 *) 12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12953 for as_dir in $PATH 12954 do 12955 IFS=$as_save_IFS 12956 test -z "$as_dir" && as_dir=. 12957 for ac_exec_ext in '' $ac_executable_extensions; do 12958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12959 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12961 break 2 12962 fi 12963 done 12964 done 12965 IFS=$as_save_IFS 12966 12967 ;; 12968 esac 12969 fi 12970 DF=$ac_cv_path_DF 12971 if test -n "$DF"; then 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12973 $as_echo "$DF" >&6; } 12974 else 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12976 $as_echo "no" >&6; } 12977 fi 12978 12979 12980 test -n "$DF" && break 12981 done 12982 12983 else 12984 # The variable is set, but is it from the command line or the environment? 12985 12986 # Try to remove the string !DF! from our list. 12987 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12988 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12989 # If it failed, the variable was not from the command line. Ignore it, 12990 # but warn the user (except for BASH, which is always set by the calling BASH). 12991 if test "xDF" != xBASH; then 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12993 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12994 fi 12995 # Try to locate tool using the code snippet 12996 for ac_prog in df 12997 do 12998 # Extract the first word of "$ac_prog", so it can be a program name with args. 12999 set dummy $ac_prog; ac_word=$2 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13001 $as_echo_n "checking for $ac_word... " >&6; } 13002 if ${ac_cv_path_DF+:} false; then : 13003 $as_echo_n "(cached) " >&6 13004 else 13005 case $DF in 13006 [\\/]* | ?:[\\/]*) 13007 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13008 ;; 13009 *) 13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13011 for as_dir in $PATH 13012 do 13013 IFS=$as_save_IFS 13014 test -z "$as_dir" && as_dir=. 13015 for ac_exec_ext in '' $ac_executable_extensions; do 13016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13017 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13019 break 2 13020 fi 13021 done 13022 done 13023 IFS=$as_save_IFS 13024 13025 ;; 13026 esac 13027 fi 13028 DF=$ac_cv_path_DF 13029 if test -n "$DF"; then 13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13031 $as_echo "$DF" >&6; } 13032 else 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13034 $as_echo "no" >&6; } 13035 fi 13036 13037 13038 test -n "$DF" && break 13039 done 13040 13041 else 13042 # If it succeeded, then it was overridden by the user. We will use it 13043 # for the tool. 13044 13045 # First remove it from the list of overridden variables, so we can test 13046 # for unknown variables in the end. 13047 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13048 13049 # Check if the provided tool contains a complete path. 13050 tool_specified="$DF" 13051 tool_basename="${tool_specified##*/}" 13052 if test "x$tool_basename" = "x$tool_specified"; then 13053 # A command without a complete path is provided, search $PATH. 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13055 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13056 # Extract the first word of "$tool_basename", so it can be a program name with args. 13057 set dummy $tool_basename; ac_word=$2 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13059 $as_echo_n "checking for $ac_word... " >&6; } 13060 if ${ac_cv_path_DF+:} false; then : 13061 $as_echo_n "(cached) " >&6 13062 else 13063 case $DF in 13064 [\\/]* | ?:[\\/]*) 13065 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13066 ;; 13067 *) 13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13069 for as_dir in $PATH 13070 do 13071 IFS=$as_save_IFS 13072 test -z "$as_dir" && as_dir=. 13073 for ac_exec_ext in '' $ac_executable_extensions; do 13074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13075 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13077 break 2 13078 fi 13079 done 13080 done 13081 IFS=$as_save_IFS 13082 13083 ;; 13084 esac 13085 fi 13086 DF=$ac_cv_path_DF 13087 if test -n "$DF"; then 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13089 $as_echo "$DF" >&6; } 13090 else 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13092 $as_echo "no" >&6; } 13093 fi 13094 13095 13096 if test "x$DF" = x; then 13097 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13098 fi 13099 else 13100 # Otherwise we believe it is a complete path. Use it as it is. 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13102 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13104 $as_echo_n "checking for DF... " >&6; } 13105 if test ! -x "$tool_specified"; then 13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13107 $as_echo "not found" >&6; } 13108 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13109 fi 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13111 $as_echo "$tool_specified" >&6; } 13112 fi 13113 fi 13114 fi 13115 13116 13117 13118 13119 # Publish this variable in the help. 13120 13121 13122 if test "x$SETFILE" = x; then 13123 # The variable is not set by user, try to locate tool using the code snippet 13124 for ac_prog in SetFile 13125 do 13126 # Extract the first word of "$ac_prog", so it can be a program name with args. 13127 set dummy $ac_prog; ac_word=$2 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13129 $as_echo_n "checking for $ac_word... " >&6; } 13130 if ${ac_cv_path_SETFILE+:} false; then : 13131 $as_echo_n "(cached) " >&6 13132 else 13133 case $SETFILE in 13134 [\\/]* | ?:[\\/]*) 13135 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13136 ;; 13137 *) 13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13139 for as_dir in $PATH 13140 do 13141 IFS=$as_save_IFS 13142 test -z "$as_dir" && as_dir=. 13143 for ac_exec_ext in '' $ac_executable_extensions; do 13144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13145 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13147 break 2 13148 fi 13149 done 13150 done 13151 IFS=$as_save_IFS 13152 13153 ;; 13154 esac 13155 fi 13156 SETFILE=$ac_cv_path_SETFILE 13157 if test -n "$SETFILE"; then 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13159 $as_echo "$SETFILE" >&6; } 13160 else 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13162 $as_echo "no" >&6; } 13163 fi 13164 13165 13166 test -n "$SETFILE" && break 13167 done 13168 13169 else 13170 # The variable is set, but is it from the command line or the environment? 13171 13172 # Try to remove the string !SETFILE! from our list. 13173 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13174 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13175 # If it failed, the variable was not from the command line. Ignore it, 13176 # but warn the user (except for BASH, which is always set by the calling BASH). 13177 if test "xSETFILE" != xBASH; then 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13179 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13180 fi 13181 # Try to locate tool using the code snippet 13182 for ac_prog in SetFile 13183 do 13184 # Extract the first word of "$ac_prog", so it can be a program name with args. 13185 set dummy $ac_prog; ac_word=$2 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13187 $as_echo_n "checking for $ac_word... " >&6; } 13188 if ${ac_cv_path_SETFILE+:} false; then : 13189 $as_echo_n "(cached) " >&6 13190 else 13191 case $SETFILE in 13192 [\\/]* | ?:[\\/]*) 13193 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13194 ;; 13195 *) 13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13197 for as_dir in $PATH 13198 do 13199 IFS=$as_save_IFS 13200 test -z "$as_dir" && as_dir=. 13201 for ac_exec_ext in '' $ac_executable_extensions; do 13202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13203 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13205 break 2 13206 fi 13207 done 13208 done 13209 IFS=$as_save_IFS 13210 13211 ;; 13212 esac 13213 fi 13214 SETFILE=$ac_cv_path_SETFILE 13215 if test -n "$SETFILE"; then 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13217 $as_echo "$SETFILE" >&6; } 13218 else 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13220 $as_echo "no" >&6; } 13221 fi 13222 13223 13224 test -n "$SETFILE" && break 13225 done 13226 13227 else 13228 # If it succeeded, then it was overridden by the user. We will use it 13229 # for the tool. 13230 13231 # First remove it from the list of overridden variables, so we can test 13232 # for unknown variables in the end. 13233 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13234 13235 # Check if the provided tool contains a complete path. 13236 tool_specified="$SETFILE" 13237 tool_basename="${tool_specified##*/}" 13238 if test "x$tool_basename" = "x$tool_specified"; then 13239 # A command without a complete path is provided, search $PATH. 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13241 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13242 # Extract the first word of "$tool_basename", so it can be a program name with args. 13243 set dummy $tool_basename; ac_word=$2 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13245 $as_echo_n "checking for $ac_word... " >&6; } 13246 if ${ac_cv_path_SETFILE+:} false; then : 13247 $as_echo_n "(cached) " >&6 13248 else 13249 case $SETFILE in 13250 [\\/]* | ?:[\\/]*) 13251 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13252 ;; 13253 *) 13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13255 for as_dir in $PATH 13256 do 13257 IFS=$as_save_IFS 13258 test -z "$as_dir" && as_dir=. 13259 for ac_exec_ext in '' $ac_executable_extensions; do 13260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13261 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13263 break 2 13264 fi 13265 done 13266 done 13267 IFS=$as_save_IFS 13268 13269 ;; 13270 esac 13271 fi 13272 SETFILE=$ac_cv_path_SETFILE 13273 if test -n "$SETFILE"; then 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13275 $as_echo "$SETFILE" >&6; } 13276 else 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13278 $as_echo "no" >&6; } 13279 fi 13280 13281 13282 if test "x$SETFILE" = x; then 13283 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13284 fi 13285 else 13286 # Otherwise we believe it is a complete path. Use it as it is. 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13288 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13290 $as_echo_n "checking for SETFILE... " >&6; } 13291 if test ! -x "$tool_specified"; then 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13293 $as_echo "not found" >&6; } 13294 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13295 fi 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13297 $as_echo "$tool_specified" >&6; } 13298 fi 13299 fi 13300 fi 13301 13302 13303 13304 13305 # Now we can determine OpenJDK build and target platforms. This is required to 13306 # have early on. 13307 # Make sure we can run config.sub. 13308 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13309 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13310 13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13312 $as_echo_n "checking build system type... " >&6; } 13313 if ${ac_cv_build+:} false; then : 13314 $as_echo_n "(cached) " >&6 13315 else 13316 ac_build_alias=$build_alias 13317 test "x$ac_build_alias" = x && 13318 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13319 test "x$ac_build_alias" = x && 13320 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13321 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13322 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13323 13324 fi 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13326 $as_echo "$ac_cv_build" >&6; } 13327 case $ac_cv_build in 13328 *-*-*) ;; 13329 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13330 esac 13331 build=$ac_cv_build 13332 ac_save_IFS=$IFS; IFS='-' 13333 set x $ac_cv_build 13334 shift 13335 build_cpu=$1 13336 build_vendor=$2 13337 shift; shift 13338 # Remember, the first character of IFS is used to create $*, 13339 # except with old shells: 13340 build_os=$* 13341 IFS=$ac_save_IFS 13342 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13343 13344 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13346 $as_echo_n "checking host system type... " >&6; } 13347 if ${ac_cv_host+:} false; then : 13348 $as_echo_n "(cached) " >&6 13349 else 13350 if test "x$host_alias" = x; then 13351 ac_cv_host=$ac_cv_build 13352 else 13353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13355 fi 13356 13357 fi 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13359 $as_echo "$ac_cv_host" >&6; } 13360 case $ac_cv_host in 13361 *-*-*) ;; 13362 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13363 esac 13364 host=$ac_cv_host 13365 ac_save_IFS=$IFS; IFS='-' 13366 set x $ac_cv_host 13367 shift 13368 host_cpu=$1 13369 host_vendor=$2 13370 shift; shift 13371 # Remember, the first character of IFS is used to create $*, 13372 # except with old shells: 13373 host_os=$* 13374 IFS=$ac_save_IFS 13375 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13376 13377 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13379 $as_echo_n "checking target system type... " >&6; } 13380 if ${ac_cv_target+:} false; then : 13381 $as_echo_n "(cached) " >&6 13382 else 13383 if test "x$target_alias" = x; then 13384 ac_cv_target=$ac_cv_host 13385 else 13386 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13388 fi 13389 13390 fi 13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13392 $as_echo "$ac_cv_target" >&6; } 13393 case $ac_cv_target in 13394 *-*-*) ;; 13395 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13396 esac 13397 target=$ac_cv_target 13398 ac_save_IFS=$IFS; IFS='-' 13399 set x $ac_cv_target 13400 shift 13401 target_cpu=$1 13402 target_vendor=$2 13403 shift; shift 13404 # Remember, the first character of IFS is used to create $*, 13405 # except with old shells: 13406 target_os=$* 13407 IFS=$ac_save_IFS 13408 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13409 13410 13411 # The aliases save the names the user supplied, while $host etc. 13412 # will get canonicalized. 13413 test -n "$target_alias" && 13414 test "$program_prefix$program_suffix$program_transform_name" = \ 13415 NONENONEs,x,x, && 13416 program_prefix=${target_alias}- 13417 13418 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13419 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13420 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13421 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13422 # to use the configure naming style. 13423 13424 13425 13426 13427 13428 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13429 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13430 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13431 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13432 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13433 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13434 13435 13436 13437 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13438 13439 case "$build_os" in 13440 *linux*) 13441 VAR_OS=linux 13442 VAR_OS_API=posix 13443 VAR_OS_ENV=linux 13444 ;; 13445 *solaris*) 13446 VAR_OS=solaris 13447 VAR_OS_API=posix 13448 VAR_OS_ENV=solaris 13449 ;; 13450 *darwin*) 13451 VAR_OS=macosx 13452 VAR_OS_API=posix 13453 VAR_OS_ENV=macosx 13454 ;; 13455 *bsd*) 13456 VAR_OS=bsd 13457 VAR_OS_API=posix 13458 VAR_OS_ENV=bsd 13459 ;; 13460 *cygwin*) 13461 VAR_OS=windows 13462 VAR_OS_API=winapi 13463 VAR_OS_ENV=windows.cygwin 13464 ;; 13465 *mingw*) 13466 VAR_OS=windows 13467 VAR_OS_API=winapi 13468 VAR_OS_ENV=windows.msys 13469 ;; 13470 *aix*) 13471 VAR_OS=aix 13472 VAR_OS_API=posix 13473 VAR_OS_ENV=aix 13474 ;; 13475 *) 13476 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13477 ;; 13478 esac 13479 13480 13481 # First argument is the cpu name from the trip/quad 13482 case "$build_cpu" in 13483 x86_64) 13484 VAR_CPU=x86_64 13485 VAR_CPU_ARCH=x86 13486 VAR_CPU_BITS=64 13487 VAR_CPU_ENDIAN=little 13488 ;; 13489 i?86) 13490 VAR_CPU=x86 13491 VAR_CPU_ARCH=x86 13492 VAR_CPU_BITS=32 13493 VAR_CPU_ENDIAN=little 13494 ;; 13495 arm*) 13496 VAR_CPU=arm 13497 VAR_CPU_ARCH=arm 13498 VAR_CPU_BITS=32 13499 VAR_CPU_ENDIAN=little 13500 ;; 13501 aarch64) 13502 VAR_CPU=aarch64 13503 VAR_CPU_ARCH=aarch64 13504 VAR_CPU_BITS=64 13505 VAR_CPU_ENDIAN=little 13506 ;; 13507 powerpc) 13508 VAR_CPU=ppc 13509 VAR_CPU_ARCH=ppc 13510 VAR_CPU_BITS=32 13511 VAR_CPU_ENDIAN=big 13512 ;; 13513 powerpc64) 13514 VAR_CPU=ppc64 13515 VAR_CPU_ARCH=ppc 13516 VAR_CPU_BITS=64 13517 VAR_CPU_ENDIAN=big 13518 ;; 13519 powerpc64le) 13520 VAR_CPU=ppc64 13521 VAR_CPU_ARCH=ppc 13522 VAR_CPU_BITS=64 13523 VAR_CPU_ENDIAN=little 13524 ;; 13525 s390) 13526 VAR_CPU=s390 13527 VAR_CPU_ARCH=s390 13528 VAR_CPU_BITS=32 13529 VAR_CPU_ENDIAN=big 13530 ;; 13531 s390x) 13532 VAR_CPU=s390x 13533 VAR_CPU_ARCH=s390 13534 VAR_CPU_BITS=64 13535 VAR_CPU_ENDIAN=big 13536 ;; 13537 sparc) 13538 VAR_CPU=sparc 13539 VAR_CPU_ARCH=sparc 13540 VAR_CPU_BITS=32 13541 VAR_CPU_ENDIAN=big 13542 ;; 13543 sparcv9|sparc64) 13544 VAR_CPU=sparcv9 13545 VAR_CPU_ARCH=sparc 13546 VAR_CPU_BITS=64 13547 VAR_CPU_ENDIAN=big 13548 ;; 13549 *) 13550 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13551 ;; 13552 esac 13553 13554 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13555 OPENJDK_BUILD_OS="$VAR_OS" 13556 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13557 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13558 OPENJDK_BUILD_CPU="$VAR_CPU" 13559 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13560 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13561 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13562 13563 13564 13565 13566 13567 13568 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13570 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13572 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13573 13574 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13575 13576 case "$host_os" in 13577 *linux*) 13578 VAR_OS=linux 13579 VAR_OS_API=posix 13580 VAR_OS_ENV=linux 13581 ;; 13582 *solaris*) 13583 VAR_OS=solaris 13584 VAR_OS_API=posix 13585 VAR_OS_ENV=solaris 13586 ;; 13587 *darwin*) 13588 VAR_OS=macosx 13589 VAR_OS_API=posix 13590 VAR_OS_ENV=macosx 13591 ;; 13592 *bsd*) 13593 VAR_OS=bsd 13594 VAR_OS_API=posix 13595 VAR_OS_ENV=bsd 13596 ;; 13597 *cygwin*) 13598 VAR_OS=windows 13599 VAR_OS_API=winapi 13600 VAR_OS_ENV=windows.cygwin 13601 ;; 13602 *mingw*) 13603 VAR_OS=windows 13604 VAR_OS_API=winapi 13605 VAR_OS_ENV=windows.msys 13606 ;; 13607 *aix*) 13608 VAR_OS=aix 13609 VAR_OS_API=posix 13610 VAR_OS_ENV=aix 13611 ;; 13612 *) 13613 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13614 ;; 13615 esac 13616 13617 13618 # First argument is the cpu name from the trip/quad 13619 case "$host_cpu" in 13620 x86_64) 13621 VAR_CPU=x86_64 13622 VAR_CPU_ARCH=x86 13623 VAR_CPU_BITS=64 13624 VAR_CPU_ENDIAN=little 13625 ;; 13626 i?86) 13627 VAR_CPU=x86 13628 VAR_CPU_ARCH=x86 13629 VAR_CPU_BITS=32 13630 VAR_CPU_ENDIAN=little 13631 ;; 13632 arm*) 13633 VAR_CPU=arm 13634 VAR_CPU_ARCH=arm 13635 VAR_CPU_BITS=32 13636 VAR_CPU_ENDIAN=little 13637 ;; 13638 aarch64) 13639 VAR_CPU=aarch64 13640 VAR_CPU_ARCH=aarch64 13641 VAR_CPU_BITS=64 13642 VAR_CPU_ENDIAN=little 13643 ;; 13644 powerpc) 13645 VAR_CPU=ppc 13646 VAR_CPU_ARCH=ppc 13647 VAR_CPU_BITS=32 13648 VAR_CPU_ENDIAN=big 13649 ;; 13650 powerpc64) 13651 VAR_CPU=ppc64 13652 VAR_CPU_ARCH=ppc 13653 VAR_CPU_BITS=64 13654 VAR_CPU_ENDIAN=big 13655 ;; 13656 powerpc64le) 13657 VAR_CPU=ppc64 13658 VAR_CPU_ARCH=ppc 13659 VAR_CPU_BITS=64 13660 VAR_CPU_ENDIAN=little 13661 ;; 13662 s390) 13663 VAR_CPU=s390 13664 VAR_CPU_ARCH=s390 13665 VAR_CPU_BITS=32 13666 VAR_CPU_ENDIAN=big 13667 ;; 13668 s390x) 13669 VAR_CPU=s390x 13670 VAR_CPU_ARCH=s390 13671 VAR_CPU_BITS=64 13672 VAR_CPU_ENDIAN=big 13673 ;; 13674 sparc) 13675 VAR_CPU=sparc 13676 VAR_CPU_ARCH=sparc 13677 VAR_CPU_BITS=32 13678 VAR_CPU_ENDIAN=big 13679 ;; 13680 sparcv9|sparc64) 13681 VAR_CPU=sparcv9 13682 VAR_CPU_ARCH=sparc 13683 VAR_CPU_BITS=64 13684 VAR_CPU_ENDIAN=big 13685 ;; 13686 *) 13687 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13688 ;; 13689 esac 13690 13691 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13692 OPENJDK_TARGET_OS="$VAR_OS" 13693 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13694 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13695 OPENJDK_TARGET_CPU="$VAR_CPU" 13696 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13697 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13698 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13699 13700 13701 13702 13703 13704 13705 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13707 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13709 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13710 13711 13712 13713 # Check whether --with-target-bits was given. 13714 if test "${with_target_bits+set}" = set; then : 13715 withval=$with_target_bits; 13716 fi 13717 13718 13719 # We have three types of compiles: 13720 # native == normal compilation, target system == build system 13721 # cross == traditional cross compilation, target system != build system; special toolchain needed 13722 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13723 # 13724 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13725 # We're doing a proper cross-compilation 13726 COMPILE_TYPE="cross" 13727 else 13728 COMPILE_TYPE="native" 13729 fi 13730 13731 if test "x$with_target_bits" != x; then 13732 if test "x$COMPILE_TYPE" = "xcross"; then 13733 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13734 fi 13735 13736 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13737 # A reduced build is requested 13738 COMPILE_TYPE="reduced" 13739 OPENJDK_TARGET_CPU_BITS=32 13740 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13741 OPENJDK_TARGET_CPU=x86 13742 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13743 OPENJDK_TARGET_CPU=sparc 13744 else 13745 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13746 fi 13747 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13748 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 13749 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13751 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13752 else 13753 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13754 fi 13755 fi 13756 13757 13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13759 $as_echo_n "checking compilation type... " >&6; } 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13761 $as_echo "$COMPILE_TYPE" >&6; } 13762 13763 13764 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13765 REQUIRED_OS_NAME=SunOS 13766 REQUIRED_OS_VERSION=5.10 13767 fi 13768 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13769 REQUIRED_OS_NAME=Linux 13770 REQUIRED_OS_VERSION=2.6 13771 fi 13772 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13773 REQUIRED_OS_NAME=Windows 13774 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13775 REQUIRED_OS_VERSION=5.2 13776 else 13777 REQUIRED_OS_VERSION=5.1 13778 fi 13779 fi 13780 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13781 REQUIRED_OS_NAME=Darwin 13782 REQUIRED_OS_VERSION=11.2 13783 fi 13784 13785 13786 13787 13788 13789 # Also store the legacy naming of the cpu. 13790 # Ie i586 and amd64 instead of x86 and x86_64 13791 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13792 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13793 OPENJDK_TARGET_CPU_LEGACY="i586" 13794 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13795 # On all platforms except MacOSX replace x86_64 with amd64. 13796 OPENJDK_TARGET_CPU_LEGACY="amd64" 13797 fi 13798 13799 13800 # And the second legacy naming of the cpu. 13801 # Ie i386 and amd64 instead of x86 and x86_64. 13802 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13803 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13804 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13805 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13806 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13807 fi 13808 13809 13810 # This is the name of the cpu (but using i386 and amd64 instead of 13811 # x86 and x86_64, respectively), preceeded by a /, to be used when 13812 # locating libraries. On macosx, it's empty, though. 13813 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13814 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13815 OPENJDK_TARGET_CPU_LIBDIR="" 13816 fi 13817 13818 13819 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13820 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13821 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13822 OPENJDK_TARGET_CPU_ISADIR="" 13823 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13824 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13825 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13826 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13827 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13828 fi 13829 fi 13830 13831 13832 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13833 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13834 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13835 # On linux only, we replace x86 with i386. 13836 OPENJDK_TARGET_CPU_OSARCH="i386" 13837 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13838 # On all platforms except macosx, we replace x86_64 with amd64. 13839 OPENJDK_TARGET_CPU_OSARCH="amd64" 13840 fi 13841 13842 13843 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13844 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13845 OPENJDK_TARGET_CPU_JLI="i386" 13846 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13847 # On all platforms except macosx, we replace x86_64 with amd64. 13848 OPENJDK_TARGET_CPU_JLI="amd64" 13849 fi 13850 # Now setup the -D flags for building libjli. 13851 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13852 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13853 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13854 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13855 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13856 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13857 fi 13858 fi 13859 13860 13861 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13862 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13863 OPENJDK_TARGET_OS_API_DIR="solaris" 13864 fi 13865 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13866 OPENJDK_TARGET_OS_API_DIR="windows" 13867 fi 13868 13869 13870 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13871 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13872 else 13873 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13874 fi 13875 13876 13877 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13878 A_LP64="LP64:=" 13879 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13880 # unpack200.exe 13881 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13882 ADD_LP64="-D_LP64=1" 13883 fi 13884 fi 13885 LP64=$A_LP64 13886 13887 13888 if test "x$COMPILE_TYPE" = "xcross"; then 13889 # FIXME: ... or should this include reduced builds..? 13890 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13891 else 13892 DEFINE_CROSS_COMPILE_ARCH="" 13893 fi 13894 13895 13896 # ZERO_ARCHDEF is used to enable architecture-specific code 13897 case "${OPENJDK_TARGET_CPU}" in 13898 ppc) ZERO_ARCHDEF=PPC32 ;; 13899 ppc64) ZERO_ARCHDEF=PPC64 ;; 13900 s390*) ZERO_ARCHDEF=S390 ;; 13901 sparc*) ZERO_ARCHDEF=SPARC ;; 13902 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13903 x86) ZERO_ARCHDEF=IA32 ;; 13904 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13905 esac 13906 13907 13908 13909 13910 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13911 13912 # Save the current directory this script was started from 13913 CURDIR="$PWD" 13914 13915 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13916 PATH_SEP=";" 13917 13918 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13919 if test $SRC_ROOT_LENGTH -gt 100; then 13920 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13921 fi 13922 13923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 13925 $as_echo_n "checking cygwin release... " >&6; } 13926 CYGWIN_VERSION=`$UNAME -r` 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 13928 $as_echo "$CYGWIN_VERSION" >&6; } 13929 WINDOWS_ENV_VENDOR='cygwin' 13930 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 13931 13932 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 13933 if test "x$CYGWIN_VERSION_OLD" != x; then 13934 { $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 13935 $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;} 13936 as_fn_error $? "Cannot continue" "$LINENO" 5 13937 fi 13938 if test "x$CYGPATH" = x; then 13939 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 13940 fi 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 13942 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 13943 # The cmd output ends with Windows line endings (CR/LF) 13944 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 13945 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 13946 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 13948 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 13949 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 13950 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 13951 if test "x$test_cygdrive_prefix" = x; then 13952 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 13953 fi 13954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 13956 $as_echo_n "checking msys release... " >&6; } 13957 MSYS_VERSION=`$UNAME -r` 13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 13959 $as_echo "$MSYS_VERSION" >&6; } 13960 13961 WINDOWS_ENV_VENDOR='msys' 13962 WINDOWS_ENV_VERSION="$MSYS_VERSION" 13963 13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 13965 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 13966 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13967 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 13968 13969 windows_path="$MSYS_ROOT_PATH" 13970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13971 unix_path=`$CYGPATH -u "$windows_path"` 13972 MSYS_ROOT_PATH="$unix_path" 13973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13975 MSYS_ROOT_PATH="$unix_path" 13976 fi 13977 13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 13979 $as_echo "$MSYS_ROOT_PATH" >&6; } 13980 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 13981 else 13982 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 13983 fi 13984 13985 # Test if windows or unix (cygwin/msys) find is first in path. 13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 13987 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 13988 FIND_BINARY_OUTPUT=`find --version 2>&1` 13989 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 13991 $as_echo "unix style" >&6; } 13992 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 13994 $as_echo "Windows" >&6; } 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 13996 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 13997 { $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 13998 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 13999 as_fn_error $? "Cannot continue" "$LINENO" 5 14000 else 14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14002 $as_echo "unknown" >&6; } 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14004 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14005 fi 14006 14007 else 14008 PATH_SEP=":" 14009 fi 14010 14011 14012 # We get the top-level directory from the supporting wrappers. 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14014 $as_echo_n "checking for top-level directory... " >&6; } 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14016 $as_echo "$TOPDIR" >&6; } 14017 14018 14019 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14020 14021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14022 14023 # Input might be given as Windows format, start by converting to 14024 # unix format. 14025 path="$CURDIR" 14026 new_path=`$CYGPATH -u "$path"` 14027 14028 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14029 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14030 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14031 # "foo.exe" is OK but "foo" is an error. 14032 # 14033 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14034 # It is also a way to make sure we got the proper file name for the real test later on. 14035 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14036 if test "x$test_shortpath" = x; then 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14038 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14039 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14040 fi 14041 14042 # Call helper function which possibly converts this using DOS-style short mode. 14043 # If so, the updated path is stored in $new_path. 14044 14045 input_path="$new_path" 14046 # Check if we need to convert this using DOS-style short mode. If the path 14047 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14048 # take no chances and rewrite it. 14049 # Note: m4 eats our [], so we need to use [ and ] instead. 14050 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14051 if test "x$has_forbidden_chars" != x; then 14052 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14053 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14054 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14055 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14056 # Going to short mode and back again did indeed matter. Since short mode is 14057 # case insensitive, let's make it lowercase to improve readability. 14058 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14059 # Now convert it back to Unix-stile (cygpath) 14060 input_path=`$CYGPATH -u "$shortmode_path"` 14061 new_path="$input_path" 14062 fi 14063 fi 14064 14065 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14066 if test "x$test_cygdrive_prefix" = x; then 14067 # As a simple fix, exclude /usr/bin since it's not a real path. 14068 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14069 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14070 # a path prefixed by /cygdrive for fixpath to work. 14071 new_path="$CYGWIN_ROOT_PATH$input_path" 14072 fi 14073 fi 14074 14075 14076 if test "x$path" != "x$new_path"; then 14077 CURDIR="$new_path" 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14079 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14080 fi 14081 14082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14083 14084 path="$CURDIR" 14085 has_colon=`$ECHO $path | $GREP ^.:` 14086 new_path="$path" 14087 if test "x$has_colon" = x; then 14088 # Not in mixed or Windows style, start by that. 14089 new_path=`cmd //c echo $path` 14090 fi 14091 14092 14093 input_path="$new_path" 14094 # Check if we need to convert this using DOS-style short mode. If the path 14095 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14096 # take no chances and rewrite it. 14097 # Note: m4 eats our [], so we need to use [ and ] instead. 14098 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14099 if test "x$has_forbidden_chars" != x; then 14100 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14101 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14102 fi 14103 14104 14105 windows_path="$new_path" 14106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14107 unix_path=`$CYGPATH -u "$windows_path"` 14108 new_path="$unix_path" 14109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14111 new_path="$unix_path" 14112 fi 14113 14114 if test "x$path" != "x$new_path"; then 14115 CURDIR="$new_path" 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14117 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14118 fi 14119 14120 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14121 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14122 14123 else 14124 # We're on a posix platform. Hooray! :) 14125 path="$CURDIR" 14126 has_space=`$ECHO "$path" | $GREP " "` 14127 if test "x$has_space" != x; then 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14129 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14130 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14131 fi 14132 14133 # Use eval to expand a potential ~ 14134 eval path="$path" 14135 if test ! -f "$path" && test ! -d "$path"; then 14136 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14137 fi 14138 14139 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14140 fi 14141 14142 14143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14144 14145 # Input might be given as Windows format, start by converting to 14146 # unix format. 14147 path="$TOPDIR" 14148 new_path=`$CYGPATH -u "$path"` 14149 14150 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14151 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14152 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14153 # "foo.exe" is OK but "foo" is an error. 14154 # 14155 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14156 # It is also a way to make sure we got the proper file name for the real test later on. 14157 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14158 if test "x$test_shortpath" = x; then 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14160 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14161 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14162 fi 14163 14164 # Call helper function which possibly converts this using DOS-style short mode. 14165 # If so, the updated path is stored in $new_path. 14166 14167 input_path="$new_path" 14168 # Check if we need to convert this using DOS-style short mode. If the path 14169 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14170 # take no chances and rewrite it. 14171 # Note: m4 eats our [], so we need to use [ and ] instead. 14172 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14173 if test "x$has_forbidden_chars" != x; then 14174 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14175 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14176 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14177 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14178 # Going to short mode and back again did indeed matter. Since short mode is 14179 # case insensitive, let's make it lowercase to improve readability. 14180 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14181 # Now convert it back to Unix-stile (cygpath) 14182 input_path=`$CYGPATH -u "$shortmode_path"` 14183 new_path="$input_path" 14184 fi 14185 fi 14186 14187 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14188 if test "x$test_cygdrive_prefix" = x; then 14189 # As a simple fix, exclude /usr/bin since it's not a real path. 14190 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14191 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14192 # a path prefixed by /cygdrive for fixpath to work. 14193 new_path="$CYGWIN_ROOT_PATH$input_path" 14194 fi 14195 fi 14196 14197 14198 if test "x$path" != "x$new_path"; then 14199 TOPDIR="$new_path" 14200 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14201 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14202 fi 14203 14204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14205 14206 path="$TOPDIR" 14207 has_colon=`$ECHO $path | $GREP ^.:` 14208 new_path="$path" 14209 if test "x$has_colon" = x; then 14210 # Not in mixed or Windows style, start by that. 14211 new_path=`cmd //c echo $path` 14212 fi 14213 14214 14215 input_path="$new_path" 14216 # Check if we need to convert this using DOS-style short mode. If the path 14217 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14218 # take no chances and rewrite it. 14219 # Note: m4 eats our [], so we need to use [ and ] instead. 14220 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14221 if test "x$has_forbidden_chars" != x; then 14222 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14223 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14224 fi 14225 14226 14227 windows_path="$new_path" 14228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14229 unix_path=`$CYGPATH -u "$windows_path"` 14230 new_path="$unix_path" 14231 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14232 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14233 new_path="$unix_path" 14234 fi 14235 14236 if test "x$path" != "x$new_path"; then 14237 TOPDIR="$new_path" 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14239 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14240 fi 14241 14242 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14243 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14244 14245 else 14246 # We're on a posix platform. Hooray! :) 14247 path="$TOPDIR" 14248 has_space=`$ECHO "$path" | $GREP " "` 14249 if test "x$has_space" != x; then 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14251 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14252 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14253 fi 14254 14255 # Use eval to expand a potential ~ 14256 eval path="$path" 14257 if test ! -f "$path" && test ! -d "$path"; then 14258 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14259 fi 14260 14261 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14262 fi 14263 14264 # SRC_ROOT is a traditional alias for TOPDIR. 14265 SRC_ROOT=$TOPDIR 14266 14267 # Locate the directory of this script. 14268 AUTOCONF_DIR=$TOPDIR/common/autoconf 14269 14270 14271 # Setup default logging of stdout and stderr to build.log in the output root. 14272 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14273 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14274 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14275 14276 14277 14278 14279 14280 # Check if it's a pure open build or if custom sources are to be used. 14281 14282 # Check whether --enable-openjdk-only was given. 14283 if test "${enable_openjdk_only+set}" = set; then : 14284 enableval=$enable_openjdk_only; 14285 else 14286 enable_openjdk_only="no" 14287 fi 14288 14289 14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14291 $as_echo_n "checking for presence of closed sources... " >&6; } 14292 if test -d "$SRC_ROOT/jdk/src/closed"; then 14293 CLOSED_SOURCE_PRESENT=yes 14294 else 14295 CLOSED_SOURCE_PRESENT=no 14296 fi 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14298 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14299 14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14301 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14302 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14304 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14305 14306 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14307 OPENJDK=true 14308 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14310 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14311 fi 14312 else 14313 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14314 OPENJDK=true 14315 else 14316 OPENJDK=false 14317 fi 14318 fi 14319 14320 if test "x$OPENJDK" = "xtrue"; then 14321 SET_OPENJDK="OPENJDK=true" 14322 fi 14323 14324 14325 14326 14327 # These are needed to be able to create a configuration name (and thus the output directory) 14328 14329 ############################################################################### 14330 # 14331 # Check which variant of the JDK that we want to build. 14332 # Currently we have: 14333 # normal: standard edition 14334 # but the custom make system may add other variants 14335 # 14336 # Effectively the JDK variant gives a name to a specific set of 14337 # modules to compile into the JDK. In the future, these modules 14338 # might even be Jigsaw modules. 14339 # 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14341 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14342 14343 # Check whether --with-jdk-variant was given. 14344 if test "${with_jdk_variant+set}" = set; then : 14345 withval=$with_jdk_variant; 14346 fi 14347 14348 14349 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14350 JDK_VARIANT="normal" 14351 else 14352 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14353 fi 14354 14355 14356 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14358 $as_echo "$JDK_VARIANT" >&6; } 14359 14360 14361 ############################################################################### 14362 # 14363 # Check which interpreter of the JVM we want to build. 14364 # Currently we have: 14365 # template: Template interpreter (the default) 14366 # cpp : C++ interpreter 14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14368 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14369 14370 # Check whether --with-jvm-interpreter was given. 14371 if test "${with_jvm_interpreter+set}" = set; then : 14372 withval=$with_jvm_interpreter; 14373 fi 14374 14375 14376 if test "x$with_jvm_interpreter" = x; then 14377 with_jvm_interpreter="template" 14378 fi 14379 14380 JVM_INTERPRETER="$with_jvm_interpreter" 14381 14382 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14383 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14384 fi 14385 14386 14387 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14389 $as_echo "$with_jvm_interpreter" >&6; } 14390 14391 14392 14393 ############################################################################### 14394 # 14395 # Check which variants of the JVM that we want to build. 14396 # Currently we have: 14397 # server: normal interpreter and a tiered C1/C2 compiler 14398 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14399 # minimal1: reduced form of client with optional VM services and features stripped out 14400 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14401 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14402 # zero: no machine code interpreter, no compiler 14403 # zeroshark: zero interpreter and shark/llvm compiler backend 14404 # core: interpreter only, no compiler (only works on some platforms) 14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14406 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14407 14408 # Check whether --with-jvm-variants was given. 14409 if test "${with_jvm_variants+set}" = set; then : 14410 withval=$with_jvm_variants; 14411 fi 14412 14413 14414 if test "x$with_jvm_variants" = x; then 14415 with_jvm_variants="server" 14416 fi 14417 14418 JVM_VARIANTS=",$with_jvm_variants," 14419 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'` 14420 14421 if test "x$TEST_VARIANTS" != "x,"; then 14422 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14423 fi 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14425 $as_echo "$with_jvm_variants" >&6; } 14426 14427 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14428 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14429 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14430 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14431 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14432 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14433 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14434 14435 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14436 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14437 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14438 fi 14439 fi 14440 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14441 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14442 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14443 fi 14444 fi 14445 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14446 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14447 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14448 fi 14449 fi 14450 14451 # Replace the commas with AND for use in the build directory name. 14452 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14453 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'` 14454 if test "x$COUNT_VARIANTS" != "x,1"; then 14455 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14456 else 14457 BUILDING_MULTIPLE_JVM_VARIANTS=no 14458 fi 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 INCLUDE_SA=true 14470 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14471 INCLUDE_SA=false 14472 fi 14473 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14474 INCLUDE_SA=false 14475 fi 14476 if test "x$VAR_CPU" = xppc64 ; then 14477 INCLUDE_SA=false 14478 fi 14479 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 14480 INCLUDE_SA=false 14481 fi 14482 14483 14484 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14485 MACOSX_UNIVERSAL="false" 14486 fi 14487 14488 14489 14490 14491 ############################################################################### 14492 # 14493 # Set the debug level 14494 # release: no debug information, all optimizations, no asserts. 14495 # fastdebug: debug information (-g), all optimizations, all asserts 14496 # slowdebug: debug information (-g), no optimizations, all asserts 14497 # 14498 DEBUG_LEVEL="release" 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14500 $as_echo_n "checking which debug level to use... " >&6; } 14501 # Check whether --enable-debug was given. 14502 if test "${enable_debug+set}" = set; then : 14503 enableval=$enable_debug; 14504 ENABLE_DEBUG="${enableval}" 14505 DEBUG_LEVEL="fastdebug" 14506 14507 else 14508 ENABLE_DEBUG="no" 14509 fi 14510 14511 14512 14513 # Check whether --with-debug-level was given. 14514 if test "${with_debug_level+set}" = set; then : 14515 withval=$with_debug_level; 14516 DEBUG_LEVEL="${withval}" 14517 if test "x$ENABLE_DEBUG" = xyes; then 14518 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14519 fi 14520 14521 fi 14522 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14524 $as_echo "$DEBUG_LEVEL" >&6; } 14525 14526 if test "x$DEBUG_LEVEL" != xrelease && \ 14527 test "x$DEBUG_LEVEL" != xfastdebug && \ 14528 test "x$DEBUG_LEVEL" != xslowdebug; then 14529 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14530 fi 14531 14532 14533 ############################################################################### 14534 # 14535 # Setup legacy vars/targets and new vars to deal with different debug levels. 14536 # 14537 14538 case $DEBUG_LEVEL in 14539 release ) 14540 VARIANT="OPT" 14541 FASTDEBUG="false" 14542 DEBUG_CLASSFILES="false" 14543 BUILD_VARIANT_RELEASE="" 14544 HOTSPOT_DEBUG_LEVEL="product" 14545 HOTSPOT_EXPORT="product" 14546 ;; 14547 fastdebug ) 14548 VARIANT="DBG" 14549 FASTDEBUG="true" 14550 DEBUG_CLASSFILES="true" 14551 BUILD_VARIANT_RELEASE="-fastdebug" 14552 HOTSPOT_DEBUG_LEVEL="fastdebug" 14553 HOTSPOT_EXPORT="fastdebug" 14554 ;; 14555 slowdebug ) 14556 VARIANT="DBG" 14557 FASTDEBUG="false" 14558 DEBUG_CLASSFILES="true" 14559 BUILD_VARIANT_RELEASE="-debug" 14560 HOTSPOT_DEBUG_LEVEL="jvmg" 14561 HOTSPOT_EXPORT="debug" 14562 ;; 14563 esac 14564 14565 ##### 14566 # Generate the legacy makefile targets for hotspot. 14567 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14568 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14569 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14570 # But until then ... 14571 HOTSPOT_TARGET="" 14572 14573 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14574 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14575 fi 14576 14577 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14578 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14579 fi 14580 14581 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14582 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14583 fi 14584 14585 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14586 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14587 fi 14588 14589 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14590 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14591 fi 14592 14593 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14594 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14595 fi 14596 14597 if test "x$JVM_VARIANT_CORE" = xtrue; then 14598 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14599 fi 14600 14601 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14602 14603 # On Macosx universal binaries are produced, but they only contain 14604 # 64 bit intel. This invalidates control of which jvms are built 14605 # from configure, but only server is valid anyway. Fix this 14606 # when hotspot makefiles are rewritten. 14607 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14608 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14609 fi 14610 14611 ##### 14612 14613 14614 14615 14616 14617 14618 14619 14620 # With basic setup done, call the custom early hook. 14621 14622 14623 # Check if we have devkits, extra paths or sysroot set. 14624 14625 14626 # Check whether --with-devkit was given. 14627 if test "${with_devkit+set}" = set; then : 14628 withval=$with_devkit; 14629 14630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14631 14632 # Input might be given as Windows format, start by converting to 14633 # unix format. 14634 path="$with_devkit" 14635 new_path=`$CYGPATH -u "$path"` 14636 14637 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14638 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14639 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14640 # "foo.exe" is OK but "foo" is an error. 14641 # 14642 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14643 # It is also a way to make sure we got the proper file name for the real test later on. 14644 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14645 if test "x$test_shortpath" = x; then 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14647 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14648 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14649 fi 14650 14651 # Call helper function which possibly converts this using DOS-style short mode. 14652 # If so, the updated path is stored in $new_path. 14653 14654 input_path="$new_path" 14655 # Check if we need to convert this using DOS-style short mode. If the path 14656 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14657 # take no chances and rewrite it. 14658 # Note: m4 eats our [], so we need to use [ and ] instead. 14659 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14660 if test "x$has_forbidden_chars" != x; then 14661 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14662 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14663 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14664 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14665 # Going to short mode and back again did indeed matter. Since short mode is 14666 # case insensitive, let's make it lowercase to improve readability. 14667 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14668 # Now convert it back to Unix-stile (cygpath) 14669 input_path=`$CYGPATH -u "$shortmode_path"` 14670 new_path="$input_path" 14671 fi 14672 fi 14673 14674 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14675 if test "x$test_cygdrive_prefix" = x; then 14676 # As a simple fix, exclude /usr/bin since it's not a real path. 14677 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14678 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14679 # a path prefixed by /cygdrive for fixpath to work. 14680 new_path="$CYGWIN_ROOT_PATH$input_path" 14681 fi 14682 fi 14683 14684 14685 if test "x$path" != "x$new_path"; then 14686 with_devkit="$new_path" 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14688 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14689 fi 14690 14691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14692 14693 path="$with_devkit" 14694 has_colon=`$ECHO $path | $GREP ^.:` 14695 new_path="$path" 14696 if test "x$has_colon" = x; then 14697 # Not in mixed or Windows style, start by that. 14698 new_path=`cmd //c echo $path` 14699 fi 14700 14701 14702 input_path="$new_path" 14703 # Check if we need to convert this using DOS-style short mode. If the path 14704 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14705 # take no chances and rewrite it. 14706 # Note: m4 eats our [], so we need to use [ and ] instead. 14707 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14708 if test "x$has_forbidden_chars" != x; then 14709 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14710 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14711 fi 14712 14713 14714 windows_path="$new_path" 14715 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14716 unix_path=`$CYGPATH -u "$windows_path"` 14717 new_path="$unix_path" 14718 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14719 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14720 new_path="$unix_path" 14721 fi 14722 14723 if test "x$path" != "x$new_path"; then 14724 with_devkit="$new_path" 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14726 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14727 fi 14728 14729 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14730 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14731 14732 else 14733 # We're on a posix platform. Hooray! :) 14734 path="$with_devkit" 14735 has_space=`$ECHO "$path" | $GREP " "` 14736 if test "x$has_space" != x; then 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14738 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14739 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14740 fi 14741 14742 # Use eval to expand a potential ~ 14743 eval path="$path" 14744 if test ! -f "$path" && test ! -d "$path"; then 14745 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14746 fi 14747 14748 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14749 fi 14750 14751 DEVKIT_ROOT="$with_devkit" 14752 # Check for a meta data info file in the root of the devkit 14753 if test -f "$DEVKIT_ROOT/devkit.info"; then 14754 # This potentially sets the following: 14755 # DEVKIT_NAME: A descriptive name of the devkit 14756 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14757 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14758 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14759 . $DEVKIT_ROOT/devkit.info 14760 fi 14761 14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14763 $as_echo_n "checking for devkit... " >&6; } 14764 if test "x$DEVKIT_NAME" != x; then 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14766 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14767 else 14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14769 $as_echo "$DEVKIT_ROOT" >&6; } 14770 fi 14771 14772 if test "x$DEVKIT_EXTRA_PATH" != x; then 14773 14774 if test "x$DEVKIT_EXTRA_PATH" != x; then 14775 if test "x$EXTRA_PATH" = x; then 14776 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14777 else 14778 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14779 fi 14780 fi 14781 14782 fi 14783 14784 # Fallback default of just /bin if DEVKIT_PATH is not defined 14785 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14786 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14787 fi 14788 14789 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14790 if test "x$TOOLCHAIN_PATH" = x; then 14791 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14792 else 14793 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14794 fi 14795 fi 14796 14797 14798 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 14799 # places for backwards compatiblity. 14800 if test "x$DEVKIT_SYSROOT" != x; then 14801 SYSROOT="$DEVKIT_SYSROOT" 14802 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14803 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14804 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14805 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14806 fi 14807 14808 14809 fi 14810 14811 14812 # You can force the sysroot if the sysroot encoded into the compiler tools 14813 # is not correct. 14814 14815 # Check whether --with-sys-root was given. 14816 if test "${with_sys_root+set}" = set; then : 14817 withval=$with_sys_root; SYSROOT=$with_sys_root 14818 14819 fi 14820 14821 14822 14823 # Check whether --with-sysroot was given. 14824 if test "${with_sysroot+set}" = set; then : 14825 withval=$with_sysroot; SYSROOT=$with_sysroot 14826 14827 fi 14828 14829 14830 14831 # Check whether --with-tools-dir was given. 14832 if test "${with_tools_dir+set}" = set; then : 14833 withval=$with_tools_dir; 14834 if test "x$with_tools_dir" != x; then 14835 if test "x$TOOLCHAIN_PATH" = x; then 14836 TOOLCHAIN_PATH="$with_tools_dir" 14837 else 14838 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 14839 fi 14840 fi 14841 14842 14843 fi 14844 14845 14846 14847 # Check whether --with-toolchain-path was given. 14848 if test "${with_toolchain_path+set}" = set; then : 14849 withval=$with_toolchain_path; 14850 if test "x$with_toolchain_path" != x; then 14851 if test "x$TOOLCHAIN_PATH" = x; then 14852 TOOLCHAIN_PATH="$with_toolchain_path" 14853 else 14854 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 14855 fi 14856 fi 14857 14858 14859 fi 14860 14861 14862 14863 # Check whether --with-extra-path was given. 14864 if test "${with_extra_path+set}" = set; then : 14865 withval=$with_extra_path; 14866 if test "x$with_extra_path" != x; then 14867 if test "x$EXTRA_PATH" = x; then 14868 EXTRA_PATH="$with_extra_path" 14869 else 14870 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 14871 fi 14872 fi 14873 14874 14875 fi 14876 14877 14878 # Prepend the extra path to the global path 14879 14880 if test "x$EXTRA_PATH" != x; then 14881 if test "x$PATH" = x; then 14882 PATH="$EXTRA_PATH" 14883 else 14884 PATH="$EXTRA_PATH:$PATH" 14885 fi 14886 fi 14887 14888 14889 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 14890 # Add extra search paths on solaris for utilities like ar and as etc... 14891 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 14892 fi 14893 14894 # Xcode version will be validated later 14895 14896 # Check whether --with-xcode-path was given. 14897 if test "${with_xcode_path+set}" = set; then : 14898 withval=$with_xcode_path; XCODE_PATH=$with_xcode_path 14899 14900 fi 14901 14902 14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14904 $as_echo_n "checking for sysroot... " >&6; } 14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 14906 $as_echo "$SYSROOT" >&6; } 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 14908 $as_echo_n "checking for toolchain path... " >&6; } 14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 14910 $as_echo "$TOOLCHAIN_PATH" >&6; } 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 14912 $as_echo_n "checking for extra path... " >&6; } 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 14914 $as_echo "$EXTRA_PATH" >&6; } 14915 14916 14917 # To properly create a configuration name, we need to have the OpenJDK target 14918 # and options (variants and debug level) parsed. 14919 14920 14921 14922 # Check whether --with-conf-name was given. 14923 if test "${with_conf_name+set}" = set; then : 14924 withval=$with_conf_name; CONF_NAME=${with_conf_name} 14925 fi 14926 14927 14928 # Test from where we are running configure, in or outside of src root. 14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 14930 $as_echo_n "checking where to store configuration... " >&6; } 14931 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 14932 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 14933 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 14934 # We are running configure from the src root. 14935 # Create a default ./build/target-variant-debuglevel output root. 14936 if test "x${CONF_NAME}" = x; then 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 14938 $as_echo "in default location" >&6; } 14939 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 14940 else 14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 14942 $as_echo "in build directory with custom name" >&6; } 14943 fi 14944 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 14945 $MKDIR -p "$OUTPUT_ROOT" 14946 if test ! -d "$OUTPUT_ROOT"; then 14947 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 14948 fi 14949 else 14950 # We are running configure from outside of the src dir. 14951 # Then use the current directory as output dir! 14952 # If configuration is situated in normal build directory, just use the build 14953 # directory name as configuration name, otherwise use the complete path. 14954 if test "x${CONF_NAME}" = x; then 14955 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 14956 fi 14957 OUTPUT_ROOT="$CURDIR" 14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 14959 $as_echo "in current directory" >&6; } 14960 14961 # WARNING: This might be a bad thing to do. You need to be sure you want to 14962 # have a configuration in this directory. Do some sanity checks! 14963 14964 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 14965 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 14966 # other files 14967 files_present=`$LS $OUTPUT_ROOT` 14968 # Configure has already touched config.log and confdefs.h in the current dir when this check 14969 # is performed. 14970 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 14971 | $TR -d '\n'` 14972 if test "x$filtered_files" != x; then 14973 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 14974 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 14975 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 14976 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 14978 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 14980 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 14982 $as_echo "$as_me: seriously mess up just about everything." >&6;} 14983 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 14984 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 14985 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 14986 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 14987 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 14988 fi 14989 fi 14990 fi 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 14992 $as_echo_n "checking what configuration name to use... " >&6; } 14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 14994 $as_echo "$CONF_NAME" >&6; } 14995 14996 14997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14998 14999 # Input might be given as Windows format, start by converting to 15000 # unix format. 15001 path="$OUTPUT_ROOT" 15002 new_path=`$CYGPATH -u "$path"` 15003 15004 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15005 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15006 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15007 # "foo.exe" is OK but "foo" is an error. 15008 # 15009 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15010 # It is also a way to make sure we got the proper file name for the real test later on. 15011 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15012 if test "x$test_shortpath" = x; then 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15014 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15015 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15016 fi 15017 15018 # Call helper function which possibly converts this using DOS-style short mode. 15019 # If so, the updated path is stored in $new_path. 15020 15021 input_path="$new_path" 15022 # Check if we need to convert this using DOS-style short mode. If the path 15023 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15024 # take no chances and rewrite it. 15025 # Note: m4 eats our [], so we need to use [ and ] instead. 15026 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15027 if test "x$has_forbidden_chars" != x; then 15028 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15029 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15030 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15031 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15032 # Going to short mode and back again did indeed matter. Since short mode is 15033 # case insensitive, let's make it lowercase to improve readability. 15034 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15035 # Now convert it back to Unix-stile (cygpath) 15036 input_path=`$CYGPATH -u "$shortmode_path"` 15037 new_path="$input_path" 15038 fi 15039 fi 15040 15041 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15042 if test "x$test_cygdrive_prefix" = x; then 15043 # As a simple fix, exclude /usr/bin since it's not a real path. 15044 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15045 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15046 # a path prefixed by /cygdrive for fixpath to work. 15047 new_path="$CYGWIN_ROOT_PATH$input_path" 15048 fi 15049 fi 15050 15051 15052 if test "x$path" != "x$new_path"; then 15053 OUTPUT_ROOT="$new_path" 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15055 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15056 fi 15057 15058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15059 15060 path="$OUTPUT_ROOT" 15061 has_colon=`$ECHO $path | $GREP ^.:` 15062 new_path="$path" 15063 if test "x$has_colon" = x; then 15064 # Not in mixed or Windows style, start by that. 15065 new_path=`cmd //c echo $path` 15066 fi 15067 15068 15069 input_path="$new_path" 15070 # Check if we need to convert this using DOS-style short mode. If the path 15071 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15072 # take no chances and rewrite it. 15073 # Note: m4 eats our [], so we need to use [ and ] instead. 15074 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15075 if test "x$has_forbidden_chars" != x; then 15076 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15077 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15078 fi 15079 15080 15081 windows_path="$new_path" 15082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15083 unix_path=`$CYGPATH -u "$windows_path"` 15084 new_path="$unix_path" 15085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15087 new_path="$unix_path" 15088 fi 15089 15090 if test "x$path" != "x$new_path"; then 15091 OUTPUT_ROOT="$new_path" 15092 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15093 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15094 fi 15095 15096 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15097 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15098 15099 else 15100 # We're on a posix platform. Hooray! :) 15101 path="$OUTPUT_ROOT" 15102 has_space=`$ECHO "$path" | $GREP " "` 15103 if test "x$has_space" != x; then 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15105 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15106 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15107 fi 15108 15109 # Use eval to expand a potential ~ 15110 eval path="$path" 15111 if test ! -f "$path" && test ! -d "$path"; then 15112 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15113 fi 15114 15115 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15116 fi 15117 15118 15119 SPEC=$OUTPUT_ROOT/spec.gmk 15120 15121 CONF_NAME=$CONF_NAME 15122 15123 OUTPUT_ROOT=$OUTPUT_ROOT 15124 15125 15126 # Most of the probed defines are put into config.h 15127 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15128 15129 # The spec.gmk file contains all variables for the make system. 15130 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15131 15132 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15133 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15134 15135 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15136 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15137 15138 # The compare.sh is used to compare the build output to other builds. 15139 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15140 15141 # Spec.sh is currently used by compare-objects.sh 15142 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15143 15144 # The generated Makefile knows where the spec.gmk is and where the source is. 15145 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15146 # which will look for generated configurations 15147 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15148 15149 15150 15151 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15152 15153 for ac_prog in apt-get yum port pkgutil pkgadd 15154 do 15155 # Extract the first word of "$ac_prog", so it can be a program name with args. 15156 set dummy $ac_prog; ac_word=$2 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15158 $as_echo_n "checking for $ac_word... " >&6; } 15159 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15160 $as_echo_n "(cached) " >&6 15161 else 15162 if test -n "$PKGHANDLER"; then 15163 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15164 else 15165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15166 for as_dir in $PATH 15167 do 15168 IFS=$as_save_IFS 15169 test -z "$as_dir" && as_dir=. 15170 for ac_exec_ext in '' $ac_executable_extensions; do 15171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15172 ac_cv_prog_PKGHANDLER="$ac_prog" 15173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15174 break 2 15175 fi 15176 done 15177 done 15178 IFS=$as_save_IFS 15179 15180 fi 15181 fi 15182 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15183 if test -n "$PKGHANDLER"; then 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15185 $as_echo "$PKGHANDLER" >&6; } 15186 else 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15188 $as_echo "no" >&6; } 15189 fi 15190 15191 15192 test -n "$PKGHANDLER" && break 15193 done 15194 15195 15196 15197 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15198 15199 15200 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15201 if test "x$MAKE" != x; then 15202 # User has supplied a make, test it. 15203 if test ! -f "$MAKE"; then 15204 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15205 fi 15206 15207 MAKE_CANDIDATE=""$MAKE"" 15208 DESCRIPTION="user supplied MAKE=$MAKE" 15209 if test "x$MAKE_CANDIDATE" != x; then 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15211 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15212 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15213 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15214 if test "x$IS_GNU_MAKE" = x; then 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15216 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15217 else 15218 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15219 if test "x$IS_MODERN_MAKE" = x; then 15220 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15221 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15222 else 15223 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15225 MAKE_EXPECTED_ENV='cygwin' 15226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15227 MAKE_EXPECTED_ENV='msys' 15228 else 15229 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15230 fi 15231 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15232 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15233 else 15234 # Not relevant for non-Windows 15235 IS_MAKE_CORRECT_ENV=true 15236 fi 15237 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15238 { $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 15239 $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;} 15240 else 15241 FOUND_MAKE=$MAKE_CANDIDATE 15242 15243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15244 15245 # First separate the path from the arguments. This will split at the first 15246 # space. 15247 complete="$FOUND_MAKE" 15248 path="${complete%% *}" 15249 tmp="$complete EOL" 15250 arguments="${tmp#* }" 15251 15252 # Input might be given as Windows format, start by converting to 15253 # unix format. 15254 new_path=`$CYGPATH -u "$path"` 15255 15256 # Now try to locate executable using which 15257 new_path=`$WHICH "$new_path" 2> /dev/null` 15258 # bat and cmd files are not always considered executable in cygwin causing which 15259 # to not find them 15260 if test "x$new_path" = x \ 15261 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15262 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15263 new_path=`$CYGPATH -u "$path"` 15264 fi 15265 if test "x$new_path" = x; then 15266 # Oops. Which didn't find the executable. 15267 # The splitting of arguments from the executable at a space might have been incorrect, 15268 # since paths with space are more likely in Windows. Give it another try with the whole 15269 # argument. 15270 path="$complete" 15271 arguments="EOL" 15272 new_path=`$CYGPATH -u "$path"` 15273 new_path=`$WHICH "$new_path" 2> /dev/null` 15274 # bat and cmd files are not always considered executable in cygwin causing which 15275 # to not find them 15276 if test "x$new_path" = x \ 15277 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15278 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15279 new_path=`$CYGPATH -u "$path"` 15280 fi 15281 if test "x$new_path" = x; then 15282 # It's still not found. Now this is an unrecoverable error. 15283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15284 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15285 has_space=`$ECHO "$complete" | $GREP " "` 15286 if test "x$has_space" != x; then 15287 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15288 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15289 fi 15290 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15291 fi 15292 fi 15293 15294 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15295 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15296 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15297 # "foo.exe" is OK but "foo" is an error. 15298 # 15299 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15300 # It is also a way to make sure we got the proper file name for the real test later on. 15301 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15302 if test "x$test_shortpath" = x; then 15303 # Short path failed, file does not exist as specified. 15304 # Try adding .exe or .cmd 15305 if test -f "${new_path}.exe"; then 15306 input_to_shortpath="${new_path}.exe" 15307 elif test -f "${new_path}.cmd"; then 15308 input_to_shortpath="${new_path}.cmd" 15309 else 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15311 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15313 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15314 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15315 fi 15316 else 15317 input_to_shortpath="$new_path" 15318 fi 15319 15320 # Call helper function which possibly converts this using DOS-style short mode. 15321 # If so, the updated path is stored in $new_path. 15322 new_path="$input_to_shortpath" 15323 15324 input_path="$input_to_shortpath" 15325 # Check if we need to convert this using DOS-style short mode. If the path 15326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15327 # take no chances and rewrite it. 15328 # Note: m4 eats our [], so we need to use [ and ] instead. 15329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15330 if test "x$has_forbidden_chars" != x; then 15331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15332 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15333 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15334 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15335 # Going to short mode and back again did indeed matter. Since short mode is 15336 # case insensitive, let's make it lowercase to improve readability. 15337 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15338 # Now convert it back to Unix-stile (cygpath) 15339 input_path=`$CYGPATH -u "$shortmode_path"` 15340 new_path="$input_path" 15341 fi 15342 fi 15343 15344 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15345 if test "x$test_cygdrive_prefix" = x; then 15346 # As a simple fix, exclude /usr/bin since it's not a real path. 15347 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15348 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15349 # a path prefixed by /cygdrive for fixpath to work. 15350 new_path="$CYGWIN_ROOT_PATH$input_path" 15351 fi 15352 fi 15353 15354 # remove trailing .exe if any 15355 new_path="${new_path/%.exe/}" 15356 15357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15358 15359 # First separate the path from the arguments. This will split at the first 15360 # space. 15361 complete="$FOUND_MAKE" 15362 path="${complete%% *}" 15363 tmp="$complete EOL" 15364 arguments="${tmp#* }" 15365 15366 # Input might be given as Windows format, start by converting to 15367 # unix format. 15368 new_path="$path" 15369 15370 windows_path="$new_path" 15371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15372 unix_path=`$CYGPATH -u "$windows_path"` 15373 new_path="$unix_path" 15374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15375 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15376 new_path="$unix_path" 15377 fi 15378 15379 15380 # Now try to locate executable using which 15381 new_path=`$WHICH "$new_path" 2> /dev/null` 15382 15383 if test "x$new_path" = x; then 15384 # Oops. Which didn't find the executable. 15385 # The splitting of arguments from the executable at a space might have been incorrect, 15386 # since paths with space are more likely in Windows. Give it another try with the whole 15387 # argument. 15388 path="$complete" 15389 arguments="EOL" 15390 new_path="$path" 15391 15392 windows_path="$new_path" 15393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15394 unix_path=`$CYGPATH -u "$windows_path"` 15395 new_path="$unix_path" 15396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15397 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15398 new_path="$unix_path" 15399 fi 15400 15401 15402 new_path=`$WHICH "$new_path" 2> /dev/null` 15403 15404 if test "x$new_path" = x; then 15405 # It's still not found. Now this is an unrecoverable error. 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15407 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15408 has_space=`$ECHO "$complete" | $GREP " "` 15409 if test "x$has_space" != x; then 15410 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15411 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15412 fi 15413 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15414 fi 15415 fi 15416 15417 # Now new_path has a complete unix path to the binary 15418 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15419 # Keep paths in /bin as-is, but remove trailing .exe if any 15420 new_path="${new_path/%.exe/}" 15421 # Do not save /bin paths to all_fixpath_prefixes! 15422 else 15423 # Not in mixed or Windows style, start by that. 15424 new_path=`cmd //c echo $new_path` 15425 15426 input_path="$new_path" 15427 # Check if we need to convert this using DOS-style short mode. If the path 15428 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15429 # take no chances and rewrite it. 15430 # Note: m4 eats our [], so we need to use [ and ] instead. 15431 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15432 if test "x$has_forbidden_chars" != x; then 15433 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15434 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15435 fi 15436 15437 # Output is in $new_path 15438 15439 windows_path="$new_path" 15440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15441 unix_path=`$CYGPATH -u "$windows_path"` 15442 new_path="$unix_path" 15443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15445 new_path="$unix_path" 15446 fi 15447 15448 # remove trailing .exe if any 15449 new_path="${new_path/%.exe/}" 15450 15451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15453 fi 15454 15455 else 15456 # We're on a posix platform. Hooray! :) 15457 # First separate the path from the arguments. This will split at the first 15458 # space. 15459 complete="$FOUND_MAKE" 15460 path="${complete%% *}" 15461 tmp="$complete EOL" 15462 arguments="${tmp#* }" 15463 15464 # Cannot rely on the command "which" here since it doesn't always work. 15465 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15466 if test -z "$is_absolute_path"; then 15467 # Path to executable is not absolute. Find it. 15468 IFS_save="$IFS" 15469 IFS=: 15470 for p in $PATH; do 15471 if test -f "$p/$path" && test -x "$p/$path"; then 15472 new_path="$p/$path" 15473 break 15474 fi 15475 done 15476 IFS="$IFS_save" 15477 else 15478 # This is an absolute path, we can use it without further modifications. 15479 new_path="$path" 15480 fi 15481 15482 if test "x$new_path" = x; then 15483 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15484 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15485 has_space=`$ECHO "$complete" | $GREP " "` 15486 if test "x$has_space" != x; then 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15488 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15489 fi 15490 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15491 fi 15492 fi 15493 15494 # Now join together the path and the arguments once again 15495 if test "x$arguments" != xEOL; then 15496 new_complete="$new_path ${arguments% *}" 15497 else 15498 new_complete="$new_path" 15499 fi 15500 15501 if test "x$complete" != "x$new_complete"; then 15502 FOUND_MAKE="$new_complete" 15503 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15504 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15505 fi 15506 15507 fi 15508 fi 15509 fi 15510 fi 15511 15512 if test "x$FOUND_MAKE" = x; then 15513 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15514 fi 15515 else 15516 # Try our hardest to locate a correct version of GNU make 15517 for ac_prog in gmake 15518 do 15519 # Extract the first word of "$ac_prog", so it can be a program name with args. 15520 set dummy $ac_prog; ac_word=$2 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15522 $as_echo_n "checking for $ac_word... " >&6; } 15523 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15524 $as_echo_n "(cached) " >&6 15525 else 15526 case $CHECK_GMAKE in 15527 [\\/]* | ?:[\\/]*) 15528 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15529 ;; 15530 *) 15531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15532 for as_dir in $PATH 15533 do 15534 IFS=$as_save_IFS 15535 test -z "$as_dir" && as_dir=. 15536 for ac_exec_ext in '' $ac_executable_extensions; do 15537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15538 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15540 break 2 15541 fi 15542 done 15543 done 15544 IFS=$as_save_IFS 15545 15546 ;; 15547 esac 15548 fi 15549 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15550 if test -n "$CHECK_GMAKE"; then 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15552 $as_echo "$CHECK_GMAKE" >&6; } 15553 else 15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15555 $as_echo "no" >&6; } 15556 fi 15557 15558 15559 test -n "$CHECK_GMAKE" && break 15560 done 15561 15562 15563 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15564 DESCRIPTION="gmake in PATH" 15565 if test "x$MAKE_CANDIDATE" != x; then 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15567 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15568 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15569 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15570 if test "x$IS_GNU_MAKE" = x; then 15571 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15572 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15573 else 15574 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15575 if test "x$IS_MODERN_MAKE" = x; then 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15577 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15578 else 15579 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15581 MAKE_EXPECTED_ENV='cygwin' 15582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15583 MAKE_EXPECTED_ENV='msys' 15584 else 15585 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15586 fi 15587 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15588 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15589 else 15590 # Not relevant for non-Windows 15591 IS_MAKE_CORRECT_ENV=true 15592 fi 15593 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15594 { $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 15595 $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;} 15596 else 15597 FOUND_MAKE=$MAKE_CANDIDATE 15598 15599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15600 15601 # First separate the path from the arguments. This will split at the first 15602 # space. 15603 complete="$FOUND_MAKE" 15604 path="${complete%% *}" 15605 tmp="$complete EOL" 15606 arguments="${tmp#* }" 15607 15608 # Input might be given as Windows format, start by converting to 15609 # unix format. 15610 new_path=`$CYGPATH -u "$path"` 15611 15612 # Now try to locate executable using which 15613 new_path=`$WHICH "$new_path" 2> /dev/null` 15614 # bat and cmd files are not always considered executable in cygwin causing which 15615 # to not find them 15616 if test "x$new_path" = x \ 15617 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15618 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15619 new_path=`$CYGPATH -u "$path"` 15620 fi 15621 if test "x$new_path" = x; then 15622 # Oops. Which didn't find the executable. 15623 # The splitting of arguments from the executable at a space might have been incorrect, 15624 # since paths with space are more likely in Windows. Give it another try with the whole 15625 # argument. 15626 path="$complete" 15627 arguments="EOL" 15628 new_path=`$CYGPATH -u "$path"` 15629 new_path=`$WHICH "$new_path" 2> /dev/null` 15630 # bat and cmd files are not always considered executable in cygwin causing which 15631 # to not find them 15632 if test "x$new_path" = x \ 15633 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15634 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15635 new_path=`$CYGPATH -u "$path"` 15636 fi 15637 if test "x$new_path" = x; then 15638 # It's still not found. Now this is an unrecoverable error. 15639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15640 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15641 has_space=`$ECHO "$complete" | $GREP " "` 15642 if test "x$has_space" != x; then 15643 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15644 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15645 fi 15646 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15647 fi 15648 fi 15649 15650 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15651 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15652 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15653 # "foo.exe" is OK but "foo" is an error. 15654 # 15655 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15656 # It is also a way to make sure we got the proper file name for the real test later on. 15657 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15658 if test "x$test_shortpath" = x; then 15659 # Short path failed, file does not exist as specified. 15660 # Try adding .exe or .cmd 15661 if test -f "${new_path}.exe"; then 15662 input_to_shortpath="${new_path}.exe" 15663 elif test -f "${new_path}.cmd"; then 15664 input_to_shortpath="${new_path}.cmd" 15665 else 15666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15667 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15669 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15670 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15671 fi 15672 else 15673 input_to_shortpath="$new_path" 15674 fi 15675 15676 # Call helper function which possibly converts this using DOS-style short mode. 15677 # If so, the updated path is stored in $new_path. 15678 new_path="$input_to_shortpath" 15679 15680 input_path="$input_to_shortpath" 15681 # Check if we need to convert this using DOS-style short mode. If the path 15682 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15683 # take no chances and rewrite it. 15684 # Note: m4 eats our [], so we need to use [ and ] instead. 15685 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15686 if test "x$has_forbidden_chars" != x; then 15687 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15688 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15689 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15690 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15691 # Going to short mode and back again did indeed matter. Since short mode is 15692 # case insensitive, let's make it lowercase to improve readability. 15693 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15694 # Now convert it back to Unix-stile (cygpath) 15695 input_path=`$CYGPATH -u "$shortmode_path"` 15696 new_path="$input_path" 15697 fi 15698 fi 15699 15700 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15701 if test "x$test_cygdrive_prefix" = x; then 15702 # As a simple fix, exclude /usr/bin since it's not a real path. 15703 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15704 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15705 # a path prefixed by /cygdrive for fixpath to work. 15706 new_path="$CYGWIN_ROOT_PATH$input_path" 15707 fi 15708 fi 15709 15710 # remove trailing .exe if any 15711 new_path="${new_path/%.exe/}" 15712 15713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15714 15715 # First separate the path from the arguments. This will split at the first 15716 # space. 15717 complete="$FOUND_MAKE" 15718 path="${complete%% *}" 15719 tmp="$complete EOL" 15720 arguments="${tmp#* }" 15721 15722 # Input might be given as Windows format, start by converting to 15723 # unix format. 15724 new_path="$path" 15725 15726 windows_path="$new_path" 15727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15728 unix_path=`$CYGPATH -u "$windows_path"` 15729 new_path="$unix_path" 15730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15732 new_path="$unix_path" 15733 fi 15734 15735 15736 # Now try to locate executable using which 15737 new_path=`$WHICH "$new_path" 2> /dev/null` 15738 15739 if test "x$new_path" = x; then 15740 # Oops. Which didn't find the executable. 15741 # The splitting of arguments from the executable at a space might have been incorrect, 15742 # since paths with space are more likely in Windows. Give it another try with the whole 15743 # argument. 15744 path="$complete" 15745 arguments="EOL" 15746 new_path="$path" 15747 15748 windows_path="$new_path" 15749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15750 unix_path=`$CYGPATH -u "$windows_path"` 15751 new_path="$unix_path" 15752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15754 new_path="$unix_path" 15755 fi 15756 15757 15758 new_path=`$WHICH "$new_path" 2> /dev/null` 15759 15760 if test "x$new_path" = x; then 15761 # It's still not found. Now this is an unrecoverable error. 15762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15763 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15764 has_space=`$ECHO "$complete" | $GREP " "` 15765 if test "x$has_space" != x; then 15766 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15767 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15768 fi 15769 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15770 fi 15771 fi 15772 15773 # Now new_path has a complete unix path to the binary 15774 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15775 # Keep paths in /bin as-is, but remove trailing .exe if any 15776 new_path="${new_path/%.exe/}" 15777 # Do not save /bin paths to all_fixpath_prefixes! 15778 else 15779 # Not in mixed or Windows style, start by that. 15780 new_path=`cmd //c echo $new_path` 15781 15782 input_path="$new_path" 15783 # Check if we need to convert this using DOS-style short mode. If the path 15784 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15785 # take no chances and rewrite it. 15786 # Note: m4 eats our [], so we need to use [ and ] instead. 15787 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15788 if test "x$has_forbidden_chars" != x; then 15789 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15790 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15791 fi 15792 15793 # Output is in $new_path 15794 15795 windows_path="$new_path" 15796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15797 unix_path=`$CYGPATH -u "$windows_path"` 15798 new_path="$unix_path" 15799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15801 new_path="$unix_path" 15802 fi 15803 15804 # remove trailing .exe if any 15805 new_path="${new_path/%.exe/}" 15806 15807 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15808 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15809 fi 15810 15811 else 15812 # We're on a posix platform. Hooray! :) 15813 # First separate the path from the arguments. This will split at the first 15814 # space. 15815 complete="$FOUND_MAKE" 15816 path="${complete%% *}" 15817 tmp="$complete EOL" 15818 arguments="${tmp#* }" 15819 15820 # Cannot rely on the command "which" here since it doesn't always work. 15821 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15822 if test -z "$is_absolute_path"; then 15823 # Path to executable is not absolute. Find it. 15824 IFS_save="$IFS" 15825 IFS=: 15826 for p in $PATH; do 15827 if test -f "$p/$path" && test -x "$p/$path"; then 15828 new_path="$p/$path" 15829 break 15830 fi 15831 done 15832 IFS="$IFS_save" 15833 else 15834 # This is an absolute path, we can use it without further modifications. 15835 new_path="$path" 15836 fi 15837 15838 if test "x$new_path" = x; then 15839 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15840 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15841 has_space=`$ECHO "$complete" | $GREP " "` 15842 if test "x$has_space" != x; then 15843 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15844 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15845 fi 15846 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15847 fi 15848 fi 15849 15850 # Now join together the path and the arguments once again 15851 if test "x$arguments" != xEOL; then 15852 new_complete="$new_path ${arguments% *}" 15853 else 15854 new_complete="$new_path" 15855 fi 15856 15857 if test "x$complete" != "x$new_complete"; then 15858 FOUND_MAKE="$new_complete" 15859 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15860 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15861 fi 15862 15863 fi 15864 fi 15865 fi 15866 fi 15867 15868 15869 if test "x$FOUND_MAKE" = x; then 15870 for ac_prog in make 15871 do 15872 # Extract the first word of "$ac_prog", so it can be a program name with args. 15873 set dummy $ac_prog; ac_word=$2 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15875 $as_echo_n "checking for $ac_word... " >&6; } 15876 if ${ac_cv_path_CHECK_MAKE+:} false; then : 15877 $as_echo_n "(cached) " >&6 15878 else 15879 case $CHECK_MAKE in 15880 [\\/]* | ?:[\\/]*) 15881 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 15882 ;; 15883 *) 15884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15885 for as_dir in $PATH 15886 do 15887 IFS=$as_save_IFS 15888 test -z "$as_dir" && as_dir=. 15889 for ac_exec_ext in '' $ac_executable_extensions; do 15890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15891 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 15892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15893 break 2 15894 fi 15895 done 15896 done 15897 IFS=$as_save_IFS 15898 15899 ;; 15900 esac 15901 fi 15902 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 15903 if test -n "$CHECK_MAKE"; then 15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 15905 $as_echo "$CHECK_MAKE" >&6; } 15906 else 15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15908 $as_echo "no" >&6; } 15909 fi 15910 15911 15912 test -n "$CHECK_MAKE" && break 15913 done 15914 15915 15916 MAKE_CANDIDATE=""$CHECK_MAKE"" 15917 DESCRIPTION="make in PATH" 15918 if test "x$MAKE_CANDIDATE" != x; then 15919 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15920 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15921 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15922 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15923 if test "x$IS_GNU_MAKE" = x; then 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15925 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15926 else 15927 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15928 if test "x$IS_MODERN_MAKE" = x; then 15929 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15930 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15931 else 15932 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15934 MAKE_EXPECTED_ENV='cygwin' 15935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15936 MAKE_EXPECTED_ENV='msys' 15937 else 15938 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15939 fi 15940 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15941 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15942 else 15943 # Not relevant for non-Windows 15944 IS_MAKE_CORRECT_ENV=true 15945 fi 15946 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15947 { $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 15948 $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;} 15949 else 15950 FOUND_MAKE=$MAKE_CANDIDATE 15951 15952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15953 15954 # First separate the path from the arguments. This will split at the first 15955 # space. 15956 complete="$FOUND_MAKE" 15957 path="${complete%% *}" 15958 tmp="$complete EOL" 15959 arguments="${tmp#* }" 15960 15961 # Input might be given as Windows format, start by converting to 15962 # unix format. 15963 new_path=`$CYGPATH -u "$path"` 15964 15965 # Now try to locate executable using which 15966 new_path=`$WHICH "$new_path" 2> /dev/null` 15967 # bat and cmd files are not always considered executable in cygwin causing which 15968 # to not find them 15969 if test "x$new_path" = x \ 15970 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15971 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15972 new_path=`$CYGPATH -u "$path"` 15973 fi 15974 if test "x$new_path" = x; then 15975 # Oops. Which didn't find the executable. 15976 # The splitting of arguments from the executable at a space might have been incorrect, 15977 # since paths with space are more likely in Windows. Give it another try with the whole 15978 # argument. 15979 path="$complete" 15980 arguments="EOL" 15981 new_path=`$CYGPATH -u "$path"` 15982 new_path=`$WHICH "$new_path" 2> /dev/null` 15983 # bat and cmd files are not always considered executable in cygwin causing which 15984 # to not find them 15985 if test "x$new_path" = x \ 15986 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15987 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15988 new_path=`$CYGPATH -u "$path"` 15989 fi 15990 if test "x$new_path" = x; then 15991 # It's still not found. Now this is an unrecoverable error. 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15993 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15994 has_space=`$ECHO "$complete" | $GREP " "` 15995 if test "x$has_space" != x; then 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15997 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15998 fi 15999 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16000 fi 16001 fi 16002 16003 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16004 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16005 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16006 # "foo.exe" is OK but "foo" is an error. 16007 # 16008 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16009 # It is also a way to make sure we got the proper file name for the real test later on. 16010 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16011 if test "x$test_shortpath" = x; then 16012 # Short path failed, file does not exist as specified. 16013 # Try adding .exe or .cmd 16014 if test -f "${new_path}.exe"; then 16015 input_to_shortpath="${new_path}.exe" 16016 elif test -f "${new_path}.cmd"; then 16017 input_to_shortpath="${new_path}.cmd" 16018 else 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16020 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16022 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16023 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16024 fi 16025 else 16026 input_to_shortpath="$new_path" 16027 fi 16028 16029 # Call helper function which possibly converts this using DOS-style short mode. 16030 # If so, the updated path is stored in $new_path. 16031 new_path="$input_to_shortpath" 16032 16033 input_path="$input_to_shortpath" 16034 # Check if we need to convert this using DOS-style short mode. If the path 16035 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16036 # take no chances and rewrite it. 16037 # Note: m4 eats our [], so we need to use [ and ] instead. 16038 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16039 if test "x$has_forbidden_chars" != x; then 16040 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16041 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16042 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16043 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16044 # Going to short mode and back again did indeed matter. Since short mode is 16045 # case insensitive, let's make it lowercase to improve readability. 16046 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16047 # Now convert it back to Unix-stile (cygpath) 16048 input_path=`$CYGPATH -u "$shortmode_path"` 16049 new_path="$input_path" 16050 fi 16051 fi 16052 16053 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16054 if test "x$test_cygdrive_prefix" = x; then 16055 # As a simple fix, exclude /usr/bin since it's not a real path. 16056 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16057 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16058 # a path prefixed by /cygdrive for fixpath to work. 16059 new_path="$CYGWIN_ROOT_PATH$input_path" 16060 fi 16061 fi 16062 16063 # remove trailing .exe if any 16064 new_path="${new_path/%.exe/}" 16065 16066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16067 16068 # First separate the path from the arguments. This will split at the first 16069 # space. 16070 complete="$FOUND_MAKE" 16071 path="${complete%% *}" 16072 tmp="$complete EOL" 16073 arguments="${tmp#* }" 16074 16075 # Input might be given as Windows format, start by converting to 16076 # unix format. 16077 new_path="$path" 16078 16079 windows_path="$new_path" 16080 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16081 unix_path=`$CYGPATH -u "$windows_path"` 16082 new_path="$unix_path" 16083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16084 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16085 new_path="$unix_path" 16086 fi 16087 16088 16089 # Now try to locate executable using which 16090 new_path=`$WHICH "$new_path" 2> /dev/null` 16091 16092 if test "x$new_path" = x; then 16093 # Oops. Which didn't find the executable. 16094 # The splitting of arguments from the executable at a space might have been incorrect, 16095 # since paths with space are more likely in Windows. Give it another try with the whole 16096 # argument. 16097 path="$complete" 16098 arguments="EOL" 16099 new_path="$path" 16100 16101 windows_path="$new_path" 16102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16103 unix_path=`$CYGPATH -u "$windows_path"` 16104 new_path="$unix_path" 16105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16106 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16107 new_path="$unix_path" 16108 fi 16109 16110 16111 new_path=`$WHICH "$new_path" 2> /dev/null` 16112 16113 if test "x$new_path" = x; then 16114 # It's still not found. Now this is an unrecoverable error. 16115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16116 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16117 has_space=`$ECHO "$complete" | $GREP " "` 16118 if test "x$has_space" != x; then 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16120 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16121 fi 16122 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16123 fi 16124 fi 16125 16126 # Now new_path has a complete unix path to the binary 16127 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16128 # Keep paths in /bin as-is, but remove trailing .exe if any 16129 new_path="${new_path/%.exe/}" 16130 # Do not save /bin paths to all_fixpath_prefixes! 16131 else 16132 # Not in mixed or Windows style, start by that. 16133 new_path=`cmd //c echo $new_path` 16134 16135 input_path="$new_path" 16136 # Check if we need to convert this using DOS-style short mode. If the path 16137 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16138 # take no chances and rewrite it. 16139 # Note: m4 eats our [], so we need to use [ and ] instead. 16140 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16141 if test "x$has_forbidden_chars" != x; then 16142 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16143 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16144 fi 16145 16146 # Output is in $new_path 16147 16148 windows_path="$new_path" 16149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16150 unix_path=`$CYGPATH -u "$windows_path"` 16151 new_path="$unix_path" 16152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16153 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16154 new_path="$unix_path" 16155 fi 16156 16157 # remove trailing .exe if any 16158 new_path="${new_path/%.exe/}" 16159 16160 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16161 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16162 fi 16163 16164 else 16165 # We're on a posix platform. Hooray! :) 16166 # First separate the path from the arguments. This will split at the first 16167 # space. 16168 complete="$FOUND_MAKE" 16169 path="${complete%% *}" 16170 tmp="$complete EOL" 16171 arguments="${tmp#* }" 16172 16173 # Cannot rely on the command "which" here since it doesn't always work. 16174 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16175 if test -z "$is_absolute_path"; then 16176 # Path to executable is not absolute. Find it. 16177 IFS_save="$IFS" 16178 IFS=: 16179 for p in $PATH; do 16180 if test -f "$p/$path" && test -x "$p/$path"; then 16181 new_path="$p/$path" 16182 break 16183 fi 16184 done 16185 IFS="$IFS_save" 16186 else 16187 # This is an absolute path, we can use it without further modifications. 16188 new_path="$path" 16189 fi 16190 16191 if test "x$new_path" = x; then 16192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16193 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16194 has_space=`$ECHO "$complete" | $GREP " "` 16195 if test "x$has_space" != x; then 16196 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16197 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16198 fi 16199 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16200 fi 16201 fi 16202 16203 # Now join together the path and the arguments once again 16204 if test "x$arguments" != xEOL; then 16205 new_complete="$new_path ${arguments% *}" 16206 else 16207 new_complete="$new_path" 16208 fi 16209 16210 if test "x$complete" != "x$new_complete"; then 16211 FOUND_MAKE="$new_complete" 16212 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16213 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16214 fi 16215 16216 fi 16217 fi 16218 fi 16219 fi 16220 16221 fi 16222 16223 if test "x$FOUND_MAKE" = x; then 16224 if test "x$TOOLCHAIN_PATH" != x; then 16225 # We have a toolchain path, check that as well before giving up. 16226 OLD_PATH=$PATH 16227 PATH=$TOOLCHAIN_PATH:$PATH 16228 for ac_prog in gmake 16229 do 16230 # Extract the first word of "$ac_prog", so it can be a program name with args. 16231 set dummy $ac_prog; ac_word=$2 16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16233 $as_echo_n "checking for $ac_word... " >&6; } 16234 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16235 $as_echo_n "(cached) " >&6 16236 else 16237 case $CHECK_TOOLSDIR_GMAKE in 16238 [\\/]* | ?:[\\/]*) 16239 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16240 ;; 16241 *) 16242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16243 for as_dir in $PATH 16244 do 16245 IFS=$as_save_IFS 16246 test -z "$as_dir" && as_dir=. 16247 for ac_exec_ext in '' $ac_executable_extensions; do 16248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16249 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16251 break 2 16252 fi 16253 done 16254 done 16255 IFS=$as_save_IFS 16256 16257 ;; 16258 esac 16259 fi 16260 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16261 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16263 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16264 else 16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16266 $as_echo "no" >&6; } 16267 fi 16268 16269 16270 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16271 done 16272 16273 16274 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16275 DESCRIPTION="gmake in tools-dir" 16276 if test "x$MAKE_CANDIDATE" != x; then 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16278 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16279 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16280 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16281 if test "x$IS_GNU_MAKE" = x; then 16282 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16283 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16284 else 16285 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16286 if test "x$IS_MODERN_MAKE" = x; then 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16288 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16289 else 16290 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16292 MAKE_EXPECTED_ENV='cygwin' 16293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16294 MAKE_EXPECTED_ENV='msys' 16295 else 16296 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16297 fi 16298 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16299 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16300 else 16301 # Not relevant for non-Windows 16302 IS_MAKE_CORRECT_ENV=true 16303 fi 16304 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16305 { $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 16306 $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;} 16307 else 16308 FOUND_MAKE=$MAKE_CANDIDATE 16309 16310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16311 16312 # First separate the path from the arguments. This will split at the first 16313 # space. 16314 complete="$FOUND_MAKE" 16315 path="${complete%% *}" 16316 tmp="$complete EOL" 16317 arguments="${tmp#* }" 16318 16319 # Input might be given as Windows format, start by converting to 16320 # unix format. 16321 new_path=`$CYGPATH -u "$path"` 16322 16323 # Now try to locate executable using which 16324 new_path=`$WHICH "$new_path" 2> /dev/null` 16325 # bat and cmd files are not always considered executable in cygwin causing which 16326 # to not find them 16327 if test "x$new_path" = x \ 16328 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16329 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16330 new_path=`$CYGPATH -u "$path"` 16331 fi 16332 if test "x$new_path" = x; then 16333 # Oops. Which didn't find the executable. 16334 # The splitting of arguments from the executable at a space might have been incorrect, 16335 # since paths with space are more likely in Windows. Give it another try with the whole 16336 # argument. 16337 path="$complete" 16338 arguments="EOL" 16339 new_path=`$CYGPATH -u "$path"` 16340 new_path=`$WHICH "$new_path" 2> /dev/null` 16341 # bat and cmd files are not always considered executable in cygwin causing which 16342 # to not find them 16343 if test "x$new_path" = x \ 16344 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16345 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16346 new_path=`$CYGPATH -u "$path"` 16347 fi 16348 if test "x$new_path" = x; then 16349 # It's still not found. Now this is an unrecoverable error. 16350 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16351 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16352 has_space=`$ECHO "$complete" | $GREP " "` 16353 if test "x$has_space" != x; then 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16355 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16356 fi 16357 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16358 fi 16359 fi 16360 16361 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16362 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16363 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16364 # "foo.exe" is OK but "foo" is an error. 16365 # 16366 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16367 # It is also a way to make sure we got the proper file name for the real test later on. 16368 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16369 if test "x$test_shortpath" = x; then 16370 # Short path failed, file does not exist as specified. 16371 # Try adding .exe or .cmd 16372 if test -f "${new_path}.exe"; then 16373 input_to_shortpath="${new_path}.exe" 16374 elif test -f "${new_path}.cmd"; then 16375 input_to_shortpath="${new_path}.cmd" 16376 else 16377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16378 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16380 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16381 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16382 fi 16383 else 16384 input_to_shortpath="$new_path" 16385 fi 16386 16387 # Call helper function which possibly converts this using DOS-style short mode. 16388 # If so, the updated path is stored in $new_path. 16389 new_path="$input_to_shortpath" 16390 16391 input_path="$input_to_shortpath" 16392 # Check if we need to convert this using DOS-style short mode. If the path 16393 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16394 # take no chances and rewrite it. 16395 # Note: m4 eats our [], so we need to use [ and ] instead. 16396 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16397 if test "x$has_forbidden_chars" != x; then 16398 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16399 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16400 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16401 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16402 # Going to short mode and back again did indeed matter. Since short mode is 16403 # case insensitive, let's make it lowercase to improve readability. 16404 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16405 # Now convert it back to Unix-stile (cygpath) 16406 input_path=`$CYGPATH -u "$shortmode_path"` 16407 new_path="$input_path" 16408 fi 16409 fi 16410 16411 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16412 if test "x$test_cygdrive_prefix" = x; then 16413 # As a simple fix, exclude /usr/bin since it's not a real path. 16414 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16415 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16416 # a path prefixed by /cygdrive for fixpath to work. 16417 new_path="$CYGWIN_ROOT_PATH$input_path" 16418 fi 16419 fi 16420 16421 # remove trailing .exe if any 16422 new_path="${new_path/%.exe/}" 16423 16424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16425 16426 # First separate the path from the arguments. This will split at the first 16427 # space. 16428 complete="$FOUND_MAKE" 16429 path="${complete%% *}" 16430 tmp="$complete EOL" 16431 arguments="${tmp#* }" 16432 16433 # Input might be given as Windows format, start by converting to 16434 # unix format. 16435 new_path="$path" 16436 16437 windows_path="$new_path" 16438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16439 unix_path=`$CYGPATH -u "$windows_path"` 16440 new_path="$unix_path" 16441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16442 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16443 new_path="$unix_path" 16444 fi 16445 16446 16447 # Now try to locate executable using which 16448 new_path=`$WHICH "$new_path" 2> /dev/null` 16449 16450 if test "x$new_path" = x; then 16451 # Oops. Which didn't find the executable. 16452 # The splitting of arguments from the executable at a space might have been incorrect, 16453 # since paths with space are more likely in Windows. Give it another try with the whole 16454 # argument. 16455 path="$complete" 16456 arguments="EOL" 16457 new_path="$path" 16458 16459 windows_path="$new_path" 16460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16461 unix_path=`$CYGPATH -u "$windows_path"` 16462 new_path="$unix_path" 16463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16465 new_path="$unix_path" 16466 fi 16467 16468 16469 new_path=`$WHICH "$new_path" 2> /dev/null` 16470 16471 if test "x$new_path" = x; then 16472 # It's still not found. Now this is an unrecoverable error. 16473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16474 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16475 has_space=`$ECHO "$complete" | $GREP " "` 16476 if test "x$has_space" != x; then 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16478 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16479 fi 16480 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16481 fi 16482 fi 16483 16484 # Now new_path has a complete unix path to the binary 16485 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16486 # Keep paths in /bin as-is, but remove trailing .exe if any 16487 new_path="${new_path/%.exe/}" 16488 # Do not save /bin paths to all_fixpath_prefixes! 16489 else 16490 # Not in mixed or Windows style, start by that. 16491 new_path=`cmd //c echo $new_path` 16492 16493 input_path="$new_path" 16494 # Check if we need to convert this using DOS-style short mode. If the path 16495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16496 # take no chances and rewrite it. 16497 # Note: m4 eats our [], so we need to use [ and ] instead. 16498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16499 if test "x$has_forbidden_chars" != x; then 16500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16501 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16502 fi 16503 16504 # Output is in $new_path 16505 16506 windows_path="$new_path" 16507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16508 unix_path=`$CYGPATH -u "$windows_path"` 16509 new_path="$unix_path" 16510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16512 new_path="$unix_path" 16513 fi 16514 16515 # remove trailing .exe if any 16516 new_path="${new_path/%.exe/}" 16517 16518 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16519 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16520 fi 16521 16522 else 16523 # We're on a posix platform. Hooray! :) 16524 # First separate the path from the arguments. This will split at the first 16525 # space. 16526 complete="$FOUND_MAKE" 16527 path="${complete%% *}" 16528 tmp="$complete EOL" 16529 arguments="${tmp#* }" 16530 16531 # Cannot rely on the command "which" here since it doesn't always work. 16532 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16533 if test -z "$is_absolute_path"; then 16534 # Path to executable is not absolute. Find it. 16535 IFS_save="$IFS" 16536 IFS=: 16537 for p in $PATH; do 16538 if test -f "$p/$path" && test -x "$p/$path"; then 16539 new_path="$p/$path" 16540 break 16541 fi 16542 done 16543 IFS="$IFS_save" 16544 else 16545 # This is an absolute path, we can use it without further modifications. 16546 new_path="$path" 16547 fi 16548 16549 if test "x$new_path" = x; then 16550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16551 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16552 has_space=`$ECHO "$complete" | $GREP " "` 16553 if test "x$has_space" != x; then 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16555 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16556 fi 16557 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16558 fi 16559 fi 16560 16561 # Now join together the path and the arguments once again 16562 if test "x$arguments" != xEOL; then 16563 new_complete="$new_path ${arguments% *}" 16564 else 16565 new_complete="$new_path" 16566 fi 16567 16568 if test "x$complete" != "x$new_complete"; then 16569 FOUND_MAKE="$new_complete" 16570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16571 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16572 fi 16573 16574 fi 16575 fi 16576 fi 16577 fi 16578 16579 if test "x$FOUND_MAKE" = x; then 16580 for ac_prog in make 16581 do 16582 # Extract the first word of "$ac_prog", so it can be a program name with args. 16583 set dummy $ac_prog; ac_word=$2 16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16585 $as_echo_n "checking for $ac_word... " >&6; } 16586 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16587 $as_echo_n "(cached) " >&6 16588 else 16589 case $CHECK_TOOLSDIR_MAKE in 16590 [\\/]* | ?:[\\/]*) 16591 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16592 ;; 16593 *) 16594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16595 for as_dir in $PATH 16596 do 16597 IFS=$as_save_IFS 16598 test -z "$as_dir" && as_dir=. 16599 for ac_exec_ext in '' $ac_executable_extensions; do 16600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16601 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16603 break 2 16604 fi 16605 done 16606 done 16607 IFS=$as_save_IFS 16608 16609 ;; 16610 esac 16611 fi 16612 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16613 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16615 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16616 else 16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16618 $as_echo "no" >&6; } 16619 fi 16620 16621 16622 test -n "$CHECK_TOOLSDIR_MAKE" && break 16623 done 16624 16625 16626 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16627 DESCRIPTION="make in tools-dir" 16628 if test "x$MAKE_CANDIDATE" != x; then 16629 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16630 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16631 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16632 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16633 if test "x$IS_GNU_MAKE" = x; then 16634 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16635 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16636 else 16637 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16638 if test "x$IS_MODERN_MAKE" = x; then 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16640 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16641 else 16642 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16644 MAKE_EXPECTED_ENV='cygwin' 16645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16646 MAKE_EXPECTED_ENV='msys' 16647 else 16648 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16649 fi 16650 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16651 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16652 else 16653 # Not relevant for non-Windows 16654 IS_MAKE_CORRECT_ENV=true 16655 fi 16656 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16657 { $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 16658 $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;} 16659 else 16660 FOUND_MAKE=$MAKE_CANDIDATE 16661 16662 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16663 16664 # First separate the path from the arguments. This will split at the first 16665 # space. 16666 complete="$FOUND_MAKE" 16667 path="${complete%% *}" 16668 tmp="$complete EOL" 16669 arguments="${tmp#* }" 16670 16671 # Input might be given as Windows format, start by converting to 16672 # unix format. 16673 new_path=`$CYGPATH -u "$path"` 16674 16675 # Now try to locate executable using which 16676 new_path=`$WHICH "$new_path" 2> /dev/null` 16677 # bat and cmd files are not always considered executable in cygwin causing which 16678 # to not find them 16679 if test "x$new_path" = x \ 16680 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16681 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16682 new_path=`$CYGPATH -u "$path"` 16683 fi 16684 if test "x$new_path" = x; then 16685 # Oops. Which didn't find the executable. 16686 # The splitting of arguments from the executable at a space might have been incorrect, 16687 # since paths with space are more likely in Windows. Give it another try with the whole 16688 # argument. 16689 path="$complete" 16690 arguments="EOL" 16691 new_path=`$CYGPATH -u "$path"` 16692 new_path=`$WHICH "$new_path" 2> /dev/null` 16693 # bat and cmd files are not always considered executable in cygwin causing which 16694 # to not find them 16695 if test "x$new_path" = x \ 16696 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16697 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16698 new_path=`$CYGPATH -u "$path"` 16699 fi 16700 if test "x$new_path" = x; then 16701 # It's still not found. Now this is an unrecoverable error. 16702 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16703 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16704 has_space=`$ECHO "$complete" | $GREP " "` 16705 if test "x$has_space" != x; then 16706 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16707 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16708 fi 16709 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16710 fi 16711 fi 16712 16713 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16714 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16715 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16716 # "foo.exe" is OK but "foo" is an error. 16717 # 16718 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16719 # It is also a way to make sure we got the proper file name for the real test later on. 16720 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16721 if test "x$test_shortpath" = x; then 16722 # Short path failed, file does not exist as specified. 16723 # Try adding .exe or .cmd 16724 if test -f "${new_path}.exe"; then 16725 input_to_shortpath="${new_path}.exe" 16726 elif test -f "${new_path}.cmd"; then 16727 input_to_shortpath="${new_path}.cmd" 16728 else 16729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16730 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16731 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16732 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16733 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16734 fi 16735 else 16736 input_to_shortpath="$new_path" 16737 fi 16738 16739 # Call helper function which possibly converts this using DOS-style short mode. 16740 # If so, the updated path is stored in $new_path. 16741 new_path="$input_to_shortpath" 16742 16743 input_path="$input_to_shortpath" 16744 # Check if we need to convert this using DOS-style short mode. If the path 16745 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16746 # take no chances and rewrite it. 16747 # Note: m4 eats our [], so we need to use [ and ] instead. 16748 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16749 if test "x$has_forbidden_chars" != x; then 16750 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16751 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16752 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16753 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16754 # Going to short mode and back again did indeed matter. Since short mode is 16755 # case insensitive, let's make it lowercase to improve readability. 16756 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16757 # Now convert it back to Unix-stile (cygpath) 16758 input_path=`$CYGPATH -u "$shortmode_path"` 16759 new_path="$input_path" 16760 fi 16761 fi 16762 16763 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16764 if test "x$test_cygdrive_prefix" = x; then 16765 # As a simple fix, exclude /usr/bin since it's not a real path. 16766 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16767 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16768 # a path prefixed by /cygdrive for fixpath to work. 16769 new_path="$CYGWIN_ROOT_PATH$input_path" 16770 fi 16771 fi 16772 16773 # remove trailing .exe if any 16774 new_path="${new_path/%.exe/}" 16775 16776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16777 16778 # First separate the path from the arguments. This will split at the first 16779 # space. 16780 complete="$FOUND_MAKE" 16781 path="${complete%% *}" 16782 tmp="$complete EOL" 16783 arguments="${tmp#* }" 16784 16785 # Input might be given as Windows format, start by converting to 16786 # unix format. 16787 new_path="$path" 16788 16789 windows_path="$new_path" 16790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16791 unix_path=`$CYGPATH -u "$windows_path"` 16792 new_path="$unix_path" 16793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16794 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16795 new_path="$unix_path" 16796 fi 16797 16798 16799 # Now try to locate executable using which 16800 new_path=`$WHICH "$new_path" 2> /dev/null` 16801 16802 if test "x$new_path" = x; then 16803 # Oops. Which didn't find the executable. 16804 # The splitting of arguments from the executable at a space might have been incorrect, 16805 # since paths with space are more likely in Windows. Give it another try with the whole 16806 # argument. 16807 path="$complete" 16808 arguments="EOL" 16809 new_path="$path" 16810 16811 windows_path="$new_path" 16812 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16813 unix_path=`$CYGPATH -u "$windows_path"` 16814 new_path="$unix_path" 16815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16816 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16817 new_path="$unix_path" 16818 fi 16819 16820 16821 new_path=`$WHICH "$new_path" 2> /dev/null` 16822 16823 if test "x$new_path" = x; then 16824 # It's still not found. Now this is an unrecoverable error. 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16826 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16827 has_space=`$ECHO "$complete" | $GREP " "` 16828 if test "x$has_space" != x; then 16829 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16830 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16831 fi 16832 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16833 fi 16834 fi 16835 16836 # Now new_path has a complete unix path to the binary 16837 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16838 # Keep paths in /bin as-is, but remove trailing .exe if any 16839 new_path="${new_path/%.exe/}" 16840 # Do not save /bin paths to all_fixpath_prefixes! 16841 else 16842 # Not in mixed or Windows style, start by that. 16843 new_path=`cmd //c echo $new_path` 16844 16845 input_path="$new_path" 16846 # Check if we need to convert this using DOS-style short mode. If the path 16847 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16848 # take no chances and rewrite it. 16849 # Note: m4 eats our [], so we need to use [ and ] instead. 16850 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16851 if test "x$has_forbidden_chars" != x; then 16852 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16853 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16854 fi 16855 16856 # Output is in $new_path 16857 16858 windows_path="$new_path" 16859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16860 unix_path=`$CYGPATH -u "$windows_path"` 16861 new_path="$unix_path" 16862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16863 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16864 new_path="$unix_path" 16865 fi 16866 16867 # remove trailing .exe if any 16868 new_path="${new_path/%.exe/}" 16869 16870 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16871 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16872 fi 16873 16874 else 16875 # We're on a posix platform. Hooray! :) 16876 # First separate the path from the arguments. This will split at the first 16877 # space. 16878 complete="$FOUND_MAKE" 16879 path="${complete%% *}" 16880 tmp="$complete EOL" 16881 arguments="${tmp#* }" 16882 16883 # Cannot rely on the command "which" here since it doesn't always work. 16884 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16885 if test -z "$is_absolute_path"; then 16886 # Path to executable is not absolute. Find it. 16887 IFS_save="$IFS" 16888 IFS=: 16889 for p in $PATH; do 16890 if test -f "$p/$path" && test -x "$p/$path"; then 16891 new_path="$p/$path" 16892 break 16893 fi 16894 done 16895 IFS="$IFS_save" 16896 else 16897 # This is an absolute path, we can use it without further modifications. 16898 new_path="$path" 16899 fi 16900 16901 if test "x$new_path" = x; then 16902 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16903 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16904 has_space=`$ECHO "$complete" | $GREP " "` 16905 if test "x$has_space" != x; then 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16907 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16908 fi 16909 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16910 fi 16911 fi 16912 16913 # Now join together the path and the arguments once again 16914 if test "x$arguments" != xEOL; then 16915 new_complete="$new_path ${arguments% *}" 16916 else 16917 new_complete="$new_path" 16918 fi 16919 16920 if test "x$complete" != "x$new_complete"; then 16921 FOUND_MAKE="$new_complete" 16922 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16923 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16924 fi 16925 16926 fi 16927 fi 16928 fi 16929 fi 16930 16931 fi 16932 PATH=$OLD_PATH 16933 fi 16934 fi 16935 16936 if test "x$FOUND_MAKE" = x; then 16937 as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 16938 fi 16939 fi 16940 16941 MAKE=$FOUND_MAKE 16942 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 16944 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 16945 16946 16947 16948 # Test if find supports -delete 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 16950 $as_echo_n "checking if find supports -delete... " >&6; } 16951 FIND_DELETE="-delete" 16952 16953 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 16954 16955 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 16956 16957 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 16958 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 16959 # No, it does not. 16960 rm $DELETEDIR/TestIfFindSupportsDelete 16961 FIND_DELETE="-exec rm \{\} \+" 16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16963 $as_echo "no" >&6; } 16964 else 16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16966 $as_echo "yes" >&6; } 16967 fi 16968 rmdir $DELETEDIR 16969 16970 16971 16972 # These tools might not be installed by default, 16973 # need hint on how to install them. 16974 16975 16976 16977 # Publish this variable in the help. 16978 16979 16980 if test "x$UNZIP" = x; then 16981 # The variable is not set by user, try to locate tool using the code snippet 16982 for ac_prog in unzip 16983 do 16984 # Extract the first word of "$ac_prog", so it can be a program name with args. 16985 set dummy $ac_prog; ac_word=$2 16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16987 $as_echo_n "checking for $ac_word... " >&6; } 16988 if ${ac_cv_path_UNZIP+:} false; then : 16989 $as_echo_n "(cached) " >&6 16990 else 16991 case $UNZIP in 16992 [\\/]* | ?:[\\/]*) 16993 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16994 ;; 16995 *) 16996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16997 for as_dir in $PATH 16998 do 16999 IFS=$as_save_IFS 17000 test -z "$as_dir" && as_dir=. 17001 for ac_exec_ext in '' $ac_executable_extensions; do 17002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17003 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17005 break 2 17006 fi 17007 done 17008 done 17009 IFS=$as_save_IFS 17010 17011 ;; 17012 esac 17013 fi 17014 UNZIP=$ac_cv_path_UNZIP 17015 if test -n "$UNZIP"; then 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17017 $as_echo "$UNZIP" >&6; } 17018 else 17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17020 $as_echo "no" >&6; } 17021 fi 17022 17023 17024 test -n "$UNZIP" && break 17025 done 17026 17027 else 17028 # The variable is set, but is it from the command line or the environment? 17029 17030 # Try to remove the string !UNZIP! from our list. 17031 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17032 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17033 # If it failed, the variable was not from the command line. Ignore it, 17034 # but warn the user (except for BASH, which is always set by the calling BASH). 17035 if test "xUNZIP" != xBASH; then 17036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17037 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17038 fi 17039 # Try to locate tool using the code snippet 17040 for ac_prog in unzip 17041 do 17042 # Extract the first word of "$ac_prog", so it can be a program name with args. 17043 set dummy $ac_prog; ac_word=$2 17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17045 $as_echo_n "checking for $ac_word... " >&6; } 17046 if ${ac_cv_path_UNZIP+:} false; then : 17047 $as_echo_n "(cached) " >&6 17048 else 17049 case $UNZIP in 17050 [\\/]* | ?:[\\/]*) 17051 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17052 ;; 17053 *) 17054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17055 for as_dir in $PATH 17056 do 17057 IFS=$as_save_IFS 17058 test -z "$as_dir" && as_dir=. 17059 for ac_exec_ext in '' $ac_executable_extensions; do 17060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17061 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17063 break 2 17064 fi 17065 done 17066 done 17067 IFS=$as_save_IFS 17068 17069 ;; 17070 esac 17071 fi 17072 UNZIP=$ac_cv_path_UNZIP 17073 if test -n "$UNZIP"; then 17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17075 $as_echo "$UNZIP" >&6; } 17076 else 17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17078 $as_echo "no" >&6; } 17079 fi 17080 17081 17082 test -n "$UNZIP" && break 17083 done 17084 17085 else 17086 # If it succeeded, then it was overridden by the user. We will use it 17087 # for the tool. 17088 17089 # First remove it from the list of overridden variables, so we can test 17090 # for unknown variables in the end. 17091 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17092 17093 # Check if the provided tool contains a complete path. 17094 tool_specified="$UNZIP" 17095 tool_basename="${tool_specified##*/}" 17096 if test "x$tool_basename" = "x$tool_specified"; then 17097 # A command without a complete path is provided, search $PATH. 17098 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17099 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17100 # Extract the first word of "$tool_basename", so it can be a program name with args. 17101 set dummy $tool_basename; ac_word=$2 17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17103 $as_echo_n "checking for $ac_word... " >&6; } 17104 if ${ac_cv_path_UNZIP+:} false; then : 17105 $as_echo_n "(cached) " >&6 17106 else 17107 case $UNZIP in 17108 [\\/]* | ?:[\\/]*) 17109 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17110 ;; 17111 *) 17112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17113 for as_dir in $PATH 17114 do 17115 IFS=$as_save_IFS 17116 test -z "$as_dir" && as_dir=. 17117 for ac_exec_ext in '' $ac_executable_extensions; do 17118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17119 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17121 break 2 17122 fi 17123 done 17124 done 17125 IFS=$as_save_IFS 17126 17127 ;; 17128 esac 17129 fi 17130 UNZIP=$ac_cv_path_UNZIP 17131 if test -n "$UNZIP"; then 17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17133 $as_echo "$UNZIP" >&6; } 17134 else 17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17136 $as_echo "no" >&6; } 17137 fi 17138 17139 17140 if test "x$UNZIP" = x; then 17141 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17142 fi 17143 else 17144 # Otherwise we believe it is a complete path. Use it as it is. 17145 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17146 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17148 $as_echo_n "checking for UNZIP... " >&6; } 17149 if test ! -x "$tool_specified"; then 17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17151 $as_echo "not found" >&6; } 17152 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17153 fi 17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17155 $as_echo "$tool_specified" >&6; } 17156 fi 17157 fi 17158 fi 17159 17160 17161 17162 if test "x$UNZIP" = x; then 17163 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17164 fi 17165 17166 17167 17168 17169 17170 # Publish this variable in the help. 17171 17172 17173 if test "x$ZIP" = x; then 17174 # The variable is not set by user, try to locate tool using the code snippet 17175 for ac_prog in zip 17176 do 17177 # Extract the first word of "$ac_prog", so it can be a program name with args. 17178 set dummy $ac_prog; ac_word=$2 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17180 $as_echo_n "checking for $ac_word... " >&6; } 17181 if ${ac_cv_path_ZIP+:} false; then : 17182 $as_echo_n "(cached) " >&6 17183 else 17184 case $ZIP in 17185 [\\/]* | ?:[\\/]*) 17186 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17187 ;; 17188 *) 17189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17190 for as_dir in $PATH 17191 do 17192 IFS=$as_save_IFS 17193 test -z "$as_dir" && as_dir=. 17194 for ac_exec_ext in '' $ac_executable_extensions; do 17195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17196 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17198 break 2 17199 fi 17200 done 17201 done 17202 IFS=$as_save_IFS 17203 17204 ;; 17205 esac 17206 fi 17207 ZIP=$ac_cv_path_ZIP 17208 if test -n "$ZIP"; then 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17210 $as_echo "$ZIP" >&6; } 17211 else 17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17213 $as_echo "no" >&6; } 17214 fi 17215 17216 17217 test -n "$ZIP" && break 17218 done 17219 17220 else 17221 # The variable is set, but is it from the command line or the environment? 17222 17223 # Try to remove the string !ZIP! from our list. 17224 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17225 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17226 # If it failed, the variable was not from the command line. Ignore it, 17227 # but warn the user (except for BASH, which is always set by the calling BASH). 17228 if test "xZIP" != xBASH; then 17229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17230 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17231 fi 17232 # Try to locate tool using the code snippet 17233 for ac_prog in zip 17234 do 17235 # Extract the first word of "$ac_prog", so it can be a program name with args. 17236 set dummy $ac_prog; ac_word=$2 17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17238 $as_echo_n "checking for $ac_word... " >&6; } 17239 if ${ac_cv_path_ZIP+:} false; then : 17240 $as_echo_n "(cached) " >&6 17241 else 17242 case $ZIP in 17243 [\\/]* | ?:[\\/]*) 17244 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17245 ;; 17246 *) 17247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17248 for as_dir in $PATH 17249 do 17250 IFS=$as_save_IFS 17251 test -z "$as_dir" && as_dir=. 17252 for ac_exec_ext in '' $ac_executable_extensions; do 17253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17254 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17256 break 2 17257 fi 17258 done 17259 done 17260 IFS=$as_save_IFS 17261 17262 ;; 17263 esac 17264 fi 17265 ZIP=$ac_cv_path_ZIP 17266 if test -n "$ZIP"; then 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17268 $as_echo "$ZIP" >&6; } 17269 else 17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17271 $as_echo "no" >&6; } 17272 fi 17273 17274 17275 test -n "$ZIP" && break 17276 done 17277 17278 else 17279 # If it succeeded, then it was overridden by the user. We will use it 17280 # for the tool. 17281 17282 # First remove it from the list of overridden variables, so we can test 17283 # for unknown variables in the end. 17284 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17285 17286 # Check if the provided tool contains a complete path. 17287 tool_specified="$ZIP" 17288 tool_basename="${tool_specified##*/}" 17289 if test "x$tool_basename" = "x$tool_specified"; then 17290 # A command without a complete path is provided, search $PATH. 17291 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17292 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17293 # Extract the first word of "$tool_basename", so it can be a program name with args. 17294 set dummy $tool_basename; ac_word=$2 17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17296 $as_echo_n "checking for $ac_word... " >&6; } 17297 if ${ac_cv_path_ZIP+:} false; then : 17298 $as_echo_n "(cached) " >&6 17299 else 17300 case $ZIP in 17301 [\\/]* | ?:[\\/]*) 17302 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17303 ;; 17304 *) 17305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17306 for as_dir in $PATH 17307 do 17308 IFS=$as_save_IFS 17309 test -z "$as_dir" && as_dir=. 17310 for ac_exec_ext in '' $ac_executable_extensions; do 17311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17312 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17314 break 2 17315 fi 17316 done 17317 done 17318 IFS=$as_save_IFS 17319 17320 ;; 17321 esac 17322 fi 17323 ZIP=$ac_cv_path_ZIP 17324 if test -n "$ZIP"; then 17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17326 $as_echo "$ZIP" >&6; } 17327 else 17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17329 $as_echo "no" >&6; } 17330 fi 17331 17332 17333 if test "x$ZIP" = x; then 17334 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17335 fi 17336 else 17337 # Otherwise we believe it is a complete path. Use it as it is. 17338 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17339 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17341 $as_echo_n "checking for ZIP... " >&6; } 17342 if test ! -x "$tool_specified"; then 17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17344 $as_echo "not found" >&6; } 17345 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17346 fi 17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17348 $as_echo "$tool_specified" >&6; } 17349 fi 17350 fi 17351 fi 17352 17353 17354 17355 if test "x$ZIP" = x; then 17356 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17357 fi 17358 17359 17360 17361 # Non-required basic tools 17362 17363 17364 17365 # Publish this variable in the help. 17366 17367 17368 if test "x$LDD" = x; then 17369 # The variable is not set by user, try to locate tool using the code snippet 17370 for ac_prog in ldd 17371 do 17372 # Extract the first word of "$ac_prog", so it can be a program name with args. 17373 set dummy $ac_prog; ac_word=$2 17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17375 $as_echo_n "checking for $ac_word... " >&6; } 17376 if ${ac_cv_path_LDD+:} false; then : 17377 $as_echo_n "(cached) " >&6 17378 else 17379 case $LDD in 17380 [\\/]* | ?:[\\/]*) 17381 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17382 ;; 17383 *) 17384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17385 for as_dir in $PATH 17386 do 17387 IFS=$as_save_IFS 17388 test -z "$as_dir" && as_dir=. 17389 for ac_exec_ext in '' $ac_executable_extensions; do 17390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17391 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17393 break 2 17394 fi 17395 done 17396 done 17397 IFS=$as_save_IFS 17398 17399 ;; 17400 esac 17401 fi 17402 LDD=$ac_cv_path_LDD 17403 if test -n "$LDD"; then 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17405 $as_echo "$LDD" >&6; } 17406 else 17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17408 $as_echo "no" >&6; } 17409 fi 17410 17411 17412 test -n "$LDD" && break 17413 done 17414 17415 else 17416 # The variable is set, but is it from the command line or the environment? 17417 17418 # Try to remove the string !LDD! from our list. 17419 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17420 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17421 # If it failed, the variable was not from the command line. Ignore it, 17422 # but warn the user (except for BASH, which is always set by the calling BASH). 17423 if test "xLDD" != xBASH; then 17424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17425 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17426 fi 17427 # Try to locate tool using the code snippet 17428 for ac_prog in ldd 17429 do 17430 # Extract the first word of "$ac_prog", so it can be a program name with args. 17431 set dummy $ac_prog; ac_word=$2 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17433 $as_echo_n "checking for $ac_word... " >&6; } 17434 if ${ac_cv_path_LDD+:} false; then : 17435 $as_echo_n "(cached) " >&6 17436 else 17437 case $LDD in 17438 [\\/]* | ?:[\\/]*) 17439 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17440 ;; 17441 *) 17442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17443 for as_dir in $PATH 17444 do 17445 IFS=$as_save_IFS 17446 test -z "$as_dir" && as_dir=. 17447 for ac_exec_ext in '' $ac_executable_extensions; do 17448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17449 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17451 break 2 17452 fi 17453 done 17454 done 17455 IFS=$as_save_IFS 17456 17457 ;; 17458 esac 17459 fi 17460 LDD=$ac_cv_path_LDD 17461 if test -n "$LDD"; then 17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17463 $as_echo "$LDD" >&6; } 17464 else 17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17466 $as_echo "no" >&6; } 17467 fi 17468 17469 17470 test -n "$LDD" && break 17471 done 17472 17473 else 17474 # If it succeeded, then it was overridden by the user. We will use it 17475 # for the tool. 17476 17477 # First remove it from the list of overridden variables, so we can test 17478 # for unknown variables in the end. 17479 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17480 17481 # Check if the provided tool contains a complete path. 17482 tool_specified="$LDD" 17483 tool_basename="${tool_specified##*/}" 17484 if test "x$tool_basename" = "x$tool_specified"; then 17485 # A command without a complete path is provided, search $PATH. 17486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17487 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17488 # Extract the first word of "$tool_basename", so it can be a program name with args. 17489 set dummy $tool_basename; ac_word=$2 17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17491 $as_echo_n "checking for $ac_word... " >&6; } 17492 if ${ac_cv_path_LDD+:} false; then : 17493 $as_echo_n "(cached) " >&6 17494 else 17495 case $LDD in 17496 [\\/]* | ?:[\\/]*) 17497 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17498 ;; 17499 *) 17500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17501 for as_dir in $PATH 17502 do 17503 IFS=$as_save_IFS 17504 test -z "$as_dir" && as_dir=. 17505 for ac_exec_ext in '' $ac_executable_extensions; do 17506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17507 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17509 break 2 17510 fi 17511 done 17512 done 17513 IFS=$as_save_IFS 17514 17515 ;; 17516 esac 17517 fi 17518 LDD=$ac_cv_path_LDD 17519 if test -n "$LDD"; then 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17521 $as_echo "$LDD" >&6; } 17522 else 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17524 $as_echo "no" >&6; } 17525 fi 17526 17527 17528 if test "x$LDD" = x; then 17529 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17530 fi 17531 else 17532 # Otherwise we believe it is a complete path. Use it as it is. 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17534 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17536 $as_echo_n "checking for LDD... " >&6; } 17537 if test ! -x "$tool_specified"; then 17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17539 $as_echo "not found" >&6; } 17540 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17541 fi 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17543 $as_echo "$tool_specified" >&6; } 17544 fi 17545 fi 17546 fi 17547 17548 17549 if test "x$LDD" = "x"; then 17550 # List shared lib dependencies is used for 17551 # debug output and checking for forbidden dependencies. 17552 # We can build without it. 17553 LDD="true" 17554 fi 17555 17556 17557 # Publish this variable in the help. 17558 17559 17560 if test "x$READELF" = x; then 17561 # The variable is not set by user, try to locate tool using the code snippet 17562 for ac_prog in readelf greadelf 17563 do 17564 # Extract the first word of "$ac_prog", so it can be a program name with args. 17565 set dummy $ac_prog; ac_word=$2 17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17567 $as_echo_n "checking for $ac_word... " >&6; } 17568 if ${ac_cv_path_READELF+:} false; then : 17569 $as_echo_n "(cached) " >&6 17570 else 17571 case $READELF in 17572 [\\/]* | ?:[\\/]*) 17573 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17574 ;; 17575 *) 17576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17577 for as_dir in $PATH 17578 do 17579 IFS=$as_save_IFS 17580 test -z "$as_dir" && as_dir=. 17581 for ac_exec_ext in '' $ac_executable_extensions; do 17582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17583 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17585 break 2 17586 fi 17587 done 17588 done 17589 IFS=$as_save_IFS 17590 17591 ;; 17592 esac 17593 fi 17594 READELF=$ac_cv_path_READELF 17595 if test -n "$READELF"; then 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17597 $as_echo "$READELF" >&6; } 17598 else 17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17600 $as_echo "no" >&6; } 17601 fi 17602 17603 17604 test -n "$READELF" && break 17605 done 17606 17607 else 17608 # The variable is set, but is it from the command line or the environment? 17609 17610 # Try to remove the string !READELF! from our list. 17611 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17612 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17613 # If it failed, the variable was not from the command line. Ignore it, 17614 # but warn the user (except for BASH, which is always set by the calling BASH). 17615 if test "xREADELF" != xBASH; then 17616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17617 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17618 fi 17619 # Try to locate tool using the code snippet 17620 for ac_prog in readelf greadelf 17621 do 17622 # Extract the first word of "$ac_prog", so it can be a program name with args. 17623 set dummy $ac_prog; ac_word=$2 17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17625 $as_echo_n "checking for $ac_word... " >&6; } 17626 if ${ac_cv_path_READELF+:} false; then : 17627 $as_echo_n "(cached) " >&6 17628 else 17629 case $READELF in 17630 [\\/]* | ?:[\\/]*) 17631 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17632 ;; 17633 *) 17634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17635 for as_dir in $PATH 17636 do 17637 IFS=$as_save_IFS 17638 test -z "$as_dir" && as_dir=. 17639 for ac_exec_ext in '' $ac_executable_extensions; do 17640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17641 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17643 break 2 17644 fi 17645 done 17646 done 17647 IFS=$as_save_IFS 17648 17649 ;; 17650 esac 17651 fi 17652 READELF=$ac_cv_path_READELF 17653 if test -n "$READELF"; then 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17655 $as_echo "$READELF" >&6; } 17656 else 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17658 $as_echo "no" >&6; } 17659 fi 17660 17661 17662 test -n "$READELF" && break 17663 done 17664 17665 else 17666 # If it succeeded, then it was overridden by the user. We will use it 17667 # for the tool. 17668 17669 # First remove it from the list of overridden variables, so we can test 17670 # for unknown variables in the end. 17671 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17672 17673 # Check if the provided tool contains a complete path. 17674 tool_specified="$READELF" 17675 tool_basename="${tool_specified##*/}" 17676 if test "x$tool_basename" = "x$tool_specified"; then 17677 # A command without a complete path is provided, search $PATH. 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17679 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17680 # Extract the first word of "$tool_basename", so it can be a program name with args. 17681 set dummy $tool_basename; ac_word=$2 17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17683 $as_echo_n "checking for $ac_word... " >&6; } 17684 if ${ac_cv_path_READELF+:} false; then : 17685 $as_echo_n "(cached) " >&6 17686 else 17687 case $READELF in 17688 [\\/]* | ?:[\\/]*) 17689 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17690 ;; 17691 *) 17692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17693 for as_dir in $PATH 17694 do 17695 IFS=$as_save_IFS 17696 test -z "$as_dir" && as_dir=. 17697 for ac_exec_ext in '' $ac_executable_extensions; do 17698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17699 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17701 break 2 17702 fi 17703 done 17704 done 17705 IFS=$as_save_IFS 17706 17707 ;; 17708 esac 17709 fi 17710 READELF=$ac_cv_path_READELF 17711 if test -n "$READELF"; then 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17713 $as_echo "$READELF" >&6; } 17714 else 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17716 $as_echo "no" >&6; } 17717 fi 17718 17719 17720 if test "x$READELF" = x; then 17721 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17722 fi 17723 else 17724 # Otherwise we believe it is a complete path. Use it as it is. 17725 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 17726 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 17728 $as_echo_n "checking for READELF... " >&6; } 17729 if test ! -x "$tool_specified"; then 17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17731 $as_echo "not found" >&6; } 17732 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 17733 fi 17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17735 $as_echo "$tool_specified" >&6; } 17736 fi 17737 fi 17738 fi 17739 17740 17741 17742 17743 # Publish this variable in the help. 17744 17745 17746 if test "x$HG" = x; then 17747 # The variable is not set by user, try to locate tool using the code snippet 17748 for ac_prog in hg 17749 do 17750 # Extract the first word of "$ac_prog", so it can be a program name with args. 17751 set dummy $ac_prog; ac_word=$2 17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17753 $as_echo_n "checking for $ac_word... " >&6; } 17754 if ${ac_cv_path_HG+:} false; then : 17755 $as_echo_n "(cached) " >&6 17756 else 17757 case $HG in 17758 [\\/]* | ?:[\\/]*) 17759 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17760 ;; 17761 *) 17762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17763 for as_dir in $PATH 17764 do 17765 IFS=$as_save_IFS 17766 test -z "$as_dir" && as_dir=. 17767 for ac_exec_ext in '' $ac_executable_extensions; do 17768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17769 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17771 break 2 17772 fi 17773 done 17774 done 17775 IFS=$as_save_IFS 17776 17777 ;; 17778 esac 17779 fi 17780 HG=$ac_cv_path_HG 17781 if test -n "$HG"; then 17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17783 $as_echo "$HG" >&6; } 17784 else 17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17786 $as_echo "no" >&6; } 17787 fi 17788 17789 17790 test -n "$HG" && break 17791 done 17792 17793 else 17794 # The variable is set, but is it from the command line or the environment? 17795 17796 # Try to remove the string !HG! from our list. 17797 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 17798 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17799 # If it failed, the variable was not from the command line. Ignore it, 17800 # but warn the user (except for BASH, which is always set by the calling BASH). 17801 if test "xHG" != xBASH; then 17802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 17803 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 17804 fi 17805 # Try to locate tool using the code snippet 17806 for ac_prog in hg 17807 do 17808 # Extract the first word of "$ac_prog", so it can be a program name with args. 17809 set dummy $ac_prog; ac_word=$2 17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17811 $as_echo_n "checking for $ac_word... " >&6; } 17812 if ${ac_cv_path_HG+:} false; then : 17813 $as_echo_n "(cached) " >&6 17814 else 17815 case $HG in 17816 [\\/]* | ?:[\\/]*) 17817 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17818 ;; 17819 *) 17820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17821 for as_dir in $PATH 17822 do 17823 IFS=$as_save_IFS 17824 test -z "$as_dir" && as_dir=. 17825 for ac_exec_ext in '' $ac_executable_extensions; do 17826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17827 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17829 break 2 17830 fi 17831 done 17832 done 17833 IFS=$as_save_IFS 17834 17835 ;; 17836 esac 17837 fi 17838 HG=$ac_cv_path_HG 17839 if test -n "$HG"; then 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17841 $as_echo "$HG" >&6; } 17842 else 17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17844 $as_echo "no" >&6; } 17845 fi 17846 17847 17848 test -n "$HG" && break 17849 done 17850 17851 else 17852 # If it succeeded, then it was overridden by the user. We will use it 17853 # for the tool. 17854 17855 # First remove it from the list of overridden variables, so we can test 17856 # for unknown variables in the end. 17857 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17858 17859 # Check if the provided tool contains a complete path. 17860 tool_specified="$HG" 17861 tool_basename="${tool_specified##*/}" 17862 if test "x$tool_basename" = "x$tool_specified"; then 17863 # A command without a complete path is provided, search $PATH. 17864 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 17865 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 17866 # Extract the first word of "$tool_basename", so it can be a program name with args. 17867 set dummy $tool_basename; ac_word=$2 17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17869 $as_echo_n "checking for $ac_word... " >&6; } 17870 if ${ac_cv_path_HG+:} false; then : 17871 $as_echo_n "(cached) " >&6 17872 else 17873 case $HG in 17874 [\\/]* | ?:[\\/]*) 17875 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17876 ;; 17877 *) 17878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17879 for as_dir in $PATH 17880 do 17881 IFS=$as_save_IFS 17882 test -z "$as_dir" && as_dir=. 17883 for ac_exec_ext in '' $ac_executable_extensions; do 17884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17885 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17887 break 2 17888 fi 17889 done 17890 done 17891 IFS=$as_save_IFS 17892 17893 ;; 17894 esac 17895 fi 17896 HG=$ac_cv_path_HG 17897 if test -n "$HG"; then 17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17899 $as_echo "$HG" >&6; } 17900 else 17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17902 $as_echo "no" >&6; } 17903 fi 17904 17905 17906 if test "x$HG" = x; then 17907 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17908 fi 17909 else 17910 # Otherwise we believe it is a complete path. Use it as it is. 17911 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 17912 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 17914 $as_echo_n "checking for HG... " >&6; } 17915 if test ! -x "$tool_specified"; then 17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17917 $as_echo "not found" >&6; } 17918 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 17919 fi 17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17921 $as_echo "$tool_specified" >&6; } 17922 fi 17923 fi 17924 fi 17925 17926 17927 17928 17929 # Publish this variable in the help. 17930 17931 17932 if test "x$STAT" = x; then 17933 # The variable is not set by user, try to locate tool using the code snippet 17934 for ac_prog in stat 17935 do 17936 # Extract the first word of "$ac_prog", so it can be a program name with args. 17937 set dummy $ac_prog; ac_word=$2 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17939 $as_echo_n "checking for $ac_word... " >&6; } 17940 if ${ac_cv_path_STAT+:} false; then : 17941 $as_echo_n "(cached) " >&6 17942 else 17943 case $STAT in 17944 [\\/]* | ?:[\\/]*) 17945 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 17946 ;; 17947 *) 17948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17949 for as_dir in $PATH 17950 do 17951 IFS=$as_save_IFS 17952 test -z "$as_dir" && as_dir=. 17953 for ac_exec_ext in '' $ac_executable_extensions; do 17954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17955 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 17956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17957 break 2 17958 fi 17959 done 17960 done 17961 IFS=$as_save_IFS 17962 17963 ;; 17964 esac 17965 fi 17966 STAT=$ac_cv_path_STAT 17967 if test -n "$STAT"; then 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 17969 $as_echo "$STAT" >&6; } 17970 else 17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17972 $as_echo "no" >&6; } 17973 fi 17974 17975 17976 test -n "$STAT" && break 17977 done 17978 17979 else 17980 # The variable is set, but is it from the command line or the environment? 17981 17982 # Try to remove the string !STAT! from our list. 17983 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 17984 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17985 # If it failed, the variable was not from the command line. Ignore it, 17986 # but warn the user (except for BASH, which is always set by the calling BASH). 17987 if test "xSTAT" != xBASH; then 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 17989 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 17990 fi 17991 # Try to locate tool using the code snippet 17992 for ac_prog in stat 17993 do 17994 # Extract the first word of "$ac_prog", so it can be a program name with args. 17995 set dummy $ac_prog; ac_word=$2 17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17997 $as_echo_n "checking for $ac_word... " >&6; } 17998 if ${ac_cv_path_STAT+:} false; then : 17999 $as_echo_n "(cached) " >&6 18000 else 18001 case $STAT in 18002 [\\/]* | ?:[\\/]*) 18003 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18004 ;; 18005 *) 18006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18007 for as_dir in $PATH 18008 do 18009 IFS=$as_save_IFS 18010 test -z "$as_dir" && as_dir=. 18011 for ac_exec_ext in '' $ac_executable_extensions; do 18012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18013 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18015 break 2 18016 fi 18017 done 18018 done 18019 IFS=$as_save_IFS 18020 18021 ;; 18022 esac 18023 fi 18024 STAT=$ac_cv_path_STAT 18025 if test -n "$STAT"; then 18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18027 $as_echo "$STAT" >&6; } 18028 else 18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18030 $as_echo "no" >&6; } 18031 fi 18032 18033 18034 test -n "$STAT" && break 18035 done 18036 18037 else 18038 # If it succeeded, then it was overridden by the user. We will use it 18039 # for the tool. 18040 18041 # First remove it from the list of overridden variables, so we can test 18042 # for unknown variables in the end. 18043 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18044 18045 # Check if the provided tool contains a complete path. 18046 tool_specified="$STAT" 18047 tool_basename="${tool_specified##*/}" 18048 if test "x$tool_basename" = "x$tool_specified"; then 18049 # A command without a complete path is provided, search $PATH. 18050 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18051 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18052 # Extract the first word of "$tool_basename", so it can be a program name with args. 18053 set dummy $tool_basename; ac_word=$2 18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18055 $as_echo_n "checking for $ac_word... " >&6; } 18056 if ${ac_cv_path_STAT+:} false; then : 18057 $as_echo_n "(cached) " >&6 18058 else 18059 case $STAT in 18060 [\\/]* | ?:[\\/]*) 18061 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18062 ;; 18063 *) 18064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18065 for as_dir in $PATH 18066 do 18067 IFS=$as_save_IFS 18068 test -z "$as_dir" && as_dir=. 18069 for ac_exec_ext in '' $ac_executable_extensions; do 18070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18071 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18073 break 2 18074 fi 18075 done 18076 done 18077 IFS=$as_save_IFS 18078 18079 ;; 18080 esac 18081 fi 18082 STAT=$ac_cv_path_STAT 18083 if test -n "$STAT"; then 18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18085 $as_echo "$STAT" >&6; } 18086 else 18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18088 $as_echo "no" >&6; } 18089 fi 18090 18091 18092 if test "x$STAT" = x; then 18093 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18094 fi 18095 else 18096 # Otherwise we believe it is a complete path. Use it as it is. 18097 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18098 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18100 $as_echo_n "checking for STAT... " >&6; } 18101 if test ! -x "$tool_specified"; then 18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18103 $as_echo "not found" >&6; } 18104 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18105 fi 18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18107 $as_echo "$tool_specified" >&6; } 18108 fi 18109 fi 18110 fi 18111 18112 18113 18114 18115 # Publish this variable in the help. 18116 18117 18118 if test "x$TIME" = x; then 18119 # The variable is not set by user, try to locate tool using the code snippet 18120 for ac_prog in time 18121 do 18122 # Extract the first word of "$ac_prog", so it can be a program name with args. 18123 set dummy $ac_prog; ac_word=$2 18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18125 $as_echo_n "checking for $ac_word... " >&6; } 18126 if ${ac_cv_path_TIME+:} false; then : 18127 $as_echo_n "(cached) " >&6 18128 else 18129 case $TIME in 18130 [\\/]* | ?:[\\/]*) 18131 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18132 ;; 18133 *) 18134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18135 for as_dir in $PATH 18136 do 18137 IFS=$as_save_IFS 18138 test -z "$as_dir" && as_dir=. 18139 for ac_exec_ext in '' $ac_executable_extensions; do 18140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18141 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18143 break 2 18144 fi 18145 done 18146 done 18147 IFS=$as_save_IFS 18148 18149 ;; 18150 esac 18151 fi 18152 TIME=$ac_cv_path_TIME 18153 if test -n "$TIME"; then 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18155 $as_echo "$TIME" >&6; } 18156 else 18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18158 $as_echo "no" >&6; } 18159 fi 18160 18161 18162 test -n "$TIME" && break 18163 done 18164 18165 else 18166 # The variable is set, but is it from the command line or the environment? 18167 18168 # Try to remove the string !TIME! from our list. 18169 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18170 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18171 # If it failed, the variable was not from the command line. Ignore it, 18172 # but warn the user (except for BASH, which is always set by the calling BASH). 18173 if test "xTIME" != xBASH; then 18174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18175 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18176 fi 18177 # Try to locate tool using the code snippet 18178 for ac_prog in time 18179 do 18180 # Extract the first word of "$ac_prog", so it can be a program name with args. 18181 set dummy $ac_prog; ac_word=$2 18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18183 $as_echo_n "checking for $ac_word... " >&6; } 18184 if ${ac_cv_path_TIME+:} false; then : 18185 $as_echo_n "(cached) " >&6 18186 else 18187 case $TIME in 18188 [\\/]* | ?:[\\/]*) 18189 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18190 ;; 18191 *) 18192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18193 for as_dir in $PATH 18194 do 18195 IFS=$as_save_IFS 18196 test -z "$as_dir" && as_dir=. 18197 for ac_exec_ext in '' $ac_executable_extensions; do 18198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18199 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18201 break 2 18202 fi 18203 done 18204 done 18205 IFS=$as_save_IFS 18206 18207 ;; 18208 esac 18209 fi 18210 TIME=$ac_cv_path_TIME 18211 if test -n "$TIME"; then 18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18213 $as_echo "$TIME" >&6; } 18214 else 18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18216 $as_echo "no" >&6; } 18217 fi 18218 18219 18220 test -n "$TIME" && break 18221 done 18222 18223 else 18224 # If it succeeded, then it was overridden by the user. We will use it 18225 # for the tool. 18226 18227 # First remove it from the list of overridden variables, so we can test 18228 # for unknown variables in the end. 18229 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18230 18231 # Check if the provided tool contains a complete path. 18232 tool_specified="$TIME" 18233 tool_basename="${tool_specified##*/}" 18234 if test "x$tool_basename" = "x$tool_specified"; then 18235 # A command without a complete path is provided, search $PATH. 18236 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18237 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18238 # Extract the first word of "$tool_basename", so it can be a program name with args. 18239 set dummy $tool_basename; ac_word=$2 18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18241 $as_echo_n "checking for $ac_word... " >&6; } 18242 if ${ac_cv_path_TIME+:} false; then : 18243 $as_echo_n "(cached) " >&6 18244 else 18245 case $TIME in 18246 [\\/]* | ?:[\\/]*) 18247 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18248 ;; 18249 *) 18250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18251 for as_dir in $PATH 18252 do 18253 IFS=$as_save_IFS 18254 test -z "$as_dir" && as_dir=. 18255 for ac_exec_ext in '' $ac_executable_extensions; do 18256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18257 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18259 break 2 18260 fi 18261 done 18262 done 18263 IFS=$as_save_IFS 18264 18265 ;; 18266 esac 18267 fi 18268 TIME=$ac_cv_path_TIME 18269 if test -n "$TIME"; then 18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18271 $as_echo "$TIME" >&6; } 18272 else 18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18274 $as_echo "no" >&6; } 18275 fi 18276 18277 18278 if test "x$TIME" = x; then 18279 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18280 fi 18281 else 18282 # Otherwise we believe it is a complete path. Use it as it is. 18283 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18284 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18286 $as_echo_n "checking for TIME... " >&6; } 18287 if test ! -x "$tool_specified"; then 18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18289 $as_echo "not found" >&6; } 18290 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18291 fi 18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18293 $as_echo "$tool_specified" >&6; } 18294 fi 18295 fi 18296 fi 18297 18298 18299 # Check if it's GNU time 18300 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18301 if test "x$IS_GNU_TIME" != x; then 18302 IS_GNU_TIME=yes 18303 else 18304 IS_GNU_TIME=no 18305 fi 18306 18307 18308 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18309 18310 18311 18312 # Publish this variable in the help. 18313 18314 18315 if test "x$COMM" = x; then 18316 # The variable is not set by user, try to locate tool using the code snippet 18317 for ac_prog in comm 18318 do 18319 # Extract the first word of "$ac_prog", so it can be a program name with args. 18320 set dummy $ac_prog; ac_word=$2 18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18322 $as_echo_n "checking for $ac_word... " >&6; } 18323 if ${ac_cv_path_COMM+:} false; then : 18324 $as_echo_n "(cached) " >&6 18325 else 18326 case $COMM in 18327 [\\/]* | ?:[\\/]*) 18328 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18329 ;; 18330 *) 18331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18332 for as_dir in $PATH 18333 do 18334 IFS=$as_save_IFS 18335 test -z "$as_dir" && as_dir=. 18336 for ac_exec_ext in '' $ac_executable_extensions; do 18337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18338 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18340 break 2 18341 fi 18342 done 18343 done 18344 IFS=$as_save_IFS 18345 18346 ;; 18347 esac 18348 fi 18349 COMM=$ac_cv_path_COMM 18350 if test -n "$COMM"; then 18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18352 $as_echo "$COMM" >&6; } 18353 else 18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18355 $as_echo "no" >&6; } 18356 fi 18357 18358 18359 test -n "$COMM" && break 18360 done 18361 18362 else 18363 # The variable is set, but is it from the command line or the environment? 18364 18365 # Try to remove the string !COMM! from our list. 18366 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18367 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18368 # If it failed, the variable was not from the command line. Ignore it, 18369 # but warn the user (except for BASH, which is always set by the calling BASH). 18370 if test "xCOMM" != xBASH; then 18371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18372 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18373 fi 18374 # Try to locate tool using the code snippet 18375 for ac_prog in comm 18376 do 18377 # Extract the first word of "$ac_prog", so it can be a program name with args. 18378 set dummy $ac_prog; ac_word=$2 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18380 $as_echo_n "checking for $ac_word... " >&6; } 18381 if ${ac_cv_path_COMM+:} false; then : 18382 $as_echo_n "(cached) " >&6 18383 else 18384 case $COMM in 18385 [\\/]* | ?:[\\/]*) 18386 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18387 ;; 18388 *) 18389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18390 for as_dir in $PATH 18391 do 18392 IFS=$as_save_IFS 18393 test -z "$as_dir" && as_dir=. 18394 for ac_exec_ext in '' $ac_executable_extensions; do 18395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18396 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18398 break 2 18399 fi 18400 done 18401 done 18402 IFS=$as_save_IFS 18403 18404 ;; 18405 esac 18406 fi 18407 COMM=$ac_cv_path_COMM 18408 if test -n "$COMM"; then 18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18410 $as_echo "$COMM" >&6; } 18411 else 18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18413 $as_echo "no" >&6; } 18414 fi 18415 18416 18417 test -n "$COMM" && break 18418 done 18419 18420 else 18421 # If it succeeded, then it was overridden by the user. We will use it 18422 # for the tool. 18423 18424 # First remove it from the list of overridden variables, so we can test 18425 # for unknown variables in the end. 18426 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18427 18428 # Check if the provided tool contains a complete path. 18429 tool_specified="$COMM" 18430 tool_basename="${tool_specified##*/}" 18431 if test "x$tool_basename" = "x$tool_specified"; then 18432 # A command without a complete path is provided, search $PATH. 18433 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18434 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18435 # Extract the first word of "$tool_basename", so it can be a program name with args. 18436 set dummy $tool_basename; ac_word=$2 18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18438 $as_echo_n "checking for $ac_word... " >&6; } 18439 if ${ac_cv_path_COMM+:} false; then : 18440 $as_echo_n "(cached) " >&6 18441 else 18442 case $COMM in 18443 [\\/]* | ?:[\\/]*) 18444 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18445 ;; 18446 *) 18447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18448 for as_dir in $PATH 18449 do 18450 IFS=$as_save_IFS 18451 test -z "$as_dir" && as_dir=. 18452 for ac_exec_ext in '' $ac_executable_extensions; do 18453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18454 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18456 break 2 18457 fi 18458 done 18459 done 18460 IFS=$as_save_IFS 18461 18462 ;; 18463 esac 18464 fi 18465 COMM=$ac_cv_path_COMM 18466 if test -n "$COMM"; then 18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18468 $as_echo "$COMM" >&6; } 18469 else 18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18471 $as_echo "no" >&6; } 18472 fi 18473 18474 18475 if test "x$COMM" = x; then 18476 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18477 fi 18478 else 18479 # Otherwise we believe it is a complete path. Use it as it is. 18480 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18481 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18483 $as_echo_n "checking for COMM... " >&6; } 18484 if test ! -x "$tool_specified"; then 18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18486 $as_echo "not found" >&6; } 18487 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18488 fi 18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18490 $as_echo "$tool_specified" >&6; } 18491 fi 18492 fi 18493 fi 18494 18495 18496 18497 if test "x$COMM" = x; then 18498 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18499 fi 18500 18501 18502 fi 18503 18504 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18505 18506 18507 18508 # Publish this variable in the help. 18509 18510 18511 if test "x$DSYMUTIL" = x; then 18512 # The variable is not set by user, try to locate tool using the code snippet 18513 for ac_prog in dsymutil 18514 do 18515 # Extract the first word of "$ac_prog", so it can be a program name with args. 18516 set dummy $ac_prog; ac_word=$2 18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18518 $as_echo_n "checking for $ac_word... " >&6; } 18519 if ${ac_cv_path_DSYMUTIL+:} false; then : 18520 $as_echo_n "(cached) " >&6 18521 else 18522 case $DSYMUTIL in 18523 [\\/]* | ?:[\\/]*) 18524 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18525 ;; 18526 *) 18527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18528 for as_dir in $PATH 18529 do 18530 IFS=$as_save_IFS 18531 test -z "$as_dir" && as_dir=. 18532 for ac_exec_ext in '' $ac_executable_extensions; do 18533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18534 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18536 break 2 18537 fi 18538 done 18539 done 18540 IFS=$as_save_IFS 18541 18542 ;; 18543 esac 18544 fi 18545 DSYMUTIL=$ac_cv_path_DSYMUTIL 18546 if test -n "$DSYMUTIL"; then 18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18548 $as_echo "$DSYMUTIL" >&6; } 18549 else 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18551 $as_echo "no" >&6; } 18552 fi 18553 18554 18555 test -n "$DSYMUTIL" && break 18556 done 18557 18558 else 18559 # The variable is set, but is it from the command line or the environment? 18560 18561 # Try to remove the string !DSYMUTIL! from our list. 18562 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18563 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18564 # If it failed, the variable was not from the command line. Ignore it, 18565 # but warn the user (except for BASH, which is always set by the calling BASH). 18566 if test "xDSYMUTIL" != xBASH; then 18567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18568 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18569 fi 18570 # Try to locate tool using the code snippet 18571 for ac_prog in dsymutil 18572 do 18573 # Extract the first word of "$ac_prog", so it can be a program name with args. 18574 set dummy $ac_prog; ac_word=$2 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18576 $as_echo_n "checking for $ac_word... " >&6; } 18577 if ${ac_cv_path_DSYMUTIL+:} false; then : 18578 $as_echo_n "(cached) " >&6 18579 else 18580 case $DSYMUTIL in 18581 [\\/]* | ?:[\\/]*) 18582 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18583 ;; 18584 *) 18585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18586 for as_dir in $PATH 18587 do 18588 IFS=$as_save_IFS 18589 test -z "$as_dir" && as_dir=. 18590 for ac_exec_ext in '' $ac_executable_extensions; do 18591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18592 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18594 break 2 18595 fi 18596 done 18597 done 18598 IFS=$as_save_IFS 18599 18600 ;; 18601 esac 18602 fi 18603 DSYMUTIL=$ac_cv_path_DSYMUTIL 18604 if test -n "$DSYMUTIL"; then 18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18606 $as_echo "$DSYMUTIL" >&6; } 18607 else 18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18609 $as_echo "no" >&6; } 18610 fi 18611 18612 18613 test -n "$DSYMUTIL" && break 18614 done 18615 18616 else 18617 # If it succeeded, then it was overridden by the user. We will use it 18618 # for the tool. 18619 18620 # First remove it from the list of overridden variables, so we can test 18621 # for unknown variables in the end. 18622 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18623 18624 # Check if the provided tool contains a complete path. 18625 tool_specified="$DSYMUTIL" 18626 tool_basename="${tool_specified##*/}" 18627 if test "x$tool_basename" = "x$tool_specified"; then 18628 # A command without a complete path is provided, search $PATH. 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18630 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18631 # Extract the first word of "$tool_basename", so it can be a program name with args. 18632 set dummy $tool_basename; ac_word=$2 18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18634 $as_echo_n "checking for $ac_word... " >&6; } 18635 if ${ac_cv_path_DSYMUTIL+:} false; then : 18636 $as_echo_n "(cached) " >&6 18637 else 18638 case $DSYMUTIL in 18639 [\\/]* | ?:[\\/]*) 18640 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18641 ;; 18642 *) 18643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18644 for as_dir in $PATH 18645 do 18646 IFS=$as_save_IFS 18647 test -z "$as_dir" && as_dir=. 18648 for ac_exec_ext in '' $ac_executable_extensions; do 18649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18650 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18652 break 2 18653 fi 18654 done 18655 done 18656 IFS=$as_save_IFS 18657 18658 ;; 18659 esac 18660 fi 18661 DSYMUTIL=$ac_cv_path_DSYMUTIL 18662 if test -n "$DSYMUTIL"; then 18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18664 $as_echo "$DSYMUTIL" >&6; } 18665 else 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18667 $as_echo "no" >&6; } 18668 fi 18669 18670 18671 if test "x$DSYMUTIL" = x; then 18672 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18673 fi 18674 else 18675 # Otherwise we believe it is a complete path. Use it as it is. 18676 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18677 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18679 $as_echo_n "checking for DSYMUTIL... " >&6; } 18680 if test ! -x "$tool_specified"; then 18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18682 $as_echo "not found" >&6; } 18683 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18684 fi 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18686 $as_echo "$tool_specified" >&6; } 18687 fi 18688 fi 18689 fi 18690 18691 18692 18693 if test "x$DSYMUTIL" = x; then 18694 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 18695 fi 18696 18697 18698 18699 18700 18701 # Publish this variable in the help. 18702 18703 18704 if test "x$XATTR" = x; then 18705 # The variable is not set by user, try to locate tool using the code snippet 18706 for ac_prog in xattr 18707 do 18708 # Extract the first word of "$ac_prog", so it can be a program name with args. 18709 set dummy $ac_prog; ac_word=$2 18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18711 $as_echo_n "checking for $ac_word... " >&6; } 18712 if ${ac_cv_path_XATTR+:} false; then : 18713 $as_echo_n "(cached) " >&6 18714 else 18715 case $XATTR in 18716 [\\/]* | ?:[\\/]*) 18717 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18718 ;; 18719 *) 18720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18721 for as_dir in $PATH 18722 do 18723 IFS=$as_save_IFS 18724 test -z "$as_dir" && as_dir=. 18725 for ac_exec_ext in '' $ac_executable_extensions; do 18726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18727 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18729 break 2 18730 fi 18731 done 18732 done 18733 IFS=$as_save_IFS 18734 18735 ;; 18736 esac 18737 fi 18738 XATTR=$ac_cv_path_XATTR 18739 if test -n "$XATTR"; then 18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18741 $as_echo "$XATTR" >&6; } 18742 else 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18744 $as_echo "no" >&6; } 18745 fi 18746 18747 18748 test -n "$XATTR" && break 18749 done 18750 18751 else 18752 # The variable is set, but is it from the command line or the environment? 18753 18754 # Try to remove the string !XATTR! from our list. 18755 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 18756 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18757 # If it failed, the variable was not from the command line. Ignore it, 18758 # but warn the user (except for BASH, which is always set by the calling BASH). 18759 if test "xXATTR" != xBASH; then 18760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 18761 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 18762 fi 18763 # Try to locate tool using the code snippet 18764 for ac_prog in xattr 18765 do 18766 # Extract the first word of "$ac_prog", so it can be a program name with args. 18767 set dummy $ac_prog; ac_word=$2 18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18769 $as_echo_n "checking for $ac_word... " >&6; } 18770 if ${ac_cv_path_XATTR+:} false; then : 18771 $as_echo_n "(cached) " >&6 18772 else 18773 case $XATTR in 18774 [\\/]* | ?:[\\/]*) 18775 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18776 ;; 18777 *) 18778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18779 for as_dir in $PATH 18780 do 18781 IFS=$as_save_IFS 18782 test -z "$as_dir" && as_dir=. 18783 for ac_exec_ext in '' $ac_executable_extensions; do 18784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18785 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18787 break 2 18788 fi 18789 done 18790 done 18791 IFS=$as_save_IFS 18792 18793 ;; 18794 esac 18795 fi 18796 XATTR=$ac_cv_path_XATTR 18797 if test -n "$XATTR"; then 18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18799 $as_echo "$XATTR" >&6; } 18800 else 18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18802 $as_echo "no" >&6; } 18803 fi 18804 18805 18806 test -n "$XATTR" && break 18807 done 18808 18809 else 18810 # If it succeeded, then it was overridden by the user. We will use it 18811 # for the tool. 18812 18813 # First remove it from the list of overridden variables, so we can test 18814 # for unknown variables in the end. 18815 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18816 18817 # Check if the provided tool contains a complete path. 18818 tool_specified="$XATTR" 18819 tool_basename="${tool_specified##*/}" 18820 if test "x$tool_basename" = "x$tool_specified"; then 18821 # A command without a complete path is provided, search $PATH. 18822 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 18823 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 18824 # Extract the first word of "$tool_basename", so it can be a program name with args. 18825 set dummy $tool_basename; ac_word=$2 18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18827 $as_echo_n "checking for $ac_word... " >&6; } 18828 if ${ac_cv_path_XATTR+:} false; then : 18829 $as_echo_n "(cached) " >&6 18830 else 18831 case $XATTR in 18832 [\\/]* | ?:[\\/]*) 18833 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18834 ;; 18835 *) 18836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18837 for as_dir in $PATH 18838 do 18839 IFS=$as_save_IFS 18840 test -z "$as_dir" && as_dir=. 18841 for ac_exec_ext in '' $ac_executable_extensions; do 18842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18843 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18845 break 2 18846 fi 18847 done 18848 done 18849 IFS=$as_save_IFS 18850 18851 ;; 18852 esac 18853 fi 18854 XATTR=$ac_cv_path_XATTR 18855 if test -n "$XATTR"; then 18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18857 $as_echo "$XATTR" >&6; } 18858 else 18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18860 $as_echo "no" >&6; } 18861 fi 18862 18863 18864 if test "x$XATTR" = x; then 18865 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18866 fi 18867 else 18868 # Otherwise we believe it is a complete path. Use it as it is. 18869 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 18870 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 18872 $as_echo_n "checking for XATTR... " >&6; } 18873 if test ! -x "$tool_specified"; then 18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18875 $as_echo "not found" >&6; } 18876 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 18877 fi 18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18879 $as_echo "$tool_specified" >&6; } 18880 fi 18881 fi 18882 fi 18883 18884 18885 18886 if test "x$XATTR" = x; then 18887 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 18888 fi 18889 18890 18891 18892 18893 # Publish this variable in the help. 18894 18895 18896 if test "x$CODESIGN" = x; then 18897 # The variable is not set by user, try to locate tool using the code snippet 18898 for ac_prog in codesign 18899 do 18900 # Extract the first word of "$ac_prog", so it can be a program name with args. 18901 set dummy $ac_prog; ac_word=$2 18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18903 $as_echo_n "checking for $ac_word... " >&6; } 18904 if ${ac_cv_path_CODESIGN+:} false; then : 18905 $as_echo_n "(cached) " >&6 18906 else 18907 case $CODESIGN in 18908 [\\/]* | ?:[\\/]*) 18909 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 18910 ;; 18911 *) 18912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18913 for as_dir in $PATH 18914 do 18915 IFS=$as_save_IFS 18916 test -z "$as_dir" && as_dir=. 18917 for ac_exec_ext in '' $ac_executable_extensions; do 18918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18919 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 18920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18921 break 2 18922 fi 18923 done 18924 done 18925 IFS=$as_save_IFS 18926 18927 ;; 18928 esac 18929 fi 18930 CODESIGN=$ac_cv_path_CODESIGN 18931 if test -n "$CODESIGN"; then 18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 18933 $as_echo "$CODESIGN" >&6; } 18934 else 18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18936 $as_echo "no" >&6; } 18937 fi 18938 18939 18940 test -n "$CODESIGN" && break 18941 done 18942 18943 else 18944 # The variable is set, but is it from the command line or the environment? 18945 18946 # Try to remove the string !CODESIGN! from our list. 18947 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 18948 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18949 # If it failed, the variable was not from the command line. Ignore it, 18950 # but warn the user (except for BASH, which is always set by the calling BASH). 18951 if test "xCODESIGN" != xBASH; then 18952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 18953 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 18954 fi 18955 # Try to locate tool using the code snippet 18956 for ac_prog in codesign 18957 do 18958 # Extract the first word of "$ac_prog", so it can be a program name with args. 18959 set dummy $ac_prog; ac_word=$2 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18961 $as_echo_n "checking for $ac_word... " >&6; } 18962 if ${ac_cv_path_CODESIGN+:} false; then : 18963 $as_echo_n "(cached) " >&6 18964 else 18965 case $CODESIGN in 18966 [\\/]* | ?:[\\/]*) 18967 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 18968 ;; 18969 *) 18970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18971 for as_dir in $PATH 18972 do 18973 IFS=$as_save_IFS 18974 test -z "$as_dir" && as_dir=. 18975 for ac_exec_ext in '' $ac_executable_extensions; do 18976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18977 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 18978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18979 break 2 18980 fi 18981 done 18982 done 18983 IFS=$as_save_IFS 18984 18985 ;; 18986 esac 18987 fi 18988 CODESIGN=$ac_cv_path_CODESIGN 18989 if test -n "$CODESIGN"; then 18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 18991 $as_echo "$CODESIGN" >&6; } 18992 else 18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18994 $as_echo "no" >&6; } 18995 fi 18996 18997 18998 test -n "$CODESIGN" && break 18999 done 19000 19001 else 19002 # If it succeeded, then it was overridden by the user. We will use it 19003 # for the tool. 19004 19005 # First remove it from the list of overridden variables, so we can test 19006 # for unknown variables in the end. 19007 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19008 19009 # Check if the provided tool contains a complete path. 19010 tool_specified="$CODESIGN" 19011 tool_basename="${tool_specified##*/}" 19012 if test "x$tool_basename" = "x$tool_specified"; then 19013 # A command without a complete path is provided, search $PATH. 19014 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19015 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19016 # Extract the first word of "$tool_basename", so it can be a program name with args. 19017 set dummy $tool_basename; ac_word=$2 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19019 $as_echo_n "checking for $ac_word... " >&6; } 19020 if ${ac_cv_path_CODESIGN+:} false; then : 19021 $as_echo_n "(cached) " >&6 19022 else 19023 case $CODESIGN in 19024 [\\/]* | ?:[\\/]*) 19025 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19026 ;; 19027 *) 19028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19029 for as_dir in $PATH 19030 do 19031 IFS=$as_save_IFS 19032 test -z "$as_dir" && as_dir=. 19033 for ac_exec_ext in '' $ac_executable_extensions; do 19034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19035 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19037 break 2 19038 fi 19039 done 19040 done 19041 IFS=$as_save_IFS 19042 19043 ;; 19044 esac 19045 fi 19046 CODESIGN=$ac_cv_path_CODESIGN 19047 if test -n "$CODESIGN"; then 19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19049 $as_echo "$CODESIGN" >&6; } 19050 else 19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19052 $as_echo "no" >&6; } 19053 fi 19054 19055 19056 if test "x$CODESIGN" = x; then 19057 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19058 fi 19059 else 19060 # Otherwise we believe it is a complete path. Use it as it is. 19061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19062 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19064 $as_echo_n "checking for CODESIGN... " >&6; } 19065 if test ! -x "$tool_specified"; then 19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19067 $as_echo "not found" >&6; } 19068 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19069 fi 19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19071 $as_echo "$tool_specified" >&6; } 19072 fi 19073 fi 19074 fi 19075 19076 19077 if test "x$CODESIGN" != "x"; then 19078 # Verify that the openjdk_codesign certificate is present 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19080 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19081 rm -f codesign-testfile 19082 touch codesign-testfile 19083 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19084 rm -f codesign-testfile 19085 if test "x$CODESIGN" = x; then 19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19087 $as_echo "no" >&6; } 19088 else 19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19090 $as_echo "yes" >&6; } 19091 fi 19092 fi 19093 fi 19094 19095 19096 # Check if pkg-config is available. 19097 19098 19099 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19100 if test -n "$ac_tool_prefix"; then 19101 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19102 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19104 $as_echo_n "checking for $ac_word... " >&6; } 19105 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19106 $as_echo_n "(cached) " >&6 19107 else 19108 case $PKG_CONFIG in 19109 [\\/]* | ?:[\\/]*) 19110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19111 ;; 19112 *) 19113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19114 for as_dir in $PATH 19115 do 19116 IFS=$as_save_IFS 19117 test -z "$as_dir" && as_dir=. 19118 for ac_exec_ext in '' $ac_executable_extensions; do 19119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19122 break 2 19123 fi 19124 done 19125 done 19126 IFS=$as_save_IFS 19127 19128 ;; 19129 esac 19130 fi 19131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19132 if test -n "$PKG_CONFIG"; then 19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19134 $as_echo "$PKG_CONFIG" >&6; } 19135 else 19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19137 $as_echo "no" >&6; } 19138 fi 19139 19140 19141 fi 19142 if test -z "$ac_cv_path_PKG_CONFIG"; then 19143 ac_pt_PKG_CONFIG=$PKG_CONFIG 19144 # Extract the first word of "pkg-config", so it can be a program name with args. 19145 set dummy pkg-config; ac_word=$2 19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19147 $as_echo_n "checking for $ac_word... " >&6; } 19148 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19149 $as_echo_n "(cached) " >&6 19150 else 19151 case $ac_pt_PKG_CONFIG in 19152 [\\/]* | ?:[\\/]*) 19153 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19154 ;; 19155 *) 19156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19157 for as_dir in $PATH 19158 do 19159 IFS=$as_save_IFS 19160 test -z "$as_dir" && as_dir=. 19161 for ac_exec_ext in '' $ac_executable_extensions; do 19162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19163 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19165 break 2 19166 fi 19167 done 19168 done 19169 IFS=$as_save_IFS 19170 19171 ;; 19172 esac 19173 fi 19174 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19175 if test -n "$ac_pt_PKG_CONFIG"; then 19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19177 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19178 else 19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19180 $as_echo "no" >&6; } 19181 fi 19182 19183 if test "x$ac_pt_PKG_CONFIG" = x; then 19184 PKG_CONFIG="" 19185 else 19186 case $cross_compiling:$ac_tool_warned in 19187 yes:) 19188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19190 ac_tool_warned=yes ;; 19191 esac 19192 PKG_CONFIG=$ac_pt_PKG_CONFIG 19193 fi 19194 else 19195 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19196 fi 19197 19198 fi 19199 if test -n "$PKG_CONFIG"; then 19200 _pkg_min_version=0.9.0 19201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19202 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19203 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19205 $as_echo "yes" >&6; } 19206 else 19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19208 $as_echo "no" >&6; } 19209 PKG_CONFIG="" 19210 fi 19211 19212 fi 19213 19214 # After basic tools have been setup, we can check build os specific details. 19215 19216 ############################################################################### 19217 19218 # Note that this is the build platform OS version! 19219 19220 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19221 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19222 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19223 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19224 19225 19226 19227 19228 19229 # Setup builddeps, for automatic downloading of tools we need. 19230 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19231 # boot-jdk setup, but we need to have basic tools setup first. 19232 19233 19234 # Check whether --with-builddeps-conf was given. 19235 if test "${with_builddeps_conf+set}" = set; then : 19236 withval=$with_builddeps_conf; 19237 fi 19238 19239 19240 19241 # Check whether --with-builddeps-server was given. 19242 if test "${with_builddeps_server+set}" = set; then : 19243 withval=$with_builddeps_server; 19244 fi 19245 19246 19247 19248 # Check whether --with-builddeps-dir was given. 19249 if test "${with_builddeps_dir+set}" = set; then : 19250 withval=$with_builddeps_dir; 19251 else 19252 with_builddeps_dir=/localhome/builddeps 19253 fi 19254 19255 19256 19257 # Check whether --with-builddeps-group was given. 19258 if test "${with_builddeps_group+set}" = set; then : 19259 withval=$with_builddeps_group; 19260 fi 19261 19262 19263 19264 19265 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19266 if test "x$with_builddeps_conf" != x; then 19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19268 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19269 builddepsfile=$with_builddeps_conf 19270 if test -s $builddepsfile; then 19271 . $builddepsfile 19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19273 $as_echo "loaded!" >&6; } 19274 else 19275 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19276 fi 19277 else 19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19279 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19280 builddepsfile=`mktemp` 19281 touch $builddepsfile 19282 # Put all found confs into a single file. 19283 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19284 # Source the file to acquire the variables 19285 if test -s $builddepsfile; then 19286 . $builddepsfile 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19288 $as_echo "found at least one!" >&6; } 19289 else 19290 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19291 fi 19292 fi 19293 # Create build and target names that use _ instead of "-" and ".". 19294 # This is necessary to use them in variable names. 19295 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19296 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19297 # Extract rewrite information for build and target 19298 eval rewritten_build=\${REWRITE_${build_var}} 19299 if test "x$rewritten_build" = x; then 19300 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19301 echo Build stays the same $rewritten_build 19302 else 19303 echo Rewriting build for builddeps into $rewritten_build 19304 fi 19305 eval rewritten_target=\${REWRITE_${target_var}} 19306 if test "x$rewritten_target" = x; then 19307 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19308 echo Target stays the same $rewritten_target 19309 else 19310 echo Rewriting target for builddeps into $rewritten_target 19311 fi 19312 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19313 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19314 fi 19315 for ac_prog in 7z unzip 19316 do 19317 # Extract the first word of "$ac_prog", so it can be a program name with args. 19318 set dummy $ac_prog; ac_word=$2 19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19320 $as_echo_n "checking for $ac_word... " >&6; } 19321 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19322 $as_echo_n "(cached) " >&6 19323 else 19324 if test -n "$BDEPS_UNZIP"; then 19325 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19326 else 19327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19328 for as_dir in $PATH 19329 do 19330 IFS=$as_save_IFS 19331 test -z "$as_dir" && as_dir=. 19332 for ac_exec_ext in '' $ac_executable_extensions; do 19333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19334 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19336 break 2 19337 fi 19338 done 19339 done 19340 IFS=$as_save_IFS 19341 19342 fi 19343 fi 19344 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19345 if test -n "$BDEPS_UNZIP"; then 19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19347 $as_echo "$BDEPS_UNZIP" >&6; } 19348 else 19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19350 $as_echo "no" >&6; } 19351 fi 19352 19353 19354 test -n "$BDEPS_UNZIP" && break 19355 done 19356 19357 if test "x$BDEPS_UNZIP" = x7z; then 19358 BDEPS_UNZIP="7z x" 19359 fi 19360 19361 for ac_prog in wget lftp ftp 19362 do 19363 # Extract the first word of "$ac_prog", so it can be a program name with args. 19364 set dummy $ac_prog; ac_word=$2 19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19366 $as_echo_n "checking for $ac_word... " >&6; } 19367 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19368 $as_echo_n "(cached) " >&6 19369 else 19370 if test -n "$BDEPS_FTP"; then 19371 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19372 else 19373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19374 for as_dir in $PATH 19375 do 19376 IFS=$as_save_IFS 19377 test -z "$as_dir" && as_dir=. 19378 for ac_exec_ext in '' $ac_executable_extensions; do 19379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19380 ac_cv_prog_BDEPS_FTP="$ac_prog" 19381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19382 break 2 19383 fi 19384 done 19385 done 19386 IFS=$as_save_IFS 19387 19388 fi 19389 fi 19390 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19391 if test -n "$BDEPS_FTP"; then 19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19393 $as_echo "$BDEPS_FTP" >&6; } 19394 else 19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19396 $as_echo "no" >&6; } 19397 fi 19398 19399 19400 test -n "$BDEPS_FTP" && break 19401 done 19402 19403 19404 19405 ############################################################################### 19406 # 19407 # Determine OpenJDK variants, options and version numbers. 19408 # 19409 ############################################################################### 19410 19411 # We need build & target for this. 19412 19413 19414 ############################################################################### 19415 # 19416 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19417 # We always build headless support. 19418 # 19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19420 $as_echo_n "checking headful support... " >&6; } 19421 # Check whether --enable-headful was given. 19422 if test "${enable_headful+set}" = set; then : 19423 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19424 else 19425 SUPPORT_HEADFUL=yes 19426 fi 19427 19428 19429 SUPPORT_HEADLESS=yes 19430 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19431 19432 if test "x$SUPPORT_HEADFUL" = xyes; then 19433 # We are building both headful and headless. 19434 headful_msg="include support for both headful and headless" 19435 fi 19436 19437 if test "x$SUPPORT_HEADFUL" = xno; then 19438 # Thus we are building headless only. 19439 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19440 headful_msg="headless only" 19441 fi 19442 19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19444 $as_echo "$headful_msg" >&6; } 19445 19446 19447 19448 19449 19450 # Control wether Hotspot runs Queens test after build. 19451 # Check whether --enable-hotspot-test-in-build was given. 19452 if test "${enable_hotspot_test_in_build+set}" = set; then : 19453 enableval=$enable_hotspot_test_in_build; 19454 else 19455 enable_hotspot_test_in_build=no 19456 fi 19457 19458 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19459 TEST_IN_BUILD=true 19460 else 19461 TEST_IN_BUILD=false 19462 fi 19463 19464 19465 ############################################################################### 19466 # 19467 # Choose cacerts source file 19468 # 19469 19470 # Check whether --with-cacerts-file was given. 19471 if test "${with_cacerts_file+set}" = set; then : 19472 withval=$with_cacerts_file; 19473 fi 19474 19475 if test "x$with_cacerts_file" != x; then 19476 CACERTS_FILE=$with_cacerts_file 19477 else 19478 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 19479 fi 19480 19481 19482 ############################################################################### 19483 # 19484 # Enable or disable unlimited crypto 19485 # 19486 # Check whether --enable-unlimited-crypto was given. 19487 if test "${enable_unlimited_crypto+set}" = set; then : 19488 enableval=$enable_unlimited_crypto; 19489 else 19490 enable_unlimited_crypto=no 19491 fi 19492 19493 if test "x$enable_unlimited_crypto" = "xyes"; then 19494 UNLIMITED_CRYPTO=true 19495 else 19496 UNLIMITED_CRYPTO=false 19497 fi 19498 19499 19500 ############################################################################### 19501 # 19502 # Enable or disable the elliptic curve crypto implementation 19503 # 19504 19505 19506 ############################################################################### 19507 # 19508 # Compress jars 19509 # 19510 COMPRESS_JARS=false 19511 19512 19513 19514 19515 # Source the version numbers 19516 . $AUTOCONF_DIR/version-numbers 19517 19518 # Get the settings from parameters 19519 19520 # Check whether --with-milestone was given. 19521 if test "${with_milestone+set}" = set; then : 19522 withval=$with_milestone; 19523 fi 19524 19525 if test "x$with_milestone" = xyes; then 19526 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19527 elif test "x$with_milestone" != x; then 19528 MILESTONE="$with_milestone" 19529 fi 19530 if test "x$MILESTONE" = x; then 19531 MILESTONE=internal 19532 fi 19533 19534 19535 # Check whether --with-update-version was given. 19536 if test "${with_update_version+set}" = set; then : 19537 withval=$with_update_version; 19538 fi 19539 19540 if test "x$with_update_version" = xyes; then 19541 as_fn_error $? "Update version must have a value" "$LINENO" 5 19542 elif test "x$with_update_version" != x; then 19543 JDK_UPDATE_VERSION="$with_update_version" 19544 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19545 # to a bug in expr (which reduces it to just X). To work around this, we 19546 # always add a 0 to one digit update versions. 19547 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19548 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19549 fi 19550 fi 19551 19552 19553 # Check whether --with-user-release-suffix was given. 19554 if test "${with_user_release_suffix+set}" = set; then : 19555 withval=$with_user_release_suffix; 19556 fi 19557 19558 if test "x$with_user_release_suffix" = xyes; then 19559 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19560 elif test "x$with_user_release_suffix" != x; then 19561 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19562 fi 19563 19564 19565 # Check whether --with-build-number was given. 19566 if test "${with_build_number+set}" = set; then : 19567 withval=$with_build_number; 19568 fi 19569 19570 if test "x$with_build_number" = xyes; then 19571 as_fn_error $? "Build number must have a value" "$LINENO" 5 19572 elif test "x$with_build_number" != x; then 19573 JDK_BUILD_NUMBER="$with_build_number" 19574 fi 19575 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19576 if test "x$JDK_BUILD_NUMBER" = x; then 19577 JDK_BUILD_NUMBER=b00 19578 if test "x$USER_RELEASE_SUFFIX" = x; then 19579 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19580 # Avoid [:alnum:] since it depends on the locale. 19581 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19582 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19583 fi 19584 fi 19585 19586 # Now set the JDK version, milestone, build number etc. 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 # Check whether --with-copyright-year was given. 19604 if test "${with_copyright_year+set}" = set; then : 19605 withval=$with_copyright_year; 19606 fi 19607 19608 if test "x$with_copyright_year" = xyes; then 19609 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 19610 elif test "x$with_copyright_year" != x; then 19611 COPYRIGHT_YEAR="$with_copyright_year" 19612 else 19613 COPYRIGHT_YEAR=`date +'%Y'` 19614 fi 19615 19616 19617 if test "x$JDK_UPDATE_VERSION" != x; then 19618 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 19619 else 19620 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 19621 fi 19622 19623 19624 # The cooked update version used to encode trailing letters in the update 19625 # version into a trailing number. That is no longer needed, but need to 19626 # keep the format in 8u for compatibility. 19627 COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0" 19628 19629 19630 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 19631 19632 19633 19634 ############################################################################### 19635 # 19636 # Setup BootJDK, used to bootstrap the build. 19637 # 19638 ############################################################################### 19639 19640 19641 BOOT_JDK_FOUND=no 19642 19643 # Check whether --with-boot-jdk was given. 19644 if test "${with_boot_jdk+set}" = set; then : 19645 withval=$with_boot_jdk; 19646 fi 19647 19648 19649 # We look for the Boot JDK through various means, going from more certain to 19650 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 19651 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 19652 # must check if this is indeed valid; otherwise we'll continue looking. 19653 19654 # Test: Is bootjdk explicitely set by command line arguments? 19655 19656 if test "x$BOOT_JDK_FOUND" = xno; then 19657 # Now execute the test 19658 19659 if test "x$with_boot_jdk" != x; then 19660 BOOT_JDK=$with_boot_jdk 19661 BOOT_JDK_FOUND=maybe 19662 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 19663 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 19664 fi 19665 19666 19667 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 19668 if test "x$BOOT_JDK_FOUND" = xmaybe; then 19669 # Do we have a bin/java? 19670 if test ! -x "$BOOT_JDK/bin/java"; then 19671 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 19672 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 19673 BOOT_JDK_FOUND=no 19674 else 19675 # Do we have a bin/javac? 19676 if test ! -x "$BOOT_JDK/bin/javac"; then 19677 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 19678 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 19679 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 19680 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 19681 BOOT_JDK_FOUND=no 19682 else 19683 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 19684 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 19686 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 19687 BOOT_JDK_FOUND=no 19688 else 19689 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 19690 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 19691 19692 # Extra M4 quote needed to protect [] in grep expression. 19693 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 19694 if test "x$FOUND_VERSION_78" = x; then 19695 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 19696 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 19697 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 19698 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 19699 BOOT_JDK_FOUND=no 19700 else 19701 # We're done! :-) 19702 BOOT_JDK_FOUND=yes 19703 19704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19705 19706 # Input might be given as Windows format, start by converting to 19707 # unix format. 19708 path="$BOOT_JDK" 19709 new_path=`$CYGPATH -u "$path"` 19710 19711 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19712 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19713 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19714 # "foo.exe" is OK but "foo" is an error. 19715 # 19716 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19717 # It is also a way to make sure we got the proper file name for the real test later on. 19718 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19719 if test "x$test_shortpath" = x; then 19720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19721 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19722 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 19723 fi 19724 19725 # Call helper function which possibly converts this using DOS-style short mode. 19726 # If so, the updated path is stored in $new_path. 19727 19728 input_path="$new_path" 19729 # Check if we need to convert this using DOS-style short mode. If the path 19730 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19731 # take no chances and rewrite it. 19732 # Note: m4 eats our [], so we need to use [ and ] instead. 19733 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19734 if test "x$has_forbidden_chars" != x; then 19735 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19736 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19737 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19738 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19739 # Going to short mode and back again did indeed matter. Since short mode is 19740 # case insensitive, let's make it lowercase to improve readability. 19741 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19742 # Now convert it back to Unix-stile (cygpath) 19743 input_path=`$CYGPATH -u "$shortmode_path"` 19744 new_path="$input_path" 19745 fi 19746 fi 19747 19748 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19749 if test "x$test_cygdrive_prefix" = x; then 19750 # As a simple fix, exclude /usr/bin since it's not a real path. 19751 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 19752 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19753 # a path prefixed by /cygdrive for fixpath to work. 19754 new_path="$CYGWIN_ROOT_PATH$input_path" 19755 fi 19756 fi 19757 19758 19759 if test "x$path" != "x$new_path"; then 19760 BOOT_JDK="$new_path" 19761 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19762 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19763 fi 19764 19765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19766 19767 path="$BOOT_JDK" 19768 has_colon=`$ECHO $path | $GREP ^.:` 19769 new_path="$path" 19770 if test "x$has_colon" = x; then 19771 # Not in mixed or Windows style, start by that. 19772 new_path=`cmd //c echo $path` 19773 fi 19774 19775 19776 input_path="$new_path" 19777 # Check if we need to convert this using DOS-style short mode. If the path 19778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19779 # take no chances and rewrite it. 19780 # Note: m4 eats our [], so we need to use [ and ] instead. 19781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19782 if test "x$has_forbidden_chars" != x; then 19783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19784 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19785 fi 19786 19787 19788 windows_path="$new_path" 19789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19790 unix_path=`$CYGPATH -u "$windows_path"` 19791 new_path="$unix_path" 19792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19793 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19794 new_path="$unix_path" 19795 fi 19796 19797 if test "x$path" != "x$new_path"; then 19798 BOOT_JDK="$new_path" 19799 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19800 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19801 fi 19802 19803 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19804 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19805 19806 else 19807 # We're on a posix platform. Hooray! :) 19808 path="$BOOT_JDK" 19809 has_space=`$ECHO "$path" | $GREP " "` 19810 if test "x$has_space" != x; then 19811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19812 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19813 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 19814 fi 19815 19816 # Use eval to expand a potential ~ 19817 eval path="$path" 19818 if test ! -f "$path" && test ! -d "$path"; then 19819 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 19820 fi 19821 19822 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 19823 fi 19824 19825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 19826 $as_echo_n "checking for Boot JDK... " >&6; } 19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 19828 $as_echo "$BOOT_JDK" >&6; } 19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 19830 $as_echo_n "checking Boot JDK version... " >&6; } 19831 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 19833 $as_echo "$BOOT_JDK_VERSION" >&6; } 19834 fi # end check jdk version 19835 fi # end check rt.jar 19836 fi # end check javac 19837 fi # end check java 19838 fi # end check boot jdk found 19839 fi 19840 19841 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 19842 # Having specified an argument which is incorrect will produce an instant failure; 19843 # we should not go on looking 19844 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 19845 fi 19846 19847 # Test: Is bootjdk available from builddeps? 19848 19849 if test "x$BOOT_JDK_FOUND" = xno; then 19850 # Now execute the test 19851 19852 19853 19854 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19855 # Source the builddeps file again, to make sure it uses the latest variables! 19856 . $builddepsfile 19857 # Look for a target and build machine specific resource! 19858 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 19859 if test "x$resource" = x; then 19860 # Ok, lets instead look for a target specific resource 19861 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 19862 fi 19863 if test "x$resource" = x; then 19864 # Ok, lets instead look for a build specific resource 19865 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 19866 fi 19867 if test "x$resource" = x; then 19868 # Ok, lets instead look for a generic resource 19869 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 19870 resource=${builddep_bootjdk} 19871 fi 19872 if test "x$resource" != x; then 19873 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 19874 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 19875 # If the resource in the builddeps.conf file is an existing directory, 19876 # for example /java/linux/cups 19877 if test -d ${resource}; then 19878 depdir=${resource} 19879 else 19880 19881 # bootjdk is for example mymodule 19882 # $resource is for example libs/general/libmymod_1_2_3.zip 19883 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 19884 # $with_builddeps_dir is for example /localhome/builddeps 19885 # depdir is the name of the variable into which we store the depdir, eg MYMOD 19886 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 19887 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 19888 filename=`basename $resource` 19889 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 19890 filebase=${filename%%.*} 19891 extension=${filename#*.} 19892 installdir=$with_builddeps_dir/$filebase 19893 if test ! -f $installdir/$filename.unpacked; then 19894 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 19895 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 19896 if test ! -d $installdir; then 19897 mkdir -p $installdir 19898 fi 19899 if test ! -d $installdir; then 19900 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 19901 fi 19902 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 19903 touch $tmpfile 19904 if test ! -f $tmpfile; then 19905 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 19906 fi 19907 19908 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 19909 # $tmpfile is the local file name for the downloaded file. 19910 VALID_TOOL=no 19911 if test "x$BDEPS_FTP" = xwget; then 19912 VALID_TOOL=yes 19913 wget -O $tmpfile $with_builddeps_server/$resource 19914 fi 19915 if test "x$BDEPS_FTP" = xlftp; then 19916 VALID_TOOL=yes 19917 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 19918 fi 19919 if test "x$BDEPS_FTP" = xftp; then 19920 VALID_TOOL=yes 19921 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 19922 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 19923 FTPUSERPWD=${FTPSERVER%%@*} 19924 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 19925 FTPUSER=${userpwd%%:*} 19926 FTPPWD=${userpwd#*@} 19927 FTPSERVER=${FTPSERVER#*@} 19928 else 19929 FTPUSER=ftp 19930 FTPPWD=ftp 19931 fi 19932 # the "pass" command does not work on some 19933 # ftp clients (read ftp.exe) but if it works, 19934 # passive mode is better! 19935 ( \ 19936 echo "user $FTPUSER $FTPPWD" ; \ 19937 echo "pass" ; \ 19938 echo "bin" ; \ 19939 echo "get $FTPPATH $tmpfile" ; \ 19940 ) | ftp -in $FTPSERVER 19941 fi 19942 if test "x$VALID_TOOL" != xyes; then 19943 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 19944 fi 19945 19946 mv $tmpfile $installdir/$filename 19947 if test ! -s $installdir/$filename; then 19948 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 19949 fi 19950 case "$extension" in 19951 zip) echo "Unzipping $installdir/$filename..." 19952 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 19953 ;; 19954 tar.gz) echo "Untaring $installdir/$filename..." 19955 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 19956 ;; 19957 tgz) echo "Untaring $installdir/$filename..." 19958 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 19959 ;; 19960 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 19961 ;; 19962 esac 19963 fi 19964 if test -f $installdir/$filename.unpacked; then 19965 depdir=$installdir 19966 fi 19967 19968 fi 19969 # Source the builddeps file again, because in the previous command, the depdir 19970 # was updated to point at the current build dependency install directory. 19971 . $builddepsfile 19972 # Now extract variables from the builddeps.conf files. 19973 theroot=${builddep_bootjdk_ROOT} 19974 thecflags=${builddep_bootjdk_CFLAGS} 19975 thelibs=${builddep_bootjdk_LIBS} 19976 if test "x$depdir" = x; then 19977 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 19978 fi 19979 BOOT_JDK=$depdir 19980 if test "x$theroot" != x; then 19981 BOOT_JDK="$theroot" 19982 fi 19983 if test "x$thecflags" != x; then 19984 BOOT_JDK_CFLAGS="$thecflags" 19985 fi 19986 if test "x$thelibs" != x; then 19987 BOOT_JDK_LIBS="$thelibs" 19988 fi 19989 BOOT_JDK_FOUND=maybe 19990 else BOOT_JDK_FOUND=no 19991 19992 fi 19993 else BOOT_JDK_FOUND=no 19994 19995 fi 19996 19997 19998 19999 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20000 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20001 # Do we have a bin/java? 20002 if test ! -x "$BOOT_JDK/bin/java"; then 20003 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20004 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20005 BOOT_JDK_FOUND=no 20006 else 20007 # Do we have a bin/javac? 20008 if test ! -x "$BOOT_JDK/bin/javac"; then 20009 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20010 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20011 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20012 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20013 BOOT_JDK_FOUND=no 20014 else 20015 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20016 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20017 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20018 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20019 BOOT_JDK_FOUND=no 20020 else 20021 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20022 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20023 20024 # Extra M4 quote needed to protect [] in grep expression. 20025 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20026 if test "x$FOUND_VERSION_78" = x; then 20027 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20028 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20029 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20030 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20031 BOOT_JDK_FOUND=no 20032 else 20033 # We're done! :-) 20034 BOOT_JDK_FOUND=yes 20035 20036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20037 20038 # Input might be given as Windows format, start by converting to 20039 # unix format. 20040 path="$BOOT_JDK" 20041 new_path=`$CYGPATH -u "$path"` 20042 20043 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20044 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20045 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20046 # "foo.exe" is OK but "foo" is an error. 20047 # 20048 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20049 # It is also a way to make sure we got the proper file name for the real test later on. 20050 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20051 if test "x$test_shortpath" = x; then 20052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20053 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20054 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20055 fi 20056 20057 # Call helper function which possibly converts this using DOS-style short mode. 20058 # If so, the updated path is stored in $new_path. 20059 20060 input_path="$new_path" 20061 # Check if we need to convert this using DOS-style short mode. If the path 20062 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20063 # take no chances and rewrite it. 20064 # Note: m4 eats our [], so we need to use [ and ] instead. 20065 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20066 if test "x$has_forbidden_chars" != x; then 20067 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20068 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20069 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20070 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20071 # Going to short mode and back again did indeed matter. Since short mode is 20072 # case insensitive, let's make it lowercase to improve readability. 20073 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20074 # Now convert it back to Unix-stile (cygpath) 20075 input_path=`$CYGPATH -u "$shortmode_path"` 20076 new_path="$input_path" 20077 fi 20078 fi 20079 20080 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20081 if test "x$test_cygdrive_prefix" = x; then 20082 # As a simple fix, exclude /usr/bin since it's not a real path. 20083 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20084 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20085 # a path prefixed by /cygdrive for fixpath to work. 20086 new_path="$CYGWIN_ROOT_PATH$input_path" 20087 fi 20088 fi 20089 20090 20091 if test "x$path" != "x$new_path"; then 20092 BOOT_JDK="$new_path" 20093 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20094 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20095 fi 20096 20097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20098 20099 path="$BOOT_JDK" 20100 has_colon=`$ECHO $path | $GREP ^.:` 20101 new_path="$path" 20102 if test "x$has_colon" = x; then 20103 # Not in mixed or Windows style, start by that. 20104 new_path=`cmd //c echo $path` 20105 fi 20106 20107 20108 input_path="$new_path" 20109 # Check if we need to convert this using DOS-style short mode. If the path 20110 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20111 # take no chances and rewrite it. 20112 # Note: m4 eats our [], so we need to use [ and ] instead. 20113 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20114 if test "x$has_forbidden_chars" != x; then 20115 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20116 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20117 fi 20118 20119 20120 windows_path="$new_path" 20121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20122 unix_path=`$CYGPATH -u "$windows_path"` 20123 new_path="$unix_path" 20124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20126 new_path="$unix_path" 20127 fi 20128 20129 if test "x$path" != "x$new_path"; then 20130 BOOT_JDK="$new_path" 20131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20132 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20133 fi 20134 20135 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20136 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20137 20138 else 20139 # We're on a posix platform. Hooray! :) 20140 path="$BOOT_JDK" 20141 has_space=`$ECHO "$path" | $GREP " "` 20142 if test "x$has_space" != x; then 20143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20144 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20145 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20146 fi 20147 20148 # Use eval to expand a potential ~ 20149 eval path="$path" 20150 if test ! -f "$path" && test ! -d "$path"; then 20151 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20152 fi 20153 20154 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20155 fi 20156 20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20158 $as_echo_n "checking for Boot JDK... " >&6; } 20159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20160 $as_echo "$BOOT_JDK" >&6; } 20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20162 $as_echo_n "checking Boot JDK version... " >&6; } 20163 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20165 $as_echo "$BOOT_JDK_VERSION" >&6; } 20166 fi # end check jdk version 20167 fi # end check rt.jar 20168 fi # end check javac 20169 fi # end check java 20170 fi # end check boot jdk found 20171 fi 20172 20173 20174 # Test: Is $JAVA_HOME set? 20175 20176 if test "x$BOOT_JDK_FOUND" = xno; then 20177 # Now execute the test 20178 20179 if test "x$JAVA_HOME" != x; then 20180 JAVA_HOME_PROCESSED="$JAVA_HOME" 20181 20182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20183 20184 # Input might be given as Windows format, start by converting to 20185 # unix format. 20186 path="$JAVA_HOME_PROCESSED" 20187 new_path=`$CYGPATH -u "$path"` 20188 20189 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20190 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20191 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20192 # "foo.exe" is OK but "foo" is an error. 20193 # 20194 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20195 # It is also a way to make sure we got the proper file name for the real test later on. 20196 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20197 if test "x$test_shortpath" = x; then 20198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20199 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20200 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 20201 fi 20202 20203 # Call helper function which possibly converts this using DOS-style short mode. 20204 # If so, the updated path is stored in $new_path. 20205 20206 input_path="$new_path" 20207 # Check if we need to convert this using DOS-style short mode. If the path 20208 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20209 # take no chances and rewrite it. 20210 # Note: m4 eats our [], so we need to use [ and ] instead. 20211 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20212 if test "x$has_forbidden_chars" != x; then 20213 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20214 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20215 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20216 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20217 # Going to short mode and back again did indeed matter. Since short mode is 20218 # case insensitive, let's make it lowercase to improve readability. 20219 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20220 # Now convert it back to Unix-stile (cygpath) 20221 input_path=`$CYGPATH -u "$shortmode_path"` 20222 new_path="$input_path" 20223 fi 20224 fi 20225 20226 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20227 if test "x$test_cygdrive_prefix" = x; then 20228 # As a simple fix, exclude /usr/bin since it's not a real path. 20229 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20230 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20231 # a path prefixed by /cygdrive for fixpath to work. 20232 new_path="$CYGWIN_ROOT_PATH$input_path" 20233 fi 20234 fi 20235 20236 20237 if test "x$path" != "x$new_path"; then 20238 JAVA_HOME_PROCESSED="$new_path" 20239 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20240 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20241 fi 20242 20243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20244 20245 path="$JAVA_HOME_PROCESSED" 20246 has_colon=`$ECHO $path | $GREP ^.:` 20247 new_path="$path" 20248 if test "x$has_colon" = x; then 20249 # Not in mixed or Windows style, start by that. 20250 new_path=`cmd //c echo $path` 20251 fi 20252 20253 20254 input_path="$new_path" 20255 # Check if we need to convert this using DOS-style short mode. If the path 20256 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20257 # take no chances and rewrite it. 20258 # Note: m4 eats our [], so we need to use [ and ] instead. 20259 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20260 if test "x$has_forbidden_chars" != x; then 20261 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20262 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20263 fi 20264 20265 20266 windows_path="$new_path" 20267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20268 unix_path=`$CYGPATH -u "$windows_path"` 20269 new_path="$unix_path" 20270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20272 new_path="$unix_path" 20273 fi 20274 20275 if test "x$path" != "x$new_path"; then 20276 JAVA_HOME_PROCESSED="$new_path" 20277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20278 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20279 fi 20280 20281 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20282 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20283 20284 else 20285 # We're on a posix platform. Hooray! :) 20286 path="$JAVA_HOME_PROCESSED" 20287 has_space=`$ECHO "$path" | $GREP " "` 20288 if test "x$has_space" != x; then 20289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20290 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20291 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20292 fi 20293 20294 # Use eval to expand a potential ~ 20295 eval path="$path" 20296 if test ! -f "$path" && test ! -d "$path"; then 20297 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 20298 fi 20299 20300 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 20301 fi 20302 20303 if test ! -d "$JAVA_HOME_PROCESSED"; then 20304 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 20305 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 20306 else 20307 # Aha, the user has set a JAVA_HOME 20308 # let us use that as the Boot JDK. 20309 BOOT_JDK="$JAVA_HOME_PROCESSED" 20310 BOOT_JDK_FOUND=maybe 20311 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 20312 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 20313 fi 20314 fi 20315 20316 20317 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20318 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20319 # Do we have a bin/java? 20320 if test ! -x "$BOOT_JDK/bin/java"; then 20321 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20322 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20323 BOOT_JDK_FOUND=no 20324 else 20325 # Do we have a bin/javac? 20326 if test ! -x "$BOOT_JDK/bin/javac"; then 20327 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20328 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20329 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20330 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20331 BOOT_JDK_FOUND=no 20332 else 20333 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20334 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20335 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20336 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20337 BOOT_JDK_FOUND=no 20338 else 20339 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20340 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20341 20342 # Extra M4 quote needed to protect [] in grep expression. 20343 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20344 if test "x$FOUND_VERSION_78" = x; then 20345 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20346 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20347 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20348 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20349 BOOT_JDK_FOUND=no 20350 else 20351 # We're done! :-) 20352 BOOT_JDK_FOUND=yes 20353 20354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20355 20356 # Input might be given as Windows format, start by converting to 20357 # unix format. 20358 path="$BOOT_JDK" 20359 new_path=`$CYGPATH -u "$path"` 20360 20361 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20362 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20363 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20364 # "foo.exe" is OK but "foo" is an error. 20365 # 20366 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20367 # It is also a way to make sure we got the proper file name for the real test later on. 20368 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20369 if test "x$test_shortpath" = x; then 20370 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20371 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20372 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20373 fi 20374 20375 # Call helper function which possibly converts this using DOS-style short mode. 20376 # If so, the updated path is stored in $new_path. 20377 20378 input_path="$new_path" 20379 # Check if we need to convert this using DOS-style short mode. If the path 20380 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20381 # take no chances and rewrite it. 20382 # Note: m4 eats our [], so we need to use [ and ] instead. 20383 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20384 if test "x$has_forbidden_chars" != x; then 20385 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20386 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20387 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20388 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20389 # Going to short mode and back again did indeed matter. Since short mode is 20390 # case insensitive, let's make it lowercase to improve readability. 20391 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20392 # Now convert it back to Unix-stile (cygpath) 20393 input_path=`$CYGPATH -u "$shortmode_path"` 20394 new_path="$input_path" 20395 fi 20396 fi 20397 20398 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20399 if test "x$test_cygdrive_prefix" = x; then 20400 # As a simple fix, exclude /usr/bin since it's not a real path. 20401 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20402 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20403 # a path prefixed by /cygdrive for fixpath to work. 20404 new_path="$CYGWIN_ROOT_PATH$input_path" 20405 fi 20406 fi 20407 20408 20409 if test "x$path" != "x$new_path"; then 20410 BOOT_JDK="$new_path" 20411 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20412 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20413 fi 20414 20415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20416 20417 path="$BOOT_JDK" 20418 has_colon=`$ECHO $path | $GREP ^.:` 20419 new_path="$path" 20420 if test "x$has_colon" = x; then 20421 # Not in mixed or Windows style, start by that. 20422 new_path=`cmd //c echo $path` 20423 fi 20424 20425 20426 input_path="$new_path" 20427 # Check if we need to convert this using DOS-style short mode. If the path 20428 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20429 # take no chances and rewrite it. 20430 # Note: m4 eats our [], so we need to use [ and ] instead. 20431 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20432 if test "x$has_forbidden_chars" != x; then 20433 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20434 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20435 fi 20436 20437 20438 windows_path="$new_path" 20439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20440 unix_path=`$CYGPATH -u "$windows_path"` 20441 new_path="$unix_path" 20442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20444 new_path="$unix_path" 20445 fi 20446 20447 if test "x$path" != "x$new_path"; then 20448 BOOT_JDK="$new_path" 20449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20450 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20451 fi 20452 20453 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20454 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20455 20456 else 20457 # We're on a posix platform. Hooray! :) 20458 path="$BOOT_JDK" 20459 has_space=`$ECHO "$path" | $GREP " "` 20460 if test "x$has_space" != x; then 20461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20462 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20463 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20464 fi 20465 20466 # Use eval to expand a potential ~ 20467 eval path="$path" 20468 if test ! -f "$path" && test ! -d "$path"; then 20469 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20470 fi 20471 20472 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20473 fi 20474 20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20476 $as_echo_n "checking for Boot JDK... " >&6; } 20477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20478 $as_echo "$BOOT_JDK" >&6; } 20479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20480 $as_echo_n "checking Boot JDK version... " >&6; } 20481 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20483 $as_echo "$BOOT_JDK_VERSION" >&6; } 20484 fi # end check jdk version 20485 fi # end check rt.jar 20486 fi # end check javac 20487 fi # end check java 20488 fi # end check boot jdk found 20489 fi 20490 20491 20492 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 20493 20494 if test "x$BOOT_JDK_FOUND" = xno; then 20495 # Now execute the test 20496 20497 if test -x /usr/libexec/java_home; then 20498 BOOT_JDK=`/usr/libexec/java_home` 20499 BOOT_JDK_FOUND=maybe 20500 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5 20501 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;} 20502 fi 20503 20504 20505 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20506 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20507 # Do we have a bin/java? 20508 if test ! -x "$BOOT_JDK/bin/java"; then 20509 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20510 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20511 BOOT_JDK_FOUND=no 20512 else 20513 # Do we have a bin/javac? 20514 if test ! -x "$BOOT_JDK/bin/javac"; then 20515 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20516 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20517 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20518 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20519 BOOT_JDK_FOUND=no 20520 else 20521 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20522 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20523 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20524 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20525 BOOT_JDK_FOUND=no 20526 else 20527 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20528 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20529 20530 # Extra M4 quote needed to protect [] in grep expression. 20531 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20532 if test "x$FOUND_VERSION_78" = x; then 20533 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20534 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20535 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20536 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20537 BOOT_JDK_FOUND=no 20538 else 20539 # We're done! :-) 20540 BOOT_JDK_FOUND=yes 20541 20542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20543 20544 # Input might be given as Windows format, start by converting to 20545 # unix format. 20546 path="$BOOT_JDK" 20547 new_path=`$CYGPATH -u "$path"` 20548 20549 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20550 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20551 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20552 # "foo.exe" is OK but "foo" is an error. 20553 # 20554 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20555 # It is also a way to make sure we got the proper file name for the real test later on. 20556 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20557 if test "x$test_shortpath" = x; then 20558 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20559 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20560 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20561 fi 20562 20563 # Call helper function which possibly converts this using DOS-style short mode. 20564 # If so, the updated path is stored in $new_path. 20565 20566 input_path="$new_path" 20567 # Check if we need to convert this using DOS-style short mode. If the path 20568 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20569 # take no chances and rewrite it. 20570 # Note: m4 eats our [], so we need to use [ and ] instead. 20571 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20572 if test "x$has_forbidden_chars" != x; then 20573 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20574 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20575 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20576 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20577 # Going to short mode and back again did indeed matter. Since short mode is 20578 # case insensitive, let's make it lowercase to improve readability. 20579 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20580 # Now convert it back to Unix-stile (cygpath) 20581 input_path=`$CYGPATH -u "$shortmode_path"` 20582 new_path="$input_path" 20583 fi 20584 fi 20585 20586 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20587 if test "x$test_cygdrive_prefix" = x; then 20588 # As a simple fix, exclude /usr/bin since it's not a real path. 20589 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20590 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20591 # a path prefixed by /cygdrive for fixpath to work. 20592 new_path="$CYGWIN_ROOT_PATH$input_path" 20593 fi 20594 fi 20595 20596 20597 if test "x$path" != "x$new_path"; then 20598 BOOT_JDK="$new_path" 20599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20600 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20601 fi 20602 20603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20604 20605 path="$BOOT_JDK" 20606 has_colon=`$ECHO $path | $GREP ^.:` 20607 new_path="$path" 20608 if test "x$has_colon" = x; then 20609 # Not in mixed or Windows style, start by that. 20610 new_path=`cmd //c echo $path` 20611 fi 20612 20613 20614 input_path="$new_path" 20615 # Check if we need to convert this using DOS-style short mode. If the path 20616 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20617 # take no chances and rewrite it. 20618 # Note: m4 eats our [], so we need to use [ and ] instead. 20619 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20620 if test "x$has_forbidden_chars" != x; then 20621 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20622 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20623 fi 20624 20625 20626 windows_path="$new_path" 20627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20628 unix_path=`$CYGPATH -u "$windows_path"` 20629 new_path="$unix_path" 20630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20631 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20632 new_path="$unix_path" 20633 fi 20634 20635 if test "x$path" != "x$new_path"; then 20636 BOOT_JDK="$new_path" 20637 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20638 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20639 fi 20640 20641 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20642 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20643 20644 else 20645 # We're on a posix platform. Hooray! :) 20646 path="$BOOT_JDK" 20647 has_space=`$ECHO "$path" | $GREP " "` 20648 if test "x$has_space" != x; then 20649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20650 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20651 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20652 fi 20653 20654 # Use eval to expand a potential ~ 20655 eval path="$path" 20656 if test ! -f "$path" && test ! -d "$path"; then 20657 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20658 fi 20659 20660 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20661 fi 20662 20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20664 $as_echo_n "checking for Boot JDK... " >&6; } 20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20666 $as_echo "$BOOT_JDK" >&6; } 20667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20668 $as_echo_n "checking Boot JDK version... " >&6; } 20669 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20671 $as_echo "$BOOT_JDK_VERSION" >&6; } 20672 fi # end check jdk version 20673 fi # end check rt.jar 20674 fi # end check javac 20675 fi # end check java 20676 fi # end check boot jdk found 20677 fi 20678 20679 20680 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 20681 20682 if test "x$BOOT_JDK_FOUND" = xno; then 20683 # Now execute the test 20684 20685 # Extract the first word of "javac", so it can be a program name with args. 20686 set dummy javac; ac_word=$2 20687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20688 $as_echo_n "checking for $ac_word... " >&6; } 20689 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 20690 $as_echo_n "(cached) " >&6 20691 else 20692 case $JAVAC_CHECK in 20693 [\\/]* | ?:[\\/]*) 20694 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 20695 ;; 20696 *) 20697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20698 for as_dir in $PATH 20699 do 20700 IFS=$as_save_IFS 20701 test -z "$as_dir" && as_dir=. 20702 for ac_exec_ext in '' $ac_executable_extensions; do 20703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20704 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 20705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20706 break 2 20707 fi 20708 done 20709 done 20710 IFS=$as_save_IFS 20711 20712 ;; 20713 esac 20714 fi 20715 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 20716 if test -n "$JAVAC_CHECK"; then 20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 20718 $as_echo "$JAVAC_CHECK" >&6; } 20719 else 20720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20721 $as_echo "no" >&6; } 20722 fi 20723 20724 20725 # Extract the first word of "java", so it can be a program name with args. 20726 set dummy java; ac_word=$2 20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20728 $as_echo_n "checking for $ac_word... " >&6; } 20729 if ${ac_cv_path_JAVA_CHECK+:} false; then : 20730 $as_echo_n "(cached) " >&6 20731 else 20732 case $JAVA_CHECK in 20733 [\\/]* | ?:[\\/]*) 20734 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 20735 ;; 20736 *) 20737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20738 for as_dir in $PATH 20739 do 20740 IFS=$as_save_IFS 20741 test -z "$as_dir" && as_dir=. 20742 for ac_exec_ext in '' $ac_executable_extensions; do 20743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20744 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 20745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20746 break 2 20747 fi 20748 done 20749 done 20750 IFS=$as_save_IFS 20751 20752 ;; 20753 esac 20754 fi 20755 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 20756 if test -n "$JAVA_CHECK"; then 20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 20758 $as_echo "$JAVA_CHECK" >&6; } 20759 else 20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20761 $as_echo "no" >&6; } 20762 fi 20763 20764 20765 BINARY="$JAVAC_CHECK" 20766 if test "x$JAVAC_CHECK" = x; then 20767 BINARY="$JAVA_CHECK" 20768 fi 20769 if test "x$BINARY" != x; then 20770 # So there is a java(c) binary, it might be part of a JDK. 20771 # Lets find the JDK/JRE directory by following symbolic links. 20772 # Linux/GNU systems often have links from /usr/bin/java to 20773 # /etc/alternatives/java to the real JDK binary. 20774 20775 if test "x$OPENJDK_BUILD_OS" != xwindows; then 20776 # Follow a chain of symbolic links. Use readlink 20777 # where it exists, else fall back to horribly 20778 # complicated shell code. 20779 if test "x$READLINK_TESTED" != yes; then 20780 # On MacOSX there is a readlink tool with a different 20781 # purpose than the GNU readlink tool. Check the found readlink. 20782 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 20783 if test "x$ISGNU" = x; then 20784 # A readlink that we do not know how to use. 20785 # Are there other non-GNU readlinks out there? 20786 READLINK_TESTED=yes 20787 READLINK= 20788 fi 20789 fi 20790 20791 if test "x$READLINK" != x; then 20792 BINARY=`$READLINK -f $BINARY` 20793 else 20794 # Save the current directory for restoring afterwards 20795 STARTDIR=$PWD 20796 COUNTER=0 20797 sym_link_dir=`$DIRNAME $BINARY` 20798 sym_link_file=`$BASENAME $BINARY` 20799 cd $sym_link_dir 20800 # Use -P flag to resolve symlinks in directories. 20801 cd `$THEPWDCMD -P` 20802 sym_link_dir=`$THEPWDCMD -P` 20803 # Resolve file symlinks 20804 while test $COUNTER -lt 20; do 20805 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 20806 if test "x$ISLINK" == x; then 20807 # This is not a symbolic link! We are done! 20808 break 20809 fi 20810 # Again resolve directory symlinks since the target of the just found 20811 # link could be in a different directory 20812 cd `$DIRNAME $ISLINK` 20813 sym_link_dir=`$THEPWDCMD -P` 20814 sym_link_file=`$BASENAME $ISLINK` 20815 let COUNTER=COUNTER+1 20816 done 20817 cd $STARTDIR 20818 BINARY=$sym_link_dir/$sym_link_file 20819 fi 20820 fi 20821 20822 BOOT_JDK=`dirname "$BINARY"` 20823 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 20824 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 20825 # Looks like we found ourselves an JDK 20826 BOOT_JDK_FOUND=maybe 20827 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 20828 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 20829 fi 20830 fi 20831 20832 20833 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20834 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20835 # Do we have a bin/java? 20836 if test ! -x "$BOOT_JDK/bin/java"; then 20837 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20838 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20839 BOOT_JDK_FOUND=no 20840 else 20841 # Do we have a bin/javac? 20842 if test ! -x "$BOOT_JDK/bin/javac"; then 20843 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20844 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20845 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20846 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20847 BOOT_JDK_FOUND=no 20848 else 20849 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20850 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20851 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20852 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20853 BOOT_JDK_FOUND=no 20854 else 20855 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20856 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20857 20858 # Extra M4 quote needed to protect [] in grep expression. 20859 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20860 if test "x$FOUND_VERSION_78" = x; then 20861 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20862 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20863 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20864 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20865 BOOT_JDK_FOUND=no 20866 else 20867 # We're done! :-) 20868 BOOT_JDK_FOUND=yes 20869 20870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20871 20872 # Input might be given as Windows format, start by converting to 20873 # unix format. 20874 path="$BOOT_JDK" 20875 new_path=`$CYGPATH -u "$path"` 20876 20877 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20878 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20879 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20880 # "foo.exe" is OK but "foo" is an error. 20881 # 20882 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20883 # It is also a way to make sure we got the proper file name for the real test later on. 20884 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20885 if test "x$test_shortpath" = x; then 20886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20887 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20888 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20889 fi 20890 20891 # Call helper function which possibly converts this using DOS-style short mode. 20892 # If so, the updated path is stored in $new_path. 20893 20894 input_path="$new_path" 20895 # Check if we need to convert this using DOS-style short mode. If the path 20896 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20897 # take no chances and rewrite it. 20898 # Note: m4 eats our [], so we need to use [ and ] instead. 20899 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20900 if test "x$has_forbidden_chars" != x; then 20901 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20902 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20903 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20904 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20905 # Going to short mode and back again did indeed matter. Since short mode is 20906 # case insensitive, let's make it lowercase to improve readability. 20907 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20908 # Now convert it back to Unix-stile (cygpath) 20909 input_path=`$CYGPATH -u "$shortmode_path"` 20910 new_path="$input_path" 20911 fi 20912 fi 20913 20914 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20915 if test "x$test_cygdrive_prefix" = x; then 20916 # As a simple fix, exclude /usr/bin since it's not a real path. 20917 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20918 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20919 # a path prefixed by /cygdrive for fixpath to work. 20920 new_path="$CYGWIN_ROOT_PATH$input_path" 20921 fi 20922 fi 20923 20924 20925 if test "x$path" != "x$new_path"; then 20926 BOOT_JDK="$new_path" 20927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20928 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20929 fi 20930 20931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20932 20933 path="$BOOT_JDK" 20934 has_colon=`$ECHO $path | $GREP ^.:` 20935 new_path="$path" 20936 if test "x$has_colon" = x; then 20937 # Not in mixed or Windows style, start by that. 20938 new_path=`cmd //c echo $path` 20939 fi 20940 20941 20942 input_path="$new_path" 20943 # Check if we need to convert this using DOS-style short mode. If the path 20944 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20945 # take no chances and rewrite it. 20946 # Note: m4 eats our [], so we need to use [ and ] instead. 20947 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20948 if test "x$has_forbidden_chars" != x; then 20949 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20950 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20951 fi 20952 20953 20954 windows_path="$new_path" 20955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20956 unix_path=`$CYGPATH -u "$windows_path"` 20957 new_path="$unix_path" 20958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20959 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20960 new_path="$unix_path" 20961 fi 20962 20963 if test "x$path" != "x$new_path"; then 20964 BOOT_JDK="$new_path" 20965 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20966 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20967 fi 20968 20969 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20970 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20971 20972 else 20973 # We're on a posix platform. Hooray! :) 20974 path="$BOOT_JDK" 20975 has_space=`$ECHO "$path" | $GREP " "` 20976 if test "x$has_space" != x; then 20977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20978 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20979 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20980 fi 20981 20982 # Use eval to expand a potential ~ 20983 eval path="$path" 20984 if test ! -f "$path" && test ! -d "$path"; then 20985 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20986 fi 20987 20988 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20989 fi 20990 20991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20992 $as_echo_n "checking for Boot JDK... " >&6; } 20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20994 $as_echo "$BOOT_JDK" >&6; } 20995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20996 $as_echo_n "checking Boot JDK version... " >&6; } 20997 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20999 $as_echo "$BOOT_JDK_VERSION" >&6; } 21000 fi # end check jdk version 21001 fi # end check rt.jar 21002 fi # end check javac 21003 fi # end check java 21004 fi # end check boot jdk found 21005 fi 21006 21007 21008 # Test: Is there a JDK installed in default, well-known locations? 21009 21010 if test "x$BOOT_JDK_FOUND" = xno; then 21011 # Now execute the test 21012 21013 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21014 21015 if test "x$BOOT_JDK_FOUND" = xno; then 21016 # Now execute the test 21017 21018 if test "x$ProgramW6432" != x; then 21019 VIRTUAL_DIR="$ProgramW6432/Java" 21020 21021 windows_path="$VIRTUAL_DIR" 21022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21023 unix_path=`$CYGPATH -u "$windows_path"` 21024 VIRTUAL_DIR="$unix_path" 21025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21027 VIRTUAL_DIR="$unix_path" 21028 fi 21029 21030 21031 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21032 BOOT_JDK_SUFFIX="" 21033 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21034 if test "x$ALL_JDKS_FOUND" != x; then 21035 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21036 21037 if test "x$BOOT_JDK_FOUND" = xno; then 21038 # Now execute the test 21039 21040 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21041 if test -d "$BOOT_JDK"; then 21042 BOOT_JDK_FOUND=maybe 21043 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21044 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21045 fi 21046 21047 21048 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21049 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21050 # Do we have a bin/java? 21051 if test ! -x "$BOOT_JDK/bin/java"; then 21052 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21054 BOOT_JDK_FOUND=no 21055 else 21056 # Do we have a bin/javac? 21057 if test ! -x "$BOOT_JDK/bin/javac"; then 21058 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21060 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21061 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21062 BOOT_JDK_FOUND=no 21063 else 21064 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21065 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21066 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21067 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21068 BOOT_JDK_FOUND=no 21069 else 21070 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21071 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21072 21073 # Extra M4 quote needed to protect [] in grep expression. 21074 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21075 if test "x$FOUND_VERSION_78" = x; then 21076 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21077 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21079 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21080 BOOT_JDK_FOUND=no 21081 else 21082 # We're done! :-) 21083 BOOT_JDK_FOUND=yes 21084 21085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21086 21087 # Input might be given as Windows format, start by converting to 21088 # unix format. 21089 path="$BOOT_JDK" 21090 new_path=`$CYGPATH -u "$path"` 21091 21092 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21093 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21094 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21095 # "foo.exe" is OK but "foo" is an error. 21096 # 21097 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21098 # It is also a way to make sure we got the proper file name for the real test later on. 21099 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21100 if test "x$test_shortpath" = x; then 21101 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21102 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21103 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21104 fi 21105 21106 # Call helper function which possibly converts this using DOS-style short mode. 21107 # If so, the updated path is stored in $new_path. 21108 21109 input_path="$new_path" 21110 # Check if we need to convert this using DOS-style short mode. If the path 21111 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21112 # take no chances and rewrite it. 21113 # Note: m4 eats our [], so we need to use [ and ] instead. 21114 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21115 if test "x$has_forbidden_chars" != x; then 21116 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21117 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21118 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21119 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21120 # Going to short mode and back again did indeed matter. Since short mode is 21121 # case insensitive, let's make it lowercase to improve readability. 21122 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21123 # Now convert it back to Unix-stile (cygpath) 21124 input_path=`$CYGPATH -u "$shortmode_path"` 21125 new_path="$input_path" 21126 fi 21127 fi 21128 21129 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21130 if test "x$test_cygdrive_prefix" = x; then 21131 # As a simple fix, exclude /usr/bin since it's not a real path. 21132 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21133 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21134 # a path prefixed by /cygdrive for fixpath to work. 21135 new_path="$CYGWIN_ROOT_PATH$input_path" 21136 fi 21137 fi 21138 21139 21140 if test "x$path" != "x$new_path"; then 21141 BOOT_JDK="$new_path" 21142 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21143 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21144 fi 21145 21146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21147 21148 path="$BOOT_JDK" 21149 has_colon=`$ECHO $path | $GREP ^.:` 21150 new_path="$path" 21151 if test "x$has_colon" = x; then 21152 # Not in mixed or Windows style, start by that. 21153 new_path=`cmd //c echo $path` 21154 fi 21155 21156 21157 input_path="$new_path" 21158 # Check if we need to convert this using DOS-style short mode. If the path 21159 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21160 # take no chances and rewrite it. 21161 # Note: m4 eats our [], so we need to use [ and ] instead. 21162 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21163 if test "x$has_forbidden_chars" != x; then 21164 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21165 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21166 fi 21167 21168 21169 windows_path="$new_path" 21170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21171 unix_path=`$CYGPATH -u "$windows_path"` 21172 new_path="$unix_path" 21173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21175 new_path="$unix_path" 21176 fi 21177 21178 if test "x$path" != "x$new_path"; then 21179 BOOT_JDK="$new_path" 21180 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21181 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21182 fi 21183 21184 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21185 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21186 21187 else 21188 # We're on a posix platform. Hooray! :) 21189 path="$BOOT_JDK" 21190 has_space=`$ECHO "$path" | $GREP " "` 21191 if test "x$has_space" != x; then 21192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21193 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21194 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21195 fi 21196 21197 # Use eval to expand a potential ~ 21198 eval path="$path" 21199 if test ! -f "$path" && test ! -d "$path"; then 21200 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21201 fi 21202 21203 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21204 fi 21205 21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21207 $as_echo_n "checking for Boot JDK... " >&6; } 21208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21209 $as_echo "$BOOT_JDK" >&6; } 21210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21211 $as_echo_n "checking Boot JDK version... " >&6; } 21212 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21214 $as_echo "$BOOT_JDK_VERSION" >&6; } 21215 fi # end check jdk version 21216 fi # end check rt.jar 21217 fi # end check javac 21218 fi # end check java 21219 fi # end check boot jdk found 21220 fi 21221 21222 done 21223 fi 21224 21225 fi 21226 21227 21228 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21229 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21230 # Do we have a bin/java? 21231 if test ! -x "$BOOT_JDK/bin/java"; then 21232 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21233 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21234 BOOT_JDK_FOUND=no 21235 else 21236 # Do we have a bin/javac? 21237 if test ! -x "$BOOT_JDK/bin/javac"; then 21238 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21239 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21240 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21241 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21242 BOOT_JDK_FOUND=no 21243 else 21244 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21245 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21246 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21248 BOOT_JDK_FOUND=no 21249 else 21250 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21251 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21252 21253 # Extra M4 quote needed to protect [] in grep expression. 21254 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21255 if test "x$FOUND_VERSION_78" = x; then 21256 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21257 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21258 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21259 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21260 BOOT_JDK_FOUND=no 21261 else 21262 # We're done! :-) 21263 BOOT_JDK_FOUND=yes 21264 21265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21266 21267 # Input might be given as Windows format, start by converting to 21268 # unix format. 21269 path="$BOOT_JDK" 21270 new_path=`$CYGPATH -u "$path"` 21271 21272 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21273 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21274 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21275 # "foo.exe" is OK but "foo" is an error. 21276 # 21277 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21278 # It is also a way to make sure we got the proper file name for the real test later on. 21279 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21280 if test "x$test_shortpath" = x; then 21281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21282 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21283 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21284 fi 21285 21286 # Call helper function which possibly converts this using DOS-style short mode. 21287 # If so, the updated path is stored in $new_path. 21288 21289 input_path="$new_path" 21290 # Check if we need to convert this using DOS-style short mode. If the path 21291 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21292 # take no chances and rewrite it. 21293 # Note: m4 eats our [], so we need to use [ and ] instead. 21294 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21295 if test "x$has_forbidden_chars" != x; then 21296 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21297 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21298 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21299 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21300 # Going to short mode and back again did indeed matter. Since short mode is 21301 # case insensitive, let's make it lowercase to improve readability. 21302 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21303 # Now convert it back to Unix-stile (cygpath) 21304 input_path=`$CYGPATH -u "$shortmode_path"` 21305 new_path="$input_path" 21306 fi 21307 fi 21308 21309 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21310 if test "x$test_cygdrive_prefix" = x; then 21311 # As a simple fix, exclude /usr/bin since it's not a real path. 21312 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21313 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21314 # a path prefixed by /cygdrive for fixpath to work. 21315 new_path="$CYGWIN_ROOT_PATH$input_path" 21316 fi 21317 fi 21318 21319 21320 if test "x$path" != "x$new_path"; then 21321 BOOT_JDK="$new_path" 21322 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21323 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21324 fi 21325 21326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21327 21328 path="$BOOT_JDK" 21329 has_colon=`$ECHO $path | $GREP ^.:` 21330 new_path="$path" 21331 if test "x$has_colon" = x; then 21332 # Not in mixed or Windows style, start by that. 21333 new_path=`cmd //c echo $path` 21334 fi 21335 21336 21337 input_path="$new_path" 21338 # Check if we need to convert this using DOS-style short mode. If the path 21339 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21340 # take no chances and rewrite it. 21341 # Note: m4 eats our [], so we need to use [ and ] instead. 21342 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21343 if test "x$has_forbidden_chars" != x; then 21344 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21345 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21346 fi 21347 21348 21349 windows_path="$new_path" 21350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21351 unix_path=`$CYGPATH -u "$windows_path"` 21352 new_path="$unix_path" 21353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21354 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21355 new_path="$unix_path" 21356 fi 21357 21358 if test "x$path" != "x$new_path"; then 21359 BOOT_JDK="$new_path" 21360 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21361 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21362 fi 21363 21364 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21365 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21366 21367 else 21368 # We're on a posix platform. Hooray! :) 21369 path="$BOOT_JDK" 21370 has_space=`$ECHO "$path" | $GREP " "` 21371 if test "x$has_space" != x; then 21372 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21373 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21374 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21375 fi 21376 21377 # Use eval to expand a potential ~ 21378 eval path="$path" 21379 if test ! -f "$path" && test ! -d "$path"; then 21380 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21381 fi 21382 21383 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21384 fi 21385 21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21387 $as_echo_n "checking for Boot JDK... " >&6; } 21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21389 $as_echo "$BOOT_JDK" >&6; } 21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21391 $as_echo_n "checking Boot JDK version... " >&6; } 21392 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21394 $as_echo "$BOOT_JDK_VERSION" >&6; } 21395 fi # end check jdk version 21396 fi # end check rt.jar 21397 fi # end check javac 21398 fi # end check java 21399 fi # end check boot jdk found 21400 fi 21401 21402 21403 if test "x$BOOT_JDK_FOUND" = xno; then 21404 # Now execute the test 21405 21406 if test "x$PROGRAMW6432" != x; then 21407 VIRTUAL_DIR="$PROGRAMW6432/Java" 21408 21409 windows_path="$VIRTUAL_DIR" 21410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21411 unix_path=`$CYGPATH -u "$windows_path"` 21412 VIRTUAL_DIR="$unix_path" 21413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21415 VIRTUAL_DIR="$unix_path" 21416 fi 21417 21418 21419 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21420 BOOT_JDK_SUFFIX="" 21421 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21422 if test "x$ALL_JDKS_FOUND" != x; then 21423 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21424 21425 if test "x$BOOT_JDK_FOUND" = xno; then 21426 # Now execute the test 21427 21428 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21429 if test -d "$BOOT_JDK"; then 21430 BOOT_JDK_FOUND=maybe 21431 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21432 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21433 fi 21434 21435 21436 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21437 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21438 # Do we have a bin/java? 21439 if test ! -x "$BOOT_JDK/bin/java"; then 21440 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21441 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21442 BOOT_JDK_FOUND=no 21443 else 21444 # Do we have a bin/javac? 21445 if test ! -x "$BOOT_JDK/bin/javac"; then 21446 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21448 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21449 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21450 BOOT_JDK_FOUND=no 21451 else 21452 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21453 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21454 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21455 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21456 BOOT_JDK_FOUND=no 21457 else 21458 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21459 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21460 21461 # Extra M4 quote needed to protect [] in grep expression. 21462 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21463 if test "x$FOUND_VERSION_78" = x; then 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21465 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21466 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21467 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21468 BOOT_JDK_FOUND=no 21469 else 21470 # We're done! :-) 21471 BOOT_JDK_FOUND=yes 21472 21473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21474 21475 # Input might be given as Windows format, start by converting to 21476 # unix format. 21477 path="$BOOT_JDK" 21478 new_path=`$CYGPATH -u "$path"` 21479 21480 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21481 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21482 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21483 # "foo.exe" is OK but "foo" is an error. 21484 # 21485 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21486 # It is also a way to make sure we got the proper file name for the real test later on. 21487 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21488 if test "x$test_shortpath" = x; then 21489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21490 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21491 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21492 fi 21493 21494 # Call helper function which possibly converts this using DOS-style short mode. 21495 # If so, the updated path is stored in $new_path. 21496 21497 input_path="$new_path" 21498 # Check if we need to convert this using DOS-style short mode. If the path 21499 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21500 # take no chances and rewrite it. 21501 # Note: m4 eats our [], so we need to use [ and ] instead. 21502 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21503 if test "x$has_forbidden_chars" != x; then 21504 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21505 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21506 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21507 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21508 # Going to short mode and back again did indeed matter. Since short mode is 21509 # case insensitive, let's make it lowercase to improve readability. 21510 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21511 # Now convert it back to Unix-stile (cygpath) 21512 input_path=`$CYGPATH -u "$shortmode_path"` 21513 new_path="$input_path" 21514 fi 21515 fi 21516 21517 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21518 if test "x$test_cygdrive_prefix" = x; then 21519 # As a simple fix, exclude /usr/bin since it's not a real path. 21520 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21521 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21522 # a path prefixed by /cygdrive for fixpath to work. 21523 new_path="$CYGWIN_ROOT_PATH$input_path" 21524 fi 21525 fi 21526 21527 21528 if test "x$path" != "x$new_path"; then 21529 BOOT_JDK="$new_path" 21530 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21531 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21532 fi 21533 21534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21535 21536 path="$BOOT_JDK" 21537 has_colon=`$ECHO $path | $GREP ^.:` 21538 new_path="$path" 21539 if test "x$has_colon" = x; then 21540 # Not in mixed or Windows style, start by that. 21541 new_path=`cmd //c echo $path` 21542 fi 21543 21544 21545 input_path="$new_path" 21546 # Check if we need to convert this using DOS-style short mode. If the path 21547 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21548 # take no chances and rewrite it. 21549 # Note: m4 eats our [], so we need to use [ and ] instead. 21550 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21551 if test "x$has_forbidden_chars" != x; then 21552 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21553 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21554 fi 21555 21556 21557 windows_path="$new_path" 21558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21559 unix_path=`$CYGPATH -u "$windows_path"` 21560 new_path="$unix_path" 21561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21563 new_path="$unix_path" 21564 fi 21565 21566 if test "x$path" != "x$new_path"; then 21567 BOOT_JDK="$new_path" 21568 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21569 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21570 fi 21571 21572 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21573 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21574 21575 else 21576 # We're on a posix platform. Hooray! :) 21577 path="$BOOT_JDK" 21578 has_space=`$ECHO "$path" | $GREP " "` 21579 if test "x$has_space" != x; then 21580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21581 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21582 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21583 fi 21584 21585 # Use eval to expand a potential ~ 21586 eval path="$path" 21587 if test ! -f "$path" && test ! -d "$path"; then 21588 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21589 fi 21590 21591 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21592 fi 21593 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21595 $as_echo_n "checking for Boot JDK... " >&6; } 21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21597 $as_echo "$BOOT_JDK" >&6; } 21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21599 $as_echo_n "checking Boot JDK version... " >&6; } 21600 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21602 $as_echo "$BOOT_JDK_VERSION" >&6; } 21603 fi # end check jdk version 21604 fi # end check rt.jar 21605 fi # end check javac 21606 fi # end check java 21607 fi # end check boot jdk found 21608 fi 21609 21610 done 21611 fi 21612 21613 fi 21614 21615 21616 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21617 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21618 # Do we have a bin/java? 21619 if test ! -x "$BOOT_JDK/bin/java"; then 21620 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21621 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21622 BOOT_JDK_FOUND=no 21623 else 21624 # Do we have a bin/javac? 21625 if test ! -x "$BOOT_JDK/bin/javac"; then 21626 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21627 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21628 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21629 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21630 BOOT_JDK_FOUND=no 21631 else 21632 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21633 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21634 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21635 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21636 BOOT_JDK_FOUND=no 21637 else 21638 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21639 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21640 21641 # Extra M4 quote needed to protect [] in grep expression. 21642 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21643 if test "x$FOUND_VERSION_78" = x; then 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21645 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21646 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21647 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21648 BOOT_JDK_FOUND=no 21649 else 21650 # We're done! :-) 21651 BOOT_JDK_FOUND=yes 21652 21653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21654 21655 # Input might be given as Windows format, start by converting to 21656 # unix format. 21657 path="$BOOT_JDK" 21658 new_path=`$CYGPATH -u "$path"` 21659 21660 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21661 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21662 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21663 # "foo.exe" is OK but "foo" is an error. 21664 # 21665 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21666 # It is also a way to make sure we got the proper file name for the real test later on. 21667 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21668 if test "x$test_shortpath" = x; then 21669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21670 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21671 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21672 fi 21673 21674 # Call helper function which possibly converts this using DOS-style short mode. 21675 # If so, the updated path is stored in $new_path. 21676 21677 input_path="$new_path" 21678 # Check if we need to convert this using DOS-style short mode. If the path 21679 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21680 # take no chances and rewrite it. 21681 # Note: m4 eats our [], so we need to use [ and ] instead. 21682 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21683 if test "x$has_forbidden_chars" != x; then 21684 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21685 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21686 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21687 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21688 # Going to short mode and back again did indeed matter. Since short mode is 21689 # case insensitive, let's make it lowercase to improve readability. 21690 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21691 # Now convert it back to Unix-stile (cygpath) 21692 input_path=`$CYGPATH -u "$shortmode_path"` 21693 new_path="$input_path" 21694 fi 21695 fi 21696 21697 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21698 if test "x$test_cygdrive_prefix" = x; then 21699 # As a simple fix, exclude /usr/bin since it's not a real path. 21700 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21701 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21702 # a path prefixed by /cygdrive for fixpath to work. 21703 new_path="$CYGWIN_ROOT_PATH$input_path" 21704 fi 21705 fi 21706 21707 21708 if test "x$path" != "x$new_path"; then 21709 BOOT_JDK="$new_path" 21710 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21711 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21712 fi 21713 21714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21715 21716 path="$BOOT_JDK" 21717 has_colon=`$ECHO $path | $GREP ^.:` 21718 new_path="$path" 21719 if test "x$has_colon" = x; then 21720 # Not in mixed or Windows style, start by that. 21721 new_path=`cmd //c echo $path` 21722 fi 21723 21724 21725 input_path="$new_path" 21726 # Check if we need to convert this using DOS-style short mode. If the path 21727 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21728 # take no chances and rewrite it. 21729 # Note: m4 eats our [], so we need to use [ and ] instead. 21730 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21731 if test "x$has_forbidden_chars" != x; then 21732 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21733 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21734 fi 21735 21736 21737 windows_path="$new_path" 21738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21739 unix_path=`$CYGPATH -u "$windows_path"` 21740 new_path="$unix_path" 21741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21743 new_path="$unix_path" 21744 fi 21745 21746 if test "x$path" != "x$new_path"; then 21747 BOOT_JDK="$new_path" 21748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21749 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21750 fi 21751 21752 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21753 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21754 21755 else 21756 # We're on a posix platform. Hooray! :) 21757 path="$BOOT_JDK" 21758 has_space=`$ECHO "$path" | $GREP " "` 21759 if test "x$has_space" != x; then 21760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21761 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21762 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21763 fi 21764 21765 # Use eval to expand a potential ~ 21766 eval path="$path" 21767 if test ! -f "$path" && test ! -d "$path"; then 21768 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21769 fi 21770 21771 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21772 fi 21773 21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21775 $as_echo_n "checking for Boot JDK... " >&6; } 21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21777 $as_echo "$BOOT_JDK" >&6; } 21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21779 $as_echo_n "checking Boot JDK version... " >&6; } 21780 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21782 $as_echo "$BOOT_JDK_VERSION" >&6; } 21783 fi # end check jdk version 21784 fi # end check rt.jar 21785 fi # end check javac 21786 fi # end check java 21787 fi # end check boot jdk found 21788 fi 21789 21790 21791 if test "x$BOOT_JDK_FOUND" = xno; then 21792 # Now execute the test 21793 21794 if test "x$PROGRAMFILES" != x; then 21795 VIRTUAL_DIR="$PROGRAMFILES/Java" 21796 21797 windows_path="$VIRTUAL_DIR" 21798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21799 unix_path=`$CYGPATH -u "$windows_path"` 21800 VIRTUAL_DIR="$unix_path" 21801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21803 VIRTUAL_DIR="$unix_path" 21804 fi 21805 21806 21807 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21808 BOOT_JDK_SUFFIX="" 21809 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21810 if test "x$ALL_JDKS_FOUND" != x; then 21811 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21812 21813 if test "x$BOOT_JDK_FOUND" = xno; then 21814 # Now execute the test 21815 21816 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21817 if test -d "$BOOT_JDK"; then 21818 BOOT_JDK_FOUND=maybe 21819 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21820 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21821 fi 21822 21823 21824 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21825 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21826 # Do we have a bin/java? 21827 if test ! -x "$BOOT_JDK/bin/java"; then 21828 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21829 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21830 BOOT_JDK_FOUND=no 21831 else 21832 # Do we have a bin/javac? 21833 if test ! -x "$BOOT_JDK/bin/javac"; then 21834 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21835 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21836 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21837 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21838 BOOT_JDK_FOUND=no 21839 else 21840 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21841 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21842 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21843 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21844 BOOT_JDK_FOUND=no 21845 else 21846 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21847 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21848 21849 # Extra M4 quote needed to protect [] in grep expression. 21850 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21851 if test "x$FOUND_VERSION_78" = x; then 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21853 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21854 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21855 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21856 BOOT_JDK_FOUND=no 21857 else 21858 # We're done! :-) 21859 BOOT_JDK_FOUND=yes 21860 21861 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21862 21863 # Input might be given as Windows format, start by converting to 21864 # unix format. 21865 path="$BOOT_JDK" 21866 new_path=`$CYGPATH -u "$path"` 21867 21868 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21869 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21870 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21871 # "foo.exe" is OK but "foo" is an error. 21872 # 21873 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21874 # It is also a way to make sure we got the proper file name for the real test later on. 21875 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21876 if test "x$test_shortpath" = x; then 21877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21878 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21879 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21880 fi 21881 21882 # Call helper function which possibly converts this using DOS-style short mode. 21883 # If so, the updated path is stored in $new_path. 21884 21885 input_path="$new_path" 21886 # Check if we need to convert this using DOS-style short mode. If the path 21887 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21888 # take no chances and rewrite it. 21889 # Note: m4 eats our [], so we need to use [ and ] instead. 21890 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21891 if test "x$has_forbidden_chars" != x; then 21892 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21893 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21894 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21895 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21896 # Going to short mode and back again did indeed matter. Since short mode is 21897 # case insensitive, let's make it lowercase to improve readability. 21898 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21899 # Now convert it back to Unix-stile (cygpath) 21900 input_path=`$CYGPATH -u "$shortmode_path"` 21901 new_path="$input_path" 21902 fi 21903 fi 21904 21905 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21906 if test "x$test_cygdrive_prefix" = x; then 21907 # As a simple fix, exclude /usr/bin since it's not a real path. 21908 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21909 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21910 # a path prefixed by /cygdrive for fixpath to work. 21911 new_path="$CYGWIN_ROOT_PATH$input_path" 21912 fi 21913 fi 21914 21915 21916 if test "x$path" != "x$new_path"; then 21917 BOOT_JDK="$new_path" 21918 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21919 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21920 fi 21921 21922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21923 21924 path="$BOOT_JDK" 21925 has_colon=`$ECHO $path | $GREP ^.:` 21926 new_path="$path" 21927 if test "x$has_colon" = x; then 21928 # Not in mixed or Windows style, start by that. 21929 new_path=`cmd //c echo $path` 21930 fi 21931 21932 21933 input_path="$new_path" 21934 # Check if we need to convert this using DOS-style short mode. If the path 21935 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21936 # take no chances and rewrite it. 21937 # Note: m4 eats our [], so we need to use [ and ] instead. 21938 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21939 if test "x$has_forbidden_chars" != x; then 21940 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21941 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21942 fi 21943 21944 21945 windows_path="$new_path" 21946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21947 unix_path=`$CYGPATH -u "$windows_path"` 21948 new_path="$unix_path" 21949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21950 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21951 new_path="$unix_path" 21952 fi 21953 21954 if test "x$path" != "x$new_path"; then 21955 BOOT_JDK="$new_path" 21956 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21957 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21958 fi 21959 21960 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21961 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21962 21963 else 21964 # We're on a posix platform. Hooray! :) 21965 path="$BOOT_JDK" 21966 has_space=`$ECHO "$path" | $GREP " "` 21967 if test "x$has_space" != x; then 21968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21969 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21970 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21971 fi 21972 21973 # Use eval to expand a potential ~ 21974 eval path="$path" 21975 if test ! -f "$path" && test ! -d "$path"; then 21976 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21977 fi 21978 21979 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21980 fi 21981 21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21983 $as_echo_n "checking for Boot JDK... " >&6; } 21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21985 $as_echo "$BOOT_JDK" >&6; } 21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21987 $as_echo_n "checking Boot JDK version... " >&6; } 21988 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21990 $as_echo "$BOOT_JDK_VERSION" >&6; } 21991 fi # end check jdk version 21992 fi # end check rt.jar 21993 fi # end check javac 21994 fi # end check java 21995 fi # end check boot jdk found 21996 fi 21997 21998 done 21999 fi 22000 22001 fi 22002 22003 22004 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22005 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22006 # Do we have a bin/java? 22007 if test ! -x "$BOOT_JDK/bin/java"; then 22008 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22009 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22010 BOOT_JDK_FOUND=no 22011 else 22012 # Do we have a bin/javac? 22013 if test ! -x "$BOOT_JDK/bin/javac"; then 22014 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22015 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22016 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22017 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22018 BOOT_JDK_FOUND=no 22019 else 22020 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22021 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22022 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22023 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22024 BOOT_JDK_FOUND=no 22025 else 22026 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22027 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22028 22029 # Extra M4 quote needed to protect [] in grep expression. 22030 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22031 if test "x$FOUND_VERSION_78" = x; then 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22033 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22034 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22035 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22036 BOOT_JDK_FOUND=no 22037 else 22038 # We're done! :-) 22039 BOOT_JDK_FOUND=yes 22040 22041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22042 22043 # Input might be given as Windows format, start by converting to 22044 # unix format. 22045 path="$BOOT_JDK" 22046 new_path=`$CYGPATH -u "$path"` 22047 22048 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22049 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22050 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22051 # "foo.exe" is OK but "foo" is an error. 22052 # 22053 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22054 # It is also a way to make sure we got the proper file name for the real test later on. 22055 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22056 if test "x$test_shortpath" = x; then 22057 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22058 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22059 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22060 fi 22061 22062 # Call helper function which possibly converts this using DOS-style short mode. 22063 # If so, the updated path is stored in $new_path. 22064 22065 input_path="$new_path" 22066 # Check if we need to convert this using DOS-style short mode. If the path 22067 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22068 # take no chances and rewrite it. 22069 # Note: m4 eats our [], so we need to use [ and ] instead. 22070 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22071 if test "x$has_forbidden_chars" != x; then 22072 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22073 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22074 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22075 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22076 # Going to short mode and back again did indeed matter. Since short mode is 22077 # case insensitive, let's make it lowercase to improve readability. 22078 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22079 # Now convert it back to Unix-stile (cygpath) 22080 input_path=`$CYGPATH -u "$shortmode_path"` 22081 new_path="$input_path" 22082 fi 22083 fi 22084 22085 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22086 if test "x$test_cygdrive_prefix" = x; then 22087 # As a simple fix, exclude /usr/bin since it's not a real path. 22088 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22089 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22090 # a path prefixed by /cygdrive for fixpath to work. 22091 new_path="$CYGWIN_ROOT_PATH$input_path" 22092 fi 22093 fi 22094 22095 22096 if test "x$path" != "x$new_path"; then 22097 BOOT_JDK="$new_path" 22098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22099 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22100 fi 22101 22102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22103 22104 path="$BOOT_JDK" 22105 has_colon=`$ECHO $path | $GREP ^.:` 22106 new_path="$path" 22107 if test "x$has_colon" = x; then 22108 # Not in mixed or Windows style, start by that. 22109 new_path=`cmd //c echo $path` 22110 fi 22111 22112 22113 input_path="$new_path" 22114 # Check if we need to convert this using DOS-style short mode. If the path 22115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22116 # take no chances and rewrite it. 22117 # Note: m4 eats our [], so we need to use [ and ] instead. 22118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22119 if test "x$has_forbidden_chars" != x; then 22120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22121 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22122 fi 22123 22124 22125 windows_path="$new_path" 22126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22127 unix_path=`$CYGPATH -u "$windows_path"` 22128 new_path="$unix_path" 22129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22130 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22131 new_path="$unix_path" 22132 fi 22133 22134 if test "x$path" != "x$new_path"; then 22135 BOOT_JDK="$new_path" 22136 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22137 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22138 fi 22139 22140 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22141 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22142 22143 else 22144 # We're on a posix platform. Hooray! :) 22145 path="$BOOT_JDK" 22146 has_space=`$ECHO "$path" | $GREP " "` 22147 if test "x$has_space" != x; then 22148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22149 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22150 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22151 fi 22152 22153 # Use eval to expand a potential ~ 22154 eval path="$path" 22155 if test ! -f "$path" && test ! -d "$path"; then 22156 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22157 fi 22158 22159 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22160 fi 22161 22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22163 $as_echo_n "checking for Boot JDK... " >&6; } 22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22165 $as_echo "$BOOT_JDK" >&6; } 22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22167 $as_echo_n "checking Boot JDK version... " >&6; } 22168 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22170 $as_echo "$BOOT_JDK_VERSION" >&6; } 22171 fi # end check jdk version 22172 fi # end check rt.jar 22173 fi # end check javac 22174 fi # end check java 22175 fi # end check boot jdk found 22176 fi 22177 22178 22179 if test "x$BOOT_JDK_FOUND" = xno; then 22180 # Now execute the test 22181 22182 if test "x$ProgramFiles" != x; then 22183 VIRTUAL_DIR="$ProgramFiles/Java" 22184 22185 windows_path="$VIRTUAL_DIR" 22186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22187 unix_path=`$CYGPATH -u "$windows_path"` 22188 VIRTUAL_DIR="$unix_path" 22189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22191 VIRTUAL_DIR="$unix_path" 22192 fi 22193 22194 22195 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22196 BOOT_JDK_SUFFIX="" 22197 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22198 if test "x$ALL_JDKS_FOUND" != x; then 22199 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22200 22201 if test "x$BOOT_JDK_FOUND" = xno; then 22202 # Now execute the test 22203 22204 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22205 if test -d "$BOOT_JDK"; then 22206 BOOT_JDK_FOUND=maybe 22207 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22208 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22209 fi 22210 22211 22212 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22213 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22214 # Do we have a bin/java? 22215 if test ! -x "$BOOT_JDK/bin/java"; then 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22217 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22218 BOOT_JDK_FOUND=no 22219 else 22220 # Do we have a bin/javac? 22221 if test ! -x "$BOOT_JDK/bin/javac"; then 22222 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22223 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22224 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22225 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22226 BOOT_JDK_FOUND=no 22227 else 22228 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22229 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22230 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22232 BOOT_JDK_FOUND=no 22233 else 22234 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22235 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22236 22237 # Extra M4 quote needed to protect [] in grep expression. 22238 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22239 if test "x$FOUND_VERSION_78" = x; then 22240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22242 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22243 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22244 BOOT_JDK_FOUND=no 22245 else 22246 # We're done! :-) 22247 BOOT_JDK_FOUND=yes 22248 22249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22250 22251 # Input might be given as Windows format, start by converting to 22252 # unix format. 22253 path="$BOOT_JDK" 22254 new_path=`$CYGPATH -u "$path"` 22255 22256 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22257 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22258 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22259 # "foo.exe" is OK but "foo" is an error. 22260 # 22261 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22262 # It is also a way to make sure we got the proper file name for the real test later on. 22263 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22264 if test "x$test_shortpath" = x; then 22265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22266 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22267 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22268 fi 22269 22270 # Call helper function which possibly converts this using DOS-style short mode. 22271 # If so, the updated path is stored in $new_path. 22272 22273 input_path="$new_path" 22274 # Check if we need to convert this using DOS-style short mode. If the path 22275 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22276 # take no chances and rewrite it. 22277 # Note: m4 eats our [], so we need to use [ and ] instead. 22278 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22279 if test "x$has_forbidden_chars" != x; then 22280 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22281 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22282 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22283 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22284 # Going to short mode and back again did indeed matter. Since short mode is 22285 # case insensitive, let's make it lowercase to improve readability. 22286 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22287 # Now convert it back to Unix-stile (cygpath) 22288 input_path=`$CYGPATH -u "$shortmode_path"` 22289 new_path="$input_path" 22290 fi 22291 fi 22292 22293 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22294 if test "x$test_cygdrive_prefix" = x; then 22295 # As a simple fix, exclude /usr/bin since it's not a real path. 22296 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22297 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22298 # a path prefixed by /cygdrive for fixpath to work. 22299 new_path="$CYGWIN_ROOT_PATH$input_path" 22300 fi 22301 fi 22302 22303 22304 if test "x$path" != "x$new_path"; then 22305 BOOT_JDK="$new_path" 22306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22307 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22308 fi 22309 22310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22311 22312 path="$BOOT_JDK" 22313 has_colon=`$ECHO $path | $GREP ^.:` 22314 new_path="$path" 22315 if test "x$has_colon" = x; then 22316 # Not in mixed or Windows style, start by that. 22317 new_path=`cmd //c echo $path` 22318 fi 22319 22320 22321 input_path="$new_path" 22322 # Check if we need to convert this using DOS-style short mode. If the path 22323 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22324 # take no chances and rewrite it. 22325 # Note: m4 eats our [], so we need to use [ and ] instead. 22326 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22327 if test "x$has_forbidden_chars" != x; then 22328 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22329 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22330 fi 22331 22332 22333 windows_path="$new_path" 22334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22335 unix_path=`$CYGPATH -u "$windows_path"` 22336 new_path="$unix_path" 22337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22338 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22339 new_path="$unix_path" 22340 fi 22341 22342 if test "x$path" != "x$new_path"; then 22343 BOOT_JDK="$new_path" 22344 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22345 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22346 fi 22347 22348 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22349 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22350 22351 else 22352 # We're on a posix platform. Hooray! :) 22353 path="$BOOT_JDK" 22354 has_space=`$ECHO "$path" | $GREP " "` 22355 if test "x$has_space" != x; then 22356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22357 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22358 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22359 fi 22360 22361 # Use eval to expand a potential ~ 22362 eval path="$path" 22363 if test ! -f "$path" && test ! -d "$path"; then 22364 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22365 fi 22366 22367 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22368 fi 22369 22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22371 $as_echo_n "checking for Boot JDK... " >&6; } 22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22373 $as_echo "$BOOT_JDK" >&6; } 22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22375 $as_echo_n "checking Boot JDK version... " >&6; } 22376 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22378 $as_echo "$BOOT_JDK_VERSION" >&6; } 22379 fi # end check jdk version 22380 fi # end check rt.jar 22381 fi # end check javac 22382 fi # end check java 22383 fi # end check boot jdk found 22384 fi 22385 22386 done 22387 fi 22388 22389 fi 22390 22391 22392 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22393 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22394 # Do we have a bin/java? 22395 if test ! -x "$BOOT_JDK/bin/java"; then 22396 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22397 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22398 BOOT_JDK_FOUND=no 22399 else 22400 # Do we have a bin/javac? 22401 if test ! -x "$BOOT_JDK/bin/javac"; then 22402 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22403 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22404 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22405 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22406 BOOT_JDK_FOUND=no 22407 else 22408 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22409 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22410 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22411 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22412 BOOT_JDK_FOUND=no 22413 else 22414 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22415 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22416 22417 # Extra M4 quote needed to protect [] in grep expression. 22418 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22419 if test "x$FOUND_VERSION_78" = x; then 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22421 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22422 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22423 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22424 BOOT_JDK_FOUND=no 22425 else 22426 # We're done! :-) 22427 BOOT_JDK_FOUND=yes 22428 22429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22430 22431 # Input might be given as Windows format, start by converting to 22432 # unix format. 22433 path="$BOOT_JDK" 22434 new_path=`$CYGPATH -u "$path"` 22435 22436 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22437 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22438 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22439 # "foo.exe" is OK but "foo" is an error. 22440 # 22441 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22442 # It is also a way to make sure we got the proper file name for the real test later on. 22443 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22444 if test "x$test_shortpath" = x; then 22445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22446 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22447 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22448 fi 22449 22450 # Call helper function which possibly converts this using DOS-style short mode. 22451 # If so, the updated path is stored in $new_path. 22452 22453 input_path="$new_path" 22454 # Check if we need to convert this using DOS-style short mode. If the path 22455 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22456 # take no chances and rewrite it. 22457 # Note: m4 eats our [], so we need to use [ and ] instead. 22458 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22459 if test "x$has_forbidden_chars" != x; then 22460 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22461 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22462 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22463 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22464 # Going to short mode and back again did indeed matter. Since short mode is 22465 # case insensitive, let's make it lowercase to improve readability. 22466 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22467 # Now convert it back to Unix-stile (cygpath) 22468 input_path=`$CYGPATH -u "$shortmode_path"` 22469 new_path="$input_path" 22470 fi 22471 fi 22472 22473 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22474 if test "x$test_cygdrive_prefix" = x; then 22475 # As a simple fix, exclude /usr/bin since it's not a real path. 22476 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22477 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22478 # a path prefixed by /cygdrive for fixpath to work. 22479 new_path="$CYGWIN_ROOT_PATH$input_path" 22480 fi 22481 fi 22482 22483 22484 if test "x$path" != "x$new_path"; then 22485 BOOT_JDK="$new_path" 22486 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22487 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22488 fi 22489 22490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22491 22492 path="$BOOT_JDK" 22493 has_colon=`$ECHO $path | $GREP ^.:` 22494 new_path="$path" 22495 if test "x$has_colon" = x; then 22496 # Not in mixed or Windows style, start by that. 22497 new_path=`cmd //c echo $path` 22498 fi 22499 22500 22501 input_path="$new_path" 22502 # Check if we need to convert this using DOS-style short mode. If the path 22503 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22504 # take no chances and rewrite it. 22505 # Note: m4 eats our [], so we need to use [ and ] instead. 22506 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22507 if test "x$has_forbidden_chars" != x; then 22508 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22509 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22510 fi 22511 22512 22513 windows_path="$new_path" 22514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22515 unix_path=`$CYGPATH -u "$windows_path"` 22516 new_path="$unix_path" 22517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22518 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22519 new_path="$unix_path" 22520 fi 22521 22522 if test "x$path" != "x$new_path"; then 22523 BOOT_JDK="$new_path" 22524 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22525 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22526 fi 22527 22528 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22529 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22530 22531 else 22532 # We're on a posix platform. Hooray! :) 22533 path="$BOOT_JDK" 22534 has_space=`$ECHO "$path" | $GREP " "` 22535 if test "x$has_space" != x; then 22536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22537 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22538 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22539 fi 22540 22541 # Use eval to expand a potential ~ 22542 eval path="$path" 22543 if test ! -f "$path" && test ! -d "$path"; then 22544 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22545 fi 22546 22547 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22548 fi 22549 22550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22551 $as_echo_n "checking for Boot JDK... " >&6; } 22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22553 $as_echo "$BOOT_JDK" >&6; } 22554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22555 $as_echo_n "checking Boot JDK version... " >&6; } 22556 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22558 $as_echo "$BOOT_JDK_VERSION" >&6; } 22559 fi # end check jdk version 22560 fi # end check rt.jar 22561 fi # end check javac 22562 fi # end check java 22563 fi # end check boot jdk found 22564 fi 22565 22566 22567 if test "x$BOOT_JDK_FOUND" = xno; then 22568 # Now execute the test 22569 22570 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 22571 BOOT_JDK_SUFFIX="" 22572 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22573 if test "x$ALL_JDKS_FOUND" != x; then 22574 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22575 22576 if test "x$BOOT_JDK_FOUND" = xno; then 22577 # Now execute the test 22578 22579 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22580 if test -d "$BOOT_JDK"; then 22581 BOOT_JDK_FOUND=maybe 22582 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22583 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22584 fi 22585 22586 22587 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22588 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22589 # Do we have a bin/java? 22590 if test ! -x "$BOOT_JDK/bin/java"; then 22591 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22592 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22593 BOOT_JDK_FOUND=no 22594 else 22595 # Do we have a bin/javac? 22596 if test ! -x "$BOOT_JDK/bin/javac"; then 22597 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22598 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22599 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22600 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22601 BOOT_JDK_FOUND=no 22602 else 22603 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22604 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22605 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22606 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22607 BOOT_JDK_FOUND=no 22608 else 22609 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22610 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22611 22612 # Extra M4 quote needed to protect [] in grep expression. 22613 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22614 if test "x$FOUND_VERSION_78" = x; then 22615 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22616 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22617 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22618 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22619 BOOT_JDK_FOUND=no 22620 else 22621 # We're done! :-) 22622 BOOT_JDK_FOUND=yes 22623 22624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22625 22626 # Input might be given as Windows format, start by converting to 22627 # unix format. 22628 path="$BOOT_JDK" 22629 new_path=`$CYGPATH -u "$path"` 22630 22631 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22632 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22633 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22634 # "foo.exe" is OK but "foo" is an error. 22635 # 22636 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22637 # It is also a way to make sure we got the proper file name for the real test later on. 22638 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22639 if test "x$test_shortpath" = x; then 22640 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22641 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22642 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22643 fi 22644 22645 # Call helper function which possibly converts this using DOS-style short mode. 22646 # If so, the updated path is stored in $new_path. 22647 22648 input_path="$new_path" 22649 # Check if we need to convert this using DOS-style short mode. If the path 22650 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22651 # take no chances and rewrite it. 22652 # Note: m4 eats our [], so we need to use [ and ] instead. 22653 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22654 if test "x$has_forbidden_chars" != x; then 22655 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22656 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22657 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22658 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22659 # Going to short mode and back again did indeed matter. Since short mode is 22660 # case insensitive, let's make it lowercase to improve readability. 22661 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22662 # Now convert it back to Unix-stile (cygpath) 22663 input_path=`$CYGPATH -u "$shortmode_path"` 22664 new_path="$input_path" 22665 fi 22666 fi 22667 22668 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22669 if test "x$test_cygdrive_prefix" = x; then 22670 # As a simple fix, exclude /usr/bin since it's not a real path. 22671 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22672 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22673 # a path prefixed by /cygdrive for fixpath to work. 22674 new_path="$CYGWIN_ROOT_PATH$input_path" 22675 fi 22676 fi 22677 22678 22679 if test "x$path" != "x$new_path"; then 22680 BOOT_JDK="$new_path" 22681 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22682 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22683 fi 22684 22685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22686 22687 path="$BOOT_JDK" 22688 has_colon=`$ECHO $path | $GREP ^.:` 22689 new_path="$path" 22690 if test "x$has_colon" = x; then 22691 # Not in mixed or Windows style, start by that. 22692 new_path=`cmd //c echo $path` 22693 fi 22694 22695 22696 input_path="$new_path" 22697 # Check if we need to convert this using DOS-style short mode. If the path 22698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22699 # take no chances and rewrite it. 22700 # Note: m4 eats our [], so we need to use [ and ] instead. 22701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22702 if test "x$has_forbidden_chars" != x; then 22703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22704 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22705 fi 22706 22707 22708 windows_path="$new_path" 22709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22710 unix_path=`$CYGPATH -u "$windows_path"` 22711 new_path="$unix_path" 22712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22713 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22714 new_path="$unix_path" 22715 fi 22716 22717 if test "x$path" != "x$new_path"; then 22718 BOOT_JDK="$new_path" 22719 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22720 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22721 fi 22722 22723 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22724 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22725 22726 else 22727 # We're on a posix platform. Hooray! :) 22728 path="$BOOT_JDK" 22729 has_space=`$ECHO "$path" | $GREP " "` 22730 if test "x$has_space" != x; then 22731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22732 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22733 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22734 fi 22735 22736 # Use eval to expand a potential ~ 22737 eval path="$path" 22738 if test ! -f "$path" && test ! -d "$path"; then 22739 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22740 fi 22741 22742 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22743 fi 22744 22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22746 $as_echo_n "checking for Boot JDK... " >&6; } 22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22748 $as_echo "$BOOT_JDK" >&6; } 22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22750 $as_echo_n "checking Boot JDK version... " >&6; } 22751 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22753 $as_echo "$BOOT_JDK_VERSION" >&6; } 22754 fi # end check jdk version 22755 fi # end check rt.jar 22756 fi # end check javac 22757 fi # end check java 22758 fi # end check boot jdk found 22759 fi 22760 22761 done 22762 fi 22763 22764 22765 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22766 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22767 # Do we have a bin/java? 22768 if test ! -x "$BOOT_JDK/bin/java"; then 22769 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22770 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22771 BOOT_JDK_FOUND=no 22772 else 22773 # Do we have a bin/javac? 22774 if test ! -x "$BOOT_JDK/bin/javac"; then 22775 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22776 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22777 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22778 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22779 BOOT_JDK_FOUND=no 22780 else 22781 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22782 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22783 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22785 BOOT_JDK_FOUND=no 22786 else 22787 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22788 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22789 22790 # Extra M4 quote needed to protect [] in grep expression. 22791 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22792 if test "x$FOUND_VERSION_78" = x; then 22793 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22794 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22795 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22796 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22797 BOOT_JDK_FOUND=no 22798 else 22799 # We're done! :-) 22800 BOOT_JDK_FOUND=yes 22801 22802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22803 22804 # Input might be given as Windows format, start by converting to 22805 # unix format. 22806 path="$BOOT_JDK" 22807 new_path=`$CYGPATH -u "$path"` 22808 22809 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22810 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22811 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22812 # "foo.exe" is OK but "foo" is an error. 22813 # 22814 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22815 # It is also a way to make sure we got the proper file name for the real test later on. 22816 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22817 if test "x$test_shortpath" = x; then 22818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22819 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22820 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22821 fi 22822 22823 # Call helper function which possibly converts this using DOS-style short mode. 22824 # If so, the updated path is stored in $new_path. 22825 22826 input_path="$new_path" 22827 # Check if we need to convert this using DOS-style short mode. If the path 22828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22829 # take no chances and rewrite it. 22830 # Note: m4 eats our [], so we need to use [ and ] instead. 22831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22832 if test "x$has_forbidden_chars" != x; then 22833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22834 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22835 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22836 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22837 # Going to short mode and back again did indeed matter. Since short mode is 22838 # case insensitive, let's make it lowercase to improve readability. 22839 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22840 # Now convert it back to Unix-stile (cygpath) 22841 input_path=`$CYGPATH -u "$shortmode_path"` 22842 new_path="$input_path" 22843 fi 22844 fi 22845 22846 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22847 if test "x$test_cygdrive_prefix" = x; then 22848 # As a simple fix, exclude /usr/bin since it's not a real path. 22849 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22850 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22851 # a path prefixed by /cygdrive for fixpath to work. 22852 new_path="$CYGWIN_ROOT_PATH$input_path" 22853 fi 22854 fi 22855 22856 22857 if test "x$path" != "x$new_path"; then 22858 BOOT_JDK="$new_path" 22859 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22860 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22861 fi 22862 22863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22864 22865 path="$BOOT_JDK" 22866 has_colon=`$ECHO $path | $GREP ^.:` 22867 new_path="$path" 22868 if test "x$has_colon" = x; then 22869 # Not in mixed or Windows style, start by that. 22870 new_path=`cmd //c echo $path` 22871 fi 22872 22873 22874 input_path="$new_path" 22875 # Check if we need to convert this using DOS-style short mode. If the path 22876 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22877 # take no chances and rewrite it. 22878 # Note: m4 eats our [], so we need to use [ and ] instead. 22879 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22880 if test "x$has_forbidden_chars" != x; then 22881 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22882 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22883 fi 22884 22885 22886 windows_path="$new_path" 22887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22888 unix_path=`$CYGPATH -u "$windows_path"` 22889 new_path="$unix_path" 22890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22892 new_path="$unix_path" 22893 fi 22894 22895 if test "x$path" != "x$new_path"; then 22896 BOOT_JDK="$new_path" 22897 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22898 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22899 fi 22900 22901 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22902 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22903 22904 else 22905 # We're on a posix platform. Hooray! :) 22906 path="$BOOT_JDK" 22907 has_space=`$ECHO "$path" | $GREP " "` 22908 if test "x$has_space" != x; then 22909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22910 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22911 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22912 fi 22913 22914 # Use eval to expand a potential ~ 22915 eval path="$path" 22916 if test ! -f "$path" && test ! -d "$path"; then 22917 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22918 fi 22919 22920 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22921 fi 22922 22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22924 $as_echo_n "checking for Boot JDK... " >&6; } 22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22926 $as_echo "$BOOT_JDK" >&6; } 22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22928 $as_echo_n "checking Boot JDK version... " >&6; } 22929 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22931 $as_echo "$BOOT_JDK_VERSION" >&6; } 22932 fi # end check jdk version 22933 fi # end check rt.jar 22934 fi # end check javac 22935 fi # end check java 22936 fi # end check boot jdk found 22937 fi 22938 22939 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 22940 22941 if test "x$BOOT_JDK_FOUND" = xno; then 22942 # Now execute the test 22943 22944 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 22945 BOOT_JDK_SUFFIX="/Contents/Home" 22946 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22947 if test "x$ALL_JDKS_FOUND" != x; then 22948 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22949 22950 if test "x$BOOT_JDK_FOUND" = xno; then 22951 # Now execute the test 22952 22953 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22954 if test -d "$BOOT_JDK"; then 22955 BOOT_JDK_FOUND=maybe 22956 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22957 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22958 fi 22959 22960 22961 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22962 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22963 # Do we have a bin/java? 22964 if test ! -x "$BOOT_JDK/bin/java"; then 22965 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22966 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22967 BOOT_JDK_FOUND=no 22968 else 22969 # Do we have a bin/javac? 22970 if test ! -x "$BOOT_JDK/bin/javac"; then 22971 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22972 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22973 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22974 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22975 BOOT_JDK_FOUND=no 22976 else 22977 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22978 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22979 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22980 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22981 BOOT_JDK_FOUND=no 22982 else 22983 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22984 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22985 22986 # Extra M4 quote needed to protect [] in grep expression. 22987 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22988 if test "x$FOUND_VERSION_78" = x; then 22989 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22990 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22991 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22992 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22993 BOOT_JDK_FOUND=no 22994 else 22995 # We're done! :-) 22996 BOOT_JDK_FOUND=yes 22997 22998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22999 23000 # Input might be given as Windows format, start by converting to 23001 # unix format. 23002 path="$BOOT_JDK" 23003 new_path=`$CYGPATH -u "$path"` 23004 23005 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23006 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23007 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23008 # "foo.exe" is OK but "foo" is an error. 23009 # 23010 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23011 # It is also a way to make sure we got the proper file name for the real test later on. 23012 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23013 if test "x$test_shortpath" = x; then 23014 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23015 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23016 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23017 fi 23018 23019 # Call helper function which possibly converts this using DOS-style short mode. 23020 # If so, the updated path is stored in $new_path. 23021 23022 input_path="$new_path" 23023 # Check if we need to convert this using DOS-style short mode. If the path 23024 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23025 # take no chances and rewrite it. 23026 # Note: m4 eats our [], so we need to use [ and ] instead. 23027 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23028 if test "x$has_forbidden_chars" != x; then 23029 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23030 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23031 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23032 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23033 # Going to short mode and back again did indeed matter. Since short mode is 23034 # case insensitive, let's make it lowercase to improve readability. 23035 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23036 # Now convert it back to Unix-stile (cygpath) 23037 input_path=`$CYGPATH -u "$shortmode_path"` 23038 new_path="$input_path" 23039 fi 23040 fi 23041 23042 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23043 if test "x$test_cygdrive_prefix" = x; then 23044 # As a simple fix, exclude /usr/bin since it's not a real path. 23045 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23046 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23047 # a path prefixed by /cygdrive for fixpath to work. 23048 new_path="$CYGWIN_ROOT_PATH$input_path" 23049 fi 23050 fi 23051 23052 23053 if test "x$path" != "x$new_path"; then 23054 BOOT_JDK="$new_path" 23055 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23056 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23057 fi 23058 23059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23060 23061 path="$BOOT_JDK" 23062 has_colon=`$ECHO $path | $GREP ^.:` 23063 new_path="$path" 23064 if test "x$has_colon" = x; then 23065 # Not in mixed or Windows style, start by that. 23066 new_path=`cmd //c echo $path` 23067 fi 23068 23069 23070 input_path="$new_path" 23071 # Check if we need to convert this using DOS-style short mode. If the path 23072 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23073 # take no chances and rewrite it. 23074 # Note: m4 eats our [], so we need to use [ and ] instead. 23075 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23076 if test "x$has_forbidden_chars" != x; then 23077 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23078 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23079 fi 23080 23081 23082 windows_path="$new_path" 23083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23084 unix_path=`$CYGPATH -u "$windows_path"` 23085 new_path="$unix_path" 23086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23087 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23088 new_path="$unix_path" 23089 fi 23090 23091 if test "x$path" != "x$new_path"; then 23092 BOOT_JDK="$new_path" 23093 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23094 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23095 fi 23096 23097 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23098 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23099 23100 else 23101 # We're on a posix platform. Hooray! :) 23102 path="$BOOT_JDK" 23103 has_space=`$ECHO "$path" | $GREP " "` 23104 if test "x$has_space" != x; then 23105 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23106 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23107 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23108 fi 23109 23110 # Use eval to expand a potential ~ 23111 eval path="$path" 23112 if test ! -f "$path" && test ! -d "$path"; then 23113 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23114 fi 23115 23116 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23117 fi 23118 23119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23120 $as_echo_n "checking for Boot JDK... " >&6; } 23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23122 $as_echo "$BOOT_JDK" >&6; } 23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23124 $as_echo_n "checking Boot JDK version... " >&6; } 23125 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23127 $as_echo "$BOOT_JDK_VERSION" >&6; } 23128 fi # end check jdk version 23129 fi # end check rt.jar 23130 fi # end check javac 23131 fi # end check java 23132 fi # end check boot jdk found 23133 fi 23134 23135 done 23136 fi 23137 23138 23139 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23140 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23141 # Do we have a bin/java? 23142 if test ! -x "$BOOT_JDK/bin/java"; then 23143 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23144 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23145 BOOT_JDK_FOUND=no 23146 else 23147 # Do we have a bin/javac? 23148 if test ! -x "$BOOT_JDK/bin/javac"; then 23149 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23150 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23151 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23152 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23153 BOOT_JDK_FOUND=no 23154 else 23155 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23156 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23157 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23158 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23159 BOOT_JDK_FOUND=no 23160 else 23161 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23162 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23163 23164 # Extra M4 quote needed to protect [] in grep expression. 23165 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23166 if test "x$FOUND_VERSION_78" = x; then 23167 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23168 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23169 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23170 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23171 BOOT_JDK_FOUND=no 23172 else 23173 # We're done! :-) 23174 BOOT_JDK_FOUND=yes 23175 23176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23177 23178 # Input might be given as Windows format, start by converting to 23179 # unix format. 23180 path="$BOOT_JDK" 23181 new_path=`$CYGPATH -u "$path"` 23182 23183 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23184 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23185 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23186 # "foo.exe" is OK but "foo" is an error. 23187 # 23188 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23189 # It is also a way to make sure we got the proper file name for the real test later on. 23190 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23191 if test "x$test_shortpath" = x; then 23192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23193 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23194 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23195 fi 23196 23197 # Call helper function which possibly converts this using DOS-style short mode. 23198 # If so, the updated path is stored in $new_path. 23199 23200 input_path="$new_path" 23201 # Check if we need to convert this using DOS-style short mode. If the path 23202 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23203 # take no chances and rewrite it. 23204 # Note: m4 eats our [], so we need to use [ and ] instead. 23205 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23206 if test "x$has_forbidden_chars" != x; then 23207 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23208 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23209 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23210 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23211 # Going to short mode and back again did indeed matter. Since short mode is 23212 # case insensitive, let's make it lowercase to improve readability. 23213 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23214 # Now convert it back to Unix-stile (cygpath) 23215 input_path=`$CYGPATH -u "$shortmode_path"` 23216 new_path="$input_path" 23217 fi 23218 fi 23219 23220 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23221 if test "x$test_cygdrive_prefix" = x; then 23222 # As a simple fix, exclude /usr/bin since it's not a real path. 23223 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23224 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23225 # a path prefixed by /cygdrive for fixpath to work. 23226 new_path="$CYGWIN_ROOT_PATH$input_path" 23227 fi 23228 fi 23229 23230 23231 if test "x$path" != "x$new_path"; then 23232 BOOT_JDK="$new_path" 23233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23234 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23235 fi 23236 23237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23238 23239 path="$BOOT_JDK" 23240 has_colon=`$ECHO $path | $GREP ^.:` 23241 new_path="$path" 23242 if test "x$has_colon" = x; then 23243 # Not in mixed or Windows style, start by that. 23244 new_path=`cmd //c echo $path` 23245 fi 23246 23247 23248 input_path="$new_path" 23249 # Check if we need to convert this using DOS-style short mode. If the path 23250 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23251 # take no chances and rewrite it. 23252 # Note: m4 eats our [], so we need to use [ and ] instead. 23253 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23254 if test "x$has_forbidden_chars" != x; then 23255 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23256 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23257 fi 23258 23259 23260 windows_path="$new_path" 23261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23262 unix_path=`$CYGPATH -u "$windows_path"` 23263 new_path="$unix_path" 23264 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23265 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23266 new_path="$unix_path" 23267 fi 23268 23269 if test "x$path" != "x$new_path"; then 23270 BOOT_JDK="$new_path" 23271 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23272 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23273 fi 23274 23275 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23276 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23277 23278 else 23279 # We're on a posix platform. Hooray! :) 23280 path="$BOOT_JDK" 23281 has_space=`$ECHO "$path" | $GREP " "` 23282 if test "x$has_space" != x; then 23283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23284 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23285 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23286 fi 23287 23288 # Use eval to expand a potential ~ 23289 eval path="$path" 23290 if test ! -f "$path" && test ! -d "$path"; then 23291 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23292 fi 23293 23294 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23295 fi 23296 23297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23298 $as_echo_n "checking for Boot JDK... " >&6; } 23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23300 $as_echo "$BOOT_JDK" >&6; } 23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23302 $as_echo_n "checking Boot JDK version... " >&6; } 23303 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23305 $as_echo "$BOOT_JDK_VERSION" >&6; } 23306 fi # end check jdk version 23307 fi # end check rt.jar 23308 fi # end check javac 23309 fi # end check java 23310 fi # end check boot jdk found 23311 fi 23312 23313 23314 if test "x$BOOT_JDK_FOUND" = xno; then 23315 # Now execute the test 23316 23317 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 23318 BOOT_JDK_SUFFIX="/Contents/Home" 23319 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23320 if test "x$ALL_JDKS_FOUND" != x; then 23321 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23322 23323 if test "x$BOOT_JDK_FOUND" = xno; then 23324 # Now execute the test 23325 23326 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23327 if test -d "$BOOT_JDK"; then 23328 BOOT_JDK_FOUND=maybe 23329 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23330 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23331 fi 23332 23333 23334 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23335 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23336 # Do we have a bin/java? 23337 if test ! -x "$BOOT_JDK/bin/java"; then 23338 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23339 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23340 BOOT_JDK_FOUND=no 23341 else 23342 # Do we have a bin/javac? 23343 if test ! -x "$BOOT_JDK/bin/javac"; then 23344 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23345 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23346 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23347 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23348 BOOT_JDK_FOUND=no 23349 else 23350 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23351 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23352 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23353 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23354 BOOT_JDK_FOUND=no 23355 else 23356 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23357 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23358 23359 # Extra M4 quote needed to protect [] in grep expression. 23360 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23361 if test "x$FOUND_VERSION_78" = x; then 23362 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23363 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23364 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23365 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23366 BOOT_JDK_FOUND=no 23367 else 23368 # We're done! :-) 23369 BOOT_JDK_FOUND=yes 23370 23371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23372 23373 # Input might be given as Windows format, start by converting to 23374 # unix format. 23375 path="$BOOT_JDK" 23376 new_path=`$CYGPATH -u "$path"` 23377 23378 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23379 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23380 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23381 # "foo.exe" is OK but "foo" is an error. 23382 # 23383 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23384 # It is also a way to make sure we got the proper file name for the real test later on. 23385 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23386 if test "x$test_shortpath" = x; then 23387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23388 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23389 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23390 fi 23391 23392 # Call helper function which possibly converts this using DOS-style short mode. 23393 # If so, the updated path is stored in $new_path. 23394 23395 input_path="$new_path" 23396 # Check if we need to convert this using DOS-style short mode. If the path 23397 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23398 # take no chances and rewrite it. 23399 # Note: m4 eats our [], so we need to use [ and ] instead. 23400 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23401 if test "x$has_forbidden_chars" != x; then 23402 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23403 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23404 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23405 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23406 # Going to short mode and back again did indeed matter. Since short mode is 23407 # case insensitive, let's make it lowercase to improve readability. 23408 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23409 # Now convert it back to Unix-stile (cygpath) 23410 input_path=`$CYGPATH -u "$shortmode_path"` 23411 new_path="$input_path" 23412 fi 23413 fi 23414 23415 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23416 if test "x$test_cygdrive_prefix" = x; then 23417 # As a simple fix, exclude /usr/bin since it's not a real path. 23418 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23419 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23420 # a path prefixed by /cygdrive for fixpath to work. 23421 new_path="$CYGWIN_ROOT_PATH$input_path" 23422 fi 23423 fi 23424 23425 23426 if test "x$path" != "x$new_path"; then 23427 BOOT_JDK="$new_path" 23428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23429 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23430 fi 23431 23432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23433 23434 path="$BOOT_JDK" 23435 has_colon=`$ECHO $path | $GREP ^.:` 23436 new_path="$path" 23437 if test "x$has_colon" = x; then 23438 # Not in mixed or Windows style, start by that. 23439 new_path=`cmd //c echo $path` 23440 fi 23441 23442 23443 input_path="$new_path" 23444 # Check if we need to convert this using DOS-style short mode. If the path 23445 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23446 # take no chances and rewrite it. 23447 # Note: m4 eats our [], so we need to use [ and ] instead. 23448 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23449 if test "x$has_forbidden_chars" != x; then 23450 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23451 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23452 fi 23453 23454 23455 windows_path="$new_path" 23456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23457 unix_path=`$CYGPATH -u "$windows_path"` 23458 new_path="$unix_path" 23459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23460 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23461 new_path="$unix_path" 23462 fi 23463 23464 if test "x$path" != "x$new_path"; then 23465 BOOT_JDK="$new_path" 23466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23467 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23468 fi 23469 23470 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23471 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23472 23473 else 23474 # We're on a posix platform. Hooray! :) 23475 path="$BOOT_JDK" 23476 has_space=`$ECHO "$path" | $GREP " "` 23477 if test "x$has_space" != x; then 23478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23479 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23480 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23481 fi 23482 23483 # Use eval to expand a potential ~ 23484 eval path="$path" 23485 if test ! -f "$path" && test ! -d "$path"; then 23486 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23487 fi 23488 23489 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23490 fi 23491 23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23493 $as_echo_n "checking for Boot JDK... " >&6; } 23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23495 $as_echo "$BOOT_JDK" >&6; } 23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23497 $as_echo_n "checking Boot JDK version... " >&6; } 23498 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23500 $as_echo "$BOOT_JDK_VERSION" >&6; } 23501 fi # end check jdk version 23502 fi # end check rt.jar 23503 fi # end check javac 23504 fi # end check java 23505 fi # end check boot jdk found 23506 fi 23507 23508 done 23509 fi 23510 23511 23512 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23513 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23514 # Do we have a bin/java? 23515 if test ! -x "$BOOT_JDK/bin/java"; then 23516 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23517 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23518 BOOT_JDK_FOUND=no 23519 else 23520 # Do we have a bin/javac? 23521 if test ! -x "$BOOT_JDK/bin/javac"; then 23522 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23523 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23524 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23525 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23526 BOOT_JDK_FOUND=no 23527 else 23528 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23529 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23530 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23531 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23532 BOOT_JDK_FOUND=no 23533 else 23534 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23535 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23536 23537 # Extra M4 quote needed to protect [] in grep expression. 23538 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23539 if test "x$FOUND_VERSION_78" = x; then 23540 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23541 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23542 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23543 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23544 BOOT_JDK_FOUND=no 23545 else 23546 # We're done! :-) 23547 BOOT_JDK_FOUND=yes 23548 23549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23550 23551 # Input might be given as Windows format, start by converting to 23552 # unix format. 23553 path="$BOOT_JDK" 23554 new_path=`$CYGPATH -u "$path"` 23555 23556 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23557 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23558 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23559 # "foo.exe" is OK but "foo" is an error. 23560 # 23561 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23562 # It is also a way to make sure we got the proper file name for the real test later on. 23563 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23564 if test "x$test_shortpath" = x; then 23565 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23566 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23567 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23568 fi 23569 23570 # Call helper function which possibly converts this using DOS-style short mode. 23571 # If so, the updated path is stored in $new_path. 23572 23573 input_path="$new_path" 23574 # Check if we need to convert this using DOS-style short mode. If the path 23575 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23576 # take no chances and rewrite it. 23577 # Note: m4 eats our [], so we need to use [ and ] instead. 23578 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23579 if test "x$has_forbidden_chars" != x; then 23580 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23581 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23582 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23583 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23584 # Going to short mode and back again did indeed matter. Since short mode is 23585 # case insensitive, let's make it lowercase to improve readability. 23586 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23587 # Now convert it back to Unix-stile (cygpath) 23588 input_path=`$CYGPATH -u "$shortmode_path"` 23589 new_path="$input_path" 23590 fi 23591 fi 23592 23593 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23594 if test "x$test_cygdrive_prefix" = x; then 23595 # As a simple fix, exclude /usr/bin since it's not a real path. 23596 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23597 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23598 # a path prefixed by /cygdrive for fixpath to work. 23599 new_path="$CYGWIN_ROOT_PATH$input_path" 23600 fi 23601 fi 23602 23603 23604 if test "x$path" != "x$new_path"; then 23605 BOOT_JDK="$new_path" 23606 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23607 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23608 fi 23609 23610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23611 23612 path="$BOOT_JDK" 23613 has_colon=`$ECHO $path | $GREP ^.:` 23614 new_path="$path" 23615 if test "x$has_colon" = x; then 23616 # Not in mixed or Windows style, start by that. 23617 new_path=`cmd //c echo $path` 23618 fi 23619 23620 23621 input_path="$new_path" 23622 # Check if we need to convert this using DOS-style short mode. If the path 23623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23624 # take no chances and rewrite it. 23625 # Note: m4 eats our [], so we need to use [ and ] instead. 23626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23627 if test "x$has_forbidden_chars" != x; then 23628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23629 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23630 fi 23631 23632 23633 windows_path="$new_path" 23634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23635 unix_path=`$CYGPATH -u "$windows_path"` 23636 new_path="$unix_path" 23637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23638 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23639 new_path="$unix_path" 23640 fi 23641 23642 if test "x$path" != "x$new_path"; then 23643 BOOT_JDK="$new_path" 23644 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23645 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23646 fi 23647 23648 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23649 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23650 23651 else 23652 # We're on a posix platform. Hooray! :) 23653 path="$BOOT_JDK" 23654 has_space=`$ECHO "$path" | $GREP " "` 23655 if test "x$has_space" != x; then 23656 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23657 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23658 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23659 fi 23660 23661 # Use eval to expand a potential ~ 23662 eval path="$path" 23663 if test ! -f "$path" && test ! -d "$path"; then 23664 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23665 fi 23666 23667 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23668 fi 23669 23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23671 $as_echo_n "checking for Boot JDK... " >&6; } 23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23673 $as_echo "$BOOT_JDK" >&6; } 23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23675 $as_echo_n "checking Boot JDK version... " >&6; } 23676 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23678 $as_echo "$BOOT_JDK_VERSION" >&6; } 23679 fi # end check jdk version 23680 fi # end check rt.jar 23681 fi # end check javac 23682 fi # end check java 23683 fi # end check boot jdk found 23684 fi 23685 23686 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 23687 23688 if test "x$BOOT_JDK_FOUND" = xno; then 23689 # Now execute the test 23690 23691 BOOT_JDK_PREFIX="/usr/lib/jvm" 23692 BOOT_JDK_SUFFIX="" 23693 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23694 if test "x$ALL_JDKS_FOUND" != x; then 23695 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23696 23697 if test "x$BOOT_JDK_FOUND" = xno; then 23698 # Now execute the test 23699 23700 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23701 if test -d "$BOOT_JDK"; then 23702 BOOT_JDK_FOUND=maybe 23703 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23704 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23705 fi 23706 23707 23708 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23709 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23710 # Do we have a bin/java? 23711 if test ! -x "$BOOT_JDK/bin/java"; then 23712 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23713 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23714 BOOT_JDK_FOUND=no 23715 else 23716 # Do we have a bin/javac? 23717 if test ! -x "$BOOT_JDK/bin/javac"; then 23718 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23719 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23720 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23721 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23722 BOOT_JDK_FOUND=no 23723 else 23724 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23725 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23726 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23727 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23728 BOOT_JDK_FOUND=no 23729 else 23730 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23731 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23732 23733 # Extra M4 quote needed to protect [] in grep expression. 23734 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23735 if test "x$FOUND_VERSION_78" = x; then 23736 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23737 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23738 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23739 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23740 BOOT_JDK_FOUND=no 23741 else 23742 # We're done! :-) 23743 BOOT_JDK_FOUND=yes 23744 23745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23746 23747 # Input might be given as Windows format, start by converting to 23748 # unix format. 23749 path="$BOOT_JDK" 23750 new_path=`$CYGPATH -u "$path"` 23751 23752 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23753 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23754 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23755 # "foo.exe" is OK but "foo" is an error. 23756 # 23757 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23758 # It is also a way to make sure we got the proper file name for the real test later on. 23759 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23760 if test "x$test_shortpath" = x; then 23761 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23762 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23763 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23764 fi 23765 23766 # Call helper function which possibly converts this using DOS-style short mode. 23767 # If so, the updated path is stored in $new_path. 23768 23769 input_path="$new_path" 23770 # Check if we need to convert this using DOS-style short mode. If the path 23771 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23772 # take no chances and rewrite it. 23773 # Note: m4 eats our [], so we need to use [ and ] instead. 23774 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23775 if test "x$has_forbidden_chars" != x; then 23776 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23777 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23778 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23779 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23780 # Going to short mode and back again did indeed matter. Since short mode is 23781 # case insensitive, let's make it lowercase to improve readability. 23782 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23783 # Now convert it back to Unix-stile (cygpath) 23784 input_path=`$CYGPATH -u "$shortmode_path"` 23785 new_path="$input_path" 23786 fi 23787 fi 23788 23789 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23790 if test "x$test_cygdrive_prefix" = x; then 23791 # As a simple fix, exclude /usr/bin since it's not a real path. 23792 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23793 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23794 # a path prefixed by /cygdrive for fixpath to work. 23795 new_path="$CYGWIN_ROOT_PATH$input_path" 23796 fi 23797 fi 23798 23799 23800 if test "x$path" != "x$new_path"; then 23801 BOOT_JDK="$new_path" 23802 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23803 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23804 fi 23805 23806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23807 23808 path="$BOOT_JDK" 23809 has_colon=`$ECHO $path | $GREP ^.:` 23810 new_path="$path" 23811 if test "x$has_colon" = x; then 23812 # Not in mixed or Windows style, start by that. 23813 new_path=`cmd //c echo $path` 23814 fi 23815 23816 23817 input_path="$new_path" 23818 # Check if we need to convert this using DOS-style short mode. If the path 23819 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23820 # take no chances and rewrite it. 23821 # Note: m4 eats our [], so we need to use [ and ] instead. 23822 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23823 if test "x$has_forbidden_chars" != x; then 23824 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23825 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23826 fi 23827 23828 23829 windows_path="$new_path" 23830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23831 unix_path=`$CYGPATH -u "$windows_path"` 23832 new_path="$unix_path" 23833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23835 new_path="$unix_path" 23836 fi 23837 23838 if test "x$path" != "x$new_path"; then 23839 BOOT_JDK="$new_path" 23840 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23841 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23842 fi 23843 23844 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23845 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23846 23847 else 23848 # We're on a posix platform. Hooray! :) 23849 path="$BOOT_JDK" 23850 has_space=`$ECHO "$path" | $GREP " "` 23851 if test "x$has_space" != x; then 23852 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23853 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23854 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23855 fi 23856 23857 # Use eval to expand a potential ~ 23858 eval path="$path" 23859 if test ! -f "$path" && test ! -d "$path"; then 23860 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23861 fi 23862 23863 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23864 fi 23865 23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23867 $as_echo_n "checking for Boot JDK... " >&6; } 23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23869 $as_echo "$BOOT_JDK" >&6; } 23870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23871 $as_echo_n "checking Boot JDK version... " >&6; } 23872 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23874 $as_echo "$BOOT_JDK_VERSION" >&6; } 23875 fi # end check jdk version 23876 fi # end check rt.jar 23877 fi # end check javac 23878 fi # end check java 23879 fi # end check boot jdk found 23880 fi 23881 23882 done 23883 fi 23884 23885 23886 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23887 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23888 # Do we have a bin/java? 23889 if test ! -x "$BOOT_JDK/bin/java"; then 23890 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23891 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23892 BOOT_JDK_FOUND=no 23893 else 23894 # Do we have a bin/javac? 23895 if test ! -x "$BOOT_JDK/bin/javac"; then 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23897 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23898 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23899 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23900 BOOT_JDK_FOUND=no 23901 else 23902 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23903 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23905 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23906 BOOT_JDK_FOUND=no 23907 else 23908 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23909 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23910 23911 # Extra M4 quote needed to protect [] in grep expression. 23912 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23913 if test "x$FOUND_VERSION_78" = x; then 23914 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23915 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23916 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23917 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23918 BOOT_JDK_FOUND=no 23919 else 23920 # We're done! :-) 23921 BOOT_JDK_FOUND=yes 23922 23923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23924 23925 # Input might be given as Windows format, start by converting to 23926 # unix format. 23927 path="$BOOT_JDK" 23928 new_path=`$CYGPATH -u "$path"` 23929 23930 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23931 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23932 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23933 # "foo.exe" is OK but "foo" is an error. 23934 # 23935 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23936 # It is also a way to make sure we got the proper file name for the real test later on. 23937 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23938 if test "x$test_shortpath" = x; then 23939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23940 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23941 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23942 fi 23943 23944 # Call helper function which possibly converts this using DOS-style short mode. 23945 # If so, the updated path is stored in $new_path. 23946 23947 input_path="$new_path" 23948 # Check if we need to convert this using DOS-style short mode. If the path 23949 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23950 # take no chances and rewrite it. 23951 # Note: m4 eats our [], so we need to use [ and ] instead. 23952 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23953 if test "x$has_forbidden_chars" != x; then 23954 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23955 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23956 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23957 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23958 # Going to short mode and back again did indeed matter. Since short mode is 23959 # case insensitive, let's make it lowercase to improve readability. 23960 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23961 # Now convert it back to Unix-stile (cygpath) 23962 input_path=`$CYGPATH -u "$shortmode_path"` 23963 new_path="$input_path" 23964 fi 23965 fi 23966 23967 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23968 if test "x$test_cygdrive_prefix" = x; then 23969 # As a simple fix, exclude /usr/bin since it's not a real path. 23970 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23971 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23972 # a path prefixed by /cygdrive for fixpath to work. 23973 new_path="$CYGWIN_ROOT_PATH$input_path" 23974 fi 23975 fi 23976 23977 23978 if test "x$path" != "x$new_path"; then 23979 BOOT_JDK="$new_path" 23980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23981 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23982 fi 23983 23984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23985 23986 path="$BOOT_JDK" 23987 has_colon=`$ECHO $path | $GREP ^.:` 23988 new_path="$path" 23989 if test "x$has_colon" = x; then 23990 # Not in mixed or Windows style, start by that. 23991 new_path=`cmd //c echo $path` 23992 fi 23993 23994 23995 input_path="$new_path" 23996 # Check if we need to convert this using DOS-style short mode. If the path 23997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23998 # take no chances and rewrite it. 23999 # Note: m4 eats our [], so we need to use [ and ] instead. 24000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24001 if test "x$has_forbidden_chars" != x; then 24002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24003 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24004 fi 24005 24006 24007 windows_path="$new_path" 24008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24009 unix_path=`$CYGPATH -u "$windows_path"` 24010 new_path="$unix_path" 24011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24013 new_path="$unix_path" 24014 fi 24015 24016 if test "x$path" != "x$new_path"; then 24017 BOOT_JDK="$new_path" 24018 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24019 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24020 fi 24021 24022 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24023 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24024 24025 else 24026 # We're on a posix platform. Hooray! :) 24027 path="$BOOT_JDK" 24028 has_space=`$ECHO "$path" | $GREP " "` 24029 if test "x$has_space" != x; then 24030 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24031 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24032 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24033 fi 24034 24035 # Use eval to expand a potential ~ 24036 eval path="$path" 24037 if test ! -f "$path" && test ! -d "$path"; then 24038 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24039 fi 24040 24041 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24042 fi 24043 24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24045 $as_echo_n "checking for Boot JDK... " >&6; } 24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24047 $as_echo "$BOOT_JDK" >&6; } 24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24049 $as_echo_n "checking Boot JDK version... " >&6; } 24050 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24052 $as_echo "$BOOT_JDK_VERSION" >&6; } 24053 fi # end check jdk version 24054 fi # end check rt.jar 24055 fi # end check javac 24056 fi # end check java 24057 fi # end check boot jdk found 24058 fi 24059 24060 fi 24061 24062 24063 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24064 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24065 # Do we have a bin/java? 24066 if test ! -x "$BOOT_JDK/bin/java"; then 24067 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24068 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24069 BOOT_JDK_FOUND=no 24070 else 24071 # Do we have a bin/javac? 24072 if test ! -x "$BOOT_JDK/bin/javac"; then 24073 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24074 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24075 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24076 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24077 BOOT_JDK_FOUND=no 24078 else 24079 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24080 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24081 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24082 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24083 BOOT_JDK_FOUND=no 24084 else 24085 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24086 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24087 24088 # Extra M4 quote needed to protect [] in grep expression. 24089 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24090 if test "x$FOUND_VERSION_78" = x; then 24091 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24092 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24093 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24094 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24095 BOOT_JDK_FOUND=no 24096 else 24097 # We're done! :-) 24098 BOOT_JDK_FOUND=yes 24099 24100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24101 24102 # Input might be given as Windows format, start by converting to 24103 # unix format. 24104 path="$BOOT_JDK" 24105 new_path=`$CYGPATH -u "$path"` 24106 24107 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24108 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24109 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24110 # "foo.exe" is OK but "foo" is an error. 24111 # 24112 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24113 # It is also a way to make sure we got the proper file name for the real test later on. 24114 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24115 if test "x$test_shortpath" = x; then 24116 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24117 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24118 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24119 fi 24120 24121 # Call helper function which possibly converts this using DOS-style short mode. 24122 # If so, the updated path is stored in $new_path. 24123 24124 input_path="$new_path" 24125 # Check if we need to convert this using DOS-style short mode. If the path 24126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24127 # take no chances and rewrite it. 24128 # Note: m4 eats our [], so we need to use [ and ] instead. 24129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24130 if test "x$has_forbidden_chars" != x; then 24131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24132 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24133 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24134 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24135 # Going to short mode and back again did indeed matter. Since short mode is 24136 # case insensitive, let's make it lowercase to improve readability. 24137 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24138 # Now convert it back to Unix-stile (cygpath) 24139 input_path=`$CYGPATH -u "$shortmode_path"` 24140 new_path="$input_path" 24141 fi 24142 fi 24143 24144 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24145 if test "x$test_cygdrive_prefix" = x; then 24146 # As a simple fix, exclude /usr/bin since it's not a real path. 24147 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24148 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24149 # a path prefixed by /cygdrive for fixpath to work. 24150 new_path="$CYGWIN_ROOT_PATH$input_path" 24151 fi 24152 fi 24153 24154 24155 if test "x$path" != "x$new_path"; then 24156 BOOT_JDK="$new_path" 24157 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24158 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24159 fi 24160 24161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24162 24163 path="$BOOT_JDK" 24164 has_colon=`$ECHO $path | $GREP ^.:` 24165 new_path="$path" 24166 if test "x$has_colon" = x; then 24167 # Not in mixed or Windows style, start by that. 24168 new_path=`cmd //c echo $path` 24169 fi 24170 24171 24172 input_path="$new_path" 24173 # Check if we need to convert this using DOS-style short mode. If the path 24174 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24175 # take no chances and rewrite it. 24176 # Note: m4 eats our [], so we need to use [ and ] instead. 24177 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24178 if test "x$has_forbidden_chars" != x; then 24179 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24180 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24181 fi 24182 24183 24184 windows_path="$new_path" 24185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24186 unix_path=`$CYGPATH -u "$windows_path"` 24187 new_path="$unix_path" 24188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24189 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24190 new_path="$unix_path" 24191 fi 24192 24193 if test "x$path" != "x$new_path"; then 24194 BOOT_JDK="$new_path" 24195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24196 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24197 fi 24198 24199 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24200 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24201 24202 else 24203 # We're on a posix platform. Hooray! :) 24204 path="$BOOT_JDK" 24205 has_space=`$ECHO "$path" | $GREP " "` 24206 if test "x$has_space" != x; then 24207 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24208 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24209 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24210 fi 24211 24212 # Use eval to expand a potential ~ 24213 eval path="$path" 24214 if test ! -f "$path" && test ! -d "$path"; then 24215 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24216 fi 24217 24218 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24219 fi 24220 24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24222 $as_echo_n "checking for Boot JDK... " >&6; } 24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24224 $as_echo "$BOOT_JDK" >&6; } 24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24226 $as_echo_n "checking Boot JDK version... " >&6; } 24227 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24229 $as_echo "$BOOT_JDK_VERSION" >&6; } 24230 fi # end check jdk version 24231 fi # end check rt.jar 24232 fi # end check javac 24233 fi # end check java 24234 fi # end check boot jdk found 24235 fi 24236 24237 24238 # If we haven't found anything yet, we've truly lost. Give up. 24239 if test "x$BOOT_JDK_FOUND" = xno; then 24240 24241 # Print a helpful message on how to acquire the necessary build dependency. 24242 # openjdk is the help tag: freetype, cups, pulse, alsa etc 24243 MISSING_DEPENDENCY=openjdk 24244 24245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24246 cygwin_help $MISSING_DEPENDENCY 24247 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24248 msys_help $MISSING_DEPENDENCY 24249 else 24250 PKGHANDLER_COMMAND= 24251 24252 case $PKGHANDLER in 24253 apt-get) 24254 apt_help $MISSING_DEPENDENCY ;; 24255 yum) 24256 yum_help $MISSING_DEPENDENCY ;; 24257 port) 24258 port_help $MISSING_DEPENDENCY ;; 24259 pkgutil) 24260 pkgutil_help $MISSING_DEPENDENCY ;; 24261 pkgadd) 24262 pkgadd_help $MISSING_DEPENDENCY ;; 24263 esac 24264 24265 if test "x$PKGHANDLER_COMMAND" != x; then 24266 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24267 fi 24268 fi 24269 24270 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 24271 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 24272 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 24273 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24274 as_fn_error $? "Cannot continue" "$LINENO" 5 24275 fi 24276 24277 # Setup proper paths for what we found 24278 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 24279 if test ! -f "$BOOT_RTJAR"; then 24280 # On MacOSX it is called classes.jar 24281 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 24282 if test -f "$BOOT_RTJAR"; then 24283 # Remove the .. 24284 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 24285 fi 24286 fi 24287 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 24288 BOOT_JDK="$BOOT_JDK" 24289 24290 24291 24292 24293 # Setup tools from the Boot JDK. 24294 24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 24296 $as_echo_n "checking for java in Boot JDK... " >&6; } 24297 JAVA=$BOOT_JDK/bin/java 24298 if test ! -x $JAVA; then 24299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24300 $as_echo "not found" >&6; } 24301 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24302 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24303 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 24304 fi 24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24306 $as_echo "ok" >&6; } 24307 24308 24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 24310 $as_echo_n "checking for javac in Boot JDK... " >&6; } 24311 JAVAC=$BOOT_JDK/bin/javac 24312 if test ! -x $JAVAC; then 24313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24314 $as_echo "not found" >&6; } 24315 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24316 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24317 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 24318 fi 24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24320 $as_echo "ok" >&6; } 24321 24322 24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 24324 $as_echo_n "checking for javah in Boot JDK... " >&6; } 24325 JAVAH=$BOOT_JDK/bin/javah 24326 if test ! -x $JAVAH; then 24327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24328 $as_echo "not found" >&6; } 24329 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24330 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24331 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 24332 fi 24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24334 $as_echo "ok" >&6; } 24335 24336 24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5 24338 $as_echo_n "checking for javap in Boot JDK... " >&6; } 24339 JAVAP=$BOOT_JDK/bin/javap 24340 if test ! -x $JAVAP; then 24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24342 $as_echo "not found" >&6; } 24343 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24344 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24345 as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5 24346 fi 24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24348 $as_echo "ok" >&6; } 24349 24350 24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 24352 $as_echo_n "checking for jar in Boot JDK... " >&6; } 24353 JAR=$BOOT_JDK/bin/jar 24354 if test ! -x $JAR; then 24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24356 $as_echo "not found" >&6; } 24357 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24358 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24359 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 24360 fi 24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24362 $as_echo "ok" >&6; } 24363 24364 24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5 24366 $as_echo_n "checking for rmic in Boot JDK... " >&6; } 24367 RMIC=$BOOT_JDK/bin/rmic 24368 if test ! -x $RMIC; then 24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24370 $as_echo "not found" >&6; } 24371 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24372 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24373 as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5 24374 fi 24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24376 $as_echo "ok" >&6; } 24377 24378 24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 24380 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 24381 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 24382 if test ! -x $NATIVE2ASCII; then 24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24384 $as_echo "not found" >&6; } 24385 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24386 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24387 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 24388 fi 24389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24390 $as_echo "ok" >&6; } 24391 24392 24393 # Finally, set some other options... 24394 24395 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 24396 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 24397 24398 24399 24400 # Check if the boot jdk is 32 or 64 bit 24401 if "$JAVA" -d64 -version > /dev/null 2>&1; then 24402 BOOT_JDK_BITS="64" 24403 else 24404 BOOT_JDK_BITS="32" 24405 fi 24406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 24407 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 24409 $as_echo "$BOOT_JDK_BITS" >&6; } 24410 24411 24412 24413 ############################################################################## 24414 # 24415 # Specify options for anything that is run with the Boot JDK. 24416 # 24417 24418 # Check whether --with-boot-jdk-jvmargs was given. 24419 if test "${with_boot_jdk_jvmargs+set}" = set; then : 24420 withval=$with_boot_jdk_jvmargs; 24421 fi 24422 24423 24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 24425 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 24426 24427 # Disable special log output when a debug build is used as Boot JDK... 24428 24429 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 24430 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 24431 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 24432 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24433 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24434 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24435 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 24436 JVM_ARG_OK=true 24437 else 24438 $ECHO "Arg failed:" >&5 24439 $ECHO "$OUTPUT" >&5 24440 JVM_ARG_OK=false 24441 fi 24442 24443 24444 # Apply user provided options. 24445 24446 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 24447 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 24448 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 24449 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24450 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24451 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24452 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 24453 JVM_ARG_OK=true 24454 else 24455 $ECHO "Arg failed:" >&5 24456 $ECHO "$OUTPUT" >&5 24457 JVM_ARG_OK=false 24458 fi 24459 24460 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 24462 $as_echo "$boot_jdk_jvmargs" >&6; } 24463 24464 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 24465 JAVA_FLAGS=$boot_jdk_jvmargs 24466 24467 24468 24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 24470 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 24471 24472 # Starting amount of heap memory. 24473 24474 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 24475 $ECHO "Command: $JAVA -Xms64M -version" >&5 24476 OUTPUT=`$JAVA -Xms64M -version 2>&1` 24477 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24478 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24479 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24480 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 24481 JVM_ARG_OK=true 24482 else 24483 $ECHO "Arg failed:" >&5 24484 $ECHO "$OUTPUT" >&5 24485 JVM_ARG_OK=false 24486 fi 24487 24488 24489 # Maximum amount of heap memory. 24490 # Maximum stack size. 24491 if test "x$BOOT_JDK_BITS" = x32; then 24492 JVM_MAX_HEAP=1100M 24493 STACK_SIZE=768 24494 else 24495 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 24496 # pointers are used. Apparently, we need to increase the heap and stack 24497 # space for the jvm. More specifically, when running javac to build huge 24498 # jdk batch 24499 JVM_MAX_HEAP=1600M 24500 STACK_SIZE=1536 24501 fi 24502 24503 $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5 24504 $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5 24505 OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1` 24506 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24507 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24508 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24509 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP" 24510 JVM_ARG_OK=true 24511 else 24512 $ECHO "Arg failed:" >&5 24513 $ECHO "$OUTPUT" >&5 24514 JVM_ARG_OK=false 24515 fi 24516 24517 24518 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 24519 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 24520 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 24521 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24522 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24523 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24524 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 24525 JVM_ARG_OK=true 24526 else 24527 $ECHO "Arg failed:" >&5 24528 $ECHO "$OUTPUT" >&5 24529 JVM_ARG_OK=false 24530 fi 24531 24532 24533 $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5 24534 $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5 24535 OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1` 24536 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24537 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24538 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24539 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:PermSize=32m" 24540 JVM_ARG_OK=true 24541 else 24542 $ECHO "Arg failed:" >&5 24543 $ECHO "$OUTPUT" >&5 24544 JVM_ARG_OK=false 24545 fi 24546 24547 24548 $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5 24549 $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5 24550 OUTPUT=`$JAVA -XX:MaxPermSize=160m -version 2>&1` 24551 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24552 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24553 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24554 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:MaxPermSize=160m" 24555 JVM_ARG_OK=true 24556 else 24557 $ECHO "Arg failed:" >&5 24558 $ECHO "$OUTPUT" >&5 24559 JVM_ARG_OK=false 24560 fi 24561 24562 24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 24564 $as_echo "$boot_jdk_jvmargs_big" >&6; } 24565 24566 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 24567 24568 24569 24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 24571 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 24572 24573 # Use serial gc for small short lived tools if possible 24574 24575 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 24576 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 24577 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 24578 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24579 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24580 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24581 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 24582 JVM_ARG_OK=true 24583 else 24584 $ECHO "Arg failed:" >&5 24585 $ECHO "$OUTPUT" >&5 24586 JVM_ARG_OK=false 24587 fi 24588 24589 24590 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 24591 $ECHO "Command: $JAVA -Xms32M -version" >&5 24592 OUTPUT=`$JAVA -Xms32M -version 2>&1` 24593 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24594 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24595 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24596 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 24597 JVM_ARG_OK=true 24598 else 24599 $ECHO "Arg failed:" >&5 24600 $ECHO "$OUTPUT" >&5 24601 JVM_ARG_OK=false 24602 fi 24603 24604 24605 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 24606 $ECHO "Command: $JAVA -Xmx512M -version" >&5 24607 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 24608 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24609 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24610 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24611 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 24612 JVM_ARG_OK=true 24613 else 24614 $ECHO "Arg failed:" >&5 24615 $ECHO "$OUTPUT" >&5 24616 JVM_ARG_OK=false 24617 fi 24618 24619 24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 24621 $as_echo "$boot_jdk_jvmargs_small" >&6; } 24622 24623 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 24624 24625 24626 24627 ############################################################################### 24628 # 24629 # Configure the sources to use. We can add or override individual directories. 24630 # 24631 ############################################################################### 24632 24633 24634 # Where are the sources. Any of these can be overridden 24635 # using --with-override-corba and the likes. 24636 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 24637 CORBA_TOPDIR="$SRC_ROOT/corba" 24638 JAXP_TOPDIR="$SRC_ROOT/jaxp" 24639 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 24640 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 24641 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 24642 JDK_TOPDIR="$SRC_ROOT/jdk" 24643 24644 24645 24646 24647 24648 24649 24650 24651 24652 24653 ############################################################################### 24654 # 24655 # Pickup additional source for a component from outside of the source root 24656 # or override source for a component. 24657 # 24658 24659 # Check whether --with-add-source-root was given. 24660 if test "${with_add_source_root+set}" = set; then : 24661 withval=$with_add_source_root; 24662 fi 24663 24664 24665 24666 # Check whether --with-override-source-root was given. 24667 if test "${with_override_source_root+set}" = set; then : 24668 withval=$with_override_source_root; 24669 fi 24670 24671 24672 24673 # Check whether --with-adds-and-overrides was given. 24674 if test "${with_adds_and_overrides+set}" = set; then : 24675 withval=$with_adds_and_overrides; 24676 fi 24677 24678 24679 if test "x$with_adds_and_overrides" != x; then 24680 with_add_source_root="$with_adds_and_overrides/adds" 24681 with_override_source_root="$with_adds_and_overrides/overrides" 24682 fi 24683 24684 if test "x$with_add_source_root" != x; then 24685 if ! test -d $with_add_source_root; then 24686 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 24687 fi 24688 CURDIR="$PWD" 24689 cd "$with_add_source_root" 24690 ADD_SRC_ROOT="`pwd`" 24691 cd "$CURDIR" 24692 # Verify that the addon source root does not have any root makefiles. 24693 # If it does, then it is usually an error, prevent this. 24694 if test -f $with_add_source_root/langtools/make/Makefile; then 24695 as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5 24696 fi 24697 if test -f $with_add_source_root/corba/make/Makefile; then 24698 as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5 24699 fi 24700 if test -f $with_add_source_root/jaxp/make/Makefile; then 24701 as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5 24702 fi 24703 if test -f $with_add_source_root/jaxws/make/Makefile; then 24704 as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5 24705 fi 24706 if test -f $with_add_source_root/hotspot/make/Makefile; then 24707 as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5 24708 fi 24709 if test -f $with_add_source_root/nashorn/make/Makefile; then 24710 as_fn_error $? "Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources." "$LINENO" 5 24711 fi 24712 if test -f $with_add_source_root/jdk/make/Makefile; then 24713 as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5 24714 fi 24715 fi 24716 24717 24718 if test "x$with_override_source_root" != x; then 24719 if ! test -d $with_override_source_root; then 24720 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 24721 fi 24722 CURDIR="$PWD" 24723 cd "$with_override_source_root" 24724 OVERRIDE_SRC_ROOT="`pwd`" 24725 cd "$CURDIR" 24726 if test -f $with_override_source_root/langtools/make/Makefile; then 24727 as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5 24728 fi 24729 if test -f $with_override_source_root/corba/make/Makefile; then 24730 as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5 24731 fi 24732 if test -f $with_override_source_root/jaxp/make/Makefile; then 24733 as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5 24734 fi 24735 if test -f $with_override_source_root/jaxws/make/Makefile; then 24736 as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5 24737 fi 24738 if test -f $with_override_source_root/hotspot/make/Makefile; then 24739 as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5 24740 fi 24741 if test -f $with_override_source_root/nashorn/make/Makefile; then 24742 as_fn_error $? "Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override." "$LINENO" 5 24743 fi 24744 if test -f $with_override_source_root/jdk/make/Makefile; then 24745 as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5 24746 fi 24747 fi 24748 24749 24750 ############################################################################### 24751 # 24752 # Override a repo completely, this is used for example when you have 3 small 24753 # development sandboxes of the langtools sources and want to avoid having 3 full 24754 # OpenJDK sources checked out on disk. 24755 # 24756 # Assuming that the 3 langtools sandboxes are located here: 24757 # /home/fredrik/sandbox1/langtools 24758 # /home/fredrik/sandbox2/langtools 24759 # /home/fredrik/sandbox3/langtools 24760 # 24761 # From the source root you create build subdirs manually: 24762 # mkdir -p build1 build2 build3 24763 # in each build directory run: 24764 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 24765 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 24766 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 24767 # 24768 24769 24770 # Check whether --with-override-langtools was given. 24771 if test "${with_override_langtools+set}" = set; then : 24772 withval=$with_override_langtools; 24773 fi 24774 24775 24776 24777 # Check whether --with-override-corba was given. 24778 if test "${with_override_corba+set}" = set; then : 24779 withval=$with_override_corba; 24780 fi 24781 24782 24783 24784 # Check whether --with-override-jaxp was given. 24785 if test "${with_override_jaxp+set}" = set; then : 24786 withval=$with_override_jaxp; 24787 fi 24788 24789 24790 24791 # Check whether --with-override-jaxws was given. 24792 if test "${with_override_jaxws+set}" = set; then : 24793 withval=$with_override_jaxws; 24794 fi 24795 24796 24797 24798 # Check whether --with-override-hotspot was given. 24799 if test "${with_override_hotspot+set}" = set; then : 24800 withval=$with_override_hotspot; 24801 fi 24802 24803 24804 24805 # Check whether --with-override-nashorn was given. 24806 if test "${with_override_nashorn+set}" = set; then : 24807 withval=$with_override_nashorn; 24808 fi 24809 24810 24811 24812 # Check whether --with-override-jdk was given. 24813 if test "${with_override_jdk+set}" = set; then : 24814 withval=$with_override_jdk; 24815 fi 24816 24817 24818 if test "x$with_override_langtools" != x; then 24819 CURDIR="$PWD" 24820 cd "$with_override_langtools" 24821 LANGTOOLS_TOPDIR="`pwd`" 24822 cd "$CURDIR" 24823 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 24824 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 24825 fi 24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 24827 $as_echo_n "checking if langtools should be overridden... " >&6; } 24828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 24829 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 24830 fi 24831 if test "x$with_override_corba" != x; then 24832 CURDIR="$PWD" 24833 cd "$with_override_corba" 24834 CORBA_TOPDIR="`pwd`" 24835 cd "$CURDIR" 24836 if ! test -f $CORBA_TOPDIR/make/Makefile; then 24837 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 24838 fi 24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 24840 $as_echo_n "checking if corba should be overridden... " >&6; } 24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 24842 $as_echo "yes with $CORBA_TOPDIR" >&6; } 24843 fi 24844 if test "x$with_override_jaxp" != x; then 24845 CURDIR="$PWD" 24846 cd "$with_override_jaxp" 24847 JAXP_TOPDIR="`pwd`" 24848 cd "$CURDIR" 24849 if ! test -f $JAXP_TOPDIR/make/Makefile; then 24850 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 24851 fi 24852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 24853 $as_echo_n "checking if jaxp should be overridden... " >&6; } 24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 24855 $as_echo "yes with $JAXP_TOPDIR" >&6; } 24856 fi 24857 if test "x$with_override_jaxws" != x; then 24858 CURDIR="$PWD" 24859 cd "$with_override_jaxws" 24860 JAXWS_TOPDIR="`pwd`" 24861 cd "$CURDIR" 24862 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 24863 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 24864 fi 24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 24866 $as_echo_n "checking if jaxws should be overridden... " >&6; } 24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 24868 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 24869 fi 24870 if test "x$with_override_hotspot" != x; then 24871 CURDIR="$PWD" 24872 cd "$with_override_hotspot" 24873 HOTSPOT_TOPDIR="`pwd`" 24874 cd "$CURDIR" 24875 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 24876 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 24877 fi 24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 24879 $as_echo_n "checking if hotspot should be overridden... " >&6; } 24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 24881 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 24882 fi 24883 if test "x$with_override_nashorn" != x; then 24884 CURDIR="$PWD" 24885 cd "$with_override_nashorn" 24886 NASHORN_TOPDIR="`pwd`" 24887 cd "$CURDIR" 24888 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 24889 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 24890 fi 24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 24892 $as_echo_n "checking if nashorn should be overridden... " >&6; } 24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 24894 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 24895 fi 24896 if test "x$with_override_jdk" != x; then 24897 CURDIR="$PWD" 24898 cd "$with_override_jdk" 24899 JDK_TOPDIR="`pwd`" 24900 cd "$CURDIR" 24901 if ! test -f $JDK_TOPDIR/make/Makefile; then 24902 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 24903 fi 24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 24905 $as_echo_n "checking if JDK should be overridden... " >&6; } 24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 24907 $as_echo "yes with $JDK_TOPDIR" >&6; } 24908 fi 24909 24910 24911 BUILD_OUTPUT="$OUTPUT_ROOT" 24912 24913 24914 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 24915 BUILD_HOTSPOT=true 24916 24917 24918 24919 # Check whether --with-import-hotspot was given. 24920 if test "${with_import_hotspot+set}" = set; then : 24921 withval=$with_import_hotspot; 24922 fi 24923 24924 if test "x$with_import_hotspot" != x; then 24925 CURDIR="$PWD" 24926 cd "$with_import_hotspot" 24927 HOTSPOT_DIST="`pwd`" 24928 cd "$CURDIR" 24929 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 24930 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 24931 fi 24932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 24933 $as_echo_n "checking if hotspot should be imported... " >&6; } 24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 24935 $as_echo "yes from $HOTSPOT_DIST" >&6; } 24936 BUILD_HOTSPOT=false 24937 fi 24938 24939 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 24940 24941 24942 ############################################################################### 24943 # 24944 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 24945 # native code. 24946 # 24947 ############################################################################### 24948 24949 # First determine the toolchain type (compiler family) 24950 24951 24952 # Check whether --with-toolchain-type was given. 24953 if test "${with_toolchain_type+set}" = set; then : 24954 withval=$with_toolchain_type; 24955 fi 24956 24957 24958 # Use indirect variable referencing 24959 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 24960 VALID_TOOLCHAINS=${!toolchain_var_name} 24961 # First toolchain type in the list is the default 24962 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 24963 24964 if test "x$with_toolchain_type" = xlist; then 24965 # List all toolchains 24966 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 24967 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 24968 for toolchain in $VALID_TOOLCHAINS; do 24969 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 24970 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 24971 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 24972 done 24973 24974 exit 0 24975 elif test "x$with_toolchain_type" != x; then 24976 # User override; check that it is valid 24977 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 24978 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 24979 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 24980 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 24981 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 24982 as_fn_error $? "Cannot continue." "$LINENO" 5 24983 fi 24984 TOOLCHAIN_TYPE=$with_toolchain_type 24985 else 24986 # No flag given, use default 24987 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 24988 fi 24989 24990 24991 TOOLCHAIN_CC_BINARY_clang="clang" 24992 TOOLCHAIN_CC_BINARY_gcc="gcc" 24993 TOOLCHAIN_CC_BINARY_microsoft="cl" 24994 TOOLCHAIN_CC_BINARY_solstudio="cc" 24995 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 24996 24997 TOOLCHAIN_CXX_BINARY_clang="clang++" 24998 TOOLCHAIN_CXX_BINARY_gcc="g++" 24999 TOOLCHAIN_CXX_BINARY_microsoft="cl" 25000 TOOLCHAIN_CXX_BINARY_solstudio="CC" 25001 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 25002 25003 # Use indirect variable referencing 25004 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 25005 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 25006 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 25007 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 25008 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 25009 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 25010 25011 25012 # Define filename patterns 25013 if test "x$OPENJDK_TARGET_OS" = xwindows; then 25014 LIBRARY_PREFIX= 25015 SHARED_LIBRARY_SUFFIX='.dll' 25016 STATIC_LIBRARY_SUFFIX='.lib' 25017 SHARED_LIBRARY='$1.dll' 25018 STATIC_LIBRARY='$1.lib' 25019 OBJ_SUFFIX='.obj' 25020 EXE_SUFFIX='.exe' 25021 else 25022 LIBRARY_PREFIX=lib 25023 SHARED_LIBRARY_SUFFIX='.so' 25024 STATIC_LIBRARY_SUFFIX='.a' 25025 SHARED_LIBRARY='lib$1.so' 25026 STATIC_LIBRARY='lib$1.a' 25027 OBJ_SUFFIX='.o' 25028 EXE_SUFFIX='' 25029 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25030 SHARED_LIBRARY='lib$1.dylib' 25031 SHARED_LIBRARY_SUFFIX='.dylib' 25032 fi 25033 fi 25034 25035 25036 25037 25038 25039 25040 25041 25042 25043 25044 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 25045 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 25046 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 25047 else 25048 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 25049 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 25050 fi 25051 25052 25053 # Then detect the actual binaries needed 25054 25055 # FIXME: Is this needed? 25056 ac_ext=cpp 25057 ac_cpp='$CXXCPP $CPPFLAGS' 25058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25061 25062 25063 # Store the CFLAGS etal passed to the configure script. 25064 ORG_CFLAGS="$CFLAGS" 25065 ORG_CXXFLAGS="$CXXFLAGS" 25066 ORG_OBJCFLAGS="$OBJCFLAGS" 25067 25068 # On Windows, we need to detect the visual studio installation first. 25069 # This will change the PATH, but we need to keep that new PATH even 25070 # after toolchain detection is done, since the compiler (on x86) uses 25071 # it for DLL resolution in runtime. 25072 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 25073 25074 # Store path to cygwin link.exe to help excluding it when searching for 25075 # VS linker. This must be done before changing the PATH when looking for VS. 25076 # Extract the first word of "link", so it can be a program name with args. 25077 set dummy link; ac_word=$2 25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25079 $as_echo_n "checking for $ac_word... " >&6; } 25080 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 25081 $as_echo_n "(cached) " >&6 25082 else 25083 case $CYGWIN_LINK in 25084 [\\/]* | ?:[\\/]*) 25085 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 25086 ;; 25087 *) 25088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25089 for as_dir in $PATH 25090 do 25091 IFS=$as_save_IFS 25092 test -z "$as_dir" && as_dir=. 25093 for ac_exec_ext in '' $ac_executable_extensions; do 25094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25095 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 25096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25097 break 2 25098 fi 25099 done 25100 done 25101 IFS=$as_save_IFS 25102 25103 ;; 25104 esac 25105 fi 25106 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 25107 if test -n "$CYGWIN_LINK"; then 25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 25109 $as_echo "$CYGWIN_LINK" >&6; } 25110 else 25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25112 $as_echo "no" >&6; } 25113 fi 25114 25115 25116 if test "x$CYGWIN_LINK" != x; then 25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 25118 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 25119 "$CYGWIN_LINK" --version > /dev/null 25120 if test $? -eq 0 ; then 25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25122 $as_echo "yes" >&6; } 25123 else 25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25125 $as_echo "no" >&6; } 25126 # This might be the VS linker. Don't exclude it later on. 25127 CYGWIN_LINK="" 25128 fi 25129 fi 25130 25131 # First-hand choice is to locate and run the vsvars bat file. 25132 25133 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25134 VCVARSFILE="vc/bin/vcvars32.bat" 25135 else 25136 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 25137 fi 25138 25139 VS_ENV_CMD="" 25140 VS_ENV_ARGS="" 25141 if test "x$with_toolsdir" != x; then 25142 25143 if test "x$VS_ENV_CMD" = x; then 25144 VS100BASE="$with_toolsdir/../.." 25145 METHOD="--with-tools-dir" 25146 25147 windows_path="$VS100BASE" 25148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25149 unix_path=`$CYGPATH -u "$windows_path"` 25150 VS100BASE="$unix_path" 25151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25152 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25153 VS100BASE="$unix_path" 25154 fi 25155 25156 if test -d "$VS100BASE"; then 25157 if test -f "$VS100BASE/$VCVARSFILE"; then 25158 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25159 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25160 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 25161 else 25162 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25163 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25164 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 25165 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 25166 fi 25167 fi 25168 fi 25169 25170 fi 25171 25172 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 25173 # Having specified an argument which is incorrect will produce an instant failure; 25174 # we should not go on looking 25175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 25176 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 25177 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 25178 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 25179 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 25180 fi 25181 25182 if test "x$VS100COMNTOOLS" != x; then 25183 25184 if test "x$VS_ENV_CMD" = x; then 25185 VS100BASE="$VS100COMNTOOLS/../.." 25186 METHOD="VS100COMNTOOLS variable" 25187 25188 windows_path="$VS100BASE" 25189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25190 unix_path=`$CYGPATH -u "$windows_path"` 25191 VS100BASE="$unix_path" 25192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25194 VS100BASE="$unix_path" 25195 fi 25196 25197 if test -d "$VS100BASE"; then 25198 if test -f "$VS100BASE/$VCVARSFILE"; then 25199 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25200 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25201 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 25202 else 25203 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25204 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25205 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 25206 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 25207 fi 25208 fi 25209 fi 25210 25211 fi 25212 if test "x$PROGRAMFILES" != x; then 25213 25214 if test "x$VS_ENV_CMD" = x; then 25215 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 25216 METHOD="well-known name" 25217 25218 windows_path="$VS100BASE" 25219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25220 unix_path=`$CYGPATH -u "$windows_path"` 25221 VS100BASE="$unix_path" 25222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25224 VS100BASE="$unix_path" 25225 fi 25226 25227 if test -d "$VS100BASE"; then 25228 if test -f "$VS100BASE/$VCVARSFILE"; then 25229 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25230 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25231 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 25232 else 25233 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25234 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25235 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 25236 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 25237 fi 25238 fi 25239 fi 25240 25241 fi 25242 25243 if test "x$VS_ENV_CMD" = x; then 25244 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 25245 METHOD="well-known name" 25246 25247 windows_path="$VS100BASE" 25248 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25249 unix_path=`$CYGPATH -u "$windows_path"` 25250 VS100BASE="$unix_path" 25251 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25252 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25253 VS100BASE="$unix_path" 25254 fi 25255 25256 if test -d "$VS100BASE"; then 25257 if test -f "$VS100BASE/$VCVARSFILE"; then 25258 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25259 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25260 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 25261 else 25262 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25263 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25264 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 25265 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 25266 fi 25267 fi 25268 fi 25269 25270 25271 if test "x$VS_ENV_CMD" = x; then 25272 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 25273 METHOD="well-known name" 25274 25275 windows_path="$VS100BASE" 25276 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25277 unix_path=`$CYGPATH -u "$windows_path"` 25278 VS100BASE="$unix_path" 25279 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25280 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25281 VS100BASE="$unix_path" 25282 fi 25283 25284 if test -d "$VS100BASE"; then 25285 if test -f "$VS100BASE/$VCVARSFILE"; then 25286 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25287 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25288 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 25289 else 25290 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25291 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25292 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 25293 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 25294 fi 25295 fi 25296 fi 25297 25298 25299 if test "x$ProgramW6432" != x; then 25300 25301 if test "x$VS_ENV_CMD" = x; then 25302 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 25303 METHOD="well-known name" 25304 25305 windows_path="$WIN_SDK_BASE" 25306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25307 unix_path=`$CYGPATH -u "$windows_path"` 25308 WIN_SDK_BASE="$unix_path" 25309 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25310 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25311 WIN_SDK_BASE="$unix_path" 25312 fi 25313 25314 if test -d "$WIN_SDK_BASE"; then 25315 # There have been cases of partial or broken SDK installations. A missing 25316 # lib dir is not going to work. 25317 if test ! -d "$WIN_SDK_BASE/../lib"; then 25318 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25319 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25320 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25321 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25322 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 25323 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25324 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25325 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 25326 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25327 VS_ENV_ARGS="/x86" 25328 else 25329 VS_ENV_ARGS="/x64" 25330 fi 25331 else 25332 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25333 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25334 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25335 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25336 fi 25337 fi 25338 fi 25339 25340 fi 25341 if test "x$PROGRAMW6432" != x; then 25342 25343 if test "x$VS_ENV_CMD" = x; then 25344 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 25345 METHOD="well-known name" 25346 25347 windows_path="$WIN_SDK_BASE" 25348 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25349 unix_path=`$CYGPATH -u "$windows_path"` 25350 WIN_SDK_BASE="$unix_path" 25351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25352 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25353 WIN_SDK_BASE="$unix_path" 25354 fi 25355 25356 if test -d "$WIN_SDK_BASE"; then 25357 # There have been cases of partial or broken SDK installations. A missing 25358 # lib dir is not going to work. 25359 if test ! -d "$WIN_SDK_BASE/../lib"; then 25360 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25361 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25362 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25363 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25364 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 25365 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25366 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25367 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 25368 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25369 VS_ENV_ARGS="/x86" 25370 else 25371 VS_ENV_ARGS="/x64" 25372 fi 25373 else 25374 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25375 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25376 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25377 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25378 fi 25379 fi 25380 fi 25381 25382 fi 25383 if test "x$PROGRAMFILES" != x; then 25384 25385 if test "x$VS_ENV_CMD" = x; then 25386 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 25387 METHOD="well-known name" 25388 25389 windows_path="$WIN_SDK_BASE" 25390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25391 unix_path=`$CYGPATH -u "$windows_path"` 25392 WIN_SDK_BASE="$unix_path" 25393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25395 WIN_SDK_BASE="$unix_path" 25396 fi 25397 25398 if test -d "$WIN_SDK_BASE"; then 25399 # There have been cases of partial or broken SDK installations. A missing 25400 # lib dir is not going to work. 25401 if test ! -d "$WIN_SDK_BASE/../lib"; then 25402 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25403 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25404 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25405 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25406 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 25407 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25408 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25409 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 25410 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25411 VS_ENV_ARGS="/x86" 25412 else 25413 VS_ENV_ARGS="/x64" 25414 fi 25415 else 25416 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25417 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25418 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25419 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25420 fi 25421 fi 25422 fi 25423 25424 fi 25425 25426 if test "x$VS_ENV_CMD" = x; then 25427 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 25428 METHOD="well-known name" 25429 25430 windows_path="$WIN_SDK_BASE" 25431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25432 unix_path=`$CYGPATH -u "$windows_path"` 25433 WIN_SDK_BASE="$unix_path" 25434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25435 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25436 WIN_SDK_BASE="$unix_path" 25437 fi 25438 25439 if test -d "$WIN_SDK_BASE"; then 25440 # There have been cases of partial or broken SDK installations. A missing 25441 # lib dir is not going to work. 25442 if test ! -d "$WIN_SDK_BASE/../lib"; then 25443 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25444 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25445 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25446 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25447 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 25448 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25449 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25450 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 25451 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25452 VS_ENV_ARGS="/x86" 25453 else 25454 VS_ENV_ARGS="/x64" 25455 fi 25456 else 25457 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25458 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25459 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25460 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25461 fi 25462 fi 25463 fi 25464 25465 25466 if test "x$VS_ENV_CMD" = x; then 25467 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 25468 METHOD="well-known name" 25469 25470 windows_path="$WIN_SDK_BASE" 25471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25472 unix_path=`$CYGPATH -u "$windows_path"` 25473 WIN_SDK_BASE="$unix_path" 25474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25475 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25476 WIN_SDK_BASE="$unix_path" 25477 fi 25478 25479 if test -d "$WIN_SDK_BASE"; then 25480 # There have been cases of partial or broken SDK installations. A missing 25481 # lib dir is not going to work. 25482 if test ! -d "$WIN_SDK_BASE/../lib"; then 25483 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25484 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25485 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25486 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25487 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 25488 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25489 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25490 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 25491 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25492 VS_ENV_ARGS="/x86" 25493 else 25494 VS_ENV_ARGS="/x64" 25495 fi 25496 else 25497 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25498 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25499 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25500 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25501 fi 25502 fi 25503 fi 25504 25505 25506 if test "x$VS_ENV_CMD" != x; then 25507 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 25508 25509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25510 25511 # First separate the path from the arguments. This will split at the first 25512 # space. 25513 complete="$VS_ENV_CMD" 25514 path="${complete%% *}" 25515 tmp="$complete EOL" 25516 arguments="${tmp#* }" 25517 25518 # Input might be given as Windows format, start by converting to 25519 # unix format. 25520 new_path=`$CYGPATH -u "$path"` 25521 25522 # Now try to locate executable using which 25523 new_path=`$WHICH "$new_path" 2> /dev/null` 25524 # bat and cmd files are not always considered executable in cygwin causing which 25525 # to not find them 25526 if test "x$new_path" = x \ 25527 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25528 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25529 new_path=`$CYGPATH -u "$path"` 25530 fi 25531 if test "x$new_path" = x; then 25532 # Oops. Which didn't find the executable. 25533 # The splitting of arguments from the executable at a space might have been incorrect, 25534 # since paths with space are more likely in Windows. Give it another try with the whole 25535 # argument. 25536 path="$complete" 25537 arguments="EOL" 25538 new_path=`$CYGPATH -u "$path"` 25539 new_path=`$WHICH "$new_path" 2> /dev/null` 25540 # bat and cmd files are not always considered executable in cygwin causing which 25541 # to not find them 25542 if test "x$new_path" = x \ 25543 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25544 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25545 new_path=`$CYGPATH -u "$path"` 25546 fi 25547 if test "x$new_path" = x; then 25548 # It's still not found. Now this is an unrecoverable error. 25549 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 25550 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 25551 has_space=`$ECHO "$complete" | $GREP " "` 25552 if test "x$has_space" != x; then 25553 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25554 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25555 fi 25556 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 25557 fi 25558 fi 25559 25560 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25561 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25562 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25563 # "foo.exe" is OK but "foo" is an error. 25564 # 25565 # This test is therefore slightly more accurate than "test -f" to check for file presence. 25566 # It is also a way to make sure we got the proper file name for the real test later on. 25567 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25568 if test "x$test_shortpath" = x; then 25569 # Short path failed, file does not exist as specified. 25570 # Try adding .exe or .cmd 25571 if test -f "${new_path}.exe"; then 25572 input_to_shortpath="${new_path}.exe" 25573 elif test -f "${new_path}.cmd"; then 25574 input_to_shortpath="${new_path}.cmd" 25575 else 25576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 25577 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 25578 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 25579 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 25580 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 25581 fi 25582 else 25583 input_to_shortpath="$new_path" 25584 fi 25585 25586 # Call helper function which possibly converts this using DOS-style short mode. 25587 # If so, the updated path is stored in $new_path. 25588 new_path="$input_to_shortpath" 25589 25590 input_path="$input_to_shortpath" 25591 # Check if we need to convert this using DOS-style short mode. If the path 25592 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25593 # take no chances and rewrite it. 25594 # Note: m4 eats our [], so we need to use [ and ] instead. 25595 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25596 if test "x$has_forbidden_chars" != x; then 25597 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25598 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25599 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25600 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25601 # Going to short mode and back again did indeed matter. Since short mode is 25602 # case insensitive, let's make it lowercase to improve readability. 25603 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25604 # Now convert it back to Unix-stile (cygpath) 25605 input_path=`$CYGPATH -u "$shortmode_path"` 25606 new_path="$input_path" 25607 fi 25608 fi 25609 25610 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25611 if test "x$test_cygdrive_prefix" = x; then 25612 # As a simple fix, exclude /usr/bin since it's not a real path. 25613 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 25614 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25615 # a path prefixed by /cygdrive for fixpath to work. 25616 new_path="$CYGWIN_ROOT_PATH$input_path" 25617 fi 25618 fi 25619 25620 # remove trailing .exe if any 25621 new_path="${new_path/%.exe/}" 25622 25623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25624 25625 # First separate the path from the arguments. This will split at the first 25626 # space. 25627 complete="$VS_ENV_CMD" 25628 path="${complete%% *}" 25629 tmp="$complete EOL" 25630 arguments="${tmp#* }" 25631 25632 # Input might be given as Windows format, start by converting to 25633 # unix format. 25634 new_path="$path" 25635 25636 windows_path="$new_path" 25637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25638 unix_path=`$CYGPATH -u "$windows_path"` 25639 new_path="$unix_path" 25640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25642 new_path="$unix_path" 25643 fi 25644 25645 25646 # Now try to locate executable using which 25647 new_path=`$WHICH "$new_path" 2> /dev/null` 25648 25649 if test "x$new_path" = x; then 25650 # Oops. Which didn't find the executable. 25651 # The splitting of arguments from the executable at a space might have been incorrect, 25652 # since paths with space are more likely in Windows. Give it another try with the whole 25653 # argument. 25654 path="$complete" 25655 arguments="EOL" 25656 new_path="$path" 25657 25658 windows_path="$new_path" 25659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25660 unix_path=`$CYGPATH -u "$windows_path"` 25661 new_path="$unix_path" 25662 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25663 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25664 new_path="$unix_path" 25665 fi 25666 25667 25668 new_path=`$WHICH "$new_path" 2> /dev/null` 25669 25670 if test "x$new_path" = x; then 25671 # It's still not found. Now this is an unrecoverable error. 25672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 25673 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 25674 has_space=`$ECHO "$complete" | $GREP " "` 25675 if test "x$has_space" != x; then 25676 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25677 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25678 fi 25679 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 25680 fi 25681 fi 25682 25683 # Now new_path has a complete unix path to the binary 25684 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 25685 # Keep paths in /bin as-is, but remove trailing .exe if any 25686 new_path="${new_path/%.exe/}" 25687 # Do not save /bin paths to all_fixpath_prefixes! 25688 else 25689 # Not in mixed or Windows style, start by that. 25690 new_path=`cmd //c echo $new_path` 25691 25692 input_path="$new_path" 25693 # Check if we need to convert this using DOS-style short mode. If the path 25694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25695 # take no chances and rewrite it. 25696 # Note: m4 eats our [], so we need to use [ and ] instead. 25697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25698 if test "x$has_forbidden_chars" != x; then 25699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25700 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25701 fi 25702 25703 # Output is in $new_path 25704 25705 windows_path="$new_path" 25706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25707 unix_path=`$CYGPATH -u "$windows_path"` 25708 new_path="$unix_path" 25709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25710 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25711 new_path="$unix_path" 25712 fi 25713 25714 # remove trailing .exe if any 25715 new_path="${new_path/%.exe/}" 25716 25717 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25718 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25719 fi 25720 25721 else 25722 # We're on a posix platform. Hooray! :) 25723 # First separate the path from the arguments. This will split at the first 25724 # space. 25725 complete="$VS_ENV_CMD" 25726 path="${complete%% *}" 25727 tmp="$complete EOL" 25728 arguments="${tmp#* }" 25729 25730 # Cannot rely on the command "which" here since it doesn't always work. 25731 is_absolute_path=`$ECHO "$path" | $GREP ^/` 25732 if test -z "$is_absolute_path"; then 25733 # Path to executable is not absolute. Find it. 25734 IFS_save="$IFS" 25735 IFS=: 25736 for p in $PATH; do 25737 if test -f "$p/$path" && test -x "$p/$path"; then 25738 new_path="$p/$path" 25739 break 25740 fi 25741 done 25742 IFS="$IFS_save" 25743 else 25744 # This is an absolute path, we can use it without further modifications. 25745 new_path="$path" 25746 fi 25747 25748 if test "x$new_path" = x; then 25749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 25750 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 25751 has_space=`$ECHO "$complete" | $GREP " "` 25752 if test "x$has_space" != x; then 25753 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 25754 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 25755 fi 25756 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 25757 fi 25758 fi 25759 25760 # Now join together the path and the arguments once again 25761 if test "x$arguments" != xEOL; then 25762 new_complete="$new_path ${arguments% *}" 25763 else 25764 new_complete="$new_path" 25765 fi 25766 25767 if test "x$complete" != "x$new_complete"; then 25768 VS_ENV_CMD="$new_complete" 25769 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 25770 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 25771 fi 25772 25773 25774 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 25775 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 25776 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 25777 25778 # We need to create a couple of temporary files. 25779 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 25780 $MKDIR -p $VS_ENV_TMP_DIR 25781 25782 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 25783 # Instead create a shell script which will set the relevant variables when run. 25784 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 25785 25786 unix_path="$WINPATH_VS_ENV_CMD" 25787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25788 windows_path=`$CYGPATH -m "$unix_path"` 25789 WINPATH_VS_ENV_CMD="$windows_path" 25790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25791 windows_path=`cmd //c echo $unix_path` 25792 WINPATH_VS_ENV_CMD="$windows_path" 25793 fi 25794 25795 WINPATH_BASH="$BASH" 25796 25797 unix_path="$WINPATH_BASH" 25798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25799 windows_path=`$CYGPATH -m "$unix_path"` 25800 WINPATH_BASH="$windows_path" 25801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25802 windows_path=`cmd //c echo $unix_path` 25803 WINPATH_BASH="$windows_path" 25804 fi 25805 25806 25807 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 25808 # script (executable by bash) that will setup the important variables. 25809 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 25810 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 25811 # This will end up something like: 25812 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 25813 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 25814 # These will end up something like: 25815 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 25816 # The trailing space for everyone except PATH is no typo, but is needed due 25817 # to trailing \ in the Windows paths. These will be stripped later. 25818 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25819 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25820 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25821 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25822 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25823 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25824 25825 # Now execute the newly created bat file. 25826 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 25827 # Change directory so we don't need to mess with Windows paths in redirects. 25828 cd $VS_ENV_TMP_DIR 25829 cmd /c extract-vs-env.bat | $CAT 25830 cd $CURDIR 25831 25832 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 25833 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 25834 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 25835 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 25836 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 25837 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 25838 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 25839 as_fn_error $? "Cannot continue" "$LINENO" 5 25840 fi 25841 25842 # Now set all paths and other env variables. This will allow the rest of 25843 # the configure script to find and run the compiler in the proper way. 25844 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 25845 $as_echo "$as_me: Setting extracted environment variables" >&6;} 25846 . $VS_ENV_TMP_DIR/set-vs-env.sh 25847 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 25848 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 25849 else 25850 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 25851 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 25852 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 25853 fi 25854 25855 # At this point, we should have correct variables in the environment, or we can't continue. 25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 25857 $as_echo_n "checking for Visual Studio variables... " >&6; } 25858 25859 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 25860 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 25862 $as_echo "present but broken" >&6; } 25863 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 25864 else 25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25866 $as_echo "ok" >&6; } 25867 # Remove any trailing "\" and " " from the variables. 25868 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 25869 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 25870 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 25871 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 25872 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 25873 # Remove any paths containing # (typically F#) as that messes up make. This 25874 # is needed if visual studio was installed with F# support. 25875 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 25876 25877 25878 25879 25880 fi 25881 else 25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25883 $as_echo "not found" >&6; } 25884 25885 if test "x$VS_ENV_CMD" = x; then 25886 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 25887 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 25888 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 25889 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 25890 else 25891 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 25892 $as_echo "$as_me: Running the extraction script failed." >&6;} 25893 fi 25894 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 25895 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 25896 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 25897 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 25898 as_fn_error $? "Cannot continue" "$LINENO" 5 25899 fi 25900 25901 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 25902 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 25903 PATH="$VS_PATH" 25904 # The microsoft toolchain also requires INCLUDE and LIB to be set. 25905 export INCLUDE="$VS_INCLUDE" 25906 export LIB="$VS_LIB" 25907 fi 25908 25909 # autoconf magic only relies on PATH, so update it if tools dir is specified 25910 OLD_PATH="$PATH" 25911 25912 # Before we locate the compilers, we need to sanitize the Xcode build environment 25913 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 25914 # determine path to Xcode developer directory 25915 # can be empty in which case all the tools will rely on a sane Xcode 4 installation 25916 SET_DEVELOPER_DIR= 25917 25918 if test -n "$XCODE_PATH"; then 25919 DEVELOPER_DIR="$XCODE_PATH"/Contents/Developer 25920 fi 25921 25922 # DEVELOPER_DIR could also be provided directly 25923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining if we need to set DEVELOPER_DIR" >&5 25924 $as_echo_n "checking Determining if we need to set DEVELOPER_DIR... " >&6; } 25925 if test -n "$DEVELOPER_DIR"; then 25926 if test ! -d "$DEVELOPER_DIR"; then 25927 as_fn_error $? "Xcode Developer path does not exist: $DEVELOPER_DIR, please provide a path to the Xcode 4 application bundle using --with-xcode-path" "$LINENO" 5 25928 fi 25929 if test ! -f "$DEVELOPER_DIR"/usr/bin/xcodebuild; then 25930 as_fn_error $? "Xcode Developer path is not valid: $DEVELOPER_DIR, it must point to Contents/Developer inside an Xcode application bundle" "$LINENO" 5 25931 fi 25932 # make it visible to all the tools immediately 25933 export DEVELOPER_DIR 25934 SET_DEVELOPER_DIR="export DEVELOPER_DIR := $DEVELOPER_DIR" 25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEVELOPER_DIR)" >&5 25936 $as_echo "yes ($DEVELOPER_DIR)" >&6; } 25937 else 25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25939 $as_echo "no" >&6; } 25940 fi 25941 25942 25943 # Extract the first word of "xcodebuild", so it can be a program name with args. 25944 set dummy xcodebuild; ac_word=$2 25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25946 $as_echo_n "checking for $ac_word... " >&6; } 25947 if ${ac_cv_path_XCODEBUILD+:} false; then : 25948 $as_echo_n "(cached) " >&6 25949 else 25950 case $XCODEBUILD in 25951 [\\/]* | ?:[\\/]*) 25952 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 25953 ;; 25954 *) 25955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25956 for as_dir in $PATH 25957 do 25958 IFS=$as_save_IFS 25959 test -z "$as_dir" && as_dir=. 25960 for ac_exec_ext in '' $ac_executable_extensions; do 25961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25962 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 25963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25964 break 2 25965 fi 25966 done 25967 done 25968 IFS=$as_save_IFS 25969 25970 ;; 25971 esac 25972 fi 25973 XCODEBUILD=$ac_cv_path_XCODEBUILD 25974 if test -n "$XCODEBUILD"; then 25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 25976 $as_echo "$XCODEBUILD" >&6; } 25977 else 25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25979 $as_echo "no" >&6; } 25980 fi 25981 25982 25983 if test -z "$XCODEBUILD"; then 25984 as_fn_error $? "The xcodebuild tool was not found, the Xcode command line tools are required to build on Mac OS X" "$LINENO" 5 25985 fi 25986 25987 # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later 25988 XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` 25989 XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) 25990 if test ! "${XC_VERSION_PARTS[0]}" = "4"; then 25991 as_fn_error $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select." "$LINENO" 5 25992 fi 25993 25994 # Some versions of Xcode 5 command line tools install gcc and g++ as symlinks to 25995 # clang and clang++, which will break the build. So handle that here if we need to. 25996 if test -L "/usr/bin/gcc" -o -L "/usr/bin/g++"; then 25997 # use xcrun to find the real gcc and add it's directory to PATH 25998 # then autoconf magic will find it 25999 { $as_echo "$as_me:${as_lineno-$LINENO}: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&5 26000 $as_echo "$as_me: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&6;} 26001 XCODE_BIN_PATH=$(dirname `xcrun -find gcc`) 26002 PATH="$XCODE_BIN_PATH":$PATH 26003 fi 26004 26005 # Determine appropriate SDKPATH, don't use SDKROOT as it interferes with the stub tools 26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining Xcode SDK path" >&5 26007 $as_echo_n "checking Determining Xcode SDK path... " >&6; } 26008 # allow SDKNAME to be set to override the default SDK selection 26009 SDKPATH=`"$XCODEBUILD" -sdk ${SDKNAME:-macosx} -version | grep '^Path: ' | sed 's/Path: //'` 26010 if test -n "$SDKPATH"; then 26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKPATH" >&5 26012 $as_echo "$SDKPATH" >&6; } 26013 else 26014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none, will use system headers and frameworks)" >&5 26015 $as_echo "(none, will use system headers and frameworks)" >&6; } 26016 fi 26017 26018 26019 # Perform a basic sanity test 26020 if test ! -f "$SDKPATH/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 26021 as_fn_error $? "Unable to find required framework headers, provide a valid path to Xcode 4 using --with-xcode-path" "$LINENO" 5 26022 fi 26023 26024 # if SDKPATH is non-empty then we need to add -isysroot and -iframework for gcc and g++ 26025 if test -n "$SDKPATH"; then 26026 # We need -isysroot <path> and -iframework<path>/System/Library/Frameworks 26027 CFLAGS_JDK="${CFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26028 CXXFLAGS_JDK="${CXXFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26029 LDFLAGS_JDK="${LDFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26030 fi 26031 26032 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 26033 # setting this here means it doesn't have to be peppered throughout the forest 26034 CFLAGS_JDK="$CFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26035 CXXFLAGS_JDK="$CXXFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26036 LDFLAGS_JDK="$LDFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26037 fi 26038 26039 # For solaris we really need solaris tools, and not the GNU equivalent. 26040 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 26041 # so add that to path before starting to probe. 26042 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 26043 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 26044 PATH="/usr/ccs/bin:$PATH" 26045 fi 26046 26047 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 26048 # override all other locations. 26049 if test "x$TOOLCHAIN_PATH" != x; then 26050 PATH=$TOOLCHAIN_PATH:$PATH 26051 fi 26052 26053 26054 # 26055 # Setup the compilers (CC and CXX) 26056 # 26057 26058 COMPILER_NAME=C 26059 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 26060 26061 if test "x$CC" != x; then 26062 # User has supplied compiler name already, always let that override. 26063 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 26064 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 26065 if test "x`basename $CC`" = "x$CC"; then 26066 # A command without a complete path is provided, search $PATH. 26067 26068 for ac_prog in $CC 26069 do 26070 # Extract the first word of "$ac_prog", so it can be a program name with args. 26071 set dummy $ac_prog; ac_word=$2 26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26073 $as_echo_n "checking for $ac_word... " >&6; } 26074 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 26075 $as_echo_n "(cached) " >&6 26076 else 26077 case $POTENTIAL_CC in 26078 [\\/]* | ?:[\\/]*) 26079 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 26080 ;; 26081 *) 26082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26083 for as_dir in $PATH 26084 do 26085 IFS=$as_save_IFS 26086 test -z "$as_dir" && as_dir=. 26087 for ac_exec_ext in '' $ac_executable_extensions; do 26088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26089 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 26090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26091 break 2 26092 fi 26093 done 26094 done 26095 IFS=$as_save_IFS 26096 26097 ;; 26098 esac 26099 fi 26100 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 26101 if test -n "$POTENTIAL_CC"; then 26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 26103 $as_echo "$POTENTIAL_CC" >&6; } 26104 else 26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26106 $as_echo "no" >&6; } 26107 fi 26108 26109 26110 test -n "$POTENTIAL_CC" && break 26111 done 26112 26113 if test "x$POTENTIAL_CC" != x; then 26114 CC=$POTENTIAL_CC 26115 else 26116 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 26117 fi 26118 else 26119 # Otherwise it might already be a complete path 26120 if test ! -x "$CC"; then 26121 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 26122 fi 26123 fi 26124 else 26125 # No user supplied value. Locate compiler ourselves. 26126 26127 # If we are cross compiling, assume cross compilation tools follows the 26128 # cross compilation standard where they are prefixed with the autoconf 26129 # standard name for the target. For example the binary 26130 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 26131 # If we are not cross compiling, then the default compiler name will be 26132 # used. 26133 26134 CC= 26135 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 26136 # before checking the rest of the PATH. 26137 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 26138 # step, this should not be necessary. 26139 if test -n "$TOOLCHAIN_PATH"; then 26140 PATH_save="$PATH" 26141 PATH="$TOOLCHAIN_PATH" 26142 for ac_prog in $SEARCH_LIST 26143 do 26144 # Extract the first word of "$ac_prog", so it can be a program name with args. 26145 set dummy $ac_prog; ac_word=$2 26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26147 $as_echo_n "checking for $ac_word... " >&6; } 26148 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 26149 $as_echo_n "(cached) " >&6 26150 else 26151 case $TOOLCHAIN_PATH_CC in 26152 [\\/]* | ?:[\\/]*) 26153 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 26154 ;; 26155 *) 26156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26157 for as_dir in $PATH 26158 do 26159 IFS=$as_save_IFS 26160 test -z "$as_dir" && as_dir=. 26161 for ac_exec_ext in '' $ac_executable_extensions; do 26162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26163 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 26164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26165 break 2 26166 fi 26167 done 26168 done 26169 IFS=$as_save_IFS 26170 26171 ;; 26172 esac 26173 fi 26174 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 26175 if test -n "$TOOLCHAIN_PATH_CC"; then 26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 26177 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 26178 else 26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26180 $as_echo "no" >&6; } 26181 fi 26182 26183 26184 test -n "$TOOLCHAIN_PATH_CC" && break 26185 done 26186 26187 CC=$TOOLCHAIN_PATH_CC 26188 PATH="$PATH_save" 26189 fi 26190 26191 # AC_PATH_PROGS can't be run multiple times with the same variable, 26192 # so create a new name for this run. 26193 if test "x$CC" = x; then 26194 for ac_prog in $TOOLCHAIN_CC_BINARY 26195 do 26196 # Extract the first word of "$ac_prog", so it can be a program name with args. 26197 set dummy $ac_prog; ac_word=$2 26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26199 $as_echo_n "checking for $ac_word... " >&6; } 26200 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 26201 $as_echo_n "(cached) " >&6 26202 else 26203 case $POTENTIAL_CC in 26204 [\\/]* | ?:[\\/]*) 26205 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 26206 ;; 26207 *) 26208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26209 for as_dir in $PATH 26210 do 26211 IFS=$as_save_IFS 26212 test -z "$as_dir" && as_dir=. 26213 for ac_exec_ext in '' $ac_executable_extensions; do 26214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26215 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 26216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26217 break 2 26218 fi 26219 done 26220 done 26221 IFS=$as_save_IFS 26222 26223 ;; 26224 esac 26225 fi 26226 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 26227 if test -n "$POTENTIAL_CC"; then 26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 26229 $as_echo "$POTENTIAL_CC" >&6; } 26230 else 26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26232 $as_echo "no" >&6; } 26233 fi 26234 26235 26236 test -n "$POTENTIAL_CC" && break 26237 done 26238 26239 CC=$POTENTIAL_CC 26240 fi 26241 26242 if test "x$CC" = x; then 26243 26244 # Print a helpful message on how to acquire the necessary build dependency. 26245 # devkit is the help tag: freetype, cups, pulse, alsa etc 26246 MISSING_DEPENDENCY=devkit 26247 26248 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26249 cygwin_help $MISSING_DEPENDENCY 26250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26251 msys_help $MISSING_DEPENDENCY 26252 else 26253 PKGHANDLER_COMMAND= 26254 26255 case $PKGHANDLER in 26256 apt-get) 26257 apt_help $MISSING_DEPENDENCY ;; 26258 yum) 26259 yum_help $MISSING_DEPENDENCY ;; 26260 port) 26261 port_help $MISSING_DEPENDENCY ;; 26262 pkgutil) 26263 pkgutil_help $MISSING_DEPENDENCY ;; 26264 pkgadd) 26265 pkgadd_help $MISSING_DEPENDENCY ;; 26266 esac 26267 26268 if test "x$PKGHANDLER_COMMAND" != x; then 26269 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 26270 fi 26271 fi 26272 26273 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 26274 fi 26275 fi 26276 26277 # Now we have a compiler binary in CC. Make sure it's okay. 26278 26279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26280 26281 # First separate the path from the arguments. This will split at the first 26282 # space. 26283 complete="$CC" 26284 path="${complete%% *}" 26285 tmp="$complete EOL" 26286 arguments="${tmp#* }" 26287 26288 # Input might be given as Windows format, start by converting to 26289 # unix format. 26290 new_path=`$CYGPATH -u "$path"` 26291 26292 # Now try to locate executable using which 26293 new_path=`$WHICH "$new_path" 2> /dev/null` 26294 # bat and cmd files are not always considered executable in cygwin causing which 26295 # to not find them 26296 if test "x$new_path" = x \ 26297 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26298 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26299 new_path=`$CYGPATH -u "$path"` 26300 fi 26301 if test "x$new_path" = x; then 26302 # Oops. Which didn't find the executable. 26303 # The splitting of arguments from the executable at a space might have been incorrect, 26304 # since paths with space are more likely in Windows. Give it another try with the whole 26305 # argument. 26306 path="$complete" 26307 arguments="EOL" 26308 new_path=`$CYGPATH -u "$path"` 26309 new_path=`$WHICH "$new_path" 2> /dev/null` 26310 # bat and cmd files are not always considered executable in cygwin causing which 26311 # to not find them 26312 if test "x$new_path" = x \ 26313 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26314 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26315 new_path=`$CYGPATH -u "$path"` 26316 fi 26317 if test "x$new_path" = x; then 26318 # It's still not found. Now this is an unrecoverable error. 26319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 26320 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 26321 has_space=`$ECHO "$complete" | $GREP " "` 26322 if test "x$has_space" != x; then 26323 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26324 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26325 fi 26326 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 26327 fi 26328 fi 26329 26330 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26331 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26332 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26333 # "foo.exe" is OK but "foo" is an error. 26334 # 26335 # This test is therefore slightly more accurate than "test -f" to check for file presence. 26336 # It is also a way to make sure we got the proper file name for the real test later on. 26337 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26338 if test "x$test_shortpath" = x; then 26339 # Short path failed, file does not exist as specified. 26340 # Try adding .exe or .cmd 26341 if test -f "${new_path}.exe"; then 26342 input_to_shortpath="${new_path}.exe" 26343 elif test -f "${new_path}.cmd"; then 26344 input_to_shortpath="${new_path}.cmd" 26345 else 26346 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 26347 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 26348 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26349 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26350 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 26351 fi 26352 else 26353 input_to_shortpath="$new_path" 26354 fi 26355 26356 # Call helper function which possibly converts this using DOS-style short mode. 26357 # If so, the updated path is stored in $new_path. 26358 new_path="$input_to_shortpath" 26359 26360 input_path="$input_to_shortpath" 26361 # Check if we need to convert this using DOS-style short mode. If the path 26362 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26363 # take no chances and rewrite it. 26364 # Note: m4 eats our [], so we need to use [ and ] instead. 26365 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26366 if test "x$has_forbidden_chars" != x; then 26367 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26368 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26369 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26370 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26371 # Going to short mode and back again did indeed matter. Since short mode is 26372 # case insensitive, let's make it lowercase to improve readability. 26373 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26374 # Now convert it back to Unix-stile (cygpath) 26375 input_path=`$CYGPATH -u "$shortmode_path"` 26376 new_path="$input_path" 26377 fi 26378 fi 26379 26380 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26381 if test "x$test_cygdrive_prefix" = x; then 26382 # As a simple fix, exclude /usr/bin since it's not a real path. 26383 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26384 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26385 # a path prefixed by /cygdrive for fixpath to work. 26386 new_path="$CYGWIN_ROOT_PATH$input_path" 26387 fi 26388 fi 26389 26390 # remove trailing .exe if any 26391 new_path="${new_path/%.exe/}" 26392 26393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26394 26395 # First separate the path from the arguments. This will split at the first 26396 # space. 26397 complete="$CC" 26398 path="${complete%% *}" 26399 tmp="$complete EOL" 26400 arguments="${tmp#* }" 26401 26402 # Input might be given as Windows format, start by converting to 26403 # unix format. 26404 new_path="$path" 26405 26406 windows_path="$new_path" 26407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26408 unix_path=`$CYGPATH -u "$windows_path"` 26409 new_path="$unix_path" 26410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26411 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26412 new_path="$unix_path" 26413 fi 26414 26415 26416 # Now try to locate executable using which 26417 new_path=`$WHICH "$new_path" 2> /dev/null` 26418 26419 if test "x$new_path" = x; then 26420 # Oops. Which didn't find the executable. 26421 # The splitting of arguments from the executable at a space might have been incorrect, 26422 # since paths with space are more likely in Windows. Give it another try with the whole 26423 # argument. 26424 path="$complete" 26425 arguments="EOL" 26426 new_path="$path" 26427 26428 windows_path="$new_path" 26429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26430 unix_path=`$CYGPATH -u "$windows_path"` 26431 new_path="$unix_path" 26432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26434 new_path="$unix_path" 26435 fi 26436 26437 26438 new_path=`$WHICH "$new_path" 2> /dev/null` 26439 26440 if test "x$new_path" = x; then 26441 # It's still not found. Now this is an unrecoverable error. 26442 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 26443 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 26444 has_space=`$ECHO "$complete" | $GREP " "` 26445 if test "x$has_space" != x; then 26446 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26447 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26448 fi 26449 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 26450 fi 26451 fi 26452 26453 # Now new_path has a complete unix path to the binary 26454 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26455 # Keep paths in /bin as-is, but remove trailing .exe if any 26456 new_path="${new_path/%.exe/}" 26457 # Do not save /bin paths to all_fixpath_prefixes! 26458 else 26459 # Not in mixed or Windows style, start by that. 26460 new_path=`cmd //c echo $new_path` 26461 26462 input_path="$new_path" 26463 # Check if we need to convert this using DOS-style short mode. If the path 26464 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26465 # take no chances and rewrite it. 26466 # Note: m4 eats our [], so we need to use [ and ] instead. 26467 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26468 if test "x$has_forbidden_chars" != x; then 26469 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26470 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26471 fi 26472 26473 # Output is in $new_path 26474 26475 windows_path="$new_path" 26476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26477 unix_path=`$CYGPATH -u "$windows_path"` 26478 new_path="$unix_path" 26479 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26480 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26481 new_path="$unix_path" 26482 fi 26483 26484 # remove trailing .exe if any 26485 new_path="${new_path/%.exe/}" 26486 26487 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26488 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26489 fi 26490 26491 else 26492 # We're on a posix platform. Hooray! :) 26493 # First separate the path from the arguments. This will split at the first 26494 # space. 26495 complete="$CC" 26496 path="${complete%% *}" 26497 tmp="$complete EOL" 26498 arguments="${tmp#* }" 26499 26500 # Cannot rely on the command "which" here since it doesn't always work. 26501 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26502 if test -z "$is_absolute_path"; then 26503 # Path to executable is not absolute. Find it. 26504 IFS_save="$IFS" 26505 IFS=: 26506 for p in $PATH; do 26507 if test -f "$p/$path" && test -x "$p/$path"; then 26508 new_path="$p/$path" 26509 break 26510 fi 26511 done 26512 IFS="$IFS_save" 26513 else 26514 # This is an absolute path, we can use it without further modifications. 26515 new_path="$path" 26516 fi 26517 26518 if test "x$new_path" = x; then 26519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 26520 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 26521 has_space=`$ECHO "$complete" | $GREP " "` 26522 if test "x$has_space" != x; then 26523 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26524 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26525 fi 26526 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 26527 fi 26528 fi 26529 26530 # Now join together the path and the arguments once again 26531 if test "x$arguments" != xEOL; then 26532 new_complete="$new_path ${arguments% *}" 26533 else 26534 new_complete="$new_path" 26535 fi 26536 26537 if test "x$complete" != "x$new_complete"; then 26538 CC="$new_complete" 26539 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 26540 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 26541 fi 26542 26543 TEST_COMPILER="$CC" 26544 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 26545 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 26546 if test "x$OPENJDK_BUILD_OS" != xaix; then 26547 # FIXME: This test should not be needed anymore; we don't do that for any platform. 26548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 26549 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 26550 26551 if test "x$OPENJDK_BUILD_OS" != xwindows; then 26552 # Follow a chain of symbolic links. Use readlink 26553 # where it exists, else fall back to horribly 26554 # complicated shell code. 26555 if test "x$READLINK_TESTED" != yes; then 26556 # On MacOSX there is a readlink tool with a different 26557 # purpose than the GNU readlink tool. Check the found readlink. 26558 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 26559 if test "x$ISGNU" = x; then 26560 # A readlink that we do not know how to use. 26561 # Are there other non-GNU readlinks out there? 26562 READLINK_TESTED=yes 26563 READLINK= 26564 fi 26565 fi 26566 26567 if test "x$READLINK" != x; then 26568 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 26569 else 26570 # Save the current directory for restoring afterwards 26571 STARTDIR=$PWD 26572 COUNTER=0 26573 sym_link_dir=`$DIRNAME $TEST_COMPILER` 26574 sym_link_file=`$BASENAME $TEST_COMPILER` 26575 cd $sym_link_dir 26576 # Use -P flag to resolve symlinks in directories. 26577 cd `$THEPWDCMD -P` 26578 sym_link_dir=`$THEPWDCMD -P` 26579 # Resolve file symlinks 26580 while test $COUNTER -lt 20; do 26581 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 26582 if test "x$ISLINK" == x; then 26583 # This is not a symbolic link! We are done! 26584 break 26585 fi 26586 # Again resolve directory symlinks since the target of the just found 26587 # link could be in a different directory 26588 cd `$DIRNAME $ISLINK` 26589 sym_link_dir=`$THEPWDCMD -P` 26590 sym_link_file=`$BASENAME $ISLINK` 26591 let COUNTER=COUNTER+1 26592 done 26593 cd $STARTDIR 26594 TEST_COMPILER=$sym_link_dir/$sym_link_file 26595 fi 26596 fi 26597 26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 26599 $as_echo "$TEST_COMPILER" >&6; } 26600 fi 26601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 26602 $as_echo_n "checking if CC is disguised ccache... " >&6; } 26603 26604 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 26605 if test "x$COMPILER_BASENAME" = "xccache"; then 26606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 26607 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 26608 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 26609 # We want to control ccache invocation ourselves, so ignore this cc and try 26610 # searching again. 26611 26612 # Remove the path to the fake ccache cc from the PATH 26613 RETRY_COMPILER_SAVED_PATH="$PATH" 26614 COMPILER_DIRNAME=`$DIRNAME $CC` 26615 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 26616 26617 # Try again looking for our compiler 26618 if test -n "$ac_tool_prefix"; then 26619 for ac_prog in $TOOLCHAIN_CC_BINARY 26620 do 26621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 26622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 26623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26624 $as_echo_n "checking for $ac_word... " >&6; } 26625 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 26626 $as_echo_n "(cached) " >&6 26627 else 26628 if test -n "$PROPER_COMPILER_CC"; then 26629 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 26630 else 26631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26632 for as_dir in $PATH 26633 do 26634 IFS=$as_save_IFS 26635 test -z "$as_dir" && as_dir=. 26636 for ac_exec_ext in '' $ac_executable_extensions; do 26637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26638 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 26639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26640 break 2 26641 fi 26642 done 26643 done 26644 IFS=$as_save_IFS 26645 26646 fi 26647 fi 26648 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 26649 if test -n "$PROPER_COMPILER_CC"; then 26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 26651 $as_echo "$PROPER_COMPILER_CC" >&6; } 26652 else 26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26654 $as_echo "no" >&6; } 26655 fi 26656 26657 26658 test -n "$PROPER_COMPILER_CC" && break 26659 done 26660 fi 26661 if test -z "$PROPER_COMPILER_CC"; then 26662 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 26663 for ac_prog in $TOOLCHAIN_CC_BINARY 26664 do 26665 # Extract the first word of "$ac_prog", so it can be a program name with args. 26666 set dummy $ac_prog; ac_word=$2 26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26668 $as_echo_n "checking for $ac_word... " >&6; } 26669 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 26670 $as_echo_n "(cached) " >&6 26671 else 26672 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 26673 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 26674 else 26675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26676 for as_dir in $PATH 26677 do 26678 IFS=$as_save_IFS 26679 test -z "$as_dir" && as_dir=. 26680 for ac_exec_ext in '' $ac_executable_extensions; do 26681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26682 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 26683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26684 break 2 26685 fi 26686 done 26687 done 26688 IFS=$as_save_IFS 26689 26690 fi 26691 fi 26692 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 26693 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 26695 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 26696 else 26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26698 $as_echo "no" >&6; } 26699 fi 26700 26701 26702 test -n "$ac_ct_PROPER_COMPILER_CC" && break 26703 done 26704 26705 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 26706 PROPER_COMPILER_CC="" 26707 else 26708 case $cross_compiling:$ac_tool_warned in 26709 yes:) 26710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26712 ac_tool_warned=yes ;; 26713 esac 26714 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 26715 fi 26716 fi 26717 26718 26719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26720 26721 # First separate the path from the arguments. This will split at the first 26722 # space. 26723 complete="$PROPER_COMPILER_CC" 26724 path="${complete%% *}" 26725 tmp="$complete EOL" 26726 arguments="${tmp#* }" 26727 26728 # Input might be given as Windows format, start by converting to 26729 # unix format. 26730 new_path=`$CYGPATH -u "$path"` 26731 26732 # Now try to locate executable using which 26733 new_path=`$WHICH "$new_path" 2> /dev/null` 26734 # bat and cmd files are not always considered executable in cygwin causing which 26735 # to not find them 26736 if test "x$new_path" = x \ 26737 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26738 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26739 new_path=`$CYGPATH -u "$path"` 26740 fi 26741 if test "x$new_path" = x; then 26742 # Oops. Which didn't find the executable. 26743 # The splitting of arguments from the executable at a space might have been incorrect, 26744 # since paths with space are more likely in Windows. Give it another try with the whole 26745 # argument. 26746 path="$complete" 26747 arguments="EOL" 26748 new_path=`$CYGPATH -u "$path"` 26749 new_path=`$WHICH "$new_path" 2> /dev/null` 26750 # bat and cmd files are not always considered executable in cygwin causing which 26751 # to not find them 26752 if test "x$new_path" = x \ 26753 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26754 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26755 new_path=`$CYGPATH -u "$path"` 26756 fi 26757 if test "x$new_path" = x; then 26758 # It's still not found. Now this is an unrecoverable error. 26759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 26760 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 26761 has_space=`$ECHO "$complete" | $GREP " "` 26762 if test "x$has_space" != x; then 26763 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26764 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26765 fi 26766 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 26767 fi 26768 fi 26769 26770 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26771 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26772 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26773 # "foo.exe" is OK but "foo" is an error. 26774 # 26775 # This test is therefore slightly more accurate than "test -f" to check for file presence. 26776 # It is also a way to make sure we got the proper file name for the real test later on. 26777 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26778 if test "x$test_shortpath" = x; then 26779 # Short path failed, file does not exist as specified. 26780 # Try adding .exe or .cmd 26781 if test -f "${new_path}.exe"; then 26782 input_to_shortpath="${new_path}.exe" 26783 elif test -f "${new_path}.cmd"; then 26784 input_to_shortpath="${new_path}.cmd" 26785 else 26786 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 26787 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 26788 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26789 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26790 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 26791 fi 26792 else 26793 input_to_shortpath="$new_path" 26794 fi 26795 26796 # Call helper function which possibly converts this using DOS-style short mode. 26797 # If so, the updated path is stored in $new_path. 26798 new_path="$input_to_shortpath" 26799 26800 input_path="$input_to_shortpath" 26801 # Check if we need to convert this using DOS-style short mode. If the path 26802 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26803 # take no chances and rewrite it. 26804 # Note: m4 eats our [], so we need to use [ and ] instead. 26805 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26806 if test "x$has_forbidden_chars" != x; then 26807 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26808 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26809 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26810 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26811 # Going to short mode and back again did indeed matter. Since short mode is 26812 # case insensitive, let's make it lowercase to improve readability. 26813 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26814 # Now convert it back to Unix-stile (cygpath) 26815 input_path=`$CYGPATH -u "$shortmode_path"` 26816 new_path="$input_path" 26817 fi 26818 fi 26819 26820 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26821 if test "x$test_cygdrive_prefix" = x; then 26822 # As a simple fix, exclude /usr/bin since it's not a real path. 26823 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26824 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26825 # a path prefixed by /cygdrive for fixpath to work. 26826 new_path="$CYGWIN_ROOT_PATH$input_path" 26827 fi 26828 fi 26829 26830 # remove trailing .exe if any 26831 new_path="${new_path/%.exe/}" 26832 26833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26834 26835 # First separate the path from the arguments. This will split at the first 26836 # space. 26837 complete="$PROPER_COMPILER_CC" 26838 path="${complete%% *}" 26839 tmp="$complete EOL" 26840 arguments="${tmp#* }" 26841 26842 # Input might be given as Windows format, start by converting to 26843 # unix format. 26844 new_path="$path" 26845 26846 windows_path="$new_path" 26847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26848 unix_path=`$CYGPATH -u "$windows_path"` 26849 new_path="$unix_path" 26850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26851 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26852 new_path="$unix_path" 26853 fi 26854 26855 26856 # Now try to locate executable using which 26857 new_path=`$WHICH "$new_path" 2> /dev/null` 26858 26859 if test "x$new_path" = x; then 26860 # Oops. Which didn't find the executable. 26861 # The splitting of arguments from the executable at a space might have been incorrect, 26862 # since paths with space are more likely in Windows. Give it another try with the whole 26863 # argument. 26864 path="$complete" 26865 arguments="EOL" 26866 new_path="$path" 26867 26868 windows_path="$new_path" 26869 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26870 unix_path=`$CYGPATH -u "$windows_path"` 26871 new_path="$unix_path" 26872 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26873 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26874 new_path="$unix_path" 26875 fi 26876 26877 26878 new_path=`$WHICH "$new_path" 2> /dev/null` 26879 26880 if test "x$new_path" = x; then 26881 # It's still not found. Now this is an unrecoverable error. 26882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 26883 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 26884 has_space=`$ECHO "$complete" | $GREP " "` 26885 if test "x$has_space" != x; then 26886 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26887 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26888 fi 26889 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 26890 fi 26891 fi 26892 26893 # Now new_path has a complete unix path to the binary 26894 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26895 # Keep paths in /bin as-is, but remove trailing .exe if any 26896 new_path="${new_path/%.exe/}" 26897 # Do not save /bin paths to all_fixpath_prefixes! 26898 else 26899 # Not in mixed or Windows style, start by that. 26900 new_path=`cmd //c echo $new_path` 26901 26902 input_path="$new_path" 26903 # Check if we need to convert this using DOS-style short mode. If the path 26904 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26905 # take no chances and rewrite it. 26906 # Note: m4 eats our [], so we need to use [ and ] instead. 26907 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26908 if test "x$has_forbidden_chars" != x; then 26909 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26910 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26911 fi 26912 26913 # Output is in $new_path 26914 26915 windows_path="$new_path" 26916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26917 unix_path=`$CYGPATH -u "$windows_path"` 26918 new_path="$unix_path" 26919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26921 new_path="$unix_path" 26922 fi 26923 26924 # remove trailing .exe if any 26925 new_path="${new_path/%.exe/}" 26926 26927 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26928 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26929 fi 26930 26931 else 26932 # We're on a posix platform. Hooray! :) 26933 # First separate the path from the arguments. This will split at the first 26934 # space. 26935 complete="$PROPER_COMPILER_CC" 26936 path="${complete%% *}" 26937 tmp="$complete EOL" 26938 arguments="${tmp#* }" 26939 26940 # Cannot rely on the command "which" here since it doesn't always work. 26941 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26942 if test -z "$is_absolute_path"; then 26943 # Path to executable is not absolute. Find it. 26944 IFS_save="$IFS" 26945 IFS=: 26946 for p in $PATH; do 26947 if test -f "$p/$path" && test -x "$p/$path"; then 26948 new_path="$p/$path" 26949 break 26950 fi 26951 done 26952 IFS="$IFS_save" 26953 else 26954 # This is an absolute path, we can use it without further modifications. 26955 new_path="$path" 26956 fi 26957 26958 if test "x$new_path" = x; then 26959 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 26960 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 26961 has_space=`$ECHO "$complete" | $GREP " "` 26962 if test "x$has_space" != x; then 26963 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26964 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26965 fi 26966 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 26967 fi 26968 fi 26969 26970 # Now join together the path and the arguments once again 26971 if test "x$arguments" != xEOL; then 26972 new_complete="$new_path ${arguments% *}" 26973 else 26974 new_complete="$new_path" 26975 fi 26976 26977 if test "x$complete" != "x$new_complete"; then 26978 PROPER_COMPILER_CC="$new_complete" 26979 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 26980 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 26981 fi 26982 26983 PATH="$RETRY_COMPILER_SAVED_PATH" 26984 26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 26986 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 26987 26988 if test "x$OPENJDK_BUILD_OS" != xwindows; then 26989 # Follow a chain of symbolic links. Use readlink 26990 # where it exists, else fall back to horribly 26991 # complicated shell code. 26992 if test "x$READLINK_TESTED" != yes; then 26993 # On MacOSX there is a readlink tool with a different 26994 # purpose than the GNU readlink tool. Check the found readlink. 26995 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 26996 if test "x$ISGNU" = x; then 26997 # A readlink that we do not know how to use. 26998 # Are there other non-GNU readlinks out there? 26999 READLINK_TESTED=yes 27000 READLINK= 27001 fi 27002 fi 27003 27004 if test "x$READLINK" != x; then 27005 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 27006 else 27007 # Save the current directory for restoring afterwards 27008 STARTDIR=$PWD 27009 COUNTER=0 27010 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 27011 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 27012 cd $sym_link_dir 27013 # Use -P flag to resolve symlinks in directories. 27014 cd `$THEPWDCMD -P` 27015 sym_link_dir=`$THEPWDCMD -P` 27016 # Resolve file symlinks 27017 while test $COUNTER -lt 20; do 27018 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27019 if test "x$ISLINK" == x; then 27020 # This is not a symbolic link! We are done! 27021 break 27022 fi 27023 # Again resolve directory symlinks since the target of the just found 27024 # link could be in a different directory 27025 cd `$DIRNAME $ISLINK` 27026 sym_link_dir=`$THEPWDCMD -P` 27027 sym_link_file=`$BASENAME $ISLINK` 27028 let COUNTER=COUNTER+1 27029 done 27030 cd $STARTDIR 27031 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 27032 fi 27033 fi 27034 27035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27036 $as_echo "$PROPER_COMPILER_CC" >&6; } 27037 CC="$PROPER_COMPILER_CC" 27038 else 27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 27040 $as_echo "no, keeping CC" >&6; } 27041 CC="$TEST_COMPILER" 27042 fi 27043 27044 27045 COMPILER=$CC 27046 COMPILER_NAME=$COMPILER_NAME 27047 27048 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 27049 # cc -V output typically looks like 27050 # cc: Sun C 5.12 Linux_i386 2011/11/16 27051 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 27052 # Check that this is likely to be the Solaris Studio cc. 27053 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 27054 if test $? -ne 0; then 27055 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27056 { $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 27057 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27058 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27059 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27060 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27061 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27062 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27063 fi 27064 # Remove usage instructions (if present), and 27065 # collapse compiler output into a single line 27066 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27067 $SED -e 's/ *[Uu]sage:.*//'` 27068 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27069 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 27070 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 27071 # xlc -qversion output typically looks like 27072 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 27073 # Version: 11.01.0000.0015 27074 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 27075 # Check that this is likely to be the IBM XL C compiler. 27076 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 27077 if test $? -ne 0; then 27078 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27079 { $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 27080 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27081 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27082 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27083 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27084 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27085 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27086 fi 27087 # Collapse compiler output into a single line 27088 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27089 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27090 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 27091 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 27092 # There is no specific version flag, but all output starts with a version string. 27093 # First line typically looks something like: 27094 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 27095 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 27096 # Check that this is likely to be Microsoft CL.EXE. 27097 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 27098 if test $? -ne 0; then 27099 { $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 27100 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27101 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27102 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27103 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27104 fi 27105 # Collapse compiler output into a single line 27106 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27107 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27108 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 27109 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 27110 # gcc --version output typically looks like 27111 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 27112 # Copyright (C) 2013 Free Software Foundation, Inc. 27113 # This is free software; see the source for copying conditions. There is NO 27114 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27115 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27116 # Check that this is likely to be GCC. 27117 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 27118 if test $? -ne 0; then 27119 { $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 27120 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27121 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 27122 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 27123 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27124 fi 27125 # Remove Copyright and legalese from version string, and 27126 # collapse into a single line 27127 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27128 $SED -e 's/ *Copyright .*//'` 27129 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27130 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 27131 elif test "x$TOOLCHAIN_TYPE" = xclang; then 27132 # clang --version output typically looks like 27133 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 27134 # clang version 3.3 (tags/RELEASE_33/final) 27135 # or 27136 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 27137 # Target: x86_64-pc-linux-gnu 27138 # Thread model: posix 27139 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27140 # Check that this is likely to be clang 27141 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 27142 if test $? -ne 0; then 27143 { $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 27144 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27145 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27146 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27147 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27148 fi 27149 # Collapse compiler output into a single line 27150 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27151 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27152 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 27153 27154 else 27155 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 27156 fi 27157 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 27158 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 27159 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 27160 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 27161 27162 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 27163 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 27164 27165 27166 # Now that we have resolved CC ourself, let autoconf have its go at it 27167 ac_ext=c 27168 ac_cpp='$CPP $CPPFLAGS' 27169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27171 ac_compiler_gnu=$ac_cv_c_compiler_gnu 27172 if test -n "$ac_tool_prefix"; then 27173 for ac_prog in $CC 27174 do 27175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27178 $as_echo_n "checking for $ac_word... " >&6; } 27179 if ${ac_cv_prog_CC+:} false; then : 27180 $as_echo_n "(cached) " >&6 27181 else 27182 if test -n "$CC"; then 27183 ac_cv_prog_CC="$CC" # Let the user override the test. 27184 else 27185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27186 for as_dir in $PATH 27187 do 27188 IFS=$as_save_IFS 27189 test -z "$as_dir" && as_dir=. 27190 for ac_exec_ext in '' $ac_executable_extensions; do 27191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 27193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27194 break 2 27195 fi 27196 done 27197 done 27198 IFS=$as_save_IFS 27199 27200 fi 27201 fi 27202 CC=$ac_cv_prog_CC 27203 if test -n "$CC"; then 27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 27205 $as_echo "$CC" >&6; } 27206 else 27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27208 $as_echo "no" >&6; } 27209 fi 27210 27211 27212 test -n "$CC" && break 27213 done 27214 fi 27215 if test -z "$CC"; then 27216 ac_ct_CC=$CC 27217 for ac_prog in $CC 27218 do 27219 # Extract the first word of "$ac_prog", so it can be a program name with args. 27220 set dummy $ac_prog; ac_word=$2 27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27222 $as_echo_n "checking for $ac_word... " >&6; } 27223 if ${ac_cv_prog_ac_ct_CC+:} false; then : 27224 $as_echo_n "(cached) " >&6 27225 else 27226 if test -n "$ac_ct_CC"; then 27227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 27228 else 27229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27230 for as_dir in $PATH 27231 do 27232 IFS=$as_save_IFS 27233 test -z "$as_dir" && as_dir=. 27234 for ac_exec_ext in '' $ac_executable_extensions; do 27235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27236 ac_cv_prog_ac_ct_CC="$ac_prog" 27237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27238 break 2 27239 fi 27240 done 27241 done 27242 IFS=$as_save_IFS 27243 27244 fi 27245 fi 27246 ac_ct_CC=$ac_cv_prog_ac_ct_CC 27247 if test -n "$ac_ct_CC"; then 27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 27249 $as_echo "$ac_ct_CC" >&6; } 27250 else 27251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27252 $as_echo "no" >&6; } 27253 fi 27254 27255 27256 test -n "$ac_ct_CC" && break 27257 done 27258 27259 if test "x$ac_ct_CC" = x; then 27260 CC="" 27261 else 27262 case $cross_compiling:$ac_tool_warned in 27263 yes:) 27264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27266 ac_tool_warned=yes ;; 27267 esac 27268 CC=$ac_ct_CC 27269 fi 27270 fi 27271 27272 27273 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27275 as_fn_error $? "no acceptable C compiler found in \$PATH 27276 See \`config.log' for more details" "$LINENO" 5; } 27277 27278 # Provide some information about the compiler. 27279 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 27280 set X $ac_compile 27281 ac_compiler=$2 27282 for ac_option in --version -v -V -qversion; do 27283 { { ac_try="$ac_compiler $ac_option >&5" 27284 case "(($ac_try" in 27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27286 *) ac_try_echo=$ac_try;; 27287 esac 27288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27289 $as_echo "$ac_try_echo"; } >&5 27290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 27291 ac_status=$? 27292 if test -s conftest.err; then 27293 sed '10a\ 27294 ... rest of stderr output deleted ... 27295 10q' conftest.err >conftest.er1 27296 cat conftest.er1 >&5 27297 fi 27298 rm -f conftest.er1 conftest.err 27299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27300 test $ac_status = 0; } 27301 done 27302 27303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27304 /* end confdefs.h. */ 27305 27306 int 27307 main () 27308 { 27309 27310 ; 27311 return 0; 27312 } 27313 _ACEOF 27314 ac_clean_files_save=$ac_clean_files 27315 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 27316 # Try to create an executable without -o first, disregard a.out. 27317 # It will help us diagnose broken compilers, and finding out an intuition 27318 # of exeext. 27319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 27320 $as_echo_n "checking whether the C compiler works... " >&6; } 27321 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 27322 27323 # The possible output files: 27324 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 27325 27326 ac_rmfiles= 27327 for ac_file in $ac_files 27328 do 27329 case $ac_file in 27330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 27331 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 27332 esac 27333 done 27334 rm -f $ac_rmfiles 27335 27336 if { { ac_try="$ac_link_default" 27337 case "(($ac_try" in 27338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27339 *) ac_try_echo=$ac_try;; 27340 esac 27341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27342 $as_echo "$ac_try_echo"; } >&5 27343 (eval "$ac_link_default") 2>&5 27344 ac_status=$? 27345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27346 test $ac_status = 0; }; then : 27347 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 27348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 27349 # in a Makefile. We should not override ac_cv_exeext if it was cached, 27350 # so that the user can short-circuit this test for compilers unknown to 27351 # Autoconf. 27352 for ac_file in $ac_files '' 27353 do 27354 test -f "$ac_file" || continue 27355 case $ac_file in 27356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 27357 ;; 27358 [ab].out ) 27359 # We found the default executable, but exeext='' is most 27360 # certainly right. 27361 break;; 27362 *.* ) 27363 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 27364 then :; else 27365 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 27366 fi 27367 # We set ac_cv_exeext here because the later test for it is not 27368 # safe: cross compilers may not add the suffix if given an `-o' 27369 # argument, so we may need to know it at that point already. 27370 # Even if this section looks crufty: it has the advantage of 27371 # actually working. 27372 break;; 27373 * ) 27374 break;; 27375 esac 27376 done 27377 test "$ac_cv_exeext" = no && ac_cv_exeext= 27378 27379 else 27380 ac_file='' 27381 fi 27382 if test -z "$ac_file"; then : 27383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27384 $as_echo "no" >&6; } 27385 $as_echo "$as_me: failed program was:" >&5 27386 sed 's/^/| /' conftest.$ac_ext >&5 27387 27388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27390 as_fn_error 77 "C compiler cannot create executables 27391 See \`config.log' for more details" "$LINENO" 5; } 27392 else 27393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27394 $as_echo "yes" >&6; } 27395 fi 27396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 27397 $as_echo_n "checking for C compiler default output file name... " >&6; } 27398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 27399 $as_echo "$ac_file" >&6; } 27400 ac_exeext=$ac_cv_exeext 27401 27402 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 27403 ac_clean_files=$ac_clean_files_save 27404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 27405 $as_echo_n "checking for suffix of executables... " >&6; } 27406 if { { ac_try="$ac_link" 27407 case "(($ac_try" in 27408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27409 *) ac_try_echo=$ac_try;; 27410 esac 27411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27412 $as_echo "$ac_try_echo"; } >&5 27413 (eval "$ac_link") 2>&5 27414 ac_status=$? 27415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27416 test $ac_status = 0; }; then : 27417 # If both `conftest.exe' and `conftest' are `present' (well, observable) 27418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 27419 # work properly (i.e., refer to `conftest.exe'), while it won't with 27420 # `rm'. 27421 for ac_file in conftest.exe conftest conftest.*; do 27422 test -f "$ac_file" || continue 27423 case $ac_file in 27424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 27425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 27426 break;; 27427 * ) break;; 27428 esac 27429 done 27430 else 27431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27433 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 27434 See \`config.log' for more details" "$LINENO" 5; } 27435 fi 27436 rm -f conftest conftest$ac_cv_exeext 27437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 27438 $as_echo "$ac_cv_exeext" >&6; } 27439 27440 rm -f conftest.$ac_ext 27441 EXEEXT=$ac_cv_exeext 27442 ac_exeext=$EXEEXT 27443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27444 /* end confdefs.h. */ 27445 #include <stdio.h> 27446 int 27447 main () 27448 { 27449 FILE *f = fopen ("conftest.out", "w"); 27450 return ferror (f) || fclose (f) != 0; 27451 27452 ; 27453 return 0; 27454 } 27455 _ACEOF 27456 ac_clean_files="$ac_clean_files conftest.out" 27457 # Check that the compiler produces executables we can run. If not, either 27458 # the compiler is broken, or we cross compile. 27459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 27460 $as_echo_n "checking whether we are cross compiling... " >&6; } 27461 if test "$cross_compiling" != yes; then 27462 { { ac_try="$ac_link" 27463 case "(($ac_try" in 27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27465 *) ac_try_echo=$ac_try;; 27466 esac 27467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27468 $as_echo "$ac_try_echo"; } >&5 27469 (eval "$ac_link") 2>&5 27470 ac_status=$? 27471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27472 test $ac_status = 0; } 27473 if { ac_try='./conftest$ac_cv_exeext' 27474 { { case "(($ac_try" in 27475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27476 *) ac_try_echo=$ac_try;; 27477 esac 27478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27479 $as_echo "$ac_try_echo"; } >&5 27480 (eval "$ac_try") 2>&5 27481 ac_status=$? 27482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27483 test $ac_status = 0; }; }; then 27484 cross_compiling=no 27485 else 27486 if test "$cross_compiling" = maybe; then 27487 cross_compiling=yes 27488 else 27489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27491 as_fn_error $? "cannot run C compiled programs. 27492 If you meant to cross compile, use \`--host'. 27493 See \`config.log' for more details" "$LINENO" 5; } 27494 fi 27495 fi 27496 fi 27497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 27498 $as_echo "$cross_compiling" >&6; } 27499 27500 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 27501 ac_clean_files=$ac_clean_files_save 27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 27503 $as_echo_n "checking for suffix of object files... " >&6; } 27504 if ${ac_cv_objext+:} false; then : 27505 $as_echo_n "(cached) " >&6 27506 else 27507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27508 /* end confdefs.h. */ 27509 27510 int 27511 main () 27512 { 27513 27514 ; 27515 return 0; 27516 } 27517 _ACEOF 27518 rm -f conftest.o conftest.obj 27519 if { { ac_try="$ac_compile" 27520 case "(($ac_try" in 27521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27522 *) ac_try_echo=$ac_try;; 27523 esac 27524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27525 $as_echo "$ac_try_echo"; } >&5 27526 (eval "$ac_compile") 2>&5 27527 ac_status=$? 27528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27529 test $ac_status = 0; }; then : 27530 for ac_file in conftest.o conftest.obj conftest.*; do 27531 test -f "$ac_file" || continue; 27532 case $ac_file in 27533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 27534 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 27535 break;; 27536 esac 27537 done 27538 else 27539 $as_echo "$as_me: failed program was:" >&5 27540 sed 's/^/| /' conftest.$ac_ext >&5 27541 27542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27544 as_fn_error $? "cannot compute suffix of object files: cannot compile 27545 See \`config.log' for more details" "$LINENO" 5; } 27546 fi 27547 rm -f conftest.$ac_cv_objext conftest.$ac_ext 27548 fi 27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 27550 $as_echo "$ac_cv_objext" >&6; } 27551 OBJEXT=$ac_cv_objext 27552 ac_objext=$OBJEXT 27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 27554 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 27555 if ${ac_cv_c_compiler_gnu+:} false; then : 27556 $as_echo_n "(cached) " >&6 27557 else 27558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27559 /* end confdefs.h. */ 27560 27561 int 27562 main () 27563 { 27564 #ifndef __GNUC__ 27565 choke me 27566 #endif 27567 27568 ; 27569 return 0; 27570 } 27571 _ACEOF 27572 if ac_fn_c_try_compile "$LINENO"; then : 27573 ac_compiler_gnu=yes 27574 else 27575 ac_compiler_gnu=no 27576 fi 27577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27578 ac_cv_c_compiler_gnu=$ac_compiler_gnu 27579 27580 fi 27581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 27582 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 27583 if test $ac_compiler_gnu = yes; then 27584 GCC=yes 27585 else 27586 GCC= 27587 fi 27588 ac_test_CFLAGS=${CFLAGS+set} 27589 ac_save_CFLAGS=$CFLAGS 27590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 27591 $as_echo_n "checking whether $CC accepts -g... " >&6; } 27592 if ${ac_cv_prog_cc_g+:} false; then : 27593 $as_echo_n "(cached) " >&6 27594 else 27595 ac_save_c_werror_flag=$ac_c_werror_flag 27596 ac_c_werror_flag=yes 27597 ac_cv_prog_cc_g=no 27598 CFLAGS="-g" 27599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27600 /* end confdefs.h. */ 27601 27602 int 27603 main () 27604 { 27605 27606 ; 27607 return 0; 27608 } 27609 _ACEOF 27610 if ac_fn_c_try_compile "$LINENO"; then : 27611 ac_cv_prog_cc_g=yes 27612 else 27613 CFLAGS="" 27614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27615 /* end confdefs.h. */ 27616 27617 int 27618 main () 27619 { 27620 27621 ; 27622 return 0; 27623 } 27624 _ACEOF 27625 if ac_fn_c_try_compile "$LINENO"; then : 27626 27627 else 27628 ac_c_werror_flag=$ac_save_c_werror_flag 27629 CFLAGS="-g" 27630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27631 /* end confdefs.h. */ 27632 27633 int 27634 main () 27635 { 27636 27637 ; 27638 return 0; 27639 } 27640 _ACEOF 27641 if ac_fn_c_try_compile "$LINENO"; then : 27642 ac_cv_prog_cc_g=yes 27643 fi 27644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27645 fi 27646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27647 fi 27648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27649 ac_c_werror_flag=$ac_save_c_werror_flag 27650 fi 27651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 27652 $as_echo "$ac_cv_prog_cc_g" >&6; } 27653 if test "$ac_test_CFLAGS" = set; then 27654 CFLAGS=$ac_save_CFLAGS 27655 elif test $ac_cv_prog_cc_g = yes; then 27656 if test "$GCC" = yes; then 27657 CFLAGS="-g -O2" 27658 else 27659 CFLAGS="-g" 27660 fi 27661 else 27662 if test "$GCC" = yes; then 27663 CFLAGS="-O2" 27664 else 27665 CFLAGS= 27666 fi 27667 fi 27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 27669 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 27670 if ${ac_cv_prog_cc_c89+:} false; then : 27671 $as_echo_n "(cached) " >&6 27672 else 27673 ac_cv_prog_cc_c89=no 27674 ac_save_CC=$CC 27675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27676 /* end confdefs.h. */ 27677 #include <stdarg.h> 27678 #include <stdio.h> 27679 struct stat; 27680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 27681 struct buf { int x; }; 27682 FILE * (*rcsopen) (struct buf *, struct stat *, int); 27683 static char *e (p, i) 27684 char **p; 27685 int i; 27686 { 27687 return p[i]; 27688 } 27689 static char *f (char * (*g) (char **, int), char **p, ...) 27690 { 27691 char *s; 27692 va_list v; 27693 va_start (v,p); 27694 s = g (p, va_arg (v,int)); 27695 va_end (v); 27696 return s; 27697 } 27698 27699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 27700 function prototypes and stuff, but not '\xHH' hex character constants. 27701 These don't provoke an error unfortunately, instead are silently treated 27702 as 'x'. The following induces an error, until -std is added to get 27703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 27704 array size at least. It's necessary to write '\x00'==0 to get something 27705 that's true only with -std. */ 27706 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 27707 27708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 27709 inside strings and character constants. */ 27710 #define FOO(x) 'x' 27711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 27712 27713 int test (int i, double x); 27714 struct s1 {int (*f) (int a);}; 27715 struct s2 {int (*f) (double a);}; 27716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 27717 int argc; 27718 char **argv; 27719 int 27720 main () 27721 { 27722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 27723 ; 27724 return 0; 27725 } 27726 _ACEOF 27727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 27728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 27729 do 27730 CC="$ac_save_CC $ac_arg" 27731 if ac_fn_c_try_compile "$LINENO"; then : 27732 ac_cv_prog_cc_c89=$ac_arg 27733 fi 27734 rm -f core conftest.err conftest.$ac_objext 27735 test "x$ac_cv_prog_cc_c89" != "xno" && break 27736 done 27737 rm -f conftest.$ac_ext 27738 CC=$ac_save_CC 27739 27740 fi 27741 # AC_CACHE_VAL 27742 case "x$ac_cv_prog_cc_c89" in 27743 x) 27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 27745 $as_echo "none needed" >&6; } ;; 27746 xno) 27747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 27748 $as_echo "unsupported" >&6; } ;; 27749 *) 27750 CC="$CC $ac_cv_prog_cc_c89" 27751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 27752 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 27753 esac 27754 if test "x$ac_cv_prog_cc_c89" != xno; then : 27755 27756 fi 27757 27758 ac_ext=cpp 27759 ac_cpp='$CXXCPP $CPPFLAGS' 27760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27763 27764 27765 27766 COMPILER_NAME=C++ 27767 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 27768 27769 if test "x$CXX" != x; then 27770 # User has supplied compiler name already, always let that override. 27771 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 27772 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 27773 if test "x`basename $CXX`" = "x$CXX"; then 27774 # A command without a complete path is provided, search $PATH. 27775 27776 for ac_prog in $CXX 27777 do 27778 # Extract the first word of "$ac_prog", so it can be a program name with args. 27779 set dummy $ac_prog; ac_word=$2 27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27781 $as_echo_n "checking for $ac_word... " >&6; } 27782 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 27783 $as_echo_n "(cached) " >&6 27784 else 27785 case $POTENTIAL_CXX in 27786 [\\/]* | ?:[\\/]*) 27787 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 27788 ;; 27789 *) 27790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27791 for as_dir in $PATH 27792 do 27793 IFS=$as_save_IFS 27794 test -z "$as_dir" && as_dir=. 27795 for ac_exec_ext in '' $ac_executable_extensions; do 27796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27797 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 27798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27799 break 2 27800 fi 27801 done 27802 done 27803 IFS=$as_save_IFS 27804 27805 ;; 27806 esac 27807 fi 27808 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 27809 if test -n "$POTENTIAL_CXX"; then 27810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 27811 $as_echo "$POTENTIAL_CXX" >&6; } 27812 else 27813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27814 $as_echo "no" >&6; } 27815 fi 27816 27817 27818 test -n "$POTENTIAL_CXX" && break 27819 done 27820 27821 if test "x$POTENTIAL_CXX" != x; then 27822 CXX=$POTENTIAL_CXX 27823 else 27824 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 27825 fi 27826 else 27827 # Otherwise it might already be a complete path 27828 if test ! -x "$CXX"; then 27829 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 27830 fi 27831 fi 27832 else 27833 # No user supplied value. Locate compiler ourselves. 27834 27835 # If we are cross compiling, assume cross compilation tools follows the 27836 # cross compilation standard where they are prefixed with the autoconf 27837 # standard name for the target. For example the binary 27838 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27839 # If we are not cross compiling, then the default compiler name will be 27840 # used. 27841 27842 CXX= 27843 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 27844 # before checking the rest of the PATH. 27845 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27846 # step, this should not be necessary. 27847 if test -n "$TOOLCHAIN_PATH"; then 27848 PATH_save="$PATH" 27849 PATH="$TOOLCHAIN_PATH" 27850 for ac_prog in $SEARCH_LIST 27851 do 27852 # Extract the first word of "$ac_prog", so it can be a program name with args. 27853 set dummy $ac_prog; ac_word=$2 27854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27855 $as_echo_n "checking for $ac_word... " >&6; } 27856 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 27857 $as_echo_n "(cached) " >&6 27858 else 27859 case $TOOLCHAIN_PATH_CXX in 27860 [\\/]* | ?:[\\/]*) 27861 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 27862 ;; 27863 *) 27864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27865 for as_dir in $PATH 27866 do 27867 IFS=$as_save_IFS 27868 test -z "$as_dir" && as_dir=. 27869 for ac_exec_ext in '' $ac_executable_extensions; do 27870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27871 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 27872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27873 break 2 27874 fi 27875 done 27876 done 27877 IFS=$as_save_IFS 27878 27879 ;; 27880 esac 27881 fi 27882 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 27883 if test -n "$TOOLCHAIN_PATH_CXX"; then 27884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 27885 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 27886 else 27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27888 $as_echo "no" >&6; } 27889 fi 27890 27891 27892 test -n "$TOOLCHAIN_PATH_CXX" && break 27893 done 27894 27895 CXX=$TOOLCHAIN_PATH_CXX 27896 PATH="$PATH_save" 27897 fi 27898 27899 # AC_PATH_PROGS can't be run multiple times with the same variable, 27900 # so create a new name for this run. 27901 if test "x$CXX" = x; then 27902 for ac_prog in $TOOLCHAIN_CXX_BINARY 27903 do 27904 # Extract the first word of "$ac_prog", so it can be a program name with args. 27905 set dummy $ac_prog; ac_word=$2 27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27907 $as_echo_n "checking for $ac_word... " >&6; } 27908 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 27909 $as_echo_n "(cached) " >&6 27910 else 27911 case $POTENTIAL_CXX in 27912 [\\/]* | ?:[\\/]*) 27913 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 27914 ;; 27915 *) 27916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27917 for as_dir in $PATH 27918 do 27919 IFS=$as_save_IFS 27920 test -z "$as_dir" && as_dir=. 27921 for ac_exec_ext in '' $ac_executable_extensions; do 27922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27923 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 27924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27925 break 2 27926 fi 27927 done 27928 done 27929 IFS=$as_save_IFS 27930 27931 ;; 27932 esac 27933 fi 27934 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 27935 if test -n "$POTENTIAL_CXX"; then 27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 27937 $as_echo "$POTENTIAL_CXX" >&6; } 27938 else 27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27940 $as_echo "no" >&6; } 27941 fi 27942 27943 27944 test -n "$POTENTIAL_CXX" && break 27945 done 27946 27947 CXX=$POTENTIAL_CXX 27948 fi 27949 27950 if test "x$CXX" = x; then 27951 27952 # Print a helpful message on how to acquire the necessary build dependency. 27953 # devkit is the help tag: freetype, cups, pulse, alsa etc 27954 MISSING_DEPENDENCY=devkit 27955 27956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27957 cygwin_help $MISSING_DEPENDENCY 27958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27959 msys_help $MISSING_DEPENDENCY 27960 else 27961 PKGHANDLER_COMMAND= 27962 27963 case $PKGHANDLER in 27964 apt-get) 27965 apt_help $MISSING_DEPENDENCY ;; 27966 yum) 27967 yum_help $MISSING_DEPENDENCY ;; 27968 port) 27969 port_help $MISSING_DEPENDENCY ;; 27970 pkgutil) 27971 pkgutil_help $MISSING_DEPENDENCY ;; 27972 pkgadd) 27973 pkgadd_help $MISSING_DEPENDENCY ;; 27974 esac 27975 27976 if test "x$PKGHANDLER_COMMAND" != x; then 27977 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27978 fi 27979 fi 27980 27981 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27982 fi 27983 fi 27984 27985 # Now we have a compiler binary in CXX. Make sure it's okay. 27986 27987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27988 27989 # First separate the path from the arguments. This will split at the first 27990 # space. 27991 complete="$CXX" 27992 path="${complete%% *}" 27993 tmp="$complete EOL" 27994 arguments="${tmp#* }" 27995 27996 # Input might be given as Windows format, start by converting to 27997 # unix format. 27998 new_path=`$CYGPATH -u "$path"` 27999 28000 # Now try to locate executable using which 28001 new_path=`$WHICH "$new_path" 2> /dev/null` 28002 # bat and cmd files are not always considered executable in cygwin causing which 28003 # to not find them 28004 if test "x$new_path" = x \ 28005 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28006 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28007 new_path=`$CYGPATH -u "$path"` 28008 fi 28009 if test "x$new_path" = x; then 28010 # Oops. Which didn't find the executable. 28011 # The splitting of arguments from the executable at a space might have been incorrect, 28012 # since paths with space are more likely in Windows. Give it another try with the whole 28013 # argument. 28014 path="$complete" 28015 arguments="EOL" 28016 new_path=`$CYGPATH -u "$path"` 28017 new_path=`$WHICH "$new_path" 2> /dev/null` 28018 # bat and cmd files are not always considered executable in cygwin causing which 28019 # to not find them 28020 if test "x$new_path" = x \ 28021 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28022 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28023 new_path=`$CYGPATH -u "$path"` 28024 fi 28025 if test "x$new_path" = x; then 28026 # It's still not found. Now this is an unrecoverable error. 28027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28028 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28029 has_space=`$ECHO "$complete" | $GREP " "` 28030 if test "x$has_space" != x; then 28031 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28032 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28033 fi 28034 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28035 fi 28036 fi 28037 28038 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28039 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28040 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28041 # "foo.exe" is OK but "foo" is an error. 28042 # 28043 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28044 # It is also a way to make sure we got the proper file name for the real test later on. 28045 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28046 if test "x$test_shortpath" = x; then 28047 # Short path failed, file does not exist as specified. 28048 # Try adding .exe or .cmd 28049 if test -f "${new_path}.exe"; then 28050 input_to_shortpath="${new_path}.exe" 28051 elif test -f "${new_path}.cmd"; then 28052 input_to_shortpath="${new_path}.cmd" 28053 else 28054 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 28055 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 28056 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28057 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28058 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28059 fi 28060 else 28061 input_to_shortpath="$new_path" 28062 fi 28063 28064 # Call helper function which possibly converts this using DOS-style short mode. 28065 # If so, the updated path is stored in $new_path. 28066 new_path="$input_to_shortpath" 28067 28068 input_path="$input_to_shortpath" 28069 # Check if we need to convert this using DOS-style short mode. If the path 28070 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28071 # take no chances and rewrite it. 28072 # Note: m4 eats our [], so we need to use [ and ] instead. 28073 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28074 if test "x$has_forbidden_chars" != x; then 28075 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28076 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28077 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28078 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28079 # Going to short mode and back again did indeed matter. Since short mode is 28080 # case insensitive, let's make it lowercase to improve readability. 28081 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28082 # Now convert it back to Unix-stile (cygpath) 28083 input_path=`$CYGPATH -u "$shortmode_path"` 28084 new_path="$input_path" 28085 fi 28086 fi 28087 28088 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28089 if test "x$test_cygdrive_prefix" = x; then 28090 # As a simple fix, exclude /usr/bin since it's not a real path. 28091 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28092 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28093 # a path prefixed by /cygdrive for fixpath to work. 28094 new_path="$CYGWIN_ROOT_PATH$input_path" 28095 fi 28096 fi 28097 28098 # remove trailing .exe if any 28099 new_path="${new_path/%.exe/}" 28100 28101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28102 28103 # First separate the path from the arguments. This will split at the first 28104 # space. 28105 complete="$CXX" 28106 path="${complete%% *}" 28107 tmp="$complete EOL" 28108 arguments="${tmp#* }" 28109 28110 # Input might be given as Windows format, start by converting to 28111 # unix format. 28112 new_path="$path" 28113 28114 windows_path="$new_path" 28115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28116 unix_path=`$CYGPATH -u "$windows_path"` 28117 new_path="$unix_path" 28118 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28119 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28120 new_path="$unix_path" 28121 fi 28122 28123 28124 # Now try to locate executable using which 28125 new_path=`$WHICH "$new_path" 2> /dev/null` 28126 28127 if test "x$new_path" = x; then 28128 # Oops. Which didn't find the executable. 28129 # The splitting of arguments from the executable at a space might have been incorrect, 28130 # since paths with space are more likely in Windows. Give it another try with the whole 28131 # argument. 28132 path="$complete" 28133 arguments="EOL" 28134 new_path="$path" 28135 28136 windows_path="$new_path" 28137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28138 unix_path=`$CYGPATH -u "$windows_path"` 28139 new_path="$unix_path" 28140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28141 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28142 new_path="$unix_path" 28143 fi 28144 28145 28146 new_path=`$WHICH "$new_path" 2> /dev/null` 28147 28148 if test "x$new_path" = x; then 28149 # It's still not found. Now this is an unrecoverable error. 28150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28151 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28152 has_space=`$ECHO "$complete" | $GREP " "` 28153 if test "x$has_space" != x; then 28154 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28155 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28156 fi 28157 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28158 fi 28159 fi 28160 28161 # Now new_path has a complete unix path to the binary 28162 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28163 # Keep paths in /bin as-is, but remove trailing .exe if any 28164 new_path="${new_path/%.exe/}" 28165 # Do not save /bin paths to all_fixpath_prefixes! 28166 else 28167 # Not in mixed or Windows style, start by that. 28168 new_path=`cmd //c echo $new_path` 28169 28170 input_path="$new_path" 28171 # Check if we need to convert this using DOS-style short mode. If the path 28172 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28173 # take no chances and rewrite it. 28174 # Note: m4 eats our [], so we need to use [ and ] instead. 28175 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28176 if test "x$has_forbidden_chars" != x; then 28177 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28178 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28179 fi 28180 28181 # Output is in $new_path 28182 28183 windows_path="$new_path" 28184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28185 unix_path=`$CYGPATH -u "$windows_path"` 28186 new_path="$unix_path" 28187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28188 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28189 new_path="$unix_path" 28190 fi 28191 28192 # remove trailing .exe if any 28193 new_path="${new_path/%.exe/}" 28194 28195 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28196 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28197 fi 28198 28199 else 28200 # We're on a posix platform. Hooray! :) 28201 # First separate the path from the arguments. This will split at the first 28202 # space. 28203 complete="$CXX" 28204 path="${complete%% *}" 28205 tmp="$complete EOL" 28206 arguments="${tmp#* }" 28207 28208 # Cannot rely on the command "which" here since it doesn't always work. 28209 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28210 if test -z "$is_absolute_path"; then 28211 # Path to executable is not absolute. Find it. 28212 IFS_save="$IFS" 28213 IFS=: 28214 for p in $PATH; do 28215 if test -f "$p/$path" && test -x "$p/$path"; then 28216 new_path="$p/$path" 28217 break 28218 fi 28219 done 28220 IFS="$IFS_save" 28221 else 28222 # This is an absolute path, we can use it without further modifications. 28223 new_path="$path" 28224 fi 28225 28226 if test "x$new_path" = x; then 28227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28228 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28229 has_space=`$ECHO "$complete" | $GREP " "` 28230 if test "x$has_space" != x; then 28231 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28232 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28233 fi 28234 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28235 fi 28236 fi 28237 28238 # Now join together the path and the arguments once again 28239 if test "x$arguments" != xEOL; then 28240 new_complete="$new_path ${arguments% *}" 28241 else 28242 new_complete="$new_path" 28243 fi 28244 28245 if test "x$complete" != "x$new_complete"; then 28246 CXX="$new_complete" 28247 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 28248 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 28249 fi 28250 28251 TEST_COMPILER="$CXX" 28252 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28253 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28254 if test "x$OPENJDK_BUILD_OS" != xaix; then 28255 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 28257 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 28258 28259 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28260 # Follow a chain of symbolic links. Use readlink 28261 # where it exists, else fall back to horribly 28262 # complicated shell code. 28263 if test "x$READLINK_TESTED" != yes; then 28264 # On MacOSX there is a readlink tool with a different 28265 # purpose than the GNU readlink tool. Check the found readlink. 28266 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28267 if test "x$ISGNU" = x; then 28268 # A readlink that we do not know how to use. 28269 # Are there other non-GNU readlinks out there? 28270 READLINK_TESTED=yes 28271 READLINK= 28272 fi 28273 fi 28274 28275 if test "x$READLINK" != x; then 28276 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28277 else 28278 # Save the current directory for restoring afterwards 28279 STARTDIR=$PWD 28280 COUNTER=0 28281 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28282 sym_link_file=`$BASENAME $TEST_COMPILER` 28283 cd $sym_link_dir 28284 # Use -P flag to resolve symlinks in directories. 28285 cd `$THEPWDCMD -P` 28286 sym_link_dir=`$THEPWDCMD -P` 28287 # Resolve file symlinks 28288 while test $COUNTER -lt 20; do 28289 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28290 if test "x$ISLINK" == x; then 28291 # This is not a symbolic link! We are done! 28292 break 28293 fi 28294 # Again resolve directory symlinks since the target of the just found 28295 # link could be in a different directory 28296 cd `$DIRNAME $ISLINK` 28297 sym_link_dir=`$THEPWDCMD -P` 28298 sym_link_file=`$BASENAME $ISLINK` 28299 let COUNTER=COUNTER+1 28300 done 28301 cd $STARTDIR 28302 TEST_COMPILER=$sym_link_dir/$sym_link_file 28303 fi 28304 fi 28305 28306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28307 $as_echo "$TEST_COMPILER" >&6; } 28308 fi 28309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 28310 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 28311 28312 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28313 if test "x$COMPILER_BASENAME" = "xccache"; then 28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28315 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28316 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28317 # We want to control ccache invocation ourselves, so ignore this cc and try 28318 # searching again. 28319 28320 # Remove the path to the fake ccache cc from the PATH 28321 RETRY_COMPILER_SAVED_PATH="$PATH" 28322 COMPILER_DIRNAME=`$DIRNAME $CXX` 28323 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28324 28325 # Try again looking for our compiler 28326 if test -n "$ac_tool_prefix"; then 28327 for ac_prog in $TOOLCHAIN_CXX_BINARY 28328 do 28329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28332 $as_echo_n "checking for $ac_word... " >&6; } 28333 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 28334 $as_echo_n "(cached) " >&6 28335 else 28336 if test -n "$PROPER_COMPILER_CXX"; then 28337 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 28338 else 28339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28340 for as_dir in $PATH 28341 do 28342 IFS=$as_save_IFS 28343 test -z "$as_dir" && as_dir=. 28344 for ac_exec_ext in '' $ac_executable_extensions; do 28345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28346 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 28347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28348 break 2 28349 fi 28350 done 28351 done 28352 IFS=$as_save_IFS 28353 28354 fi 28355 fi 28356 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 28357 if test -n "$PROPER_COMPILER_CXX"; then 28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 28359 $as_echo "$PROPER_COMPILER_CXX" >&6; } 28360 else 28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28362 $as_echo "no" >&6; } 28363 fi 28364 28365 28366 test -n "$PROPER_COMPILER_CXX" && break 28367 done 28368 fi 28369 if test -z "$PROPER_COMPILER_CXX"; then 28370 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 28371 for ac_prog in $TOOLCHAIN_CXX_BINARY 28372 do 28373 # Extract the first word of "$ac_prog", so it can be a program name with args. 28374 set dummy $ac_prog; ac_word=$2 28375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28376 $as_echo_n "checking for $ac_word... " >&6; } 28377 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 28378 $as_echo_n "(cached) " >&6 28379 else 28380 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 28381 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 28382 else 28383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28384 for as_dir in $PATH 28385 do 28386 IFS=$as_save_IFS 28387 test -z "$as_dir" && as_dir=. 28388 for ac_exec_ext in '' $ac_executable_extensions; do 28389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28390 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 28391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28392 break 2 28393 fi 28394 done 28395 done 28396 IFS=$as_save_IFS 28397 28398 fi 28399 fi 28400 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 28401 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 28403 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 28404 else 28405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28406 $as_echo "no" >&6; } 28407 fi 28408 28409 28410 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 28411 done 28412 28413 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 28414 PROPER_COMPILER_CXX="" 28415 else 28416 case $cross_compiling:$ac_tool_warned in 28417 yes:) 28418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28420 ac_tool_warned=yes ;; 28421 esac 28422 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 28423 fi 28424 fi 28425 28426 28427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28428 28429 # First separate the path from the arguments. This will split at the first 28430 # space. 28431 complete="$PROPER_COMPILER_CXX" 28432 path="${complete%% *}" 28433 tmp="$complete EOL" 28434 arguments="${tmp#* }" 28435 28436 # Input might be given as Windows format, start by converting to 28437 # unix format. 28438 new_path=`$CYGPATH -u "$path"` 28439 28440 # Now try to locate executable using which 28441 new_path=`$WHICH "$new_path" 2> /dev/null` 28442 # bat and cmd files are not always considered executable in cygwin causing which 28443 # to not find them 28444 if test "x$new_path" = x \ 28445 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28446 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28447 new_path=`$CYGPATH -u "$path"` 28448 fi 28449 if test "x$new_path" = x; then 28450 # Oops. Which didn't find the executable. 28451 # The splitting of arguments from the executable at a space might have been incorrect, 28452 # since paths with space are more likely in Windows. Give it another try with the whole 28453 # argument. 28454 path="$complete" 28455 arguments="EOL" 28456 new_path=`$CYGPATH -u "$path"` 28457 new_path=`$WHICH "$new_path" 2> /dev/null` 28458 # bat and cmd files are not always considered executable in cygwin causing which 28459 # to not find them 28460 if test "x$new_path" = x \ 28461 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28462 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28463 new_path=`$CYGPATH -u "$path"` 28464 fi 28465 if test "x$new_path" = x; then 28466 # It's still not found. Now this is an unrecoverable error. 28467 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 28468 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 28469 has_space=`$ECHO "$complete" | $GREP " "` 28470 if test "x$has_space" != x; then 28471 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28472 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28473 fi 28474 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 28475 fi 28476 fi 28477 28478 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28479 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28480 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28481 # "foo.exe" is OK but "foo" is an error. 28482 # 28483 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28484 # It is also a way to make sure we got the proper file name for the real test later on. 28485 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28486 if test "x$test_shortpath" = x; then 28487 # Short path failed, file does not exist as specified. 28488 # Try adding .exe or .cmd 28489 if test -f "${new_path}.exe"; then 28490 input_to_shortpath="${new_path}.exe" 28491 elif test -f "${new_path}.cmd"; then 28492 input_to_shortpath="${new_path}.cmd" 28493 else 28494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 28495 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 28496 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28497 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28498 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 28499 fi 28500 else 28501 input_to_shortpath="$new_path" 28502 fi 28503 28504 # Call helper function which possibly converts this using DOS-style short mode. 28505 # If so, the updated path is stored in $new_path. 28506 new_path="$input_to_shortpath" 28507 28508 input_path="$input_to_shortpath" 28509 # Check if we need to convert this using DOS-style short mode. If the path 28510 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28511 # take no chances and rewrite it. 28512 # Note: m4 eats our [], so we need to use [ and ] instead. 28513 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28514 if test "x$has_forbidden_chars" != x; then 28515 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28516 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28517 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28518 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28519 # Going to short mode and back again did indeed matter. Since short mode is 28520 # case insensitive, let's make it lowercase to improve readability. 28521 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28522 # Now convert it back to Unix-stile (cygpath) 28523 input_path=`$CYGPATH -u "$shortmode_path"` 28524 new_path="$input_path" 28525 fi 28526 fi 28527 28528 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28529 if test "x$test_cygdrive_prefix" = x; then 28530 # As a simple fix, exclude /usr/bin since it's not a real path. 28531 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28532 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28533 # a path prefixed by /cygdrive for fixpath to work. 28534 new_path="$CYGWIN_ROOT_PATH$input_path" 28535 fi 28536 fi 28537 28538 # remove trailing .exe if any 28539 new_path="${new_path/%.exe/}" 28540 28541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28542 28543 # First separate the path from the arguments. This will split at the first 28544 # space. 28545 complete="$PROPER_COMPILER_CXX" 28546 path="${complete%% *}" 28547 tmp="$complete EOL" 28548 arguments="${tmp#* }" 28549 28550 # Input might be given as Windows format, start by converting to 28551 # unix format. 28552 new_path="$path" 28553 28554 windows_path="$new_path" 28555 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28556 unix_path=`$CYGPATH -u "$windows_path"` 28557 new_path="$unix_path" 28558 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28559 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28560 new_path="$unix_path" 28561 fi 28562 28563 28564 # Now try to locate executable using which 28565 new_path=`$WHICH "$new_path" 2> /dev/null` 28566 28567 if test "x$new_path" = x; then 28568 # Oops. Which didn't find the executable. 28569 # The splitting of arguments from the executable at a space might have been incorrect, 28570 # since paths with space are more likely in Windows. Give it another try with the whole 28571 # argument. 28572 path="$complete" 28573 arguments="EOL" 28574 new_path="$path" 28575 28576 windows_path="$new_path" 28577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28578 unix_path=`$CYGPATH -u "$windows_path"` 28579 new_path="$unix_path" 28580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28581 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28582 new_path="$unix_path" 28583 fi 28584 28585 28586 new_path=`$WHICH "$new_path" 2> /dev/null` 28587 28588 if test "x$new_path" = x; then 28589 # It's still not found. Now this is an unrecoverable error. 28590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 28591 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 28592 has_space=`$ECHO "$complete" | $GREP " "` 28593 if test "x$has_space" != x; then 28594 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28595 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28596 fi 28597 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 28598 fi 28599 fi 28600 28601 # Now new_path has a complete unix path to the binary 28602 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28603 # Keep paths in /bin as-is, but remove trailing .exe if any 28604 new_path="${new_path/%.exe/}" 28605 # Do not save /bin paths to all_fixpath_prefixes! 28606 else 28607 # Not in mixed or Windows style, start by that. 28608 new_path=`cmd //c echo $new_path` 28609 28610 input_path="$new_path" 28611 # Check if we need to convert this using DOS-style short mode. If the path 28612 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28613 # take no chances and rewrite it. 28614 # Note: m4 eats our [], so we need to use [ and ] instead. 28615 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28616 if test "x$has_forbidden_chars" != x; then 28617 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28618 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28619 fi 28620 28621 # Output is in $new_path 28622 28623 windows_path="$new_path" 28624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28625 unix_path=`$CYGPATH -u "$windows_path"` 28626 new_path="$unix_path" 28627 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28628 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28629 new_path="$unix_path" 28630 fi 28631 28632 # remove trailing .exe if any 28633 new_path="${new_path/%.exe/}" 28634 28635 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28636 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28637 fi 28638 28639 else 28640 # We're on a posix platform. Hooray! :) 28641 # First separate the path from the arguments. This will split at the first 28642 # space. 28643 complete="$PROPER_COMPILER_CXX" 28644 path="${complete%% *}" 28645 tmp="$complete EOL" 28646 arguments="${tmp#* }" 28647 28648 # Cannot rely on the command "which" here since it doesn't always work. 28649 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28650 if test -z "$is_absolute_path"; then 28651 # Path to executable is not absolute. Find it. 28652 IFS_save="$IFS" 28653 IFS=: 28654 for p in $PATH; do 28655 if test -f "$p/$path" && test -x "$p/$path"; then 28656 new_path="$p/$path" 28657 break 28658 fi 28659 done 28660 IFS="$IFS_save" 28661 else 28662 # This is an absolute path, we can use it without further modifications. 28663 new_path="$path" 28664 fi 28665 28666 if test "x$new_path" = x; then 28667 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 28668 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 28669 has_space=`$ECHO "$complete" | $GREP " "` 28670 if test "x$has_space" != x; then 28671 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28672 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28673 fi 28674 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 28675 fi 28676 fi 28677 28678 # Now join together the path and the arguments once again 28679 if test "x$arguments" != xEOL; then 28680 new_complete="$new_path ${arguments% *}" 28681 else 28682 new_complete="$new_path" 28683 fi 28684 28685 if test "x$complete" != "x$new_complete"; then 28686 PROPER_COMPILER_CXX="$new_complete" 28687 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 28688 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 28689 fi 28690 28691 PATH="$RETRY_COMPILER_SAVED_PATH" 28692 28693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 28694 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 28695 28696 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28697 # Follow a chain of symbolic links. Use readlink 28698 # where it exists, else fall back to horribly 28699 # complicated shell code. 28700 if test "x$READLINK_TESTED" != yes; then 28701 # On MacOSX there is a readlink tool with a different 28702 # purpose than the GNU readlink tool. Check the found readlink. 28703 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28704 if test "x$ISGNU" = x; then 28705 # A readlink that we do not know how to use. 28706 # Are there other non-GNU readlinks out there? 28707 READLINK_TESTED=yes 28708 READLINK= 28709 fi 28710 fi 28711 28712 if test "x$READLINK" != x; then 28713 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 28714 else 28715 # Save the current directory for restoring afterwards 28716 STARTDIR=$PWD 28717 COUNTER=0 28718 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 28719 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 28720 cd $sym_link_dir 28721 # Use -P flag to resolve symlinks in directories. 28722 cd `$THEPWDCMD -P` 28723 sym_link_dir=`$THEPWDCMD -P` 28724 # Resolve file symlinks 28725 while test $COUNTER -lt 20; do 28726 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28727 if test "x$ISLINK" == x; then 28728 # This is not a symbolic link! We are done! 28729 break 28730 fi 28731 # Again resolve directory symlinks since the target of the just found 28732 # link could be in a different directory 28733 cd `$DIRNAME $ISLINK` 28734 sym_link_dir=`$THEPWDCMD -P` 28735 sym_link_file=`$BASENAME $ISLINK` 28736 let COUNTER=COUNTER+1 28737 done 28738 cd $STARTDIR 28739 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 28740 fi 28741 fi 28742 28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 28744 $as_echo "$PROPER_COMPILER_CXX" >&6; } 28745 CXX="$PROPER_COMPILER_CXX" 28746 else 28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 28748 $as_echo "no, keeping CXX" >&6; } 28749 CXX="$TEST_COMPILER" 28750 fi 28751 28752 28753 COMPILER=$CXX 28754 COMPILER_NAME=$COMPILER_NAME 28755 28756 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28757 # cc -V output typically looks like 28758 # cc: Sun C 5.12 Linux_i386 2011/11/16 28759 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28760 # Check that this is likely to be the Solaris Studio cc. 28761 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28762 if test $? -ne 0; then 28763 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28764 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28765 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28766 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28767 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28768 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28769 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28770 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28771 fi 28772 # Remove usage instructions (if present), and 28773 # collapse compiler output into a single line 28774 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28775 $SED -e 's/ *[Uu]sage:.*//'` 28776 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28777 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28778 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28779 # xlc -qversion output typically looks like 28780 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28781 # Version: 11.01.0000.0015 28782 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28783 # Check that this is likely to be the IBM XL C compiler. 28784 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28785 if test $? -ne 0; then 28786 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28787 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28788 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28789 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28790 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28791 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28792 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28793 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28794 fi 28795 # Collapse compiler output into a single line 28796 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28797 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28798 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28799 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28800 # There is no specific version flag, but all output starts with a version string. 28801 # First line typically looks something like: 28802 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28803 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28804 # Check that this is likely to be Microsoft CL.EXE. 28805 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28806 if test $? -ne 0; then 28807 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28808 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28809 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28810 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28811 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28812 fi 28813 # Collapse compiler output into a single line 28814 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28815 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28816 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28817 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28818 # gcc --version output typically looks like 28819 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28820 # Copyright (C) 2013 Free Software Foundation, Inc. 28821 # This is free software; see the source for copying conditions. There is NO 28822 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28823 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28824 # Check that this is likely to be GCC. 28825 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28826 if test $? -ne 0; then 28827 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28828 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28829 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28830 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28831 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28832 fi 28833 # Remove Copyright and legalese from version string, and 28834 # collapse into a single line 28835 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28836 $SED -e 's/ *Copyright .*//'` 28837 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28838 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28839 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28840 # clang --version output typically looks like 28841 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28842 # clang version 3.3 (tags/RELEASE_33/final) 28843 # or 28844 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28845 # Target: x86_64-pc-linux-gnu 28846 # Thread model: posix 28847 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28848 # Check that this is likely to be clang 28849 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28850 if test $? -ne 0; then 28851 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28852 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28853 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28854 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28855 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28856 fi 28857 # Collapse compiler output into a single line 28858 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28859 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28860 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28861 28862 else 28863 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28864 fi 28865 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28866 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28867 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28868 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 28869 28870 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28871 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28872 28873 28874 # Now that we have resolved CXX ourself, let autoconf have its go at it 28875 ac_ext=cpp 28876 ac_cpp='$CXXCPP $CPPFLAGS' 28877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28880 if test -z "$CXX"; then 28881 if test -n "$CCC"; then 28882 CXX=$CCC 28883 else 28884 if test -n "$ac_tool_prefix"; then 28885 for ac_prog in $CXX 28886 do 28887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28890 $as_echo_n "checking for $ac_word... " >&6; } 28891 if ${ac_cv_prog_CXX+:} false; then : 28892 $as_echo_n "(cached) " >&6 28893 else 28894 if test -n "$CXX"; then 28895 ac_cv_prog_CXX="$CXX" # Let the user override the test. 28896 else 28897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28898 for as_dir in $PATH 28899 do 28900 IFS=$as_save_IFS 28901 test -z "$as_dir" && as_dir=. 28902 for ac_exec_ext in '' $ac_executable_extensions; do 28903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28904 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 28905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28906 break 2 28907 fi 28908 done 28909 done 28910 IFS=$as_save_IFS 28911 28912 fi 28913 fi 28914 CXX=$ac_cv_prog_CXX 28915 if test -n "$CXX"; then 28916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 28917 $as_echo "$CXX" >&6; } 28918 else 28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28920 $as_echo "no" >&6; } 28921 fi 28922 28923 28924 test -n "$CXX" && break 28925 done 28926 fi 28927 if test -z "$CXX"; then 28928 ac_ct_CXX=$CXX 28929 for ac_prog in $CXX 28930 do 28931 # Extract the first word of "$ac_prog", so it can be a program name with args. 28932 set dummy $ac_prog; ac_word=$2 28933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28934 $as_echo_n "checking for $ac_word... " >&6; } 28935 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 28936 $as_echo_n "(cached) " >&6 28937 else 28938 if test -n "$ac_ct_CXX"; then 28939 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 28940 else 28941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28942 for as_dir in $PATH 28943 do 28944 IFS=$as_save_IFS 28945 test -z "$as_dir" && as_dir=. 28946 for ac_exec_ext in '' $ac_executable_extensions; do 28947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28948 ac_cv_prog_ac_ct_CXX="$ac_prog" 28949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28950 break 2 28951 fi 28952 done 28953 done 28954 IFS=$as_save_IFS 28955 28956 fi 28957 fi 28958 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 28959 if test -n "$ac_ct_CXX"; then 28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 28961 $as_echo "$ac_ct_CXX" >&6; } 28962 else 28963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28964 $as_echo "no" >&6; } 28965 fi 28966 28967 28968 test -n "$ac_ct_CXX" && break 28969 done 28970 28971 if test "x$ac_ct_CXX" = x; then 28972 CXX="g++" 28973 else 28974 case $cross_compiling:$ac_tool_warned in 28975 yes:) 28976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28978 ac_tool_warned=yes ;; 28979 esac 28980 CXX=$ac_ct_CXX 28981 fi 28982 fi 28983 28984 fi 28985 fi 28986 # Provide some information about the compiler. 28987 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 28988 set X $ac_compile 28989 ac_compiler=$2 28990 for ac_option in --version -v -V -qversion; do 28991 { { ac_try="$ac_compiler $ac_option >&5" 28992 case "(($ac_try" in 28993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28994 *) ac_try_echo=$ac_try;; 28995 esac 28996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28997 $as_echo "$ac_try_echo"; } >&5 28998 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28999 ac_status=$? 29000 if test -s conftest.err; then 29001 sed '10a\ 29002 ... rest of stderr output deleted ... 29003 10q' conftest.err >conftest.er1 29004 cat conftest.er1 >&5 29005 fi 29006 rm -f conftest.er1 conftest.err 29007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29008 test $ac_status = 0; } 29009 done 29010 29011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 29012 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 29013 if ${ac_cv_cxx_compiler_gnu+:} false; then : 29014 $as_echo_n "(cached) " >&6 29015 else 29016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29017 /* end confdefs.h. */ 29018 29019 int 29020 main () 29021 { 29022 #ifndef __GNUC__ 29023 choke me 29024 #endif 29025 29026 ; 29027 return 0; 29028 } 29029 _ACEOF 29030 if ac_fn_cxx_try_compile "$LINENO"; then : 29031 ac_compiler_gnu=yes 29032 else 29033 ac_compiler_gnu=no 29034 fi 29035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29036 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 29037 29038 fi 29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 29040 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 29041 if test $ac_compiler_gnu = yes; then 29042 GXX=yes 29043 else 29044 GXX= 29045 fi 29046 ac_test_CXXFLAGS=${CXXFLAGS+set} 29047 ac_save_CXXFLAGS=$CXXFLAGS 29048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 29049 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 29050 if ${ac_cv_prog_cxx_g+:} false; then : 29051 $as_echo_n "(cached) " >&6 29052 else 29053 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 29054 ac_cxx_werror_flag=yes 29055 ac_cv_prog_cxx_g=no 29056 CXXFLAGS="-g" 29057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29058 /* end confdefs.h. */ 29059 29060 int 29061 main () 29062 { 29063 29064 ; 29065 return 0; 29066 } 29067 _ACEOF 29068 if ac_fn_cxx_try_compile "$LINENO"; then : 29069 ac_cv_prog_cxx_g=yes 29070 else 29071 CXXFLAGS="" 29072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29073 /* end confdefs.h. */ 29074 29075 int 29076 main () 29077 { 29078 29079 ; 29080 return 0; 29081 } 29082 _ACEOF 29083 if ac_fn_cxx_try_compile "$LINENO"; then : 29084 29085 else 29086 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 29087 CXXFLAGS="-g" 29088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29089 /* end confdefs.h. */ 29090 29091 int 29092 main () 29093 { 29094 29095 ; 29096 return 0; 29097 } 29098 _ACEOF 29099 if ac_fn_cxx_try_compile "$LINENO"; then : 29100 ac_cv_prog_cxx_g=yes 29101 fi 29102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29103 fi 29104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29105 fi 29106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 29108 fi 29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 29110 $as_echo "$ac_cv_prog_cxx_g" >&6; } 29111 if test "$ac_test_CXXFLAGS" = set; then 29112 CXXFLAGS=$ac_save_CXXFLAGS 29113 elif test $ac_cv_prog_cxx_g = yes; then 29114 if test "$GXX" = yes; then 29115 CXXFLAGS="-g -O2" 29116 else 29117 CXXFLAGS="-g" 29118 fi 29119 else 29120 if test "$GXX" = yes; then 29121 CXXFLAGS="-O2" 29122 else 29123 CXXFLAGS= 29124 fi 29125 fi 29126 ac_ext=cpp 29127 ac_cpp='$CXXCPP $CPPFLAGS' 29128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29131 29132 29133 # This is the compiler version number on the form X.Y[.Z] 29134 29135 29136 29137 29138 if test "x$CC_VERSION" != "x$CXX_VERSION"; then 29139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler has different version numbers, $CC_VERSION vs $CXX_VERSION." >&5 29140 $as_echo "$as_me: WARNING: C and C++ compiler has different version numbers, $CC_VERSION vs $CXX_VERSION." >&2;} 29141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 29142 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 29143 fi 29144 29145 # We only check CC_VERSION since we assume CXX_VERSION is equal. 29146 if [[ "$CC_VERSION" =~ (.*\.){3} ]] ; then 29147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&5 29148 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&2;} 29149 fi 29150 29151 if [[ "$CC_VERSION" =~ [0-9]{6} ]] ; then 29152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&5 29153 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&2;} 29154 fi 29155 29156 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION"` 29157 29158 29159 # 29160 # Setup the preprocessor (CPP and CXXCPP) 29161 # 29162 ac_ext=c 29163 ac_cpp='$CPP $CPPFLAGS' 29164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29166 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 29168 $as_echo_n "checking how to run the C preprocessor... " >&6; } 29169 # On Suns, sometimes $CPP names a directory. 29170 if test -n "$CPP" && test -d "$CPP"; then 29171 CPP= 29172 fi 29173 if test -z "$CPP"; then 29174 if ${ac_cv_prog_CPP+:} false; then : 29175 $as_echo_n "(cached) " >&6 29176 else 29177 # Double quotes because CPP needs to be expanded 29178 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 29179 do 29180 ac_preproc_ok=false 29181 for ac_c_preproc_warn_flag in '' yes 29182 do 29183 # Use a header file that comes with gcc, so configuring glibc 29184 # with a fresh cross-compiler works. 29185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29186 # <limits.h> exists even on freestanding compilers. 29187 # On the NeXT, cc -E runs the code through the compiler's parser, 29188 # not just through cpp. "Syntax error" is here to catch this case. 29189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29190 /* end confdefs.h. */ 29191 #ifdef __STDC__ 29192 # include <limits.h> 29193 #else 29194 # include <assert.h> 29195 #endif 29196 Syntax error 29197 _ACEOF 29198 if ac_fn_c_try_cpp "$LINENO"; then : 29199 29200 else 29201 # Broken: fails on valid input. 29202 continue 29203 fi 29204 rm -f conftest.err conftest.i conftest.$ac_ext 29205 29206 # OK, works on sane cases. Now check whether nonexistent headers 29207 # can be detected and how. 29208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29209 /* end confdefs.h. */ 29210 #include <ac_nonexistent.h> 29211 _ACEOF 29212 if ac_fn_c_try_cpp "$LINENO"; then : 29213 # Broken: success on invalid input. 29214 continue 29215 else 29216 # Passes both tests. 29217 ac_preproc_ok=: 29218 break 29219 fi 29220 rm -f conftest.err conftest.i conftest.$ac_ext 29221 29222 done 29223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 29224 rm -f conftest.i conftest.err conftest.$ac_ext 29225 if $ac_preproc_ok; then : 29226 break 29227 fi 29228 29229 done 29230 ac_cv_prog_CPP=$CPP 29231 29232 fi 29233 CPP=$ac_cv_prog_CPP 29234 else 29235 ac_cv_prog_CPP=$CPP 29236 fi 29237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 29238 $as_echo "$CPP" >&6; } 29239 ac_preproc_ok=false 29240 for ac_c_preproc_warn_flag in '' yes 29241 do 29242 # Use a header file that comes with gcc, so configuring glibc 29243 # with a fresh cross-compiler works. 29244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29245 # <limits.h> exists even on freestanding compilers. 29246 # On the NeXT, cc -E runs the code through the compiler's parser, 29247 # not just through cpp. "Syntax error" is here to catch this case. 29248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29249 /* end confdefs.h. */ 29250 #ifdef __STDC__ 29251 # include <limits.h> 29252 #else 29253 # include <assert.h> 29254 #endif 29255 Syntax error 29256 _ACEOF 29257 if ac_fn_c_try_cpp "$LINENO"; then : 29258 29259 else 29260 # Broken: fails on valid input. 29261 continue 29262 fi 29263 rm -f conftest.err conftest.i conftest.$ac_ext 29264 29265 # OK, works on sane cases. Now check whether nonexistent headers 29266 # can be detected and how. 29267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29268 /* end confdefs.h. */ 29269 #include <ac_nonexistent.h> 29270 _ACEOF 29271 if ac_fn_c_try_cpp "$LINENO"; then : 29272 # Broken: success on invalid input. 29273 continue 29274 else 29275 # Passes both tests. 29276 ac_preproc_ok=: 29277 break 29278 fi 29279 rm -f conftest.err conftest.i conftest.$ac_ext 29280 29281 done 29282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 29283 rm -f conftest.i conftest.err conftest.$ac_ext 29284 if $ac_preproc_ok; then : 29285 29286 else 29287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29289 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 29290 See \`config.log' for more details" "$LINENO" 5; } 29291 fi 29292 29293 ac_ext=cpp 29294 ac_cpp='$CXXCPP $CPPFLAGS' 29295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29298 29299 29300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29301 29302 # First separate the path from the arguments. This will split at the first 29303 # space. 29304 complete="$CPP" 29305 path="${complete%% *}" 29306 tmp="$complete EOL" 29307 arguments="${tmp#* }" 29308 29309 # Input might be given as Windows format, start by converting to 29310 # unix format. 29311 new_path=`$CYGPATH -u "$path"` 29312 29313 # Now try to locate executable using which 29314 new_path=`$WHICH "$new_path" 2> /dev/null` 29315 # bat and cmd files are not always considered executable in cygwin causing which 29316 # to not find them 29317 if test "x$new_path" = x \ 29318 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29319 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29320 new_path=`$CYGPATH -u "$path"` 29321 fi 29322 if test "x$new_path" = x; then 29323 # Oops. Which didn't find the executable. 29324 # The splitting of arguments from the executable at a space might have been incorrect, 29325 # since paths with space are more likely in Windows. Give it another try with the whole 29326 # argument. 29327 path="$complete" 29328 arguments="EOL" 29329 new_path=`$CYGPATH -u "$path"` 29330 new_path=`$WHICH "$new_path" 2> /dev/null` 29331 # bat and cmd files are not always considered executable in cygwin causing which 29332 # to not find them 29333 if test "x$new_path" = x \ 29334 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29335 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29336 new_path=`$CYGPATH -u "$path"` 29337 fi 29338 if test "x$new_path" = x; then 29339 # It's still not found. Now this is an unrecoverable error. 29340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 29341 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 29342 has_space=`$ECHO "$complete" | $GREP " "` 29343 if test "x$has_space" != x; then 29344 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29345 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29346 fi 29347 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 29348 fi 29349 fi 29350 29351 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29352 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29353 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29354 # "foo.exe" is OK but "foo" is an error. 29355 # 29356 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29357 # It is also a way to make sure we got the proper file name for the real test later on. 29358 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29359 if test "x$test_shortpath" = x; then 29360 # Short path failed, file does not exist as specified. 29361 # Try adding .exe or .cmd 29362 if test -f "${new_path}.exe"; then 29363 input_to_shortpath="${new_path}.exe" 29364 elif test -f "${new_path}.cmd"; then 29365 input_to_shortpath="${new_path}.cmd" 29366 else 29367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 29368 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 29369 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29370 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29371 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 29372 fi 29373 else 29374 input_to_shortpath="$new_path" 29375 fi 29376 29377 # Call helper function which possibly converts this using DOS-style short mode. 29378 # If so, the updated path is stored in $new_path. 29379 new_path="$input_to_shortpath" 29380 29381 input_path="$input_to_shortpath" 29382 # Check if we need to convert this using DOS-style short mode. If the path 29383 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29384 # take no chances and rewrite it. 29385 # Note: m4 eats our [], so we need to use [ and ] instead. 29386 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29387 if test "x$has_forbidden_chars" != x; then 29388 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29389 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29390 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29391 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29392 # Going to short mode and back again did indeed matter. Since short mode is 29393 # case insensitive, let's make it lowercase to improve readability. 29394 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29395 # Now convert it back to Unix-stile (cygpath) 29396 input_path=`$CYGPATH -u "$shortmode_path"` 29397 new_path="$input_path" 29398 fi 29399 fi 29400 29401 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29402 if test "x$test_cygdrive_prefix" = x; then 29403 # As a simple fix, exclude /usr/bin since it's not a real path. 29404 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29405 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29406 # a path prefixed by /cygdrive for fixpath to work. 29407 new_path="$CYGWIN_ROOT_PATH$input_path" 29408 fi 29409 fi 29410 29411 # remove trailing .exe if any 29412 new_path="${new_path/%.exe/}" 29413 29414 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29415 29416 # First separate the path from the arguments. This will split at the first 29417 # space. 29418 complete="$CPP" 29419 path="${complete%% *}" 29420 tmp="$complete EOL" 29421 arguments="${tmp#* }" 29422 29423 # Input might be given as Windows format, start by converting to 29424 # unix format. 29425 new_path="$path" 29426 29427 windows_path="$new_path" 29428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29429 unix_path=`$CYGPATH -u "$windows_path"` 29430 new_path="$unix_path" 29431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29432 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29433 new_path="$unix_path" 29434 fi 29435 29436 29437 # Now try to locate executable using which 29438 new_path=`$WHICH "$new_path" 2> /dev/null` 29439 29440 if test "x$new_path" = x; then 29441 # Oops. Which didn't find the executable. 29442 # The splitting of arguments from the executable at a space might have been incorrect, 29443 # since paths with space are more likely in Windows. Give it another try with the whole 29444 # argument. 29445 path="$complete" 29446 arguments="EOL" 29447 new_path="$path" 29448 29449 windows_path="$new_path" 29450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29451 unix_path=`$CYGPATH -u "$windows_path"` 29452 new_path="$unix_path" 29453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29455 new_path="$unix_path" 29456 fi 29457 29458 29459 new_path=`$WHICH "$new_path" 2> /dev/null` 29460 29461 if test "x$new_path" = x; then 29462 # It's still not found. Now this is an unrecoverable error. 29463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 29464 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 29465 has_space=`$ECHO "$complete" | $GREP " "` 29466 if test "x$has_space" != x; then 29467 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29468 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29469 fi 29470 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 29471 fi 29472 fi 29473 29474 # Now new_path has a complete unix path to the binary 29475 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29476 # Keep paths in /bin as-is, but remove trailing .exe if any 29477 new_path="${new_path/%.exe/}" 29478 # Do not save /bin paths to all_fixpath_prefixes! 29479 else 29480 # Not in mixed or Windows style, start by that. 29481 new_path=`cmd //c echo $new_path` 29482 29483 input_path="$new_path" 29484 # Check if we need to convert this using DOS-style short mode. If the path 29485 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29486 # take no chances and rewrite it. 29487 # Note: m4 eats our [], so we need to use [ and ] instead. 29488 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29489 if test "x$has_forbidden_chars" != x; then 29490 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29491 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29492 fi 29493 29494 # Output is in $new_path 29495 29496 windows_path="$new_path" 29497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29498 unix_path=`$CYGPATH -u "$windows_path"` 29499 new_path="$unix_path" 29500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29501 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29502 new_path="$unix_path" 29503 fi 29504 29505 # remove trailing .exe if any 29506 new_path="${new_path/%.exe/}" 29507 29508 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29509 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29510 fi 29511 29512 else 29513 # We're on a posix platform. Hooray! :) 29514 # First separate the path from the arguments. This will split at the first 29515 # space. 29516 complete="$CPP" 29517 path="${complete%% *}" 29518 tmp="$complete EOL" 29519 arguments="${tmp#* }" 29520 29521 # Cannot rely on the command "which" here since it doesn't always work. 29522 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29523 if test -z "$is_absolute_path"; then 29524 # Path to executable is not absolute. Find it. 29525 IFS_save="$IFS" 29526 IFS=: 29527 for p in $PATH; do 29528 if test -f "$p/$path" && test -x "$p/$path"; then 29529 new_path="$p/$path" 29530 break 29531 fi 29532 done 29533 IFS="$IFS_save" 29534 else 29535 # This is an absolute path, we can use it without further modifications. 29536 new_path="$path" 29537 fi 29538 29539 if test "x$new_path" = x; then 29540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 29541 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 29542 has_space=`$ECHO "$complete" | $GREP " "` 29543 if test "x$has_space" != x; then 29544 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29545 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29546 fi 29547 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 29548 fi 29549 fi 29550 29551 # Now join together the path and the arguments once again 29552 if test "x$arguments" != xEOL; then 29553 new_complete="$new_path ${arguments% *}" 29554 else 29555 new_complete="$new_path" 29556 fi 29557 29558 if test "x$complete" != "x$new_complete"; then 29559 CPP="$new_complete" 29560 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 29561 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 29562 fi 29563 29564 ac_ext=cpp 29565 ac_cpp='$CXXCPP $CPPFLAGS' 29566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 29570 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 29571 if test -z "$CXXCPP"; then 29572 if ${ac_cv_prog_CXXCPP+:} false; then : 29573 $as_echo_n "(cached) " >&6 29574 else 29575 # Double quotes because CXXCPP needs to be expanded 29576 for CXXCPP in "$CXX -E" "/lib/cpp" 29577 do 29578 ac_preproc_ok=false 29579 for ac_cxx_preproc_warn_flag in '' yes 29580 do 29581 # Use a header file that comes with gcc, so configuring glibc 29582 # with a fresh cross-compiler works. 29583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29584 # <limits.h> exists even on freestanding compilers. 29585 # On the NeXT, cc -E runs the code through the compiler's parser, 29586 # not just through cpp. "Syntax error" is here to catch this case. 29587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29588 /* end confdefs.h. */ 29589 #ifdef __STDC__ 29590 # include <limits.h> 29591 #else 29592 # include <assert.h> 29593 #endif 29594 Syntax error 29595 _ACEOF 29596 if ac_fn_cxx_try_cpp "$LINENO"; then : 29597 29598 else 29599 # Broken: fails on valid input. 29600 continue 29601 fi 29602 rm -f conftest.err conftest.i conftest.$ac_ext 29603 29604 # OK, works on sane cases. Now check whether nonexistent headers 29605 # can be detected and how. 29606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29607 /* end confdefs.h. */ 29608 #include <ac_nonexistent.h> 29609 _ACEOF 29610 if ac_fn_cxx_try_cpp "$LINENO"; then : 29611 # Broken: success on invalid input. 29612 continue 29613 else 29614 # Passes both tests. 29615 ac_preproc_ok=: 29616 break 29617 fi 29618 rm -f conftest.err conftest.i conftest.$ac_ext 29619 29620 done 29621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 29622 rm -f conftest.i conftest.err conftest.$ac_ext 29623 if $ac_preproc_ok; then : 29624 break 29625 fi 29626 29627 done 29628 ac_cv_prog_CXXCPP=$CXXCPP 29629 29630 fi 29631 CXXCPP=$ac_cv_prog_CXXCPP 29632 else 29633 ac_cv_prog_CXXCPP=$CXXCPP 29634 fi 29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 29636 $as_echo "$CXXCPP" >&6; } 29637 ac_preproc_ok=false 29638 for ac_cxx_preproc_warn_flag in '' yes 29639 do 29640 # Use a header file that comes with gcc, so configuring glibc 29641 # with a fresh cross-compiler works. 29642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29643 # <limits.h> exists even on freestanding compilers. 29644 # On the NeXT, cc -E runs the code through the compiler's parser, 29645 # not just through cpp. "Syntax error" is here to catch this case. 29646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29647 /* end confdefs.h. */ 29648 #ifdef __STDC__ 29649 # include <limits.h> 29650 #else 29651 # include <assert.h> 29652 #endif 29653 Syntax error 29654 _ACEOF 29655 if ac_fn_cxx_try_cpp "$LINENO"; then : 29656 29657 else 29658 # Broken: fails on valid input. 29659 continue 29660 fi 29661 rm -f conftest.err conftest.i conftest.$ac_ext 29662 29663 # OK, works on sane cases. Now check whether nonexistent headers 29664 # can be detected and how. 29665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29666 /* end confdefs.h. */ 29667 #include <ac_nonexistent.h> 29668 _ACEOF 29669 if ac_fn_cxx_try_cpp "$LINENO"; then : 29670 # Broken: success on invalid input. 29671 continue 29672 else 29673 # Passes both tests. 29674 ac_preproc_ok=: 29675 break 29676 fi 29677 rm -f conftest.err conftest.i conftest.$ac_ext 29678 29679 done 29680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 29681 rm -f conftest.i conftest.err conftest.$ac_ext 29682 if $ac_preproc_ok; then : 29683 29684 else 29685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29687 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 29688 See \`config.log' for more details" "$LINENO" 5; } 29689 fi 29690 29691 ac_ext=cpp 29692 ac_cpp='$CXXCPP $CPPFLAGS' 29693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29696 29697 29698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29699 29700 # First separate the path from the arguments. This will split at the first 29701 # space. 29702 complete="$CXXCPP" 29703 path="${complete%% *}" 29704 tmp="$complete EOL" 29705 arguments="${tmp#* }" 29706 29707 # Input might be given as Windows format, start by converting to 29708 # unix format. 29709 new_path=`$CYGPATH -u "$path"` 29710 29711 # Now try to locate executable using which 29712 new_path=`$WHICH "$new_path" 2> /dev/null` 29713 # bat and cmd files are not always considered executable in cygwin causing which 29714 # to not find them 29715 if test "x$new_path" = x \ 29716 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29717 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29718 new_path=`$CYGPATH -u "$path"` 29719 fi 29720 if test "x$new_path" = x; then 29721 # Oops. Which didn't find the executable. 29722 # The splitting of arguments from the executable at a space might have been incorrect, 29723 # since paths with space are more likely in Windows. Give it another try with the whole 29724 # argument. 29725 path="$complete" 29726 arguments="EOL" 29727 new_path=`$CYGPATH -u "$path"` 29728 new_path=`$WHICH "$new_path" 2> /dev/null` 29729 # bat and cmd files are not always considered executable in cygwin causing which 29730 # to not find them 29731 if test "x$new_path" = x \ 29732 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29733 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29734 new_path=`$CYGPATH -u "$path"` 29735 fi 29736 if test "x$new_path" = x; then 29737 # It's still not found. Now this is an unrecoverable error. 29738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 29739 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 29740 has_space=`$ECHO "$complete" | $GREP " "` 29741 if test "x$has_space" != x; then 29742 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29743 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29744 fi 29745 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 29746 fi 29747 fi 29748 29749 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29750 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29751 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29752 # "foo.exe" is OK but "foo" is an error. 29753 # 29754 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29755 # It is also a way to make sure we got the proper file name for the real test later on. 29756 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29757 if test "x$test_shortpath" = x; then 29758 # Short path failed, file does not exist as specified. 29759 # Try adding .exe or .cmd 29760 if test -f "${new_path}.exe"; then 29761 input_to_shortpath="${new_path}.exe" 29762 elif test -f "${new_path}.cmd"; then 29763 input_to_shortpath="${new_path}.cmd" 29764 else 29765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 29766 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 29767 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29768 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29769 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 29770 fi 29771 else 29772 input_to_shortpath="$new_path" 29773 fi 29774 29775 # Call helper function which possibly converts this using DOS-style short mode. 29776 # If so, the updated path is stored in $new_path. 29777 new_path="$input_to_shortpath" 29778 29779 input_path="$input_to_shortpath" 29780 # Check if we need to convert this using DOS-style short mode. If the path 29781 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29782 # take no chances and rewrite it. 29783 # Note: m4 eats our [], so we need to use [ and ] instead. 29784 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29785 if test "x$has_forbidden_chars" != x; then 29786 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29787 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29788 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29789 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29790 # Going to short mode and back again did indeed matter. Since short mode is 29791 # case insensitive, let's make it lowercase to improve readability. 29792 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29793 # Now convert it back to Unix-stile (cygpath) 29794 input_path=`$CYGPATH -u "$shortmode_path"` 29795 new_path="$input_path" 29796 fi 29797 fi 29798 29799 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29800 if test "x$test_cygdrive_prefix" = x; then 29801 # As a simple fix, exclude /usr/bin since it's not a real path. 29802 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29803 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29804 # a path prefixed by /cygdrive for fixpath to work. 29805 new_path="$CYGWIN_ROOT_PATH$input_path" 29806 fi 29807 fi 29808 29809 # remove trailing .exe if any 29810 new_path="${new_path/%.exe/}" 29811 29812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29813 29814 # First separate the path from the arguments. This will split at the first 29815 # space. 29816 complete="$CXXCPP" 29817 path="${complete%% *}" 29818 tmp="$complete EOL" 29819 arguments="${tmp#* }" 29820 29821 # Input might be given as Windows format, start by converting to 29822 # unix format. 29823 new_path="$path" 29824 29825 windows_path="$new_path" 29826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29827 unix_path=`$CYGPATH -u "$windows_path"` 29828 new_path="$unix_path" 29829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29831 new_path="$unix_path" 29832 fi 29833 29834 29835 # Now try to locate executable using which 29836 new_path=`$WHICH "$new_path" 2> /dev/null` 29837 29838 if test "x$new_path" = x; then 29839 # Oops. Which didn't find the executable. 29840 # The splitting of arguments from the executable at a space might have been incorrect, 29841 # since paths with space are more likely in Windows. Give it another try with the whole 29842 # argument. 29843 path="$complete" 29844 arguments="EOL" 29845 new_path="$path" 29846 29847 windows_path="$new_path" 29848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29849 unix_path=`$CYGPATH -u "$windows_path"` 29850 new_path="$unix_path" 29851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29853 new_path="$unix_path" 29854 fi 29855 29856 29857 new_path=`$WHICH "$new_path" 2> /dev/null` 29858 29859 if test "x$new_path" = x; then 29860 # It's still not found. Now this is an unrecoverable error. 29861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 29862 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 29863 has_space=`$ECHO "$complete" | $GREP " "` 29864 if test "x$has_space" != x; then 29865 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29866 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29867 fi 29868 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 29869 fi 29870 fi 29871 29872 # Now new_path has a complete unix path to the binary 29873 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29874 # Keep paths in /bin as-is, but remove trailing .exe if any 29875 new_path="${new_path/%.exe/}" 29876 # Do not save /bin paths to all_fixpath_prefixes! 29877 else 29878 # Not in mixed or Windows style, start by that. 29879 new_path=`cmd //c echo $new_path` 29880 29881 input_path="$new_path" 29882 # Check if we need to convert this using DOS-style short mode. If the path 29883 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29884 # take no chances and rewrite it. 29885 # Note: m4 eats our [], so we need to use [ and ] instead. 29886 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29887 if test "x$has_forbidden_chars" != x; then 29888 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29889 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29890 fi 29891 29892 # Output is in $new_path 29893 29894 windows_path="$new_path" 29895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29896 unix_path=`$CYGPATH -u "$windows_path"` 29897 new_path="$unix_path" 29898 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29899 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29900 new_path="$unix_path" 29901 fi 29902 29903 # remove trailing .exe if any 29904 new_path="${new_path/%.exe/}" 29905 29906 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29907 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29908 fi 29909 29910 else 29911 # We're on a posix platform. Hooray! :) 29912 # First separate the path from the arguments. This will split at the first 29913 # space. 29914 complete="$CXXCPP" 29915 path="${complete%% *}" 29916 tmp="$complete EOL" 29917 arguments="${tmp#* }" 29918 29919 # Cannot rely on the command "which" here since it doesn't always work. 29920 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29921 if test -z "$is_absolute_path"; then 29922 # Path to executable is not absolute. Find it. 29923 IFS_save="$IFS" 29924 IFS=: 29925 for p in $PATH; do 29926 if test -f "$p/$path" && test -x "$p/$path"; then 29927 new_path="$p/$path" 29928 break 29929 fi 29930 done 29931 IFS="$IFS_save" 29932 else 29933 # This is an absolute path, we can use it without further modifications. 29934 new_path="$path" 29935 fi 29936 29937 if test "x$new_path" = x; then 29938 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 29939 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 29940 has_space=`$ECHO "$complete" | $GREP " "` 29941 if test "x$has_space" != x; then 29942 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29943 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29944 fi 29945 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 29946 fi 29947 fi 29948 29949 # Now join together the path and the arguments once again 29950 if test "x$arguments" != xEOL; then 29951 new_complete="$new_path ${arguments% *}" 29952 else 29953 new_complete="$new_path" 29954 fi 29955 29956 if test "x$complete" != "x$new_complete"; then 29957 CXXCPP="$new_complete" 29958 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 29959 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 29960 fi 29961 29962 29963 # 29964 # Setup the linker (LD) 29965 # 29966 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 29967 # In the Microsoft toolchain we have a separate LD command "link". 29968 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 29969 # a cygwin program for something completely different. 29970 # Extract the first word of "link", so it can be a program name with args. 29971 set dummy link; ac_word=$2 29972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29973 $as_echo_n "checking for $ac_word... " >&6; } 29974 if ${ac_cv_prog_LD+:} false; then : 29975 $as_echo_n "(cached) " >&6 29976 else 29977 if test -n "$LD"; then 29978 ac_cv_prog_LD="$LD" # Let the user override the test. 29979 else 29980 ac_prog_rejected=no 29981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29982 for as_dir in $PATH 29983 do 29984 IFS=$as_save_IFS 29985 test -z "$as_dir" && as_dir=. 29986 for ac_exec_ext in '' $ac_executable_extensions; do 29987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29988 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 29989 ac_prog_rejected=yes 29990 continue 29991 fi 29992 ac_cv_prog_LD="link" 29993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29994 break 2 29995 fi 29996 done 29997 done 29998 IFS=$as_save_IFS 29999 30000 if test $ac_prog_rejected = yes; then 30001 # We found a bogon in the path, so make sure we never use it. 30002 set dummy $ac_cv_prog_LD 30003 shift 30004 if test $# != 0; then 30005 # We chose a different compiler from the bogus one. 30006 # However, it has the same basename, so the bogon will be chosen 30007 # first if we set LD to just the basename; use the full file name. 30008 shift 30009 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 30010 fi 30011 fi 30012 fi 30013 fi 30014 LD=$ac_cv_prog_LD 30015 if test -n "$LD"; then 30016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 30017 $as_echo "$LD" >&6; } 30018 else 30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30020 $as_echo "no" >&6; } 30021 fi 30022 30023 30024 30025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30026 30027 # First separate the path from the arguments. This will split at the first 30028 # space. 30029 complete="$LD" 30030 path="${complete%% *}" 30031 tmp="$complete EOL" 30032 arguments="${tmp#* }" 30033 30034 # Input might be given as Windows format, start by converting to 30035 # unix format. 30036 new_path=`$CYGPATH -u "$path"` 30037 30038 # Now try to locate executable using which 30039 new_path=`$WHICH "$new_path" 2> /dev/null` 30040 # bat and cmd files are not always considered executable in cygwin causing which 30041 # to not find them 30042 if test "x$new_path" = x \ 30043 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30044 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30045 new_path=`$CYGPATH -u "$path"` 30046 fi 30047 if test "x$new_path" = x; then 30048 # Oops. Which didn't find the executable. 30049 # The splitting of arguments from the executable at a space might have been incorrect, 30050 # since paths with space are more likely in Windows. Give it another try with the whole 30051 # argument. 30052 path="$complete" 30053 arguments="EOL" 30054 new_path=`$CYGPATH -u "$path"` 30055 new_path=`$WHICH "$new_path" 2> /dev/null` 30056 # bat and cmd files are not always considered executable in cygwin causing which 30057 # to not find them 30058 if test "x$new_path" = x \ 30059 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30060 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30061 new_path=`$CYGPATH -u "$path"` 30062 fi 30063 if test "x$new_path" = x; then 30064 # It's still not found. Now this is an unrecoverable error. 30065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 30066 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 30067 has_space=`$ECHO "$complete" | $GREP " "` 30068 if test "x$has_space" != x; then 30069 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30070 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30071 fi 30072 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 30073 fi 30074 fi 30075 30076 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30077 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30078 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30079 # "foo.exe" is OK but "foo" is an error. 30080 # 30081 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30082 # It is also a way to make sure we got the proper file name for the real test later on. 30083 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30084 if test "x$test_shortpath" = x; then 30085 # Short path failed, file does not exist as specified. 30086 # Try adding .exe or .cmd 30087 if test -f "${new_path}.exe"; then 30088 input_to_shortpath="${new_path}.exe" 30089 elif test -f "${new_path}.cmd"; then 30090 input_to_shortpath="${new_path}.cmd" 30091 else 30092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 30093 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 30094 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30095 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30096 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 30097 fi 30098 else 30099 input_to_shortpath="$new_path" 30100 fi 30101 30102 # Call helper function which possibly converts this using DOS-style short mode. 30103 # If so, the updated path is stored in $new_path. 30104 new_path="$input_to_shortpath" 30105 30106 input_path="$input_to_shortpath" 30107 # Check if we need to convert this using DOS-style short mode. If the path 30108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30109 # take no chances and rewrite it. 30110 # Note: m4 eats our [], so we need to use [ and ] instead. 30111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30112 if test "x$has_forbidden_chars" != x; then 30113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30114 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30115 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30116 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30117 # Going to short mode and back again did indeed matter. Since short mode is 30118 # case insensitive, let's make it lowercase to improve readability. 30119 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30120 # Now convert it back to Unix-stile (cygpath) 30121 input_path=`$CYGPATH -u "$shortmode_path"` 30122 new_path="$input_path" 30123 fi 30124 fi 30125 30126 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30127 if test "x$test_cygdrive_prefix" = x; then 30128 # As a simple fix, exclude /usr/bin since it's not a real path. 30129 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30130 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30131 # a path prefixed by /cygdrive for fixpath to work. 30132 new_path="$CYGWIN_ROOT_PATH$input_path" 30133 fi 30134 fi 30135 30136 # remove trailing .exe if any 30137 new_path="${new_path/%.exe/}" 30138 30139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30140 30141 # First separate the path from the arguments. This will split at the first 30142 # space. 30143 complete="$LD" 30144 path="${complete%% *}" 30145 tmp="$complete EOL" 30146 arguments="${tmp#* }" 30147 30148 # Input might be given as Windows format, start by converting to 30149 # unix format. 30150 new_path="$path" 30151 30152 windows_path="$new_path" 30153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30154 unix_path=`$CYGPATH -u "$windows_path"` 30155 new_path="$unix_path" 30156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30158 new_path="$unix_path" 30159 fi 30160 30161 30162 # Now try to locate executable using which 30163 new_path=`$WHICH "$new_path" 2> /dev/null` 30164 30165 if test "x$new_path" = x; then 30166 # Oops. Which didn't find the executable. 30167 # The splitting of arguments from the executable at a space might have been incorrect, 30168 # since paths with space are more likely in Windows. Give it another try with the whole 30169 # argument. 30170 path="$complete" 30171 arguments="EOL" 30172 new_path="$path" 30173 30174 windows_path="$new_path" 30175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30176 unix_path=`$CYGPATH -u "$windows_path"` 30177 new_path="$unix_path" 30178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30180 new_path="$unix_path" 30181 fi 30182 30183 30184 new_path=`$WHICH "$new_path" 2> /dev/null` 30185 30186 if test "x$new_path" = x; then 30187 # It's still not found. Now this is an unrecoverable error. 30188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 30189 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 30190 has_space=`$ECHO "$complete" | $GREP " "` 30191 if test "x$has_space" != x; then 30192 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30193 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30194 fi 30195 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 30196 fi 30197 fi 30198 30199 # Now new_path has a complete unix path to the binary 30200 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30201 # Keep paths in /bin as-is, but remove trailing .exe if any 30202 new_path="${new_path/%.exe/}" 30203 # Do not save /bin paths to all_fixpath_prefixes! 30204 else 30205 # Not in mixed or Windows style, start by that. 30206 new_path=`cmd //c echo $new_path` 30207 30208 input_path="$new_path" 30209 # Check if we need to convert this using DOS-style short mode. If the path 30210 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30211 # take no chances and rewrite it. 30212 # Note: m4 eats our [], so we need to use [ and ] instead. 30213 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30214 if test "x$has_forbidden_chars" != x; then 30215 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30216 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30217 fi 30218 30219 # Output is in $new_path 30220 30221 windows_path="$new_path" 30222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30223 unix_path=`$CYGPATH -u "$windows_path"` 30224 new_path="$unix_path" 30225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30227 new_path="$unix_path" 30228 fi 30229 30230 # remove trailing .exe if any 30231 new_path="${new_path/%.exe/}" 30232 30233 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30234 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30235 fi 30236 30237 else 30238 # We're on a posix platform. Hooray! :) 30239 # First separate the path from the arguments. This will split at the first 30240 # space. 30241 complete="$LD" 30242 path="${complete%% *}" 30243 tmp="$complete EOL" 30244 arguments="${tmp#* }" 30245 30246 # Cannot rely on the command "which" here since it doesn't always work. 30247 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30248 if test -z "$is_absolute_path"; then 30249 # Path to executable is not absolute. Find it. 30250 IFS_save="$IFS" 30251 IFS=: 30252 for p in $PATH; do 30253 if test -f "$p/$path" && test -x "$p/$path"; then 30254 new_path="$p/$path" 30255 break 30256 fi 30257 done 30258 IFS="$IFS_save" 30259 else 30260 # This is an absolute path, we can use it without further modifications. 30261 new_path="$path" 30262 fi 30263 30264 if test "x$new_path" = x; then 30265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 30266 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 30267 has_space=`$ECHO "$complete" | $GREP " "` 30268 if test "x$has_space" != x; then 30269 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30270 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30271 fi 30272 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 30273 fi 30274 fi 30275 30276 # Now join together the path and the arguments once again 30277 if test "x$arguments" != xEOL; then 30278 new_complete="$new_path ${arguments% *}" 30279 else 30280 new_complete="$new_path" 30281 fi 30282 30283 if test "x$complete" != "x$new_complete"; then 30284 LD="$new_complete" 30285 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 30286 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 30287 fi 30288 30289 # Verify that we indeed succeeded with this trick. 30290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 30291 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 30292 "$LD" --version > /dev/null 30293 if test $? -eq 0 ; then 30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30295 $as_echo "no" >&6; } 30296 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 30297 else 30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30299 $as_echo "yes" >&6; } 30300 fi 30301 LDCXX="$LD" 30302 else 30303 # All other toolchains use the compiler to link. 30304 LD="$CC" 30305 LDCXX="$CXX" 30306 fi 30307 30308 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 30309 30310 30311 # 30312 # Setup the assembler (AS) 30313 # 30314 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 30315 # FIXME: should this really be solaris, or solstudio? 30316 30317 30318 # Publish this variable in the help. 30319 30320 30321 if test "x$AS" = x; then 30322 # The variable is not set by user, try to locate tool using the code snippet 30323 for ac_prog in as 30324 do 30325 # Extract the first word of "$ac_prog", so it can be a program name with args. 30326 set dummy $ac_prog; ac_word=$2 30327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30328 $as_echo_n "checking for $ac_word... " >&6; } 30329 if ${ac_cv_path_AS+:} false; then : 30330 $as_echo_n "(cached) " >&6 30331 else 30332 case $AS in 30333 [\\/]* | ?:[\\/]*) 30334 ac_cv_path_AS="$AS" # Let the user override the test with a path. 30335 ;; 30336 *) 30337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30338 for as_dir in $PATH 30339 do 30340 IFS=$as_save_IFS 30341 test -z "$as_dir" && as_dir=. 30342 for ac_exec_ext in '' $ac_executable_extensions; do 30343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30344 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 30345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30346 break 2 30347 fi 30348 done 30349 done 30350 IFS=$as_save_IFS 30351 30352 ;; 30353 esac 30354 fi 30355 AS=$ac_cv_path_AS 30356 if test -n "$AS"; then 30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 30358 $as_echo "$AS" >&6; } 30359 else 30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30361 $as_echo "no" >&6; } 30362 fi 30363 30364 30365 test -n "$AS" && break 30366 done 30367 30368 else 30369 # The variable is set, but is it from the command line or the environment? 30370 30371 # Try to remove the string !AS! from our list. 30372 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 30373 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30374 # If it failed, the variable was not from the command line. Ignore it, 30375 # but warn the user (except for BASH, which is always set by the calling BASH). 30376 if test "xAS" != xBASH; then 30377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 30378 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 30379 fi 30380 # Try to locate tool using the code snippet 30381 for ac_prog in as 30382 do 30383 # Extract the first word of "$ac_prog", so it can be a program name with args. 30384 set dummy $ac_prog; ac_word=$2 30385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30386 $as_echo_n "checking for $ac_word... " >&6; } 30387 if ${ac_cv_path_AS+:} false; then : 30388 $as_echo_n "(cached) " >&6 30389 else 30390 case $AS in 30391 [\\/]* | ?:[\\/]*) 30392 ac_cv_path_AS="$AS" # Let the user override the test with a path. 30393 ;; 30394 *) 30395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30396 for as_dir in $PATH 30397 do 30398 IFS=$as_save_IFS 30399 test -z "$as_dir" && as_dir=. 30400 for ac_exec_ext in '' $ac_executable_extensions; do 30401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30402 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 30403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30404 break 2 30405 fi 30406 done 30407 done 30408 IFS=$as_save_IFS 30409 30410 ;; 30411 esac 30412 fi 30413 AS=$ac_cv_path_AS 30414 if test -n "$AS"; then 30415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 30416 $as_echo "$AS" >&6; } 30417 else 30418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30419 $as_echo "no" >&6; } 30420 fi 30421 30422 30423 test -n "$AS" && break 30424 done 30425 30426 else 30427 # If it succeeded, then it was overridden by the user. We will use it 30428 # for the tool. 30429 30430 # First remove it from the list of overridden variables, so we can test 30431 # for unknown variables in the end. 30432 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30433 30434 # Check if the provided tool contains a complete path. 30435 tool_specified="$AS" 30436 tool_basename="${tool_specified##*/}" 30437 if test "x$tool_basename" = "x$tool_specified"; then 30438 # A command without a complete path is provided, search $PATH. 30439 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 30440 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 30441 # Extract the first word of "$tool_basename", so it can be a program name with args. 30442 set dummy $tool_basename; ac_word=$2 30443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30444 $as_echo_n "checking for $ac_word... " >&6; } 30445 if ${ac_cv_path_AS+:} false; then : 30446 $as_echo_n "(cached) " >&6 30447 else 30448 case $AS in 30449 [\\/]* | ?:[\\/]*) 30450 ac_cv_path_AS="$AS" # Let the user override the test with a path. 30451 ;; 30452 *) 30453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30454 for as_dir in $PATH 30455 do 30456 IFS=$as_save_IFS 30457 test -z "$as_dir" && as_dir=. 30458 for ac_exec_ext in '' $ac_executable_extensions; do 30459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30460 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 30461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30462 break 2 30463 fi 30464 done 30465 done 30466 IFS=$as_save_IFS 30467 30468 ;; 30469 esac 30470 fi 30471 AS=$ac_cv_path_AS 30472 if test -n "$AS"; then 30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 30474 $as_echo "$AS" >&6; } 30475 else 30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30477 $as_echo "no" >&6; } 30478 fi 30479 30480 30481 if test "x$AS" = x; then 30482 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30483 fi 30484 else 30485 # Otherwise we believe it is a complete path. Use it as it is. 30486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 30487 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 30489 $as_echo_n "checking for AS... " >&6; } 30490 if test ! -x "$tool_specified"; then 30491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30492 $as_echo "not found" >&6; } 30493 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 30494 fi 30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30496 $as_echo "$tool_specified" >&6; } 30497 fi 30498 fi 30499 fi 30500 30501 30502 30503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30504 30505 # First separate the path from the arguments. This will split at the first 30506 # space. 30507 complete="$AS" 30508 path="${complete%% *}" 30509 tmp="$complete EOL" 30510 arguments="${tmp#* }" 30511 30512 # Input might be given as Windows format, start by converting to 30513 # unix format. 30514 new_path=`$CYGPATH -u "$path"` 30515 30516 # Now try to locate executable using which 30517 new_path=`$WHICH "$new_path" 2> /dev/null` 30518 # bat and cmd files are not always considered executable in cygwin causing which 30519 # to not find them 30520 if test "x$new_path" = x \ 30521 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30522 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30523 new_path=`$CYGPATH -u "$path"` 30524 fi 30525 if test "x$new_path" = x; then 30526 # Oops. Which didn't find the executable. 30527 # The splitting of arguments from the executable at a space might have been incorrect, 30528 # since paths with space are more likely in Windows. Give it another try with the whole 30529 # argument. 30530 path="$complete" 30531 arguments="EOL" 30532 new_path=`$CYGPATH -u "$path"` 30533 new_path=`$WHICH "$new_path" 2> /dev/null` 30534 # bat and cmd files are not always considered executable in cygwin causing which 30535 # to not find them 30536 if test "x$new_path" = x \ 30537 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30538 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30539 new_path=`$CYGPATH -u "$path"` 30540 fi 30541 if test "x$new_path" = x; then 30542 # It's still not found. Now this is an unrecoverable error. 30543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 30544 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 30545 has_space=`$ECHO "$complete" | $GREP " "` 30546 if test "x$has_space" != x; then 30547 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30548 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30549 fi 30550 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 30551 fi 30552 fi 30553 30554 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30555 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30556 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30557 # "foo.exe" is OK but "foo" is an error. 30558 # 30559 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30560 # It is also a way to make sure we got the proper file name for the real test later on. 30561 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30562 if test "x$test_shortpath" = x; then 30563 # Short path failed, file does not exist as specified. 30564 # Try adding .exe or .cmd 30565 if test -f "${new_path}.exe"; then 30566 input_to_shortpath="${new_path}.exe" 30567 elif test -f "${new_path}.cmd"; then 30568 input_to_shortpath="${new_path}.cmd" 30569 else 30570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 30571 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 30572 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30573 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30574 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 30575 fi 30576 else 30577 input_to_shortpath="$new_path" 30578 fi 30579 30580 # Call helper function which possibly converts this using DOS-style short mode. 30581 # If so, the updated path is stored in $new_path. 30582 new_path="$input_to_shortpath" 30583 30584 input_path="$input_to_shortpath" 30585 # Check if we need to convert this using DOS-style short mode. If the path 30586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30587 # take no chances and rewrite it. 30588 # Note: m4 eats our [], so we need to use [ and ] instead. 30589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30590 if test "x$has_forbidden_chars" != x; then 30591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30592 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30593 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30594 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30595 # Going to short mode and back again did indeed matter. Since short mode is 30596 # case insensitive, let's make it lowercase to improve readability. 30597 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30598 # Now convert it back to Unix-stile (cygpath) 30599 input_path=`$CYGPATH -u "$shortmode_path"` 30600 new_path="$input_path" 30601 fi 30602 fi 30603 30604 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30605 if test "x$test_cygdrive_prefix" = x; then 30606 # As a simple fix, exclude /usr/bin since it's not a real path. 30607 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30608 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30609 # a path prefixed by /cygdrive for fixpath to work. 30610 new_path="$CYGWIN_ROOT_PATH$input_path" 30611 fi 30612 fi 30613 30614 # remove trailing .exe if any 30615 new_path="${new_path/%.exe/}" 30616 30617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30618 30619 # First separate the path from the arguments. This will split at the first 30620 # space. 30621 complete="$AS" 30622 path="${complete%% *}" 30623 tmp="$complete EOL" 30624 arguments="${tmp#* }" 30625 30626 # Input might be given as Windows format, start by converting to 30627 # unix format. 30628 new_path="$path" 30629 30630 windows_path="$new_path" 30631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30632 unix_path=`$CYGPATH -u "$windows_path"` 30633 new_path="$unix_path" 30634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30636 new_path="$unix_path" 30637 fi 30638 30639 30640 # Now try to locate executable using which 30641 new_path=`$WHICH "$new_path" 2> /dev/null` 30642 30643 if test "x$new_path" = x; then 30644 # Oops. Which didn't find the executable. 30645 # The splitting of arguments from the executable at a space might have been incorrect, 30646 # since paths with space are more likely in Windows. Give it another try with the whole 30647 # argument. 30648 path="$complete" 30649 arguments="EOL" 30650 new_path="$path" 30651 30652 windows_path="$new_path" 30653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30654 unix_path=`$CYGPATH -u "$windows_path"` 30655 new_path="$unix_path" 30656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30658 new_path="$unix_path" 30659 fi 30660 30661 30662 new_path=`$WHICH "$new_path" 2> /dev/null` 30663 30664 if test "x$new_path" = x; then 30665 # It's still not found. Now this is an unrecoverable error. 30666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 30667 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 30668 has_space=`$ECHO "$complete" | $GREP " "` 30669 if test "x$has_space" != x; then 30670 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30671 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30672 fi 30673 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 30674 fi 30675 fi 30676 30677 # Now new_path has a complete unix path to the binary 30678 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30679 # Keep paths in /bin as-is, but remove trailing .exe if any 30680 new_path="${new_path/%.exe/}" 30681 # Do not save /bin paths to all_fixpath_prefixes! 30682 else 30683 # Not in mixed or Windows style, start by that. 30684 new_path=`cmd //c echo $new_path` 30685 30686 input_path="$new_path" 30687 # Check if we need to convert this using DOS-style short mode. If the path 30688 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30689 # take no chances and rewrite it. 30690 # Note: m4 eats our [], so we need to use [ and ] instead. 30691 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30692 if test "x$has_forbidden_chars" != x; then 30693 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30694 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30695 fi 30696 30697 # Output is in $new_path 30698 30699 windows_path="$new_path" 30700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30701 unix_path=`$CYGPATH -u "$windows_path"` 30702 new_path="$unix_path" 30703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30705 new_path="$unix_path" 30706 fi 30707 30708 # remove trailing .exe if any 30709 new_path="${new_path/%.exe/}" 30710 30711 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30712 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30713 fi 30714 30715 else 30716 # We're on a posix platform. Hooray! :) 30717 # First separate the path from the arguments. This will split at the first 30718 # space. 30719 complete="$AS" 30720 path="${complete%% *}" 30721 tmp="$complete EOL" 30722 arguments="${tmp#* }" 30723 30724 # Cannot rely on the command "which" here since it doesn't always work. 30725 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30726 if test -z "$is_absolute_path"; then 30727 # Path to executable is not absolute. Find it. 30728 IFS_save="$IFS" 30729 IFS=: 30730 for p in $PATH; do 30731 if test -f "$p/$path" && test -x "$p/$path"; then 30732 new_path="$p/$path" 30733 break 30734 fi 30735 done 30736 IFS="$IFS_save" 30737 else 30738 # This is an absolute path, we can use it without further modifications. 30739 new_path="$path" 30740 fi 30741 30742 if test "x$new_path" = x; then 30743 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 30744 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 30745 has_space=`$ECHO "$complete" | $GREP " "` 30746 if test "x$has_space" != x; then 30747 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30748 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30749 fi 30750 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 30751 fi 30752 fi 30753 30754 # Now join together the path and the arguments once again 30755 if test "x$arguments" != xEOL; then 30756 new_complete="$new_path ${arguments% *}" 30757 else 30758 new_complete="$new_path" 30759 fi 30760 30761 if test "x$complete" != "x$new_complete"; then 30762 AS="$new_complete" 30763 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 30764 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 30765 fi 30766 30767 else 30768 # FIXME: is this correct for microsoft? 30769 AS="$CC -c" 30770 fi 30771 30772 30773 # 30774 # Setup the archiver (AR) 30775 # 30776 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30777 # The corresponding ar tool is lib.exe (used to create static libraries) 30778 # Extract the first word of "lib", so it can be a program name with args. 30779 set dummy lib; ac_word=$2 30780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30781 $as_echo_n "checking for $ac_word... " >&6; } 30782 if ${ac_cv_prog_AR+:} false; then : 30783 $as_echo_n "(cached) " >&6 30784 else 30785 if test -n "$AR"; then 30786 ac_cv_prog_AR="$AR" # Let the user override the test. 30787 else 30788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30789 for as_dir in $PATH 30790 do 30791 IFS=$as_save_IFS 30792 test -z "$as_dir" && as_dir=. 30793 for ac_exec_ext in '' $ac_executable_extensions; do 30794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30795 ac_cv_prog_AR="lib" 30796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30797 break 2 30798 fi 30799 done 30800 done 30801 IFS=$as_save_IFS 30802 30803 fi 30804 fi 30805 AR=$ac_cv_prog_AR 30806 if test -n "$AR"; then 30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 30808 $as_echo "$AR" >&6; } 30809 else 30810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30811 $as_echo "no" >&6; } 30812 fi 30813 30814 30815 else 30816 30817 30818 # Publish this variable in the help. 30819 30820 30821 if test "x$AR" = x; then 30822 # The variable is not set by user, try to locate tool using the code snippet 30823 if test -n "$ac_tool_prefix"; then 30824 for ac_prog in ar 30825 do 30826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30829 $as_echo_n "checking for $ac_word... " >&6; } 30830 if ${ac_cv_prog_AR+:} false; then : 30831 $as_echo_n "(cached) " >&6 30832 else 30833 if test -n "$AR"; then 30834 ac_cv_prog_AR="$AR" # Let the user override the test. 30835 else 30836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30837 for as_dir in $PATH 30838 do 30839 IFS=$as_save_IFS 30840 test -z "$as_dir" && as_dir=. 30841 for ac_exec_ext in '' $ac_executable_extensions; do 30842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30843 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 30844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30845 break 2 30846 fi 30847 done 30848 done 30849 IFS=$as_save_IFS 30850 30851 fi 30852 fi 30853 AR=$ac_cv_prog_AR 30854 if test -n "$AR"; then 30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 30856 $as_echo "$AR" >&6; } 30857 else 30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30859 $as_echo "no" >&6; } 30860 fi 30861 30862 30863 test -n "$AR" && break 30864 done 30865 fi 30866 if test -z "$AR"; then 30867 ac_ct_AR=$AR 30868 for ac_prog in ar 30869 do 30870 # Extract the first word of "$ac_prog", so it can be a program name with args. 30871 set dummy $ac_prog; ac_word=$2 30872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30873 $as_echo_n "checking for $ac_word... " >&6; } 30874 if ${ac_cv_prog_ac_ct_AR+:} false; then : 30875 $as_echo_n "(cached) " >&6 30876 else 30877 if test -n "$ac_ct_AR"; then 30878 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 30879 else 30880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30881 for as_dir in $PATH 30882 do 30883 IFS=$as_save_IFS 30884 test -z "$as_dir" && as_dir=. 30885 for ac_exec_ext in '' $ac_executable_extensions; do 30886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30887 ac_cv_prog_ac_ct_AR="$ac_prog" 30888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30889 break 2 30890 fi 30891 done 30892 done 30893 IFS=$as_save_IFS 30894 30895 fi 30896 fi 30897 ac_ct_AR=$ac_cv_prog_ac_ct_AR 30898 if test -n "$ac_ct_AR"; then 30899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 30900 $as_echo "$ac_ct_AR" >&6; } 30901 else 30902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30903 $as_echo "no" >&6; } 30904 fi 30905 30906 30907 test -n "$ac_ct_AR" && break 30908 done 30909 30910 if test "x$ac_ct_AR" = x; then 30911 AR="" 30912 else 30913 case $cross_compiling:$ac_tool_warned in 30914 yes:) 30915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30917 ac_tool_warned=yes ;; 30918 esac 30919 AR=$ac_ct_AR 30920 fi 30921 fi 30922 30923 else 30924 # The variable is set, but is it from the command line or the environment? 30925 30926 # Try to remove the string !AR! from our list. 30927 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 30928 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30929 # If it failed, the variable was not from the command line. Ignore it, 30930 # but warn the user (except for BASH, which is always set by the calling BASH). 30931 if test "xAR" != xBASH; then 30932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 30933 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 30934 fi 30935 # Try to locate tool using the code snippet 30936 if test -n "$ac_tool_prefix"; then 30937 for ac_prog in ar 30938 do 30939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30942 $as_echo_n "checking for $ac_word... " >&6; } 30943 if ${ac_cv_prog_AR+:} false; then : 30944 $as_echo_n "(cached) " >&6 30945 else 30946 if test -n "$AR"; then 30947 ac_cv_prog_AR="$AR" # Let the user override the test. 30948 else 30949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30950 for as_dir in $PATH 30951 do 30952 IFS=$as_save_IFS 30953 test -z "$as_dir" && as_dir=. 30954 for ac_exec_ext in '' $ac_executable_extensions; do 30955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30956 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 30957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30958 break 2 30959 fi 30960 done 30961 done 30962 IFS=$as_save_IFS 30963 30964 fi 30965 fi 30966 AR=$ac_cv_prog_AR 30967 if test -n "$AR"; then 30968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 30969 $as_echo "$AR" >&6; } 30970 else 30971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30972 $as_echo "no" >&6; } 30973 fi 30974 30975 30976 test -n "$AR" && break 30977 done 30978 fi 30979 if test -z "$AR"; then 30980 ac_ct_AR=$AR 30981 for ac_prog in ar 30982 do 30983 # Extract the first word of "$ac_prog", so it can be a program name with args. 30984 set dummy $ac_prog; ac_word=$2 30985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30986 $as_echo_n "checking for $ac_word... " >&6; } 30987 if ${ac_cv_prog_ac_ct_AR+:} false; then : 30988 $as_echo_n "(cached) " >&6 30989 else 30990 if test -n "$ac_ct_AR"; then 30991 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 30992 else 30993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30994 for as_dir in $PATH 30995 do 30996 IFS=$as_save_IFS 30997 test -z "$as_dir" && as_dir=. 30998 for ac_exec_ext in '' $ac_executable_extensions; do 30999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31000 ac_cv_prog_ac_ct_AR="$ac_prog" 31001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31002 break 2 31003 fi 31004 done 31005 done 31006 IFS=$as_save_IFS 31007 31008 fi 31009 fi 31010 ac_ct_AR=$ac_cv_prog_ac_ct_AR 31011 if test -n "$ac_ct_AR"; then 31012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 31013 $as_echo "$ac_ct_AR" >&6; } 31014 else 31015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31016 $as_echo "no" >&6; } 31017 fi 31018 31019 31020 test -n "$ac_ct_AR" && break 31021 done 31022 31023 if test "x$ac_ct_AR" = x; then 31024 AR="" 31025 else 31026 case $cross_compiling:$ac_tool_warned in 31027 yes:) 31028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31030 ac_tool_warned=yes ;; 31031 esac 31032 AR=$ac_ct_AR 31033 fi 31034 fi 31035 31036 else 31037 # If it succeeded, then it was overridden by the user. We will use it 31038 # for the tool. 31039 31040 # First remove it from the list of overridden variables, so we can test 31041 # for unknown variables in the end. 31042 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31043 31044 # Check if the provided tool contains a complete path. 31045 tool_specified="$AR" 31046 tool_basename="${tool_specified##*/}" 31047 if test "x$tool_basename" = "x$tool_specified"; then 31048 # A command without a complete path is provided, search $PATH. 31049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 31050 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 31051 # Extract the first word of "$tool_basename", so it can be a program name with args. 31052 set dummy $tool_basename; ac_word=$2 31053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31054 $as_echo_n "checking for $ac_word... " >&6; } 31055 if ${ac_cv_path_AR+:} false; then : 31056 $as_echo_n "(cached) " >&6 31057 else 31058 case $AR in 31059 [\\/]* | ?:[\\/]*) 31060 ac_cv_path_AR="$AR" # Let the user override the test with a path. 31061 ;; 31062 *) 31063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31064 for as_dir in $PATH 31065 do 31066 IFS=$as_save_IFS 31067 test -z "$as_dir" && as_dir=. 31068 for ac_exec_ext in '' $ac_executable_extensions; do 31069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31070 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 31071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31072 break 2 31073 fi 31074 done 31075 done 31076 IFS=$as_save_IFS 31077 31078 ;; 31079 esac 31080 fi 31081 AR=$ac_cv_path_AR 31082 if test -n "$AR"; then 31083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31084 $as_echo "$AR" >&6; } 31085 else 31086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31087 $as_echo "no" >&6; } 31088 fi 31089 31090 31091 if test "x$AR" = x; then 31092 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31093 fi 31094 else 31095 # Otherwise we believe it is a complete path. Use it as it is. 31096 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 31097 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 31098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 31099 $as_echo_n "checking for AR... " >&6; } 31100 if test ! -x "$tool_specified"; then 31101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31102 $as_echo "not found" >&6; } 31103 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 31104 fi 31105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31106 $as_echo "$tool_specified" >&6; } 31107 fi 31108 fi 31109 fi 31110 31111 31112 fi 31113 31114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31115 31116 # First separate the path from the arguments. This will split at the first 31117 # space. 31118 complete="$AR" 31119 path="${complete%% *}" 31120 tmp="$complete EOL" 31121 arguments="${tmp#* }" 31122 31123 # Input might be given as Windows format, start by converting to 31124 # unix format. 31125 new_path=`$CYGPATH -u "$path"` 31126 31127 # Now try to locate executable using which 31128 new_path=`$WHICH "$new_path" 2> /dev/null` 31129 # bat and cmd files are not always considered executable in cygwin causing which 31130 # to not find them 31131 if test "x$new_path" = x \ 31132 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31133 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31134 new_path=`$CYGPATH -u "$path"` 31135 fi 31136 if test "x$new_path" = x; then 31137 # Oops. Which didn't find the executable. 31138 # The splitting of arguments from the executable at a space might have been incorrect, 31139 # since paths with space are more likely in Windows. Give it another try with the whole 31140 # argument. 31141 path="$complete" 31142 arguments="EOL" 31143 new_path=`$CYGPATH -u "$path"` 31144 new_path=`$WHICH "$new_path" 2> /dev/null` 31145 # bat and cmd files are not always considered executable in cygwin causing which 31146 # to not find them 31147 if test "x$new_path" = x \ 31148 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31149 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31150 new_path=`$CYGPATH -u "$path"` 31151 fi 31152 if test "x$new_path" = x; then 31153 # It's still not found. Now this is an unrecoverable error. 31154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 31155 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 31156 has_space=`$ECHO "$complete" | $GREP " "` 31157 if test "x$has_space" != x; then 31158 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31159 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31160 fi 31161 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 31162 fi 31163 fi 31164 31165 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31166 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31167 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31168 # "foo.exe" is OK but "foo" is an error. 31169 # 31170 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31171 # It is also a way to make sure we got the proper file name for the real test later on. 31172 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31173 if test "x$test_shortpath" = x; then 31174 # Short path failed, file does not exist as specified. 31175 # Try adding .exe or .cmd 31176 if test -f "${new_path}.exe"; then 31177 input_to_shortpath="${new_path}.exe" 31178 elif test -f "${new_path}.cmd"; then 31179 input_to_shortpath="${new_path}.cmd" 31180 else 31181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 31182 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 31183 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31184 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31185 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 31186 fi 31187 else 31188 input_to_shortpath="$new_path" 31189 fi 31190 31191 # Call helper function which possibly converts this using DOS-style short mode. 31192 # If so, the updated path is stored in $new_path. 31193 new_path="$input_to_shortpath" 31194 31195 input_path="$input_to_shortpath" 31196 # Check if we need to convert this using DOS-style short mode. If the path 31197 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31198 # take no chances and rewrite it. 31199 # Note: m4 eats our [], so we need to use [ and ] instead. 31200 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31201 if test "x$has_forbidden_chars" != x; then 31202 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31203 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31204 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31205 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31206 # Going to short mode and back again did indeed matter. Since short mode is 31207 # case insensitive, let's make it lowercase to improve readability. 31208 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31209 # Now convert it back to Unix-stile (cygpath) 31210 input_path=`$CYGPATH -u "$shortmode_path"` 31211 new_path="$input_path" 31212 fi 31213 fi 31214 31215 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31216 if test "x$test_cygdrive_prefix" = x; then 31217 # As a simple fix, exclude /usr/bin since it's not a real path. 31218 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31219 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31220 # a path prefixed by /cygdrive for fixpath to work. 31221 new_path="$CYGWIN_ROOT_PATH$input_path" 31222 fi 31223 fi 31224 31225 # remove trailing .exe if any 31226 new_path="${new_path/%.exe/}" 31227 31228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31229 31230 # First separate the path from the arguments. This will split at the first 31231 # space. 31232 complete="$AR" 31233 path="${complete%% *}" 31234 tmp="$complete EOL" 31235 arguments="${tmp#* }" 31236 31237 # Input might be given as Windows format, start by converting to 31238 # unix format. 31239 new_path="$path" 31240 31241 windows_path="$new_path" 31242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31243 unix_path=`$CYGPATH -u "$windows_path"` 31244 new_path="$unix_path" 31245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31246 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31247 new_path="$unix_path" 31248 fi 31249 31250 31251 # Now try to locate executable using which 31252 new_path=`$WHICH "$new_path" 2> /dev/null` 31253 31254 if test "x$new_path" = x; then 31255 # Oops. Which didn't find the executable. 31256 # The splitting of arguments from the executable at a space might have been incorrect, 31257 # since paths with space are more likely in Windows. Give it another try with the whole 31258 # argument. 31259 path="$complete" 31260 arguments="EOL" 31261 new_path="$path" 31262 31263 windows_path="$new_path" 31264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31265 unix_path=`$CYGPATH -u "$windows_path"` 31266 new_path="$unix_path" 31267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31269 new_path="$unix_path" 31270 fi 31271 31272 31273 new_path=`$WHICH "$new_path" 2> /dev/null` 31274 31275 if test "x$new_path" = x; then 31276 # It's still not found. Now this is an unrecoverable error. 31277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 31278 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 31279 has_space=`$ECHO "$complete" | $GREP " "` 31280 if test "x$has_space" != x; then 31281 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31282 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31283 fi 31284 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 31285 fi 31286 fi 31287 31288 # Now new_path has a complete unix path to the binary 31289 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31290 # Keep paths in /bin as-is, but remove trailing .exe if any 31291 new_path="${new_path/%.exe/}" 31292 # Do not save /bin paths to all_fixpath_prefixes! 31293 else 31294 # Not in mixed or Windows style, start by that. 31295 new_path=`cmd //c echo $new_path` 31296 31297 input_path="$new_path" 31298 # Check if we need to convert this using DOS-style short mode. If the path 31299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31300 # take no chances and rewrite it. 31301 # Note: m4 eats our [], so we need to use [ and ] instead. 31302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31303 if test "x$has_forbidden_chars" != x; then 31304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31305 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31306 fi 31307 31308 # Output is in $new_path 31309 31310 windows_path="$new_path" 31311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31312 unix_path=`$CYGPATH -u "$windows_path"` 31313 new_path="$unix_path" 31314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31316 new_path="$unix_path" 31317 fi 31318 31319 # remove trailing .exe if any 31320 new_path="${new_path/%.exe/}" 31321 31322 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31323 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31324 fi 31325 31326 else 31327 # We're on a posix platform. Hooray! :) 31328 # First separate the path from the arguments. This will split at the first 31329 # space. 31330 complete="$AR" 31331 path="${complete%% *}" 31332 tmp="$complete EOL" 31333 arguments="${tmp#* }" 31334 31335 # Cannot rely on the command "which" here since it doesn't always work. 31336 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31337 if test -z "$is_absolute_path"; then 31338 # Path to executable is not absolute. Find it. 31339 IFS_save="$IFS" 31340 IFS=: 31341 for p in $PATH; do 31342 if test -f "$p/$path" && test -x "$p/$path"; then 31343 new_path="$p/$path" 31344 break 31345 fi 31346 done 31347 IFS="$IFS_save" 31348 else 31349 # This is an absolute path, we can use it without further modifications. 31350 new_path="$path" 31351 fi 31352 31353 if test "x$new_path" = x; then 31354 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 31355 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 31356 has_space=`$ECHO "$complete" | $GREP " "` 31357 if test "x$has_space" != x; then 31358 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31359 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31360 fi 31361 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 31362 fi 31363 fi 31364 31365 # Now join together the path and the arguments once again 31366 if test "x$arguments" != xEOL; then 31367 new_complete="$new_path ${arguments% *}" 31368 else 31369 new_complete="$new_path" 31370 fi 31371 31372 if test "x$complete" != "x$new_complete"; then 31373 AR="$new_complete" 31374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 31375 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 31376 fi 31377 31378 31379 31380 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 31381 ac_ext=m 31382 ac_cpp='$OBJCPP $CPPFLAGS' 31383 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31384 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31385 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 31386 if test -n "$ac_tool_prefix"; then 31387 for ac_prog in gcc objcc objc cc CC 31388 do 31389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31392 $as_echo_n "checking for $ac_word... " >&6; } 31393 if ${ac_cv_prog_OBJC+:} false; then : 31394 $as_echo_n "(cached) " >&6 31395 else 31396 if test -n "$OBJC"; then 31397 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 31398 else 31399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31400 for as_dir in $PATH 31401 do 31402 IFS=$as_save_IFS 31403 test -z "$as_dir" && as_dir=. 31404 for ac_exec_ext in '' $ac_executable_extensions; do 31405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31406 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 31407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31408 break 2 31409 fi 31410 done 31411 done 31412 IFS=$as_save_IFS 31413 31414 fi 31415 fi 31416 OBJC=$ac_cv_prog_OBJC 31417 if test -n "$OBJC"; then 31418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 31419 $as_echo "$OBJC" >&6; } 31420 else 31421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31422 $as_echo "no" >&6; } 31423 fi 31424 31425 31426 test -n "$OBJC" && break 31427 done 31428 fi 31429 if test -z "$OBJC"; then 31430 ac_ct_OBJC=$OBJC 31431 for ac_prog in gcc objcc objc cc CC 31432 do 31433 # Extract the first word of "$ac_prog", so it can be a program name with args. 31434 set dummy $ac_prog; ac_word=$2 31435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31436 $as_echo_n "checking for $ac_word... " >&6; } 31437 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 31438 $as_echo_n "(cached) " >&6 31439 else 31440 if test -n "$ac_ct_OBJC"; then 31441 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 31442 else 31443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31444 for as_dir in $PATH 31445 do 31446 IFS=$as_save_IFS 31447 test -z "$as_dir" && as_dir=. 31448 for ac_exec_ext in '' $ac_executable_extensions; do 31449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31450 ac_cv_prog_ac_ct_OBJC="$ac_prog" 31451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31452 break 2 31453 fi 31454 done 31455 done 31456 IFS=$as_save_IFS 31457 31458 fi 31459 fi 31460 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 31461 if test -n "$ac_ct_OBJC"; then 31462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 31463 $as_echo "$ac_ct_OBJC" >&6; } 31464 else 31465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31466 $as_echo "no" >&6; } 31467 fi 31468 31469 31470 test -n "$ac_ct_OBJC" && break 31471 done 31472 31473 if test "x$ac_ct_OBJC" = x; then 31474 OBJC="gcc" 31475 else 31476 case $cross_compiling:$ac_tool_warned in 31477 yes:) 31478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31480 ac_tool_warned=yes ;; 31481 esac 31482 OBJC=$ac_ct_OBJC 31483 fi 31484 fi 31485 31486 # Provide some information about the compiler. 31487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 31488 set X $ac_compile 31489 ac_compiler=$2 31490 for ac_option in --version -v -V -qversion; do 31491 { { ac_try="$ac_compiler $ac_option >&5" 31492 case "(($ac_try" in 31493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31494 *) ac_try_echo=$ac_try;; 31495 esac 31496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31497 $as_echo "$ac_try_echo"; } >&5 31498 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 31499 ac_status=$? 31500 if test -s conftest.err; then 31501 sed '10a\ 31502 ... rest of stderr output deleted ... 31503 10q' conftest.err >conftest.er1 31504 cat conftest.er1 >&5 31505 fi 31506 rm -f conftest.er1 conftest.err 31507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31508 test $ac_status = 0; } 31509 done 31510 31511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 31512 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 31513 if ${ac_cv_objc_compiler_gnu+:} false; then : 31514 $as_echo_n "(cached) " >&6 31515 else 31516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31517 /* end confdefs.h. */ 31518 31519 int 31520 main () 31521 { 31522 #ifndef __GNUC__ 31523 choke me 31524 #endif 31525 31526 ; 31527 return 0; 31528 } 31529 _ACEOF 31530 if ac_fn_objc_try_compile "$LINENO"; then : 31531 ac_compiler_gnu=yes 31532 else 31533 ac_compiler_gnu=no 31534 fi 31535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31536 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 31537 31538 fi 31539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 31540 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 31541 if test $ac_compiler_gnu = yes; then 31542 GOBJC=yes 31543 else 31544 GOBJC= 31545 fi 31546 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 31547 ac_save_OBJCFLAGS=$OBJCFLAGS 31548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 31549 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 31550 if ${ac_cv_prog_objc_g+:} false; then : 31551 $as_echo_n "(cached) " >&6 31552 else 31553 ac_save_objc_werror_flag=$ac_objc_werror_flag 31554 ac_objc_werror_flag=yes 31555 ac_cv_prog_objc_g=no 31556 OBJCFLAGS="-g" 31557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31558 /* end confdefs.h. */ 31559 31560 int 31561 main () 31562 { 31563 31564 ; 31565 return 0; 31566 } 31567 _ACEOF 31568 if ac_fn_objc_try_compile "$LINENO"; then : 31569 ac_cv_prog_objc_g=yes 31570 else 31571 OBJCFLAGS="" 31572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31573 /* end confdefs.h. */ 31574 31575 int 31576 main () 31577 { 31578 31579 ; 31580 return 0; 31581 } 31582 _ACEOF 31583 if ac_fn_objc_try_compile "$LINENO"; then : 31584 31585 else 31586 ac_objc_werror_flag=$ac_save_objc_werror_flag 31587 OBJCFLAGS="-g" 31588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31589 /* end confdefs.h. */ 31590 31591 int 31592 main () 31593 { 31594 31595 ; 31596 return 0; 31597 } 31598 _ACEOF 31599 if ac_fn_objc_try_compile "$LINENO"; then : 31600 ac_cv_prog_objc_g=yes 31601 fi 31602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31603 fi 31604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31605 fi 31606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31607 ac_objc_werror_flag=$ac_save_objc_werror_flag 31608 fi 31609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 31610 $as_echo "$ac_cv_prog_objc_g" >&6; } 31611 if test "$ac_test_OBJCFLAGS" = set; then 31612 OBJCFLAGS=$ac_save_OBJCFLAGS 31613 elif test $ac_cv_prog_objc_g = yes; then 31614 if test "$GOBJC" = yes; then 31615 OBJCFLAGS="-g -O2" 31616 else 31617 OBJCFLAGS="-g" 31618 fi 31619 else 31620 if test "$GOBJC" = yes; then 31621 OBJCFLAGS="-O2" 31622 else 31623 OBJCFLAGS= 31624 fi 31625 fi 31626 ac_ext=cpp 31627 ac_cpp='$CXXCPP $CPPFLAGS' 31628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31631 31632 31633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31634 31635 # First separate the path from the arguments. This will split at the first 31636 # space. 31637 complete="$OBJC" 31638 path="${complete%% *}" 31639 tmp="$complete EOL" 31640 arguments="${tmp#* }" 31641 31642 # Input might be given as Windows format, start by converting to 31643 # unix format. 31644 new_path=`$CYGPATH -u "$path"` 31645 31646 # Now try to locate executable using which 31647 new_path=`$WHICH "$new_path" 2> /dev/null` 31648 # bat and cmd files are not always considered executable in cygwin causing which 31649 # to not find them 31650 if test "x$new_path" = x \ 31651 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31652 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31653 new_path=`$CYGPATH -u "$path"` 31654 fi 31655 if test "x$new_path" = x; then 31656 # Oops. Which didn't find the executable. 31657 # The splitting of arguments from the executable at a space might have been incorrect, 31658 # since paths with space are more likely in Windows. Give it another try with the whole 31659 # argument. 31660 path="$complete" 31661 arguments="EOL" 31662 new_path=`$CYGPATH -u "$path"` 31663 new_path=`$WHICH "$new_path" 2> /dev/null` 31664 # bat and cmd files are not always considered executable in cygwin causing which 31665 # to not find them 31666 if test "x$new_path" = x \ 31667 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31668 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31669 new_path=`$CYGPATH -u "$path"` 31670 fi 31671 if test "x$new_path" = x; then 31672 # It's still not found. Now this is an unrecoverable error. 31673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 31674 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 31675 has_space=`$ECHO "$complete" | $GREP " "` 31676 if test "x$has_space" != x; then 31677 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31678 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31679 fi 31680 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 31681 fi 31682 fi 31683 31684 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31685 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31686 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31687 # "foo.exe" is OK but "foo" is an error. 31688 # 31689 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31690 # It is also a way to make sure we got the proper file name for the real test later on. 31691 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31692 if test "x$test_shortpath" = x; then 31693 # Short path failed, file does not exist as specified. 31694 # Try adding .exe or .cmd 31695 if test -f "${new_path}.exe"; then 31696 input_to_shortpath="${new_path}.exe" 31697 elif test -f "${new_path}.cmd"; then 31698 input_to_shortpath="${new_path}.cmd" 31699 else 31700 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 31701 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 31702 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31703 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31704 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 31705 fi 31706 else 31707 input_to_shortpath="$new_path" 31708 fi 31709 31710 # Call helper function which possibly converts this using DOS-style short mode. 31711 # If so, the updated path is stored in $new_path. 31712 new_path="$input_to_shortpath" 31713 31714 input_path="$input_to_shortpath" 31715 # Check if we need to convert this using DOS-style short mode. If the path 31716 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31717 # take no chances and rewrite it. 31718 # Note: m4 eats our [], so we need to use [ and ] instead. 31719 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31720 if test "x$has_forbidden_chars" != x; then 31721 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31722 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31723 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31724 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31725 # Going to short mode and back again did indeed matter. Since short mode is 31726 # case insensitive, let's make it lowercase to improve readability. 31727 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31728 # Now convert it back to Unix-stile (cygpath) 31729 input_path=`$CYGPATH -u "$shortmode_path"` 31730 new_path="$input_path" 31731 fi 31732 fi 31733 31734 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31735 if test "x$test_cygdrive_prefix" = x; then 31736 # As a simple fix, exclude /usr/bin since it's not a real path. 31737 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31738 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31739 # a path prefixed by /cygdrive for fixpath to work. 31740 new_path="$CYGWIN_ROOT_PATH$input_path" 31741 fi 31742 fi 31743 31744 # remove trailing .exe if any 31745 new_path="${new_path/%.exe/}" 31746 31747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31748 31749 # First separate the path from the arguments. This will split at the first 31750 # space. 31751 complete="$OBJC" 31752 path="${complete%% *}" 31753 tmp="$complete EOL" 31754 arguments="${tmp#* }" 31755 31756 # Input might be given as Windows format, start by converting to 31757 # unix format. 31758 new_path="$path" 31759 31760 windows_path="$new_path" 31761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31762 unix_path=`$CYGPATH -u "$windows_path"` 31763 new_path="$unix_path" 31764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31766 new_path="$unix_path" 31767 fi 31768 31769 31770 # Now try to locate executable using which 31771 new_path=`$WHICH "$new_path" 2> /dev/null` 31772 31773 if test "x$new_path" = x; then 31774 # Oops. Which didn't find the executable. 31775 # The splitting of arguments from the executable at a space might have been incorrect, 31776 # since paths with space are more likely in Windows. Give it another try with the whole 31777 # argument. 31778 path="$complete" 31779 arguments="EOL" 31780 new_path="$path" 31781 31782 windows_path="$new_path" 31783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31784 unix_path=`$CYGPATH -u "$windows_path"` 31785 new_path="$unix_path" 31786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31788 new_path="$unix_path" 31789 fi 31790 31791 31792 new_path=`$WHICH "$new_path" 2> /dev/null` 31793 31794 if test "x$new_path" = x; then 31795 # It's still not found. Now this is an unrecoverable error. 31796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 31797 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 31798 has_space=`$ECHO "$complete" | $GREP " "` 31799 if test "x$has_space" != x; then 31800 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31801 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31802 fi 31803 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 31804 fi 31805 fi 31806 31807 # Now new_path has a complete unix path to the binary 31808 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31809 # Keep paths in /bin as-is, but remove trailing .exe if any 31810 new_path="${new_path/%.exe/}" 31811 # Do not save /bin paths to all_fixpath_prefixes! 31812 else 31813 # Not in mixed or Windows style, start by that. 31814 new_path=`cmd //c echo $new_path` 31815 31816 input_path="$new_path" 31817 # Check if we need to convert this using DOS-style short mode. If the path 31818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31819 # take no chances and rewrite it. 31820 # Note: m4 eats our [], so we need to use [ and ] instead. 31821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31822 if test "x$has_forbidden_chars" != x; then 31823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31824 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31825 fi 31826 31827 # Output is in $new_path 31828 31829 windows_path="$new_path" 31830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31831 unix_path=`$CYGPATH -u "$windows_path"` 31832 new_path="$unix_path" 31833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31835 new_path="$unix_path" 31836 fi 31837 31838 # remove trailing .exe if any 31839 new_path="${new_path/%.exe/}" 31840 31841 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31842 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31843 fi 31844 31845 else 31846 # We're on a posix platform. Hooray! :) 31847 # First separate the path from the arguments. This will split at the first 31848 # space. 31849 complete="$OBJC" 31850 path="${complete%% *}" 31851 tmp="$complete EOL" 31852 arguments="${tmp#* }" 31853 31854 # Cannot rely on the command "which" here since it doesn't always work. 31855 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31856 if test -z "$is_absolute_path"; then 31857 # Path to executable is not absolute. Find it. 31858 IFS_save="$IFS" 31859 IFS=: 31860 for p in $PATH; do 31861 if test -f "$p/$path" && test -x "$p/$path"; then 31862 new_path="$p/$path" 31863 break 31864 fi 31865 done 31866 IFS="$IFS_save" 31867 else 31868 # This is an absolute path, we can use it without further modifications. 31869 new_path="$path" 31870 fi 31871 31872 if test "x$new_path" = x; then 31873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 31874 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 31875 has_space=`$ECHO "$complete" | $GREP " "` 31876 if test "x$has_space" != x; then 31877 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31878 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31879 fi 31880 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 31881 fi 31882 fi 31883 31884 # Now join together the path and the arguments once again 31885 if test "x$arguments" != xEOL; then 31886 new_complete="$new_path ${arguments% *}" 31887 else 31888 new_complete="$new_path" 31889 fi 31890 31891 if test "x$complete" != "x$new_complete"; then 31892 OBJC="$new_complete" 31893 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 31894 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 31895 fi 31896 31897 31898 31899 # Publish this variable in the help. 31900 31901 31902 if test "x$LIPO" = x; then 31903 # The variable is not set by user, try to locate tool using the code snippet 31904 for ac_prog in lipo 31905 do 31906 # Extract the first word of "$ac_prog", so it can be a program name with args. 31907 set dummy $ac_prog; ac_word=$2 31908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31909 $as_echo_n "checking for $ac_word... " >&6; } 31910 if ${ac_cv_path_LIPO+:} false; then : 31911 $as_echo_n "(cached) " >&6 31912 else 31913 case $LIPO in 31914 [\\/]* | ?:[\\/]*) 31915 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 31916 ;; 31917 *) 31918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31919 for as_dir in $PATH 31920 do 31921 IFS=$as_save_IFS 31922 test -z "$as_dir" && as_dir=. 31923 for ac_exec_ext in '' $ac_executable_extensions; do 31924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31925 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 31926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31927 break 2 31928 fi 31929 done 31930 done 31931 IFS=$as_save_IFS 31932 31933 ;; 31934 esac 31935 fi 31936 LIPO=$ac_cv_path_LIPO 31937 if test -n "$LIPO"; then 31938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 31939 $as_echo "$LIPO" >&6; } 31940 else 31941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31942 $as_echo "no" >&6; } 31943 fi 31944 31945 31946 test -n "$LIPO" && break 31947 done 31948 31949 else 31950 # The variable is set, but is it from the command line or the environment? 31951 31952 # Try to remove the string !LIPO! from our list. 31953 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 31954 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31955 # If it failed, the variable was not from the command line. Ignore it, 31956 # but warn the user (except for BASH, which is always set by the calling BASH). 31957 if test "xLIPO" != xBASH; then 31958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 31959 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 31960 fi 31961 # Try to locate tool using the code snippet 31962 for ac_prog in lipo 31963 do 31964 # Extract the first word of "$ac_prog", so it can be a program name with args. 31965 set dummy $ac_prog; ac_word=$2 31966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31967 $as_echo_n "checking for $ac_word... " >&6; } 31968 if ${ac_cv_path_LIPO+:} false; then : 31969 $as_echo_n "(cached) " >&6 31970 else 31971 case $LIPO in 31972 [\\/]* | ?:[\\/]*) 31973 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 31974 ;; 31975 *) 31976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31977 for as_dir in $PATH 31978 do 31979 IFS=$as_save_IFS 31980 test -z "$as_dir" && as_dir=. 31981 for ac_exec_ext in '' $ac_executable_extensions; do 31982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31983 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 31984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31985 break 2 31986 fi 31987 done 31988 done 31989 IFS=$as_save_IFS 31990 31991 ;; 31992 esac 31993 fi 31994 LIPO=$ac_cv_path_LIPO 31995 if test -n "$LIPO"; then 31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 31997 $as_echo "$LIPO" >&6; } 31998 else 31999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32000 $as_echo "no" >&6; } 32001 fi 32002 32003 32004 test -n "$LIPO" && break 32005 done 32006 32007 else 32008 # If it succeeded, then it was overridden by the user. We will use it 32009 # for the tool. 32010 32011 # First remove it from the list of overridden variables, so we can test 32012 # for unknown variables in the end. 32013 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32014 32015 # Check if the provided tool contains a complete path. 32016 tool_specified="$LIPO" 32017 tool_basename="${tool_specified##*/}" 32018 if test "x$tool_basename" = "x$tool_specified"; then 32019 # A command without a complete path is provided, search $PATH. 32020 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 32021 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 32022 # Extract the first word of "$tool_basename", so it can be a program name with args. 32023 set dummy $tool_basename; ac_word=$2 32024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32025 $as_echo_n "checking for $ac_word... " >&6; } 32026 if ${ac_cv_path_LIPO+:} false; then : 32027 $as_echo_n "(cached) " >&6 32028 else 32029 case $LIPO in 32030 [\\/]* | ?:[\\/]*) 32031 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32032 ;; 32033 *) 32034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32035 for as_dir in $PATH 32036 do 32037 IFS=$as_save_IFS 32038 test -z "$as_dir" && as_dir=. 32039 for ac_exec_ext in '' $ac_executable_extensions; do 32040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32041 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 32042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32043 break 2 32044 fi 32045 done 32046 done 32047 IFS=$as_save_IFS 32048 32049 ;; 32050 esac 32051 fi 32052 LIPO=$ac_cv_path_LIPO 32053 if test -n "$LIPO"; then 32054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 32055 $as_echo "$LIPO" >&6; } 32056 else 32057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32058 $as_echo "no" >&6; } 32059 fi 32060 32061 32062 if test "x$LIPO" = x; then 32063 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32064 fi 32065 else 32066 # Otherwise we believe it is a complete path. Use it as it is. 32067 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 32068 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 32069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 32070 $as_echo_n "checking for LIPO... " >&6; } 32071 if test ! -x "$tool_specified"; then 32072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32073 $as_echo "not found" >&6; } 32074 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 32075 fi 32076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32077 $as_echo "$tool_specified" >&6; } 32078 fi 32079 fi 32080 fi 32081 32082 32083 32084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32085 32086 # First separate the path from the arguments. This will split at the first 32087 # space. 32088 complete="$LIPO" 32089 path="${complete%% *}" 32090 tmp="$complete EOL" 32091 arguments="${tmp#* }" 32092 32093 # Input might be given as Windows format, start by converting to 32094 # unix format. 32095 new_path=`$CYGPATH -u "$path"` 32096 32097 # Now try to locate executable using which 32098 new_path=`$WHICH "$new_path" 2> /dev/null` 32099 # bat and cmd files are not always considered executable in cygwin causing which 32100 # to not find them 32101 if test "x$new_path" = x \ 32102 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32103 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32104 new_path=`$CYGPATH -u "$path"` 32105 fi 32106 if test "x$new_path" = x; then 32107 # Oops. Which didn't find the executable. 32108 # The splitting of arguments from the executable at a space might have been incorrect, 32109 # since paths with space are more likely in Windows. Give it another try with the whole 32110 # argument. 32111 path="$complete" 32112 arguments="EOL" 32113 new_path=`$CYGPATH -u "$path"` 32114 new_path=`$WHICH "$new_path" 2> /dev/null` 32115 # bat and cmd files are not always considered executable in cygwin causing which 32116 # to not find them 32117 if test "x$new_path" = x \ 32118 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32119 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32120 new_path=`$CYGPATH -u "$path"` 32121 fi 32122 if test "x$new_path" = x; then 32123 # It's still not found. Now this is an unrecoverable error. 32124 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 32125 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 32126 has_space=`$ECHO "$complete" | $GREP " "` 32127 if test "x$has_space" != x; then 32128 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32129 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32130 fi 32131 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 32132 fi 32133 fi 32134 32135 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32136 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32137 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32138 # "foo.exe" is OK but "foo" is an error. 32139 # 32140 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32141 # It is also a way to make sure we got the proper file name for the real test later on. 32142 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32143 if test "x$test_shortpath" = x; then 32144 # Short path failed, file does not exist as specified. 32145 # Try adding .exe or .cmd 32146 if test -f "${new_path}.exe"; then 32147 input_to_shortpath="${new_path}.exe" 32148 elif test -f "${new_path}.cmd"; then 32149 input_to_shortpath="${new_path}.cmd" 32150 else 32151 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 32152 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 32153 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32154 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32155 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 32156 fi 32157 else 32158 input_to_shortpath="$new_path" 32159 fi 32160 32161 # Call helper function which possibly converts this using DOS-style short mode. 32162 # If so, the updated path is stored in $new_path. 32163 new_path="$input_to_shortpath" 32164 32165 input_path="$input_to_shortpath" 32166 # Check if we need to convert this using DOS-style short mode. If the path 32167 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32168 # take no chances and rewrite it. 32169 # Note: m4 eats our [], so we need to use [ and ] instead. 32170 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32171 if test "x$has_forbidden_chars" != x; then 32172 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32173 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32174 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32175 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32176 # Going to short mode and back again did indeed matter. Since short mode is 32177 # case insensitive, let's make it lowercase to improve readability. 32178 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32179 # Now convert it back to Unix-stile (cygpath) 32180 input_path=`$CYGPATH -u "$shortmode_path"` 32181 new_path="$input_path" 32182 fi 32183 fi 32184 32185 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32186 if test "x$test_cygdrive_prefix" = x; then 32187 # As a simple fix, exclude /usr/bin since it's not a real path. 32188 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32189 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32190 # a path prefixed by /cygdrive for fixpath to work. 32191 new_path="$CYGWIN_ROOT_PATH$input_path" 32192 fi 32193 fi 32194 32195 # remove trailing .exe if any 32196 new_path="${new_path/%.exe/}" 32197 32198 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32199 32200 # First separate the path from the arguments. This will split at the first 32201 # space. 32202 complete="$LIPO" 32203 path="${complete%% *}" 32204 tmp="$complete EOL" 32205 arguments="${tmp#* }" 32206 32207 # Input might be given as Windows format, start by converting to 32208 # unix format. 32209 new_path="$path" 32210 32211 windows_path="$new_path" 32212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32213 unix_path=`$CYGPATH -u "$windows_path"` 32214 new_path="$unix_path" 32215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32216 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32217 new_path="$unix_path" 32218 fi 32219 32220 32221 # Now try to locate executable using which 32222 new_path=`$WHICH "$new_path" 2> /dev/null` 32223 32224 if test "x$new_path" = x; then 32225 # Oops. Which didn't find the executable. 32226 # The splitting of arguments from the executable at a space might have been incorrect, 32227 # since paths with space are more likely in Windows. Give it another try with the whole 32228 # argument. 32229 path="$complete" 32230 arguments="EOL" 32231 new_path="$path" 32232 32233 windows_path="$new_path" 32234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32235 unix_path=`$CYGPATH -u "$windows_path"` 32236 new_path="$unix_path" 32237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32239 new_path="$unix_path" 32240 fi 32241 32242 32243 new_path=`$WHICH "$new_path" 2> /dev/null` 32244 32245 if test "x$new_path" = x; then 32246 # It's still not found. Now this is an unrecoverable error. 32247 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 32248 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 32249 has_space=`$ECHO "$complete" | $GREP " "` 32250 if test "x$has_space" != x; then 32251 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32252 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32253 fi 32254 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 32255 fi 32256 fi 32257 32258 # Now new_path has a complete unix path to the binary 32259 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32260 # Keep paths in /bin as-is, but remove trailing .exe if any 32261 new_path="${new_path/%.exe/}" 32262 # Do not save /bin paths to all_fixpath_prefixes! 32263 else 32264 # Not in mixed or Windows style, start by that. 32265 new_path=`cmd //c echo $new_path` 32266 32267 input_path="$new_path" 32268 # Check if we need to convert this using DOS-style short mode. If the path 32269 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32270 # take no chances and rewrite it. 32271 # Note: m4 eats our [], so we need to use [ and ] instead. 32272 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32273 if test "x$has_forbidden_chars" != x; then 32274 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32275 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32276 fi 32277 32278 # Output is in $new_path 32279 32280 windows_path="$new_path" 32281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32282 unix_path=`$CYGPATH -u "$windows_path"` 32283 new_path="$unix_path" 32284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32286 new_path="$unix_path" 32287 fi 32288 32289 # remove trailing .exe if any 32290 new_path="${new_path/%.exe/}" 32291 32292 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32293 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32294 fi 32295 32296 else 32297 # We're on a posix platform. Hooray! :) 32298 # First separate the path from the arguments. This will split at the first 32299 # space. 32300 complete="$LIPO" 32301 path="${complete%% *}" 32302 tmp="$complete EOL" 32303 arguments="${tmp#* }" 32304 32305 # Cannot rely on the command "which" here since it doesn't always work. 32306 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32307 if test -z "$is_absolute_path"; then 32308 # Path to executable is not absolute. Find it. 32309 IFS_save="$IFS" 32310 IFS=: 32311 for p in $PATH; do 32312 if test -f "$p/$path" && test -x "$p/$path"; then 32313 new_path="$p/$path" 32314 break 32315 fi 32316 done 32317 IFS="$IFS_save" 32318 else 32319 # This is an absolute path, we can use it without further modifications. 32320 new_path="$path" 32321 fi 32322 32323 if test "x$new_path" = x; then 32324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 32325 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 32326 has_space=`$ECHO "$complete" | $GREP " "` 32327 if test "x$has_space" != x; then 32328 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32329 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32330 fi 32331 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 32332 fi 32333 fi 32334 32335 # Now join together the path and the arguments once again 32336 if test "x$arguments" != xEOL; then 32337 new_complete="$new_path ${arguments% *}" 32338 else 32339 new_complete="$new_path" 32340 fi 32341 32342 if test "x$complete" != "x$new_complete"; then 32343 LIPO="$new_complete" 32344 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 32345 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 32346 fi 32347 32348 else 32349 OBJC= 32350 fi 32351 32352 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32353 # Extract the first word of "mt", so it can be a program name with args. 32354 set dummy mt; ac_word=$2 32355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32356 $as_echo_n "checking for $ac_word... " >&6; } 32357 if ${ac_cv_prog_MT+:} false; then : 32358 $as_echo_n "(cached) " >&6 32359 else 32360 if test -n "$MT"; then 32361 ac_cv_prog_MT="$MT" # Let the user override the test. 32362 else 32363 ac_prog_rejected=no 32364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32365 for as_dir in $PATH 32366 do 32367 IFS=$as_save_IFS 32368 test -z "$as_dir" && as_dir=. 32369 for ac_exec_ext in '' $ac_executable_extensions; do 32370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32371 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 32372 ac_prog_rejected=yes 32373 continue 32374 fi 32375 ac_cv_prog_MT="mt" 32376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32377 break 2 32378 fi 32379 done 32380 done 32381 IFS=$as_save_IFS 32382 32383 if test $ac_prog_rejected = yes; then 32384 # We found a bogon in the path, so make sure we never use it. 32385 set dummy $ac_cv_prog_MT 32386 shift 32387 if test $# != 0; then 32388 # We chose a different compiler from the bogus one. 32389 # However, it has the same basename, so the bogon will be chosen 32390 # first if we set MT to just the basename; use the full file name. 32391 shift 32392 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 32393 fi 32394 fi 32395 fi 32396 fi 32397 MT=$ac_cv_prog_MT 32398 if test -n "$MT"; then 32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 32400 $as_echo "$MT" >&6; } 32401 else 32402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32403 $as_echo "no" >&6; } 32404 fi 32405 32406 32407 32408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32409 32410 # First separate the path from the arguments. This will split at the first 32411 # space. 32412 complete="$MT" 32413 path="${complete%% *}" 32414 tmp="$complete EOL" 32415 arguments="${tmp#* }" 32416 32417 # Input might be given as Windows format, start by converting to 32418 # unix format. 32419 new_path=`$CYGPATH -u "$path"` 32420 32421 # Now try to locate executable using which 32422 new_path=`$WHICH "$new_path" 2> /dev/null` 32423 # bat and cmd files are not always considered executable in cygwin causing which 32424 # to not find them 32425 if test "x$new_path" = x \ 32426 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32427 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32428 new_path=`$CYGPATH -u "$path"` 32429 fi 32430 if test "x$new_path" = x; then 32431 # Oops. Which didn't find the executable. 32432 # The splitting of arguments from the executable at a space might have been incorrect, 32433 # since paths with space are more likely in Windows. Give it another try with the whole 32434 # argument. 32435 path="$complete" 32436 arguments="EOL" 32437 new_path=`$CYGPATH -u "$path"` 32438 new_path=`$WHICH "$new_path" 2> /dev/null` 32439 # bat and cmd files are not always considered executable in cygwin causing which 32440 # to not find them 32441 if test "x$new_path" = x \ 32442 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32443 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32444 new_path=`$CYGPATH -u "$path"` 32445 fi 32446 if test "x$new_path" = x; then 32447 # It's still not found. Now this is an unrecoverable error. 32448 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 32449 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 32450 has_space=`$ECHO "$complete" | $GREP " "` 32451 if test "x$has_space" != x; then 32452 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32453 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32454 fi 32455 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 32456 fi 32457 fi 32458 32459 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32460 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32461 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32462 # "foo.exe" is OK but "foo" is an error. 32463 # 32464 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32465 # It is also a way to make sure we got the proper file name for the real test later on. 32466 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32467 if test "x$test_shortpath" = x; then 32468 # Short path failed, file does not exist as specified. 32469 # Try adding .exe or .cmd 32470 if test -f "${new_path}.exe"; then 32471 input_to_shortpath="${new_path}.exe" 32472 elif test -f "${new_path}.cmd"; then 32473 input_to_shortpath="${new_path}.cmd" 32474 else 32475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 32476 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 32477 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32478 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32479 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 32480 fi 32481 else 32482 input_to_shortpath="$new_path" 32483 fi 32484 32485 # Call helper function which possibly converts this using DOS-style short mode. 32486 # If so, the updated path is stored in $new_path. 32487 new_path="$input_to_shortpath" 32488 32489 input_path="$input_to_shortpath" 32490 # Check if we need to convert this using DOS-style short mode. If the path 32491 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32492 # take no chances and rewrite it. 32493 # Note: m4 eats our [], so we need to use [ and ] instead. 32494 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32495 if test "x$has_forbidden_chars" != x; then 32496 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32497 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32498 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32499 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32500 # Going to short mode and back again did indeed matter. Since short mode is 32501 # case insensitive, let's make it lowercase to improve readability. 32502 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32503 # Now convert it back to Unix-stile (cygpath) 32504 input_path=`$CYGPATH -u "$shortmode_path"` 32505 new_path="$input_path" 32506 fi 32507 fi 32508 32509 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32510 if test "x$test_cygdrive_prefix" = x; then 32511 # As a simple fix, exclude /usr/bin since it's not a real path. 32512 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32513 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32514 # a path prefixed by /cygdrive for fixpath to work. 32515 new_path="$CYGWIN_ROOT_PATH$input_path" 32516 fi 32517 fi 32518 32519 # remove trailing .exe if any 32520 new_path="${new_path/%.exe/}" 32521 32522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32523 32524 # First separate the path from the arguments. This will split at the first 32525 # space. 32526 complete="$MT" 32527 path="${complete%% *}" 32528 tmp="$complete EOL" 32529 arguments="${tmp#* }" 32530 32531 # Input might be given as Windows format, start by converting to 32532 # unix format. 32533 new_path="$path" 32534 32535 windows_path="$new_path" 32536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32537 unix_path=`$CYGPATH -u "$windows_path"` 32538 new_path="$unix_path" 32539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32541 new_path="$unix_path" 32542 fi 32543 32544 32545 # Now try to locate executable using which 32546 new_path=`$WHICH "$new_path" 2> /dev/null` 32547 32548 if test "x$new_path" = x; then 32549 # Oops. Which didn't find the executable. 32550 # The splitting of arguments from the executable at a space might have been incorrect, 32551 # since paths with space are more likely in Windows. Give it another try with the whole 32552 # argument. 32553 path="$complete" 32554 arguments="EOL" 32555 new_path="$path" 32556 32557 windows_path="$new_path" 32558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32559 unix_path=`$CYGPATH -u "$windows_path"` 32560 new_path="$unix_path" 32561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32563 new_path="$unix_path" 32564 fi 32565 32566 32567 new_path=`$WHICH "$new_path" 2> /dev/null` 32568 32569 if test "x$new_path" = x; then 32570 # It's still not found. Now this is an unrecoverable error. 32571 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 32572 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 32573 has_space=`$ECHO "$complete" | $GREP " "` 32574 if test "x$has_space" != x; then 32575 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32576 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32577 fi 32578 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 32579 fi 32580 fi 32581 32582 # Now new_path has a complete unix path to the binary 32583 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32584 # Keep paths in /bin as-is, but remove trailing .exe if any 32585 new_path="${new_path/%.exe/}" 32586 # Do not save /bin paths to all_fixpath_prefixes! 32587 else 32588 # Not in mixed or Windows style, start by that. 32589 new_path=`cmd //c echo $new_path` 32590 32591 input_path="$new_path" 32592 # Check if we need to convert this using DOS-style short mode. If the path 32593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32594 # take no chances and rewrite it. 32595 # Note: m4 eats our [], so we need to use [ and ] instead. 32596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32597 if test "x$has_forbidden_chars" != x; then 32598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32599 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32600 fi 32601 32602 # Output is in $new_path 32603 32604 windows_path="$new_path" 32605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32606 unix_path=`$CYGPATH -u "$windows_path"` 32607 new_path="$unix_path" 32608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32609 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32610 new_path="$unix_path" 32611 fi 32612 32613 # remove trailing .exe if any 32614 new_path="${new_path/%.exe/}" 32615 32616 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32617 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32618 fi 32619 32620 else 32621 # We're on a posix platform. Hooray! :) 32622 # First separate the path from the arguments. This will split at the first 32623 # space. 32624 complete="$MT" 32625 path="${complete%% *}" 32626 tmp="$complete EOL" 32627 arguments="${tmp#* }" 32628 32629 # Cannot rely on the command "which" here since it doesn't always work. 32630 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32631 if test -z "$is_absolute_path"; then 32632 # Path to executable is not absolute. Find it. 32633 IFS_save="$IFS" 32634 IFS=: 32635 for p in $PATH; do 32636 if test -f "$p/$path" && test -x "$p/$path"; then 32637 new_path="$p/$path" 32638 break 32639 fi 32640 done 32641 IFS="$IFS_save" 32642 else 32643 # This is an absolute path, we can use it without further modifications. 32644 new_path="$path" 32645 fi 32646 32647 if test "x$new_path" = x; then 32648 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 32649 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 32650 has_space=`$ECHO "$complete" | $GREP " "` 32651 if test "x$has_space" != x; then 32652 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32653 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32654 fi 32655 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 32656 fi 32657 fi 32658 32659 # Now join together the path and the arguments once again 32660 if test "x$arguments" != xEOL; then 32661 new_complete="$new_path ${arguments% *}" 32662 else 32663 new_complete="$new_path" 32664 fi 32665 32666 if test "x$complete" != "x$new_complete"; then 32667 MT="$new_complete" 32668 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 32669 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 32670 fi 32671 32672 # Setup the resource compiler (RC) 32673 # Extract the first word of "rc", so it can be a program name with args. 32674 set dummy rc; ac_word=$2 32675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32676 $as_echo_n "checking for $ac_word... " >&6; } 32677 if ${ac_cv_prog_RC+:} false; then : 32678 $as_echo_n "(cached) " >&6 32679 else 32680 if test -n "$RC"; then 32681 ac_cv_prog_RC="$RC" # Let the user override the test. 32682 else 32683 ac_prog_rejected=no 32684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32685 for as_dir in $PATH 32686 do 32687 IFS=$as_save_IFS 32688 test -z "$as_dir" && as_dir=. 32689 for ac_exec_ext in '' $ac_executable_extensions; do 32690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 32692 ac_prog_rejected=yes 32693 continue 32694 fi 32695 ac_cv_prog_RC="rc" 32696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32697 break 2 32698 fi 32699 done 32700 done 32701 IFS=$as_save_IFS 32702 32703 if test $ac_prog_rejected = yes; then 32704 # We found a bogon in the path, so make sure we never use it. 32705 set dummy $ac_cv_prog_RC 32706 shift 32707 if test $# != 0; then 32708 # We chose a different compiler from the bogus one. 32709 # However, it has the same basename, so the bogon will be chosen 32710 # first if we set RC to just the basename; use the full file name. 32711 shift 32712 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 32713 fi 32714 fi 32715 fi 32716 fi 32717 RC=$ac_cv_prog_RC 32718 if test -n "$RC"; then 32719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 32720 $as_echo "$RC" >&6; } 32721 else 32722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32723 $as_echo "no" >&6; } 32724 fi 32725 32726 32727 32728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32729 32730 # First separate the path from the arguments. This will split at the first 32731 # space. 32732 complete="$RC" 32733 path="${complete%% *}" 32734 tmp="$complete EOL" 32735 arguments="${tmp#* }" 32736 32737 # Input might be given as Windows format, start by converting to 32738 # unix format. 32739 new_path=`$CYGPATH -u "$path"` 32740 32741 # Now try to locate executable using which 32742 new_path=`$WHICH "$new_path" 2> /dev/null` 32743 # bat and cmd files are not always considered executable in cygwin causing which 32744 # to not find them 32745 if test "x$new_path" = x \ 32746 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32747 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32748 new_path=`$CYGPATH -u "$path"` 32749 fi 32750 if test "x$new_path" = x; then 32751 # Oops. Which didn't find the executable. 32752 # The splitting of arguments from the executable at a space might have been incorrect, 32753 # since paths with space are more likely in Windows. Give it another try with the whole 32754 # argument. 32755 path="$complete" 32756 arguments="EOL" 32757 new_path=`$CYGPATH -u "$path"` 32758 new_path=`$WHICH "$new_path" 2> /dev/null` 32759 # bat and cmd files are not always considered executable in cygwin causing which 32760 # to not find them 32761 if test "x$new_path" = x \ 32762 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32763 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32764 new_path=`$CYGPATH -u "$path"` 32765 fi 32766 if test "x$new_path" = x; then 32767 # It's still not found. Now this is an unrecoverable error. 32768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 32769 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 32770 has_space=`$ECHO "$complete" | $GREP " "` 32771 if test "x$has_space" != x; then 32772 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32773 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32774 fi 32775 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 32776 fi 32777 fi 32778 32779 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32780 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32781 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32782 # "foo.exe" is OK but "foo" is an error. 32783 # 32784 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32785 # It is also a way to make sure we got the proper file name for the real test later on. 32786 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32787 if test "x$test_shortpath" = x; then 32788 # Short path failed, file does not exist as specified. 32789 # Try adding .exe or .cmd 32790 if test -f "${new_path}.exe"; then 32791 input_to_shortpath="${new_path}.exe" 32792 elif test -f "${new_path}.cmd"; then 32793 input_to_shortpath="${new_path}.cmd" 32794 else 32795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 32796 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 32797 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32798 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32799 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 32800 fi 32801 else 32802 input_to_shortpath="$new_path" 32803 fi 32804 32805 # Call helper function which possibly converts this using DOS-style short mode. 32806 # If so, the updated path is stored in $new_path. 32807 new_path="$input_to_shortpath" 32808 32809 input_path="$input_to_shortpath" 32810 # Check if we need to convert this using DOS-style short mode. If the path 32811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32812 # take no chances and rewrite it. 32813 # Note: m4 eats our [], so we need to use [ and ] instead. 32814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32815 if test "x$has_forbidden_chars" != x; then 32816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32817 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32818 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32819 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32820 # Going to short mode and back again did indeed matter. Since short mode is 32821 # case insensitive, let's make it lowercase to improve readability. 32822 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32823 # Now convert it back to Unix-stile (cygpath) 32824 input_path=`$CYGPATH -u "$shortmode_path"` 32825 new_path="$input_path" 32826 fi 32827 fi 32828 32829 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32830 if test "x$test_cygdrive_prefix" = x; then 32831 # As a simple fix, exclude /usr/bin since it's not a real path. 32832 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32833 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32834 # a path prefixed by /cygdrive for fixpath to work. 32835 new_path="$CYGWIN_ROOT_PATH$input_path" 32836 fi 32837 fi 32838 32839 # remove trailing .exe if any 32840 new_path="${new_path/%.exe/}" 32841 32842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32843 32844 # First separate the path from the arguments. This will split at the first 32845 # space. 32846 complete="$RC" 32847 path="${complete%% *}" 32848 tmp="$complete EOL" 32849 arguments="${tmp#* }" 32850 32851 # Input might be given as Windows format, start by converting to 32852 # unix format. 32853 new_path="$path" 32854 32855 windows_path="$new_path" 32856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32857 unix_path=`$CYGPATH -u "$windows_path"` 32858 new_path="$unix_path" 32859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32860 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32861 new_path="$unix_path" 32862 fi 32863 32864 32865 # Now try to locate executable using which 32866 new_path=`$WHICH "$new_path" 2> /dev/null` 32867 32868 if test "x$new_path" = x; then 32869 # Oops. Which didn't find the executable. 32870 # The splitting of arguments from the executable at a space might have been incorrect, 32871 # since paths with space are more likely in Windows. Give it another try with the whole 32872 # argument. 32873 path="$complete" 32874 arguments="EOL" 32875 new_path="$path" 32876 32877 windows_path="$new_path" 32878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32879 unix_path=`$CYGPATH -u "$windows_path"` 32880 new_path="$unix_path" 32881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32882 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32883 new_path="$unix_path" 32884 fi 32885 32886 32887 new_path=`$WHICH "$new_path" 2> /dev/null` 32888 32889 if test "x$new_path" = x; then 32890 # It's still not found. Now this is an unrecoverable error. 32891 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 32892 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 32893 has_space=`$ECHO "$complete" | $GREP " "` 32894 if test "x$has_space" != x; then 32895 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32896 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32897 fi 32898 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 32899 fi 32900 fi 32901 32902 # Now new_path has a complete unix path to the binary 32903 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32904 # Keep paths in /bin as-is, but remove trailing .exe if any 32905 new_path="${new_path/%.exe/}" 32906 # Do not save /bin paths to all_fixpath_prefixes! 32907 else 32908 # Not in mixed or Windows style, start by that. 32909 new_path=`cmd //c echo $new_path` 32910 32911 input_path="$new_path" 32912 # Check if we need to convert this using DOS-style short mode. If the path 32913 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32914 # take no chances and rewrite it. 32915 # Note: m4 eats our [], so we need to use [ and ] instead. 32916 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32917 if test "x$has_forbidden_chars" != x; then 32918 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32919 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32920 fi 32921 32922 # Output is in $new_path 32923 32924 windows_path="$new_path" 32925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32926 unix_path=`$CYGPATH -u "$windows_path"` 32927 new_path="$unix_path" 32928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32930 new_path="$unix_path" 32931 fi 32932 32933 # remove trailing .exe if any 32934 new_path="${new_path/%.exe/}" 32935 32936 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32937 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32938 fi 32939 32940 else 32941 # We're on a posix platform. Hooray! :) 32942 # First separate the path from the arguments. This will split at the first 32943 # space. 32944 complete="$RC" 32945 path="${complete%% *}" 32946 tmp="$complete EOL" 32947 arguments="${tmp#* }" 32948 32949 # Cannot rely on the command "which" here since it doesn't always work. 32950 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32951 if test -z "$is_absolute_path"; then 32952 # Path to executable is not absolute. Find it. 32953 IFS_save="$IFS" 32954 IFS=: 32955 for p in $PATH; do 32956 if test -f "$p/$path" && test -x "$p/$path"; then 32957 new_path="$p/$path" 32958 break 32959 fi 32960 done 32961 IFS="$IFS_save" 32962 else 32963 # This is an absolute path, we can use it without further modifications. 32964 new_path="$path" 32965 fi 32966 32967 if test "x$new_path" = x; then 32968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 32969 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 32970 has_space=`$ECHO "$complete" | $GREP " "` 32971 if test "x$has_space" != x; then 32972 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32973 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32974 fi 32975 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 32976 fi 32977 fi 32978 32979 # Now join together the path and the arguments once again 32980 if test "x$arguments" != xEOL; then 32981 new_complete="$new_path ${arguments% *}" 32982 else 32983 new_complete="$new_path" 32984 fi 32985 32986 if test "x$complete" != "x$new_complete"; then 32987 RC="$new_complete" 32988 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 32989 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 32990 fi 32991 32992 # Extract the first word of "dumpbin", so it can be a program name with args. 32993 set dummy dumpbin; ac_word=$2 32994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32995 $as_echo_n "checking for $ac_word... " >&6; } 32996 if ${ac_cv_prog_DUMPBIN+:} false; then : 32997 $as_echo_n "(cached) " >&6 32998 else 32999 if test -n "$DUMPBIN"; then 33000 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 33001 else 33002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33003 for as_dir in $PATH 33004 do 33005 IFS=$as_save_IFS 33006 test -z "$as_dir" && as_dir=. 33007 for ac_exec_ext in '' $ac_executable_extensions; do 33008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33009 ac_cv_prog_DUMPBIN="dumpbin" 33010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33011 break 2 33012 fi 33013 done 33014 done 33015 IFS=$as_save_IFS 33016 33017 fi 33018 fi 33019 DUMPBIN=$ac_cv_prog_DUMPBIN 33020 if test -n "$DUMPBIN"; then 33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 33022 $as_echo "$DUMPBIN" >&6; } 33023 else 33024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33025 $as_echo "no" >&6; } 33026 fi 33027 33028 33029 33030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33031 33032 # First separate the path from the arguments. This will split at the first 33033 # space. 33034 complete="$DUMPBIN" 33035 path="${complete%% *}" 33036 tmp="$complete EOL" 33037 arguments="${tmp#* }" 33038 33039 # Input might be given as Windows format, start by converting to 33040 # unix format. 33041 new_path=`$CYGPATH -u "$path"` 33042 33043 # Now try to locate executable using which 33044 new_path=`$WHICH "$new_path" 2> /dev/null` 33045 # bat and cmd files are not always considered executable in cygwin causing which 33046 # to not find them 33047 if test "x$new_path" = x \ 33048 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33049 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33050 new_path=`$CYGPATH -u "$path"` 33051 fi 33052 if test "x$new_path" = x; then 33053 # Oops. Which didn't find the executable. 33054 # The splitting of arguments from the executable at a space might have been incorrect, 33055 # since paths with space are more likely in Windows. Give it another try with the whole 33056 # argument. 33057 path="$complete" 33058 arguments="EOL" 33059 new_path=`$CYGPATH -u "$path"` 33060 new_path=`$WHICH "$new_path" 2> /dev/null` 33061 # bat and cmd files are not always considered executable in cygwin causing which 33062 # to not find them 33063 if test "x$new_path" = x \ 33064 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33065 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33066 new_path=`$CYGPATH -u "$path"` 33067 fi 33068 if test "x$new_path" = x; then 33069 # It's still not found. Now this is an unrecoverable error. 33070 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 33071 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 33072 has_space=`$ECHO "$complete" | $GREP " "` 33073 if test "x$has_space" != x; then 33074 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33075 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33076 fi 33077 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 33078 fi 33079 fi 33080 33081 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33082 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33083 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33084 # "foo.exe" is OK but "foo" is an error. 33085 # 33086 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33087 # It is also a way to make sure we got the proper file name for the real test later on. 33088 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33089 if test "x$test_shortpath" = x; then 33090 # Short path failed, file does not exist as specified. 33091 # Try adding .exe or .cmd 33092 if test -f "${new_path}.exe"; then 33093 input_to_shortpath="${new_path}.exe" 33094 elif test -f "${new_path}.cmd"; then 33095 input_to_shortpath="${new_path}.cmd" 33096 else 33097 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 33098 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 33099 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33100 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33101 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 33102 fi 33103 else 33104 input_to_shortpath="$new_path" 33105 fi 33106 33107 # Call helper function which possibly converts this using DOS-style short mode. 33108 # If so, the updated path is stored in $new_path. 33109 new_path="$input_to_shortpath" 33110 33111 input_path="$input_to_shortpath" 33112 # Check if we need to convert this using DOS-style short mode. If the path 33113 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33114 # take no chances and rewrite it. 33115 # Note: m4 eats our [], so we need to use [ and ] instead. 33116 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33117 if test "x$has_forbidden_chars" != x; then 33118 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33119 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33120 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33121 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33122 # Going to short mode and back again did indeed matter. Since short mode is 33123 # case insensitive, let's make it lowercase to improve readability. 33124 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33125 # Now convert it back to Unix-stile (cygpath) 33126 input_path=`$CYGPATH -u "$shortmode_path"` 33127 new_path="$input_path" 33128 fi 33129 fi 33130 33131 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33132 if test "x$test_cygdrive_prefix" = x; then 33133 # As a simple fix, exclude /usr/bin since it's not a real path. 33134 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33135 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33136 # a path prefixed by /cygdrive for fixpath to work. 33137 new_path="$CYGWIN_ROOT_PATH$input_path" 33138 fi 33139 fi 33140 33141 # remove trailing .exe if any 33142 new_path="${new_path/%.exe/}" 33143 33144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33145 33146 # First separate the path from the arguments. This will split at the first 33147 # space. 33148 complete="$DUMPBIN" 33149 path="${complete%% *}" 33150 tmp="$complete EOL" 33151 arguments="${tmp#* }" 33152 33153 # Input might be given as Windows format, start by converting to 33154 # unix format. 33155 new_path="$path" 33156 33157 windows_path="$new_path" 33158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33159 unix_path=`$CYGPATH -u "$windows_path"` 33160 new_path="$unix_path" 33161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33163 new_path="$unix_path" 33164 fi 33165 33166 33167 # Now try to locate executable using which 33168 new_path=`$WHICH "$new_path" 2> /dev/null` 33169 33170 if test "x$new_path" = x; then 33171 # Oops. Which didn't find the executable. 33172 # The splitting of arguments from the executable at a space might have been incorrect, 33173 # since paths with space are more likely in Windows. Give it another try with the whole 33174 # argument. 33175 path="$complete" 33176 arguments="EOL" 33177 new_path="$path" 33178 33179 windows_path="$new_path" 33180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33181 unix_path=`$CYGPATH -u "$windows_path"` 33182 new_path="$unix_path" 33183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33185 new_path="$unix_path" 33186 fi 33187 33188 33189 new_path=`$WHICH "$new_path" 2> /dev/null` 33190 33191 if test "x$new_path" = x; then 33192 # It's still not found. Now this is an unrecoverable error. 33193 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 33194 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 33195 has_space=`$ECHO "$complete" | $GREP " "` 33196 if test "x$has_space" != x; then 33197 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33198 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33199 fi 33200 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 33201 fi 33202 fi 33203 33204 # Now new_path has a complete unix path to the binary 33205 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33206 # Keep paths in /bin as-is, but remove trailing .exe if any 33207 new_path="${new_path/%.exe/}" 33208 # Do not save /bin paths to all_fixpath_prefixes! 33209 else 33210 # Not in mixed or Windows style, start by that. 33211 new_path=`cmd //c echo $new_path` 33212 33213 input_path="$new_path" 33214 # Check if we need to convert this using DOS-style short mode. If the path 33215 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33216 # take no chances and rewrite it. 33217 # Note: m4 eats our [], so we need to use [ and ] instead. 33218 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33219 if test "x$has_forbidden_chars" != x; then 33220 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33221 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33222 fi 33223 33224 # Output is in $new_path 33225 33226 windows_path="$new_path" 33227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33228 unix_path=`$CYGPATH -u "$windows_path"` 33229 new_path="$unix_path" 33230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33231 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33232 new_path="$unix_path" 33233 fi 33234 33235 # remove trailing .exe if any 33236 new_path="${new_path/%.exe/}" 33237 33238 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33239 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33240 fi 33241 33242 else 33243 # We're on a posix platform. Hooray! :) 33244 # First separate the path from the arguments. This will split at the first 33245 # space. 33246 complete="$DUMPBIN" 33247 path="${complete%% *}" 33248 tmp="$complete EOL" 33249 arguments="${tmp#* }" 33250 33251 # Cannot rely on the command "which" here since it doesn't always work. 33252 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33253 if test -z "$is_absolute_path"; then 33254 # Path to executable is not absolute. Find it. 33255 IFS_save="$IFS" 33256 IFS=: 33257 for p in $PATH; do 33258 if test -f "$p/$path" && test -x "$p/$path"; then 33259 new_path="$p/$path" 33260 break 33261 fi 33262 done 33263 IFS="$IFS_save" 33264 else 33265 # This is an absolute path, we can use it without further modifications. 33266 new_path="$path" 33267 fi 33268 33269 if test "x$new_path" = x; then 33270 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 33271 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 33272 has_space=`$ECHO "$complete" | $GREP " "` 33273 if test "x$has_space" != x; then 33274 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33275 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33276 fi 33277 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 33278 fi 33279 fi 33280 33281 # Now join together the path and the arguments once again 33282 if test "x$arguments" != xEOL; then 33283 new_complete="$new_path ${arguments% *}" 33284 else 33285 new_complete="$new_path" 33286 fi 33287 33288 if test "x$complete" != "x$new_complete"; then 33289 DUMPBIN="$new_complete" 33290 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 33291 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 33292 fi 33293 33294 fi 33295 33296 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 33297 33298 33299 # Publish this variable in the help. 33300 33301 33302 if test "x$STRIP" = x; then 33303 # The variable is not set by user, try to locate tool using the code snippet 33304 for ac_prog in strip 33305 do 33306 # Extract the first word of "$ac_prog", so it can be a program name with args. 33307 set dummy $ac_prog; ac_word=$2 33308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33309 $as_echo_n "checking for $ac_word... " >&6; } 33310 if ${ac_cv_path_STRIP+:} false; then : 33311 $as_echo_n "(cached) " >&6 33312 else 33313 case $STRIP in 33314 [\\/]* | ?:[\\/]*) 33315 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 33316 ;; 33317 *) 33318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33319 for as_dir in $PATH 33320 do 33321 IFS=$as_save_IFS 33322 test -z "$as_dir" && as_dir=. 33323 for ac_exec_ext in '' $ac_executable_extensions; do 33324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33325 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 33326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33327 break 2 33328 fi 33329 done 33330 done 33331 IFS=$as_save_IFS 33332 33333 ;; 33334 esac 33335 fi 33336 STRIP=$ac_cv_path_STRIP 33337 if test -n "$STRIP"; then 33338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 33339 $as_echo "$STRIP" >&6; } 33340 else 33341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33342 $as_echo "no" >&6; } 33343 fi 33344 33345 33346 test -n "$STRIP" && break 33347 done 33348 33349 else 33350 # The variable is set, but is it from the command line or the environment? 33351 33352 # Try to remove the string !STRIP! from our list. 33353 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 33354 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33355 # If it failed, the variable was not from the command line. Ignore it, 33356 # but warn the user (except for BASH, which is always set by the calling BASH). 33357 if test "xSTRIP" != xBASH; then 33358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 33359 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 33360 fi 33361 # Try to locate tool using the code snippet 33362 for ac_prog in strip 33363 do 33364 # Extract the first word of "$ac_prog", so it can be a program name with args. 33365 set dummy $ac_prog; ac_word=$2 33366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33367 $as_echo_n "checking for $ac_word... " >&6; } 33368 if ${ac_cv_path_STRIP+:} false; then : 33369 $as_echo_n "(cached) " >&6 33370 else 33371 case $STRIP in 33372 [\\/]* | ?:[\\/]*) 33373 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 33374 ;; 33375 *) 33376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33377 for as_dir in $PATH 33378 do 33379 IFS=$as_save_IFS 33380 test -z "$as_dir" && as_dir=. 33381 for ac_exec_ext in '' $ac_executable_extensions; do 33382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33383 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 33384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33385 break 2 33386 fi 33387 done 33388 done 33389 IFS=$as_save_IFS 33390 33391 ;; 33392 esac 33393 fi 33394 STRIP=$ac_cv_path_STRIP 33395 if test -n "$STRIP"; then 33396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 33397 $as_echo "$STRIP" >&6; } 33398 else 33399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33400 $as_echo "no" >&6; } 33401 fi 33402 33403 33404 test -n "$STRIP" && break 33405 done 33406 33407 else 33408 # If it succeeded, then it was overridden by the user. We will use it 33409 # for the tool. 33410 33411 # First remove it from the list of overridden variables, so we can test 33412 # for unknown variables in the end. 33413 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33414 33415 # Check if the provided tool contains a complete path. 33416 tool_specified="$STRIP" 33417 tool_basename="${tool_specified##*/}" 33418 if test "x$tool_basename" = "x$tool_specified"; then 33419 # A command without a complete path is provided, search $PATH. 33420 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 33421 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 33422 # Extract the first word of "$tool_basename", so it can be a program name with args. 33423 set dummy $tool_basename; ac_word=$2 33424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33425 $as_echo_n "checking for $ac_word... " >&6; } 33426 if ${ac_cv_path_STRIP+:} false; then : 33427 $as_echo_n "(cached) " >&6 33428 else 33429 case $STRIP in 33430 [\\/]* | ?:[\\/]*) 33431 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 33432 ;; 33433 *) 33434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33435 for as_dir in $PATH 33436 do 33437 IFS=$as_save_IFS 33438 test -z "$as_dir" && as_dir=. 33439 for ac_exec_ext in '' $ac_executable_extensions; do 33440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33441 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 33442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33443 break 2 33444 fi 33445 done 33446 done 33447 IFS=$as_save_IFS 33448 33449 ;; 33450 esac 33451 fi 33452 STRIP=$ac_cv_path_STRIP 33453 if test -n "$STRIP"; then 33454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 33455 $as_echo "$STRIP" >&6; } 33456 else 33457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33458 $as_echo "no" >&6; } 33459 fi 33460 33461 33462 if test "x$STRIP" = x; then 33463 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33464 fi 33465 else 33466 # Otherwise we believe it is a complete path. Use it as it is. 33467 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 33468 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 33469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 33470 $as_echo_n "checking for STRIP... " >&6; } 33471 if test ! -x "$tool_specified"; then 33472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33473 $as_echo "not found" >&6; } 33474 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 33475 fi 33476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33477 $as_echo "$tool_specified" >&6; } 33478 fi 33479 fi 33480 fi 33481 33482 33483 33484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33485 33486 # First separate the path from the arguments. This will split at the first 33487 # space. 33488 complete="$STRIP" 33489 path="${complete%% *}" 33490 tmp="$complete EOL" 33491 arguments="${tmp#* }" 33492 33493 # Input might be given as Windows format, start by converting to 33494 # unix format. 33495 new_path=`$CYGPATH -u "$path"` 33496 33497 # Now try to locate executable using which 33498 new_path=`$WHICH "$new_path" 2> /dev/null` 33499 # bat and cmd files are not always considered executable in cygwin causing which 33500 # to not find them 33501 if test "x$new_path" = x \ 33502 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33503 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33504 new_path=`$CYGPATH -u "$path"` 33505 fi 33506 if test "x$new_path" = x; then 33507 # Oops. Which didn't find the executable. 33508 # The splitting of arguments from the executable at a space might have been incorrect, 33509 # since paths with space are more likely in Windows. Give it another try with the whole 33510 # argument. 33511 path="$complete" 33512 arguments="EOL" 33513 new_path=`$CYGPATH -u "$path"` 33514 new_path=`$WHICH "$new_path" 2> /dev/null` 33515 # bat and cmd files are not always considered executable in cygwin causing which 33516 # to not find them 33517 if test "x$new_path" = x \ 33518 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33519 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33520 new_path=`$CYGPATH -u "$path"` 33521 fi 33522 if test "x$new_path" = x; then 33523 # It's still not found. Now this is an unrecoverable error. 33524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 33525 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 33526 has_space=`$ECHO "$complete" | $GREP " "` 33527 if test "x$has_space" != x; then 33528 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33529 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33530 fi 33531 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 33532 fi 33533 fi 33534 33535 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33536 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33537 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33538 # "foo.exe" is OK but "foo" is an error. 33539 # 33540 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33541 # It is also a way to make sure we got the proper file name for the real test later on. 33542 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33543 if test "x$test_shortpath" = x; then 33544 # Short path failed, file does not exist as specified. 33545 # Try adding .exe or .cmd 33546 if test -f "${new_path}.exe"; then 33547 input_to_shortpath="${new_path}.exe" 33548 elif test -f "${new_path}.cmd"; then 33549 input_to_shortpath="${new_path}.cmd" 33550 else 33551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 33552 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 33553 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33554 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33555 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 33556 fi 33557 else 33558 input_to_shortpath="$new_path" 33559 fi 33560 33561 # Call helper function which possibly converts this using DOS-style short mode. 33562 # If so, the updated path is stored in $new_path. 33563 new_path="$input_to_shortpath" 33564 33565 input_path="$input_to_shortpath" 33566 # Check if we need to convert this using DOS-style short mode. If the path 33567 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33568 # take no chances and rewrite it. 33569 # Note: m4 eats our [], so we need to use [ and ] instead. 33570 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33571 if test "x$has_forbidden_chars" != x; then 33572 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33573 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33574 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33575 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33576 # Going to short mode and back again did indeed matter. Since short mode is 33577 # case insensitive, let's make it lowercase to improve readability. 33578 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33579 # Now convert it back to Unix-stile (cygpath) 33580 input_path=`$CYGPATH -u "$shortmode_path"` 33581 new_path="$input_path" 33582 fi 33583 fi 33584 33585 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33586 if test "x$test_cygdrive_prefix" = x; then 33587 # As a simple fix, exclude /usr/bin since it's not a real path. 33588 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33589 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33590 # a path prefixed by /cygdrive for fixpath to work. 33591 new_path="$CYGWIN_ROOT_PATH$input_path" 33592 fi 33593 fi 33594 33595 # remove trailing .exe if any 33596 new_path="${new_path/%.exe/}" 33597 33598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33599 33600 # First separate the path from the arguments. This will split at the first 33601 # space. 33602 complete="$STRIP" 33603 path="${complete%% *}" 33604 tmp="$complete EOL" 33605 arguments="${tmp#* }" 33606 33607 # Input might be given as Windows format, start by converting to 33608 # unix format. 33609 new_path="$path" 33610 33611 windows_path="$new_path" 33612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33613 unix_path=`$CYGPATH -u "$windows_path"` 33614 new_path="$unix_path" 33615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33616 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33617 new_path="$unix_path" 33618 fi 33619 33620 33621 # Now try to locate executable using which 33622 new_path=`$WHICH "$new_path" 2> /dev/null` 33623 33624 if test "x$new_path" = x; then 33625 # Oops. Which didn't find the executable. 33626 # The splitting of arguments from the executable at a space might have been incorrect, 33627 # since paths with space are more likely in Windows. Give it another try with the whole 33628 # argument. 33629 path="$complete" 33630 arguments="EOL" 33631 new_path="$path" 33632 33633 windows_path="$new_path" 33634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33635 unix_path=`$CYGPATH -u "$windows_path"` 33636 new_path="$unix_path" 33637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33638 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33639 new_path="$unix_path" 33640 fi 33641 33642 33643 new_path=`$WHICH "$new_path" 2> /dev/null` 33644 33645 if test "x$new_path" = x; then 33646 # It's still not found. Now this is an unrecoverable error. 33647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 33648 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 33649 has_space=`$ECHO "$complete" | $GREP " "` 33650 if test "x$has_space" != x; then 33651 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33652 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33653 fi 33654 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 33655 fi 33656 fi 33657 33658 # Now new_path has a complete unix path to the binary 33659 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33660 # Keep paths in /bin as-is, but remove trailing .exe if any 33661 new_path="${new_path/%.exe/}" 33662 # Do not save /bin paths to all_fixpath_prefixes! 33663 else 33664 # Not in mixed or Windows style, start by that. 33665 new_path=`cmd //c echo $new_path` 33666 33667 input_path="$new_path" 33668 # Check if we need to convert this using DOS-style short mode. If the path 33669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33670 # take no chances and rewrite it. 33671 # Note: m4 eats our [], so we need to use [ and ] instead. 33672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33673 if test "x$has_forbidden_chars" != x; then 33674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33675 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33676 fi 33677 33678 # Output is in $new_path 33679 33680 windows_path="$new_path" 33681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33682 unix_path=`$CYGPATH -u "$windows_path"` 33683 new_path="$unix_path" 33684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33685 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33686 new_path="$unix_path" 33687 fi 33688 33689 # remove trailing .exe if any 33690 new_path="${new_path/%.exe/}" 33691 33692 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33693 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33694 fi 33695 33696 else 33697 # We're on a posix platform. Hooray! :) 33698 # First separate the path from the arguments. This will split at the first 33699 # space. 33700 complete="$STRIP" 33701 path="${complete%% *}" 33702 tmp="$complete EOL" 33703 arguments="${tmp#* }" 33704 33705 # Cannot rely on the command "which" here since it doesn't always work. 33706 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33707 if test -z "$is_absolute_path"; then 33708 # Path to executable is not absolute. Find it. 33709 IFS_save="$IFS" 33710 IFS=: 33711 for p in $PATH; do 33712 if test -f "$p/$path" && test -x "$p/$path"; then 33713 new_path="$p/$path" 33714 break 33715 fi 33716 done 33717 IFS="$IFS_save" 33718 else 33719 # This is an absolute path, we can use it without further modifications. 33720 new_path="$path" 33721 fi 33722 33723 if test "x$new_path" = x; then 33724 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 33725 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 33726 has_space=`$ECHO "$complete" | $GREP " "` 33727 if test "x$has_space" != x; then 33728 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33729 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33730 fi 33731 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 33732 fi 33733 fi 33734 33735 # Now join together the path and the arguments once again 33736 if test "x$arguments" != xEOL; then 33737 new_complete="$new_path ${arguments% *}" 33738 else 33739 new_complete="$new_path" 33740 fi 33741 33742 if test "x$complete" != "x$new_complete"; then 33743 STRIP="$new_complete" 33744 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 33745 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 33746 fi 33747 33748 33749 33750 # Publish this variable in the help. 33751 33752 33753 if test "x$NM" = x; then 33754 # The variable is not set by user, try to locate tool using the code snippet 33755 for ac_prog in nm 33756 do 33757 # Extract the first word of "$ac_prog", so it can be a program name with args. 33758 set dummy $ac_prog; ac_word=$2 33759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33760 $as_echo_n "checking for $ac_word... " >&6; } 33761 if ${ac_cv_path_NM+:} false; then : 33762 $as_echo_n "(cached) " >&6 33763 else 33764 case $NM in 33765 [\\/]* | ?:[\\/]*) 33766 ac_cv_path_NM="$NM" # Let the user override the test with a path. 33767 ;; 33768 *) 33769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33770 for as_dir in $PATH 33771 do 33772 IFS=$as_save_IFS 33773 test -z "$as_dir" && as_dir=. 33774 for ac_exec_ext in '' $ac_executable_extensions; do 33775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33776 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 33777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33778 break 2 33779 fi 33780 done 33781 done 33782 IFS=$as_save_IFS 33783 33784 ;; 33785 esac 33786 fi 33787 NM=$ac_cv_path_NM 33788 if test -n "$NM"; then 33789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 33790 $as_echo "$NM" >&6; } 33791 else 33792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33793 $as_echo "no" >&6; } 33794 fi 33795 33796 33797 test -n "$NM" && break 33798 done 33799 33800 else 33801 # The variable is set, but is it from the command line or the environment? 33802 33803 # Try to remove the string !NM! from our list. 33804 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 33805 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33806 # If it failed, the variable was not from the command line. Ignore it, 33807 # but warn the user (except for BASH, which is always set by the calling BASH). 33808 if test "xNM" != xBASH; then 33809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 33810 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 33811 fi 33812 # Try to locate tool using the code snippet 33813 for ac_prog in nm 33814 do 33815 # Extract the first word of "$ac_prog", so it can be a program name with args. 33816 set dummy $ac_prog; ac_word=$2 33817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33818 $as_echo_n "checking for $ac_word... " >&6; } 33819 if ${ac_cv_path_NM+:} false; then : 33820 $as_echo_n "(cached) " >&6 33821 else 33822 case $NM in 33823 [\\/]* | ?:[\\/]*) 33824 ac_cv_path_NM="$NM" # Let the user override the test with a path. 33825 ;; 33826 *) 33827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33828 for as_dir in $PATH 33829 do 33830 IFS=$as_save_IFS 33831 test -z "$as_dir" && as_dir=. 33832 for ac_exec_ext in '' $ac_executable_extensions; do 33833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33834 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 33835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33836 break 2 33837 fi 33838 done 33839 done 33840 IFS=$as_save_IFS 33841 33842 ;; 33843 esac 33844 fi 33845 NM=$ac_cv_path_NM 33846 if test -n "$NM"; then 33847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 33848 $as_echo "$NM" >&6; } 33849 else 33850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33851 $as_echo "no" >&6; } 33852 fi 33853 33854 33855 test -n "$NM" && break 33856 done 33857 33858 else 33859 # If it succeeded, then it was overridden by the user. We will use it 33860 # for the tool. 33861 33862 # First remove it from the list of overridden variables, so we can test 33863 # for unknown variables in the end. 33864 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33865 33866 # Check if the provided tool contains a complete path. 33867 tool_specified="$NM" 33868 tool_basename="${tool_specified##*/}" 33869 if test "x$tool_basename" = "x$tool_specified"; then 33870 # A command without a complete path is provided, search $PATH. 33871 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 33872 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 33873 # Extract the first word of "$tool_basename", so it can be a program name with args. 33874 set dummy $tool_basename; ac_word=$2 33875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33876 $as_echo_n "checking for $ac_word... " >&6; } 33877 if ${ac_cv_path_NM+:} false; then : 33878 $as_echo_n "(cached) " >&6 33879 else 33880 case $NM in 33881 [\\/]* | ?:[\\/]*) 33882 ac_cv_path_NM="$NM" # Let the user override the test with a path. 33883 ;; 33884 *) 33885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33886 for as_dir in $PATH 33887 do 33888 IFS=$as_save_IFS 33889 test -z "$as_dir" && as_dir=. 33890 for ac_exec_ext in '' $ac_executable_extensions; do 33891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33892 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 33893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33894 break 2 33895 fi 33896 done 33897 done 33898 IFS=$as_save_IFS 33899 33900 ;; 33901 esac 33902 fi 33903 NM=$ac_cv_path_NM 33904 if test -n "$NM"; then 33905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 33906 $as_echo "$NM" >&6; } 33907 else 33908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33909 $as_echo "no" >&6; } 33910 fi 33911 33912 33913 if test "x$NM" = x; then 33914 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33915 fi 33916 else 33917 # Otherwise we believe it is a complete path. Use it as it is. 33918 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 33919 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 33920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 33921 $as_echo_n "checking for NM... " >&6; } 33922 if test ! -x "$tool_specified"; then 33923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33924 $as_echo "not found" >&6; } 33925 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 33926 fi 33927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33928 $as_echo "$tool_specified" >&6; } 33929 fi 33930 fi 33931 fi 33932 33933 33934 33935 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33936 33937 # First separate the path from the arguments. This will split at the first 33938 # space. 33939 complete="$NM" 33940 path="${complete%% *}" 33941 tmp="$complete EOL" 33942 arguments="${tmp#* }" 33943 33944 # Input might be given as Windows format, start by converting to 33945 # unix format. 33946 new_path=`$CYGPATH -u "$path"` 33947 33948 # Now try to locate executable using which 33949 new_path=`$WHICH "$new_path" 2> /dev/null` 33950 # bat and cmd files are not always considered executable in cygwin causing which 33951 # to not find them 33952 if test "x$new_path" = x \ 33953 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33954 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33955 new_path=`$CYGPATH -u "$path"` 33956 fi 33957 if test "x$new_path" = x; then 33958 # Oops. Which didn't find the executable. 33959 # The splitting of arguments from the executable at a space might have been incorrect, 33960 # since paths with space are more likely in Windows. Give it another try with the whole 33961 # argument. 33962 path="$complete" 33963 arguments="EOL" 33964 new_path=`$CYGPATH -u "$path"` 33965 new_path=`$WHICH "$new_path" 2> /dev/null` 33966 # bat and cmd files are not always considered executable in cygwin causing which 33967 # to not find them 33968 if test "x$new_path" = x \ 33969 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33970 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33971 new_path=`$CYGPATH -u "$path"` 33972 fi 33973 if test "x$new_path" = x; then 33974 # It's still not found. Now this is an unrecoverable error. 33975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 33976 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 33977 has_space=`$ECHO "$complete" | $GREP " "` 33978 if test "x$has_space" != x; then 33979 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33980 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33981 fi 33982 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 33983 fi 33984 fi 33985 33986 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33987 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33988 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33989 # "foo.exe" is OK but "foo" is an error. 33990 # 33991 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33992 # It is also a way to make sure we got the proper file name for the real test later on. 33993 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33994 if test "x$test_shortpath" = x; then 33995 # Short path failed, file does not exist as specified. 33996 # Try adding .exe or .cmd 33997 if test -f "${new_path}.exe"; then 33998 input_to_shortpath="${new_path}.exe" 33999 elif test -f "${new_path}.cmd"; then 34000 input_to_shortpath="${new_path}.cmd" 34001 else 34002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 34003 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 34004 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34005 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34006 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 34007 fi 34008 else 34009 input_to_shortpath="$new_path" 34010 fi 34011 34012 # Call helper function which possibly converts this using DOS-style short mode. 34013 # If so, the updated path is stored in $new_path. 34014 new_path="$input_to_shortpath" 34015 34016 input_path="$input_to_shortpath" 34017 # Check if we need to convert this using DOS-style short mode. If the path 34018 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34019 # take no chances and rewrite it. 34020 # Note: m4 eats our [], so we need to use [ and ] instead. 34021 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34022 if test "x$has_forbidden_chars" != x; then 34023 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34024 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34025 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34026 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34027 # Going to short mode and back again did indeed matter. Since short mode is 34028 # case insensitive, let's make it lowercase to improve readability. 34029 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34030 # Now convert it back to Unix-stile (cygpath) 34031 input_path=`$CYGPATH -u "$shortmode_path"` 34032 new_path="$input_path" 34033 fi 34034 fi 34035 34036 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34037 if test "x$test_cygdrive_prefix" = x; then 34038 # As a simple fix, exclude /usr/bin since it's not a real path. 34039 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34040 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34041 # a path prefixed by /cygdrive for fixpath to work. 34042 new_path="$CYGWIN_ROOT_PATH$input_path" 34043 fi 34044 fi 34045 34046 # remove trailing .exe if any 34047 new_path="${new_path/%.exe/}" 34048 34049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34050 34051 # First separate the path from the arguments. This will split at the first 34052 # space. 34053 complete="$NM" 34054 path="${complete%% *}" 34055 tmp="$complete EOL" 34056 arguments="${tmp#* }" 34057 34058 # Input might be given as Windows format, start by converting to 34059 # unix format. 34060 new_path="$path" 34061 34062 windows_path="$new_path" 34063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34064 unix_path=`$CYGPATH -u "$windows_path"` 34065 new_path="$unix_path" 34066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34067 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34068 new_path="$unix_path" 34069 fi 34070 34071 34072 # Now try to locate executable using which 34073 new_path=`$WHICH "$new_path" 2> /dev/null` 34074 34075 if test "x$new_path" = x; then 34076 # Oops. Which didn't find the executable. 34077 # The splitting of arguments from the executable at a space might have been incorrect, 34078 # since paths with space are more likely in Windows. Give it another try with the whole 34079 # argument. 34080 path="$complete" 34081 arguments="EOL" 34082 new_path="$path" 34083 34084 windows_path="$new_path" 34085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34086 unix_path=`$CYGPATH -u "$windows_path"` 34087 new_path="$unix_path" 34088 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34089 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34090 new_path="$unix_path" 34091 fi 34092 34093 34094 new_path=`$WHICH "$new_path" 2> /dev/null` 34095 34096 if test "x$new_path" = x; then 34097 # It's still not found. Now this is an unrecoverable error. 34098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 34099 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 34100 has_space=`$ECHO "$complete" | $GREP " "` 34101 if test "x$has_space" != x; then 34102 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34103 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34104 fi 34105 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 34106 fi 34107 fi 34108 34109 # Now new_path has a complete unix path to the binary 34110 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34111 # Keep paths in /bin as-is, but remove trailing .exe if any 34112 new_path="${new_path/%.exe/}" 34113 # Do not save /bin paths to all_fixpath_prefixes! 34114 else 34115 # Not in mixed or Windows style, start by that. 34116 new_path=`cmd //c echo $new_path` 34117 34118 input_path="$new_path" 34119 # Check if we need to convert this using DOS-style short mode. If the path 34120 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34121 # take no chances and rewrite it. 34122 # Note: m4 eats our [], so we need to use [ and ] instead. 34123 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34124 if test "x$has_forbidden_chars" != x; then 34125 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34126 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34127 fi 34128 34129 # Output is in $new_path 34130 34131 windows_path="$new_path" 34132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34133 unix_path=`$CYGPATH -u "$windows_path"` 34134 new_path="$unix_path" 34135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34136 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34137 new_path="$unix_path" 34138 fi 34139 34140 # remove trailing .exe if any 34141 new_path="${new_path/%.exe/}" 34142 34143 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34144 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34145 fi 34146 34147 else 34148 # We're on a posix platform. Hooray! :) 34149 # First separate the path from the arguments. This will split at the first 34150 # space. 34151 complete="$NM" 34152 path="${complete%% *}" 34153 tmp="$complete EOL" 34154 arguments="${tmp#* }" 34155 34156 # Cannot rely on the command "which" here since it doesn't always work. 34157 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34158 if test -z "$is_absolute_path"; then 34159 # Path to executable is not absolute. Find it. 34160 IFS_save="$IFS" 34161 IFS=: 34162 for p in $PATH; do 34163 if test -f "$p/$path" && test -x "$p/$path"; then 34164 new_path="$p/$path" 34165 break 34166 fi 34167 done 34168 IFS="$IFS_save" 34169 else 34170 # This is an absolute path, we can use it without further modifications. 34171 new_path="$path" 34172 fi 34173 34174 if test "x$new_path" = x; then 34175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 34176 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 34177 has_space=`$ECHO "$complete" | $GREP " "` 34178 if test "x$has_space" != x; then 34179 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34180 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34181 fi 34182 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 34183 fi 34184 fi 34185 34186 # Now join together the path and the arguments once again 34187 if test "x$arguments" != xEOL; then 34188 new_complete="$new_path ${arguments% *}" 34189 else 34190 new_complete="$new_path" 34191 fi 34192 34193 if test "x$complete" != "x$new_complete"; then 34194 NM="$new_complete" 34195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 34196 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 34197 fi 34198 34199 34200 34201 # Publish this variable in the help. 34202 34203 34204 if test "x$GNM" = x; then 34205 # The variable is not set by user, try to locate tool using the code snippet 34206 for ac_prog in gnm 34207 do 34208 # Extract the first word of "$ac_prog", so it can be a program name with args. 34209 set dummy $ac_prog; ac_word=$2 34210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34211 $as_echo_n "checking for $ac_word... " >&6; } 34212 if ${ac_cv_path_GNM+:} false; then : 34213 $as_echo_n "(cached) " >&6 34214 else 34215 case $GNM in 34216 [\\/]* | ?:[\\/]*) 34217 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 34218 ;; 34219 *) 34220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34221 for as_dir in $PATH 34222 do 34223 IFS=$as_save_IFS 34224 test -z "$as_dir" && as_dir=. 34225 for ac_exec_ext in '' $ac_executable_extensions; do 34226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34227 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 34228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34229 break 2 34230 fi 34231 done 34232 done 34233 IFS=$as_save_IFS 34234 34235 ;; 34236 esac 34237 fi 34238 GNM=$ac_cv_path_GNM 34239 if test -n "$GNM"; then 34240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 34241 $as_echo "$GNM" >&6; } 34242 else 34243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34244 $as_echo "no" >&6; } 34245 fi 34246 34247 34248 test -n "$GNM" && break 34249 done 34250 34251 else 34252 # The variable is set, but is it from the command line or the environment? 34253 34254 # Try to remove the string !GNM! from our list. 34255 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 34256 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34257 # If it failed, the variable was not from the command line. Ignore it, 34258 # but warn the user (except for BASH, which is always set by the calling BASH). 34259 if test "xGNM" != xBASH; then 34260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 34261 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 34262 fi 34263 # Try to locate tool using the code snippet 34264 for ac_prog in gnm 34265 do 34266 # Extract the first word of "$ac_prog", so it can be a program name with args. 34267 set dummy $ac_prog; ac_word=$2 34268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34269 $as_echo_n "checking for $ac_word... " >&6; } 34270 if ${ac_cv_path_GNM+:} false; then : 34271 $as_echo_n "(cached) " >&6 34272 else 34273 case $GNM in 34274 [\\/]* | ?:[\\/]*) 34275 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 34276 ;; 34277 *) 34278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34279 for as_dir in $PATH 34280 do 34281 IFS=$as_save_IFS 34282 test -z "$as_dir" && as_dir=. 34283 for ac_exec_ext in '' $ac_executable_extensions; do 34284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34285 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 34286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34287 break 2 34288 fi 34289 done 34290 done 34291 IFS=$as_save_IFS 34292 34293 ;; 34294 esac 34295 fi 34296 GNM=$ac_cv_path_GNM 34297 if test -n "$GNM"; then 34298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 34299 $as_echo "$GNM" >&6; } 34300 else 34301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34302 $as_echo "no" >&6; } 34303 fi 34304 34305 34306 test -n "$GNM" && break 34307 done 34308 34309 else 34310 # If it succeeded, then it was overridden by the user. We will use it 34311 # for the tool. 34312 34313 # First remove it from the list of overridden variables, so we can test 34314 # for unknown variables in the end. 34315 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34316 34317 # Check if the provided tool contains a complete path. 34318 tool_specified="$GNM" 34319 tool_basename="${tool_specified##*/}" 34320 if test "x$tool_basename" = "x$tool_specified"; then 34321 # A command without a complete path is provided, search $PATH. 34322 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 34323 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 34324 # Extract the first word of "$tool_basename", so it can be a program name with args. 34325 set dummy $tool_basename; ac_word=$2 34326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34327 $as_echo_n "checking for $ac_word... " >&6; } 34328 if ${ac_cv_path_GNM+:} false; then : 34329 $as_echo_n "(cached) " >&6 34330 else 34331 case $GNM in 34332 [\\/]* | ?:[\\/]*) 34333 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 34334 ;; 34335 *) 34336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34337 for as_dir in $PATH 34338 do 34339 IFS=$as_save_IFS 34340 test -z "$as_dir" && as_dir=. 34341 for ac_exec_ext in '' $ac_executable_extensions; do 34342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34343 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 34344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34345 break 2 34346 fi 34347 done 34348 done 34349 IFS=$as_save_IFS 34350 34351 ;; 34352 esac 34353 fi 34354 GNM=$ac_cv_path_GNM 34355 if test -n "$GNM"; then 34356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 34357 $as_echo "$GNM" >&6; } 34358 else 34359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34360 $as_echo "no" >&6; } 34361 fi 34362 34363 34364 if test "x$GNM" = x; then 34365 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34366 fi 34367 else 34368 # Otherwise we believe it is a complete path. Use it as it is. 34369 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 34370 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 34371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 34372 $as_echo_n "checking for GNM... " >&6; } 34373 if test ! -x "$tool_specified"; then 34374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34375 $as_echo "not found" >&6; } 34376 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 34377 fi 34378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34379 $as_echo "$tool_specified" >&6; } 34380 fi 34381 fi 34382 fi 34383 34384 34385 34386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34387 34388 # First separate the path from the arguments. This will split at the first 34389 # space. 34390 complete="$GNM" 34391 path="${complete%% *}" 34392 tmp="$complete EOL" 34393 arguments="${tmp#* }" 34394 34395 # Input might be given as Windows format, start by converting to 34396 # unix format. 34397 new_path=`$CYGPATH -u "$path"` 34398 34399 # Now try to locate executable using which 34400 new_path=`$WHICH "$new_path" 2> /dev/null` 34401 # bat and cmd files are not always considered executable in cygwin causing which 34402 # to not find them 34403 if test "x$new_path" = x \ 34404 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34405 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34406 new_path=`$CYGPATH -u "$path"` 34407 fi 34408 if test "x$new_path" = x; then 34409 # Oops. Which didn't find the executable. 34410 # The splitting of arguments from the executable at a space might have been incorrect, 34411 # since paths with space are more likely in Windows. Give it another try with the whole 34412 # argument. 34413 path="$complete" 34414 arguments="EOL" 34415 new_path=`$CYGPATH -u "$path"` 34416 new_path=`$WHICH "$new_path" 2> /dev/null` 34417 # bat and cmd files are not always considered executable in cygwin causing which 34418 # to not find them 34419 if test "x$new_path" = x \ 34420 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34421 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34422 new_path=`$CYGPATH -u "$path"` 34423 fi 34424 if test "x$new_path" = x; then 34425 # It's still not found. Now this is an unrecoverable error. 34426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 34427 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 34428 has_space=`$ECHO "$complete" | $GREP " "` 34429 if test "x$has_space" != x; then 34430 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34431 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34432 fi 34433 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 34434 fi 34435 fi 34436 34437 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34438 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34439 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34440 # "foo.exe" is OK but "foo" is an error. 34441 # 34442 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34443 # It is also a way to make sure we got the proper file name for the real test later on. 34444 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34445 if test "x$test_shortpath" = x; then 34446 # Short path failed, file does not exist as specified. 34447 # Try adding .exe or .cmd 34448 if test -f "${new_path}.exe"; then 34449 input_to_shortpath="${new_path}.exe" 34450 elif test -f "${new_path}.cmd"; then 34451 input_to_shortpath="${new_path}.cmd" 34452 else 34453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 34454 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 34455 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34456 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34457 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 34458 fi 34459 else 34460 input_to_shortpath="$new_path" 34461 fi 34462 34463 # Call helper function which possibly converts this using DOS-style short mode. 34464 # If so, the updated path is stored in $new_path. 34465 new_path="$input_to_shortpath" 34466 34467 input_path="$input_to_shortpath" 34468 # Check if we need to convert this using DOS-style short mode. If the path 34469 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34470 # take no chances and rewrite it. 34471 # Note: m4 eats our [], so we need to use [ and ] instead. 34472 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34473 if test "x$has_forbidden_chars" != x; then 34474 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34475 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34476 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34477 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34478 # Going to short mode and back again did indeed matter. Since short mode is 34479 # case insensitive, let's make it lowercase to improve readability. 34480 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34481 # Now convert it back to Unix-stile (cygpath) 34482 input_path=`$CYGPATH -u "$shortmode_path"` 34483 new_path="$input_path" 34484 fi 34485 fi 34486 34487 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34488 if test "x$test_cygdrive_prefix" = x; then 34489 # As a simple fix, exclude /usr/bin since it's not a real path. 34490 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34491 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34492 # a path prefixed by /cygdrive for fixpath to work. 34493 new_path="$CYGWIN_ROOT_PATH$input_path" 34494 fi 34495 fi 34496 34497 # remove trailing .exe if any 34498 new_path="${new_path/%.exe/}" 34499 34500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34501 34502 # First separate the path from the arguments. This will split at the first 34503 # space. 34504 complete="$GNM" 34505 path="${complete%% *}" 34506 tmp="$complete EOL" 34507 arguments="${tmp#* }" 34508 34509 # Input might be given as Windows format, start by converting to 34510 # unix format. 34511 new_path="$path" 34512 34513 windows_path="$new_path" 34514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34515 unix_path=`$CYGPATH -u "$windows_path"` 34516 new_path="$unix_path" 34517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34518 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34519 new_path="$unix_path" 34520 fi 34521 34522 34523 # Now try to locate executable using which 34524 new_path=`$WHICH "$new_path" 2> /dev/null` 34525 34526 if test "x$new_path" = x; then 34527 # Oops. Which didn't find the executable. 34528 # The splitting of arguments from the executable at a space might have been incorrect, 34529 # since paths with space are more likely in Windows. Give it another try with the whole 34530 # argument. 34531 path="$complete" 34532 arguments="EOL" 34533 new_path="$path" 34534 34535 windows_path="$new_path" 34536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34537 unix_path=`$CYGPATH -u "$windows_path"` 34538 new_path="$unix_path" 34539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34541 new_path="$unix_path" 34542 fi 34543 34544 34545 new_path=`$WHICH "$new_path" 2> /dev/null` 34546 34547 if test "x$new_path" = x; then 34548 # It's still not found. Now this is an unrecoverable error. 34549 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 34550 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 34551 has_space=`$ECHO "$complete" | $GREP " "` 34552 if test "x$has_space" != x; then 34553 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34554 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34555 fi 34556 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 34557 fi 34558 fi 34559 34560 # Now new_path has a complete unix path to the binary 34561 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34562 # Keep paths in /bin as-is, but remove trailing .exe if any 34563 new_path="${new_path/%.exe/}" 34564 # Do not save /bin paths to all_fixpath_prefixes! 34565 else 34566 # Not in mixed or Windows style, start by that. 34567 new_path=`cmd //c echo $new_path` 34568 34569 input_path="$new_path" 34570 # Check if we need to convert this using DOS-style short mode. If the path 34571 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34572 # take no chances and rewrite it. 34573 # Note: m4 eats our [], so we need to use [ and ] instead. 34574 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34575 if test "x$has_forbidden_chars" != x; then 34576 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34577 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34578 fi 34579 34580 # Output is in $new_path 34581 34582 windows_path="$new_path" 34583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34584 unix_path=`$CYGPATH -u "$windows_path"` 34585 new_path="$unix_path" 34586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34588 new_path="$unix_path" 34589 fi 34590 34591 # remove trailing .exe if any 34592 new_path="${new_path/%.exe/}" 34593 34594 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34595 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34596 fi 34597 34598 else 34599 # We're on a posix platform. Hooray! :) 34600 # First separate the path from the arguments. This will split at the first 34601 # space. 34602 complete="$GNM" 34603 path="${complete%% *}" 34604 tmp="$complete EOL" 34605 arguments="${tmp#* }" 34606 34607 # Cannot rely on the command "which" here since it doesn't always work. 34608 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34609 if test -z "$is_absolute_path"; then 34610 # Path to executable is not absolute. Find it. 34611 IFS_save="$IFS" 34612 IFS=: 34613 for p in $PATH; do 34614 if test -f "$p/$path" && test -x "$p/$path"; then 34615 new_path="$p/$path" 34616 break 34617 fi 34618 done 34619 IFS="$IFS_save" 34620 else 34621 # This is an absolute path, we can use it without further modifications. 34622 new_path="$path" 34623 fi 34624 34625 if test "x$new_path" = x; then 34626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 34627 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 34628 has_space=`$ECHO "$complete" | $GREP " "` 34629 if test "x$has_space" != x; then 34630 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34631 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34632 fi 34633 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 34634 fi 34635 fi 34636 34637 # Now join together the path and the arguments once again 34638 if test "x$arguments" != xEOL; then 34639 new_complete="$new_path ${arguments% *}" 34640 else 34641 new_complete="$new_path" 34642 fi 34643 34644 if test "x$complete" != "x$new_complete"; then 34645 GNM="$new_complete" 34646 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 34647 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 34648 fi 34649 34650 34651 34652 34653 # Publish this variable in the help. 34654 34655 34656 if test "x$MCS" = x; then 34657 # The variable is not set by user, try to locate tool using the code snippet 34658 for ac_prog in mcs 34659 do 34660 # Extract the first word of "$ac_prog", so it can be a program name with args. 34661 set dummy $ac_prog; ac_word=$2 34662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34663 $as_echo_n "checking for $ac_word... " >&6; } 34664 if ${ac_cv_path_MCS+:} false; then : 34665 $as_echo_n "(cached) " >&6 34666 else 34667 case $MCS in 34668 [\\/]* | ?:[\\/]*) 34669 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 34670 ;; 34671 *) 34672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34673 for as_dir in $PATH 34674 do 34675 IFS=$as_save_IFS 34676 test -z "$as_dir" && as_dir=. 34677 for ac_exec_ext in '' $ac_executable_extensions; do 34678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34679 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 34680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34681 break 2 34682 fi 34683 done 34684 done 34685 IFS=$as_save_IFS 34686 34687 ;; 34688 esac 34689 fi 34690 MCS=$ac_cv_path_MCS 34691 if test -n "$MCS"; then 34692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 34693 $as_echo "$MCS" >&6; } 34694 else 34695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34696 $as_echo "no" >&6; } 34697 fi 34698 34699 34700 test -n "$MCS" && break 34701 done 34702 34703 else 34704 # The variable is set, but is it from the command line or the environment? 34705 34706 # Try to remove the string !MCS! from our list. 34707 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 34708 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34709 # If it failed, the variable was not from the command line. Ignore it, 34710 # but warn the user (except for BASH, which is always set by the calling BASH). 34711 if test "xMCS" != xBASH; then 34712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 34713 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 34714 fi 34715 # Try to locate tool using the code snippet 34716 for ac_prog in mcs 34717 do 34718 # Extract the first word of "$ac_prog", so it can be a program name with args. 34719 set dummy $ac_prog; ac_word=$2 34720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34721 $as_echo_n "checking for $ac_word... " >&6; } 34722 if ${ac_cv_path_MCS+:} false; then : 34723 $as_echo_n "(cached) " >&6 34724 else 34725 case $MCS in 34726 [\\/]* | ?:[\\/]*) 34727 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 34728 ;; 34729 *) 34730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34731 for as_dir in $PATH 34732 do 34733 IFS=$as_save_IFS 34734 test -z "$as_dir" && as_dir=. 34735 for ac_exec_ext in '' $ac_executable_extensions; do 34736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34737 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 34738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34739 break 2 34740 fi 34741 done 34742 done 34743 IFS=$as_save_IFS 34744 34745 ;; 34746 esac 34747 fi 34748 MCS=$ac_cv_path_MCS 34749 if test -n "$MCS"; then 34750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 34751 $as_echo "$MCS" >&6; } 34752 else 34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34754 $as_echo "no" >&6; } 34755 fi 34756 34757 34758 test -n "$MCS" && break 34759 done 34760 34761 else 34762 # If it succeeded, then it was overridden by the user. We will use it 34763 # for the tool. 34764 34765 # First remove it from the list of overridden variables, so we can test 34766 # for unknown variables in the end. 34767 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34768 34769 # Check if the provided tool contains a complete path. 34770 tool_specified="$MCS" 34771 tool_basename="${tool_specified##*/}" 34772 if test "x$tool_basename" = "x$tool_specified"; then 34773 # A command without a complete path is provided, search $PATH. 34774 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 34775 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 34776 # Extract the first word of "$tool_basename", so it can be a program name with args. 34777 set dummy $tool_basename; ac_word=$2 34778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34779 $as_echo_n "checking for $ac_word... " >&6; } 34780 if ${ac_cv_path_MCS+:} false; then : 34781 $as_echo_n "(cached) " >&6 34782 else 34783 case $MCS in 34784 [\\/]* | ?:[\\/]*) 34785 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 34786 ;; 34787 *) 34788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34789 for as_dir in $PATH 34790 do 34791 IFS=$as_save_IFS 34792 test -z "$as_dir" && as_dir=. 34793 for ac_exec_ext in '' $ac_executable_extensions; do 34794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34795 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 34796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34797 break 2 34798 fi 34799 done 34800 done 34801 IFS=$as_save_IFS 34802 34803 ;; 34804 esac 34805 fi 34806 MCS=$ac_cv_path_MCS 34807 if test -n "$MCS"; then 34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 34809 $as_echo "$MCS" >&6; } 34810 else 34811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34812 $as_echo "no" >&6; } 34813 fi 34814 34815 34816 if test "x$MCS" = x; then 34817 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34818 fi 34819 else 34820 # Otherwise we believe it is a complete path. Use it as it is. 34821 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 34822 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 34823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 34824 $as_echo_n "checking for MCS... " >&6; } 34825 if test ! -x "$tool_specified"; then 34826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34827 $as_echo "not found" >&6; } 34828 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 34829 fi 34830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34831 $as_echo "$tool_specified" >&6; } 34832 fi 34833 fi 34834 fi 34835 34836 34837 34838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34839 34840 # First separate the path from the arguments. This will split at the first 34841 # space. 34842 complete="$MCS" 34843 path="${complete%% *}" 34844 tmp="$complete EOL" 34845 arguments="${tmp#* }" 34846 34847 # Input might be given as Windows format, start by converting to 34848 # unix format. 34849 new_path=`$CYGPATH -u "$path"` 34850 34851 # Now try to locate executable using which 34852 new_path=`$WHICH "$new_path" 2> /dev/null` 34853 # bat and cmd files are not always considered executable in cygwin causing which 34854 # to not find them 34855 if test "x$new_path" = x \ 34856 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34857 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34858 new_path=`$CYGPATH -u "$path"` 34859 fi 34860 if test "x$new_path" = x; then 34861 # Oops. Which didn't find the executable. 34862 # The splitting of arguments from the executable at a space might have been incorrect, 34863 # since paths with space are more likely in Windows. Give it another try with the whole 34864 # argument. 34865 path="$complete" 34866 arguments="EOL" 34867 new_path=`$CYGPATH -u "$path"` 34868 new_path=`$WHICH "$new_path" 2> /dev/null` 34869 # bat and cmd files are not always considered executable in cygwin causing which 34870 # to not find them 34871 if test "x$new_path" = x \ 34872 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34873 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34874 new_path=`$CYGPATH -u "$path"` 34875 fi 34876 if test "x$new_path" = x; then 34877 # It's still not found. Now this is an unrecoverable error. 34878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 34879 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 34880 has_space=`$ECHO "$complete" | $GREP " "` 34881 if test "x$has_space" != x; then 34882 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34883 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34884 fi 34885 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 34886 fi 34887 fi 34888 34889 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34890 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34891 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34892 # "foo.exe" is OK but "foo" is an error. 34893 # 34894 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34895 # It is also a way to make sure we got the proper file name for the real test later on. 34896 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34897 if test "x$test_shortpath" = x; then 34898 # Short path failed, file does not exist as specified. 34899 # Try adding .exe or .cmd 34900 if test -f "${new_path}.exe"; then 34901 input_to_shortpath="${new_path}.exe" 34902 elif test -f "${new_path}.cmd"; then 34903 input_to_shortpath="${new_path}.cmd" 34904 else 34905 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 34906 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 34907 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34908 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34909 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 34910 fi 34911 else 34912 input_to_shortpath="$new_path" 34913 fi 34914 34915 # Call helper function which possibly converts this using DOS-style short mode. 34916 # If so, the updated path is stored in $new_path. 34917 new_path="$input_to_shortpath" 34918 34919 input_path="$input_to_shortpath" 34920 # Check if we need to convert this using DOS-style short mode. If the path 34921 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34922 # take no chances and rewrite it. 34923 # Note: m4 eats our [], so we need to use [ and ] instead. 34924 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34925 if test "x$has_forbidden_chars" != x; then 34926 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34927 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34928 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34929 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34930 # Going to short mode and back again did indeed matter. Since short mode is 34931 # case insensitive, let's make it lowercase to improve readability. 34932 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34933 # Now convert it back to Unix-stile (cygpath) 34934 input_path=`$CYGPATH -u "$shortmode_path"` 34935 new_path="$input_path" 34936 fi 34937 fi 34938 34939 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34940 if test "x$test_cygdrive_prefix" = x; then 34941 # As a simple fix, exclude /usr/bin since it's not a real path. 34942 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34943 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34944 # a path prefixed by /cygdrive for fixpath to work. 34945 new_path="$CYGWIN_ROOT_PATH$input_path" 34946 fi 34947 fi 34948 34949 # remove trailing .exe if any 34950 new_path="${new_path/%.exe/}" 34951 34952 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34953 34954 # First separate the path from the arguments. This will split at the first 34955 # space. 34956 complete="$MCS" 34957 path="${complete%% *}" 34958 tmp="$complete EOL" 34959 arguments="${tmp#* }" 34960 34961 # Input might be given as Windows format, start by converting to 34962 # unix format. 34963 new_path="$path" 34964 34965 windows_path="$new_path" 34966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34967 unix_path=`$CYGPATH -u "$windows_path"` 34968 new_path="$unix_path" 34969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34970 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34971 new_path="$unix_path" 34972 fi 34973 34974 34975 # Now try to locate executable using which 34976 new_path=`$WHICH "$new_path" 2> /dev/null` 34977 34978 if test "x$new_path" = x; then 34979 # Oops. Which didn't find the executable. 34980 # The splitting of arguments from the executable at a space might have been incorrect, 34981 # since paths with space are more likely in Windows. Give it another try with the whole 34982 # argument. 34983 path="$complete" 34984 arguments="EOL" 34985 new_path="$path" 34986 34987 windows_path="$new_path" 34988 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34989 unix_path=`$CYGPATH -u "$windows_path"` 34990 new_path="$unix_path" 34991 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34992 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34993 new_path="$unix_path" 34994 fi 34995 34996 34997 new_path=`$WHICH "$new_path" 2> /dev/null` 34998 34999 if test "x$new_path" = x; then 35000 # It's still not found. Now this is an unrecoverable error. 35001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 35002 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 35003 has_space=`$ECHO "$complete" | $GREP " "` 35004 if test "x$has_space" != x; then 35005 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35006 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35007 fi 35008 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 35009 fi 35010 fi 35011 35012 # Now new_path has a complete unix path to the binary 35013 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35014 # Keep paths in /bin as-is, but remove trailing .exe if any 35015 new_path="${new_path/%.exe/}" 35016 # Do not save /bin paths to all_fixpath_prefixes! 35017 else 35018 # Not in mixed or Windows style, start by that. 35019 new_path=`cmd //c echo $new_path` 35020 35021 input_path="$new_path" 35022 # Check if we need to convert this using DOS-style short mode. If the path 35023 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35024 # take no chances and rewrite it. 35025 # Note: m4 eats our [], so we need to use [ and ] instead. 35026 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35027 if test "x$has_forbidden_chars" != x; then 35028 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35029 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35030 fi 35031 35032 # Output is in $new_path 35033 35034 windows_path="$new_path" 35035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35036 unix_path=`$CYGPATH -u "$windows_path"` 35037 new_path="$unix_path" 35038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35040 new_path="$unix_path" 35041 fi 35042 35043 # remove trailing .exe if any 35044 new_path="${new_path/%.exe/}" 35045 35046 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35047 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35048 fi 35049 35050 else 35051 # We're on a posix platform. Hooray! :) 35052 # First separate the path from the arguments. This will split at the first 35053 # space. 35054 complete="$MCS" 35055 path="${complete%% *}" 35056 tmp="$complete EOL" 35057 arguments="${tmp#* }" 35058 35059 # Cannot rely on the command "which" here since it doesn't always work. 35060 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35061 if test -z "$is_absolute_path"; then 35062 # Path to executable is not absolute. Find it. 35063 IFS_save="$IFS" 35064 IFS=: 35065 for p in $PATH; do 35066 if test -f "$p/$path" && test -x "$p/$path"; then 35067 new_path="$p/$path" 35068 break 35069 fi 35070 done 35071 IFS="$IFS_save" 35072 else 35073 # This is an absolute path, we can use it without further modifications. 35074 new_path="$path" 35075 fi 35076 35077 if test "x$new_path" = x; then 35078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 35079 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 35080 has_space=`$ECHO "$complete" | $GREP " "` 35081 if test "x$has_space" != x; then 35082 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35083 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35084 fi 35085 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 35086 fi 35087 fi 35088 35089 # Now join together the path and the arguments once again 35090 if test "x$arguments" != xEOL; then 35091 new_complete="$new_path ${arguments% *}" 35092 else 35093 new_complete="$new_path" 35094 fi 35095 35096 if test "x$complete" != "x$new_complete"; then 35097 MCS="$new_complete" 35098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 35099 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 35100 fi 35101 35102 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 35103 # FIXME: we should unify this with the solaris case above. 35104 35105 35106 # Publish this variable in the help. 35107 35108 35109 if test "x$STRIP" = x; then 35110 # The variable is not set by user, try to locate tool using the code snippet 35111 if test -n "$ac_tool_prefix"; then 35112 for ac_prog in strip 35113 do 35114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35117 $as_echo_n "checking for $ac_word... " >&6; } 35118 if ${ac_cv_prog_STRIP+:} false; then : 35119 $as_echo_n "(cached) " >&6 35120 else 35121 if test -n "$STRIP"; then 35122 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 35123 else 35124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35125 for as_dir in $PATH 35126 do 35127 IFS=$as_save_IFS 35128 test -z "$as_dir" && as_dir=. 35129 for ac_exec_ext in '' $ac_executable_extensions; do 35130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35131 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 35132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35133 break 2 35134 fi 35135 done 35136 done 35137 IFS=$as_save_IFS 35138 35139 fi 35140 fi 35141 STRIP=$ac_cv_prog_STRIP 35142 if test -n "$STRIP"; then 35143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35144 $as_echo "$STRIP" >&6; } 35145 else 35146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35147 $as_echo "no" >&6; } 35148 fi 35149 35150 35151 test -n "$STRIP" && break 35152 done 35153 fi 35154 if test -z "$STRIP"; then 35155 ac_ct_STRIP=$STRIP 35156 for ac_prog in strip 35157 do 35158 # Extract the first word of "$ac_prog", so it can be a program name with args. 35159 set dummy $ac_prog; ac_word=$2 35160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35161 $as_echo_n "checking for $ac_word... " >&6; } 35162 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 35163 $as_echo_n "(cached) " >&6 35164 else 35165 if test -n "$ac_ct_STRIP"; then 35166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 35167 else 35168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35169 for as_dir in $PATH 35170 do 35171 IFS=$as_save_IFS 35172 test -z "$as_dir" && as_dir=. 35173 for ac_exec_ext in '' $ac_executable_extensions; do 35174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35175 ac_cv_prog_ac_ct_STRIP="$ac_prog" 35176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35177 break 2 35178 fi 35179 done 35180 done 35181 IFS=$as_save_IFS 35182 35183 fi 35184 fi 35185 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 35186 if test -n "$ac_ct_STRIP"; then 35187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 35188 $as_echo "$ac_ct_STRIP" >&6; } 35189 else 35190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35191 $as_echo "no" >&6; } 35192 fi 35193 35194 35195 test -n "$ac_ct_STRIP" && break 35196 done 35197 35198 if test "x$ac_ct_STRIP" = x; then 35199 STRIP="" 35200 else 35201 case $cross_compiling:$ac_tool_warned in 35202 yes:) 35203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35205 ac_tool_warned=yes ;; 35206 esac 35207 STRIP=$ac_ct_STRIP 35208 fi 35209 fi 35210 35211 else 35212 # The variable is set, but is it from the command line or the environment? 35213 35214 # Try to remove the string !STRIP! from our list. 35215 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35216 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35217 # If it failed, the variable was not from the command line. Ignore it, 35218 # but warn the user (except for BASH, which is always set by the calling BASH). 35219 if test "xSTRIP" != xBASH; then 35220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35221 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35222 fi 35223 # Try to locate tool using the code snippet 35224 if test -n "$ac_tool_prefix"; then 35225 for ac_prog in strip 35226 do 35227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35230 $as_echo_n "checking for $ac_word... " >&6; } 35231 if ${ac_cv_prog_STRIP+:} false; then : 35232 $as_echo_n "(cached) " >&6 35233 else 35234 if test -n "$STRIP"; then 35235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 35236 else 35237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35238 for as_dir in $PATH 35239 do 35240 IFS=$as_save_IFS 35241 test -z "$as_dir" && as_dir=. 35242 for ac_exec_ext in '' $ac_executable_extensions; do 35243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35244 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 35245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35246 break 2 35247 fi 35248 done 35249 done 35250 IFS=$as_save_IFS 35251 35252 fi 35253 fi 35254 STRIP=$ac_cv_prog_STRIP 35255 if test -n "$STRIP"; then 35256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35257 $as_echo "$STRIP" >&6; } 35258 else 35259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35260 $as_echo "no" >&6; } 35261 fi 35262 35263 35264 test -n "$STRIP" && break 35265 done 35266 fi 35267 if test -z "$STRIP"; then 35268 ac_ct_STRIP=$STRIP 35269 for ac_prog in strip 35270 do 35271 # Extract the first word of "$ac_prog", so it can be a program name with args. 35272 set dummy $ac_prog; ac_word=$2 35273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35274 $as_echo_n "checking for $ac_word... " >&6; } 35275 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 35276 $as_echo_n "(cached) " >&6 35277 else 35278 if test -n "$ac_ct_STRIP"; then 35279 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 35280 else 35281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35282 for as_dir in $PATH 35283 do 35284 IFS=$as_save_IFS 35285 test -z "$as_dir" && as_dir=. 35286 for ac_exec_ext in '' $ac_executable_extensions; do 35287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35288 ac_cv_prog_ac_ct_STRIP="$ac_prog" 35289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35290 break 2 35291 fi 35292 done 35293 done 35294 IFS=$as_save_IFS 35295 35296 fi 35297 fi 35298 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 35299 if test -n "$ac_ct_STRIP"; then 35300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 35301 $as_echo "$ac_ct_STRIP" >&6; } 35302 else 35303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35304 $as_echo "no" >&6; } 35305 fi 35306 35307 35308 test -n "$ac_ct_STRIP" && break 35309 done 35310 35311 if test "x$ac_ct_STRIP" = x; then 35312 STRIP="" 35313 else 35314 case $cross_compiling:$ac_tool_warned in 35315 yes:) 35316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35318 ac_tool_warned=yes ;; 35319 esac 35320 STRIP=$ac_ct_STRIP 35321 fi 35322 fi 35323 35324 else 35325 # If it succeeded, then it was overridden by the user. We will use it 35326 # for the tool. 35327 35328 # First remove it from the list of overridden variables, so we can test 35329 # for unknown variables in the end. 35330 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35331 35332 # Check if the provided tool contains a complete path. 35333 tool_specified="$STRIP" 35334 tool_basename="${tool_specified##*/}" 35335 if test "x$tool_basename" = "x$tool_specified"; then 35336 # A command without a complete path is provided, search $PATH. 35337 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35338 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35339 # Extract the first word of "$tool_basename", so it can be a program name with args. 35340 set dummy $tool_basename; ac_word=$2 35341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35342 $as_echo_n "checking for $ac_word... " >&6; } 35343 if ${ac_cv_path_STRIP+:} false; then : 35344 $as_echo_n "(cached) " >&6 35345 else 35346 case $STRIP in 35347 [\\/]* | ?:[\\/]*) 35348 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35349 ;; 35350 *) 35351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35352 for as_dir in $PATH 35353 do 35354 IFS=$as_save_IFS 35355 test -z "$as_dir" && as_dir=. 35356 for ac_exec_ext in '' $ac_executable_extensions; do 35357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35358 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35360 break 2 35361 fi 35362 done 35363 done 35364 IFS=$as_save_IFS 35365 35366 ;; 35367 esac 35368 fi 35369 STRIP=$ac_cv_path_STRIP 35370 if test -n "$STRIP"; then 35371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35372 $as_echo "$STRIP" >&6; } 35373 else 35374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35375 $as_echo "no" >&6; } 35376 fi 35377 35378 35379 if test "x$STRIP" = x; then 35380 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35381 fi 35382 else 35383 # Otherwise we believe it is a complete path. Use it as it is. 35384 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35385 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35387 $as_echo_n "checking for STRIP... " >&6; } 35388 if test ! -x "$tool_specified"; then 35389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35390 $as_echo "not found" >&6; } 35391 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35392 fi 35393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35394 $as_echo "$tool_specified" >&6; } 35395 fi 35396 fi 35397 fi 35398 35399 35400 35401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35402 35403 # First separate the path from the arguments. This will split at the first 35404 # space. 35405 complete="$STRIP" 35406 path="${complete%% *}" 35407 tmp="$complete EOL" 35408 arguments="${tmp#* }" 35409 35410 # Input might be given as Windows format, start by converting to 35411 # unix format. 35412 new_path=`$CYGPATH -u "$path"` 35413 35414 # Now try to locate executable using which 35415 new_path=`$WHICH "$new_path" 2> /dev/null` 35416 # bat and cmd files are not always considered executable in cygwin causing which 35417 # to not find them 35418 if test "x$new_path" = x \ 35419 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35420 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35421 new_path=`$CYGPATH -u "$path"` 35422 fi 35423 if test "x$new_path" = x; then 35424 # Oops. Which didn't find the executable. 35425 # The splitting of arguments from the executable at a space might have been incorrect, 35426 # since paths with space are more likely in Windows. Give it another try with the whole 35427 # argument. 35428 path="$complete" 35429 arguments="EOL" 35430 new_path=`$CYGPATH -u "$path"` 35431 new_path=`$WHICH "$new_path" 2> /dev/null` 35432 # bat and cmd files are not always considered executable in cygwin causing which 35433 # to not find them 35434 if test "x$new_path" = x \ 35435 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35436 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35437 new_path=`$CYGPATH -u "$path"` 35438 fi 35439 if test "x$new_path" = x; then 35440 # It's still not found. Now this is an unrecoverable error. 35441 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35442 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35443 has_space=`$ECHO "$complete" | $GREP " "` 35444 if test "x$has_space" != x; then 35445 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35446 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35447 fi 35448 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35449 fi 35450 fi 35451 35452 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35453 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35454 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35455 # "foo.exe" is OK but "foo" is an error. 35456 # 35457 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35458 # It is also a way to make sure we got the proper file name for the real test later on. 35459 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35460 if test "x$test_shortpath" = x; then 35461 # Short path failed, file does not exist as specified. 35462 # Try adding .exe or .cmd 35463 if test -f "${new_path}.exe"; then 35464 input_to_shortpath="${new_path}.exe" 35465 elif test -f "${new_path}.cmd"; then 35466 input_to_shortpath="${new_path}.cmd" 35467 else 35468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35469 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35470 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35471 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35472 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35473 fi 35474 else 35475 input_to_shortpath="$new_path" 35476 fi 35477 35478 # Call helper function which possibly converts this using DOS-style short mode. 35479 # If so, the updated path is stored in $new_path. 35480 new_path="$input_to_shortpath" 35481 35482 input_path="$input_to_shortpath" 35483 # Check if we need to convert this using DOS-style short mode. If the path 35484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35485 # take no chances and rewrite it. 35486 # Note: m4 eats our [], so we need to use [ and ] instead. 35487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35488 if test "x$has_forbidden_chars" != x; then 35489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35490 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35491 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35492 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35493 # Going to short mode and back again did indeed matter. Since short mode is 35494 # case insensitive, let's make it lowercase to improve readability. 35495 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35496 # Now convert it back to Unix-stile (cygpath) 35497 input_path=`$CYGPATH -u "$shortmode_path"` 35498 new_path="$input_path" 35499 fi 35500 fi 35501 35502 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35503 if test "x$test_cygdrive_prefix" = x; then 35504 # As a simple fix, exclude /usr/bin since it's not a real path. 35505 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35506 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35507 # a path prefixed by /cygdrive for fixpath to work. 35508 new_path="$CYGWIN_ROOT_PATH$input_path" 35509 fi 35510 fi 35511 35512 # remove trailing .exe if any 35513 new_path="${new_path/%.exe/}" 35514 35515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35516 35517 # First separate the path from the arguments. This will split at the first 35518 # space. 35519 complete="$STRIP" 35520 path="${complete%% *}" 35521 tmp="$complete EOL" 35522 arguments="${tmp#* }" 35523 35524 # Input might be given as Windows format, start by converting to 35525 # unix format. 35526 new_path="$path" 35527 35528 windows_path="$new_path" 35529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35530 unix_path=`$CYGPATH -u "$windows_path"` 35531 new_path="$unix_path" 35532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35534 new_path="$unix_path" 35535 fi 35536 35537 35538 # Now try to locate executable using which 35539 new_path=`$WHICH "$new_path" 2> /dev/null` 35540 35541 if test "x$new_path" = x; then 35542 # Oops. Which didn't find the executable. 35543 # The splitting of arguments from the executable at a space might have been incorrect, 35544 # since paths with space are more likely in Windows. Give it another try with the whole 35545 # argument. 35546 path="$complete" 35547 arguments="EOL" 35548 new_path="$path" 35549 35550 windows_path="$new_path" 35551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35552 unix_path=`$CYGPATH -u "$windows_path"` 35553 new_path="$unix_path" 35554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35556 new_path="$unix_path" 35557 fi 35558 35559 35560 new_path=`$WHICH "$new_path" 2> /dev/null` 35561 35562 if test "x$new_path" = x; then 35563 # It's still not found. Now this is an unrecoverable error. 35564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35565 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35566 has_space=`$ECHO "$complete" | $GREP " "` 35567 if test "x$has_space" != x; then 35568 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35569 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35570 fi 35571 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35572 fi 35573 fi 35574 35575 # Now new_path has a complete unix path to the binary 35576 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35577 # Keep paths in /bin as-is, but remove trailing .exe if any 35578 new_path="${new_path/%.exe/}" 35579 # Do not save /bin paths to all_fixpath_prefixes! 35580 else 35581 # Not in mixed or Windows style, start by that. 35582 new_path=`cmd //c echo $new_path` 35583 35584 input_path="$new_path" 35585 # Check if we need to convert this using DOS-style short mode. If the path 35586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35587 # take no chances and rewrite it. 35588 # Note: m4 eats our [], so we need to use [ and ] instead. 35589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35590 if test "x$has_forbidden_chars" != x; then 35591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35592 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35593 fi 35594 35595 # Output is in $new_path 35596 35597 windows_path="$new_path" 35598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35599 unix_path=`$CYGPATH -u "$windows_path"` 35600 new_path="$unix_path" 35601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35603 new_path="$unix_path" 35604 fi 35605 35606 # remove trailing .exe if any 35607 new_path="${new_path/%.exe/}" 35608 35609 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35610 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35611 fi 35612 35613 else 35614 # We're on a posix platform. Hooray! :) 35615 # First separate the path from the arguments. This will split at the first 35616 # space. 35617 complete="$STRIP" 35618 path="${complete%% *}" 35619 tmp="$complete EOL" 35620 arguments="${tmp#* }" 35621 35622 # Cannot rely on the command "which" here since it doesn't always work. 35623 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35624 if test -z "$is_absolute_path"; then 35625 # Path to executable is not absolute. Find it. 35626 IFS_save="$IFS" 35627 IFS=: 35628 for p in $PATH; do 35629 if test -f "$p/$path" && test -x "$p/$path"; then 35630 new_path="$p/$path" 35631 break 35632 fi 35633 done 35634 IFS="$IFS_save" 35635 else 35636 # This is an absolute path, we can use it without further modifications. 35637 new_path="$path" 35638 fi 35639 35640 if test "x$new_path" = x; then 35641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35642 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35643 has_space=`$ECHO "$complete" | $GREP " "` 35644 if test "x$has_space" != x; then 35645 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35646 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35647 fi 35648 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35649 fi 35650 fi 35651 35652 # Now join together the path and the arguments once again 35653 if test "x$arguments" != xEOL; then 35654 new_complete="$new_path ${arguments% *}" 35655 else 35656 new_complete="$new_path" 35657 fi 35658 35659 if test "x$complete" != "x$new_complete"; then 35660 STRIP="$new_complete" 35661 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35662 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35663 fi 35664 35665 # Extract the first word of "otool", so it can be a program name with args. 35666 set dummy otool; ac_word=$2 35667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35668 $as_echo_n "checking for $ac_word... " >&6; } 35669 if ${ac_cv_path_OTOOL+:} false; then : 35670 $as_echo_n "(cached) " >&6 35671 else 35672 case $OTOOL in 35673 [\\/]* | ?:[\\/]*) 35674 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 35675 ;; 35676 *) 35677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35678 for as_dir in $PATH 35679 do 35680 IFS=$as_save_IFS 35681 test -z "$as_dir" && as_dir=. 35682 for ac_exec_ext in '' $ac_executable_extensions; do 35683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35684 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 35685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35686 break 2 35687 fi 35688 done 35689 done 35690 IFS=$as_save_IFS 35691 35692 ;; 35693 esac 35694 fi 35695 OTOOL=$ac_cv_path_OTOOL 35696 if test -n "$OTOOL"; then 35697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 35698 $as_echo "$OTOOL" >&6; } 35699 else 35700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35701 $as_echo "no" >&6; } 35702 fi 35703 35704 35705 if test "x$OTOOL" = "x"; then 35706 OTOOL="true" 35707 fi 35708 35709 35710 # Publish this variable in the help. 35711 35712 35713 if test "x$NM" = x; then 35714 # The variable is not set by user, try to locate tool using the code snippet 35715 if test -n "$ac_tool_prefix"; then 35716 for ac_prog in nm 35717 do 35718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35721 $as_echo_n "checking for $ac_word... " >&6; } 35722 if ${ac_cv_prog_NM+:} false; then : 35723 $as_echo_n "(cached) " >&6 35724 else 35725 if test -n "$NM"; then 35726 ac_cv_prog_NM="$NM" # Let the user override the test. 35727 else 35728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35729 for as_dir in $PATH 35730 do 35731 IFS=$as_save_IFS 35732 test -z "$as_dir" && as_dir=. 35733 for ac_exec_ext in '' $ac_executable_extensions; do 35734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35735 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 35736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35737 break 2 35738 fi 35739 done 35740 done 35741 IFS=$as_save_IFS 35742 35743 fi 35744 fi 35745 NM=$ac_cv_prog_NM 35746 if test -n "$NM"; then 35747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35748 $as_echo "$NM" >&6; } 35749 else 35750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35751 $as_echo "no" >&6; } 35752 fi 35753 35754 35755 test -n "$NM" && break 35756 done 35757 fi 35758 if test -z "$NM"; then 35759 ac_ct_NM=$NM 35760 for ac_prog in nm 35761 do 35762 # Extract the first word of "$ac_prog", so it can be a program name with args. 35763 set dummy $ac_prog; ac_word=$2 35764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35765 $as_echo_n "checking for $ac_word... " >&6; } 35766 if ${ac_cv_prog_ac_ct_NM+:} false; then : 35767 $as_echo_n "(cached) " >&6 35768 else 35769 if test -n "$ac_ct_NM"; then 35770 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 35771 else 35772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35773 for as_dir in $PATH 35774 do 35775 IFS=$as_save_IFS 35776 test -z "$as_dir" && as_dir=. 35777 for ac_exec_ext in '' $ac_executable_extensions; do 35778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35779 ac_cv_prog_ac_ct_NM="$ac_prog" 35780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35781 break 2 35782 fi 35783 done 35784 done 35785 IFS=$as_save_IFS 35786 35787 fi 35788 fi 35789 ac_ct_NM=$ac_cv_prog_ac_ct_NM 35790 if test -n "$ac_ct_NM"; then 35791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 35792 $as_echo "$ac_ct_NM" >&6; } 35793 else 35794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35795 $as_echo "no" >&6; } 35796 fi 35797 35798 35799 test -n "$ac_ct_NM" && break 35800 done 35801 35802 if test "x$ac_ct_NM" = x; then 35803 NM="" 35804 else 35805 case $cross_compiling:$ac_tool_warned in 35806 yes:) 35807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35809 ac_tool_warned=yes ;; 35810 esac 35811 NM=$ac_ct_NM 35812 fi 35813 fi 35814 35815 else 35816 # The variable is set, but is it from the command line or the environment? 35817 35818 # Try to remove the string !NM! from our list. 35819 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35820 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35821 # If it failed, the variable was not from the command line. Ignore it, 35822 # but warn the user (except for BASH, which is always set by the calling BASH). 35823 if test "xNM" != xBASH; then 35824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35825 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35826 fi 35827 # Try to locate tool using the code snippet 35828 if test -n "$ac_tool_prefix"; then 35829 for ac_prog in nm 35830 do 35831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35834 $as_echo_n "checking for $ac_word... " >&6; } 35835 if ${ac_cv_prog_NM+:} false; then : 35836 $as_echo_n "(cached) " >&6 35837 else 35838 if test -n "$NM"; then 35839 ac_cv_prog_NM="$NM" # Let the user override the test. 35840 else 35841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35842 for as_dir in $PATH 35843 do 35844 IFS=$as_save_IFS 35845 test -z "$as_dir" && as_dir=. 35846 for ac_exec_ext in '' $ac_executable_extensions; do 35847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35848 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 35849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35850 break 2 35851 fi 35852 done 35853 done 35854 IFS=$as_save_IFS 35855 35856 fi 35857 fi 35858 NM=$ac_cv_prog_NM 35859 if test -n "$NM"; then 35860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35861 $as_echo "$NM" >&6; } 35862 else 35863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35864 $as_echo "no" >&6; } 35865 fi 35866 35867 35868 test -n "$NM" && break 35869 done 35870 fi 35871 if test -z "$NM"; then 35872 ac_ct_NM=$NM 35873 for ac_prog in nm 35874 do 35875 # Extract the first word of "$ac_prog", so it can be a program name with args. 35876 set dummy $ac_prog; ac_word=$2 35877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35878 $as_echo_n "checking for $ac_word... " >&6; } 35879 if ${ac_cv_prog_ac_ct_NM+:} false; then : 35880 $as_echo_n "(cached) " >&6 35881 else 35882 if test -n "$ac_ct_NM"; then 35883 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 35884 else 35885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35886 for as_dir in $PATH 35887 do 35888 IFS=$as_save_IFS 35889 test -z "$as_dir" && as_dir=. 35890 for ac_exec_ext in '' $ac_executable_extensions; do 35891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35892 ac_cv_prog_ac_ct_NM="$ac_prog" 35893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35894 break 2 35895 fi 35896 done 35897 done 35898 IFS=$as_save_IFS 35899 35900 fi 35901 fi 35902 ac_ct_NM=$ac_cv_prog_ac_ct_NM 35903 if test -n "$ac_ct_NM"; then 35904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 35905 $as_echo "$ac_ct_NM" >&6; } 35906 else 35907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35908 $as_echo "no" >&6; } 35909 fi 35910 35911 35912 test -n "$ac_ct_NM" && break 35913 done 35914 35915 if test "x$ac_ct_NM" = x; then 35916 NM="" 35917 else 35918 case $cross_compiling:$ac_tool_warned in 35919 yes:) 35920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35922 ac_tool_warned=yes ;; 35923 esac 35924 NM=$ac_ct_NM 35925 fi 35926 fi 35927 35928 else 35929 # If it succeeded, then it was overridden by the user. We will use it 35930 # for the tool. 35931 35932 # First remove it from the list of overridden variables, so we can test 35933 # for unknown variables in the end. 35934 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35935 35936 # Check if the provided tool contains a complete path. 35937 tool_specified="$NM" 35938 tool_basename="${tool_specified##*/}" 35939 if test "x$tool_basename" = "x$tool_specified"; then 35940 # A command without a complete path is provided, search $PATH. 35941 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35942 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35943 # Extract the first word of "$tool_basename", so it can be a program name with args. 35944 set dummy $tool_basename; ac_word=$2 35945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35946 $as_echo_n "checking for $ac_word... " >&6; } 35947 if ${ac_cv_path_NM+:} false; then : 35948 $as_echo_n "(cached) " >&6 35949 else 35950 case $NM in 35951 [\\/]* | ?:[\\/]*) 35952 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35953 ;; 35954 *) 35955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35956 for as_dir in $PATH 35957 do 35958 IFS=$as_save_IFS 35959 test -z "$as_dir" && as_dir=. 35960 for ac_exec_ext in '' $ac_executable_extensions; do 35961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35962 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35964 break 2 35965 fi 35966 done 35967 done 35968 IFS=$as_save_IFS 35969 35970 ;; 35971 esac 35972 fi 35973 NM=$ac_cv_path_NM 35974 if test -n "$NM"; then 35975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35976 $as_echo "$NM" >&6; } 35977 else 35978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35979 $as_echo "no" >&6; } 35980 fi 35981 35982 35983 if test "x$NM" = x; then 35984 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35985 fi 35986 else 35987 # Otherwise we believe it is a complete path. Use it as it is. 35988 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35989 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35991 $as_echo_n "checking for NM... " >&6; } 35992 if test ! -x "$tool_specified"; then 35993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35994 $as_echo "not found" >&6; } 35995 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35996 fi 35997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35998 $as_echo "$tool_specified" >&6; } 35999 fi 36000 fi 36001 fi 36002 36003 36004 36005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36006 36007 # First separate the path from the arguments. This will split at the first 36008 # space. 36009 complete="$NM" 36010 path="${complete%% *}" 36011 tmp="$complete EOL" 36012 arguments="${tmp#* }" 36013 36014 # Input might be given as Windows format, start by converting to 36015 # unix format. 36016 new_path=`$CYGPATH -u "$path"` 36017 36018 # Now try to locate executable using which 36019 new_path=`$WHICH "$new_path" 2> /dev/null` 36020 # bat and cmd files are not always considered executable in cygwin causing which 36021 # to not find them 36022 if test "x$new_path" = x \ 36023 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36024 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36025 new_path=`$CYGPATH -u "$path"` 36026 fi 36027 if test "x$new_path" = x; then 36028 # Oops. Which didn't find the executable. 36029 # The splitting of arguments from the executable at a space might have been incorrect, 36030 # since paths with space are more likely in Windows. Give it another try with the whole 36031 # argument. 36032 path="$complete" 36033 arguments="EOL" 36034 new_path=`$CYGPATH -u "$path"` 36035 new_path=`$WHICH "$new_path" 2> /dev/null` 36036 # bat and cmd files are not always considered executable in cygwin causing which 36037 # to not find them 36038 if test "x$new_path" = x \ 36039 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36040 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36041 new_path=`$CYGPATH -u "$path"` 36042 fi 36043 if test "x$new_path" = x; then 36044 # It's still not found. Now this is an unrecoverable error. 36045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36046 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36047 has_space=`$ECHO "$complete" | $GREP " "` 36048 if test "x$has_space" != x; then 36049 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36050 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36051 fi 36052 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36053 fi 36054 fi 36055 36056 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36057 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36058 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36059 # "foo.exe" is OK but "foo" is an error. 36060 # 36061 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36062 # It is also a way to make sure we got the proper file name for the real test later on. 36063 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36064 if test "x$test_shortpath" = x; then 36065 # Short path failed, file does not exist as specified. 36066 # Try adding .exe or .cmd 36067 if test -f "${new_path}.exe"; then 36068 input_to_shortpath="${new_path}.exe" 36069 elif test -f "${new_path}.cmd"; then 36070 input_to_shortpath="${new_path}.cmd" 36071 else 36072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 36073 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 36074 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36075 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36076 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36077 fi 36078 else 36079 input_to_shortpath="$new_path" 36080 fi 36081 36082 # Call helper function which possibly converts this using DOS-style short mode. 36083 # If so, the updated path is stored in $new_path. 36084 new_path="$input_to_shortpath" 36085 36086 input_path="$input_to_shortpath" 36087 # Check if we need to convert this using DOS-style short mode. If the path 36088 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36089 # take no chances and rewrite it. 36090 # Note: m4 eats our [], so we need to use [ and ] instead. 36091 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36092 if test "x$has_forbidden_chars" != x; then 36093 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36094 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36095 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36096 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36097 # Going to short mode and back again did indeed matter. Since short mode is 36098 # case insensitive, let's make it lowercase to improve readability. 36099 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36100 # Now convert it back to Unix-stile (cygpath) 36101 input_path=`$CYGPATH -u "$shortmode_path"` 36102 new_path="$input_path" 36103 fi 36104 fi 36105 36106 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36107 if test "x$test_cygdrive_prefix" = x; then 36108 # As a simple fix, exclude /usr/bin since it's not a real path. 36109 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36110 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36111 # a path prefixed by /cygdrive for fixpath to work. 36112 new_path="$CYGWIN_ROOT_PATH$input_path" 36113 fi 36114 fi 36115 36116 # remove trailing .exe if any 36117 new_path="${new_path/%.exe/}" 36118 36119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36120 36121 # First separate the path from the arguments. This will split at the first 36122 # space. 36123 complete="$NM" 36124 path="${complete%% *}" 36125 tmp="$complete EOL" 36126 arguments="${tmp#* }" 36127 36128 # Input might be given as Windows format, start by converting to 36129 # unix format. 36130 new_path="$path" 36131 36132 windows_path="$new_path" 36133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36134 unix_path=`$CYGPATH -u "$windows_path"` 36135 new_path="$unix_path" 36136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36137 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36138 new_path="$unix_path" 36139 fi 36140 36141 36142 # Now try to locate executable using which 36143 new_path=`$WHICH "$new_path" 2> /dev/null` 36144 36145 if test "x$new_path" = x; then 36146 # Oops. Which didn't find the executable. 36147 # The splitting of arguments from the executable at a space might have been incorrect, 36148 # since paths with space are more likely in Windows. Give it another try with the whole 36149 # argument. 36150 path="$complete" 36151 arguments="EOL" 36152 new_path="$path" 36153 36154 windows_path="$new_path" 36155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36156 unix_path=`$CYGPATH -u "$windows_path"` 36157 new_path="$unix_path" 36158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36160 new_path="$unix_path" 36161 fi 36162 36163 36164 new_path=`$WHICH "$new_path" 2> /dev/null` 36165 36166 if test "x$new_path" = x; then 36167 # It's still not found. Now this is an unrecoverable error. 36168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36169 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36170 has_space=`$ECHO "$complete" | $GREP " "` 36171 if test "x$has_space" != x; then 36172 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36173 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36174 fi 36175 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36176 fi 36177 fi 36178 36179 # Now new_path has a complete unix path to the binary 36180 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36181 # Keep paths in /bin as-is, but remove trailing .exe if any 36182 new_path="${new_path/%.exe/}" 36183 # Do not save /bin paths to all_fixpath_prefixes! 36184 else 36185 # Not in mixed or Windows style, start by that. 36186 new_path=`cmd //c echo $new_path` 36187 36188 input_path="$new_path" 36189 # Check if we need to convert this using DOS-style short mode. If the path 36190 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36191 # take no chances and rewrite it. 36192 # Note: m4 eats our [], so we need to use [ and ] instead. 36193 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36194 if test "x$has_forbidden_chars" != x; then 36195 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36196 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36197 fi 36198 36199 # Output is in $new_path 36200 36201 windows_path="$new_path" 36202 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36203 unix_path=`$CYGPATH -u "$windows_path"` 36204 new_path="$unix_path" 36205 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36206 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36207 new_path="$unix_path" 36208 fi 36209 36210 # remove trailing .exe if any 36211 new_path="${new_path/%.exe/}" 36212 36213 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36214 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36215 fi 36216 36217 else 36218 # We're on a posix platform. Hooray! :) 36219 # First separate the path from the arguments. This will split at the first 36220 # space. 36221 complete="$NM" 36222 path="${complete%% *}" 36223 tmp="$complete EOL" 36224 arguments="${tmp#* }" 36225 36226 # Cannot rely on the command "which" here since it doesn't always work. 36227 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36228 if test -z "$is_absolute_path"; then 36229 # Path to executable is not absolute. Find it. 36230 IFS_save="$IFS" 36231 IFS=: 36232 for p in $PATH; do 36233 if test -f "$p/$path" && test -x "$p/$path"; then 36234 new_path="$p/$path" 36235 break 36236 fi 36237 done 36238 IFS="$IFS_save" 36239 else 36240 # This is an absolute path, we can use it without further modifications. 36241 new_path="$path" 36242 fi 36243 36244 if test "x$new_path" = x; then 36245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36246 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36247 has_space=`$ECHO "$complete" | $GREP " "` 36248 if test "x$has_space" != x; then 36249 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36250 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36251 fi 36252 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36253 fi 36254 fi 36255 36256 # Now join together the path and the arguments once again 36257 if test "x$arguments" != xEOL; then 36258 new_complete="$new_path ${arguments% *}" 36259 else 36260 new_complete="$new_path" 36261 fi 36262 36263 if test "x$complete" != "x$new_complete"; then 36264 NM="$new_complete" 36265 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36266 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36267 fi 36268 36269 GNM="$NM" 36270 36271 fi 36272 36273 # objcopy is used for moving debug symbols to separate files when 36274 # full debug symbols are enabled. 36275 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 36276 36277 36278 # Publish this variable in the help. 36279 36280 36281 if test "x$OBJCOPY" = x; then 36282 # The variable is not set by user, try to locate tool using the code snippet 36283 if test -n "$ac_tool_prefix"; then 36284 for ac_prog in gobjcopy objcopy 36285 do 36286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36289 $as_echo_n "checking for $ac_word... " >&6; } 36290 if ${ac_cv_prog_OBJCOPY+:} false; then : 36291 $as_echo_n "(cached) " >&6 36292 else 36293 if test -n "$OBJCOPY"; then 36294 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 36295 else 36296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36297 for as_dir in $PATH 36298 do 36299 IFS=$as_save_IFS 36300 test -z "$as_dir" && as_dir=. 36301 for ac_exec_ext in '' $ac_executable_extensions; do 36302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36303 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 36304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36305 break 2 36306 fi 36307 done 36308 done 36309 IFS=$as_save_IFS 36310 36311 fi 36312 fi 36313 OBJCOPY=$ac_cv_prog_OBJCOPY 36314 if test -n "$OBJCOPY"; then 36315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 36316 $as_echo "$OBJCOPY" >&6; } 36317 else 36318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36319 $as_echo "no" >&6; } 36320 fi 36321 36322 36323 test -n "$OBJCOPY" && break 36324 done 36325 fi 36326 if test -z "$OBJCOPY"; then 36327 ac_ct_OBJCOPY=$OBJCOPY 36328 for ac_prog in gobjcopy objcopy 36329 do 36330 # Extract the first word of "$ac_prog", so it can be a program name with args. 36331 set dummy $ac_prog; ac_word=$2 36332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36333 $as_echo_n "checking for $ac_word... " >&6; } 36334 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 36335 $as_echo_n "(cached) " >&6 36336 else 36337 if test -n "$ac_ct_OBJCOPY"; then 36338 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 36339 else 36340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36341 for as_dir in $PATH 36342 do 36343 IFS=$as_save_IFS 36344 test -z "$as_dir" && as_dir=. 36345 for ac_exec_ext in '' $ac_executable_extensions; do 36346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36347 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 36348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36349 break 2 36350 fi 36351 done 36352 done 36353 IFS=$as_save_IFS 36354 36355 fi 36356 fi 36357 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 36358 if test -n "$ac_ct_OBJCOPY"; then 36359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 36360 $as_echo "$ac_ct_OBJCOPY" >&6; } 36361 else 36362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36363 $as_echo "no" >&6; } 36364 fi 36365 36366 36367 test -n "$ac_ct_OBJCOPY" && break 36368 done 36369 36370 if test "x$ac_ct_OBJCOPY" = x; then 36371 OBJCOPY="" 36372 else 36373 case $cross_compiling:$ac_tool_warned in 36374 yes:) 36375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36377 ac_tool_warned=yes ;; 36378 esac 36379 OBJCOPY=$ac_ct_OBJCOPY 36380 fi 36381 fi 36382 36383 else 36384 # The variable is set, but is it from the command line or the environment? 36385 36386 # Try to remove the string !OBJCOPY! from our list. 36387 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 36388 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36389 # If it failed, the variable was not from the command line. Ignore it, 36390 # but warn the user (except for BASH, which is always set by the calling BASH). 36391 if test "xOBJCOPY" != xBASH; then 36392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 36393 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 36394 fi 36395 # Try to locate tool using the code snippet 36396 if test -n "$ac_tool_prefix"; then 36397 for ac_prog in gobjcopy objcopy 36398 do 36399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36402 $as_echo_n "checking for $ac_word... " >&6; } 36403 if ${ac_cv_prog_OBJCOPY+:} false; then : 36404 $as_echo_n "(cached) " >&6 36405 else 36406 if test -n "$OBJCOPY"; then 36407 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 36408 else 36409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36410 for as_dir in $PATH 36411 do 36412 IFS=$as_save_IFS 36413 test -z "$as_dir" && as_dir=. 36414 for ac_exec_ext in '' $ac_executable_extensions; do 36415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36416 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 36417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36418 break 2 36419 fi 36420 done 36421 done 36422 IFS=$as_save_IFS 36423 36424 fi 36425 fi 36426 OBJCOPY=$ac_cv_prog_OBJCOPY 36427 if test -n "$OBJCOPY"; then 36428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 36429 $as_echo "$OBJCOPY" >&6; } 36430 else 36431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36432 $as_echo "no" >&6; } 36433 fi 36434 36435 36436 test -n "$OBJCOPY" && break 36437 done 36438 fi 36439 if test -z "$OBJCOPY"; then 36440 ac_ct_OBJCOPY=$OBJCOPY 36441 for ac_prog in gobjcopy objcopy 36442 do 36443 # Extract the first word of "$ac_prog", so it can be a program name with args. 36444 set dummy $ac_prog; ac_word=$2 36445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36446 $as_echo_n "checking for $ac_word... " >&6; } 36447 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 36448 $as_echo_n "(cached) " >&6 36449 else 36450 if test -n "$ac_ct_OBJCOPY"; then 36451 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 36452 else 36453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36454 for as_dir in $PATH 36455 do 36456 IFS=$as_save_IFS 36457 test -z "$as_dir" && as_dir=. 36458 for ac_exec_ext in '' $ac_executable_extensions; do 36459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36460 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 36461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36462 break 2 36463 fi 36464 done 36465 done 36466 IFS=$as_save_IFS 36467 36468 fi 36469 fi 36470 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 36471 if test -n "$ac_ct_OBJCOPY"; then 36472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 36473 $as_echo "$ac_ct_OBJCOPY" >&6; } 36474 else 36475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36476 $as_echo "no" >&6; } 36477 fi 36478 36479 36480 test -n "$ac_ct_OBJCOPY" && break 36481 done 36482 36483 if test "x$ac_ct_OBJCOPY" = x; then 36484 OBJCOPY="" 36485 else 36486 case $cross_compiling:$ac_tool_warned in 36487 yes:) 36488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36490 ac_tool_warned=yes ;; 36491 esac 36492 OBJCOPY=$ac_ct_OBJCOPY 36493 fi 36494 fi 36495 36496 else 36497 # If it succeeded, then it was overridden by the user. We will use it 36498 # for the tool. 36499 36500 # First remove it from the list of overridden variables, so we can test 36501 # for unknown variables in the end. 36502 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36503 36504 # Check if the provided tool contains a complete path. 36505 tool_specified="$OBJCOPY" 36506 tool_basename="${tool_specified##*/}" 36507 if test "x$tool_basename" = "x$tool_specified"; then 36508 # A command without a complete path is provided, search $PATH. 36509 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 36510 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 36511 # Extract the first word of "$tool_basename", so it can be a program name with args. 36512 set dummy $tool_basename; ac_word=$2 36513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36514 $as_echo_n "checking for $ac_word... " >&6; } 36515 if ${ac_cv_path_OBJCOPY+:} false; then : 36516 $as_echo_n "(cached) " >&6 36517 else 36518 case $OBJCOPY in 36519 [\\/]* | ?:[\\/]*) 36520 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 36521 ;; 36522 *) 36523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36524 for as_dir in $PATH 36525 do 36526 IFS=$as_save_IFS 36527 test -z "$as_dir" && as_dir=. 36528 for ac_exec_ext in '' $ac_executable_extensions; do 36529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36530 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 36531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36532 break 2 36533 fi 36534 done 36535 done 36536 IFS=$as_save_IFS 36537 36538 ;; 36539 esac 36540 fi 36541 OBJCOPY=$ac_cv_path_OBJCOPY 36542 if test -n "$OBJCOPY"; then 36543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 36544 $as_echo "$OBJCOPY" >&6; } 36545 else 36546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36547 $as_echo "no" >&6; } 36548 fi 36549 36550 36551 if test "x$OBJCOPY" = x; then 36552 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36553 fi 36554 else 36555 # Otherwise we believe it is a complete path. Use it as it is. 36556 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 36557 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 36558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 36559 $as_echo_n "checking for OBJCOPY... " >&6; } 36560 if test ! -x "$tool_specified"; then 36561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36562 $as_echo "not found" >&6; } 36563 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 36564 fi 36565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36566 $as_echo "$tool_specified" >&6; } 36567 fi 36568 fi 36569 fi 36570 36571 36572 # Only call fixup if objcopy was found. 36573 if test -n "$OBJCOPY"; then 36574 36575 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36576 36577 # First separate the path from the arguments. This will split at the first 36578 # space. 36579 complete="$OBJCOPY" 36580 path="${complete%% *}" 36581 tmp="$complete EOL" 36582 arguments="${tmp#* }" 36583 36584 # Input might be given as Windows format, start by converting to 36585 # unix format. 36586 new_path=`$CYGPATH -u "$path"` 36587 36588 # Now try to locate executable using which 36589 new_path=`$WHICH "$new_path" 2> /dev/null` 36590 # bat and cmd files are not always considered executable in cygwin causing which 36591 # to not find them 36592 if test "x$new_path" = x \ 36593 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36594 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36595 new_path=`$CYGPATH -u "$path"` 36596 fi 36597 if test "x$new_path" = x; then 36598 # Oops. Which didn't find the executable. 36599 # The splitting of arguments from the executable at a space might have been incorrect, 36600 # since paths with space are more likely in Windows. Give it another try with the whole 36601 # argument. 36602 path="$complete" 36603 arguments="EOL" 36604 new_path=`$CYGPATH -u "$path"` 36605 new_path=`$WHICH "$new_path" 2> /dev/null` 36606 # bat and cmd files are not always considered executable in cygwin causing which 36607 # to not find them 36608 if test "x$new_path" = x \ 36609 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36610 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36611 new_path=`$CYGPATH -u "$path"` 36612 fi 36613 if test "x$new_path" = x; then 36614 # It's still not found. Now this is an unrecoverable error. 36615 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 36616 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 36617 has_space=`$ECHO "$complete" | $GREP " "` 36618 if test "x$has_space" != x; then 36619 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36620 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36621 fi 36622 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 36623 fi 36624 fi 36625 36626 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36627 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36628 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36629 # "foo.exe" is OK but "foo" is an error. 36630 # 36631 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36632 # It is also a way to make sure we got the proper file name for the real test later on. 36633 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36634 if test "x$test_shortpath" = x; then 36635 # Short path failed, file does not exist as specified. 36636 # Try adding .exe or .cmd 36637 if test -f "${new_path}.exe"; then 36638 input_to_shortpath="${new_path}.exe" 36639 elif test -f "${new_path}.cmd"; then 36640 input_to_shortpath="${new_path}.cmd" 36641 else 36642 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 36643 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 36644 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36645 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36646 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 36647 fi 36648 else 36649 input_to_shortpath="$new_path" 36650 fi 36651 36652 # Call helper function which possibly converts this using DOS-style short mode. 36653 # If so, the updated path is stored in $new_path. 36654 new_path="$input_to_shortpath" 36655 36656 input_path="$input_to_shortpath" 36657 # Check if we need to convert this using DOS-style short mode. If the path 36658 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36659 # take no chances and rewrite it. 36660 # Note: m4 eats our [], so we need to use [ and ] instead. 36661 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36662 if test "x$has_forbidden_chars" != x; then 36663 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36664 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36665 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36666 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36667 # Going to short mode and back again did indeed matter. Since short mode is 36668 # case insensitive, let's make it lowercase to improve readability. 36669 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36670 # Now convert it back to Unix-stile (cygpath) 36671 input_path=`$CYGPATH -u "$shortmode_path"` 36672 new_path="$input_path" 36673 fi 36674 fi 36675 36676 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36677 if test "x$test_cygdrive_prefix" = x; then 36678 # As a simple fix, exclude /usr/bin since it's not a real path. 36679 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36680 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36681 # a path prefixed by /cygdrive for fixpath to work. 36682 new_path="$CYGWIN_ROOT_PATH$input_path" 36683 fi 36684 fi 36685 36686 # remove trailing .exe if any 36687 new_path="${new_path/%.exe/}" 36688 36689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36690 36691 # First separate the path from the arguments. This will split at the first 36692 # space. 36693 complete="$OBJCOPY" 36694 path="${complete%% *}" 36695 tmp="$complete EOL" 36696 arguments="${tmp#* }" 36697 36698 # Input might be given as Windows format, start by converting to 36699 # unix format. 36700 new_path="$path" 36701 36702 windows_path="$new_path" 36703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36704 unix_path=`$CYGPATH -u "$windows_path"` 36705 new_path="$unix_path" 36706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36708 new_path="$unix_path" 36709 fi 36710 36711 36712 # Now try to locate executable using which 36713 new_path=`$WHICH "$new_path" 2> /dev/null` 36714 36715 if test "x$new_path" = x; then 36716 # Oops. Which didn't find the executable. 36717 # The splitting of arguments from the executable at a space might have been incorrect, 36718 # since paths with space are more likely in Windows. Give it another try with the whole 36719 # argument. 36720 path="$complete" 36721 arguments="EOL" 36722 new_path="$path" 36723 36724 windows_path="$new_path" 36725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36726 unix_path=`$CYGPATH -u "$windows_path"` 36727 new_path="$unix_path" 36728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36729 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36730 new_path="$unix_path" 36731 fi 36732 36733 36734 new_path=`$WHICH "$new_path" 2> /dev/null` 36735 36736 if test "x$new_path" = x; then 36737 # It's still not found. Now this is an unrecoverable error. 36738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 36739 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 36740 has_space=`$ECHO "$complete" | $GREP " "` 36741 if test "x$has_space" != x; then 36742 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36743 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36744 fi 36745 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 36746 fi 36747 fi 36748 36749 # Now new_path has a complete unix path to the binary 36750 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36751 # Keep paths in /bin as-is, but remove trailing .exe if any 36752 new_path="${new_path/%.exe/}" 36753 # Do not save /bin paths to all_fixpath_prefixes! 36754 else 36755 # Not in mixed or Windows style, start by that. 36756 new_path=`cmd //c echo $new_path` 36757 36758 input_path="$new_path" 36759 # Check if we need to convert this using DOS-style short mode. If the path 36760 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36761 # take no chances and rewrite it. 36762 # Note: m4 eats our [], so we need to use [ and ] instead. 36763 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36764 if test "x$has_forbidden_chars" != x; then 36765 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36766 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36767 fi 36768 36769 # Output is in $new_path 36770 36771 windows_path="$new_path" 36772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36773 unix_path=`$CYGPATH -u "$windows_path"` 36774 new_path="$unix_path" 36775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36776 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36777 new_path="$unix_path" 36778 fi 36779 36780 # remove trailing .exe if any 36781 new_path="${new_path/%.exe/}" 36782 36783 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36784 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36785 fi 36786 36787 else 36788 # We're on a posix platform. Hooray! :) 36789 # First separate the path from the arguments. This will split at the first 36790 # space. 36791 complete="$OBJCOPY" 36792 path="${complete%% *}" 36793 tmp="$complete EOL" 36794 arguments="${tmp#* }" 36795 36796 # Cannot rely on the command "which" here since it doesn't always work. 36797 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36798 if test -z "$is_absolute_path"; then 36799 # Path to executable is not absolute. Find it. 36800 IFS_save="$IFS" 36801 IFS=: 36802 for p in $PATH; do 36803 if test -f "$p/$path" && test -x "$p/$path"; then 36804 new_path="$p/$path" 36805 break 36806 fi 36807 done 36808 IFS="$IFS_save" 36809 else 36810 # This is an absolute path, we can use it without further modifications. 36811 new_path="$path" 36812 fi 36813 36814 if test "x$new_path" = x; then 36815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 36816 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 36817 has_space=`$ECHO "$complete" | $GREP " "` 36818 if test "x$has_space" != x; then 36819 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36820 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36821 fi 36822 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 36823 fi 36824 fi 36825 36826 # Now join together the path and the arguments once again 36827 if test "x$arguments" != xEOL; then 36828 new_complete="$new_path ${arguments% *}" 36829 else 36830 new_complete="$new_path" 36831 fi 36832 36833 if test "x$complete" != "x$new_complete"; then 36834 OBJCOPY="$new_complete" 36835 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 36836 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 36837 fi 36838 36839 fi 36840 fi 36841 36842 36843 36844 # Publish this variable in the help. 36845 36846 36847 if test "x$OBJDUMP" = x; then 36848 # The variable is not set by user, try to locate tool using the code snippet 36849 if test -n "$ac_tool_prefix"; then 36850 for ac_prog in gobjdump objdump 36851 do 36852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36855 $as_echo_n "checking for $ac_word... " >&6; } 36856 if ${ac_cv_prog_OBJDUMP+:} false; then : 36857 $as_echo_n "(cached) " >&6 36858 else 36859 if test -n "$OBJDUMP"; then 36860 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 36861 else 36862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36863 for as_dir in $PATH 36864 do 36865 IFS=$as_save_IFS 36866 test -z "$as_dir" && as_dir=. 36867 for ac_exec_ext in '' $ac_executable_extensions; do 36868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36869 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 36870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36871 break 2 36872 fi 36873 done 36874 done 36875 IFS=$as_save_IFS 36876 36877 fi 36878 fi 36879 OBJDUMP=$ac_cv_prog_OBJDUMP 36880 if test -n "$OBJDUMP"; then 36881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 36882 $as_echo "$OBJDUMP" >&6; } 36883 else 36884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36885 $as_echo "no" >&6; } 36886 fi 36887 36888 36889 test -n "$OBJDUMP" && break 36890 done 36891 fi 36892 if test -z "$OBJDUMP"; then 36893 ac_ct_OBJDUMP=$OBJDUMP 36894 for ac_prog in gobjdump objdump 36895 do 36896 # Extract the first word of "$ac_prog", so it can be a program name with args. 36897 set dummy $ac_prog; ac_word=$2 36898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36899 $as_echo_n "checking for $ac_word... " >&6; } 36900 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 36901 $as_echo_n "(cached) " >&6 36902 else 36903 if test -n "$ac_ct_OBJDUMP"; then 36904 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 36905 else 36906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36907 for as_dir in $PATH 36908 do 36909 IFS=$as_save_IFS 36910 test -z "$as_dir" && as_dir=. 36911 for ac_exec_ext in '' $ac_executable_extensions; do 36912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36913 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 36914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36915 break 2 36916 fi 36917 done 36918 done 36919 IFS=$as_save_IFS 36920 36921 fi 36922 fi 36923 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 36924 if test -n "$ac_ct_OBJDUMP"; then 36925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 36926 $as_echo "$ac_ct_OBJDUMP" >&6; } 36927 else 36928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36929 $as_echo "no" >&6; } 36930 fi 36931 36932 36933 test -n "$ac_ct_OBJDUMP" && break 36934 done 36935 36936 if test "x$ac_ct_OBJDUMP" = x; then 36937 OBJDUMP="" 36938 else 36939 case $cross_compiling:$ac_tool_warned in 36940 yes:) 36941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36943 ac_tool_warned=yes ;; 36944 esac 36945 OBJDUMP=$ac_ct_OBJDUMP 36946 fi 36947 fi 36948 36949 else 36950 # The variable is set, but is it from the command line or the environment? 36951 36952 # Try to remove the string !OBJDUMP! from our list. 36953 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 36954 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36955 # If it failed, the variable was not from the command line. Ignore it, 36956 # but warn the user (except for BASH, which is always set by the calling BASH). 36957 if test "xOBJDUMP" != xBASH; then 36958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 36959 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 36960 fi 36961 # Try to locate tool using the code snippet 36962 if test -n "$ac_tool_prefix"; then 36963 for ac_prog in gobjdump objdump 36964 do 36965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36968 $as_echo_n "checking for $ac_word... " >&6; } 36969 if ${ac_cv_prog_OBJDUMP+:} false; then : 36970 $as_echo_n "(cached) " >&6 36971 else 36972 if test -n "$OBJDUMP"; then 36973 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 36974 else 36975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36976 for as_dir in $PATH 36977 do 36978 IFS=$as_save_IFS 36979 test -z "$as_dir" && as_dir=. 36980 for ac_exec_ext in '' $ac_executable_extensions; do 36981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36982 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 36983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36984 break 2 36985 fi 36986 done 36987 done 36988 IFS=$as_save_IFS 36989 36990 fi 36991 fi 36992 OBJDUMP=$ac_cv_prog_OBJDUMP 36993 if test -n "$OBJDUMP"; then 36994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 36995 $as_echo "$OBJDUMP" >&6; } 36996 else 36997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36998 $as_echo "no" >&6; } 36999 fi 37000 37001 37002 test -n "$OBJDUMP" && break 37003 done 37004 fi 37005 if test -z "$OBJDUMP"; then 37006 ac_ct_OBJDUMP=$OBJDUMP 37007 for ac_prog in gobjdump objdump 37008 do 37009 # Extract the first word of "$ac_prog", so it can be a program name with args. 37010 set dummy $ac_prog; ac_word=$2 37011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37012 $as_echo_n "checking for $ac_word... " >&6; } 37013 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 37014 $as_echo_n "(cached) " >&6 37015 else 37016 if test -n "$ac_ct_OBJDUMP"; then 37017 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 37018 else 37019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37020 for as_dir in $PATH 37021 do 37022 IFS=$as_save_IFS 37023 test -z "$as_dir" && as_dir=. 37024 for ac_exec_ext in '' $ac_executable_extensions; do 37025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37026 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 37027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37028 break 2 37029 fi 37030 done 37031 done 37032 IFS=$as_save_IFS 37033 37034 fi 37035 fi 37036 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 37037 if test -n "$ac_ct_OBJDUMP"; then 37038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 37039 $as_echo "$ac_ct_OBJDUMP" >&6; } 37040 else 37041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37042 $as_echo "no" >&6; } 37043 fi 37044 37045 37046 test -n "$ac_ct_OBJDUMP" && break 37047 done 37048 37049 if test "x$ac_ct_OBJDUMP" = x; then 37050 OBJDUMP="" 37051 else 37052 case $cross_compiling:$ac_tool_warned in 37053 yes:) 37054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37056 ac_tool_warned=yes ;; 37057 esac 37058 OBJDUMP=$ac_ct_OBJDUMP 37059 fi 37060 fi 37061 37062 else 37063 # If it succeeded, then it was overridden by the user. We will use it 37064 # for the tool. 37065 37066 # First remove it from the list of overridden variables, so we can test 37067 # for unknown variables in the end. 37068 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37069 37070 # Check if the provided tool contains a complete path. 37071 tool_specified="$OBJDUMP" 37072 tool_basename="${tool_specified##*/}" 37073 if test "x$tool_basename" = "x$tool_specified"; then 37074 # A command without a complete path is provided, search $PATH. 37075 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 37076 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 37077 # Extract the first word of "$tool_basename", so it can be a program name with args. 37078 set dummy $tool_basename; ac_word=$2 37079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37080 $as_echo_n "checking for $ac_word... " >&6; } 37081 if ${ac_cv_path_OBJDUMP+:} false; then : 37082 $as_echo_n "(cached) " >&6 37083 else 37084 case $OBJDUMP in 37085 [\\/]* | ?:[\\/]*) 37086 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 37087 ;; 37088 *) 37089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37090 for as_dir in $PATH 37091 do 37092 IFS=$as_save_IFS 37093 test -z "$as_dir" && as_dir=. 37094 for ac_exec_ext in '' $ac_executable_extensions; do 37095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37096 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 37097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37098 break 2 37099 fi 37100 done 37101 done 37102 IFS=$as_save_IFS 37103 37104 ;; 37105 esac 37106 fi 37107 OBJDUMP=$ac_cv_path_OBJDUMP 37108 if test -n "$OBJDUMP"; then 37109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 37110 $as_echo "$OBJDUMP" >&6; } 37111 else 37112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37113 $as_echo "no" >&6; } 37114 fi 37115 37116 37117 if test "x$OBJDUMP" = x; then 37118 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37119 fi 37120 else 37121 # Otherwise we believe it is a complete path. Use it as it is. 37122 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 37123 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 37124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 37125 $as_echo_n "checking for OBJDUMP... " >&6; } 37126 if test ! -x "$tool_specified"; then 37127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37128 $as_echo "not found" >&6; } 37129 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 37130 fi 37131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37132 $as_echo "$tool_specified" >&6; } 37133 fi 37134 fi 37135 fi 37136 37137 37138 if test "x$OBJDUMP" != x; then 37139 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 37140 # bails if argument is missing. 37141 37142 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37143 37144 # First separate the path from the arguments. This will split at the first 37145 # space. 37146 complete="$OBJDUMP" 37147 path="${complete%% *}" 37148 tmp="$complete EOL" 37149 arguments="${tmp#* }" 37150 37151 # Input might be given as Windows format, start by converting to 37152 # unix format. 37153 new_path=`$CYGPATH -u "$path"` 37154 37155 # Now try to locate executable using which 37156 new_path=`$WHICH "$new_path" 2> /dev/null` 37157 # bat and cmd files are not always considered executable in cygwin causing which 37158 # to not find them 37159 if test "x$new_path" = x \ 37160 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37161 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37162 new_path=`$CYGPATH -u "$path"` 37163 fi 37164 if test "x$new_path" = x; then 37165 # Oops. Which didn't find the executable. 37166 # The splitting of arguments from the executable at a space might have been incorrect, 37167 # since paths with space are more likely in Windows. Give it another try with the whole 37168 # argument. 37169 path="$complete" 37170 arguments="EOL" 37171 new_path=`$CYGPATH -u "$path"` 37172 new_path=`$WHICH "$new_path" 2> /dev/null` 37173 # bat and cmd files are not always considered executable in cygwin causing which 37174 # to not find them 37175 if test "x$new_path" = x \ 37176 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37177 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37178 new_path=`$CYGPATH -u "$path"` 37179 fi 37180 if test "x$new_path" = x; then 37181 # It's still not found. Now this is an unrecoverable error. 37182 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 37183 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 37184 has_space=`$ECHO "$complete" | $GREP " "` 37185 if test "x$has_space" != x; then 37186 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37187 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37188 fi 37189 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 37190 fi 37191 fi 37192 37193 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37194 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37195 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37196 # "foo.exe" is OK but "foo" is an error. 37197 # 37198 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37199 # It is also a way to make sure we got the proper file name for the real test later on. 37200 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37201 if test "x$test_shortpath" = x; then 37202 # Short path failed, file does not exist as specified. 37203 # Try adding .exe or .cmd 37204 if test -f "${new_path}.exe"; then 37205 input_to_shortpath="${new_path}.exe" 37206 elif test -f "${new_path}.cmd"; then 37207 input_to_shortpath="${new_path}.cmd" 37208 else 37209 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 37210 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 37211 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37212 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37213 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 37214 fi 37215 else 37216 input_to_shortpath="$new_path" 37217 fi 37218 37219 # Call helper function which possibly converts this using DOS-style short mode. 37220 # If so, the updated path is stored in $new_path. 37221 new_path="$input_to_shortpath" 37222 37223 input_path="$input_to_shortpath" 37224 # Check if we need to convert this using DOS-style short mode. If the path 37225 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37226 # take no chances and rewrite it. 37227 # Note: m4 eats our [], so we need to use [ and ] instead. 37228 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37229 if test "x$has_forbidden_chars" != x; then 37230 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37231 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37232 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37233 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37234 # Going to short mode and back again did indeed matter. Since short mode is 37235 # case insensitive, let's make it lowercase to improve readability. 37236 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37237 # Now convert it back to Unix-stile (cygpath) 37238 input_path=`$CYGPATH -u "$shortmode_path"` 37239 new_path="$input_path" 37240 fi 37241 fi 37242 37243 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37244 if test "x$test_cygdrive_prefix" = x; then 37245 # As a simple fix, exclude /usr/bin since it's not a real path. 37246 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37247 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37248 # a path prefixed by /cygdrive for fixpath to work. 37249 new_path="$CYGWIN_ROOT_PATH$input_path" 37250 fi 37251 fi 37252 37253 # remove trailing .exe if any 37254 new_path="${new_path/%.exe/}" 37255 37256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37257 37258 # First separate the path from the arguments. This will split at the first 37259 # space. 37260 complete="$OBJDUMP" 37261 path="${complete%% *}" 37262 tmp="$complete EOL" 37263 arguments="${tmp#* }" 37264 37265 # Input might be given as Windows format, start by converting to 37266 # unix format. 37267 new_path="$path" 37268 37269 windows_path="$new_path" 37270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37271 unix_path=`$CYGPATH -u "$windows_path"` 37272 new_path="$unix_path" 37273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37275 new_path="$unix_path" 37276 fi 37277 37278 37279 # Now try to locate executable using which 37280 new_path=`$WHICH "$new_path" 2> /dev/null` 37281 37282 if test "x$new_path" = x; then 37283 # Oops. Which didn't find the executable. 37284 # The splitting of arguments from the executable at a space might have been incorrect, 37285 # since paths with space are more likely in Windows. Give it another try with the whole 37286 # argument. 37287 path="$complete" 37288 arguments="EOL" 37289 new_path="$path" 37290 37291 windows_path="$new_path" 37292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37293 unix_path=`$CYGPATH -u "$windows_path"` 37294 new_path="$unix_path" 37295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37296 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37297 new_path="$unix_path" 37298 fi 37299 37300 37301 new_path=`$WHICH "$new_path" 2> /dev/null` 37302 37303 if test "x$new_path" = x; then 37304 # It's still not found. Now this is an unrecoverable error. 37305 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 37306 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 37307 has_space=`$ECHO "$complete" | $GREP " "` 37308 if test "x$has_space" != x; then 37309 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37310 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37311 fi 37312 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 37313 fi 37314 fi 37315 37316 # Now new_path has a complete unix path to the binary 37317 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37318 # Keep paths in /bin as-is, but remove trailing .exe if any 37319 new_path="${new_path/%.exe/}" 37320 # Do not save /bin paths to all_fixpath_prefixes! 37321 else 37322 # Not in mixed or Windows style, start by that. 37323 new_path=`cmd //c echo $new_path` 37324 37325 input_path="$new_path" 37326 # Check if we need to convert this using DOS-style short mode. If the path 37327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37328 # take no chances and rewrite it. 37329 # Note: m4 eats our [], so we need to use [ and ] instead. 37330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37331 if test "x$has_forbidden_chars" != x; then 37332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37333 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37334 fi 37335 37336 # Output is in $new_path 37337 37338 windows_path="$new_path" 37339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37340 unix_path=`$CYGPATH -u "$windows_path"` 37341 new_path="$unix_path" 37342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37344 new_path="$unix_path" 37345 fi 37346 37347 # remove trailing .exe if any 37348 new_path="${new_path/%.exe/}" 37349 37350 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37351 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37352 fi 37353 37354 else 37355 # We're on a posix platform. Hooray! :) 37356 # First separate the path from the arguments. This will split at the first 37357 # space. 37358 complete="$OBJDUMP" 37359 path="${complete%% *}" 37360 tmp="$complete EOL" 37361 arguments="${tmp#* }" 37362 37363 # Cannot rely on the command "which" here since it doesn't always work. 37364 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37365 if test -z "$is_absolute_path"; then 37366 # Path to executable is not absolute. Find it. 37367 IFS_save="$IFS" 37368 IFS=: 37369 for p in $PATH; do 37370 if test -f "$p/$path" && test -x "$p/$path"; then 37371 new_path="$p/$path" 37372 break 37373 fi 37374 done 37375 IFS="$IFS_save" 37376 else 37377 # This is an absolute path, we can use it without further modifications. 37378 new_path="$path" 37379 fi 37380 37381 if test "x$new_path" = x; then 37382 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 37383 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 37384 has_space=`$ECHO "$complete" | $GREP " "` 37385 if test "x$has_space" != x; then 37386 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37387 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37388 fi 37389 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 37390 fi 37391 fi 37392 37393 # Now join together the path and the arguments once again 37394 if test "x$arguments" != xEOL; then 37395 new_complete="$new_path ${arguments% *}" 37396 else 37397 new_complete="$new_path" 37398 fi 37399 37400 if test "x$complete" != "x$new_complete"; then 37401 OBJDUMP="$new_complete" 37402 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 37403 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 37404 fi 37405 37406 fi 37407 37408 37409 # Restore old path. 37410 PATH="$OLD_PATH" 37411 37412 # Restore the flags to the user specified values. 37413 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 37414 CFLAGS="$ORG_CFLAGS" 37415 CXXFLAGS="$ORG_CXXFLAGS" 37416 OBJCFLAGS="$ORG_OBJCFLAGS" 37417 37418 37419 # Finally do some processing after the detection phase 37420 37421 if test "x$COMPILE_TYPE" = "xcross"; then 37422 # Now we need to find a C/C++ compiler that can build executables for the 37423 # build platform. We can't use the AC_PROG_CC macro, since it can only be 37424 # used once. Also, we need to do this without adding a tools dir to the 37425 # path, otherwise we might pick up cross-compilers which don't use standard 37426 # naming. 37427 37428 # FIXME: we should list the discovered compilers as an exclude pattern! 37429 # If we do that, we can do this detection before POST_DETECTION, and still 37430 # find the build compilers in the tools dir, if needed. 37431 37432 37433 # Publish this variable in the help. 37434 37435 37436 if test "x$BUILD_CC" = x; then 37437 # The variable is not set by user, try to locate tool using the code snippet 37438 for ac_prog in cl cc gcc 37439 do 37440 # Extract the first word of "$ac_prog", so it can be a program name with args. 37441 set dummy $ac_prog; ac_word=$2 37442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37443 $as_echo_n "checking for $ac_word... " >&6; } 37444 if ${ac_cv_path_BUILD_CC+:} false; then : 37445 $as_echo_n "(cached) " >&6 37446 else 37447 case $BUILD_CC in 37448 [\\/]* | ?:[\\/]*) 37449 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 37450 ;; 37451 *) 37452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37453 for as_dir in $PATH 37454 do 37455 IFS=$as_save_IFS 37456 test -z "$as_dir" && as_dir=. 37457 for ac_exec_ext in '' $ac_executable_extensions; do 37458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37459 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 37460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37461 break 2 37462 fi 37463 done 37464 done 37465 IFS=$as_save_IFS 37466 37467 ;; 37468 esac 37469 fi 37470 BUILD_CC=$ac_cv_path_BUILD_CC 37471 if test -n "$BUILD_CC"; then 37472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 37473 $as_echo "$BUILD_CC" >&6; } 37474 else 37475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37476 $as_echo "no" >&6; } 37477 fi 37478 37479 37480 test -n "$BUILD_CC" && break 37481 done 37482 37483 else 37484 # The variable is set, but is it from the command line or the environment? 37485 37486 # Try to remove the string !BUILD_CC! from our list. 37487 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 37488 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37489 # If it failed, the variable was not from the command line. Ignore it, 37490 # but warn the user (except for BASH, which is always set by the calling BASH). 37491 if test "xBUILD_CC" != xBASH; then 37492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 37493 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 37494 fi 37495 # Try to locate tool using the code snippet 37496 for ac_prog in cl cc gcc 37497 do 37498 # Extract the first word of "$ac_prog", so it can be a program name with args. 37499 set dummy $ac_prog; ac_word=$2 37500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37501 $as_echo_n "checking for $ac_word... " >&6; } 37502 if ${ac_cv_path_BUILD_CC+:} false; then : 37503 $as_echo_n "(cached) " >&6 37504 else 37505 case $BUILD_CC in 37506 [\\/]* | ?:[\\/]*) 37507 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 37508 ;; 37509 *) 37510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37511 for as_dir in $PATH 37512 do 37513 IFS=$as_save_IFS 37514 test -z "$as_dir" && as_dir=. 37515 for ac_exec_ext in '' $ac_executable_extensions; do 37516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37517 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 37518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37519 break 2 37520 fi 37521 done 37522 done 37523 IFS=$as_save_IFS 37524 37525 ;; 37526 esac 37527 fi 37528 BUILD_CC=$ac_cv_path_BUILD_CC 37529 if test -n "$BUILD_CC"; then 37530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 37531 $as_echo "$BUILD_CC" >&6; } 37532 else 37533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37534 $as_echo "no" >&6; } 37535 fi 37536 37537 37538 test -n "$BUILD_CC" && break 37539 done 37540 37541 else 37542 # If it succeeded, then it was overridden by the user. We will use it 37543 # for the tool. 37544 37545 # First remove it from the list of overridden variables, so we can test 37546 # for unknown variables in the end. 37547 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37548 37549 # Check if the provided tool contains a complete path. 37550 tool_specified="$BUILD_CC" 37551 tool_basename="${tool_specified##*/}" 37552 if test "x$tool_basename" = "x$tool_specified"; then 37553 # A command without a complete path is provided, search $PATH. 37554 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 37555 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 37556 # Extract the first word of "$tool_basename", so it can be a program name with args. 37557 set dummy $tool_basename; ac_word=$2 37558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37559 $as_echo_n "checking for $ac_word... " >&6; } 37560 if ${ac_cv_path_BUILD_CC+:} false; then : 37561 $as_echo_n "(cached) " >&6 37562 else 37563 case $BUILD_CC in 37564 [\\/]* | ?:[\\/]*) 37565 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 37566 ;; 37567 *) 37568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37569 for as_dir in $PATH 37570 do 37571 IFS=$as_save_IFS 37572 test -z "$as_dir" && as_dir=. 37573 for ac_exec_ext in '' $ac_executable_extensions; do 37574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37575 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 37576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37577 break 2 37578 fi 37579 done 37580 done 37581 IFS=$as_save_IFS 37582 37583 ;; 37584 esac 37585 fi 37586 BUILD_CC=$ac_cv_path_BUILD_CC 37587 if test -n "$BUILD_CC"; then 37588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 37589 $as_echo "$BUILD_CC" >&6; } 37590 else 37591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37592 $as_echo "no" >&6; } 37593 fi 37594 37595 37596 if test "x$BUILD_CC" = x; then 37597 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37598 fi 37599 else 37600 # Otherwise we believe it is a complete path. Use it as it is. 37601 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 37602 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 37603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 37604 $as_echo_n "checking for BUILD_CC... " >&6; } 37605 if test ! -x "$tool_specified"; then 37606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37607 $as_echo "not found" >&6; } 37608 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 37609 fi 37610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37611 $as_echo "$tool_specified" >&6; } 37612 fi 37613 fi 37614 fi 37615 37616 37617 37618 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37619 37620 # First separate the path from the arguments. This will split at the first 37621 # space. 37622 complete="$BUILD_CC" 37623 path="${complete%% *}" 37624 tmp="$complete EOL" 37625 arguments="${tmp#* }" 37626 37627 # Input might be given as Windows format, start by converting to 37628 # unix format. 37629 new_path=`$CYGPATH -u "$path"` 37630 37631 # Now try to locate executable using which 37632 new_path=`$WHICH "$new_path" 2> /dev/null` 37633 # bat and cmd files are not always considered executable in cygwin causing which 37634 # to not find them 37635 if test "x$new_path" = x \ 37636 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37637 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37638 new_path=`$CYGPATH -u "$path"` 37639 fi 37640 if test "x$new_path" = x; then 37641 # Oops. Which didn't find the executable. 37642 # The splitting of arguments from the executable at a space might have been incorrect, 37643 # since paths with space are more likely in Windows. Give it another try with the whole 37644 # argument. 37645 path="$complete" 37646 arguments="EOL" 37647 new_path=`$CYGPATH -u "$path"` 37648 new_path=`$WHICH "$new_path" 2> /dev/null` 37649 # bat and cmd files are not always considered executable in cygwin causing which 37650 # to not find them 37651 if test "x$new_path" = x \ 37652 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37653 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37654 new_path=`$CYGPATH -u "$path"` 37655 fi 37656 if test "x$new_path" = x; then 37657 # It's still not found. Now this is an unrecoverable error. 37658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 37659 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 37660 has_space=`$ECHO "$complete" | $GREP " "` 37661 if test "x$has_space" != x; then 37662 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37663 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37664 fi 37665 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 37666 fi 37667 fi 37668 37669 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37670 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37671 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37672 # "foo.exe" is OK but "foo" is an error. 37673 # 37674 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37675 # It is also a way to make sure we got the proper file name for the real test later on. 37676 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37677 if test "x$test_shortpath" = x; then 37678 # Short path failed, file does not exist as specified. 37679 # Try adding .exe or .cmd 37680 if test -f "${new_path}.exe"; then 37681 input_to_shortpath="${new_path}.exe" 37682 elif test -f "${new_path}.cmd"; then 37683 input_to_shortpath="${new_path}.cmd" 37684 else 37685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 37686 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 37687 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37688 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37689 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 37690 fi 37691 else 37692 input_to_shortpath="$new_path" 37693 fi 37694 37695 # Call helper function which possibly converts this using DOS-style short mode. 37696 # If so, the updated path is stored in $new_path. 37697 new_path="$input_to_shortpath" 37698 37699 input_path="$input_to_shortpath" 37700 # Check if we need to convert this using DOS-style short mode. If the path 37701 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37702 # take no chances and rewrite it. 37703 # Note: m4 eats our [], so we need to use [ and ] instead. 37704 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37705 if test "x$has_forbidden_chars" != x; then 37706 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37707 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37708 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37709 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37710 # Going to short mode and back again did indeed matter. Since short mode is 37711 # case insensitive, let's make it lowercase to improve readability. 37712 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37713 # Now convert it back to Unix-stile (cygpath) 37714 input_path=`$CYGPATH -u "$shortmode_path"` 37715 new_path="$input_path" 37716 fi 37717 fi 37718 37719 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37720 if test "x$test_cygdrive_prefix" = x; then 37721 # As a simple fix, exclude /usr/bin since it's not a real path. 37722 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37723 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37724 # a path prefixed by /cygdrive for fixpath to work. 37725 new_path="$CYGWIN_ROOT_PATH$input_path" 37726 fi 37727 fi 37728 37729 # remove trailing .exe if any 37730 new_path="${new_path/%.exe/}" 37731 37732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37733 37734 # First separate the path from the arguments. This will split at the first 37735 # space. 37736 complete="$BUILD_CC" 37737 path="${complete%% *}" 37738 tmp="$complete EOL" 37739 arguments="${tmp#* }" 37740 37741 # Input might be given as Windows format, start by converting to 37742 # unix format. 37743 new_path="$path" 37744 37745 windows_path="$new_path" 37746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37747 unix_path=`$CYGPATH -u "$windows_path"` 37748 new_path="$unix_path" 37749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37751 new_path="$unix_path" 37752 fi 37753 37754 37755 # Now try to locate executable using which 37756 new_path=`$WHICH "$new_path" 2> /dev/null` 37757 37758 if test "x$new_path" = x; then 37759 # Oops. Which didn't find the executable. 37760 # The splitting of arguments from the executable at a space might have been incorrect, 37761 # since paths with space are more likely in Windows. Give it another try with the whole 37762 # argument. 37763 path="$complete" 37764 arguments="EOL" 37765 new_path="$path" 37766 37767 windows_path="$new_path" 37768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37769 unix_path=`$CYGPATH -u "$windows_path"` 37770 new_path="$unix_path" 37771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37772 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37773 new_path="$unix_path" 37774 fi 37775 37776 37777 new_path=`$WHICH "$new_path" 2> /dev/null` 37778 37779 if test "x$new_path" = x; then 37780 # It's still not found. Now this is an unrecoverable error. 37781 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 37782 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 37783 has_space=`$ECHO "$complete" | $GREP " "` 37784 if test "x$has_space" != x; then 37785 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37786 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37787 fi 37788 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 37789 fi 37790 fi 37791 37792 # Now new_path has a complete unix path to the binary 37793 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37794 # Keep paths in /bin as-is, but remove trailing .exe if any 37795 new_path="${new_path/%.exe/}" 37796 # Do not save /bin paths to all_fixpath_prefixes! 37797 else 37798 # Not in mixed or Windows style, start by that. 37799 new_path=`cmd //c echo $new_path` 37800 37801 input_path="$new_path" 37802 # Check if we need to convert this using DOS-style short mode. If the path 37803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37804 # take no chances and rewrite it. 37805 # Note: m4 eats our [], so we need to use [ and ] instead. 37806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37807 if test "x$has_forbidden_chars" != x; then 37808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37809 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37810 fi 37811 37812 # Output is in $new_path 37813 37814 windows_path="$new_path" 37815 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37816 unix_path=`$CYGPATH -u "$windows_path"` 37817 new_path="$unix_path" 37818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37819 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37820 new_path="$unix_path" 37821 fi 37822 37823 # remove trailing .exe if any 37824 new_path="${new_path/%.exe/}" 37825 37826 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37827 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37828 fi 37829 37830 else 37831 # We're on a posix platform. Hooray! :) 37832 # First separate the path from the arguments. This will split at the first 37833 # space. 37834 complete="$BUILD_CC" 37835 path="${complete%% *}" 37836 tmp="$complete EOL" 37837 arguments="${tmp#* }" 37838 37839 # Cannot rely on the command "which" here since it doesn't always work. 37840 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37841 if test -z "$is_absolute_path"; then 37842 # Path to executable is not absolute. Find it. 37843 IFS_save="$IFS" 37844 IFS=: 37845 for p in $PATH; do 37846 if test -f "$p/$path" && test -x "$p/$path"; then 37847 new_path="$p/$path" 37848 break 37849 fi 37850 done 37851 IFS="$IFS_save" 37852 else 37853 # This is an absolute path, we can use it without further modifications. 37854 new_path="$path" 37855 fi 37856 37857 if test "x$new_path" = x; then 37858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 37859 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 37860 has_space=`$ECHO "$complete" | $GREP " "` 37861 if test "x$has_space" != x; then 37862 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37863 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37864 fi 37865 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 37866 fi 37867 fi 37868 37869 # Now join together the path and the arguments once again 37870 if test "x$arguments" != xEOL; then 37871 new_complete="$new_path ${arguments% *}" 37872 else 37873 new_complete="$new_path" 37874 fi 37875 37876 if test "x$complete" != "x$new_complete"; then 37877 BUILD_CC="$new_complete" 37878 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 37879 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 37880 fi 37881 37882 37883 37884 # Publish this variable in the help. 37885 37886 37887 if test "x$BUILD_CXX" = x; then 37888 # The variable is not set by user, try to locate tool using the code snippet 37889 for ac_prog in cl CC g++ 37890 do 37891 # Extract the first word of "$ac_prog", so it can be a program name with args. 37892 set dummy $ac_prog; ac_word=$2 37893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37894 $as_echo_n "checking for $ac_word... " >&6; } 37895 if ${ac_cv_path_BUILD_CXX+:} false; then : 37896 $as_echo_n "(cached) " >&6 37897 else 37898 case $BUILD_CXX in 37899 [\\/]* | ?:[\\/]*) 37900 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 37901 ;; 37902 *) 37903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37904 for as_dir in $PATH 37905 do 37906 IFS=$as_save_IFS 37907 test -z "$as_dir" && as_dir=. 37908 for ac_exec_ext in '' $ac_executable_extensions; do 37909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37910 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 37911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37912 break 2 37913 fi 37914 done 37915 done 37916 IFS=$as_save_IFS 37917 37918 ;; 37919 esac 37920 fi 37921 BUILD_CXX=$ac_cv_path_BUILD_CXX 37922 if test -n "$BUILD_CXX"; then 37923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 37924 $as_echo "$BUILD_CXX" >&6; } 37925 else 37926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37927 $as_echo "no" >&6; } 37928 fi 37929 37930 37931 test -n "$BUILD_CXX" && break 37932 done 37933 37934 else 37935 # The variable is set, but is it from the command line or the environment? 37936 37937 # Try to remove the string !BUILD_CXX! from our list. 37938 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 37939 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37940 # If it failed, the variable was not from the command line. Ignore it, 37941 # but warn the user (except for BASH, which is always set by the calling BASH). 37942 if test "xBUILD_CXX" != xBASH; then 37943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 37944 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 37945 fi 37946 # Try to locate tool using the code snippet 37947 for ac_prog in cl CC g++ 37948 do 37949 # Extract the first word of "$ac_prog", so it can be a program name with args. 37950 set dummy $ac_prog; ac_word=$2 37951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37952 $as_echo_n "checking for $ac_word... " >&6; } 37953 if ${ac_cv_path_BUILD_CXX+:} false; then : 37954 $as_echo_n "(cached) " >&6 37955 else 37956 case $BUILD_CXX in 37957 [\\/]* | ?:[\\/]*) 37958 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 37959 ;; 37960 *) 37961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37962 for as_dir in $PATH 37963 do 37964 IFS=$as_save_IFS 37965 test -z "$as_dir" && as_dir=. 37966 for ac_exec_ext in '' $ac_executable_extensions; do 37967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37968 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 37969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37970 break 2 37971 fi 37972 done 37973 done 37974 IFS=$as_save_IFS 37975 37976 ;; 37977 esac 37978 fi 37979 BUILD_CXX=$ac_cv_path_BUILD_CXX 37980 if test -n "$BUILD_CXX"; then 37981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 37982 $as_echo "$BUILD_CXX" >&6; } 37983 else 37984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37985 $as_echo "no" >&6; } 37986 fi 37987 37988 37989 test -n "$BUILD_CXX" && break 37990 done 37991 37992 else 37993 # If it succeeded, then it was overridden by the user. We will use it 37994 # for the tool. 37995 37996 # First remove it from the list of overridden variables, so we can test 37997 # for unknown variables in the end. 37998 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37999 38000 # Check if the provided tool contains a complete path. 38001 tool_specified="$BUILD_CXX" 38002 tool_basename="${tool_specified##*/}" 38003 if test "x$tool_basename" = "x$tool_specified"; then 38004 # A command without a complete path is provided, search $PATH. 38005 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 38006 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 38007 # Extract the first word of "$tool_basename", so it can be a program name with args. 38008 set dummy $tool_basename; ac_word=$2 38009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38010 $as_echo_n "checking for $ac_word... " >&6; } 38011 if ${ac_cv_path_BUILD_CXX+:} false; then : 38012 $as_echo_n "(cached) " >&6 38013 else 38014 case $BUILD_CXX in 38015 [\\/]* | ?:[\\/]*) 38016 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 38017 ;; 38018 *) 38019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38020 for as_dir in $PATH 38021 do 38022 IFS=$as_save_IFS 38023 test -z "$as_dir" && as_dir=. 38024 for ac_exec_ext in '' $ac_executable_extensions; do 38025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38026 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 38027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38028 break 2 38029 fi 38030 done 38031 done 38032 IFS=$as_save_IFS 38033 38034 ;; 38035 esac 38036 fi 38037 BUILD_CXX=$ac_cv_path_BUILD_CXX 38038 if test -n "$BUILD_CXX"; then 38039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 38040 $as_echo "$BUILD_CXX" >&6; } 38041 else 38042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38043 $as_echo "no" >&6; } 38044 fi 38045 38046 38047 if test "x$BUILD_CXX" = x; then 38048 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38049 fi 38050 else 38051 # Otherwise we believe it is a complete path. Use it as it is. 38052 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 38053 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 38054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 38055 $as_echo_n "checking for BUILD_CXX... " >&6; } 38056 if test ! -x "$tool_specified"; then 38057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38058 $as_echo "not found" >&6; } 38059 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 38060 fi 38061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38062 $as_echo "$tool_specified" >&6; } 38063 fi 38064 fi 38065 fi 38066 38067 38068 38069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38070 38071 # First separate the path from the arguments. This will split at the first 38072 # space. 38073 complete="$BUILD_CXX" 38074 path="${complete%% *}" 38075 tmp="$complete EOL" 38076 arguments="${tmp#* }" 38077 38078 # Input might be given as Windows format, start by converting to 38079 # unix format. 38080 new_path=`$CYGPATH -u "$path"` 38081 38082 # Now try to locate executable using which 38083 new_path=`$WHICH "$new_path" 2> /dev/null` 38084 # bat and cmd files are not always considered executable in cygwin causing which 38085 # to not find them 38086 if test "x$new_path" = x \ 38087 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38088 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38089 new_path=`$CYGPATH -u "$path"` 38090 fi 38091 if test "x$new_path" = x; then 38092 # Oops. Which didn't find the executable. 38093 # The splitting of arguments from the executable at a space might have been incorrect, 38094 # since paths with space are more likely in Windows. Give it another try with the whole 38095 # argument. 38096 path="$complete" 38097 arguments="EOL" 38098 new_path=`$CYGPATH -u "$path"` 38099 new_path=`$WHICH "$new_path" 2> /dev/null` 38100 # bat and cmd files are not always considered executable in cygwin causing which 38101 # to not find them 38102 if test "x$new_path" = x \ 38103 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38104 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38105 new_path=`$CYGPATH -u "$path"` 38106 fi 38107 if test "x$new_path" = x; then 38108 # It's still not found. Now this is an unrecoverable error. 38109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 38110 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 38111 has_space=`$ECHO "$complete" | $GREP " "` 38112 if test "x$has_space" != x; then 38113 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38114 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38115 fi 38116 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 38117 fi 38118 fi 38119 38120 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38121 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38122 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38123 # "foo.exe" is OK but "foo" is an error. 38124 # 38125 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38126 # It is also a way to make sure we got the proper file name for the real test later on. 38127 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38128 if test "x$test_shortpath" = x; then 38129 # Short path failed, file does not exist as specified. 38130 # Try adding .exe or .cmd 38131 if test -f "${new_path}.exe"; then 38132 input_to_shortpath="${new_path}.exe" 38133 elif test -f "${new_path}.cmd"; then 38134 input_to_shortpath="${new_path}.cmd" 38135 else 38136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 38137 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 38138 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38139 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38140 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 38141 fi 38142 else 38143 input_to_shortpath="$new_path" 38144 fi 38145 38146 # Call helper function which possibly converts this using DOS-style short mode. 38147 # If so, the updated path is stored in $new_path. 38148 new_path="$input_to_shortpath" 38149 38150 input_path="$input_to_shortpath" 38151 # Check if we need to convert this using DOS-style short mode. If the path 38152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38153 # take no chances and rewrite it. 38154 # Note: m4 eats our [], so we need to use [ and ] instead. 38155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38156 if test "x$has_forbidden_chars" != x; then 38157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38158 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38159 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38160 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38161 # Going to short mode and back again did indeed matter. Since short mode is 38162 # case insensitive, let's make it lowercase to improve readability. 38163 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38164 # Now convert it back to Unix-stile (cygpath) 38165 input_path=`$CYGPATH -u "$shortmode_path"` 38166 new_path="$input_path" 38167 fi 38168 fi 38169 38170 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38171 if test "x$test_cygdrive_prefix" = x; then 38172 # As a simple fix, exclude /usr/bin since it's not a real path. 38173 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38174 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38175 # a path prefixed by /cygdrive for fixpath to work. 38176 new_path="$CYGWIN_ROOT_PATH$input_path" 38177 fi 38178 fi 38179 38180 # remove trailing .exe if any 38181 new_path="${new_path/%.exe/}" 38182 38183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38184 38185 # First separate the path from the arguments. This will split at the first 38186 # space. 38187 complete="$BUILD_CXX" 38188 path="${complete%% *}" 38189 tmp="$complete EOL" 38190 arguments="${tmp#* }" 38191 38192 # Input might be given as Windows format, start by converting to 38193 # unix format. 38194 new_path="$path" 38195 38196 windows_path="$new_path" 38197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38198 unix_path=`$CYGPATH -u "$windows_path"` 38199 new_path="$unix_path" 38200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38202 new_path="$unix_path" 38203 fi 38204 38205 38206 # Now try to locate executable using which 38207 new_path=`$WHICH "$new_path" 2> /dev/null` 38208 38209 if test "x$new_path" = x; then 38210 # Oops. Which didn't find the executable. 38211 # The splitting of arguments from the executable at a space might have been incorrect, 38212 # since paths with space are more likely in Windows. Give it another try with the whole 38213 # argument. 38214 path="$complete" 38215 arguments="EOL" 38216 new_path="$path" 38217 38218 windows_path="$new_path" 38219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38220 unix_path=`$CYGPATH -u "$windows_path"` 38221 new_path="$unix_path" 38222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38224 new_path="$unix_path" 38225 fi 38226 38227 38228 new_path=`$WHICH "$new_path" 2> /dev/null` 38229 38230 if test "x$new_path" = x; then 38231 # It's still not found. Now this is an unrecoverable error. 38232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 38233 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 38234 has_space=`$ECHO "$complete" | $GREP " "` 38235 if test "x$has_space" != x; then 38236 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38237 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38238 fi 38239 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 38240 fi 38241 fi 38242 38243 # Now new_path has a complete unix path to the binary 38244 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38245 # Keep paths in /bin as-is, but remove trailing .exe if any 38246 new_path="${new_path/%.exe/}" 38247 # Do not save /bin paths to all_fixpath_prefixes! 38248 else 38249 # Not in mixed or Windows style, start by that. 38250 new_path=`cmd //c echo $new_path` 38251 38252 input_path="$new_path" 38253 # Check if we need to convert this using DOS-style short mode. If the path 38254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38255 # take no chances and rewrite it. 38256 # Note: m4 eats our [], so we need to use [ and ] instead. 38257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38258 if test "x$has_forbidden_chars" != x; then 38259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38260 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38261 fi 38262 38263 # Output is in $new_path 38264 38265 windows_path="$new_path" 38266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38267 unix_path=`$CYGPATH -u "$windows_path"` 38268 new_path="$unix_path" 38269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38270 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38271 new_path="$unix_path" 38272 fi 38273 38274 # remove trailing .exe if any 38275 new_path="${new_path/%.exe/}" 38276 38277 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38278 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38279 fi 38280 38281 else 38282 # We're on a posix platform. Hooray! :) 38283 # First separate the path from the arguments. This will split at the first 38284 # space. 38285 complete="$BUILD_CXX" 38286 path="${complete%% *}" 38287 tmp="$complete EOL" 38288 arguments="${tmp#* }" 38289 38290 # Cannot rely on the command "which" here since it doesn't always work. 38291 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38292 if test -z "$is_absolute_path"; then 38293 # Path to executable is not absolute. Find it. 38294 IFS_save="$IFS" 38295 IFS=: 38296 for p in $PATH; do 38297 if test -f "$p/$path" && test -x "$p/$path"; then 38298 new_path="$p/$path" 38299 break 38300 fi 38301 done 38302 IFS="$IFS_save" 38303 else 38304 # This is an absolute path, we can use it without further modifications. 38305 new_path="$path" 38306 fi 38307 38308 if test "x$new_path" = x; then 38309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 38310 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 38311 has_space=`$ECHO "$complete" | $GREP " "` 38312 if test "x$has_space" != x; then 38313 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38314 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38315 fi 38316 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 38317 fi 38318 fi 38319 38320 # Now join together the path and the arguments once again 38321 if test "x$arguments" != xEOL; then 38322 new_complete="$new_path ${arguments% *}" 38323 else 38324 new_complete="$new_path" 38325 fi 38326 38327 if test "x$complete" != "x$new_complete"; then 38328 BUILD_CXX="$new_complete" 38329 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 38330 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 38331 fi 38332 38333 38334 38335 # Publish this variable in the help. 38336 38337 38338 if test "x$BUILD_LD" = x; then 38339 # The variable is not set by user, try to locate tool using the code snippet 38340 for ac_prog in ld 38341 do 38342 # Extract the first word of "$ac_prog", so it can be a program name with args. 38343 set dummy $ac_prog; ac_word=$2 38344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38345 $as_echo_n "checking for $ac_word... " >&6; } 38346 if ${ac_cv_path_BUILD_LD+:} false; then : 38347 $as_echo_n "(cached) " >&6 38348 else 38349 case $BUILD_LD in 38350 [\\/]* | ?:[\\/]*) 38351 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 38352 ;; 38353 *) 38354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38355 for as_dir in $PATH 38356 do 38357 IFS=$as_save_IFS 38358 test -z "$as_dir" && as_dir=. 38359 for ac_exec_ext in '' $ac_executable_extensions; do 38360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38361 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 38362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38363 break 2 38364 fi 38365 done 38366 done 38367 IFS=$as_save_IFS 38368 38369 ;; 38370 esac 38371 fi 38372 BUILD_LD=$ac_cv_path_BUILD_LD 38373 if test -n "$BUILD_LD"; then 38374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 38375 $as_echo "$BUILD_LD" >&6; } 38376 else 38377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38378 $as_echo "no" >&6; } 38379 fi 38380 38381 38382 test -n "$BUILD_LD" && break 38383 done 38384 38385 else 38386 # The variable is set, but is it from the command line or the environment? 38387 38388 # Try to remove the string !BUILD_LD! from our list. 38389 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 38390 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38391 # If it failed, the variable was not from the command line. Ignore it, 38392 # but warn the user (except for BASH, which is always set by the calling BASH). 38393 if test "xBUILD_LD" != xBASH; then 38394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 38395 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 38396 fi 38397 # Try to locate tool using the code snippet 38398 for ac_prog in ld 38399 do 38400 # Extract the first word of "$ac_prog", so it can be a program name with args. 38401 set dummy $ac_prog; ac_word=$2 38402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38403 $as_echo_n "checking for $ac_word... " >&6; } 38404 if ${ac_cv_path_BUILD_LD+:} false; then : 38405 $as_echo_n "(cached) " >&6 38406 else 38407 case $BUILD_LD in 38408 [\\/]* | ?:[\\/]*) 38409 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 38410 ;; 38411 *) 38412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38413 for as_dir in $PATH 38414 do 38415 IFS=$as_save_IFS 38416 test -z "$as_dir" && as_dir=. 38417 for ac_exec_ext in '' $ac_executable_extensions; do 38418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38419 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 38420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38421 break 2 38422 fi 38423 done 38424 done 38425 IFS=$as_save_IFS 38426 38427 ;; 38428 esac 38429 fi 38430 BUILD_LD=$ac_cv_path_BUILD_LD 38431 if test -n "$BUILD_LD"; then 38432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 38433 $as_echo "$BUILD_LD" >&6; } 38434 else 38435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38436 $as_echo "no" >&6; } 38437 fi 38438 38439 38440 test -n "$BUILD_LD" && break 38441 done 38442 38443 else 38444 # If it succeeded, then it was overridden by the user. We will use it 38445 # for the tool. 38446 38447 # First remove it from the list of overridden variables, so we can test 38448 # for unknown variables in the end. 38449 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38450 38451 # Check if the provided tool contains a complete path. 38452 tool_specified="$BUILD_LD" 38453 tool_basename="${tool_specified##*/}" 38454 if test "x$tool_basename" = "x$tool_specified"; then 38455 # A command without a complete path is provided, search $PATH. 38456 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 38457 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 38458 # Extract the first word of "$tool_basename", so it can be a program name with args. 38459 set dummy $tool_basename; ac_word=$2 38460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38461 $as_echo_n "checking for $ac_word... " >&6; } 38462 if ${ac_cv_path_BUILD_LD+:} false; then : 38463 $as_echo_n "(cached) " >&6 38464 else 38465 case $BUILD_LD in 38466 [\\/]* | ?:[\\/]*) 38467 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 38468 ;; 38469 *) 38470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38471 for as_dir in $PATH 38472 do 38473 IFS=$as_save_IFS 38474 test -z "$as_dir" && as_dir=. 38475 for ac_exec_ext in '' $ac_executable_extensions; do 38476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38477 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 38478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38479 break 2 38480 fi 38481 done 38482 done 38483 IFS=$as_save_IFS 38484 38485 ;; 38486 esac 38487 fi 38488 BUILD_LD=$ac_cv_path_BUILD_LD 38489 if test -n "$BUILD_LD"; then 38490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 38491 $as_echo "$BUILD_LD" >&6; } 38492 else 38493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38494 $as_echo "no" >&6; } 38495 fi 38496 38497 38498 if test "x$BUILD_LD" = x; then 38499 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38500 fi 38501 else 38502 # Otherwise we believe it is a complete path. Use it as it is. 38503 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 38504 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 38505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 38506 $as_echo_n "checking for BUILD_LD... " >&6; } 38507 if test ! -x "$tool_specified"; then 38508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38509 $as_echo "not found" >&6; } 38510 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 38511 fi 38512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38513 $as_echo "$tool_specified" >&6; } 38514 fi 38515 fi 38516 fi 38517 38518 38519 38520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38521 38522 # First separate the path from the arguments. This will split at the first 38523 # space. 38524 complete="$BUILD_LD" 38525 path="${complete%% *}" 38526 tmp="$complete EOL" 38527 arguments="${tmp#* }" 38528 38529 # Input might be given as Windows format, start by converting to 38530 # unix format. 38531 new_path=`$CYGPATH -u "$path"` 38532 38533 # Now try to locate executable using which 38534 new_path=`$WHICH "$new_path" 2> /dev/null` 38535 # bat and cmd files are not always considered executable in cygwin causing which 38536 # to not find them 38537 if test "x$new_path" = x \ 38538 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38539 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38540 new_path=`$CYGPATH -u "$path"` 38541 fi 38542 if test "x$new_path" = x; then 38543 # Oops. Which didn't find the executable. 38544 # The splitting of arguments from the executable at a space might have been incorrect, 38545 # since paths with space are more likely in Windows. Give it another try with the whole 38546 # argument. 38547 path="$complete" 38548 arguments="EOL" 38549 new_path=`$CYGPATH -u "$path"` 38550 new_path=`$WHICH "$new_path" 2> /dev/null` 38551 # bat and cmd files are not always considered executable in cygwin causing which 38552 # to not find them 38553 if test "x$new_path" = x \ 38554 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38555 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38556 new_path=`$CYGPATH -u "$path"` 38557 fi 38558 if test "x$new_path" = x; then 38559 # It's still not found. Now this is an unrecoverable error. 38560 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 38561 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 38562 has_space=`$ECHO "$complete" | $GREP " "` 38563 if test "x$has_space" != x; then 38564 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38565 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38566 fi 38567 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 38568 fi 38569 fi 38570 38571 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38572 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38573 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38574 # "foo.exe" is OK but "foo" is an error. 38575 # 38576 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38577 # It is also a way to make sure we got the proper file name for the real test later on. 38578 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38579 if test "x$test_shortpath" = x; then 38580 # Short path failed, file does not exist as specified. 38581 # Try adding .exe or .cmd 38582 if test -f "${new_path}.exe"; then 38583 input_to_shortpath="${new_path}.exe" 38584 elif test -f "${new_path}.cmd"; then 38585 input_to_shortpath="${new_path}.cmd" 38586 else 38587 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 38588 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 38589 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38590 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38591 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 38592 fi 38593 else 38594 input_to_shortpath="$new_path" 38595 fi 38596 38597 # Call helper function which possibly converts this using DOS-style short mode. 38598 # If so, the updated path is stored in $new_path. 38599 new_path="$input_to_shortpath" 38600 38601 input_path="$input_to_shortpath" 38602 # Check if we need to convert this using DOS-style short mode. If the path 38603 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38604 # take no chances and rewrite it. 38605 # Note: m4 eats our [], so we need to use [ and ] instead. 38606 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38607 if test "x$has_forbidden_chars" != x; then 38608 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38609 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38610 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38611 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38612 # Going to short mode and back again did indeed matter. Since short mode is 38613 # case insensitive, let's make it lowercase to improve readability. 38614 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38615 # Now convert it back to Unix-stile (cygpath) 38616 input_path=`$CYGPATH -u "$shortmode_path"` 38617 new_path="$input_path" 38618 fi 38619 fi 38620 38621 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38622 if test "x$test_cygdrive_prefix" = x; then 38623 # As a simple fix, exclude /usr/bin since it's not a real path. 38624 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38625 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38626 # a path prefixed by /cygdrive for fixpath to work. 38627 new_path="$CYGWIN_ROOT_PATH$input_path" 38628 fi 38629 fi 38630 38631 # remove trailing .exe if any 38632 new_path="${new_path/%.exe/}" 38633 38634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38635 38636 # First separate the path from the arguments. This will split at the first 38637 # space. 38638 complete="$BUILD_LD" 38639 path="${complete%% *}" 38640 tmp="$complete EOL" 38641 arguments="${tmp#* }" 38642 38643 # Input might be given as Windows format, start by converting to 38644 # unix format. 38645 new_path="$path" 38646 38647 windows_path="$new_path" 38648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38649 unix_path=`$CYGPATH -u "$windows_path"` 38650 new_path="$unix_path" 38651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38652 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38653 new_path="$unix_path" 38654 fi 38655 38656 38657 # Now try to locate executable using which 38658 new_path=`$WHICH "$new_path" 2> /dev/null` 38659 38660 if test "x$new_path" = x; then 38661 # Oops. Which didn't find the executable. 38662 # The splitting of arguments from the executable at a space might have been incorrect, 38663 # since paths with space are more likely in Windows. Give it another try with the whole 38664 # argument. 38665 path="$complete" 38666 arguments="EOL" 38667 new_path="$path" 38668 38669 windows_path="$new_path" 38670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38671 unix_path=`$CYGPATH -u "$windows_path"` 38672 new_path="$unix_path" 38673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38674 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38675 new_path="$unix_path" 38676 fi 38677 38678 38679 new_path=`$WHICH "$new_path" 2> /dev/null` 38680 38681 if test "x$new_path" = x; then 38682 # It's still not found. Now this is an unrecoverable error. 38683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 38684 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 38685 has_space=`$ECHO "$complete" | $GREP " "` 38686 if test "x$has_space" != x; then 38687 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38688 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38689 fi 38690 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 38691 fi 38692 fi 38693 38694 # Now new_path has a complete unix path to the binary 38695 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38696 # Keep paths in /bin as-is, but remove trailing .exe if any 38697 new_path="${new_path/%.exe/}" 38698 # Do not save /bin paths to all_fixpath_prefixes! 38699 else 38700 # Not in mixed or Windows style, start by that. 38701 new_path=`cmd //c echo $new_path` 38702 38703 input_path="$new_path" 38704 # Check if we need to convert this using DOS-style short mode. If the path 38705 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38706 # take no chances and rewrite it. 38707 # Note: m4 eats our [], so we need to use [ and ] instead. 38708 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38709 if test "x$has_forbidden_chars" != x; then 38710 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38711 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38712 fi 38713 38714 # Output is in $new_path 38715 38716 windows_path="$new_path" 38717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38718 unix_path=`$CYGPATH -u "$windows_path"` 38719 new_path="$unix_path" 38720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38721 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38722 new_path="$unix_path" 38723 fi 38724 38725 # remove trailing .exe if any 38726 new_path="${new_path/%.exe/}" 38727 38728 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38729 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38730 fi 38731 38732 else 38733 # We're on a posix platform. Hooray! :) 38734 # First separate the path from the arguments. This will split at the first 38735 # space. 38736 complete="$BUILD_LD" 38737 path="${complete%% *}" 38738 tmp="$complete EOL" 38739 arguments="${tmp#* }" 38740 38741 # Cannot rely on the command "which" here since it doesn't always work. 38742 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38743 if test -z "$is_absolute_path"; then 38744 # Path to executable is not absolute. Find it. 38745 IFS_save="$IFS" 38746 IFS=: 38747 for p in $PATH; do 38748 if test -f "$p/$path" && test -x "$p/$path"; then 38749 new_path="$p/$path" 38750 break 38751 fi 38752 done 38753 IFS="$IFS_save" 38754 else 38755 # This is an absolute path, we can use it without further modifications. 38756 new_path="$path" 38757 fi 38758 38759 if test "x$new_path" = x; then 38760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 38761 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 38762 has_space=`$ECHO "$complete" | $GREP " "` 38763 if test "x$has_space" != x; then 38764 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38765 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38766 fi 38767 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 38768 fi 38769 fi 38770 38771 # Now join together the path and the arguments once again 38772 if test "x$arguments" != xEOL; then 38773 new_complete="$new_path ${arguments% *}" 38774 else 38775 new_complete="$new_path" 38776 fi 38777 38778 if test "x$complete" != "x$new_complete"; then 38779 BUILD_LD="$new_complete" 38780 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 38781 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 38782 fi 38783 38784 else 38785 # If we are not cross compiling, use the normal target compilers for 38786 # building the build platform executables. 38787 BUILD_CC="$CC" 38788 BUILD_CXX="$CXX" 38789 BUILD_LD="$LD" 38790 fi 38791 38792 38793 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38794 # For hotspot, we need these in Windows mixed path, 38795 # so rewrite them all. Need added .exe suffix. 38796 HOTSPOT_CXX="$CXX.exe" 38797 HOTSPOT_LD="$LD.exe" 38798 HOTSPOT_MT="$MT.exe" 38799 HOTSPOT_RC="$RC.exe" 38800 38801 unix_path="$HOTSPOT_CXX" 38802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38803 windows_path=`$CYGPATH -m "$unix_path"` 38804 HOTSPOT_CXX="$windows_path" 38805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38806 windows_path=`cmd //c echo $unix_path` 38807 HOTSPOT_CXX="$windows_path" 38808 fi 38809 38810 38811 unix_path="$HOTSPOT_LD" 38812 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38813 windows_path=`$CYGPATH -m "$unix_path"` 38814 HOTSPOT_LD="$windows_path" 38815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38816 windows_path=`cmd //c echo $unix_path` 38817 HOTSPOT_LD="$windows_path" 38818 fi 38819 38820 38821 unix_path="$HOTSPOT_MT" 38822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38823 windows_path=`$CYGPATH -m "$unix_path"` 38824 HOTSPOT_MT="$windows_path" 38825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38826 windows_path=`cmd //c echo $unix_path` 38827 HOTSPOT_MT="$windows_path" 38828 fi 38829 38830 38831 unix_path="$HOTSPOT_RC" 38832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38833 windows_path=`$CYGPATH -m "$unix_path"` 38834 HOTSPOT_RC="$windows_path" 38835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38836 windows_path=`cmd //c echo $unix_path` 38837 HOTSPOT_RC="$windows_path" 38838 fi 38839 38840 38841 38842 else 38843 HOTSPOT_CXX="$CXX" 38844 HOTSPOT_LD="$LD" 38845 fi 38846 38847 38848 38849 if test "x$TOOLCHAIN_TYPE" = xclang; then 38850 USE_CLANG=true 38851 fi 38852 38853 38854 # LDEXE is the linker to use, when creating executables. Not really used. 38855 # FIXME: These should just be removed! 38856 LDEXE="$LD" 38857 LDEXECXX="$LDCXX" 38858 38859 38860 38861 38862 # The package path is used only on macosx? 38863 # FIXME: clean this up, and/or move it elsewhere. 38864 PACKAGE_PATH=/opt/local 38865 38866 38867 # Check for extra potential brokenness. 38868 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38869 # On Windows, double-check that we got the right compiler. 38870 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 38871 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 38872 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 38873 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 38874 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 38875 fi 38876 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 38877 if test "x$COMPILER_CPU_TEST" != "xx64"; then 38878 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 38879 fi 38880 fi 38881 fi 38882 38883 if test "x$TOOLCHAIN_TYPE" = xgcc; then 38884 # If this is a --hash-style=gnu system, use --hash-style=both, why? 38885 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 38886 # This is later checked when setting flags. 38887 fi 38888 38889 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 38890 # in executable.' 38891 USING_BROKEN_SUSE_LD=no 38892 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 38893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 38894 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 38895 echo "SUNWprivate_1.1 { local: *; };" > version-script.map 38896 echo "int main() { }" > main.c 38897 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 38898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38899 $as_echo "no" >&6; } 38900 USING_BROKEN_SUSE_LD=no 38901 else 38902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38903 $as_echo "yes" >&6; } 38904 USING_BROKEN_SUSE_LD=yes 38905 fi 38906 rm -rf version-script.map main.c 38907 fi 38908 38909 38910 38911 # Setup the JTReg Regression Test Harness. 38912 38913 38914 # Check whether --with-jtreg was given. 38915 if test "${with_jtreg+set}" = set; then : 38916 withval=$with_jtreg; 38917 else 38918 with_jtreg=no 38919 fi 38920 38921 38922 if test "x$with_jtreg" = xno; then 38923 # jtreg disabled 38924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 38925 $as_echo_n "checking for jtreg... " >&6; } 38926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38927 $as_echo "no" >&6; } 38928 else 38929 if test "x$with_jtreg" != xyes; then 38930 # with path specified. 38931 JT_HOME="$with_jtreg" 38932 fi 38933 38934 if test "x$JT_HOME" != x; then 38935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 38936 $as_echo_n "checking for jtreg... " >&6; } 38937 38938 # use JT_HOME enviroment var. 38939 38940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38941 38942 # Input might be given as Windows format, start by converting to 38943 # unix format. 38944 path="$JT_HOME" 38945 new_path=`$CYGPATH -u "$path"` 38946 38947 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38948 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38949 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38950 # "foo.exe" is OK but "foo" is an error. 38951 # 38952 # This test is therefore slightly more accurate than "test -f" to check for file precense. 38953 # It is also a way to make sure we got the proper file name for the real test later on. 38954 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38955 if test "x$test_shortpath" = x; then 38956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 38957 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 38958 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 38959 fi 38960 38961 # Call helper function which possibly converts this using DOS-style short mode. 38962 # If so, the updated path is stored in $new_path. 38963 38964 input_path="$new_path" 38965 # Check if we need to convert this using DOS-style short mode. If the path 38966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38967 # take no chances and rewrite it. 38968 # Note: m4 eats our [], so we need to use [ and ] instead. 38969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38970 if test "x$has_forbidden_chars" != x; then 38971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38972 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38973 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38974 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38975 # Going to short mode and back again did indeed matter. Since short mode is 38976 # case insensitive, let's make it lowercase to improve readability. 38977 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38978 # Now convert it back to Unix-stile (cygpath) 38979 input_path=`$CYGPATH -u "$shortmode_path"` 38980 new_path="$input_path" 38981 fi 38982 fi 38983 38984 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38985 if test "x$test_cygdrive_prefix" = x; then 38986 # As a simple fix, exclude /usr/bin since it's not a real path. 38987 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 38988 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38989 # a path prefixed by /cygdrive for fixpath to work. 38990 new_path="$CYGWIN_ROOT_PATH$input_path" 38991 fi 38992 fi 38993 38994 38995 if test "x$path" != "x$new_path"; then 38996 JT_HOME="$new_path" 38997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 38998 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 38999 fi 39000 39001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39002 39003 path="$JT_HOME" 39004 has_colon=`$ECHO $path | $GREP ^.:` 39005 new_path="$path" 39006 if test "x$has_colon" = x; then 39007 # Not in mixed or Windows style, start by that. 39008 new_path=`cmd //c echo $path` 39009 fi 39010 39011 39012 input_path="$new_path" 39013 # Check if we need to convert this using DOS-style short mode. If the path 39014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39015 # take no chances and rewrite it. 39016 # Note: m4 eats our [], so we need to use [ and ] instead. 39017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39018 if test "x$has_forbidden_chars" != x; then 39019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39021 fi 39022 39023 39024 windows_path="$new_path" 39025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39026 unix_path=`$CYGPATH -u "$windows_path"` 39027 new_path="$unix_path" 39028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39030 new_path="$unix_path" 39031 fi 39032 39033 if test "x$path" != "x$new_path"; then 39034 JT_HOME="$new_path" 39035 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 39036 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 39037 fi 39038 39039 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39040 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39041 39042 else 39043 # We're on a posix platform. Hooray! :) 39044 path="$JT_HOME" 39045 has_space=`$ECHO "$path" | $GREP " "` 39046 if test "x$has_space" != x; then 39047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 39048 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 39049 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 39050 fi 39051 39052 # Use eval to expand a potential ~ 39053 eval path="$path" 39054 if test ! -f "$path" && test ! -d "$path"; then 39055 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 39056 fi 39057 39058 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 39059 fi 39060 39061 39062 # jtreg win32 script works for everybody 39063 JTREGEXE="$JT_HOME/bin/jtreg" 39064 39065 if test ! -f "$JTREGEXE"; then 39066 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 39067 fi 39068 39069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 39070 $as_echo "$JTREGEXE" >&6; } 39071 else 39072 # try to find jtreg on path 39073 39074 39075 39076 # Publish this variable in the help. 39077 39078 39079 if test "x$JTREGEXE" = x; then 39080 # The variable is not set by user, try to locate tool using the code snippet 39081 for ac_prog in jtreg 39082 do 39083 # Extract the first word of "$ac_prog", so it can be a program name with args. 39084 set dummy $ac_prog; ac_word=$2 39085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39086 $as_echo_n "checking for $ac_word... " >&6; } 39087 if ${ac_cv_path_JTREGEXE+:} false; then : 39088 $as_echo_n "(cached) " >&6 39089 else 39090 case $JTREGEXE in 39091 [\\/]* | ?:[\\/]*) 39092 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 39093 ;; 39094 *) 39095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39096 for as_dir in $PATH 39097 do 39098 IFS=$as_save_IFS 39099 test -z "$as_dir" && as_dir=. 39100 for ac_exec_ext in '' $ac_executable_extensions; do 39101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39102 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 39103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39104 break 2 39105 fi 39106 done 39107 done 39108 IFS=$as_save_IFS 39109 39110 ;; 39111 esac 39112 fi 39113 JTREGEXE=$ac_cv_path_JTREGEXE 39114 if test -n "$JTREGEXE"; then 39115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 39116 $as_echo "$JTREGEXE" >&6; } 39117 else 39118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39119 $as_echo "no" >&6; } 39120 fi 39121 39122 39123 test -n "$JTREGEXE" && break 39124 done 39125 39126 else 39127 # The variable is set, but is it from the command line or the environment? 39128 39129 # Try to remove the string !JTREGEXE! from our list. 39130 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 39131 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39132 # If it failed, the variable was not from the command line. Ignore it, 39133 # but warn the user (except for BASH, which is always set by the calling BASH). 39134 if test "xJTREGEXE" != xBASH; then 39135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 39136 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 39137 fi 39138 # Try to locate tool using the code snippet 39139 for ac_prog in jtreg 39140 do 39141 # Extract the first word of "$ac_prog", so it can be a program name with args. 39142 set dummy $ac_prog; ac_word=$2 39143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39144 $as_echo_n "checking for $ac_word... " >&6; } 39145 if ${ac_cv_path_JTREGEXE+:} false; then : 39146 $as_echo_n "(cached) " >&6 39147 else 39148 case $JTREGEXE in 39149 [\\/]* | ?:[\\/]*) 39150 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 39151 ;; 39152 *) 39153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39154 for as_dir in $PATH 39155 do 39156 IFS=$as_save_IFS 39157 test -z "$as_dir" && as_dir=. 39158 for ac_exec_ext in '' $ac_executable_extensions; do 39159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39160 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 39161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39162 break 2 39163 fi 39164 done 39165 done 39166 IFS=$as_save_IFS 39167 39168 ;; 39169 esac 39170 fi 39171 JTREGEXE=$ac_cv_path_JTREGEXE 39172 if test -n "$JTREGEXE"; then 39173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 39174 $as_echo "$JTREGEXE" >&6; } 39175 else 39176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39177 $as_echo "no" >&6; } 39178 fi 39179 39180 39181 test -n "$JTREGEXE" && break 39182 done 39183 39184 else 39185 # If it succeeded, then it was overridden by the user. We will use it 39186 # for the tool. 39187 39188 # First remove it from the list of overridden variables, so we can test 39189 # for unknown variables in the end. 39190 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39191 39192 # Check if the provided tool contains a complete path. 39193 tool_specified="$JTREGEXE" 39194 tool_basename="${tool_specified##*/}" 39195 if test "x$tool_basename" = "x$tool_specified"; then 39196 # A command without a complete path is provided, search $PATH. 39197 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 39198 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 39199 # Extract the first word of "$tool_basename", so it can be a program name with args. 39200 set dummy $tool_basename; ac_word=$2 39201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39202 $as_echo_n "checking for $ac_word... " >&6; } 39203 if ${ac_cv_path_JTREGEXE+:} false; then : 39204 $as_echo_n "(cached) " >&6 39205 else 39206 case $JTREGEXE in 39207 [\\/]* | ?:[\\/]*) 39208 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 39209 ;; 39210 *) 39211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39212 for as_dir in $PATH 39213 do 39214 IFS=$as_save_IFS 39215 test -z "$as_dir" && as_dir=. 39216 for ac_exec_ext in '' $ac_executable_extensions; do 39217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39218 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 39219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39220 break 2 39221 fi 39222 done 39223 done 39224 IFS=$as_save_IFS 39225 39226 ;; 39227 esac 39228 fi 39229 JTREGEXE=$ac_cv_path_JTREGEXE 39230 if test -n "$JTREGEXE"; then 39231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 39232 $as_echo "$JTREGEXE" >&6; } 39233 else 39234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39235 $as_echo "no" >&6; } 39236 fi 39237 39238 39239 if test "x$JTREGEXE" = x; then 39240 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39241 fi 39242 else 39243 # Otherwise we believe it is a complete path. Use it as it is. 39244 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 39245 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 39246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 39247 $as_echo_n "checking for JTREGEXE... " >&6; } 39248 if test ! -x "$tool_specified"; then 39249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39250 $as_echo "not found" >&6; } 39251 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 39252 fi 39253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39254 $as_echo "$tool_specified" >&6; } 39255 fi 39256 fi 39257 fi 39258 39259 39260 39261 if test "x$JTREGEXE" = x; then 39262 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 39263 fi 39264 39265 39266 JT_HOME="`$DIRNAME $JTREGEXE`" 39267 fi 39268 fi 39269 39270 39271 39272 39273 39274 39275 # Option used to tell the compiler whether to create 32- or 64-bit executables 39276 if test "x$TOOLCHAIN_TYPE" = xxlc; then 39277 COMPILER_TARGET_BITS_FLAG="-q" 39278 else 39279 COMPILER_TARGET_BITS_FLAG="-m" 39280 fi 39281 39282 39283 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 39284 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 39285 ARFLAGS="-r" 39286 elif test "x$OPENJDK_TARGET_OS" = xaix; then 39287 ARFLAGS="-X64" 39288 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 39289 # lib.exe is used as AR to create static libraries. 39290 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 39291 else 39292 ARFLAGS="" 39293 fi 39294 39295 39296 ## Setup strip. 39297 # FIXME: should this really be per platform, or should it be per toolchain type? 39298 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 39299 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 39300 if test "x$OPENJDK_TARGET_OS" = xlinux; then 39301 STRIPFLAGS="-g" 39302 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 39303 STRIPFLAGS="-x" 39304 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 39305 STRIPFLAGS="-S" 39306 elif test "x$OPENJDK_TARGET_OS" = xaix; then 39307 STRIPFLAGS="-X32_64" 39308 fi 39309 39310 if test "x$OPENJDK_TARGET_OS" != xwindows; then 39311 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 39312 fi 39313 39314 39315 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 39316 # FIXME: break out into MCSFLAGS 39317 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 39318 fi 39319 39320 39321 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39322 CC_OUT_OPTION=-Fo 39323 EXE_OUT_OPTION=-out: 39324 LD_OUT_OPTION=-out: 39325 AR_OUT_OPTION=-out: 39326 else 39327 # The option used to specify the target .o,.a or .so file. 39328 # When compiling, how to specify the to be created object file. 39329 CC_OUT_OPTION='-o$(SPACE)' 39330 # When linking, how to specify the to be created executable. 39331 EXE_OUT_OPTION='-o$(SPACE)' 39332 # When linking, how to specify the to be created dynamically linkable library. 39333 LD_OUT_OPTION='-o$(SPACE)' 39334 # When archiving, how to specify the to be create static archive for object files. 39335 AR_OUT_OPTION='rcs$(SPACE)' 39336 fi 39337 39338 39339 39340 39341 39342 # On Windows, we need to set RC flags. 39343 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39344 RC_FLAGS="-nologo -l 0x409 -r" 39345 if test "x$VARIANT" = xOPT; then 39346 RC_FLAGS="$RC_FLAGS -d NDEBUG" 39347 fi 39348 39349 # The version variables used to create RC_FLAGS may be overridden 39350 # in a custom configure script, or possibly the command line. 39351 # Let those variables be expanded at make time in spec.gmk. 39352 # The \$ are escaped to the shell, and the $(...) variables 39353 # are evaluated by make. 39354 RC_FLAGS="$RC_FLAGS \ 39355 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 39356 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 39357 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 39358 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 39359 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 39360 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 39361 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 39362 fi 39363 39364 39365 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39366 # FIXME: likely bug, should be CCXXFLAGS_JDK? or one for C or CXX. 39367 CCXXFLAGS="$CCXXFLAGS -nologo" 39368 fi 39369 39370 if test "x$SYSROOT" != "x"; then 39371 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 39372 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 39373 # Solaris Studio does not have a concept of sysroot. Instead we must 39374 # make sure the default include and lib dirs are appended to each 39375 # compile and link command line. 39376 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 39377 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 39378 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 39379 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 39380 fi 39381 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 39382 SYSROOT_CFLAGS="--sysroot=\"$SYSROOT\"" 39383 SYSROOT_LDFLAGS="--sysroot=\"$SYSROOT\"" 39384 elif test "x$TOOLCHAIN_TYPE" = xclang; then 39385 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 39386 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 39387 fi 39388 # Propagate the sysroot args to hotspot 39389 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 39390 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 39391 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 39392 fi 39393 39394 39395 39396 39397 # FIXME: Currently we must test this after toolchain but before flags. Fix! 39398 39399 # Now we can test some aspects on the target using configure macros. 39400 39401 39402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 39403 $as_echo_n "checking for ANSI C header files... " >&6; } 39404 if ${ac_cv_header_stdc+:} false; then : 39405 $as_echo_n "(cached) " >&6 39406 else 39407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39408 /* end confdefs.h. */ 39409 #include <stdlib.h> 39410 #include <stdarg.h> 39411 #include <string.h> 39412 #include <float.h> 39413 39414 int 39415 main () 39416 { 39417 39418 ; 39419 return 0; 39420 } 39421 _ACEOF 39422 if ac_fn_cxx_try_compile "$LINENO"; then : 39423 ac_cv_header_stdc=yes 39424 else 39425 ac_cv_header_stdc=no 39426 fi 39427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39428 39429 if test $ac_cv_header_stdc = yes; then 39430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 39431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39432 /* end confdefs.h. */ 39433 #include <string.h> 39434 39435 _ACEOF 39436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39437 $EGREP "memchr" >/dev/null 2>&1; then : 39438 39439 else 39440 ac_cv_header_stdc=no 39441 fi 39442 rm -f conftest* 39443 39444 fi 39445 39446 if test $ac_cv_header_stdc = yes; then 39447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 39448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39449 /* end confdefs.h. */ 39450 #include <stdlib.h> 39451 39452 _ACEOF 39453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39454 $EGREP "free" >/dev/null 2>&1; then : 39455 39456 else 39457 ac_cv_header_stdc=no 39458 fi 39459 rm -f conftest* 39460 39461 fi 39462 39463 if test $ac_cv_header_stdc = yes; then 39464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 39465 if test "$cross_compiling" = yes; then : 39466 : 39467 else 39468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39469 /* end confdefs.h. */ 39470 #include <ctype.h> 39471 #include <stdlib.h> 39472 #if ((' ' & 0x0FF) == 0x020) 39473 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 39474 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 39475 #else 39476 # define ISLOWER(c) \ 39477 (('a' <= (c) && (c) <= 'i') \ 39478 || ('j' <= (c) && (c) <= 'r') \ 39479 || ('s' <= (c) && (c) <= 'z')) 39480 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 39481 #endif 39482 39483 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 39484 int 39485 main () 39486 { 39487 int i; 39488 for (i = 0; i < 256; i++) 39489 if (XOR (islower (i), ISLOWER (i)) 39490 || toupper (i) != TOUPPER (i)) 39491 return 2; 39492 return 0; 39493 } 39494 _ACEOF 39495 if ac_fn_cxx_try_run "$LINENO"; then : 39496 39497 else 39498 ac_cv_header_stdc=no 39499 fi 39500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39501 conftest.$ac_objext conftest.beam conftest.$ac_ext 39502 fi 39503 39504 fi 39505 fi 39506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 39507 $as_echo "$ac_cv_header_stdc" >&6; } 39508 if test $ac_cv_header_stdc = yes; then 39509 39510 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 39511 39512 fi 39513 39514 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 39515 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 39516 inttypes.h stdint.h unistd.h 39517 do : 39518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 39519 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 39520 " 39521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 39522 cat >>confdefs.h <<_ACEOF 39523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 39524 _ACEOF 39525 39526 fi 39527 39528 done 39529 39530 39531 39532 ############################################################################### 39533 # 39534 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 39535 # (The JVM can use 32 or 64 bit Java pointers but that decision 39536 # is made at runtime.) 39537 # 39538 39539 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 39540 # Always specify -m flag on Solaris 39541 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 39542 39543 # When we add flags to the "official" CFLAGS etc, we need to 39544 # keep track of these additions in ADDED_CFLAGS etc. These 39545 # will later be checked to make sure only controlled additions 39546 # have been made to CFLAGS etc. 39547 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39548 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39549 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39550 39551 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 39552 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 39553 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 39554 39555 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 39556 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 39557 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 39558 39559 elif test "x$COMPILE_TYPE" = xreduced; then 39560 if test "x$OPENJDK_TARGET_OS" != xwindows; then 39561 # Specify -m if running reduced on other Posix platforms 39562 39563 # When we add flags to the "official" CFLAGS etc, we need to 39564 # keep track of these additions in ADDED_CFLAGS etc. These 39565 # will later be checked to make sure only controlled additions 39566 # have been made to CFLAGS etc. 39567 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39568 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39569 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39570 39571 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 39572 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 39573 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 39574 39575 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 39576 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 39577 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 39578 39579 fi 39580 fi 39581 39582 # Make compilation sanity check 39583 for ac_header in stdio.h 39584 do : 39585 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 39586 if test "x$ac_cv_header_stdio_h" = xyes; then : 39587 cat >>confdefs.h <<_ACEOF 39588 #define HAVE_STDIO_H 1 39589 _ACEOF 39590 39591 else 39592 39593 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 39594 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 39595 if test "x$COMPILE_TYPE" = xreduced; then 39596 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 39597 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 39598 elif test "x$COMPILE_TYPE" = xcross; then 39599 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 39600 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 39601 fi 39602 as_fn_error $? "Cannot continue." "$LINENO" 5 39603 39604 fi 39605 39606 done 39607 39608 39609 # The cast to long int works around a bug in the HP C Compiler 39610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 39611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 39612 # This bug is HP SR number 8606223364. 39613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 39614 $as_echo_n "checking size of int *... " >&6; } 39615 if ${ac_cv_sizeof_int_p+:} false; then : 39616 $as_echo_n "(cached) " >&6 39617 else 39618 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 39619 39620 else 39621 if test "$ac_cv_type_int_p" = yes; then 39622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 39624 as_fn_error 77 "cannot compute sizeof (int *) 39625 See \`config.log' for more details" "$LINENO" 5; } 39626 else 39627 ac_cv_sizeof_int_p=0 39628 fi 39629 fi 39630 39631 fi 39632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 39633 $as_echo "$ac_cv_sizeof_int_p" >&6; } 39634 39635 39636 39637 cat >>confdefs.h <<_ACEOF 39638 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 39639 _ACEOF 39640 39641 39642 39643 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 39644 if test "x$ac_cv_sizeof_int_p" = x; then 39645 # The test failed, lets stick to the assumed value. 39646 { $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 39647 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 39648 else 39649 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 39650 39651 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 39652 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 39653 # Let's try to implicitely set the compilers target architecture and retry the test 39654 { $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 39655 $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;} 39656 { $as_echo "$as_me:${as_lineno-$LINENO}: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 39657 $as_echo "$as_me: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 39658 39659 # When we add flags to the "official" CFLAGS etc, we need to 39660 # keep track of these additions in ADDED_CFLAGS etc. These 39661 # will later be checked to make sure only controlled additions 39662 # have been made to CFLAGS etc. 39663 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39664 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39665 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39666 39667 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 39668 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 39669 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 39670 39671 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 39672 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 39673 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 39674 39675 39676 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 39677 unset ac_cv_sizeof_int_p 39678 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 39679 cat >>confdefs.h <<_ACEOF 39680 #undef SIZEOF_INT_P 39681 _ACEOF 39682 39683 # The cast to long int works around a bug in the HP C Compiler 39684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 39685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 39686 # This bug is HP SR number 8606223364. 39687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 39688 $as_echo_n "checking size of int *... " >&6; } 39689 if ${ac_cv_sizeof_int_p+:} false; then : 39690 $as_echo_n "(cached) " >&6 39691 else 39692 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 39693 39694 else 39695 if test "$ac_cv_type_int_p" = yes; then 39696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 39698 as_fn_error 77 "cannot compute sizeof (int *) 39699 See \`config.log' for more details" "$LINENO" 5; } 39700 else 39701 ac_cv_sizeof_int_p=0 39702 fi 39703 fi 39704 39705 fi 39706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 39707 $as_echo "$ac_cv_sizeof_int_p" >&6; } 39708 39709 39710 39711 cat >>confdefs.h <<_ACEOF 39712 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 39713 _ACEOF 39714 39715 39716 39717 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 39718 39719 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 39720 as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5 39721 fi 39722 fi 39723 fi 39724 39725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 39726 $as_echo_n "checking for target address size... " >&6; } 39727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 39728 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 39729 39730 39731 ############################################################################### 39732 # 39733 # Is the target little of big endian? 39734 # 39735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 39736 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 39737 if ${ac_cv_c_bigendian+:} false; then : 39738 $as_echo_n "(cached) " >&6 39739 else 39740 ac_cv_c_bigendian=unknown 39741 # See if we're dealing with a universal compiler. 39742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39743 /* end confdefs.h. */ 39744 #ifndef __APPLE_CC__ 39745 not a universal capable compiler 39746 #endif 39747 typedef int dummy; 39748 39749 _ACEOF 39750 if ac_fn_cxx_try_compile "$LINENO"; then : 39751 39752 # Check for potential -arch flags. It is not universal unless 39753 # there are at least two -arch flags with different values. 39754 ac_arch= 39755 ac_prev= 39756 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 39757 if test -n "$ac_prev"; then 39758 case $ac_word in 39759 i?86 | x86_64 | ppc | ppc64) 39760 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 39761 ac_arch=$ac_word 39762 else 39763 ac_cv_c_bigendian=universal 39764 break 39765 fi 39766 ;; 39767 esac 39768 ac_prev= 39769 elif test "x$ac_word" = "x-arch"; then 39770 ac_prev=arch 39771 fi 39772 done 39773 fi 39774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39775 if test $ac_cv_c_bigendian = unknown; then 39776 # See if sys/param.h defines the BYTE_ORDER macro. 39777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39778 /* end confdefs.h. */ 39779 #include <sys/types.h> 39780 #include <sys/param.h> 39781 39782 int 39783 main () 39784 { 39785 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 39786 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 39787 && LITTLE_ENDIAN) 39788 bogus endian macros 39789 #endif 39790 39791 ; 39792 return 0; 39793 } 39794 _ACEOF 39795 if ac_fn_cxx_try_compile "$LINENO"; then : 39796 # It does; now see whether it defined to BIG_ENDIAN or not. 39797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39798 /* end confdefs.h. */ 39799 #include <sys/types.h> 39800 #include <sys/param.h> 39801 39802 int 39803 main () 39804 { 39805 #if BYTE_ORDER != BIG_ENDIAN 39806 not big endian 39807 #endif 39808 39809 ; 39810 return 0; 39811 } 39812 _ACEOF 39813 if ac_fn_cxx_try_compile "$LINENO"; then : 39814 ac_cv_c_bigendian=yes 39815 else 39816 ac_cv_c_bigendian=no 39817 fi 39818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39819 fi 39820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39821 fi 39822 if test $ac_cv_c_bigendian = unknown; then 39823 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 39824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39825 /* end confdefs.h. */ 39826 #include <limits.h> 39827 39828 int 39829 main () 39830 { 39831 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 39832 bogus endian macros 39833 #endif 39834 39835 ; 39836 return 0; 39837 } 39838 _ACEOF 39839 if ac_fn_cxx_try_compile "$LINENO"; then : 39840 # It does; now see whether it defined to _BIG_ENDIAN or not. 39841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39842 /* end confdefs.h. */ 39843 #include <limits.h> 39844 39845 int 39846 main () 39847 { 39848 #ifndef _BIG_ENDIAN 39849 not big endian 39850 #endif 39851 39852 ; 39853 return 0; 39854 } 39855 _ACEOF 39856 if ac_fn_cxx_try_compile "$LINENO"; then : 39857 ac_cv_c_bigendian=yes 39858 else 39859 ac_cv_c_bigendian=no 39860 fi 39861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39862 fi 39863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39864 fi 39865 if test $ac_cv_c_bigendian = unknown; then 39866 # Compile a test program. 39867 if test "$cross_compiling" = yes; then : 39868 # Try to guess by grepping values from an object file. 39869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39870 /* end confdefs.h. */ 39871 short int ascii_mm[] = 39872 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 39873 short int ascii_ii[] = 39874 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 39875 int use_ascii (int i) { 39876 return ascii_mm[i] + ascii_ii[i]; 39877 } 39878 short int ebcdic_ii[] = 39879 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 39880 short int ebcdic_mm[] = 39881 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 39882 int use_ebcdic (int i) { 39883 return ebcdic_mm[i] + ebcdic_ii[i]; 39884 } 39885 extern int foo; 39886 39887 int 39888 main () 39889 { 39890 return use_ascii (foo) == use_ebcdic (foo); 39891 ; 39892 return 0; 39893 } 39894 _ACEOF 39895 if ac_fn_cxx_try_compile "$LINENO"; then : 39896 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 39897 ac_cv_c_bigendian=yes 39898 fi 39899 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 39900 if test "$ac_cv_c_bigendian" = unknown; then 39901 ac_cv_c_bigendian=no 39902 else 39903 # finding both strings is unlikely to happen, but who knows? 39904 ac_cv_c_bigendian=unknown 39905 fi 39906 fi 39907 fi 39908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39909 else 39910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39911 /* end confdefs.h. */ 39912 $ac_includes_default 39913 int 39914 main () 39915 { 39916 39917 /* Are we little or big endian? From Harbison&Steele. */ 39918 union 39919 { 39920 long int l; 39921 char c[sizeof (long int)]; 39922 } u; 39923 u.l = 1; 39924 return u.c[sizeof (long int) - 1] == 1; 39925 39926 ; 39927 return 0; 39928 } 39929 _ACEOF 39930 if ac_fn_cxx_try_run "$LINENO"; then : 39931 ac_cv_c_bigendian=no 39932 else 39933 ac_cv_c_bigendian=yes 39934 fi 39935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39936 conftest.$ac_objext conftest.beam conftest.$ac_ext 39937 fi 39938 39939 fi 39940 fi 39941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 39942 $as_echo "$ac_cv_c_bigendian" >&6; } 39943 case $ac_cv_c_bigendian in #( 39944 yes) 39945 ENDIAN="big";; #( 39946 no) 39947 ENDIAN="little" ;; #( 39948 universal) 39949 ENDIAN="universal_endianness" 39950 ;; #( 39951 *) 39952 ENDIAN="unknown" ;; 39953 esac 39954 39955 39956 if test "x$ENDIAN" = xuniversal_endianness; then 39957 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 39958 fi 39959 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 39960 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 39961 fi 39962 39963 39964 # Configure flags for the tools 39965 39966 ############################################################################### 39967 # 39968 # How to compile shared libraries. 39969 # 39970 39971 if test "x$TOOLCHAIN_TYPE" = xgcc; then 39972 PICFLAG="-fPIC" 39973 C_FLAG_REORDER='' 39974 CXX_FLAG_REORDER='' 39975 39976 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 39977 # Linking is different on MacOSX 39978 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 39979 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 39980 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 39981 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 39982 SET_SHARED_LIBRARY_MAPFILE='' 39983 else 39984 # Default works for linux, might work on other platforms as well. 39985 SHARED_LIBRARY_FLAGS='-shared' 39986 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 39987 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 39988 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 39989 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 39990 fi 39991 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 39992 PICFLAG="-KPIC" 39993 C_FLAG_REORDER='-xF' 39994 CXX_FLAG_REORDER='-xF' 39995 SHARED_LIBRARY_FLAGS="-G" 39996 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 39997 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 39998 SET_SHARED_LIBRARY_NAME='' 39999 SET_SHARED_LIBRARY_MAPFILE='-M$1' 40000 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40001 PICFLAG="-qpic=large" 40002 C_FLAG_REORDER='' 40003 CXX_FLAG_REORDER='' 40004 SHARED_LIBRARY_FLAGS="-qmkshrobj" 40005 SET_EXECUTABLE_ORIGIN="" 40006 SET_SHARED_LIBRARY_ORIGIN='' 40007 SET_SHARED_LIBRARY_NAME='' 40008 SET_SHARED_LIBRARY_MAPFILE='' 40009 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40010 PICFLAG="" 40011 C_FLAG_REORDER='' 40012 CXX_FLAG_REORDER='' 40013 SHARED_LIBRARY_FLAGS="-LD" 40014 SET_EXECUTABLE_ORIGIN='' 40015 SET_SHARED_LIBRARY_ORIGIN='' 40016 SET_SHARED_LIBRARY_NAME='' 40017 SET_SHARED_LIBRARY_MAPFILE='' 40018 fi 40019 40020 40021 40022 40023 40024 40025 40026 40027 40028 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40029 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 40030 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 40031 CFLAGS_JDKLIB_EXTRA='-xstrconst' 40032 fi 40033 # The (cross) compiler is now configured, we can now test capabilities 40034 # of the target platform. 40035 40036 40037 40038 ############################################################################### 40039 # 40040 # Setup the opt flags for different compilers 40041 # and different operating systems. 40042 # 40043 40044 # FIXME: this was indirectly the old default, but just inherited. 40045 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40046 # C_FLAG_DEPS="-MMD -MF" 40047 # fi 40048 40049 # Generate make dependency files 40050 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40051 C_FLAG_DEPS="-MMD -MF" 40052 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40053 C_FLAG_DEPS="-xMMD -xMF" 40054 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40055 C_FLAG_DEPS="-qmakedep=gcc -MF" 40056 fi 40057 CXX_FLAG_DEPS="$C_FLAG_DEPS" 40058 40059 40060 40061 # Debug symbols 40062 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40063 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 40064 CFLAGS_DEBUG_SYMBOLS="-g1" 40065 CXXFLAGS_DEBUG_SYMBOLS="-g1" 40066 else 40067 CFLAGS_DEBUG_SYMBOLS="-g" 40068 CXXFLAGS_DEBUG_SYMBOLS="-g" 40069 fi 40070 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40071 CFLAGS_DEBUG_SYMBOLS="-g -xs" 40072 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 40073 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40074 CFLAGS_DEBUG_SYMBOLS="-g" 40075 CXXFLAGS_DEBUG_SYMBOLS="-g" 40076 fi 40077 40078 40079 40080 # Optimization levels 40081 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40082 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xalias_level=basic -xbuiltin=%all -xdepend -xrestrict -xlibmil" 40083 40084 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 40085 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 40086 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr" 40087 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 40088 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 40089 C_O_FLAG_NONE="-xregs=no%frameptr" 40090 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 40091 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 40092 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 40093 CXX_O_FLAG_NONE="-xregs=no%frameptr" 40094 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 40095 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 40096 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 40097 fi 40098 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 40099 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 40100 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 40101 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 40102 C_O_FLAG_NONE="" 40103 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 40104 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 40105 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 40106 CXX_O_FLAG_NONE="" 40107 fi 40108 else 40109 # The remaining toolchains share opt flags between CC and CXX; 40110 # setup for C and duplicate afterwards. 40111 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40112 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40113 # On MacOSX we optimize for size, something 40114 # we should do for all platforms? 40115 C_O_FLAG_HIGHEST="-Os" 40116 C_O_FLAG_HI="-Os" 40117 C_O_FLAG_NORM="-Os" 40118 C_O_FLAG_NONE="" 40119 else 40120 C_O_FLAG_HIGHEST="-O3" 40121 C_O_FLAG_HI="-O3" 40122 C_O_FLAG_NORM="-O2" 40123 C_O_FLAG_NONE="-O0" 40124 fi 40125 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40126 C_O_FLAG_HIGHEST="-O3" 40127 C_O_FLAG_HI="-O3 -qstrict" 40128 C_O_FLAG_NORM="-O2" 40129 C_O_FLAG_NONE="" 40130 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40131 C_O_FLAG_HIGHEST="-O2" 40132 C_O_FLAG_HI="-O1" 40133 C_O_FLAG_NORM="-O1" 40134 C_O_FLAG_NONE="-Od" 40135 fi 40136 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 40137 CXX_O_FLAG_HI="$C_O_FLAG_HI" 40138 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 40139 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 40140 fi 40141 40142 40143 40144 40145 40146 40147 40148 40149 40150 40151 40152 # Special extras... 40153 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40154 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 40155 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 40156 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 40157 fi 40158 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40159 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 40160 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 40161 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 40162 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 40163 CXXSTD_CXXFLAG="-std=gnu++98" 40164 40165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 40166 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 40167 supports=yes 40168 40169 saved_cxxflags="$CXXFLAGS" 40170 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 40171 ac_ext=cpp 40172 ac_cpp='$CXXCPP $CPPFLAGS' 40173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40176 40177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40178 /* end confdefs.h. */ 40179 int i; 40180 _ACEOF 40181 if ac_fn_cxx_try_compile "$LINENO"; then : 40182 40183 else 40184 supports=no 40185 fi 40186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40187 ac_ext=cpp 40188 ac_cpp='$CXXCPP $CPPFLAGS' 40189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40192 40193 CXXFLAGS="$saved_cxxflags" 40194 40195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40196 $as_echo "$supports" >&6; } 40197 if test "x$supports" = "xyes" ; then 40198 : 40199 else 40200 CXXSTD_CXXFLAG="" 40201 fi 40202 40203 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 40204 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 40205 40206 fi 40207 40208 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 40209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 40210 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 40211 fi 40212 40213 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 40214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 40215 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 40216 fi 40217 40218 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 40219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 40220 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 40221 fi 40222 40223 40224 # Check whether --with-extra-cflags was given. 40225 if test "${with_extra_cflags+set}" = set; then : 40226 withval=$with_extra_cflags; 40227 fi 40228 40229 40230 40231 # Check whether --with-extra-cxxflags was given. 40232 if test "${with_extra_cxxflags+set}" = set; then : 40233 withval=$with_extra_cxxflags; 40234 fi 40235 40236 40237 40238 # Check whether --with-extra-ldflags was given. 40239 if test "${with_extra_ldflags+set}" = set; then : 40240 withval=$with_extra_ldflags; 40241 fi 40242 40243 40244 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 40245 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 40246 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 40247 40248 # Hotspot needs these set in their legacy form 40249 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 40250 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 40251 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 40252 40253 40254 40255 40256 40257 ############################################################################### 40258 # 40259 # Now setup the CFLAGS and LDFLAGS for the JDK build. 40260 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 40261 # 40262 40263 # Setup compiler/platform specific flags to CFLAGS_JDK, 40264 # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?) 40265 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40266 # these options are used for both C and C++ compiles 40267 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 40268 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 40269 case $OPENJDK_TARGET_CPU_ARCH in 40270 arm ) 40271 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 40272 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 40273 ;; 40274 ppc ) 40275 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 40276 ;; 40277 * ) 40278 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 40279 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 40280 ;; 40281 esac 40282 40283 REFERENCE_VERSION=6 40284 40285 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 40286 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 40287 fi 40288 40289 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 40290 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only parts < 99999 is supported" "$LINENO" 5 40291 fi 40292 40293 # Version comparison method inspired by http://stackoverflow.com/a/24067243 40294 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 40295 40296 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 40297 40298 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 40299 # runs afoul of the more aggressive versions of these optimisations. 40300 # Notably, value range propagation now assumes that the this pointer of C++ 40301 # member functions is non-null. 40302 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 40303 40304 40305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 40306 $as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 40307 supports=yes 40308 40309 saved_cflags="$CFLAGS" 40310 CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 40311 ac_ext=c 40312 ac_cpp='$CPP $CPPFLAGS' 40313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40315 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40316 40317 40318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40319 /* end confdefs.h. */ 40320 int i; 40321 _ACEOF 40322 if ac_fn_c_try_compile "$LINENO"; then : 40323 40324 else 40325 supports=no 40326 fi 40327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40328 ac_ext=cpp 40329 ac_cpp='$CXXCPP $CPPFLAGS' 40330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40333 40334 CFLAGS="$saved_cflags" 40335 40336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40337 $as_echo "$supports" >&6; } 40338 if test "x$supports" = "xyes" ; then 40339 C_COMP_SUPPORTS="yes" 40340 else 40341 C_COMP_SUPPORTS="no" 40342 fi 40343 40344 40345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 40346 $as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 40347 supports=yes 40348 40349 saved_cxxflags="$CXXFLAGS" 40350 CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 40351 ac_ext=cpp 40352 ac_cpp='$CXXCPP $CPPFLAGS' 40353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40356 40357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40358 /* end confdefs.h. */ 40359 int i; 40360 _ACEOF 40361 if ac_fn_cxx_try_compile "$LINENO"; then : 40362 40363 else 40364 supports=no 40365 fi 40366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40367 ac_ext=cpp 40368 ac_cpp='$CXXCPP $CPPFLAGS' 40369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40372 40373 CXXFLAGS="$saved_cxxflags" 40374 40375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40376 $as_echo "$supports" >&6; } 40377 if test "x$supports" = "xyes" ; then 40378 CXX_COMP_SUPPORTS="yes" 40379 else 40380 CXX_COMP_SUPPORTS="no" 40381 fi 40382 40383 40384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 40385 $as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 40386 supports=no 40387 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 40388 40389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40390 $as_echo "$supports" >&6; } 40391 if test "x$supports" = "xyes" ; then 40392 : 40393 else 40394 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="" 40395 fi 40396 40397 40398 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 40399 40400 40401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 40402 $as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 40403 supports=yes 40404 40405 saved_cflags="$CFLAGS" 40406 CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror" 40407 ac_ext=c 40408 ac_cpp='$CPP $CPPFLAGS' 40409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40411 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40412 40413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40414 /* end confdefs.h. */ 40415 int i; 40416 _ACEOF 40417 if ac_fn_c_try_compile "$LINENO"; then : 40418 40419 else 40420 supports=no 40421 fi 40422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40423 ac_ext=cpp 40424 ac_cpp='$CXXCPP $CPPFLAGS' 40425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40428 40429 CFLAGS="$saved_cflags" 40430 40431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40432 $as_echo "$supports" >&6; } 40433 if test "x$supports" = "xyes" ; then 40434 C_COMP_SUPPORTS="yes" 40435 else 40436 C_COMP_SUPPORTS="no" 40437 fi 40438 40439 40440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 40441 $as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 40442 supports=yes 40443 40444 saved_cxxflags="$CXXFLAGS" 40445 CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror" 40446 ac_ext=cpp 40447 ac_cpp='$CXXCPP $CPPFLAGS' 40448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40451 40452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40453 /* end confdefs.h. */ 40454 int i; 40455 _ACEOF 40456 if ac_fn_cxx_try_compile "$LINENO"; then : 40457 40458 else 40459 supports=no 40460 fi 40461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40462 ac_ext=cpp 40463 ac_cpp='$CXXCPP $CPPFLAGS' 40464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40467 40468 CXXFLAGS="$saved_cxxflags" 40469 40470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40471 $as_echo "$supports" >&6; } 40472 if test "x$supports" = "xyes" ; then 40473 CXX_COMP_SUPPORTS="yes" 40474 else 40475 CXX_COMP_SUPPORTS="no" 40476 fi 40477 40478 40479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 40480 $as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 40481 supports=no 40482 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 40483 40484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40485 $as_echo "$supports" >&6; } 40486 if test "x$supports" = "xyes" ; then 40487 : 40488 else 40489 NO_LIFETIME_DSE_CFLAG="" 40490 fi 40491 40492 CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 40493 40494 40495 40496 else 40497 : 40498 fi 40499 40500 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40501 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 40502 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 40503 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 40504 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 40505 fi 40506 40507 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 40508 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 40509 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40510 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 40511 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 40512 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40513 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 40514 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 40515 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 40516 -DWIN32 -DIAL" 40517 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 40518 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 40519 else 40520 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 40521 fi 40522 fi 40523 40524 ############################################################################### 40525 40526 # Adjust flags according to debug level. 40527 case $DEBUG_LEVEL in 40528 fastdebug ) 40529 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 40530 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 40531 C_O_FLAG_HI="$C_O_FLAG_NORM" 40532 C_O_FLAG_NORM="$C_O_FLAG_NORM" 40533 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 40534 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM" 40535 JAVAC_FLAGS="$JAVAC_FLAGS -g" 40536 ;; 40537 slowdebug ) 40538 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 40539 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 40540 C_O_FLAG_HI="$C_O_FLAG_NONE" 40541 C_O_FLAG_NORM="$C_O_FLAG_NONE" 40542 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 40543 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 40544 JAVAC_FLAGS="$JAVAC_FLAGS -g" 40545 ;; 40546 esac 40547 40548 # Setup LP64 40549 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 40550 40551 # Set some common defines. These works for all compilers, but assume 40552 # -D is universally accepted. 40553 40554 # Setup endianness 40555 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 40556 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 40557 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 40558 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 40559 # Note: -Dmacro is the same as #define macro 1 40560 # -Dmacro= is the same as #define macro 40561 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40562 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 40563 else 40564 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 40565 fi 40566 else 40567 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 40568 # are defined in the system? 40569 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40570 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN=" 40571 else 40572 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 40573 fi 40574 fi 40575 40576 # Setup target OS define. Use OS target name but in upper case. 40577 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 40578 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 40579 40580 # Setup target CPU 40581 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 40582 40583 # Setup debug/release defines 40584 if test "x$DEBUG_LEVEL" = xrelease; then 40585 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 40586 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40587 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 40588 fi 40589 else 40590 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 40591 fi 40592 40593 # Setup release name 40594 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 40595 40596 40597 # Set some additional per-OS defines. 40598 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40599 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 40600 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40601 # FIXME: PPC64 should not be here. 40602 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DPPC64" 40603 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 40604 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 40605 fi 40606 40607 # Additional macosx handling 40608 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40609 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40610 # FIXME: This needs to be exported in spec.gmk due to closed legacy code. 40611 # FIXME: clean this up, and/or move it elsewhere. 40612 40613 # Setting these parameters makes it an error to link to macosx APIs that are 40614 # newer than the given OS version and makes the linked binaries compatible 40615 # even if built on a newer version of the OS. 40616 # The expected format is X.Y.Z 40617 MACOSX_VERSION_MIN=10.7.0 40618 40619 40620 # The macro takes the version with no dots, ex: 1070 40621 # Let the flags variables get resolved in make for easier override on make 40622 # command line. 40623 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 40624 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 40625 fi 40626 fi 40627 40628 # Setup some hard coded includes 40629 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 40630 -I${JDK_OUTPUTDIR}/include \ 40631 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 40632 -I${JDK_TOPDIR}/src/share/javavm/export \ 40633 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 40634 -I${JDK_TOPDIR}/src/share/native/common \ 40635 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 40636 40637 # The shared libraries are compiled using the picflag. 40638 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 40639 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 40640 40641 # Executable flags 40642 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 40643 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 40644 40645 40646 40647 40648 40649 40650 # Setup LDFLAGS et al. 40651 # 40652 # Now this is odd. The JDK native libraries have to link against libjvm.so 40653 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 40654 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 40655 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 40656 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 40657 # libraries will link to whatever is in memory. Yuck. 40658 # 40659 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 40660 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40661 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 40662 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 40663 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 40664 fi 40665 # TODO: make -debug optional "--disable-full-debug-symbols" 40666 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 40667 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 40668 LDFLAGS_JDKLIB_SUFFIX="" 40669 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 40670 LDFLAGS_STACK_SIZE=1048576 40671 else 40672 LDFLAGS_STACK_SIZE=327680 40673 fi 40674 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 40675 else 40676 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40677 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40678 # We have previously set HAS_GNU_HASH if this is the case 40679 if test -n "$HAS_GNU_HASH"; then 40680 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 40681 fi 40682 if test "x$OPENJDK_TARGET_OS" = xlinux; then 40683 # And since we now know that the linker is gnu, then add -z defs, to forbid 40684 # undefined symbols in object files. 40685 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 40686 if test "x$DEBUG_LEVEL" = "xrelease"; then 40687 # When building release libraries, tell the linker optimize them. 40688 # Should this be supplied to the OSS linker as well? 40689 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 40690 fi 40691 fi 40692 fi 40693 40694 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40695 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 40696 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 40697 fi 40698 40699 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 40700 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 40701 40702 # On some platforms (mac) the linker warns about non existing -L dirs. 40703 # Add server first if available. Linking aginst client does not always produce the same results. 40704 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 40705 # Default to server for other variants. 40706 if test "x$JVM_VARIANT_SERVER" = xtrue; then 40707 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 40708 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 40709 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 40710 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 40711 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 40712 else 40713 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 40714 fi 40715 40716 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 40717 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40718 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 40719 fi 40720 40721 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 40722 if test "x$OPENJDK_TARGET_OS" = xlinux; then 40723 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 40724 fi 40725 fi 40726 40727 40728 40729 40730 40731 40732 40733 # Some Zero and Shark settings. 40734 # ZERO_ARCHFLAG tells the compiler which mode to build for 40735 case "${OPENJDK_TARGET_CPU}" in 40736 s390) 40737 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 40738 ;; 40739 *) 40740 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40741 esac 40742 40743 40744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 40745 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 40746 supports=yes 40747 40748 saved_cflags="$CFLAGS" 40749 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 40750 ac_ext=c 40751 ac_cpp='$CPP $CPPFLAGS' 40752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40754 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40755 40756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40757 /* end confdefs.h. */ 40758 int i; 40759 _ACEOF 40760 if ac_fn_c_try_compile "$LINENO"; then : 40761 40762 else 40763 supports=no 40764 fi 40765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40766 ac_ext=cpp 40767 ac_cpp='$CXXCPP $CPPFLAGS' 40768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40771 40772 CFLAGS="$saved_cflags" 40773 40774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40775 $as_echo "$supports" >&6; } 40776 if test "x$supports" = "xyes" ; then 40777 C_COMP_SUPPORTS="yes" 40778 else 40779 C_COMP_SUPPORTS="no" 40780 fi 40781 40782 40783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 40784 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 40785 supports=yes 40786 40787 saved_cxxflags="$CXXFLAGS" 40788 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 40789 ac_ext=cpp 40790 ac_cpp='$CXXCPP $CPPFLAGS' 40791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40794 40795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40796 /* end confdefs.h. */ 40797 int i; 40798 _ACEOF 40799 if ac_fn_cxx_try_compile "$LINENO"; then : 40800 40801 else 40802 supports=no 40803 fi 40804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40805 ac_ext=cpp 40806 ac_cpp='$CXXCPP $CPPFLAGS' 40807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40810 40811 CXXFLAGS="$saved_cxxflags" 40812 40813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40814 $as_echo "$supports" >&6; } 40815 if test "x$supports" = "xyes" ; then 40816 CXX_COMP_SUPPORTS="yes" 40817 else 40818 CXX_COMP_SUPPORTS="no" 40819 fi 40820 40821 40822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 40823 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 40824 supports=no 40825 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 40826 40827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40828 $as_echo "$supports" >&6; } 40829 if test "x$supports" = "xyes" ; then 40830 : 40831 else 40832 ZERO_ARCHFLAG="" 40833 fi 40834 40835 40836 40837 # Check that the compiler supports -mX (or -qX on AIX) flags 40838 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 40839 40840 40841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 40842 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 40843 supports=yes 40844 40845 saved_cflags="$CFLAGS" 40846 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40847 ac_ext=c 40848 ac_cpp='$CPP $CPPFLAGS' 40849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40851 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40852 40853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40854 /* end confdefs.h. */ 40855 int i; 40856 _ACEOF 40857 if ac_fn_c_try_compile "$LINENO"; then : 40858 40859 else 40860 supports=no 40861 fi 40862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40863 ac_ext=cpp 40864 ac_cpp='$CXXCPP $CPPFLAGS' 40865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40868 40869 CFLAGS="$saved_cflags" 40870 40871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40872 $as_echo "$supports" >&6; } 40873 if test "x$supports" = "xyes" ; then 40874 C_COMP_SUPPORTS="yes" 40875 else 40876 C_COMP_SUPPORTS="no" 40877 fi 40878 40879 40880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 40881 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 40882 supports=yes 40883 40884 saved_cxxflags="$CXXFLAGS" 40885 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40886 ac_ext=cpp 40887 ac_cpp='$CXXCPP $CPPFLAGS' 40888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40891 40892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40893 /* end confdefs.h. */ 40894 int i; 40895 _ACEOF 40896 if ac_fn_cxx_try_compile "$LINENO"; then : 40897 40898 else 40899 supports=no 40900 fi 40901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40902 ac_ext=cpp 40903 ac_cpp='$CXXCPP $CPPFLAGS' 40904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40907 40908 CXXFLAGS="$saved_cxxflags" 40909 40910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40911 $as_echo "$supports" >&6; } 40912 if test "x$supports" = "xyes" ; then 40913 CXX_COMP_SUPPORTS="yes" 40914 else 40915 CXX_COMP_SUPPORTS="no" 40916 fi 40917 40918 40919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 40920 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 40921 supports=no 40922 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 40923 40924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40925 $as_echo "$supports" >&6; } 40926 if test "x$supports" = "xyes" ; then 40927 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 40928 else 40929 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 40930 fi 40931 40932 40933 40934 40935 # Setup debug symbols (need objcopy from the toolchain for that) 40936 40937 # 40938 # ENABLE_DEBUG_SYMBOLS 40939 # This must be done after the toolchain is setup, since we're looking at objcopy. 40940 # 40941 # Check whether --enable-debug-symbols was given. 40942 if test "${enable_debug_symbols+set}" = set; then : 40943 enableval=$enable_debug_symbols; 40944 fi 40945 40946 40947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 40948 $as_echo_n "checking if we should generate debug symbols... " >&6; } 40949 40950 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 40951 # explicit enabling of enable-debug-symbols and can't find objcopy 40952 # this is an error 40953 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 40954 fi 40955 40956 if test "x$enable_debug_symbols" = "xyes"; then 40957 ENABLE_DEBUG_SYMBOLS=true 40958 elif test "x$enable_debug_symbols" = "xno"; then 40959 ENABLE_DEBUG_SYMBOLS=false 40960 else 40961 # Default is on if objcopy is found 40962 if test "x$OBJCOPY" != x; then 40963 ENABLE_DEBUG_SYMBOLS=true 40964 # MacOS X and Windows don't use objcopy but default is on for those OSes 40965 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 40966 ENABLE_DEBUG_SYMBOLS=true 40967 else 40968 ENABLE_DEBUG_SYMBOLS=false 40969 fi 40970 fi 40971 40972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 40973 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 40974 40975 # 40976 # ZIP_DEBUGINFO_FILES 40977 # 40978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 40979 $as_echo_n "checking if we should zip debug-info files... " >&6; } 40980 # Check whether --enable-zip-debug-info was given. 40981 if test "${enable_zip_debug_info+set}" = set; then : 40982 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 40983 else 40984 enable_zip_debug_info="yes" 40985 fi 40986 40987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 40988 $as_echo "${enable_zip_debug_info}" >&6; } 40989 40990 if test "x${enable_zip_debug_info}" = "xno"; then 40991 ZIP_DEBUGINFO_FILES=false 40992 else 40993 ZIP_DEBUGINFO_FILES=true 40994 fi 40995 40996 40997 40998 40999 41000 ############################################################################### 41001 # 41002 # Check dependencies for external and internal libraries. 41003 # 41004 ############################################################################### 41005 41006 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 41007 41008 # When using cygwin or msys, we need a wrapper binary that renames 41009 # /cygdrive/c/ arguments into c:/ arguments and peeks into 41010 # @files and rewrites these too! This wrapper binary is 41011 # called fixpath. 41012 FIXPATH= 41013 if test "x$OPENJDK_BUILD_OS" = xwindows; then 41014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 41015 $as_echo_n "checking if fixpath can be created... " >&6; } 41016 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 41017 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 41018 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 41019 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 41020 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 41021 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 41022 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 41023 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 41024 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 41025 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 41026 41027 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 41028 # @ was chosen as separator to minimize risk of other tools messing around with it 41029 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 41030 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 41031 41032 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 41033 fi 41034 rm -f $OUTPUT_ROOT/fixpath* 41035 cd $OUTPUT_ROOT 41036 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 41037 cd $CURDIR 41038 41039 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 41040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41041 $as_echo "no" >&6; } 41042 cat $OUTPUT_ROOT/fixpath1.log 41043 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 41044 fi 41045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41046 $as_echo "yes" >&6; } 41047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 41048 $as_echo_n "checking if fixpath.exe works... " >&6; } 41049 cd $OUTPUT_ROOT 41050 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 41051 cd $CURDIR 41052 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 41053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41054 $as_echo "no" >&6; } 41055 cat $OUTPUT_ROOT/fixpath2.log 41056 as_fn_error $? "fixpath did not work!" "$LINENO" 5 41057 fi 41058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41059 $as_echo "yes" >&6; } 41060 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 41061 fi 41062 41063 41064 41065 41066 41067 41068 ############################################################################### 41069 # 41070 # OS specific settings that we never will need to probe. 41071 # 41072 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 41074 $as_echo_n "checking what is not needed on Linux?... " >&6; } 41075 PULSE_NOT_NEEDED=yes 41076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 41077 $as_echo "pulse" >&6; } 41078 fi 41079 41080 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 41082 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 41083 ALSA_NOT_NEEDED=yes 41084 PULSE_NOT_NEEDED=yes 41085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 41086 $as_echo "alsa pulse" >&6; } 41087 fi 41088 41089 if test "x$OPENJDK_TARGET_OS" = xaix; then 41090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 41091 $as_echo_n "checking what is not needed on AIX?... " >&6; } 41092 ALSA_NOT_NEEDED=yes 41093 PULSE_NOT_NEEDED=yes 41094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 41095 $as_echo "alsa pulse" >&6; } 41096 fi 41097 41098 41099 if test "x$OPENJDK_TARGET_OS" = xwindows; then 41100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 41101 $as_echo_n "checking what is not needed on Windows?... " >&6; } 41102 CUPS_NOT_NEEDED=yes 41103 ALSA_NOT_NEEDED=yes 41104 PULSE_NOT_NEEDED=yes 41105 X11_NOT_NEEDED=yes 41106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 41107 $as_echo "alsa cups pulse x11" >&6; } 41108 fi 41109 41110 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 41112 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 41113 ALSA_NOT_NEEDED=yes 41114 PULSE_NOT_NEEDED=yes 41115 X11_NOT_NEEDED=yes 41116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 41117 $as_echo "alsa pulse x11" >&6; } 41118 fi 41119 41120 if test "x$OPENJDK_TARGET_OS" = xbsd; then 41121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 41122 $as_echo_n "checking what is not needed on bsd?... " >&6; } 41123 ALSA_NOT_NEEDED=yes 41124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 41125 $as_echo "alsa" >&6; } 41126 fi 41127 41128 if test "x$OPENJDK" = "xfalse"; then 41129 FREETYPE_NOT_NEEDED=yes 41130 fi 41131 41132 if test "x$SUPPORT_HEADFUL" = xno; then 41133 X11_NOT_NEEDED=yes 41134 fi 41135 41136 # Deprecated and now ignored 41137 41138 # Check whether --enable-macosx-runtime-support was given. 41139 if test "${enable_macosx_runtime_support+set}" = set; then : 41140 enableval=$enable_macosx_runtime_support; 41141 fi 41142 41143 if test "x$enable_macosx_runtime_support" != x; then 41144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5 41145 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;} 41146 fi 41147 41148 41149 41150 41151 ############################################################################### 41152 # 41153 # Check for X Windows 41154 # 41155 41156 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 41157 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 41158 # --x-libraries for the sysroot, if that seems to be correct. 41159 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 41160 if test "x$SYSROOT" != "x"; then 41161 if test "x$x_includes" = xNONE; then 41162 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 41163 x_includes="$SYSROOT/usr/X11R6/include" 41164 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 41165 x_includes="$SYSROOT/usr/include" 41166 fi 41167 fi 41168 if test "x$x_libraries" = xNONE; then 41169 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 41170 x_libraries="$SYSROOT/usr/X11R6/lib" 41171 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 41172 x_libraries="$SYSROOT/usr/lib64" 41173 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 41174 x_libraries="$SYSROOT/usr/lib" 41175 fi 41176 fi 41177 fi 41178 fi 41179 41180 # Now let autoconf do it's magic 41181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 41182 $as_echo_n "checking for X... " >&6; } 41183 41184 41185 # Check whether --with-x was given. 41186 if test "${with_x+set}" = set; then : 41187 withval=$with_x; 41188 fi 41189 41190 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 41191 if test "x$with_x" = xno; then 41192 # The user explicitly disabled X. 41193 have_x=disabled 41194 else 41195 case $x_includes,$x_libraries in #( 41196 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 41197 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 41198 $as_echo_n "(cached) " >&6 41199 else 41200 # One or both of the vars are not set, and there is no cached value. 41201 ac_x_includes=no ac_x_libraries=no 41202 rm -f -r conftest.dir 41203 if mkdir conftest.dir; then 41204 cd conftest.dir 41205 cat >Imakefile <<'_ACEOF' 41206 incroot: 41207 @echo incroot='${INCROOT}' 41208 usrlibdir: 41209 @echo usrlibdir='${USRLIBDIR}' 41210 libdir: 41211 @echo libdir='${LIBDIR}' 41212 _ACEOF 41213 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 41214 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 41215 for ac_var in incroot usrlibdir libdir; do 41216 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 41217 done 41218 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 41219 for ac_extension in a so sl dylib la dll; do 41220 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 41221 test -f "$ac_im_libdir/libX11.$ac_extension"; then 41222 ac_im_usrlibdir=$ac_im_libdir; break 41223 fi 41224 done 41225 # Screen out bogus values from the imake configuration. They are 41226 # bogus both because they are the default anyway, and because 41227 # using them would break gcc on systems where it needs fixed includes. 41228 case $ac_im_incroot in 41229 /usr/include) ac_x_includes= ;; 41230 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 41231 esac 41232 case $ac_im_usrlibdir in 41233 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 41234 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 41235 esac 41236 fi 41237 cd .. 41238 rm -f -r conftest.dir 41239 fi 41240 41241 # Standard set of common directories for X headers. 41242 # Check X11 before X11Rn because it is often a symlink to the current release. 41243 ac_x_header_dirs=' 41244 /usr/X11/include 41245 /usr/X11R7/include 41246 /usr/X11R6/include 41247 /usr/X11R5/include 41248 /usr/X11R4/include 41249 41250 /usr/include/X11 41251 /usr/include/X11R7 41252 /usr/include/X11R6 41253 /usr/include/X11R5 41254 /usr/include/X11R4 41255 41256 /usr/local/X11/include 41257 /usr/local/X11R7/include 41258 /usr/local/X11R6/include 41259 /usr/local/X11R5/include 41260 /usr/local/X11R4/include 41261 41262 /usr/local/include/X11 41263 /usr/local/include/X11R7 41264 /usr/local/include/X11R6 41265 /usr/local/include/X11R5 41266 /usr/local/include/X11R4 41267 41268 /usr/X386/include 41269 /usr/x386/include 41270 /usr/XFree86/include/X11 41271 41272 /usr/include 41273 /usr/local/include 41274 /usr/unsupported/include 41275 /usr/athena/include 41276 /usr/local/x11r5/include 41277 /usr/lpp/Xamples/include 41278 41279 /usr/openwin/include 41280 /usr/openwin/share/include' 41281 41282 if test "$ac_x_includes" = no; then 41283 # Guess where to find include files, by looking for Xlib.h. 41284 # First, try using that file with no special directory specified. 41285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41286 /* end confdefs.h. */ 41287 #include <X11/Xlib.h> 41288 _ACEOF 41289 if ac_fn_cxx_try_cpp "$LINENO"; then : 41290 # We can compile using X headers with no special include directory. 41291 ac_x_includes= 41292 else 41293 for ac_dir in $ac_x_header_dirs; do 41294 if test -r "$ac_dir/X11/Xlib.h"; then 41295 ac_x_includes=$ac_dir 41296 break 41297 fi 41298 done 41299 fi 41300 rm -f conftest.err conftest.i conftest.$ac_ext 41301 fi # $ac_x_includes = no 41302 41303 if test "$ac_x_libraries" = no; then 41304 # Check for the libraries. 41305 # See if we find them without any special options. 41306 # Don't add to $LIBS permanently. 41307 ac_save_LIBS=$LIBS 41308 LIBS="-lX11 $LIBS" 41309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41310 /* end confdefs.h. */ 41311 #include <X11/Xlib.h> 41312 int 41313 main () 41314 { 41315 XrmInitialize () 41316 ; 41317 return 0; 41318 } 41319 _ACEOF 41320 if ac_fn_cxx_try_link "$LINENO"; then : 41321 LIBS=$ac_save_LIBS 41322 # We can link X programs with no special library path. 41323 ac_x_libraries= 41324 else 41325 LIBS=$ac_save_LIBS 41326 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 41327 do 41328 # Don't even attempt the hair of trying to link an X program! 41329 for ac_extension in a so sl dylib la dll; do 41330 if test -r "$ac_dir/libX11.$ac_extension"; then 41331 ac_x_libraries=$ac_dir 41332 break 2 41333 fi 41334 done 41335 done 41336 fi 41337 rm -f core conftest.err conftest.$ac_objext \ 41338 conftest$ac_exeext conftest.$ac_ext 41339 fi # $ac_x_libraries = no 41340 41341 case $ac_x_includes,$ac_x_libraries in #( 41342 no,* | *,no | *\'*) 41343 # Didn't find X, or a directory has "'" in its name. 41344 ac_cv_have_x="have_x=no";; #( 41345 *) 41346 # Record where we found X for the cache. 41347 ac_cv_have_x="have_x=yes\ 41348 ac_x_includes='$ac_x_includes'\ 41349 ac_x_libraries='$ac_x_libraries'" 41350 esac 41351 fi 41352 ;; #( 41353 *) have_x=yes;; 41354 esac 41355 eval "$ac_cv_have_x" 41356 fi # $with_x != no 41357 41358 if test "$have_x" != yes; then 41359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 41360 $as_echo "$have_x" >&6; } 41361 no_x=yes 41362 else 41363 # If each of the values was on the command line, it overrides each guess. 41364 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 41365 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 41366 # Update the cache value to reflect the command line values. 41367 ac_cv_have_x="have_x=yes\ 41368 ac_x_includes='$x_includes'\ 41369 ac_x_libraries='$x_libraries'" 41370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 41371 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 41372 fi 41373 41374 if test "$no_x" = yes; then 41375 # Not all programs may use this symbol, but it does not hurt to define it. 41376 41377 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 41378 41379 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 41380 else 41381 if test -n "$x_includes"; then 41382 X_CFLAGS="$X_CFLAGS -I$x_includes" 41383 fi 41384 41385 # It would also be nice to do this for all -L options, not just this one. 41386 if test -n "$x_libraries"; then 41387 X_LIBS="$X_LIBS -L$x_libraries" 41388 # For Solaris; some versions of Sun CC require a space after -R and 41389 # others require no space. Words are not sufficient . . . . 41390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 41391 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 41392 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 41393 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 41394 ac_cxx_werror_flag=yes 41395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41396 /* end confdefs.h. */ 41397 41398 int 41399 main () 41400 { 41401 41402 ; 41403 return 0; 41404 } 41405 _ACEOF 41406 if ac_fn_cxx_try_link "$LINENO"; then : 41407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41408 $as_echo "no" >&6; } 41409 X_LIBS="$X_LIBS -R$x_libraries" 41410 else 41411 LIBS="$ac_xsave_LIBS -R $x_libraries" 41412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41413 /* end confdefs.h. */ 41414 41415 int 41416 main () 41417 { 41418 41419 ; 41420 return 0; 41421 } 41422 _ACEOF 41423 if ac_fn_cxx_try_link "$LINENO"; then : 41424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41425 $as_echo "yes" >&6; } 41426 X_LIBS="$X_LIBS -R $x_libraries" 41427 else 41428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 41429 $as_echo "neither works" >&6; } 41430 fi 41431 rm -f core conftest.err conftest.$ac_objext \ 41432 conftest$ac_exeext conftest.$ac_ext 41433 fi 41434 rm -f core conftest.err conftest.$ac_objext \ 41435 conftest$ac_exeext conftest.$ac_ext 41436 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 41437 LIBS=$ac_xsave_LIBS 41438 fi 41439 41440 # Check for system-dependent libraries X programs must link with. 41441 # Do this before checking for the system-independent R6 libraries 41442 # (-lICE), since we may need -lsocket or whatever for X linking. 41443 41444 if test "$ISC" = yes; then 41445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 41446 else 41447 # Martyn Johnson says this is needed for Ultrix, if the X 41448 # libraries were built with DECnet support. And Karl Berry says 41449 # the Alpha needs dnet_stub (dnet does not exist). 41450 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 41451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41452 /* end confdefs.h. */ 41453 41454 /* Override any GCC internal prototype to avoid an error. 41455 Use char because int might match the return type of a GCC 41456 builtin and then its argument prototype would still apply. */ 41457 #ifdef __cplusplus 41458 extern "C" 41459 #endif 41460 char XOpenDisplay (); 41461 int 41462 main () 41463 { 41464 return XOpenDisplay (); 41465 ; 41466 return 0; 41467 } 41468 _ACEOF 41469 if ac_fn_cxx_try_link "$LINENO"; then : 41470 41471 else 41472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 41473 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 41474 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 41475 $as_echo_n "(cached) " >&6 41476 else 41477 ac_check_lib_save_LIBS=$LIBS 41478 LIBS="-ldnet $LIBS" 41479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41480 /* end confdefs.h. */ 41481 41482 /* Override any GCC internal prototype to avoid an error. 41483 Use char because int might match the return type of a GCC 41484 builtin and then its argument prototype would still apply. */ 41485 #ifdef __cplusplus 41486 extern "C" 41487 #endif 41488 char dnet_ntoa (); 41489 int 41490 main () 41491 { 41492 return dnet_ntoa (); 41493 ; 41494 return 0; 41495 } 41496 _ACEOF 41497 if ac_fn_cxx_try_link "$LINENO"; then : 41498 ac_cv_lib_dnet_dnet_ntoa=yes 41499 else 41500 ac_cv_lib_dnet_dnet_ntoa=no 41501 fi 41502 rm -f core conftest.err conftest.$ac_objext \ 41503 conftest$ac_exeext conftest.$ac_ext 41504 LIBS=$ac_check_lib_save_LIBS 41505 fi 41506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 41507 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 41508 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 41509 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 41510 fi 41511 41512 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 41513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 41514 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 41515 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 41516 $as_echo_n "(cached) " >&6 41517 else 41518 ac_check_lib_save_LIBS=$LIBS 41519 LIBS="-ldnet_stub $LIBS" 41520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41521 /* end confdefs.h. */ 41522 41523 /* Override any GCC internal prototype to avoid an error. 41524 Use char because int might match the return type of a GCC 41525 builtin and then its argument prototype would still apply. */ 41526 #ifdef __cplusplus 41527 extern "C" 41528 #endif 41529 char dnet_ntoa (); 41530 int 41531 main () 41532 { 41533 return dnet_ntoa (); 41534 ; 41535 return 0; 41536 } 41537 _ACEOF 41538 if ac_fn_cxx_try_link "$LINENO"; then : 41539 ac_cv_lib_dnet_stub_dnet_ntoa=yes 41540 else 41541 ac_cv_lib_dnet_stub_dnet_ntoa=no 41542 fi 41543 rm -f core conftest.err conftest.$ac_objext \ 41544 conftest$ac_exeext conftest.$ac_ext 41545 LIBS=$ac_check_lib_save_LIBS 41546 fi 41547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 41548 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 41549 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 41550 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 41551 fi 41552 41553 fi 41554 fi 41555 rm -f core conftest.err conftest.$ac_objext \ 41556 conftest$ac_exeext conftest.$ac_ext 41557 LIBS="$ac_xsave_LIBS" 41558 41559 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 41560 # to get the SysV transport functions. 41561 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 41562 # needs -lnsl. 41563 # The nsl library prevents programs from opening the X display 41564 # on Irix 5.2, according to T.E. Dickey. 41565 # The functions gethostbyname, getservbyname, and inet_addr are 41566 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 41567 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 41568 if test "x$ac_cv_func_gethostbyname" = xyes; then : 41569 41570 fi 41571 41572 if test $ac_cv_func_gethostbyname = no; then 41573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 41574 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 41575 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 41576 $as_echo_n "(cached) " >&6 41577 else 41578 ac_check_lib_save_LIBS=$LIBS 41579 LIBS="-lnsl $LIBS" 41580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41581 /* end confdefs.h. */ 41582 41583 /* Override any GCC internal prototype to avoid an error. 41584 Use char because int might match the return type of a GCC 41585 builtin and then its argument prototype would still apply. */ 41586 #ifdef __cplusplus 41587 extern "C" 41588 #endif 41589 char gethostbyname (); 41590 int 41591 main () 41592 { 41593 return gethostbyname (); 41594 ; 41595 return 0; 41596 } 41597 _ACEOF 41598 if ac_fn_cxx_try_link "$LINENO"; then : 41599 ac_cv_lib_nsl_gethostbyname=yes 41600 else 41601 ac_cv_lib_nsl_gethostbyname=no 41602 fi 41603 rm -f core conftest.err conftest.$ac_objext \ 41604 conftest$ac_exeext conftest.$ac_ext 41605 LIBS=$ac_check_lib_save_LIBS 41606 fi 41607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 41608 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 41609 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 41610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 41611 fi 41612 41613 if test $ac_cv_lib_nsl_gethostbyname = no; then 41614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 41615 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 41616 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 41617 $as_echo_n "(cached) " >&6 41618 else 41619 ac_check_lib_save_LIBS=$LIBS 41620 LIBS="-lbsd $LIBS" 41621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41622 /* end confdefs.h. */ 41623 41624 /* Override any GCC internal prototype to avoid an error. 41625 Use char because int might match the return type of a GCC 41626 builtin and then its argument prototype would still apply. */ 41627 #ifdef __cplusplus 41628 extern "C" 41629 #endif 41630 char gethostbyname (); 41631 int 41632 main () 41633 { 41634 return gethostbyname (); 41635 ; 41636 return 0; 41637 } 41638 _ACEOF 41639 if ac_fn_cxx_try_link "$LINENO"; then : 41640 ac_cv_lib_bsd_gethostbyname=yes 41641 else 41642 ac_cv_lib_bsd_gethostbyname=no 41643 fi 41644 rm -f core conftest.err conftest.$ac_objext \ 41645 conftest$ac_exeext conftest.$ac_ext 41646 LIBS=$ac_check_lib_save_LIBS 41647 fi 41648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 41649 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 41650 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 41651 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 41652 fi 41653 41654 fi 41655 fi 41656 41657 # lieder@skyler.mavd.honeywell.com says without -lsocket, 41658 # socket/setsockopt and other routines are undefined under SCO ODT 41659 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 41660 # on later versions), says Simon Leinen: it contains gethostby* 41661 # variants that don't use the name server (or something). -lsocket 41662 # must be given before -lnsl if both are needed. We assume that 41663 # if connect needs -lnsl, so does gethostbyname. 41664 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 41665 if test "x$ac_cv_func_connect" = xyes; then : 41666 41667 fi 41668 41669 if test $ac_cv_func_connect = no; then 41670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 41671 $as_echo_n "checking for connect in -lsocket... " >&6; } 41672 if ${ac_cv_lib_socket_connect+:} false; then : 41673 $as_echo_n "(cached) " >&6 41674 else 41675 ac_check_lib_save_LIBS=$LIBS 41676 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 41677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41678 /* end confdefs.h. */ 41679 41680 /* Override any GCC internal prototype to avoid an error. 41681 Use char because int might match the return type of a GCC 41682 builtin and then its argument prototype would still apply. */ 41683 #ifdef __cplusplus 41684 extern "C" 41685 #endif 41686 char connect (); 41687 int 41688 main () 41689 { 41690 return connect (); 41691 ; 41692 return 0; 41693 } 41694 _ACEOF 41695 if ac_fn_cxx_try_link "$LINENO"; then : 41696 ac_cv_lib_socket_connect=yes 41697 else 41698 ac_cv_lib_socket_connect=no 41699 fi 41700 rm -f core conftest.err conftest.$ac_objext \ 41701 conftest$ac_exeext conftest.$ac_ext 41702 LIBS=$ac_check_lib_save_LIBS 41703 fi 41704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 41705 $as_echo "$ac_cv_lib_socket_connect" >&6; } 41706 if test "x$ac_cv_lib_socket_connect" = xyes; then : 41707 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 41708 fi 41709 41710 fi 41711 41712 # Guillermo Gomez says -lposix is necessary on A/UX. 41713 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 41714 if test "x$ac_cv_func_remove" = xyes; then : 41715 41716 fi 41717 41718 if test $ac_cv_func_remove = no; then 41719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 41720 $as_echo_n "checking for remove in -lposix... " >&6; } 41721 if ${ac_cv_lib_posix_remove+:} false; then : 41722 $as_echo_n "(cached) " >&6 41723 else 41724 ac_check_lib_save_LIBS=$LIBS 41725 LIBS="-lposix $LIBS" 41726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41727 /* end confdefs.h. */ 41728 41729 /* Override any GCC internal prototype to avoid an error. 41730 Use char because int might match the return type of a GCC 41731 builtin and then its argument prototype would still apply. */ 41732 #ifdef __cplusplus 41733 extern "C" 41734 #endif 41735 char remove (); 41736 int 41737 main () 41738 { 41739 return remove (); 41740 ; 41741 return 0; 41742 } 41743 _ACEOF 41744 if ac_fn_cxx_try_link "$LINENO"; then : 41745 ac_cv_lib_posix_remove=yes 41746 else 41747 ac_cv_lib_posix_remove=no 41748 fi 41749 rm -f core conftest.err conftest.$ac_objext \ 41750 conftest$ac_exeext conftest.$ac_ext 41751 LIBS=$ac_check_lib_save_LIBS 41752 fi 41753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 41754 $as_echo "$ac_cv_lib_posix_remove" >&6; } 41755 if test "x$ac_cv_lib_posix_remove" = xyes; then : 41756 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 41757 fi 41758 41759 fi 41760 41761 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 41762 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 41763 if test "x$ac_cv_func_shmat" = xyes; then : 41764 41765 fi 41766 41767 if test $ac_cv_func_shmat = no; then 41768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 41769 $as_echo_n "checking for shmat in -lipc... " >&6; } 41770 if ${ac_cv_lib_ipc_shmat+:} false; then : 41771 $as_echo_n "(cached) " >&6 41772 else 41773 ac_check_lib_save_LIBS=$LIBS 41774 LIBS="-lipc $LIBS" 41775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41776 /* end confdefs.h. */ 41777 41778 /* Override any GCC internal prototype to avoid an error. 41779 Use char because int might match the return type of a GCC 41780 builtin and then its argument prototype would still apply. */ 41781 #ifdef __cplusplus 41782 extern "C" 41783 #endif 41784 char shmat (); 41785 int 41786 main () 41787 { 41788 return shmat (); 41789 ; 41790 return 0; 41791 } 41792 _ACEOF 41793 if ac_fn_cxx_try_link "$LINENO"; then : 41794 ac_cv_lib_ipc_shmat=yes 41795 else 41796 ac_cv_lib_ipc_shmat=no 41797 fi 41798 rm -f core conftest.err conftest.$ac_objext \ 41799 conftest$ac_exeext conftest.$ac_ext 41800 LIBS=$ac_check_lib_save_LIBS 41801 fi 41802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 41803 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 41804 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 41805 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 41806 fi 41807 41808 fi 41809 fi 41810 41811 # Check for libraries that X11R6 Xt/Xaw programs need. 41812 ac_save_LDFLAGS=$LDFLAGS 41813 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 41814 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 41815 # check for ICE first), but we must link in the order -lSM -lICE or 41816 # we get undefined symbols. So assume we have SM if we have ICE. 41817 # These have to be linked with before -lX11, unlike the other 41818 # libraries we check for below, so use a different variable. 41819 # John Interrante, Karl Berry 41820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 41821 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 41822 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 41823 $as_echo_n "(cached) " >&6 41824 else 41825 ac_check_lib_save_LIBS=$LIBS 41826 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 41827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41828 /* end confdefs.h. */ 41829 41830 /* Override any GCC internal prototype to avoid an error. 41831 Use char because int might match the return type of a GCC 41832 builtin and then its argument prototype would still apply. */ 41833 #ifdef __cplusplus 41834 extern "C" 41835 #endif 41836 char IceConnectionNumber (); 41837 int 41838 main () 41839 { 41840 return IceConnectionNumber (); 41841 ; 41842 return 0; 41843 } 41844 _ACEOF 41845 if ac_fn_cxx_try_link "$LINENO"; then : 41846 ac_cv_lib_ICE_IceConnectionNumber=yes 41847 else 41848 ac_cv_lib_ICE_IceConnectionNumber=no 41849 fi 41850 rm -f core conftest.err conftest.$ac_objext \ 41851 conftest$ac_exeext conftest.$ac_ext 41852 LIBS=$ac_check_lib_save_LIBS 41853 fi 41854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 41855 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 41856 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 41857 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 41858 fi 41859 41860 LDFLAGS=$ac_save_LDFLAGS 41861 41862 fi 41863 41864 41865 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 41866 # this doesn't make sense so we remove it. 41867 if test "x$COMPILE_TYPE" = xcross; then 41868 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 41869 fi 41870 41871 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 41872 41873 # Print a helpful message on how to acquire the necessary build dependency. 41874 # x11 is the help tag: freetype, cups, pulse, alsa etc 41875 MISSING_DEPENDENCY=x11 41876 41877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41878 cygwin_help $MISSING_DEPENDENCY 41879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41880 msys_help $MISSING_DEPENDENCY 41881 else 41882 PKGHANDLER_COMMAND= 41883 41884 case $PKGHANDLER in 41885 apt-get) 41886 apt_help $MISSING_DEPENDENCY ;; 41887 yum) 41888 yum_help $MISSING_DEPENDENCY ;; 41889 port) 41890 port_help $MISSING_DEPENDENCY ;; 41891 pkgutil) 41892 pkgutil_help $MISSING_DEPENDENCY ;; 41893 pkgadd) 41894 pkgadd_help $MISSING_DEPENDENCY ;; 41895 esac 41896 41897 if test "x$PKGHANDLER_COMMAND" != x; then 41898 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 41899 fi 41900 fi 41901 41902 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 41903 fi 41904 41905 41906 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41907 OPENWIN_HOME="/usr/openwin" 41908 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 41909 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 41910 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 41911 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 41912 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 41913 fi 41914 41915 # 41916 # Weird Sol10 something check...TODO change to try compile 41917 # 41918 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 41919 if test "`uname -r`" = "5.10"; then 41920 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 41921 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 41922 fi 41923 fi 41924 fi 41925 41926 ac_ext=c 41927 ac_cpp='$CPP $CPPFLAGS' 41928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41930 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41931 41932 OLD_CFLAGS="$CFLAGS" 41933 CFLAGS="$CFLAGS $X_CFLAGS" 41934 41935 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 41936 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 41937 do : 41938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41939 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 41940 # include <X11/Xlib.h> 41941 # include <X11/Xutil.h> 41942 41943 41944 " 41945 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41946 cat >>confdefs.h <<_ACEOF 41947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41948 _ACEOF 41949 X11_A_OK=yes 41950 else 41951 X11_A_OK=no; break 41952 fi 41953 41954 done 41955 41956 41957 CFLAGS="$OLD_CFLAGS" 41958 ac_ext=cpp 41959 ac_cpp='$CXXCPP $CPPFLAGS' 41960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41963 41964 41965 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 41966 41967 # Print a helpful message on how to acquire the necessary build dependency. 41968 # x11 is the help tag: freetype, cups, pulse, alsa etc 41969 MISSING_DEPENDENCY=x11 41970 41971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41972 cygwin_help $MISSING_DEPENDENCY 41973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41974 msys_help $MISSING_DEPENDENCY 41975 else 41976 PKGHANDLER_COMMAND= 41977 41978 case $PKGHANDLER in 41979 apt-get) 41980 apt_help $MISSING_DEPENDENCY ;; 41981 yum) 41982 yum_help $MISSING_DEPENDENCY ;; 41983 port) 41984 port_help $MISSING_DEPENDENCY ;; 41985 pkgutil) 41986 pkgutil_help $MISSING_DEPENDENCY ;; 41987 pkgadd) 41988 pkgadd_help $MISSING_DEPENDENCY ;; 41989 esac 41990 41991 if test "x$PKGHANDLER_COMMAND" != x; then 41992 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 41993 fi 41994 fi 41995 41996 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 41997 fi 41998 41999 42000 42001 42002 42003 42004 ############################################################################### 42005 # 42006 # The common unix printing system cups is used to print from java. 42007 # 42008 42009 # Check whether --with-cups was given. 42010 if test "${with_cups+set}" = set; then : 42011 withval=$with_cups; 42012 fi 42013 42014 42015 # Check whether --with-cups-include was given. 42016 if test "${with_cups_include+set}" = set; then : 42017 withval=$with_cups_include; 42018 fi 42019 42020 42021 if test "x$CUPS_NOT_NEEDED" = xyes; then 42022 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 42023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 42024 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 42025 fi 42026 CUPS_CFLAGS= 42027 else 42028 CUPS_FOUND=no 42029 42030 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 42031 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 42032 fi 42033 42034 if test "x${with_cups}" != x; then 42035 CUPS_CFLAGS="-I${with_cups}/include" 42036 CUPS_FOUND=yes 42037 fi 42038 if test "x${with_cups_include}" != x; then 42039 CUPS_CFLAGS="-I${with_cups_include}" 42040 CUPS_FOUND=yes 42041 fi 42042 if test "x$CUPS_FOUND" = xno; then 42043 42044 42045 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 42046 # Source the builddeps file again, to make sure it uses the latest variables! 42047 . $builddepsfile 42048 # Look for a target and build machine specific resource! 42049 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 42050 if test "x$resource" = x; then 42051 # Ok, lets instead look for a target specific resource 42052 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 42053 fi 42054 if test "x$resource" = x; then 42055 # Ok, lets instead look for a build specific resource 42056 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 42057 fi 42058 if test "x$resource" = x; then 42059 # Ok, lets instead look for a generic resource 42060 # (The cups comes from M4 and not the shell, thus no need for eval here.) 42061 resource=${builddep_cups} 42062 fi 42063 if test "x$resource" != x; then 42064 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 42065 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 42066 # If the resource in the builddeps.conf file is an existing directory, 42067 # for example /java/linux/cups 42068 if test -d ${resource}; then 42069 depdir=${resource} 42070 else 42071 42072 # cups is for example mymodule 42073 # $resource is for example libs/general/libmymod_1_2_3.zip 42074 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 42075 # $with_builddeps_dir is for example /localhome/builddeps 42076 # depdir is the name of the variable into which we store the depdir, eg MYMOD 42077 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 42078 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 42079 filename=`basename $resource` 42080 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 42081 filebase=${filename%%.*} 42082 extension=${filename#*.} 42083 installdir=$with_builddeps_dir/$filebase 42084 if test ! -f $installdir/$filename.unpacked; then 42085 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 42086 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 42087 if test ! -d $installdir; then 42088 mkdir -p $installdir 42089 fi 42090 if test ! -d $installdir; then 42091 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 42092 fi 42093 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 42094 touch $tmpfile 42095 if test ! -f $tmpfile; then 42096 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 42097 fi 42098 42099 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 42100 # $tmpfile is the local file name for the downloaded file. 42101 VALID_TOOL=no 42102 if test "x$BDEPS_FTP" = xwget; then 42103 VALID_TOOL=yes 42104 wget -O $tmpfile $with_builddeps_server/$resource 42105 fi 42106 if test "x$BDEPS_FTP" = xlftp; then 42107 VALID_TOOL=yes 42108 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 42109 fi 42110 if test "x$BDEPS_FTP" = xftp; then 42111 VALID_TOOL=yes 42112 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 42113 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 42114 FTPUSERPWD=${FTPSERVER%%@*} 42115 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 42116 FTPUSER=${userpwd%%:*} 42117 FTPPWD=${userpwd#*@} 42118 FTPSERVER=${FTPSERVER#*@} 42119 else 42120 FTPUSER=ftp 42121 FTPPWD=ftp 42122 fi 42123 # the "pass" command does not work on some 42124 # ftp clients (read ftp.exe) but if it works, 42125 # passive mode is better! 42126 ( \ 42127 echo "user $FTPUSER $FTPPWD" ; \ 42128 echo "pass" ; \ 42129 echo "bin" ; \ 42130 echo "get $FTPPATH $tmpfile" ; \ 42131 ) | ftp -in $FTPSERVER 42132 fi 42133 if test "x$VALID_TOOL" != xyes; then 42134 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 42135 fi 42136 42137 mv $tmpfile $installdir/$filename 42138 if test ! -s $installdir/$filename; then 42139 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 42140 fi 42141 case "$extension" in 42142 zip) echo "Unzipping $installdir/$filename..." 42143 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 42144 ;; 42145 tar.gz) echo "Untaring $installdir/$filename..." 42146 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 42147 ;; 42148 tgz) echo "Untaring $installdir/$filename..." 42149 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 42150 ;; 42151 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 42152 ;; 42153 esac 42154 fi 42155 if test -f $installdir/$filename.unpacked; then 42156 depdir=$installdir 42157 fi 42158 42159 fi 42160 # Source the builddeps file again, because in the previous command, the depdir 42161 # was updated to point at the current build dependency install directory. 42162 . $builddepsfile 42163 # Now extract variables from the builddeps.conf files. 42164 theroot=${builddep_cups_ROOT} 42165 thecflags=${builddep_cups_CFLAGS} 42166 thelibs=${builddep_cups_LIBS} 42167 if test "x$depdir" = x; then 42168 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 42169 fi 42170 CUPS=$depdir 42171 if test "x$theroot" != x; then 42172 CUPS="$theroot" 42173 fi 42174 if test "x$thecflags" != x; then 42175 CUPS_CFLAGS="$thecflags" 42176 fi 42177 if test "x$thelibs" != x; then 42178 CUPS_LIBS="$thelibs" 42179 fi 42180 CUPS_FOUND=yes 42181 42182 fi 42183 42184 fi 42185 42186 fi 42187 if test "x$CUPS_FOUND" = xno; then 42188 # Are the cups headers installed in the default /usr/include location? 42189 for ac_header in cups/cups.h cups/ppd.h 42190 do : 42191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 42192 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 42193 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 42194 cat >>confdefs.h <<_ACEOF 42195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 42196 _ACEOF 42197 42198 CUPS_FOUND=yes 42199 CUPS_CFLAGS= 42200 DEFAULT_CUPS=yes 42201 42202 42203 fi 42204 42205 done 42206 42207 fi 42208 if test "x$CUPS_FOUND" = xno; then 42209 # Getting nervous now? Lets poke around for standard Solaris third-party 42210 # package installation locations. 42211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 42212 $as_echo_n "checking for cups headers... " >&6; } 42213 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 42214 # An SFW package seems to be installed! 42215 CUPS_FOUND=yes 42216 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 42217 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 42218 # A CSW package seems to be installed! 42219 CUPS_FOUND=yes 42220 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 42221 fi 42222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 42223 $as_echo "$CUPS_FOUND" >&6; } 42224 fi 42225 if test "x$CUPS_FOUND" = xno; then 42226 42227 # Print a helpful message on how to acquire the necessary build dependency. 42228 # cups is the help tag: freetype, cups, pulse, alsa etc 42229 MISSING_DEPENDENCY=cups 42230 42231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42232 cygwin_help $MISSING_DEPENDENCY 42233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42234 msys_help $MISSING_DEPENDENCY 42235 else 42236 PKGHANDLER_COMMAND= 42237 42238 case $PKGHANDLER in 42239 apt-get) 42240 apt_help $MISSING_DEPENDENCY ;; 42241 yum) 42242 yum_help $MISSING_DEPENDENCY ;; 42243 port) 42244 port_help $MISSING_DEPENDENCY ;; 42245 pkgutil) 42246 pkgutil_help $MISSING_DEPENDENCY ;; 42247 pkgadd) 42248 pkgadd_help $MISSING_DEPENDENCY ;; 42249 esac 42250 42251 if test "x$PKGHANDLER_COMMAND" != x; then 42252 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 42253 fi 42254 fi 42255 42256 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 42257 fi 42258 fi 42259 42260 42261 42262 42263 42264 42265 ############################################################################### 42266 # 42267 # The ubiquitous freetype library is used to render fonts. 42268 # 42269 42270 # Check whether --with-freetype was given. 42271 if test "${with_freetype+set}" = set; then : 42272 withval=$with_freetype; 42273 fi 42274 42275 42276 # Check whether --with-freetype-include was given. 42277 if test "${with_freetype_include+set}" = set; then : 42278 withval=$with_freetype_include; 42279 fi 42280 42281 42282 # Check whether --with-freetype-lib was given. 42283 if test "${with_freetype_lib+set}" = set; then : 42284 withval=$with_freetype_lib; 42285 fi 42286 42287 # Check whether --enable-freetype-bundling was given. 42288 if test "${enable_freetype_bundling+set}" = set; then : 42289 enableval=$enable_freetype_bundling; 42290 fi 42291 42292 42293 FREETYPE_CFLAGS= 42294 FREETYPE_LIBS= 42295 FREETYPE_BUNDLE_LIB_PATH= 42296 42297 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 42298 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 42299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 42300 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 42301 fi 42302 if test "x$enable_freetype_bundling" != x; then 42303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 42304 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 42305 fi 42306 else 42307 # freetype is needed to build; go get it! 42308 42309 BUNDLE_FREETYPE="$enable_freetype_bundling" 42310 42311 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 42312 # User has specified settings 42313 42314 if test "x$BUNDLE_FREETYPE" = x; then 42315 # If not specified, default is to bundle freetype 42316 BUNDLE_FREETYPE=yes 42317 fi 42318 42319 if test "x$with_freetype" != x; then 42320 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 42321 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 42322 fi 42323 42324 # Allow --with-freetype-lib and --with-freetype-include to override 42325 if test "x$with_freetype_include" != x; then 42326 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 42327 fi 42328 if test "x$with_freetype_lib" != x; then 42329 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 42330 fi 42331 42332 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 42333 # Okay, we got it. Check that it works. 42334 42335 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42336 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 42337 METHOD="--with-freetype" 42338 42339 # First check if the files exists. 42340 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 42341 # We found an arbitrary include file. That's a good sign. 42342 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 42343 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 42344 FOUND_FREETYPE=yes 42345 42346 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 42347 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 42348 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 42349 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 42350 FOUND_FREETYPE=no 42351 else 42352 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42353 # On Windows, we will need both .lib and .dll file. 42354 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 42355 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 42356 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 42357 FOUND_FREETYPE=no 42358 fi 42359 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 42360 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 42361 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 42362 fi 42363 fi 42364 fi 42365 42366 if test "x$FOUND_FREETYPE" = xyes; then 42367 42368 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42369 42370 # Input might be given as Windows format, start by converting to 42371 # unix format. 42372 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42373 new_path=`$CYGPATH -u "$path"` 42374 42375 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42376 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42377 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42378 # "foo.exe" is OK but "foo" is an error. 42379 # 42380 # This test is therefore slightly more accurate than "test -f" to check for file precense. 42381 # It is also a way to make sure we got the proper file name for the real test later on. 42382 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42383 if test "x$test_shortpath" = x; then 42384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 42385 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 42386 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 42387 fi 42388 42389 # Call helper function which possibly converts this using DOS-style short mode. 42390 # If so, the updated path is stored in $new_path. 42391 42392 input_path="$new_path" 42393 # Check if we need to convert this using DOS-style short mode. If the path 42394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42395 # take no chances and rewrite it. 42396 # Note: m4 eats our [], so we need to use [ and ] instead. 42397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42398 if test "x$has_forbidden_chars" != x; then 42399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42400 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42401 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42402 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42403 # Going to short mode and back again did indeed matter. Since short mode is 42404 # case insensitive, let's make it lowercase to improve readability. 42405 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42406 # Now convert it back to Unix-stile (cygpath) 42407 input_path=`$CYGPATH -u "$shortmode_path"` 42408 new_path="$input_path" 42409 fi 42410 fi 42411 42412 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42413 if test "x$test_cygdrive_prefix" = x; then 42414 # As a simple fix, exclude /usr/bin since it's not a real path. 42415 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 42416 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42417 # a path prefixed by /cygdrive for fixpath to work. 42418 new_path="$CYGWIN_ROOT_PATH$input_path" 42419 fi 42420 fi 42421 42422 42423 if test "x$path" != "x$new_path"; then 42424 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 42425 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 42426 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 42427 fi 42428 42429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42430 42431 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42432 has_colon=`$ECHO $path | $GREP ^.:` 42433 new_path="$path" 42434 if test "x$has_colon" = x; then 42435 # Not in mixed or Windows style, start by that. 42436 new_path=`cmd //c echo $path` 42437 fi 42438 42439 42440 input_path="$new_path" 42441 # Check if we need to convert this using DOS-style short mode. If the path 42442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42443 # take no chances and rewrite it. 42444 # Note: m4 eats our [], so we need to use [ and ] instead. 42445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42446 if test "x$has_forbidden_chars" != x; then 42447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42448 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42449 fi 42450 42451 42452 windows_path="$new_path" 42453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42454 unix_path=`$CYGPATH -u "$windows_path"` 42455 new_path="$unix_path" 42456 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42457 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42458 new_path="$unix_path" 42459 fi 42460 42461 if test "x$path" != "x$new_path"; then 42462 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 42463 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 42464 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 42465 fi 42466 42467 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42468 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42469 42470 else 42471 # We're on a posix platform. Hooray! :) 42472 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42473 has_space=`$ECHO "$path" | $GREP " "` 42474 if test "x$has_space" != x; then 42475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 42476 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 42477 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 42478 fi 42479 42480 # Use eval to expand a potential ~ 42481 eval path="$path" 42482 if test ! -f "$path" && test ! -d "$path"; then 42483 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 42484 fi 42485 42486 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 42487 fi 42488 42489 42490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42491 42492 # Input might be given as Windows format, start by converting to 42493 # unix format. 42494 path="$POTENTIAL_FREETYPE_LIB_PATH" 42495 new_path=`$CYGPATH -u "$path"` 42496 42497 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42498 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42499 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42500 # "foo.exe" is OK but "foo" is an error. 42501 # 42502 # This test is therefore slightly more accurate than "test -f" to check for file precense. 42503 # It is also a way to make sure we got the proper file name for the real test later on. 42504 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42505 if test "x$test_shortpath" = x; then 42506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 42507 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 42508 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 42509 fi 42510 42511 # Call helper function which possibly converts this using DOS-style short mode. 42512 # If so, the updated path is stored in $new_path. 42513 42514 input_path="$new_path" 42515 # Check if we need to convert this using DOS-style short mode. If the path 42516 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42517 # take no chances and rewrite it. 42518 # Note: m4 eats our [], so we need to use [ and ] instead. 42519 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42520 if test "x$has_forbidden_chars" != x; then 42521 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42522 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42523 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42524 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42525 # Going to short mode and back again did indeed matter. Since short mode is 42526 # case insensitive, let's make it lowercase to improve readability. 42527 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42528 # Now convert it back to Unix-stile (cygpath) 42529 input_path=`$CYGPATH -u "$shortmode_path"` 42530 new_path="$input_path" 42531 fi 42532 fi 42533 42534 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42535 if test "x$test_cygdrive_prefix" = x; then 42536 # As a simple fix, exclude /usr/bin since it's not a real path. 42537 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 42538 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42539 # a path prefixed by /cygdrive for fixpath to work. 42540 new_path="$CYGWIN_ROOT_PATH$input_path" 42541 fi 42542 fi 42543 42544 42545 if test "x$path" != "x$new_path"; then 42546 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 42547 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 42548 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 42549 fi 42550 42551 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42552 42553 path="$POTENTIAL_FREETYPE_LIB_PATH" 42554 has_colon=`$ECHO $path | $GREP ^.:` 42555 new_path="$path" 42556 if test "x$has_colon" = x; then 42557 # Not in mixed or Windows style, start by that. 42558 new_path=`cmd //c echo $path` 42559 fi 42560 42561 42562 input_path="$new_path" 42563 # Check if we need to convert this using DOS-style short mode. If the path 42564 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42565 # take no chances and rewrite it. 42566 # Note: m4 eats our [], so we need to use [ and ] instead. 42567 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42568 if test "x$has_forbidden_chars" != x; then 42569 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42570 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42571 fi 42572 42573 42574 windows_path="$new_path" 42575 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42576 unix_path=`$CYGPATH -u "$windows_path"` 42577 new_path="$unix_path" 42578 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42579 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42580 new_path="$unix_path" 42581 fi 42582 42583 if test "x$path" != "x$new_path"; then 42584 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 42585 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 42586 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 42587 fi 42588 42589 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42590 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42591 42592 else 42593 # We're on a posix platform. Hooray! :) 42594 path="$POTENTIAL_FREETYPE_LIB_PATH" 42595 has_space=`$ECHO "$path" | $GREP " "` 42596 if test "x$has_space" != x; then 42597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 42598 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 42599 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 42600 fi 42601 42602 # Use eval to expand a potential ~ 42603 eval path="$path" 42604 if test ! -f "$path" && test ! -d "$path"; then 42605 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 42606 fi 42607 42608 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 42609 fi 42610 42611 42612 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 42614 $as_echo_n "checking for freetype includes... " >&6; } 42615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 42616 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 42617 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 42618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 42619 $as_echo_n "checking for freetype libraries... " >&6; } 42620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 42621 $as_echo "$FREETYPE_LIB_PATH" >&6; } 42622 fi 42623 42624 if test "x$FOUND_FREETYPE" != xyes; then 42625 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 42626 fi 42627 else 42628 # User specified only one of lib or include. This is an error. 42629 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 42630 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 42631 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 42632 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 42633 else 42634 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 42635 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 42636 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 42637 fi 42638 fi 42639 else 42640 # User did not specify settings, but we need freetype. Try to locate it. 42641 42642 if test "x$BUNDLE_FREETYPE" = x; then 42643 # If not specified, default is to bundle freetype only on windows 42644 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42645 BUNDLE_FREETYPE=yes 42646 else 42647 BUNDLE_FREETYPE=no 42648 fi 42649 fi 42650 42651 if test "x$FOUND_FREETYPE" != xyes; then 42652 # Check builddeps 42653 42654 42655 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 42656 # Source the builddeps file again, to make sure it uses the latest variables! 42657 . $builddepsfile 42658 # Look for a target and build machine specific resource! 42659 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 42660 if test "x$resource" = x; then 42661 # Ok, lets instead look for a target specific resource 42662 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 42663 fi 42664 if test "x$resource" = x; then 42665 # Ok, lets instead look for a build specific resource 42666 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 42667 fi 42668 if test "x$resource" = x; then 42669 # Ok, lets instead look for a generic resource 42670 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 42671 resource=${builddep_freetype2} 42672 fi 42673 if test "x$resource" != x; then 42674 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 42675 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 42676 # If the resource in the builddeps.conf file is an existing directory, 42677 # for example /java/linux/cups 42678 if test -d ${resource}; then 42679 depdir=${resource} 42680 else 42681 42682 # freetype2 is for example mymodule 42683 # $resource is for example libs/general/libmymod_1_2_3.zip 42684 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 42685 # $with_builddeps_dir is for example /localhome/builddeps 42686 # depdir is the name of the variable into which we store the depdir, eg MYMOD 42687 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 42688 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 42689 filename=`basename $resource` 42690 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 42691 filebase=${filename%%.*} 42692 extension=${filename#*.} 42693 installdir=$with_builddeps_dir/$filebase 42694 if test ! -f $installdir/$filename.unpacked; then 42695 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 42696 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 42697 if test ! -d $installdir; then 42698 mkdir -p $installdir 42699 fi 42700 if test ! -d $installdir; then 42701 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 42702 fi 42703 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 42704 touch $tmpfile 42705 if test ! -f $tmpfile; then 42706 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 42707 fi 42708 42709 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 42710 # $tmpfile is the local file name for the downloaded file. 42711 VALID_TOOL=no 42712 if test "x$BDEPS_FTP" = xwget; then 42713 VALID_TOOL=yes 42714 wget -O $tmpfile $with_builddeps_server/$resource 42715 fi 42716 if test "x$BDEPS_FTP" = xlftp; then 42717 VALID_TOOL=yes 42718 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 42719 fi 42720 if test "x$BDEPS_FTP" = xftp; then 42721 VALID_TOOL=yes 42722 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 42723 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 42724 FTPUSERPWD=${FTPSERVER%%@*} 42725 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 42726 FTPUSER=${userpwd%%:*} 42727 FTPPWD=${userpwd#*@} 42728 FTPSERVER=${FTPSERVER#*@} 42729 else 42730 FTPUSER=ftp 42731 FTPPWD=ftp 42732 fi 42733 # the "pass" command does not work on some 42734 # ftp clients (read ftp.exe) but if it works, 42735 # passive mode is better! 42736 ( \ 42737 echo "user $FTPUSER $FTPPWD" ; \ 42738 echo "pass" ; \ 42739 echo "bin" ; \ 42740 echo "get $FTPPATH $tmpfile" ; \ 42741 ) | ftp -in $FTPSERVER 42742 fi 42743 if test "x$VALID_TOOL" != xyes; then 42744 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 42745 fi 42746 42747 mv $tmpfile $installdir/$filename 42748 if test ! -s $installdir/$filename; then 42749 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 42750 fi 42751 case "$extension" in 42752 zip) echo "Unzipping $installdir/$filename..." 42753 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 42754 ;; 42755 tar.gz) echo "Untaring $installdir/$filename..." 42756 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 42757 ;; 42758 tgz) echo "Untaring $installdir/$filename..." 42759 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 42760 ;; 42761 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 42762 ;; 42763 esac 42764 fi 42765 if test -f $installdir/$filename.unpacked; then 42766 depdir=$installdir 42767 fi 42768 42769 fi 42770 # Source the builddeps file again, because in the previous command, the depdir 42771 # was updated to point at the current build dependency install directory. 42772 . $builddepsfile 42773 # Now extract variables from the builddeps.conf files. 42774 theroot=${builddep_freetype2_ROOT} 42775 thecflags=${builddep_freetype2_CFLAGS} 42776 thelibs=${builddep_freetype2_LIBS} 42777 if test "x$depdir" = x; then 42778 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 42779 fi 42780 FREETYPE=$depdir 42781 if test "x$theroot" != x; then 42782 FREETYPE="$theroot" 42783 fi 42784 if test "x$thecflags" != x; then 42785 FREETYPE_CFLAGS="$thecflags" 42786 fi 42787 if test "x$thelibs" != x; then 42788 FREETYPE_LIBS="$thelibs" 42789 fi 42790 FOUND_FREETYPE=yes 42791 else FOUND_FREETYPE=no 42792 42793 fi 42794 else FOUND_FREETYPE=no 42795 42796 fi 42797 42798 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 42799 if test "x$FOUND_FREETYPE" = xyes; then 42800 if test "x$BUNDLE_FREETYPE" = xyes; then 42801 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 42802 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 42803 FOUND_FREETYPE=no 42804 else 42805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 42806 $as_echo_n "checking for freetype... " >&6; } 42807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 42808 $as_echo "yes (using builddeps)" >&6; } 42809 fi 42810 fi 42811 fi 42812 42813 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 42814 if test "x$SYSROOT" = x; then 42815 if test "x$FOUND_FREETYPE" != xyes; then 42816 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 42817 if test "x$PKG_CONFIG" != x; then 42818 42819 pkg_failed=no 42820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 42821 $as_echo_n "checking for FREETYPE... " >&6; } 42822 42823 if test -n "$FREETYPE_CFLAGS"; then 42824 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 42825 elif test -n "$PKG_CONFIG"; then 42826 if test -n "$PKG_CONFIG" && \ 42827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 42828 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 42829 ac_status=$? 42830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42831 test $ac_status = 0; }; then 42832 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 42833 else 42834 pkg_failed=yes 42835 fi 42836 else 42837 pkg_failed=untried 42838 fi 42839 if test -n "$FREETYPE_LIBS"; then 42840 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 42841 elif test -n "$PKG_CONFIG"; then 42842 if test -n "$PKG_CONFIG" && \ 42843 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 42844 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 42845 ac_status=$? 42846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42847 test $ac_status = 0; }; then 42848 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 42849 else 42850 pkg_failed=yes 42851 fi 42852 else 42853 pkg_failed=untried 42854 fi 42855 42856 42857 42858 if test $pkg_failed = yes; then 42859 42860 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 42861 _pkg_short_errors_supported=yes 42862 else 42863 _pkg_short_errors_supported=no 42864 fi 42865 if test $_pkg_short_errors_supported = yes; then 42866 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 42867 else 42868 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 42869 fi 42870 # Put the nasty error message in config.log where it belongs 42871 echo "$FREETYPE_PKG_ERRORS" >&5 42872 42873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42874 $as_echo "no" >&6; } 42875 FOUND_FREETYPE=no 42876 elif test $pkg_failed = untried; then 42877 FOUND_FREETYPE=no 42878 else 42879 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 42880 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 42881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42882 $as_echo "yes" >&6; } 42883 FOUND_FREETYPE=yes 42884 fi 42885 if test "x$FOUND_FREETYPE" = xyes; then 42886 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 42887 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 42888 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 42889 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42890 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 42891 fi 42892 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 42893 if test "x$BUNDLE_FREETYPE" = xyes; then 42894 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 42895 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 42896 FOUND_FREETYPE=no 42897 else 42898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 42899 $as_echo_n "checking for freetype... " >&6; } 42900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 42901 $as_echo "yes (using pkg-config)" >&6; } 42902 fi 42903 fi 42904 fi 42905 fi 42906 fi 42907 42908 if test "x$FOUND_FREETYPE" != xyes; then 42909 # Check in well-known locations 42910 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42911 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 42912 42913 windows_path="$FREETYPE_BASE_DIR" 42914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42915 unix_path=`$CYGPATH -u "$windows_path"` 42916 FREETYPE_BASE_DIR="$unix_path" 42917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42919 FREETYPE_BASE_DIR="$unix_path" 42920 fi 42921 42922 42923 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 42924 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 42925 METHOD="well-known location" 42926 42927 # First check if the files exists. 42928 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 42929 # We found an arbitrary include file. That's a good sign. 42930 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 42931 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 42932 FOUND_FREETYPE=yes 42933 42934 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 42935 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 42936 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 42937 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 42938 FOUND_FREETYPE=no 42939 else 42940 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42941 # On Windows, we will need both .lib and .dll file. 42942 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 42943 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 42944 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 42945 FOUND_FREETYPE=no 42946 fi 42947 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 42948 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 42949 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 42950 fi 42951 fi 42952 fi 42953 42954 if test "x$FOUND_FREETYPE" = xyes; then 42955 42956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42957 42958 # Input might be given as Windows format, start by converting to 42959 # unix format. 42960 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42961 new_path=`$CYGPATH -u "$path"` 42962 42963 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42964 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42965 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42966 # "foo.exe" is OK but "foo" is an error. 42967 # 42968 # This test is therefore slightly more accurate than "test -f" to check for file precense. 42969 # It is also a way to make sure we got the proper file name for the real test later on. 42970 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42971 if test "x$test_shortpath" = x; then 42972 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 42973 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 42974 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 42975 fi 42976 42977 # Call helper function which possibly converts this using DOS-style short mode. 42978 # If so, the updated path is stored in $new_path. 42979 42980 input_path="$new_path" 42981 # Check if we need to convert this using DOS-style short mode. If the path 42982 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42983 # take no chances and rewrite it. 42984 # Note: m4 eats our [], so we need to use [ and ] instead. 42985 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42986 if test "x$has_forbidden_chars" != x; then 42987 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42988 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42989 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42990 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42991 # Going to short mode and back again did indeed matter. Since short mode is 42992 # case insensitive, let's make it lowercase to improve readability. 42993 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42994 # Now convert it back to Unix-stile (cygpath) 42995 input_path=`$CYGPATH -u "$shortmode_path"` 42996 new_path="$input_path" 42997 fi 42998 fi 42999 43000 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43001 if test "x$test_cygdrive_prefix" = x; then 43002 # As a simple fix, exclude /usr/bin since it's not a real path. 43003 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43004 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43005 # a path prefixed by /cygdrive for fixpath to work. 43006 new_path="$CYGWIN_ROOT_PATH$input_path" 43007 fi 43008 fi 43009 43010 43011 if test "x$path" != "x$new_path"; then 43012 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43013 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43014 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43015 fi 43016 43017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43018 43019 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43020 has_colon=`$ECHO $path | $GREP ^.:` 43021 new_path="$path" 43022 if test "x$has_colon" = x; then 43023 # Not in mixed or Windows style, start by that. 43024 new_path=`cmd //c echo $path` 43025 fi 43026 43027 43028 input_path="$new_path" 43029 # Check if we need to convert this using DOS-style short mode. If the path 43030 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43031 # take no chances and rewrite it. 43032 # Note: m4 eats our [], so we need to use [ and ] instead. 43033 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43034 if test "x$has_forbidden_chars" != x; then 43035 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43036 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43037 fi 43038 43039 43040 windows_path="$new_path" 43041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43042 unix_path=`$CYGPATH -u "$windows_path"` 43043 new_path="$unix_path" 43044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43045 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43046 new_path="$unix_path" 43047 fi 43048 43049 if test "x$path" != "x$new_path"; then 43050 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43051 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43052 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43053 fi 43054 43055 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43056 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43057 43058 else 43059 # We're on a posix platform. Hooray! :) 43060 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43061 has_space=`$ECHO "$path" | $GREP " "` 43062 if test "x$has_space" != x; then 43063 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43064 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43065 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43066 fi 43067 43068 # Use eval to expand a potential ~ 43069 eval path="$path" 43070 if test ! -f "$path" && test ! -d "$path"; then 43071 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43072 fi 43073 43074 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43075 fi 43076 43077 43078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43079 43080 # Input might be given as Windows format, start by converting to 43081 # unix format. 43082 path="$POTENTIAL_FREETYPE_LIB_PATH" 43083 new_path=`$CYGPATH -u "$path"` 43084 43085 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43086 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43087 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43088 # "foo.exe" is OK but "foo" is an error. 43089 # 43090 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43091 # It is also a way to make sure we got the proper file name for the real test later on. 43092 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43093 if test "x$test_shortpath" = x; then 43094 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43095 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43096 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43097 fi 43098 43099 # Call helper function which possibly converts this using DOS-style short mode. 43100 # If so, the updated path is stored in $new_path. 43101 43102 input_path="$new_path" 43103 # Check if we need to convert this using DOS-style short mode. If the path 43104 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43105 # take no chances and rewrite it. 43106 # Note: m4 eats our [], so we need to use [ and ] instead. 43107 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43108 if test "x$has_forbidden_chars" != x; then 43109 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43110 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43111 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43112 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43113 # Going to short mode and back again did indeed matter. Since short mode is 43114 # case insensitive, let's make it lowercase to improve readability. 43115 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43116 # Now convert it back to Unix-stile (cygpath) 43117 input_path=`$CYGPATH -u "$shortmode_path"` 43118 new_path="$input_path" 43119 fi 43120 fi 43121 43122 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43123 if test "x$test_cygdrive_prefix" = x; then 43124 # As a simple fix, exclude /usr/bin since it's not a real path. 43125 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43126 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43127 # a path prefixed by /cygdrive for fixpath to work. 43128 new_path="$CYGWIN_ROOT_PATH$input_path" 43129 fi 43130 fi 43131 43132 43133 if test "x$path" != "x$new_path"; then 43134 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43135 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43136 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43137 fi 43138 43139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43140 43141 path="$POTENTIAL_FREETYPE_LIB_PATH" 43142 has_colon=`$ECHO $path | $GREP ^.:` 43143 new_path="$path" 43144 if test "x$has_colon" = x; then 43145 # Not in mixed or Windows style, start by that. 43146 new_path=`cmd //c echo $path` 43147 fi 43148 43149 43150 input_path="$new_path" 43151 # Check if we need to convert this using DOS-style short mode. If the path 43152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43153 # take no chances and rewrite it. 43154 # Note: m4 eats our [], so we need to use [ and ] instead. 43155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43156 if test "x$has_forbidden_chars" != x; then 43157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43158 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43159 fi 43160 43161 43162 windows_path="$new_path" 43163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43164 unix_path=`$CYGPATH -u "$windows_path"` 43165 new_path="$unix_path" 43166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43167 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43168 new_path="$unix_path" 43169 fi 43170 43171 if test "x$path" != "x$new_path"; then 43172 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43173 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43174 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43175 fi 43176 43177 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43178 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43179 43180 else 43181 # We're on a posix platform. Hooray! :) 43182 path="$POTENTIAL_FREETYPE_LIB_PATH" 43183 has_space=`$ECHO "$path" | $GREP " "` 43184 if test "x$has_space" != x; then 43185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43186 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43187 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43188 fi 43189 43190 # Use eval to expand a potential ~ 43191 eval path="$path" 43192 if test ! -f "$path" && test ! -d "$path"; then 43193 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43194 fi 43195 43196 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 43197 fi 43198 43199 43200 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 43202 $as_echo_n "checking for freetype includes... " >&6; } 43203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 43204 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 43205 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 43207 $as_echo_n "checking for freetype libraries... " >&6; } 43208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 43209 $as_echo "$FREETYPE_LIB_PATH" >&6; } 43210 fi 43211 43212 if test "x$FOUND_FREETYPE" != xyes; then 43213 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 43214 43215 windows_path="$FREETYPE_BASE_DIR" 43216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43217 unix_path=`$CYGPATH -u "$windows_path"` 43218 FREETYPE_BASE_DIR="$unix_path" 43219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43220 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43221 FREETYPE_BASE_DIR="$unix_path" 43222 fi 43223 43224 43225 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 43226 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 43227 METHOD="well-known location" 43228 43229 # First check if the files exists. 43230 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43231 # We found an arbitrary include file. That's a good sign. 43232 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43233 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43234 FOUND_FREETYPE=yes 43235 43236 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43237 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43238 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43239 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43240 FOUND_FREETYPE=no 43241 else 43242 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43243 # On Windows, we will need both .lib and .dll file. 43244 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43245 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43246 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43247 FOUND_FREETYPE=no 43248 fi 43249 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 43250 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43251 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43252 fi 43253 fi 43254 fi 43255 43256 if test "x$FOUND_FREETYPE" = xyes; then 43257 43258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43259 43260 # Input might be given as Windows format, start by converting to 43261 # unix format. 43262 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43263 new_path=`$CYGPATH -u "$path"` 43264 43265 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43266 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43267 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43268 # "foo.exe" is OK but "foo" is an error. 43269 # 43270 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43271 # It is also a way to make sure we got the proper file name for the real test later on. 43272 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43273 if test "x$test_shortpath" = x; then 43274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43275 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43276 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43277 fi 43278 43279 # Call helper function which possibly converts this using DOS-style short mode. 43280 # If so, the updated path is stored in $new_path. 43281 43282 input_path="$new_path" 43283 # Check if we need to convert this using DOS-style short mode. If the path 43284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43285 # take no chances and rewrite it. 43286 # Note: m4 eats our [], so we need to use [ and ] instead. 43287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43288 if test "x$has_forbidden_chars" != x; then 43289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43290 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43291 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43292 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43293 # Going to short mode and back again did indeed matter. Since short mode is 43294 # case insensitive, let's make it lowercase to improve readability. 43295 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43296 # Now convert it back to Unix-stile (cygpath) 43297 input_path=`$CYGPATH -u "$shortmode_path"` 43298 new_path="$input_path" 43299 fi 43300 fi 43301 43302 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43303 if test "x$test_cygdrive_prefix" = x; then 43304 # As a simple fix, exclude /usr/bin since it's not a real path. 43305 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43306 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43307 # a path prefixed by /cygdrive for fixpath to work. 43308 new_path="$CYGWIN_ROOT_PATH$input_path" 43309 fi 43310 fi 43311 43312 43313 if test "x$path" != "x$new_path"; then 43314 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43316 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43317 fi 43318 43319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43320 43321 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43322 has_colon=`$ECHO $path | $GREP ^.:` 43323 new_path="$path" 43324 if test "x$has_colon" = x; then 43325 # Not in mixed or Windows style, start by that. 43326 new_path=`cmd //c echo $path` 43327 fi 43328 43329 43330 input_path="$new_path" 43331 # Check if we need to convert this using DOS-style short mode. If the path 43332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43333 # take no chances and rewrite it. 43334 # Note: m4 eats our [], so we need to use [ and ] instead. 43335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43336 if test "x$has_forbidden_chars" != x; then 43337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43338 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43339 fi 43340 43341 43342 windows_path="$new_path" 43343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43344 unix_path=`$CYGPATH -u "$windows_path"` 43345 new_path="$unix_path" 43346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43348 new_path="$unix_path" 43349 fi 43350 43351 if test "x$path" != "x$new_path"; then 43352 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43353 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43354 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43355 fi 43356 43357 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43358 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43359 43360 else 43361 # We're on a posix platform. Hooray! :) 43362 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43363 has_space=`$ECHO "$path" | $GREP " "` 43364 if test "x$has_space" != x; then 43365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43366 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43367 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43368 fi 43369 43370 # Use eval to expand a potential ~ 43371 eval path="$path" 43372 if test ! -f "$path" && test ! -d "$path"; then 43373 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43374 fi 43375 43376 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43377 fi 43378 43379 43380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43381 43382 # Input might be given as Windows format, start by converting to 43383 # unix format. 43384 path="$POTENTIAL_FREETYPE_LIB_PATH" 43385 new_path=`$CYGPATH -u "$path"` 43386 43387 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43388 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43389 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43390 # "foo.exe" is OK but "foo" is an error. 43391 # 43392 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43393 # It is also a way to make sure we got the proper file name for the real test later on. 43394 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43395 if test "x$test_shortpath" = x; then 43396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43397 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43398 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43399 fi 43400 43401 # Call helper function which possibly converts this using DOS-style short mode. 43402 # If so, the updated path is stored in $new_path. 43403 43404 input_path="$new_path" 43405 # Check if we need to convert this using DOS-style short mode. If the path 43406 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43407 # take no chances and rewrite it. 43408 # Note: m4 eats our [], so we need to use [ and ] instead. 43409 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43410 if test "x$has_forbidden_chars" != x; then 43411 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43412 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43413 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43414 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43415 # Going to short mode and back again did indeed matter. Since short mode is 43416 # case insensitive, let's make it lowercase to improve readability. 43417 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43418 # Now convert it back to Unix-stile (cygpath) 43419 input_path=`$CYGPATH -u "$shortmode_path"` 43420 new_path="$input_path" 43421 fi 43422 fi 43423 43424 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43425 if test "x$test_cygdrive_prefix" = x; then 43426 # As a simple fix, exclude /usr/bin since it's not a real path. 43427 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43428 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43429 # a path prefixed by /cygdrive for fixpath to work. 43430 new_path="$CYGWIN_ROOT_PATH$input_path" 43431 fi 43432 fi 43433 43434 43435 if test "x$path" != "x$new_path"; then 43436 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43437 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43438 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43439 fi 43440 43441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43442 43443 path="$POTENTIAL_FREETYPE_LIB_PATH" 43444 has_colon=`$ECHO $path | $GREP ^.:` 43445 new_path="$path" 43446 if test "x$has_colon" = x; then 43447 # Not in mixed or Windows style, start by that. 43448 new_path=`cmd //c echo $path` 43449 fi 43450 43451 43452 input_path="$new_path" 43453 # Check if we need to convert this using DOS-style short mode. If the path 43454 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43455 # take no chances and rewrite it. 43456 # Note: m4 eats our [], so we need to use [ and ] instead. 43457 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43458 if test "x$has_forbidden_chars" != x; then 43459 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43460 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43461 fi 43462 43463 43464 windows_path="$new_path" 43465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43466 unix_path=`$CYGPATH -u "$windows_path"` 43467 new_path="$unix_path" 43468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43469 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43470 new_path="$unix_path" 43471 fi 43472 43473 if test "x$path" != "x$new_path"; then 43474 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43475 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43476 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43477 fi 43478 43479 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43480 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43481 43482 else 43483 # We're on a posix platform. Hooray! :) 43484 path="$POTENTIAL_FREETYPE_LIB_PATH" 43485 has_space=`$ECHO "$path" | $GREP " "` 43486 if test "x$has_space" != x; then 43487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43488 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43489 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43490 fi 43491 43492 # Use eval to expand a potential ~ 43493 eval path="$path" 43494 if test ! -f "$path" && test ! -d "$path"; then 43495 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43496 fi 43497 43498 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 43499 fi 43500 43501 43502 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 43504 $as_echo_n "checking for freetype includes... " >&6; } 43505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 43506 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 43507 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 43509 $as_echo_n "checking for freetype libraries... " >&6; } 43510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 43511 $as_echo "$FREETYPE_LIB_PATH" >&6; } 43512 fi 43513 43514 fi 43515 else 43516 FREETYPE_BASE_DIR="$SYSROOT/usr" 43517 43518 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 43519 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 43520 METHOD="well-known location" 43521 43522 # First check if the files exists. 43523 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43524 # We found an arbitrary include file. That's a good sign. 43525 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43526 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43527 FOUND_FREETYPE=yes 43528 43529 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43530 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43531 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43532 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43533 FOUND_FREETYPE=no 43534 else 43535 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43536 # On Windows, we will need both .lib and .dll file. 43537 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43538 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43539 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43540 FOUND_FREETYPE=no 43541 fi 43542 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 43543 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43544 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43545 fi 43546 fi 43547 fi 43548 43549 if test "x$FOUND_FREETYPE" = xyes; then 43550 43551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43552 43553 # Input might be given as Windows format, start by converting to 43554 # unix format. 43555 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43556 new_path=`$CYGPATH -u "$path"` 43557 43558 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43559 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43560 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43561 # "foo.exe" is OK but "foo" is an error. 43562 # 43563 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43564 # It is also a way to make sure we got the proper file name for the real test later on. 43565 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43566 if test "x$test_shortpath" = x; then 43567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43568 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43569 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43570 fi 43571 43572 # Call helper function which possibly converts this using DOS-style short mode. 43573 # If so, the updated path is stored in $new_path. 43574 43575 input_path="$new_path" 43576 # Check if we need to convert this using DOS-style short mode. If the path 43577 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43578 # take no chances and rewrite it. 43579 # Note: m4 eats our [], so we need to use [ and ] instead. 43580 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43581 if test "x$has_forbidden_chars" != x; then 43582 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43583 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43584 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43585 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43586 # Going to short mode and back again did indeed matter. Since short mode is 43587 # case insensitive, let's make it lowercase to improve readability. 43588 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43589 # Now convert it back to Unix-stile (cygpath) 43590 input_path=`$CYGPATH -u "$shortmode_path"` 43591 new_path="$input_path" 43592 fi 43593 fi 43594 43595 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43596 if test "x$test_cygdrive_prefix" = x; then 43597 # As a simple fix, exclude /usr/bin since it's not a real path. 43598 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43599 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43600 # a path prefixed by /cygdrive for fixpath to work. 43601 new_path="$CYGWIN_ROOT_PATH$input_path" 43602 fi 43603 fi 43604 43605 43606 if test "x$path" != "x$new_path"; then 43607 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43608 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43609 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43610 fi 43611 43612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43613 43614 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43615 has_colon=`$ECHO $path | $GREP ^.:` 43616 new_path="$path" 43617 if test "x$has_colon" = x; then 43618 # Not in mixed or Windows style, start by that. 43619 new_path=`cmd //c echo $path` 43620 fi 43621 43622 43623 input_path="$new_path" 43624 # Check if we need to convert this using DOS-style short mode. If the path 43625 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43626 # take no chances and rewrite it. 43627 # Note: m4 eats our [], so we need to use [ and ] instead. 43628 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43629 if test "x$has_forbidden_chars" != x; then 43630 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43631 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43632 fi 43633 43634 43635 windows_path="$new_path" 43636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43637 unix_path=`$CYGPATH -u "$windows_path"` 43638 new_path="$unix_path" 43639 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43640 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43641 new_path="$unix_path" 43642 fi 43643 43644 if test "x$path" != "x$new_path"; then 43645 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43646 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43647 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43648 fi 43649 43650 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43651 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43652 43653 else 43654 # We're on a posix platform. Hooray! :) 43655 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43656 has_space=`$ECHO "$path" | $GREP " "` 43657 if test "x$has_space" != x; then 43658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43659 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43660 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43661 fi 43662 43663 # Use eval to expand a potential ~ 43664 eval path="$path" 43665 if test ! -f "$path" && test ! -d "$path"; then 43666 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43667 fi 43668 43669 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43670 fi 43671 43672 43673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43674 43675 # Input might be given as Windows format, start by converting to 43676 # unix format. 43677 path="$POTENTIAL_FREETYPE_LIB_PATH" 43678 new_path=`$CYGPATH -u "$path"` 43679 43680 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43681 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43682 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43683 # "foo.exe" is OK but "foo" is an error. 43684 # 43685 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43686 # It is also a way to make sure we got the proper file name for the real test later on. 43687 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43688 if test "x$test_shortpath" = x; then 43689 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43690 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43691 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43692 fi 43693 43694 # Call helper function which possibly converts this using DOS-style short mode. 43695 # If so, the updated path is stored in $new_path. 43696 43697 input_path="$new_path" 43698 # Check if we need to convert this using DOS-style short mode. If the path 43699 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43700 # take no chances and rewrite it. 43701 # Note: m4 eats our [], so we need to use [ and ] instead. 43702 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43703 if test "x$has_forbidden_chars" != x; then 43704 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43705 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43706 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43707 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43708 # Going to short mode and back again did indeed matter. Since short mode is 43709 # case insensitive, let's make it lowercase to improve readability. 43710 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43711 # Now convert it back to Unix-stile (cygpath) 43712 input_path=`$CYGPATH -u "$shortmode_path"` 43713 new_path="$input_path" 43714 fi 43715 fi 43716 43717 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43718 if test "x$test_cygdrive_prefix" = x; then 43719 # As a simple fix, exclude /usr/bin since it's not a real path. 43720 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43721 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43722 # a path prefixed by /cygdrive for fixpath to work. 43723 new_path="$CYGWIN_ROOT_PATH$input_path" 43724 fi 43725 fi 43726 43727 43728 if test "x$path" != "x$new_path"; then 43729 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43730 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43731 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43732 fi 43733 43734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43735 43736 path="$POTENTIAL_FREETYPE_LIB_PATH" 43737 has_colon=`$ECHO $path | $GREP ^.:` 43738 new_path="$path" 43739 if test "x$has_colon" = x; then 43740 # Not in mixed or Windows style, start by that. 43741 new_path=`cmd //c echo $path` 43742 fi 43743 43744 43745 input_path="$new_path" 43746 # Check if we need to convert this using DOS-style short mode. If the path 43747 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43748 # take no chances and rewrite it. 43749 # Note: m4 eats our [], so we need to use [ and ] instead. 43750 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43751 if test "x$has_forbidden_chars" != x; then 43752 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43753 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43754 fi 43755 43756 43757 windows_path="$new_path" 43758 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43759 unix_path=`$CYGPATH -u "$windows_path"` 43760 new_path="$unix_path" 43761 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43762 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43763 new_path="$unix_path" 43764 fi 43765 43766 if test "x$path" != "x$new_path"; then 43767 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43768 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43769 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43770 fi 43771 43772 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43773 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43774 43775 else 43776 # We're on a posix platform. Hooray! :) 43777 path="$POTENTIAL_FREETYPE_LIB_PATH" 43778 has_space=`$ECHO "$path" | $GREP " "` 43779 if test "x$has_space" != x; then 43780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43781 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43782 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43783 fi 43784 43785 # Use eval to expand a potential ~ 43786 eval path="$path" 43787 if test ! -f "$path" && test ! -d "$path"; then 43788 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43789 fi 43790 43791 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 43792 fi 43793 43794 43795 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 43797 $as_echo_n "checking for freetype includes... " >&6; } 43798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 43799 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 43800 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 43802 $as_echo_n "checking for freetype libraries... " >&6; } 43803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 43804 $as_echo "$FREETYPE_LIB_PATH" >&6; } 43805 fi 43806 43807 43808 if test "x$FOUND_FREETYPE" != xyes; then 43809 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 43810 43811 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 43812 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 43813 METHOD="well-known location" 43814 43815 # First check if the files exists. 43816 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43817 # We found an arbitrary include file. That's a good sign. 43818 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43819 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43820 FOUND_FREETYPE=yes 43821 43822 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43823 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43824 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43825 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43826 FOUND_FREETYPE=no 43827 else 43828 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43829 # On Windows, we will need both .lib and .dll file. 43830 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43831 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43832 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43833 FOUND_FREETYPE=no 43834 fi 43835 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 43836 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43837 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43838 fi 43839 fi 43840 fi 43841 43842 if test "x$FOUND_FREETYPE" = xyes; then 43843 43844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43845 43846 # Input might be given as Windows format, start by converting to 43847 # unix format. 43848 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43849 new_path=`$CYGPATH -u "$path"` 43850 43851 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43852 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43853 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43854 # "foo.exe" is OK but "foo" is an error. 43855 # 43856 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43857 # It is also a way to make sure we got the proper file name for the real test later on. 43858 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43859 if test "x$test_shortpath" = x; then 43860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43861 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43862 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43863 fi 43864 43865 # Call helper function which possibly converts this using DOS-style short mode. 43866 # If so, the updated path is stored in $new_path. 43867 43868 input_path="$new_path" 43869 # Check if we need to convert this using DOS-style short mode. If the path 43870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43871 # take no chances and rewrite it. 43872 # Note: m4 eats our [], so we need to use [ and ] instead. 43873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43874 if test "x$has_forbidden_chars" != x; then 43875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43876 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43877 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43878 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43879 # Going to short mode and back again did indeed matter. Since short mode is 43880 # case insensitive, let's make it lowercase to improve readability. 43881 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43882 # Now convert it back to Unix-stile (cygpath) 43883 input_path=`$CYGPATH -u "$shortmode_path"` 43884 new_path="$input_path" 43885 fi 43886 fi 43887 43888 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43889 if test "x$test_cygdrive_prefix" = x; then 43890 # As a simple fix, exclude /usr/bin since it's not a real path. 43891 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43892 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43893 # a path prefixed by /cygdrive for fixpath to work. 43894 new_path="$CYGWIN_ROOT_PATH$input_path" 43895 fi 43896 fi 43897 43898 43899 if test "x$path" != "x$new_path"; then 43900 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43901 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43902 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43903 fi 43904 43905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43906 43907 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43908 has_colon=`$ECHO $path | $GREP ^.:` 43909 new_path="$path" 43910 if test "x$has_colon" = x; then 43911 # Not in mixed or Windows style, start by that. 43912 new_path=`cmd //c echo $path` 43913 fi 43914 43915 43916 input_path="$new_path" 43917 # Check if we need to convert this using DOS-style short mode. If the path 43918 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43919 # take no chances and rewrite it. 43920 # Note: m4 eats our [], so we need to use [ and ] instead. 43921 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43922 if test "x$has_forbidden_chars" != x; then 43923 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43924 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43925 fi 43926 43927 43928 windows_path="$new_path" 43929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43930 unix_path=`$CYGPATH -u "$windows_path"` 43931 new_path="$unix_path" 43932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43933 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43934 new_path="$unix_path" 43935 fi 43936 43937 if test "x$path" != "x$new_path"; then 43938 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43940 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43941 fi 43942 43943 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43944 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43945 43946 else 43947 # We're on a posix platform. Hooray! :) 43948 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43949 has_space=`$ECHO "$path" | $GREP " "` 43950 if test "x$has_space" != x; then 43951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43952 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43953 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43954 fi 43955 43956 # Use eval to expand a potential ~ 43957 eval path="$path" 43958 if test ! -f "$path" && test ! -d "$path"; then 43959 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43960 fi 43961 43962 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43963 fi 43964 43965 43966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43967 43968 # Input might be given as Windows format, start by converting to 43969 # unix format. 43970 path="$POTENTIAL_FREETYPE_LIB_PATH" 43971 new_path=`$CYGPATH -u "$path"` 43972 43973 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43974 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43975 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43976 # "foo.exe" is OK but "foo" is an error. 43977 # 43978 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43979 # It is also a way to make sure we got the proper file name for the real test later on. 43980 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43981 if test "x$test_shortpath" = x; then 43982 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43983 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43984 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43985 fi 43986 43987 # Call helper function which possibly converts this using DOS-style short mode. 43988 # If so, the updated path is stored in $new_path. 43989 43990 input_path="$new_path" 43991 # Check if we need to convert this using DOS-style short mode. If the path 43992 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43993 # take no chances and rewrite it. 43994 # Note: m4 eats our [], so we need to use [ and ] instead. 43995 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43996 if test "x$has_forbidden_chars" != x; then 43997 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43998 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43999 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44000 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44001 # Going to short mode and back again did indeed matter. Since short mode is 44002 # case insensitive, let's make it lowercase to improve readability. 44003 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44004 # Now convert it back to Unix-stile (cygpath) 44005 input_path=`$CYGPATH -u "$shortmode_path"` 44006 new_path="$input_path" 44007 fi 44008 fi 44009 44010 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44011 if test "x$test_cygdrive_prefix" = x; then 44012 # As a simple fix, exclude /usr/bin since it's not a real path. 44013 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44014 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44015 # a path prefixed by /cygdrive for fixpath to work. 44016 new_path="$CYGWIN_ROOT_PATH$input_path" 44017 fi 44018 fi 44019 44020 44021 if test "x$path" != "x$new_path"; then 44022 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44023 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44024 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44025 fi 44026 44027 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44028 44029 path="$POTENTIAL_FREETYPE_LIB_PATH" 44030 has_colon=`$ECHO $path | $GREP ^.:` 44031 new_path="$path" 44032 if test "x$has_colon" = x; then 44033 # Not in mixed or Windows style, start by that. 44034 new_path=`cmd //c echo $path` 44035 fi 44036 44037 44038 input_path="$new_path" 44039 # Check if we need to convert this using DOS-style short mode. If the path 44040 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44041 # take no chances and rewrite it. 44042 # Note: m4 eats our [], so we need to use [ and ] instead. 44043 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44044 if test "x$has_forbidden_chars" != x; then 44045 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44046 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44047 fi 44048 44049 44050 windows_path="$new_path" 44051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44052 unix_path=`$CYGPATH -u "$windows_path"` 44053 new_path="$unix_path" 44054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44055 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44056 new_path="$unix_path" 44057 fi 44058 44059 if test "x$path" != "x$new_path"; then 44060 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44061 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44062 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44063 fi 44064 44065 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44066 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44067 44068 else 44069 # We're on a posix platform. Hooray! :) 44070 path="$POTENTIAL_FREETYPE_LIB_PATH" 44071 has_space=`$ECHO "$path" | $GREP " "` 44072 if test "x$has_space" != x; then 44073 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44074 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44075 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44076 fi 44077 44078 # Use eval to expand a potential ~ 44079 eval path="$path" 44080 if test ! -f "$path" && test ! -d "$path"; then 44081 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44082 fi 44083 44084 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44085 fi 44086 44087 44088 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44090 $as_echo_n "checking for freetype includes... " >&6; } 44091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44092 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44093 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44095 $as_echo_n "checking for freetype libraries... " >&6; } 44096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44097 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44098 fi 44099 44100 fi 44101 44102 if test "x$FOUND_FREETYPE" != xyes; then 44103 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 44104 44105 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44106 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44107 METHOD="well-known location" 44108 44109 # First check if the files exists. 44110 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44111 # We found an arbitrary include file. That's a good sign. 44112 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44113 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44114 FOUND_FREETYPE=yes 44115 44116 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44117 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44118 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44119 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44120 FOUND_FREETYPE=no 44121 else 44122 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44123 # On Windows, we will need both .lib and .dll file. 44124 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44125 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44126 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44127 FOUND_FREETYPE=no 44128 fi 44129 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44130 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44131 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44132 fi 44133 fi 44134 fi 44135 44136 if test "x$FOUND_FREETYPE" = xyes; then 44137 44138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44139 44140 # Input might be given as Windows format, start by converting to 44141 # unix format. 44142 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44143 new_path=`$CYGPATH -u "$path"` 44144 44145 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44146 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44147 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44148 # "foo.exe" is OK but "foo" is an error. 44149 # 44150 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44151 # It is also a way to make sure we got the proper file name for the real test later on. 44152 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44153 if test "x$test_shortpath" = x; then 44154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44155 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44156 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44157 fi 44158 44159 # Call helper function which possibly converts this using DOS-style short mode. 44160 # If so, the updated path is stored in $new_path. 44161 44162 input_path="$new_path" 44163 # Check if we need to convert this using DOS-style short mode. If the path 44164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44165 # take no chances and rewrite it. 44166 # Note: m4 eats our [], so we need to use [ and ] instead. 44167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44168 if test "x$has_forbidden_chars" != x; then 44169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44170 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44171 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44172 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44173 # Going to short mode and back again did indeed matter. Since short mode is 44174 # case insensitive, let's make it lowercase to improve readability. 44175 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44176 # Now convert it back to Unix-stile (cygpath) 44177 input_path=`$CYGPATH -u "$shortmode_path"` 44178 new_path="$input_path" 44179 fi 44180 fi 44181 44182 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44183 if test "x$test_cygdrive_prefix" = x; then 44184 # As a simple fix, exclude /usr/bin since it's not a real path. 44185 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44186 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44187 # a path prefixed by /cygdrive for fixpath to work. 44188 new_path="$CYGWIN_ROOT_PATH$input_path" 44189 fi 44190 fi 44191 44192 44193 if test "x$path" != "x$new_path"; then 44194 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44196 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44197 fi 44198 44199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44200 44201 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44202 has_colon=`$ECHO $path | $GREP ^.:` 44203 new_path="$path" 44204 if test "x$has_colon" = x; then 44205 # Not in mixed or Windows style, start by that. 44206 new_path=`cmd //c echo $path` 44207 fi 44208 44209 44210 input_path="$new_path" 44211 # Check if we need to convert this using DOS-style short mode. If the path 44212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44213 # take no chances and rewrite it. 44214 # Note: m4 eats our [], so we need to use [ and ] instead. 44215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44216 if test "x$has_forbidden_chars" != x; then 44217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44218 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44219 fi 44220 44221 44222 windows_path="$new_path" 44223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44224 unix_path=`$CYGPATH -u "$windows_path"` 44225 new_path="$unix_path" 44226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44228 new_path="$unix_path" 44229 fi 44230 44231 if test "x$path" != "x$new_path"; then 44232 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44234 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44235 fi 44236 44237 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44238 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44239 44240 else 44241 # We're on a posix platform. Hooray! :) 44242 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44243 has_space=`$ECHO "$path" | $GREP " "` 44244 if test "x$has_space" != x; then 44245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44246 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44247 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44248 fi 44249 44250 # Use eval to expand a potential ~ 44251 eval path="$path" 44252 if test ! -f "$path" && test ! -d "$path"; then 44253 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44254 fi 44255 44256 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44257 fi 44258 44259 44260 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44261 44262 # Input might be given as Windows format, start by converting to 44263 # unix format. 44264 path="$POTENTIAL_FREETYPE_LIB_PATH" 44265 new_path=`$CYGPATH -u "$path"` 44266 44267 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44268 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44269 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44270 # "foo.exe" is OK but "foo" is an error. 44271 # 44272 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44273 # It is also a way to make sure we got the proper file name for the real test later on. 44274 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44275 if test "x$test_shortpath" = x; then 44276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44277 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44278 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44279 fi 44280 44281 # Call helper function which possibly converts this using DOS-style short mode. 44282 # If so, the updated path is stored in $new_path. 44283 44284 input_path="$new_path" 44285 # Check if we need to convert this using DOS-style short mode. If the path 44286 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44287 # take no chances and rewrite it. 44288 # Note: m4 eats our [], so we need to use [ and ] instead. 44289 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44290 if test "x$has_forbidden_chars" != x; then 44291 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44292 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44293 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44294 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44295 # Going to short mode and back again did indeed matter. Since short mode is 44296 # case insensitive, let's make it lowercase to improve readability. 44297 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44298 # Now convert it back to Unix-stile (cygpath) 44299 input_path=`$CYGPATH -u "$shortmode_path"` 44300 new_path="$input_path" 44301 fi 44302 fi 44303 44304 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44305 if test "x$test_cygdrive_prefix" = x; then 44306 # As a simple fix, exclude /usr/bin since it's not a real path. 44307 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44308 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44309 # a path prefixed by /cygdrive for fixpath to work. 44310 new_path="$CYGWIN_ROOT_PATH$input_path" 44311 fi 44312 fi 44313 44314 44315 if test "x$path" != "x$new_path"; then 44316 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44317 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44318 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44319 fi 44320 44321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44322 44323 path="$POTENTIAL_FREETYPE_LIB_PATH" 44324 has_colon=`$ECHO $path | $GREP ^.:` 44325 new_path="$path" 44326 if test "x$has_colon" = x; then 44327 # Not in mixed or Windows style, start by that. 44328 new_path=`cmd //c echo $path` 44329 fi 44330 44331 44332 input_path="$new_path" 44333 # Check if we need to convert this using DOS-style short mode. If the path 44334 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44335 # take no chances and rewrite it. 44336 # Note: m4 eats our [], so we need to use [ and ] instead. 44337 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44338 if test "x$has_forbidden_chars" != x; then 44339 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44340 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44341 fi 44342 44343 44344 windows_path="$new_path" 44345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44346 unix_path=`$CYGPATH -u "$windows_path"` 44347 new_path="$unix_path" 44348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44350 new_path="$unix_path" 44351 fi 44352 44353 if test "x$path" != "x$new_path"; then 44354 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44355 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44356 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44357 fi 44358 44359 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44360 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44361 44362 else 44363 # We're on a posix platform. Hooray! :) 44364 path="$POTENTIAL_FREETYPE_LIB_PATH" 44365 has_space=`$ECHO "$path" | $GREP " "` 44366 if test "x$has_space" != x; then 44367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44368 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44369 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44370 fi 44371 44372 # Use eval to expand a potential ~ 44373 eval path="$path" 44374 if test ! -f "$path" && test ! -d "$path"; then 44375 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44376 fi 44377 44378 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44379 fi 44380 44381 44382 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44384 $as_echo_n "checking for freetype includes... " >&6; } 44385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44386 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44387 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44389 $as_echo_n "checking for freetype libraries... " >&6; } 44390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44391 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44392 fi 44393 44394 fi 44395 44396 if test "x$FOUND_FREETYPE" != xyes; then 44397 FREETYPE_BASE_DIR="$SYSROOT/usr" 44398 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44399 44400 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44401 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 44402 METHOD="well-known location" 44403 44404 # First check if the files exists. 44405 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44406 # We found an arbitrary include file. That's a good sign. 44407 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44408 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44409 FOUND_FREETYPE=yes 44410 44411 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44412 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44413 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44414 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44415 FOUND_FREETYPE=no 44416 else 44417 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44418 # On Windows, we will need both .lib and .dll file. 44419 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44420 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44421 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44422 FOUND_FREETYPE=no 44423 fi 44424 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44425 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44426 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44427 fi 44428 fi 44429 fi 44430 44431 if test "x$FOUND_FREETYPE" = xyes; then 44432 44433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44434 44435 # Input might be given as Windows format, start by converting to 44436 # unix format. 44437 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44438 new_path=`$CYGPATH -u "$path"` 44439 44440 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44441 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44442 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44443 # "foo.exe" is OK but "foo" is an error. 44444 # 44445 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44446 # It is also a way to make sure we got the proper file name for the real test later on. 44447 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44448 if test "x$test_shortpath" = x; then 44449 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44450 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44451 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44452 fi 44453 44454 # Call helper function which possibly converts this using DOS-style short mode. 44455 # If so, the updated path is stored in $new_path. 44456 44457 input_path="$new_path" 44458 # Check if we need to convert this using DOS-style short mode. If the path 44459 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44460 # take no chances and rewrite it. 44461 # Note: m4 eats our [], so we need to use [ and ] instead. 44462 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44463 if test "x$has_forbidden_chars" != x; then 44464 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44465 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44466 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44467 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44468 # Going to short mode and back again did indeed matter. Since short mode is 44469 # case insensitive, let's make it lowercase to improve readability. 44470 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44471 # Now convert it back to Unix-stile (cygpath) 44472 input_path=`$CYGPATH -u "$shortmode_path"` 44473 new_path="$input_path" 44474 fi 44475 fi 44476 44477 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44478 if test "x$test_cygdrive_prefix" = x; then 44479 # As a simple fix, exclude /usr/bin since it's not a real path. 44480 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44481 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44482 # a path prefixed by /cygdrive for fixpath to work. 44483 new_path="$CYGWIN_ROOT_PATH$input_path" 44484 fi 44485 fi 44486 44487 44488 if test "x$path" != "x$new_path"; then 44489 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44490 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44491 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44492 fi 44493 44494 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44495 44496 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44497 has_colon=`$ECHO $path | $GREP ^.:` 44498 new_path="$path" 44499 if test "x$has_colon" = x; then 44500 # Not in mixed or Windows style, start by that. 44501 new_path=`cmd //c echo $path` 44502 fi 44503 44504 44505 input_path="$new_path" 44506 # Check if we need to convert this using DOS-style short mode. If the path 44507 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44508 # take no chances and rewrite it. 44509 # Note: m4 eats our [], so we need to use [ and ] instead. 44510 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44511 if test "x$has_forbidden_chars" != x; then 44512 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44513 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44514 fi 44515 44516 44517 windows_path="$new_path" 44518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44519 unix_path=`$CYGPATH -u "$windows_path"` 44520 new_path="$unix_path" 44521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44522 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44523 new_path="$unix_path" 44524 fi 44525 44526 if test "x$path" != "x$new_path"; then 44527 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44528 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44529 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44530 fi 44531 44532 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44533 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44534 44535 else 44536 # We're on a posix platform. Hooray! :) 44537 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44538 has_space=`$ECHO "$path" | $GREP " "` 44539 if test "x$has_space" != x; then 44540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44541 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44542 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44543 fi 44544 44545 # Use eval to expand a potential ~ 44546 eval path="$path" 44547 if test ! -f "$path" && test ! -d "$path"; then 44548 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44549 fi 44550 44551 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44552 fi 44553 44554 44555 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44556 44557 # Input might be given as Windows format, start by converting to 44558 # unix format. 44559 path="$POTENTIAL_FREETYPE_LIB_PATH" 44560 new_path=`$CYGPATH -u "$path"` 44561 44562 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44563 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44564 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44565 # "foo.exe" is OK but "foo" is an error. 44566 # 44567 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44568 # It is also a way to make sure we got the proper file name for the real test later on. 44569 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44570 if test "x$test_shortpath" = x; then 44571 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44572 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44573 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44574 fi 44575 44576 # Call helper function which possibly converts this using DOS-style short mode. 44577 # If so, the updated path is stored in $new_path. 44578 44579 input_path="$new_path" 44580 # Check if we need to convert this using DOS-style short mode. If the path 44581 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44582 # take no chances and rewrite it. 44583 # Note: m4 eats our [], so we need to use [ and ] instead. 44584 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44585 if test "x$has_forbidden_chars" != x; then 44586 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44587 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44588 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44589 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44590 # Going to short mode and back again did indeed matter. Since short mode is 44591 # case insensitive, let's make it lowercase to improve readability. 44592 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44593 # Now convert it back to Unix-stile (cygpath) 44594 input_path=`$CYGPATH -u "$shortmode_path"` 44595 new_path="$input_path" 44596 fi 44597 fi 44598 44599 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44600 if test "x$test_cygdrive_prefix" = x; then 44601 # As a simple fix, exclude /usr/bin since it's not a real path. 44602 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44603 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44604 # a path prefixed by /cygdrive for fixpath to work. 44605 new_path="$CYGWIN_ROOT_PATH$input_path" 44606 fi 44607 fi 44608 44609 44610 if test "x$path" != "x$new_path"; then 44611 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44612 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44613 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44614 fi 44615 44616 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44617 44618 path="$POTENTIAL_FREETYPE_LIB_PATH" 44619 has_colon=`$ECHO $path | $GREP ^.:` 44620 new_path="$path" 44621 if test "x$has_colon" = x; then 44622 # Not in mixed or Windows style, start by that. 44623 new_path=`cmd //c echo $path` 44624 fi 44625 44626 44627 input_path="$new_path" 44628 # Check if we need to convert this using DOS-style short mode. If the path 44629 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44630 # take no chances and rewrite it. 44631 # Note: m4 eats our [], so we need to use [ and ] instead. 44632 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44633 if test "x$has_forbidden_chars" != x; then 44634 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44635 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44636 fi 44637 44638 44639 windows_path="$new_path" 44640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44641 unix_path=`$CYGPATH -u "$windows_path"` 44642 new_path="$unix_path" 44643 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44644 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44645 new_path="$unix_path" 44646 fi 44647 44648 if test "x$path" != "x$new_path"; then 44649 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44650 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44651 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44652 fi 44653 44654 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44655 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44656 44657 else 44658 # We're on a posix platform. Hooray! :) 44659 path="$POTENTIAL_FREETYPE_LIB_PATH" 44660 has_space=`$ECHO "$path" | $GREP " "` 44661 if test "x$has_space" != x; then 44662 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44663 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44664 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44665 fi 44666 44667 # Use eval to expand a potential ~ 44668 eval path="$path" 44669 if test ! -f "$path" && test ! -d "$path"; then 44670 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44671 fi 44672 44673 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44674 fi 44675 44676 44677 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44679 $as_echo_n "checking for freetype includes... " >&6; } 44680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44681 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44682 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44684 $as_echo_n "checking for freetype libraries... " >&6; } 44685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44686 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44687 fi 44688 44689 else 44690 44691 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44692 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 44693 METHOD="well-known location" 44694 44695 # First check if the files exists. 44696 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44697 # We found an arbitrary include file. That's a good sign. 44698 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44699 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44700 FOUND_FREETYPE=yes 44701 44702 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44703 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44704 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44705 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44706 FOUND_FREETYPE=no 44707 else 44708 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44709 # On Windows, we will need both .lib and .dll file. 44710 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44711 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44712 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44713 FOUND_FREETYPE=no 44714 fi 44715 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44716 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44717 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44718 fi 44719 fi 44720 fi 44721 44722 if test "x$FOUND_FREETYPE" = xyes; then 44723 44724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44725 44726 # Input might be given as Windows format, start by converting to 44727 # unix format. 44728 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44729 new_path=`$CYGPATH -u "$path"` 44730 44731 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44732 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44733 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44734 # "foo.exe" is OK but "foo" is an error. 44735 # 44736 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44737 # It is also a way to make sure we got the proper file name for the real test later on. 44738 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44739 if test "x$test_shortpath" = x; then 44740 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44741 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44742 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44743 fi 44744 44745 # Call helper function which possibly converts this using DOS-style short mode. 44746 # If so, the updated path is stored in $new_path. 44747 44748 input_path="$new_path" 44749 # Check if we need to convert this using DOS-style short mode. If the path 44750 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44751 # take no chances and rewrite it. 44752 # Note: m4 eats our [], so we need to use [ and ] instead. 44753 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44754 if test "x$has_forbidden_chars" != x; then 44755 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44756 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44757 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44758 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44759 # Going to short mode and back again did indeed matter. Since short mode is 44760 # case insensitive, let's make it lowercase to improve readability. 44761 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44762 # Now convert it back to Unix-stile (cygpath) 44763 input_path=`$CYGPATH -u "$shortmode_path"` 44764 new_path="$input_path" 44765 fi 44766 fi 44767 44768 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44769 if test "x$test_cygdrive_prefix" = x; then 44770 # As a simple fix, exclude /usr/bin since it's not a real path. 44771 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44772 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44773 # a path prefixed by /cygdrive for fixpath to work. 44774 new_path="$CYGWIN_ROOT_PATH$input_path" 44775 fi 44776 fi 44777 44778 44779 if test "x$path" != "x$new_path"; then 44780 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44781 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44782 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44783 fi 44784 44785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44786 44787 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44788 has_colon=`$ECHO $path | $GREP ^.:` 44789 new_path="$path" 44790 if test "x$has_colon" = x; then 44791 # Not in mixed or Windows style, start by that. 44792 new_path=`cmd //c echo $path` 44793 fi 44794 44795 44796 input_path="$new_path" 44797 # Check if we need to convert this using DOS-style short mode. If the path 44798 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44799 # take no chances and rewrite it. 44800 # Note: m4 eats our [], so we need to use [ and ] instead. 44801 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44802 if test "x$has_forbidden_chars" != x; then 44803 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44804 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44805 fi 44806 44807 44808 windows_path="$new_path" 44809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44810 unix_path=`$CYGPATH -u "$windows_path"` 44811 new_path="$unix_path" 44812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44813 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44814 new_path="$unix_path" 44815 fi 44816 44817 if test "x$path" != "x$new_path"; then 44818 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44819 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44820 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44821 fi 44822 44823 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44824 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44825 44826 else 44827 # We're on a posix platform. Hooray! :) 44828 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44829 has_space=`$ECHO "$path" | $GREP " "` 44830 if test "x$has_space" != x; then 44831 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44832 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44833 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44834 fi 44835 44836 # Use eval to expand a potential ~ 44837 eval path="$path" 44838 if test ! -f "$path" && test ! -d "$path"; then 44839 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44840 fi 44841 44842 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44843 fi 44844 44845 44846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44847 44848 # Input might be given as Windows format, start by converting to 44849 # unix format. 44850 path="$POTENTIAL_FREETYPE_LIB_PATH" 44851 new_path=`$CYGPATH -u "$path"` 44852 44853 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44854 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44855 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44856 # "foo.exe" is OK but "foo" is an error. 44857 # 44858 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44859 # It is also a way to make sure we got the proper file name for the real test later on. 44860 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44861 if test "x$test_shortpath" = x; then 44862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44863 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44864 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44865 fi 44866 44867 # Call helper function which possibly converts this using DOS-style short mode. 44868 # If so, the updated path is stored in $new_path. 44869 44870 input_path="$new_path" 44871 # Check if we need to convert this using DOS-style short mode. If the path 44872 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44873 # take no chances and rewrite it. 44874 # Note: m4 eats our [], so we need to use [ and ] instead. 44875 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44876 if test "x$has_forbidden_chars" != x; then 44877 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44878 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44879 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44880 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44881 # Going to short mode and back again did indeed matter. Since short mode is 44882 # case insensitive, let's make it lowercase to improve readability. 44883 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44884 # Now convert it back to Unix-stile (cygpath) 44885 input_path=`$CYGPATH -u "$shortmode_path"` 44886 new_path="$input_path" 44887 fi 44888 fi 44889 44890 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44891 if test "x$test_cygdrive_prefix" = x; then 44892 # As a simple fix, exclude /usr/bin since it's not a real path. 44893 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44894 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44895 # a path prefixed by /cygdrive for fixpath to work. 44896 new_path="$CYGWIN_ROOT_PATH$input_path" 44897 fi 44898 fi 44899 44900 44901 if test "x$path" != "x$new_path"; then 44902 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44903 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44904 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44905 fi 44906 44907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44908 44909 path="$POTENTIAL_FREETYPE_LIB_PATH" 44910 has_colon=`$ECHO $path | $GREP ^.:` 44911 new_path="$path" 44912 if test "x$has_colon" = x; then 44913 # Not in mixed or Windows style, start by that. 44914 new_path=`cmd //c echo $path` 44915 fi 44916 44917 44918 input_path="$new_path" 44919 # Check if we need to convert this using DOS-style short mode. If the path 44920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44921 # take no chances and rewrite it. 44922 # Note: m4 eats our [], so we need to use [ and ] instead. 44923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44924 if test "x$has_forbidden_chars" != x; then 44925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44926 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44927 fi 44928 44929 44930 windows_path="$new_path" 44931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44932 unix_path=`$CYGPATH -u "$windows_path"` 44933 new_path="$unix_path" 44934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44936 new_path="$unix_path" 44937 fi 44938 44939 if test "x$path" != "x$new_path"; then 44940 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44941 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44942 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44943 fi 44944 44945 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44946 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44947 44948 else 44949 # We're on a posix platform. Hooray! :) 44950 path="$POTENTIAL_FREETYPE_LIB_PATH" 44951 has_space=`$ECHO "$path" | $GREP " "` 44952 if test "x$has_space" != x; then 44953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44954 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44955 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44956 fi 44957 44958 # Use eval to expand a potential ~ 44959 eval path="$path" 44960 if test ! -f "$path" && test ! -d "$path"; then 44961 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44962 fi 44963 44964 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44965 fi 44966 44967 44968 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44970 $as_echo_n "checking for freetype includes... " >&6; } 44971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44972 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44973 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44975 $as_echo_n "checking for freetype libraries... " >&6; } 44976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44977 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44978 fi 44979 44980 if test "x$FOUND_FREETYPE" != xyes; then 44981 44982 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44983 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 44984 METHOD="well-known location" 44985 44986 # First check if the files exists. 44987 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44988 # We found an arbitrary include file. That's a good sign. 44989 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44990 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44991 FOUND_FREETYPE=yes 44992 44993 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44994 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44995 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44996 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44997 FOUND_FREETYPE=no 44998 else 44999 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45000 # On Windows, we will need both .lib and .dll file. 45001 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45002 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45003 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45004 FOUND_FREETYPE=no 45005 fi 45006 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45007 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45008 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45009 fi 45010 fi 45011 fi 45012 45013 if test "x$FOUND_FREETYPE" = xyes; then 45014 45015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45016 45017 # Input might be given as Windows format, start by converting to 45018 # unix format. 45019 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45020 new_path=`$CYGPATH -u "$path"` 45021 45022 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45023 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45024 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45025 # "foo.exe" is OK but "foo" is an error. 45026 # 45027 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45028 # It is also a way to make sure we got the proper file name for the real test later on. 45029 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45030 if test "x$test_shortpath" = x; then 45031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45032 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45033 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45034 fi 45035 45036 # Call helper function which possibly converts this using DOS-style short mode. 45037 # If so, the updated path is stored in $new_path. 45038 45039 input_path="$new_path" 45040 # Check if we need to convert this using DOS-style short mode. If the path 45041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45042 # take no chances and rewrite it. 45043 # Note: m4 eats our [], so we need to use [ and ] instead. 45044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45045 if test "x$has_forbidden_chars" != x; then 45046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45047 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45048 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45049 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45050 # Going to short mode and back again did indeed matter. Since short mode is 45051 # case insensitive, let's make it lowercase to improve readability. 45052 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45053 # Now convert it back to Unix-stile (cygpath) 45054 input_path=`$CYGPATH -u "$shortmode_path"` 45055 new_path="$input_path" 45056 fi 45057 fi 45058 45059 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45060 if test "x$test_cygdrive_prefix" = x; then 45061 # As a simple fix, exclude /usr/bin since it's not a real path. 45062 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45063 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45064 # a path prefixed by /cygdrive for fixpath to work. 45065 new_path="$CYGWIN_ROOT_PATH$input_path" 45066 fi 45067 fi 45068 45069 45070 if test "x$path" != "x$new_path"; then 45071 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45073 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45074 fi 45075 45076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45077 45078 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45079 has_colon=`$ECHO $path | $GREP ^.:` 45080 new_path="$path" 45081 if test "x$has_colon" = x; then 45082 # Not in mixed or Windows style, start by that. 45083 new_path=`cmd //c echo $path` 45084 fi 45085 45086 45087 input_path="$new_path" 45088 # Check if we need to convert this using DOS-style short mode. If the path 45089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45090 # take no chances and rewrite it. 45091 # Note: m4 eats our [], so we need to use [ and ] instead. 45092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45093 if test "x$has_forbidden_chars" != x; then 45094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45095 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45096 fi 45097 45098 45099 windows_path="$new_path" 45100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45101 unix_path=`$CYGPATH -u "$windows_path"` 45102 new_path="$unix_path" 45103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45105 new_path="$unix_path" 45106 fi 45107 45108 if test "x$path" != "x$new_path"; then 45109 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45110 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45111 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45112 fi 45113 45114 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45115 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45116 45117 else 45118 # We're on a posix platform. Hooray! :) 45119 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45120 has_space=`$ECHO "$path" | $GREP " "` 45121 if test "x$has_space" != x; then 45122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45123 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45124 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45125 fi 45126 45127 # Use eval to expand a potential ~ 45128 eval path="$path" 45129 if test ! -f "$path" && test ! -d "$path"; then 45130 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45131 fi 45132 45133 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45134 fi 45135 45136 45137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45138 45139 # Input might be given as Windows format, start by converting to 45140 # unix format. 45141 path="$POTENTIAL_FREETYPE_LIB_PATH" 45142 new_path=`$CYGPATH -u "$path"` 45143 45144 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45145 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45146 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45147 # "foo.exe" is OK but "foo" is an error. 45148 # 45149 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45150 # It is also a way to make sure we got the proper file name for the real test later on. 45151 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45152 if test "x$test_shortpath" = x; then 45153 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45154 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45155 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45156 fi 45157 45158 # Call helper function which possibly converts this using DOS-style short mode. 45159 # If so, the updated path is stored in $new_path. 45160 45161 input_path="$new_path" 45162 # Check if we need to convert this using DOS-style short mode. If the path 45163 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45164 # take no chances and rewrite it. 45165 # Note: m4 eats our [], so we need to use [ and ] instead. 45166 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45167 if test "x$has_forbidden_chars" != x; then 45168 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45169 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45170 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45171 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45172 # Going to short mode and back again did indeed matter. Since short mode is 45173 # case insensitive, let's make it lowercase to improve readability. 45174 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45175 # Now convert it back to Unix-stile (cygpath) 45176 input_path=`$CYGPATH -u "$shortmode_path"` 45177 new_path="$input_path" 45178 fi 45179 fi 45180 45181 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45182 if test "x$test_cygdrive_prefix" = x; then 45183 # As a simple fix, exclude /usr/bin since it's not a real path. 45184 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45185 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45186 # a path prefixed by /cygdrive for fixpath to work. 45187 new_path="$CYGWIN_ROOT_PATH$input_path" 45188 fi 45189 fi 45190 45191 45192 if test "x$path" != "x$new_path"; then 45193 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45194 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45195 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45196 fi 45197 45198 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45199 45200 path="$POTENTIAL_FREETYPE_LIB_PATH" 45201 has_colon=`$ECHO $path | $GREP ^.:` 45202 new_path="$path" 45203 if test "x$has_colon" = x; then 45204 # Not in mixed or Windows style, start by that. 45205 new_path=`cmd //c echo $path` 45206 fi 45207 45208 45209 input_path="$new_path" 45210 # Check if we need to convert this using DOS-style short mode. If the path 45211 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45212 # take no chances and rewrite it. 45213 # Note: m4 eats our [], so we need to use [ and ] instead. 45214 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45215 if test "x$has_forbidden_chars" != x; then 45216 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45217 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45218 fi 45219 45220 45221 windows_path="$new_path" 45222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45223 unix_path=`$CYGPATH -u "$windows_path"` 45224 new_path="$unix_path" 45225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45227 new_path="$unix_path" 45228 fi 45229 45230 if test "x$path" != "x$new_path"; then 45231 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45232 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45233 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45234 fi 45235 45236 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45237 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45238 45239 else 45240 # We're on a posix platform. Hooray! :) 45241 path="$POTENTIAL_FREETYPE_LIB_PATH" 45242 has_space=`$ECHO "$path" | $GREP " "` 45243 if test "x$has_space" != x; then 45244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45245 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45246 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45247 fi 45248 45249 # Use eval to expand a potential ~ 45250 eval path="$path" 45251 if test ! -f "$path" && test ! -d "$path"; then 45252 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45253 fi 45254 45255 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45256 fi 45257 45258 45259 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45261 $as_echo_n "checking for freetype includes... " >&6; } 45262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45263 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45264 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45266 $as_echo_n "checking for freetype libraries... " >&6; } 45267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45268 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45269 fi 45270 45271 fi 45272 fi 45273 fi 45274 fi 45275 fi # end check in well-known locations 45276 45277 if test "x$FOUND_FREETYPE" != xyes; then 45278 45279 # Print a helpful message on how to acquire the necessary build dependency. 45280 # freetype is the help tag: freetype, cups, pulse, alsa etc 45281 MISSING_DEPENDENCY=freetype 45282 45283 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45284 cygwin_help $MISSING_DEPENDENCY 45285 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45286 msys_help $MISSING_DEPENDENCY 45287 else 45288 PKGHANDLER_COMMAND= 45289 45290 case $PKGHANDLER in 45291 apt-get) 45292 apt_help $MISSING_DEPENDENCY ;; 45293 yum) 45294 yum_help $MISSING_DEPENDENCY ;; 45295 port) 45296 port_help $MISSING_DEPENDENCY ;; 45297 pkgutil) 45298 pkgutil_help $MISSING_DEPENDENCY ;; 45299 pkgadd) 45300 pkgadd_help $MISSING_DEPENDENCY ;; 45301 esac 45302 45303 if test "x$PKGHANDLER_COMMAND" != x; then 45304 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 45305 fi 45306 fi 45307 45308 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 45309 fi 45310 fi # end user specified settings 45311 45312 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 45313 if test "x$FREETYPE_CFLAGS" = x; then 45314 45315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45316 45317 # Input might be given as Windows format, start by converting to 45318 # unix format. 45319 path="$FREETYPE_INCLUDE_PATH" 45320 new_path=`$CYGPATH -u "$path"` 45321 45322 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45323 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45324 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45325 # "foo.exe" is OK but "foo" is an error. 45326 # 45327 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45328 # It is also a way to make sure we got the proper file name for the real test later on. 45329 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45330 if test "x$test_shortpath" = x; then 45331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45332 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45333 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 45334 fi 45335 45336 # Call helper function which possibly converts this using DOS-style short mode. 45337 # If so, the updated path is stored in $new_path. 45338 45339 input_path="$new_path" 45340 # Check if we need to convert this using DOS-style short mode. If the path 45341 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45342 # take no chances and rewrite it. 45343 # Note: m4 eats our [], so we need to use [ and ] instead. 45344 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45345 if test "x$has_forbidden_chars" != x; then 45346 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45347 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45348 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45349 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45350 # Going to short mode and back again did indeed matter. Since short mode is 45351 # case insensitive, let's make it lowercase to improve readability. 45352 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45353 # Now convert it back to Unix-stile (cygpath) 45354 input_path=`$CYGPATH -u "$shortmode_path"` 45355 new_path="$input_path" 45356 fi 45357 fi 45358 45359 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45360 if test "x$test_cygdrive_prefix" = x; then 45361 # As a simple fix, exclude /usr/bin since it's not a real path. 45362 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45363 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45364 # a path prefixed by /cygdrive for fixpath to work. 45365 new_path="$CYGWIN_ROOT_PATH$input_path" 45366 fi 45367 fi 45368 45369 45370 if test "x$path" != "x$new_path"; then 45371 FREETYPE_INCLUDE_PATH="$new_path" 45372 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45373 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45374 fi 45375 45376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45377 45378 path="$FREETYPE_INCLUDE_PATH" 45379 has_colon=`$ECHO $path | $GREP ^.:` 45380 new_path="$path" 45381 if test "x$has_colon" = x; then 45382 # Not in mixed or Windows style, start by that. 45383 new_path=`cmd //c echo $path` 45384 fi 45385 45386 45387 input_path="$new_path" 45388 # Check if we need to convert this using DOS-style short mode. If the path 45389 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45390 # take no chances and rewrite it. 45391 # Note: m4 eats our [], so we need to use [ and ] instead. 45392 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45393 if test "x$has_forbidden_chars" != x; then 45394 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45395 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45396 fi 45397 45398 45399 windows_path="$new_path" 45400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45401 unix_path=`$CYGPATH -u "$windows_path"` 45402 new_path="$unix_path" 45403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45404 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45405 new_path="$unix_path" 45406 fi 45407 45408 if test "x$path" != "x$new_path"; then 45409 FREETYPE_INCLUDE_PATH="$new_path" 45410 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45411 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45412 fi 45413 45414 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45415 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45416 45417 else 45418 # We're on a posix platform. Hooray! :) 45419 path="$FREETYPE_INCLUDE_PATH" 45420 has_space=`$ECHO "$path" | $GREP " "` 45421 if test "x$has_space" != x; then 45422 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45423 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45424 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45425 fi 45426 45427 # Use eval to expand a potential ~ 45428 eval path="$path" 45429 if test ! -f "$path" && test ! -d "$path"; then 45430 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45431 fi 45432 45433 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45434 fi 45435 45436 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 45437 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 45438 else 45439 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 45440 fi 45441 fi 45442 45443 if test "x$FREETYPE_LIBS" = x; then 45444 45445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45446 45447 # Input might be given as Windows format, start by converting to 45448 # unix format. 45449 path="$FREETYPE_LIB_PATH" 45450 new_path=`$CYGPATH -u "$path"` 45451 45452 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45453 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45454 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45455 # "foo.exe" is OK but "foo" is an error. 45456 # 45457 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45458 # It is also a way to make sure we got the proper file name for the real test later on. 45459 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45460 if test "x$test_shortpath" = x; then 45461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45462 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45463 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 45464 fi 45465 45466 # Call helper function which possibly converts this using DOS-style short mode. 45467 # If so, the updated path is stored in $new_path. 45468 45469 input_path="$new_path" 45470 # Check if we need to convert this using DOS-style short mode. If the path 45471 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45472 # take no chances and rewrite it. 45473 # Note: m4 eats our [], so we need to use [ and ] instead. 45474 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45475 if test "x$has_forbidden_chars" != x; then 45476 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45477 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45478 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45479 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45480 # Going to short mode and back again did indeed matter. Since short mode is 45481 # case insensitive, let's make it lowercase to improve readability. 45482 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45483 # Now convert it back to Unix-stile (cygpath) 45484 input_path=`$CYGPATH -u "$shortmode_path"` 45485 new_path="$input_path" 45486 fi 45487 fi 45488 45489 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45490 if test "x$test_cygdrive_prefix" = x; then 45491 # As a simple fix, exclude /usr/bin since it's not a real path. 45492 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45493 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45494 # a path prefixed by /cygdrive for fixpath to work. 45495 new_path="$CYGWIN_ROOT_PATH$input_path" 45496 fi 45497 fi 45498 45499 45500 if test "x$path" != "x$new_path"; then 45501 FREETYPE_LIB_PATH="$new_path" 45502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 45503 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45504 fi 45505 45506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45507 45508 path="$FREETYPE_LIB_PATH" 45509 has_colon=`$ECHO $path | $GREP ^.:` 45510 new_path="$path" 45511 if test "x$has_colon" = x; then 45512 # Not in mixed or Windows style, start by that. 45513 new_path=`cmd //c echo $path` 45514 fi 45515 45516 45517 input_path="$new_path" 45518 # Check if we need to convert this using DOS-style short mode. If the path 45519 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45520 # take no chances and rewrite it. 45521 # Note: m4 eats our [], so we need to use [ and ] instead. 45522 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45523 if test "x$has_forbidden_chars" != x; then 45524 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45525 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45526 fi 45527 45528 45529 windows_path="$new_path" 45530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45531 unix_path=`$CYGPATH -u "$windows_path"` 45532 new_path="$unix_path" 45533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45534 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45535 new_path="$unix_path" 45536 fi 45537 45538 if test "x$path" != "x$new_path"; then 45539 FREETYPE_LIB_PATH="$new_path" 45540 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 45541 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45542 fi 45543 45544 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45545 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45546 45547 else 45548 # We're on a posix platform. Hooray! :) 45549 path="$FREETYPE_LIB_PATH" 45550 has_space=`$ECHO "$path" | $GREP " "` 45551 if test "x$has_space" != x; then 45552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45553 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45554 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45555 fi 45556 45557 # Use eval to expand a potential ~ 45558 eval path="$path" 45559 if test ! -f "$path" && test ! -d "$path"; then 45560 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45561 fi 45562 45563 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45564 fi 45565 45566 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45567 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 45568 else 45569 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 45570 fi 45571 fi 45572 45573 # Try to compile it 45574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 45575 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 45576 ac_ext=cpp 45577 ac_cpp='$CXXCPP $CPPFLAGS' 45578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45581 45582 PREV_CXXCFLAGS="$CXXFLAGS" 45583 PREV_LIBS="$LIBS" 45584 PREV_CXX="$CXX" 45585 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 45586 LIBS="$LIBS $FREETYPE_LIBS" 45587 CXX="$FIXPATH $CXX" 45588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45589 /* end confdefs.h. */ 45590 45591 #include<ft2build.h> 45592 #include FT_FREETYPE_H 45593 int main () { 45594 FT_Init_FreeType(NULL); 45595 return 0; 45596 } 45597 45598 _ACEOF 45599 if ac_fn_cxx_try_link "$LINENO"; then : 45600 45601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45602 $as_echo "yes" >&6; } 45603 45604 else 45605 45606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45607 $as_echo "no" >&6; } 45608 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 45609 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 45610 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 45611 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 45612 45613 45614 # Print a helpful message on how to acquire the necessary build dependency. 45615 # freetype is the help tag: freetype, cups, pulse, alsa etc 45616 MISSING_DEPENDENCY=freetype 45617 45618 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45619 cygwin_help $MISSING_DEPENDENCY 45620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45621 msys_help $MISSING_DEPENDENCY 45622 else 45623 PKGHANDLER_COMMAND= 45624 45625 case $PKGHANDLER in 45626 apt-get) 45627 apt_help $MISSING_DEPENDENCY ;; 45628 yum) 45629 yum_help $MISSING_DEPENDENCY ;; 45630 port) 45631 port_help $MISSING_DEPENDENCY ;; 45632 pkgutil) 45633 pkgutil_help $MISSING_DEPENDENCY ;; 45634 pkgadd) 45635 pkgadd_help $MISSING_DEPENDENCY ;; 45636 esac 45637 45638 if test "x$PKGHANDLER_COMMAND" != x; then 45639 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 45640 fi 45641 fi 45642 45643 45644 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 45645 45646 45647 fi 45648 rm -f core conftest.err conftest.$ac_objext \ 45649 conftest$ac_exeext conftest.$ac_ext 45650 CXXCFLAGS="$PREV_CXXFLAGS" 45651 LIBS="$PREV_LIBS" 45652 CXX="$PREV_CXX" 45653 ac_ext=cpp 45654 ac_cpp='$CXXCPP $CPPFLAGS' 45655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45658 45659 45660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 45661 $as_echo_n "checking if we should bundle freetype... " >&6; } 45662 if test "x$BUNDLE_FREETYPE" = xyes; then 45663 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 45664 fi 45665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 45666 $as_echo "$BUNDLE_FREETYPE" >&6; } 45667 45668 fi # end freetype needed 45669 45670 45671 45672 45673 45674 45675 45676 ############################################################################### 45677 # 45678 # Check for alsa headers and libraries. Used on Linux/GNU systems. 45679 # 45680 45681 # Check whether --with-alsa was given. 45682 if test "${with_alsa+set}" = set; then : 45683 withval=$with_alsa; 45684 fi 45685 45686 45687 # Check whether --with-alsa-include was given. 45688 if test "${with_alsa_include+set}" = set; then : 45689 withval=$with_alsa_include; 45690 fi 45691 45692 45693 # Check whether --with-alsa-lib was given. 45694 if test "${with_alsa_lib+set}" = set; then : 45695 withval=$with_alsa_lib; 45696 fi 45697 45698 45699 if test "x$ALSA_NOT_NEEDED" = xyes; then 45700 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 45701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 45702 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 45703 fi 45704 ALSA_CFLAGS= 45705 ALSA_LIBS= 45706 else 45707 ALSA_FOUND=no 45708 45709 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 45710 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 45711 fi 45712 45713 if test "x${with_alsa}" != x; then 45714 ALSA_LIBS="-L${with_alsa}/lib -lasound" 45715 ALSA_CFLAGS="-I${with_alsa}/include" 45716 ALSA_FOUND=yes 45717 fi 45718 if test "x${with_alsa_include}" != x; then 45719 ALSA_CFLAGS="-I${with_alsa_include}" 45720 ALSA_FOUND=yes 45721 fi 45722 if test "x${with_alsa_lib}" != x; then 45723 ALSA_LIBS="-L${with_alsa_lib} -lasound" 45724 ALSA_FOUND=yes 45725 fi 45726 if test "x$ALSA_FOUND" = xno; then 45727 45728 45729 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45730 # Source the builddeps file again, to make sure it uses the latest variables! 45731 . $builddepsfile 45732 # Look for a target and build machine specific resource! 45733 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45734 if test "x$resource" = x; then 45735 # Ok, lets instead look for a target specific resource 45736 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 45737 fi 45738 if test "x$resource" = x; then 45739 # Ok, lets instead look for a build specific resource 45740 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 45741 fi 45742 if test "x$resource" = x; then 45743 # Ok, lets instead look for a generic resource 45744 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 45745 resource=${builddep_alsa} 45746 fi 45747 if test "x$resource" != x; then 45748 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 45749 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 45750 # If the resource in the builddeps.conf file is an existing directory, 45751 # for example /java/linux/cups 45752 if test -d ${resource}; then 45753 depdir=${resource} 45754 else 45755 45756 # alsa is for example mymodule 45757 # $resource is for example libs/general/libmymod_1_2_3.zip 45758 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45759 # $with_builddeps_dir is for example /localhome/builddeps 45760 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45761 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45762 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45763 filename=`basename $resource` 45764 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45765 filebase=${filename%%.*} 45766 extension=${filename#*.} 45767 installdir=$with_builddeps_dir/$filebase 45768 if test ! -f $installdir/$filename.unpacked; then 45769 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 45770 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45771 if test ! -d $installdir; then 45772 mkdir -p $installdir 45773 fi 45774 if test ! -d $installdir; then 45775 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45776 fi 45777 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 45778 touch $tmpfile 45779 if test ! -f $tmpfile; then 45780 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45781 fi 45782 45783 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45784 # $tmpfile is the local file name for the downloaded file. 45785 VALID_TOOL=no 45786 if test "x$BDEPS_FTP" = xwget; then 45787 VALID_TOOL=yes 45788 wget -O $tmpfile $with_builddeps_server/$resource 45789 fi 45790 if test "x$BDEPS_FTP" = xlftp; then 45791 VALID_TOOL=yes 45792 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45793 fi 45794 if test "x$BDEPS_FTP" = xftp; then 45795 VALID_TOOL=yes 45796 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45797 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45798 FTPUSERPWD=${FTPSERVER%%@*} 45799 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45800 FTPUSER=${userpwd%%:*} 45801 FTPPWD=${userpwd#*@} 45802 FTPSERVER=${FTPSERVER#*@} 45803 else 45804 FTPUSER=ftp 45805 FTPPWD=ftp 45806 fi 45807 # the "pass" command does not work on some 45808 # ftp clients (read ftp.exe) but if it works, 45809 # passive mode is better! 45810 ( \ 45811 echo "user $FTPUSER $FTPPWD" ; \ 45812 echo "pass" ; \ 45813 echo "bin" ; \ 45814 echo "get $FTPPATH $tmpfile" ; \ 45815 ) | ftp -in $FTPSERVER 45816 fi 45817 if test "x$VALID_TOOL" != xyes; then 45818 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45819 fi 45820 45821 mv $tmpfile $installdir/$filename 45822 if test ! -s $installdir/$filename; then 45823 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45824 fi 45825 case "$extension" in 45826 zip) echo "Unzipping $installdir/$filename..." 45827 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45828 ;; 45829 tar.gz) echo "Untaring $installdir/$filename..." 45830 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45831 ;; 45832 tgz) echo "Untaring $installdir/$filename..." 45833 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45834 ;; 45835 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45836 ;; 45837 esac 45838 fi 45839 if test -f $installdir/$filename.unpacked; then 45840 depdir=$installdir 45841 fi 45842 45843 fi 45844 # Source the builddeps file again, because in the previous command, the depdir 45845 # was updated to point at the current build dependency install directory. 45846 . $builddepsfile 45847 # Now extract variables from the builddeps.conf files. 45848 theroot=${builddep_alsa_ROOT} 45849 thecflags=${builddep_alsa_CFLAGS} 45850 thelibs=${builddep_alsa_LIBS} 45851 if test "x$depdir" = x; then 45852 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 45853 fi 45854 ALSA=$depdir 45855 if test "x$theroot" != x; then 45856 ALSA="$theroot" 45857 fi 45858 if test "x$thecflags" != x; then 45859 ALSA_CFLAGS="$thecflags" 45860 fi 45861 if test "x$thelibs" != x; then 45862 ALSA_LIBS="$thelibs" 45863 fi 45864 ALSA_FOUND=yes 45865 else ALSA_FOUND=no 45866 45867 fi 45868 else ALSA_FOUND=no 45869 45870 fi 45871 45872 fi 45873 # Do not try pkg-config if we have a sysroot set. 45874 if test "x$SYSROOT" = x; then 45875 if test "x$ALSA_FOUND" = xno; then 45876 45877 pkg_failed=no 45878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 45879 $as_echo_n "checking for ALSA... " >&6; } 45880 45881 if test -n "$ALSA_CFLAGS"; then 45882 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 45883 elif test -n "$PKG_CONFIG"; then 45884 if test -n "$PKG_CONFIG" && \ 45885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 45886 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 45887 ac_status=$? 45888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45889 test $ac_status = 0; }; then 45890 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 45891 else 45892 pkg_failed=yes 45893 fi 45894 else 45895 pkg_failed=untried 45896 fi 45897 if test -n "$ALSA_LIBS"; then 45898 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 45899 elif test -n "$PKG_CONFIG"; then 45900 if test -n "$PKG_CONFIG" && \ 45901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 45902 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 45903 ac_status=$? 45904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45905 test $ac_status = 0; }; then 45906 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 45907 else 45908 pkg_failed=yes 45909 fi 45910 else 45911 pkg_failed=untried 45912 fi 45913 45914 45915 45916 if test $pkg_failed = yes; then 45917 45918 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45919 _pkg_short_errors_supported=yes 45920 else 45921 _pkg_short_errors_supported=no 45922 fi 45923 if test $_pkg_short_errors_supported = yes; then 45924 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 45925 else 45926 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 45927 fi 45928 # Put the nasty error message in config.log where it belongs 45929 echo "$ALSA_PKG_ERRORS" >&5 45930 45931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45932 $as_echo "no" >&6; } 45933 ALSA_FOUND=no 45934 elif test $pkg_failed = untried; then 45935 ALSA_FOUND=no 45936 else 45937 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 45938 ALSA_LIBS=$pkg_cv_ALSA_LIBS 45939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45940 $as_echo "yes" >&6; } 45941 ALSA_FOUND=yes 45942 fi 45943 fi 45944 fi 45945 if test "x$ALSA_FOUND" = xno; then 45946 for ac_header in alsa/asoundlib.h 45947 do : 45948 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 45949 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 45950 cat >>confdefs.h <<_ACEOF 45951 #define HAVE_ALSA_ASOUNDLIB_H 1 45952 _ACEOF 45953 45954 ALSA_FOUND=yes 45955 ALSA_CFLAGS=-Iignoreme 45956 ALSA_LIBS=-lasound 45957 DEFAULT_ALSA=yes 45958 45959 else 45960 ALSA_FOUND=no 45961 fi 45962 45963 done 45964 45965 fi 45966 if test "x$ALSA_FOUND" = xno; then 45967 45968 # Print a helpful message on how to acquire the necessary build dependency. 45969 # alsa is the help tag: freetype, cups, pulse, alsa etc 45970 MISSING_DEPENDENCY=alsa 45971 45972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45973 cygwin_help $MISSING_DEPENDENCY 45974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45975 msys_help $MISSING_DEPENDENCY 45976 else 45977 PKGHANDLER_COMMAND= 45978 45979 case $PKGHANDLER in 45980 apt-get) 45981 apt_help $MISSING_DEPENDENCY ;; 45982 yum) 45983 yum_help $MISSING_DEPENDENCY ;; 45984 port) 45985 port_help $MISSING_DEPENDENCY ;; 45986 pkgutil) 45987 pkgutil_help $MISSING_DEPENDENCY ;; 45988 pkgadd) 45989 pkgadd_help $MISSING_DEPENDENCY ;; 45990 esac 45991 45992 if test "x$PKGHANDLER_COMMAND" != x; then 45993 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 45994 fi 45995 fi 45996 45997 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 45998 fi 45999 fi 46000 46001 46002 46003 46004 46005 46006 ############################################################################### 46007 # 46008 # Check for the jpeg library 46009 # 46010 46011 USE_EXTERNAL_LIBJPEG=true 46012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 46013 $as_echo_n "checking for main in -ljpeg... " >&6; } 46014 if ${ac_cv_lib_jpeg_main+:} false; then : 46015 $as_echo_n "(cached) " >&6 46016 else 46017 ac_check_lib_save_LIBS=$LIBS 46018 LIBS="-ljpeg $LIBS" 46019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46020 /* end confdefs.h. */ 46021 46022 46023 int 46024 main () 46025 { 46026 return main (); 46027 ; 46028 return 0; 46029 } 46030 _ACEOF 46031 if ac_fn_cxx_try_link "$LINENO"; then : 46032 ac_cv_lib_jpeg_main=yes 46033 else 46034 ac_cv_lib_jpeg_main=no 46035 fi 46036 rm -f core conftest.err conftest.$ac_objext \ 46037 conftest$ac_exeext conftest.$ac_ext 46038 LIBS=$ac_check_lib_save_LIBS 46039 fi 46040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 46041 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 46042 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 46043 cat >>confdefs.h <<_ACEOF 46044 #define HAVE_LIBJPEG 1 46045 _ACEOF 46046 46047 LIBS="-ljpeg $LIBS" 46048 46049 else 46050 USE_EXTERNAL_LIBJPEG=false 46051 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 46052 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 46053 46054 fi 46055 46056 46057 46058 ############################################################################### 46059 # 46060 # Check for the gif library 46061 # 46062 46063 46064 # Check whether --with-giflib was given. 46065 if test "${with_giflib+set}" = set; then : 46066 withval=$with_giflib; 46067 fi 46068 46069 46070 46071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 46072 $as_echo_n "checking for which giflib to use... " >&6; } 46073 46074 # default is bundled 46075 DEFAULT_GIFLIB=bundled 46076 46077 # 46078 # if user didn't specify, use DEFAULT_GIFLIB 46079 # 46080 if test "x${with_giflib}" = "x"; then 46081 with_giflib=${DEFAULT_GIFLIB} 46082 fi 46083 46084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 46085 $as_echo "${with_giflib}" >&6; } 46086 46087 if test "x${with_giflib}" = "xbundled"; then 46088 USE_EXTERNAL_LIBGIF=false 46089 elif test "x${with_giflib}" = "xsystem"; then 46090 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 46091 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 46092 46093 else 46094 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 46095 fi 46096 46097 46098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 46099 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 46100 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 46101 $as_echo_n "(cached) " >&6 46102 else 46103 ac_check_lib_save_LIBS=$LIBS 46104 LIBS="-lgif $LIBS" 46105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46106 /* end confdefs.h. */ 46107 46108 /* Override any GCC internal prototype to avoid an error. 46109 Use char because int might match the return type of a GCC 46110 builtin and then its argument prototype would still apply. */ 46111 #ifdef __cplusplus 46112 extern "C" 46113 #endif 46114 char DGifGetCode (); 46115 int 46116 main () 46117 { 46118 return DGifGetCode (); 46119 ; 46120 return 0; 46121 } 46122 _ACEOF 46123 if ac_fn_cxx_try_link "$LINENO"; then : 46124 ac_cv_lib_gif_DGifGetCode=yes 46125 else 46126 ac_cv_lib_gif_DGifGetCode=no 46127 fi 46128 rm -f core conftest.err conftest.$ac_objext \ 46129 conftest$ac_exeext conftest.$ac_ext 46130 LIBS=$ac_check_lib_save_LIBS 46131 fi 46132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 46133 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 46134 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 46135 cat >>confdefs.h <<_ACEOF 46136 #define HAVE_LIBGIF 1 46137 _ACEOF 46138 46139 LIBS="-lgif $LIBS" 46140 46141 else 46142 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 46143 fi 46144 46145 46146 USE_EXTERNAL_LIBGIF=true 46147 else 46148 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 46149 fi 46150 46151 46152 ############################################################################### 46153 # 46154 # Check for the zlib library 46155 # 46156 46157 46158 # Check whether --with-zlib was given. 46159 if test "${with_zlib+set}" = set; then : 46160 withval=$with_zlib; 46161 fi 46162 46163 46164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 46165 $as_echo_n "checking for compress in -lz... " >&6; } 46166 if ${ac_cv_lib_z_compress+:} false; then : 46167 $as_echo_n "(cached) " >&6 46168 else 46169 ac_check_lib_save_LIBS=$LIBS 46170 LIBS="-lz $LIBS" 46171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46172 /* end confdefs.h. */ 46173 46174 /* Override any GCC internal prototype to avoid an error. 46175 Use char because int might match the return type of a GCC 46176 builtin and then its argument prototype would still apply. */ 46177 #ifdef __cplusplus 46178 extern "C" 46179 #endif 46180 char compress (); 46181 int 46182 main () 46183 { 46184 return compress (); 46185 ; 46186 return 0; 46187 } 46188 _ACEOF 46189 if ac_fn_cxx_try_link "$LINENO"; then : 46190 ac_cv_lib_z_compress=yes 46191 else 46192 ac_cv_lib_z_compress=no 46193 fi 46194 rm -f core conftest.err conftest.$ac_objext \ 46195 conftest$ac_exeext conftest.$ac_ext 46196 LIBS=$ac_check_lib_save_LIBS 46197 fi 46198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 46199 $as_echo "$ac_cv_lib_z_compress" >&6; } 46200 if test "x$ac_cv_lib_z_compress" = xyes; then : 46201 ZLIB_FOUND=yes 46202 else 46203 ZLIB_FOUND=no 46204 fi 46205 46206 46207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 46208 $as_echo_n "checking for which zlib to use... " >&6; } 46209 46210 DEFAULT_ZLIB=bundled 46211 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 46212 # 46213 # On macosx default is system...on others default is 46214 # 46215 DEFAULT_ZLIB=system 46216 fi 46217 46218 if test "x${ZLIB_FOUND}" != "xyes"; then 46219 # 46220 # If we don't find any system...set default to bundled 46221 # 46222 DEFAULT_ZLIB=bundled 46223 fi 46224 46225 # 46226 # If user didn't specify, use DEFAULT_ZLIB 46227 # 46228 if test "x${with_zlib}" = "x"; then 46229 with_zlib=${DEFAULT_ZLIB} 46230 fi 46231 46232 if test "x${with_zlib}" = "xbundled"; then 46233 USE_EXTERNAL_LIBZ=false 46234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 46235 $as_echo "bundled" >&6; } 46236 elif test "x${with_zlib}" = "xsystem"; then 46237 if test "x${ZLIB_FOUND}" = "xyes"; then 46238 USE_EXTERNAL_LIBZ=true 46239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 46240 $as_echo "system" >&6; } 46241 else 46242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 46243 $as_echo "system not found" >&6; } 46244 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 46245 fi 46246 else 46247 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 46248 fi 46249 46250 46251 46252 ############################################################################### 46253 LIBZIP_CAN_USE_MMAP=true 46254 46255 46256 46257 ############################################################################### 46258 # 46259 # Check if altzone exists in time.h 46260 # 46261 46262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46263 /* end confdefs.h. */ 46264 #include <time.h> 46265 int 46266 main () 46267 { 46268 return (int)altzone; 46269 ; 46270 return 0; 46271 } 46272 _ACEOF 46273 if ac_fn_cxx_try_link "$LINENO"; then : 46274 has_altzone=yes 46275 else 46276 has_altzone=no 46277 fi 46278 rm -f core conftest.err conftest.$ac_objext \ 46279 conftest$ac_exeext conftest.$ac_ext 46280 if test "x$has_altzone" = xyes; then 46281 46282 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 46283 46284 fi 46285 46286 ############################################################################### 46287 # 46288 # Check the maths library 46289 # 46290 46291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 46292 $as_echo_n "checking for cos in -lm... " >&6; } 46293 if ${ac_cv_lib_m_cos+:} false; then : 46294 $as_echo_n "(cached) " >&6 46295 else 46296 ac_check_lib_save_LIBS=$LIBS 46297 LIBS="-lm $LIBS" 46298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46299 /* end confdefs.h. */ 46300 46301 /* Override any GCC internal prototype to avoid an error. 46302 Use char because int might match the return type of a GCC 46303 builtin and then its argument prototype would still apply. */ 46304 #ifdef __cplusplus 46305 extern "C" 46306 #endif 46307 char cos (); 46308 int 46309 main () 46310 { 46311 return cos (); 46312 ; 46313 return 0; 46314 } 46315 _ACEOF 46316 if ac_fn_cxx_try_link "$LINENO"; then : 46317 ac_cv_lib_m_cos=yes 46318 else 46319 ac_cv_lib_m_cos=no 46320 fi 46321 rm -f core conftest.err conftest.$ac_objext \ 46322 conftest$ac_exeext conftest.$ac_ext 46323 LIBS=$ac_check_lib_save_LIBS 46324 fi 46325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 46326 $as_echo "$ac_cv_lib_m_cos" >&6; } 46327 if test "x$ac_cv_lib_m_cos" = xyes; then : 46328 cat >>confdefs.h <<_ACEOF 46329 #define HAVE_LIBM 1 46330 _ACEOF 46331 46332 LIBS="-lm $LIBS" 46333 46334 else 46335 46336 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 46337 $as_echo "$as_me: Maths library was not found" >&6;} 46338 46339 46340 fi 46341 46342 46343 46344 ############################################################################### 46345 # 46346 # Check for libdl.so 46347 46348 save_LIBS="$LIBS" 46349 LIBS="" 46350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 46351 $as_echo_n "checking for dlopen in -ldl... " >&6; } 46352 if ${ac_cv_lib_dl_dlopen+:} false; then : 46353 $as_echo_n "(cached) " >&6 46354 else 46355 ac_check_lib_save_LIBS=$LIBS 46356 LIBS="-ldl $LIBS" 46357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46358 /* end confdefs.h. */ 46359 46360 /* Override any GCC internal prototype to avoid an error. 46361 Use char because int might match the return type of a GCC 46362 builtin and then its argument prototype would still apply. */ 46363 #ifdef __cplusplus 46364 extern "C" 46365 #endif 46366 char dlopen (); 46367 int 46368 main () 46369 { 46370 return dlopen (); 46371 ; 46372 return 0; 46373 } 46374 _ACEOF 46375 if ac_fn_cxx_try_link "$LINENO"; then : 46376 ac_cv_lib_dl_dlopen=yes 46377 else 46378 ac_cv_lib_dl_dlopen=no 46379 fi 46380 rm -f core conftest.err conftest.$ac_objext \ 46381 conftest$ac_exeext conftest.$ac_ext 46382 LIBS=$ac_check_lib_save_LIBS 46383 fi 46384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 46385 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 46386 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 46387 cat >>confdefs.h <<_ACEOF 46388 #define HAVE_LIBDL 1 46389 _ACEOF 46390 46391 LIBS="-ldl $LIBS" 46392 46393 fi 46394 46395 LIBDL="$LIBS" 46396 46397 LIBS="$save_LIBS" 46398 46399 46400 ############################################################################### 46401 # 46402 # statically link libstdc++ before C++ ABI is stablized on Linux unless 46403 # dynamic build is configured on command line. 46404 # 46405 46406 # Check whether --with-stdc++lib was given. 46407 if test "${with_stdc__lib+set}" = set; then : 46408 withval=$with_stdc__lib; 46409 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 46410 && test "x$with_stdc__lib" != xdefault; then 46411 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 46412 fi 46413 46414 else 46415 with_stdc__lib=default 46416 46417 fi 46418 46419 46420 if test "x$OPENJDK_TARGET_OS" = xlinux; then 46421 # Test if -lstdc++ works. 46422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 46423 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 46424 ac_ext=cpp 46425 ac_cpp='$CXXCPP $CPPFLAGS' 46426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46429 46430 OLD_CXXFLAGS="$CXXFLAGS" 46431 CXXFLAGS="$CXXFLAGS -lstdc++" 46432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46433 /* end confdefs.h. */ 46434 46435 int 46436 main () 46437 { 46438 return 0; 46439 ; 46440 return 0; 46441 } 46442 _ACEOF 46443 if ac_fn_cxx_try_link "$LINENO"; then : 46444 has_dynamic_libstdcxx=yes 46445 else 46446 has_dynamic_libstdcxx=no 46447 fi 46448 rm -f core conftest.err conftest.$ac_objext \ 46449 conftest$ac_exeext conftest.$ac_ext 46450 CXXFLAGS="$OLD_CXXFLAGS" 46451 ac_ext=cpp 46452 ac_cpp='$CXXCPP $CPPFLAGS' 46453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46456 46457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 46458 $as_echo "$has_dynamic_libstdcxx" >&6; } 46459 46460 # Test if stdc++ can be linked statically. 46461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 46462 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 46463 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 46464 ac_ext=cpp 46465 ac_cpp='$CXXCPP $CPPFLAGS' 46466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46469 46470 OLD_LIBS="$LIBS" 46471 OLD_CXX="$CXX" 46472 LIBS="$STATIC_STDCXX_FLAGS" 46473 CXX="$CC" 46474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46475 /* end confdefs.h. */ 46476 46477 int 46478 main () 46479 { 46480 return 0; 46481 ; 46482 return 0; 46483 } 46484 _ACEOF 46485 if ac_fn_cxx_try_link "$LINENO"; then : 46486 has_static_libstdcxx=yes 46487 else 46488 has_static_libstdcxx=no 46489 fi 46490 rm -f core conftest.err conftest.$ac_objext \ 46491 conftest$ac_exeext conftest.$ac_ext 46492 LIBS="$OLD_LIBS" 46493 CXX="$OLD_CXX" 46494 ac_ext=cpp 46495 ac_cpp='$CXXCPP $CPPFLAGS' 46496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46499 46500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 46501 $as_echo "$has_static_libstdcxx" >&6; } 46502 46503 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 46504 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 46505 fi 46506 46507 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 46508 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 46509 fi 46510 46511 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 46512 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 46513 fi 46514 46515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 46516 $as_echo_n "checking how to link with libstdc++... " >&6; } 46517 # If dynamic was requested, it's available since it would fail above otherwise. 46518 # If dynamic wasn't requested, go with static unless it isn't available. 46519 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 46520 LIBCXX="$LIBCXX -lstdc++" 46521 LDCXX="$CXX" 46522 STATIC_CXX_SETTING="STATIC_CXX=false" 46523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 46524 $as_echo "dynamic" >&6; } 46525 else 46526 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 46527 LDCXX="$CC" 46528 STATIC_CXX_SETTING="STATIC_CXX=true" 46529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 46530 $as_echo "static" >&6; } 46531 fi 46532 fi 46533 46534 46535 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 46536 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 46537 46538 pkg_failed=no 46539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 46540 $as_echo_n "checking for LIBFFI... " >&6; } 46541 46542 if test -n "$LIBFFI_CFLAGS"; then 46543 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 46544 elif test -n "$PKG_CONFIG"; then 46545 if test -n "$PKG_CONFIG" && \ 46546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 46547 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 46548 ac_status=$? 46549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46550 test $ac_status = 0; }; then 46551 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 46552 else 46553 pkg_failed=yes 46554 fi 46555 else 46556 pkg_failed=untried 46557 fi 46558 if test -n "$LIBFFI_LIBS"; then 46559 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 46560 elif test -n "$PKG_CONFIG"; then 46561 if test -n "$PKG_CONFIG" && \ 46562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 46563 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 46564 ac_status=$? 46565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46566 test $ac_status = 0; }; then 46567 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 46568 else 46569 pkg_failed=yes 46570 fi 46571 else 46572 pkg_failed=untried 46573 fi 46574 46575 46576 46577 if test $pkg_failed = yes; then 46578 46579 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 46580 _pkg_short_errors_supported=yes 46581 else 46582 _pkg_short_errors_supported=no 46583 fi 46584 if test $_pkg_short_errors_supported = yes; then 46585 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 46586 else 46587 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 46588 fi 46589 # Put the nasty error message in config.log where it belongs 46590 echo "$LIBFFI_PKG_ERRORS" >&5 46591 46592 as_fn_error $? "Package requirements (libffi) were not met: 46593 46594 $LIBFFI_PKG_ERRORS 46595 46596 Consider adjusting the PKG_CONFIG_PATH environment variable if you 46597 installed software in a non-standard prefix. 46598 46599 Alternatively, you may set the environment variables LIBFFI_CFLAGS 46600 and LIBFFI_LIBS to avoid the need to call pkg-config. 46601 See the pkg-config man page for more details. 46602 " "$LINENO" 5 46603 elif test $pkg_failed = untried; then 46604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 46605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 46606 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 46607 is in your PATH or set the PKG_CONFIG environment variable to the full 46608 path to pkg-config. 46609 46610 Alternatively, you may set the environment variables LIBFFI_CFLAGS 46611 and LIBFFI_LIBS to avoid the need to call pkg-config. 46612 See the pkg-config man page for more details. 46613 46614 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 46615 See \`config.log' for more details" "$LINENO" 5; } 46616 else 46617 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 46618 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 46619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46620 $as_echo "yes" >&6; } 46621 : 46622 fi 46623 46624 fi 46625 46626 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 46627 # Extract the first word of "llvm-config", so it can be a program name with args. 46628 set dummy llvm-config; 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_prog_LLVM_CONFIG+:} false; then : 46632 $as_echo_n "(cached) " >&6 46633 else 46634 if test -n "$LLVM_CONFIG"; then 46635 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 46636 else 46637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46638 for as_dir in $PATH 46639 do 46640 IFS=$as_save_IFS 46641 test -z "$as_dir" && as_dir=. 46642 for ac_exec_ext in '' $ac_executable_extensions; do 46643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46644 ac_cv_prog_LLVM_CONFIG="llvm-config" 46645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46646 break 2 46647 fi 46648 done 46649 done 46650 IFS=$as_save_IFS 46651 46652 fi 46653 fi 46654 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 46655 if test -n "$LLVM_CONFIG"; then 46656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 46657 $as_echo "$LLVM_CONFIG" >&6; } 46658 else 46659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46660 $as_echo "no" >&6; } 46661 fi 46662 46663 46664 46665 if test "x$LLVM_CONFIG" != xllvm-config; then 46666 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 46667 fi 46668 46669 llvm_components="jit mcjit engine nativecodegen native" 46670 unset LLVM_CFLAGS 46671 for flag in $("$LLVM_CONFIG" --cxxflags); do 46672 if echo "${flag}" | grep -q '^-[ID]'; then 46673 if test "${flag}" != "-D_DEBUG" ; then 46674 if test "${LLVM_CFLAGS}" != "" ; then 46675 LLVM_CFLAGS="${LLVM_CFLAGS} " 46676 fi 46677 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 46678 fi 46679 fi 46680 done 46681 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 46682 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 46683 46684 unset LLVM_LDFLAGS 46685 for flag in $("${LLVM_CONFIG}" --ldflags); do 46686 if echo "${flag}" | grep -q '^-L'; then 46687 if test "${LLVM_LDFLAGS}" != ""; then 46688 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 46689 fi 46690 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 46691 fi 46692 done 46693 46694 unset LLVM_LIBS 46695 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 46696 if echo "${flag}" | grep -q '^-l'; then 46697 if test "${LLVM_LIBS}" != ""; then 46698 LLVM_LIBS="${LLVM_LIBS} " 46699 fi 46700 LLVM_LIBS="${LLVM_LIBS}${flag}" 46701 fi 46702 done 46703 46704 46705 46706 46707 fi 46708 46709 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 46710 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 46711 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 46712 fi 46713 46714 # TODO better (platform agnostic) test 46715 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 46716 LIBCXX="-lstdc++" 46717 fi 46718 46719 46720 46721 46722 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 46723 46724 46725 # Check whether --with-msvcr-dll was given. 46726 if test "${with_msvcr_dll+set}" = set; then : 46727 withval=$with_msvcr_dll; 46728 fi 46729 46730 46731 if test "x$with_msvcr_dll" != x; then 46732 # If given explicitely by user, do not probe. If not present, fail directly. 46733 46734 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 46735 METHOD="--with-msvcr-dll" 46736 if test -e "$POSSIBLE_MSVCR_DLL"; then 46737 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46738 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46739 46740 # Need to check if the found msvcr is correct architecture 46741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46742 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46743 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46744 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46745 CORRECT_MSVCR_ARCH=386 46746 else 46747 CORRECT_MSVCR_ARCH=x86-64 46748 fi 46749 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46751 $as_echo "ok" >&6; } 46752 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46754 $as_echo_n "checking for msvcr100.dll... " >&6; } 46755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46756 $as_echo "$MSVCR_DLL" >&6; } 46757 else 46758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46759 $as_echo "incorrect, ignoring" >&6; } 46760 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46761 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46762 fi 46763 fi 46764 46765 if test "x$MSVCR_DLL" = x; then 46766 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 46767 fi 46768 fi 46769 46770 if test "x$MSVCR_DLL" = x; then 46771 # Probe: Using well-known location from Visual Studio 10.0 46772 if test "x$VCINSTALLDIR" != x; then 46773 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 46774 46775 windows_path="$CYGWIN_VC_INSTALL_DIR" 46776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46777 unix_path=`$CYGPATH -u "$windows_path"` 46778 CYGWIN_VC_INSTALL_DIR="$unix_path" 46779 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46780 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46781 CYGWIN_VC_INSTALL_DIR="$unix_path" 46782 fi 46783 46784 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46785 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 46786 else 46787 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 46788 fi 46789 46790 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46791 METHOD="well-known location in VCINSTALLDIR" 46792 if test -e "$POSSIBLE_MSVCR_DLL"; then 46793 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46794 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46795 46796 # Need to check if the found msvcr is correct architecture 46797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46798 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46799 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46800 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46801 CORRECT_MSVCR_ARCH=386 46802 else 46803 CORRECT_MSVCR_ARCH=x86-64 46804 fi 46805 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46807 $as_echo "ok" >&6; } 46808 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46810 $as_echo_n "checking for msvcr100.dll... " >&6; } 46811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46812 $as_echo "$MSVCR_DLL" >&6; } 46813 else 46814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46815 $as_echo "incorrect, ignoring" >&6; } 46816 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46817 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46818 fi 46819 fi 46820 46821 fi 46822 fi 46823 46824 if test "x$MSVCR_DLL" = x; then 46825 # Probe: Check in the Boot JDK directory. 46826 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 46827 46828 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46829 METHOD="well-known location in Boot JDK" 46830 if test -e "$POSSIBLE_MSVCR_DLL"; then 46831 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46832 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46833 46834 # Need to check if the found msvcr is correct architecture 46835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46836 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46837 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46838 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46839 CORRECT_MSVCR_ARCH=386 46840 else 46841 CORRECT_MSVCR_ARCH=x86-64 46842 fi 46843 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46845 $as_echo "ok" >&6; } 46846 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46848 $as_echo_n "checking for msvcr100.dll... " >&6; } 46849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46850 $as_echo "$MSVCR_DLL" >&6; } 46851 else 46852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46853 $as_echo "incorrect, ignoring" >&6; } 46854 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46855 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46856 fi 46857 fi 46858 46859 fi 46860 46861 if test "x$MSVCR_DLL" = x; then 46862 # Probe: Look in the Windows system32 directory 46863 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 46864 46865 windows_path="$CYGWIN_SYSTEMROOT" 46866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46867 unix_path=`$CYGPATH -u "$windows_path"` 46868 CYGWIN_SYSTEMROOT="$unix_path" 46869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46871 CYGWIN_SYSTEMROOT="$unix_path" 46872 fi 46873 46874 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 46875 46876 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46877 METHOD="well-known location in SYSTEMROOT" 46878 if test -e "$POSSIBLE_MSVCR_DLL"; then 46879 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46880 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46881 46882 # Need to check if the found msvcr is correct architecture 46883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46884 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46885 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46886 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46887 CORRECT_MSVCR_ARCH=386 46888 else 46889 CORRECT_MSVCR_ARCH=x86-64 46890 fi 46891 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46893 $as_echo "ok" >&6; } 46894 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46896 $as_echo_n "checking for msvcr100.dll... " >&6; } 46897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46898 $as_echo "$MSVCR_DLL" >&6; } 46899 else 46900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46901 $as_echo "incorrect, ignoring" >&6; } 46902 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46903 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46904 fi 46905 fi 46906 46907 fi 46908 46909 if test "x$MSVCR_DLL" = x; then 46910 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 46911 if test "x$VS100COMNTOOLS" != x; then 46912 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 46913 46914 windows_path="$CYGWIN_VS_TOOLS_DIR" 46915 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46916 unix_path=`$CYGPATH -u "$windows_path"` 46917 CYGWIN_VS_TOOLS_DIR="$unix_path" 46918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46919 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46920 CYGWIN_VS_TOOLS_DIR="$unix_path" 46921 fi 46922 46923 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46924 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 46925 else 46926 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 46927 fi 46928 46929 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46930 METHOD="search of VS100COMNTOOLS" 46931 if test -e "$POSSIBLE_MSVCR_DLL"; then 46932 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46933 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46934 46935 # Need to check if the found msvcr is correct architecture 46936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46937 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46938 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46939 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46940 CORRECT_MSVCR_ARCH=386 46941 else 46942 CORRECT_MSVCR_ARCH=x86-64 46943 fi 46944 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46946 $as_echo "ok" >&6; } 46947 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46949 $as_echo_n "checking for msvcr100.dll... " >&6; } 46950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46951 $as_echo "$MSVCR_DLL" >&6; } 46952 else 46953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46954 $as_echo "incorrect, ignoring" >&6; } 46955 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46956 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46957 fi 46958 fi 46959 46960 fi 46961 fi 46962 46963 if test "x$MSVCR_DLL" = x; then 46964 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 46965 # (This was the original behaviour; kept since it might turn up something) 46966 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 46967 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46968 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 46969 else 46970 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 46971 if test "x$POSSIBLE_MSVCR_DLL" = x; then 46972 # We're grasping at straws now... 46973 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 46974 fi 46975 fi 46976 46977 46978 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46979 METHOD="search of VCINSTALLDIR" 46980 if test -e "$POSSIBLE_MSVCR_DLL"; then 46981 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46982 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46983 46984 # Need to check if the found msvcr is correct architecture 46985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46986 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46987 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46988 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46989 CORRECT_MSVCR_ARCH=386 46990 else 46991 CORRECT_MSVCR_ARCH=x86-64 46992 fi 46993 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46995 $as_echo "ok" >&6; } 46996 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46998 $as_echo_n "checking for msvcr100.dll... " >&6; } 46999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47000 $as_echo "$MSVCR_DLL" >&6; } 47001 else 47002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47003 $as_echo "incorrect, ignoring" >&6; } 47004 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47005 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47006 fi 47007 fi 47008 47009 fi 47010 fi 47011 47012 if test "x$MSVCR_DLL" = x; then 47013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47014 $as_echo_n "checking for msvcr100.dll... " >&6; } 47015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47016 $as_echo "no" >&6; } 47017 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 47018 fi 47019 47020 47021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47022 47023 # Input might be given as Windows format, start by converting to 47024 # unix format. 47025 path="$MSVCR_DLL" 47026 new_path=`$CYGPATH -u "$path"` 47027 47028 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47029 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47030 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47031 # "foo.exe" is OK but "foo" is an error. 47032 # 47033 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47034 # It is also a way to make sure we got the proper file name for the real test later on. 47035 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47036 if test "x$test_shortpath" = x; then 47037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 47038 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 47039 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 47040 fi 47041 47042 # Call helper function which possibly converts this using DOS-style short mode. 47043 # If so, the updated path is stored in $new_path. 47044 47045 input_path="$new_path" 47046 # Check if we need to convert this using DOS-style short mode. If the path 47047 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47048 # take no chances and rewrite it. 47049 # Note: m4 eats our [], so we need to use [ and ] instead. 47050 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47051 if test "x$has_forbidden_chars" != x; then 47052 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47053 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47054 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47055 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47056 # Going to short mode and back again did indeed matter. Since short mode is 47057 # case insensitive, let's make it lowercase to improve readability. 47058 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47059 # Now convert it back to Unix-stile (cygpath) 47060 input_path=`$CYGPATH -u "$shortmode_path"` 47061 new_path="$input_path" 47062 fi 47063 fi 47064 47065 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47066 if test "x$test_cygdrive_prefix" = x; then 47067 # As a simple fix, exclude /usr/bin since it's not a real path. 47068 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47069 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47070 # a path prefixed by /cygdrive for fixpath to work. 47071 new_path="$CYGWIN_ROOT_PATH$input_path" 47072 fi 47073 fi 47074 47075 47076 if test "x$path" != "x$new_path"; then 47077 MSVCR_DLL="$new_path" 47078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 47079 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 47080 fi 47081 47082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47083 47084 path="$MSVCR_DLL" 47085 has_colon=`$ECHO $path | $GREP ^.:` 47086 new_path="$path" 47087 if test "x$has_colon" = x; then 47088 # Not in mixed or Windows style, start by that. 47089 new_path=`cmd //c echo $path` 47090 fi 47091 47092 47093 input_path="$new_path" 47094 # Check if we need to convert this using DOS-style short mode. If the path 47095 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47096 # take no chances and rewrite it. 47097 # Note: m4 eats our [], so we need to use [ and ] instead. 47098 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47099 if test "x$has_forbidden_chars" != x; then 47100 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47101 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47102 fi 47103 47104 47105 windows_path="$new_path" 47106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47107 unix_path=`$CYGPATH -u "$windows_path"` 47108 new_path="$unix_path" 47109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47111 new_path="$unix_path" 47112 fi 47113 47114 if test "x$path" != "x$new_path"; then 47115 MSVCR_DLL="$new_path" 47116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 47117 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 47118 fi 47119 47120 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47121 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47122 47123 else 47124 # We're on a posix platform. Hooray! :) 47125 path="$MSVCR_DLL" 47126 has_space=`$ECHO "$path" | $GREP " "` 47127 if test "x$has_space" != x; then 47128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 47129 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 47130 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47131 fi 47132 47133 # Use eval to expand a potential ~ 47134 eval path="$path" 47135 if test ! -f "$path" && test ! -d "$path"; then 47136 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 47137 fi 47138 47139 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 47140 fi 47141 47142 47143 47144 47145 # Check whether --with-dxsdk was given. 47146 if test "${with_dxsdk+set}" = set; then : 47147 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 47148 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 47149 fi 47150 47151 47152 47153 47154 # Check whether --with-dxsdk-lib was given. 47155 if test "${with_dxsdk_lib+set}" = set; then : 47156 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 47157 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 47158 fi 47159 47160 47161 47162 47163 # Check whether --with-dxsdk-include was given. 47164 if test "${with_dxsdk_include+set}" = set; then : 47165 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 47166 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 47167 fi 47168 47169 47170 fi 47171 47172 47173 47174 ############################################################################### 47175 # 47176 # We need to do some final tweaking, when everything else is done. 47177 # 47178 ############################################################################### 47179 47180 47181 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 47182 47183 47184 # The name of the Service Agent jar. 47185 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 47186 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 47187 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 47188 fi 47189 47190 47191 47192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 47193 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 47194 47195 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 47196 ENABLE_INTREE_EC=yes 47197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47198 $as_echo "yes" >&6; } 47199 else 47200 ENABLE_INTREE_EC=no 47201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47202 $as_echo "no" >&6; } 47203 fi 47204 47205 47206 47207 47208 ############################################################################### 47209 # 47210 # Configure parts of the build that only affect the build performance, 47211 # not the result. 47212 # 47213 ############################################################################### 47214 47215 47216 # How many cores do we have on this build system? 47217 47218 # Check whether --with-num-cores was given. 47219 if test "${with_num_cores+set}" = set; then : 47220 withval=$with_num_cores; 47221 fi 47222 47223 if test "x$with_num_cores" = x; then 47224 # The number of cores were not specified, try to probe them. 47225 47226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 47227 $as_echo_n "checking for number of cores... " >&6; } 47228 NUM_CORES=1 47229 FOUND_CORES=no 47230 47231 if test -f /proc/cpuinfo; then 47232 # Looks like a Linux (or cygwin) system 47233 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 47234 FOUND_CORES=yes 47235 elif test -x /usr/sbin/psrinfo; then 47236 # Looks like a Solaris system 47237 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 47238 FOUND_CORES=yes 47239 elif test -x /usr/sbin/system_profiler; then 47240 # Looks like a MacOSX system 47241 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 47242 FOUND_CORES=yes 47243 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 47244 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 47245 FOUND_CORES=yes 47246 elif test -n "$NUMBER_OF_PROCESSORS"; then 47247 # On windows, look in the env 47248 NUM_CORES=$NUMBER_OF_PROCESSORS 47249 FOUND_CORES=yes 47250 fi 47251 47252 if test "x$FOUND_CORES" = xyes; then 47253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 47254 $as_echo "$NUM_CORES" >&6; } 47255 else 47256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 47257 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 47258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 47259 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 47260 fi 47261 47262 else 47263 NUM_CORES=$with_num_cores 47264 fi 47265 47266 47267 47268 # How much memory do we have on this build system? 47269 47270 # Check whether --with-memory-size was given. 47271 if test "${with_memory_size+set}" = set; then : 47272 withval=$with_memory_size; 47273 fi 47274 47275 if test "x$with_memory_size" = x; then 47276 # The memory size was not specified, try to probe it. 47277 47278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 47279 $as_echo_n "checking for memory size... " >&6; } 47280 # Default to 1024 MB 47281 MEMORY_SIZE=1024 47282 FOUND_MEM=no 47283 47284 if test -f /proc/meminfo; then 47285 # Looks like a Linux (or cygwin) system 47286 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 47287 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 47288 FOUND_MEM=yes 47289 elif test -x /usr/sbin/prtconf; then 47290 # Looks like a Solaris or AIX system 47291 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 47292 FOUND_MEM=yes 47293 elif test -x /usr/sbin/system_profiler; then 47294 # Looks like a MacOSX system 47295 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 47296 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 47297 FOUND_MEM=yes 47298 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 47299 # Windows, but without cygwin 47300 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 47301 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 47302 FOUND_MEM=yes 47303 fi 47304 47305 if test "x$FOUND_MEM" = xyes; then 47306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 47307 $as_echo "$MEMORY_SIZE MB" >&6; } 47308 else 47309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 47310 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 47311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 47312 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 47313 fi 47314 47315 else 47316 MEMORY_SIZE=$with_memory_size 47317 fi 47318 47319 47320 47321 # Provide a decent default number of parallel jobs for make depending on 47322 # number of cores, amount of memory and machine architecture. 47323 47324 # Check whether --with-jobs was given. 47325 if test "${with_jobs+set}" = set; then : 47326 withval=$with_jobs; 47327 fi 47328 47329 if test "x$with_jobs" = x; then 47330 # Number of jobs was not specified, calculate. 47331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 47332 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 47333 # Approximate memory in GB, rounding up a bit. 47334 memory_gb=`expr $MEMORY_SIZE / 1100` 47335 # Pick the lowest of memory in gb and number of cores. 47336 if test "$memory_gb" -lt "$NUM_CORES"; then 47337 JOBS="$memory_gb" 47338 else 47339 JOBS="$NUM_CORES" 47340 # On bigger machines, leave some room for other processes to run 47341 if test "$JOBS" -gt "4"; then 47342 JOBS=`expr $JOBS '*' 90 / 100` 47343 fi 47344 fi 47345 # Cap number of jobs to 16 47346 if test "$JOBS" -gt "16"; then 47347 JOBS=16 47348 fi 47349 if test "$JOBS" -eq "0"; then 47350 JOBS=1 47351 fi 47352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 47353 $as_echo "$JOBS" >&6; } 47354 else 47355 JOBS=$with_jobs 47356 fi 47357 47358 47359 47360 # Setup smart javac (after cores and memory have been setup) 47361 47362 47363 # Check whether --with-sjavac-server-java was given. 47364 if test "${with_sjavac_server_java+set}" = set; then : 47365 withval=$with_sjavac_server_java; 47366 fi 47367 47368 47369 if test "x$with_sjavac_server_java" != x; then 47370 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 47371 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 47372 if test "x$FOUND_VERSION" = x; then 47373 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 47374 fi 47375 else 47376 SJAVAC_SERVER_JAVA="" 47377 # Hotspot specific options. 47378 47379 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 47380 $ECHO "Command: $JAVA -verbosegc -version" >&5 47381 OUTPUT=`$JAVA -verbosegc -version 2>&1` 47382 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47383 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47384 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47385 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 47386 JVM_ARG_OK=true 47387 else 47388 $ECHO "Arg failed:" >&5 47389 $ECHO "$OUTPUT" >&5 47390 JVM_ARG_OK=false 47391 fi 47392 47393 # JRockit specific options. 47394 47395 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 47396 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 47397 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 47398 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47399 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47400 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47401 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 47402 JVM_ARG_OK=true 47403 else 47404 $ECHO "Arg failed:" >&5 47405 $ECHO "$OUTPUT" >&5 47406 JVM_ARG_OK=false 47407 fi 47408 47409 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 47410 fi 47411 47412 47413 if test "$MEMORY_SIZE" -gt "2500"; then 47414 47415 $ECHO "Check if jvm arg is ok: -d64" >&5 47416 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 47417 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 47418 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47419 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47420 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47421 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 47422 JVM_ARG_OK=true 47423 else 47424 $ECHO "Arg failed:" >&5 47425 $ECHO "$OUTPUT" >&5 47426 JVM_ARG_OK=false 47427 fi 47428 47429 if test "$JVM_ARG_OK" = true; then 47430 JVM_64BIT=true 47431 JVM_ARG_OK=false 47432 fi 47433 fi 47434 47435 if test "$JVM_64BIT" = true; then 47436 if test "$MEMORY_SIZE" -gt "17000"; then 47437 47438 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 47439 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 47440 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 47441 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47442 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47443 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47444 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 47445 JVM_ARG_OK=true 47446 else 47447 $ECHO "Arg failed:" >&5 47448 $ECHO "$OUTPUT" >&5 47449 JVM_ARG_OK=false 47450 fi 47451 47452 fi 47453 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 47454 47455 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 47456 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 47457 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 47458 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47459 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47460 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47461 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 47462 JVM_ARG_OK=true 47463 else 47464 $ECHO "Arg failed:" >&5 47465 $ECHO "$OUTPUT" >&5 47466 JVM_ARG_OK=false 47467 fi 47468 47469 fi 47470 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 47471 47472 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 47473 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 47474 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 47475 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47476 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47477 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47478 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 47479 JVM_ARG_OK=true 47480 else 47481 $ECHO "Arg failed:" >&5 47482 $ECHO "$OUTPUT" >&5 47483 JVM_ARG_OK=false 47484 fi 47485 47486 fi 47487 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 47488 47489 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 47490 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 47491 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 47492 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47493 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47494 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47495 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 47496 JVM_ARG_OK=true 47497 else 47498 $ECHO "Arg failed:" >&5 47499 $ECHO "$OUTPUT" >&5 47500 JVM_ARG_OK=false 47501 fi 47502 47503 fi 47504 fi 47505 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 47506 47507 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 47508 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 47509 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 47510 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47511 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47512 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47513 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 47514 JVM_ARG_OK=true 47515 else 47516 $ECHO "Arg failed:" >&5 47517 $ECHO "$OUTPUT" >&5 47518 JVM_ARG_OK=false 47519 fi 47520 47521 fi 47522 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 47523 47524 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 47525 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 47526 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 47527 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47528 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47529 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47530 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 47531 JVM_ARG_OK=true 47532 else 47533 $ECHO "Arg failed:" >&5 47534 $ECHO "$OUTPUT" >&5 47535 JVM_ARG_OK=false 47536 fi 47537 47538 fi 47539 if test "$JVM_ARG_OK" = false; then 47540 47541 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 47542 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 47543 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 47544 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47545 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47546 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47547 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 47548 JVM_ARG_OK=true 47549 else 47550 $ECHO "Arg failed:" >&5 47551 $ECHO "$OUTPUT" >&5 47552 JVM_ARG_OK=false 47553 fi 47554 47555 fi 47556 47557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 47558 $as_echo_n "checking whether to use sjavac... " >&6; } 47559 # Check whether --enable-sjavac was given. 47560 if test "${enable_sjavac+set}" = set; then : 47561 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 47562 else 47563 ENABLE_SJAVAC='no' 47564 fi 47565 47566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 47567 $as_echo "$ENABLE_SJAVAC" >&6; } 47568 47569 47570 if test "x$ENABLE_SJAVAC" = xyes; then 47571 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 47572 else 47573 SJAVAC_SERVER_DIR= 47574 fi 47575 47576 47577 47578 # Can the C/C++ compiler use precompiled headers? 47579 47580 47581 ############################################################################### 47582 # 47583 # Can the C/C++ compiler use precompiled headers? 47584 # 47585 # Check whether --enable-precompiled-headers was given. 47586 if test "${enable_precompiled_headers+set}" = set; then : 47587 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 47588 else 47589 ENABLE_PRECOMPH=yes 47590 fi 47591 47592 47593 USE_PRECOMPILED_HEADER=1 47594 if test "x$ENABLE_PRECOMPH" = xno; then 47595 USE_PRECOMPILED_HEADER=0 47596 fi 47597 47598 if test "x$ENABLE_PRECOMPH" = xyes; then 47599 # Check that the compiler actually supports precomp headers. 47600 if test "x$TOOLCHAIN_TYPE" = xgcc; then 47601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 47602 $as_echo_n "checking that precompiled headers work... " >&6; } 47603 echo "int alfa();" > conftest.h 47604 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 47605 if test ! -f conftest.hpp.gch; then 47606 USE_PRECOMPILED_HEADER=0 47607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47608 $as_echo "no" >&6; } 47609 else 47610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47611 $as_echo "yes" >&6; } 47612 fi 47613 rm -f conftest.h conftest.hpp.gch 47614 fi 47615 fi 47616 47617 47618 47619 47620 # Setup use of ccache, if available 47621 47622 # Check whether --enable-ccache was given. 47623 if test "${enable_ccache+set}" = set; then : 47624 enableval=$enable_ccache; 47625 fi 47626 47627 47628 CCACHE= 47629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 47630 $as_echo_n "checking is ccache enabled... " >&6; } 47631 ENABLE_CCACHE=$enable_ccache 47632 if test "x$enable_ccache" = xyes; then 47633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47634 $as_echo "yes" >&6; } 47635 OLD_PATH="$PATH" 47636 if test "x$TOOLCHAIN_PATH" != x; then 47637 PATH=$TOOLCHAIN_PATH:$PATH 47638 fi 47639 47640 47641 47642 # Publish this variable in the help. 47643 47644 47645 if test "x$CCACHE" = x; then 47646 # The variable is not set by user, try to locate tool using the code snippet 47647 for ac_prog in ccache 47648 do 47649 # Extract the first word of "$ac_prog", so it can be a program name with args. 47650 set dummy $ac_prog; ac_word=$2 47651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47652 $as_echo_n "checking for $ac_word... " >&6; } 47653 if ${ac_cv_path_CCACHE+:} false; then : 47654 $as_echo_n "(cached) " >&6 47655 else 47656 case $CCACHE in 47657 [\\/]* | ?:[\\/]*) 47658 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 47659 ;; 47660 *) 47661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47662 for as_dir in $PATH 47663 do 47664 IFS=$as_save_IFS 47665 test -z "$as_dir" && as_dir=. 47666 for ac_exec_ext in '' $ac_executable_extensions; do 47667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47668 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 47669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47670 break 2 47671 fi 47672 done 47673 done 47674 IFS=$as_save_IFS 47675 47676 ;; 47677 esac 47678 fi 47679 CCACHE=$ac_cv_path_CCACHE 47680 if test -n "$CCACHE"; then 47681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 47682 $as_echo "$CCACHE" >&6; } 47683 else 47684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47685 $as_echo "no" >&6; } 47686 fi 47687 47688 47689 test -n "$CCACHE" && break 47690 done 47691 47692 else 47693 # The variable is set, but is it from the command line or the environment? 47694 47695 # Try to remove the string !CCACHE! from our list. 47696 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 47697 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47698 # If it failed, the variable was not from the command line. Ignore it, 47699 # but warn the user (except for BASH, which is always set by the calling BASH). 47700 if test "xCCACHE" != xBASH; then 47701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 47702 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 47703 fi 47704 # Try to locate tool using the code snippet 47705 for ac_prog in ccache 47706 do 47707 # Extract the first word of "$ac_prog", so it can be a program name with args. 47708 set dummy $ac_prog; ac_word=$2 47709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47710 $as_echo_n "checking for $ac_word... " >&6; } 47711 if ${ac_cv_path_CCACHE+:} false; then : 47712 $as_echo_n "(cached) " >&6 47713 else 47714 case $CCACHE in 47715 [\\/]* | ?:[\\/]*) 47716 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 47717 ;; 47718 *) 47719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47720 for as_dir in $PATH 47721 do 47722 IFS=$as_save_IFS 47723 test -z "$as_dir" && as_dir=. 47724 for ac_exec_ext in '' $ac_executable_extensions; do 47725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47726 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 47727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47728 break 2 47729 fi 47730 done 47731 done 47732 IFS=$as_save_IFS 47733 47734 ;; 47735 esac 47736 fi 47737 CCACHE=$ac_cv_path_CCACHE 47738 if test -n "$CCACHE"; then 47739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 47740 $as_echo "$CCACHE" >&6; } 47741 else 47742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47743 $as_echo "no" >&6; } 47744 fi 47745 47746 47747 test -n "$CCACHE" && break 47748 done 47749 47750 else 47751 # If it succeeded, then it was overridden by the user. We will use it 47752 # for the tool. 47753 47754 # First remove it from the list of overridden variables, so we can test 47755 # for unknown variables in the end. 47756 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47757 47758 # Check if the provided tool contains a complete path. 47759 tool_specified="$CCACHE" 47760 tool_basename="${tool_specified##*/}" 47761 if test "x$tool_basename" = "x$tool_specified"; then 47762 # A command without a complete path is provided, search $PATH. 47763 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 47764 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 47765 # Extract the first word of "$tool_basename", so it can be a program name with args. 47766 set dummy $tool_basename; ac_word=$2 47767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47768 $as_echo_n "checking for $ac_word... " >&6; } 47769 if ${ac_cv_path_CCACHE+:} false; then : 47770 $as_echo_n "(cached) " >&6 47771 else 47772 case $CCACHE in 47773 [\\/]* | ?:[\\/]*) 47774 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 47775 ;; 47776 *) 47777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47778 for as_dir in $PATH 47779 do 47780 IFS=$as_save_IFS 47781 test -z "$as_dir" && as_dir=. 47782 for ac_exec_ext in '' $ac_executable_extensions; do 47783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47784 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 47785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47786 break 2 47787 fi 47788 done 47789 done 47790 IFS=$as_save_IFS 47791 47792 ;; 47793 esac 47794 fi 47795 CCACHE=$ac_cv_path_CCACHE 47796 if test -n "$CCACHE"; then 47797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 47798 $as_echo "$CCACHE" >&6; } 47799 else 47800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47801 $as_echo "no" >&6; } 47802 fi 47803 47804 47805 if test "x$CCACHE" = x; then 47806 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47807 fi 47808 else 47809 # Otherwise we believe it is a complete path. Use it as it is. 47810 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 47811 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 47812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 47813 $as_echo_n "checking for CCACHE... " >&6; } 47814 if test ! -x "$tool_specified"; then 47815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47816 $as_echo "not found" >&6; } 47817 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 47818 fi 47819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47820 $as_echo "$tool_specified" >&6; } 47821 fi 47822 fi 47823 fi 47824 47825 47826 47827 if test "x$CCACHE" = x; then 47828 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 47829 fi 47830 47831 47832 CCACHE_STATUS="enabled" 47833 PATH="$OLD_PATH" 47834 elif test "x$enable_ccache" = xno; then 47835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 47836 $as_echo "no, explicitly disabled" >&6; } 47837 elif test "x$enable_ccache" = x; then 47838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47839 $as_echo "no" >&6; } 47840 else 47841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 47842 $as_echo "unknown" >&6; } 47843 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 47844 fi 47845 47846 47847 47848 # Check whether --with-ccache-dir was given. 47849 if test "${with_ccache_dir+set}" = set; then : 47850 withval=$with_ccache_dir; 47851 fi 47852 47853 47854 if test "x$with_ccache_dir" != x; then 47855 # When using a non home ccache directory, assume the use is to share ccache files 47856 # with other users. Thus change the umask. 47857 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 47858 if test "x$CCACHE" = x; then 47859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 47860 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 47861 fi 47862 fi 47863 47864 if test "x$CCACHE" != x; then 47865 47866 if test "x$CCACHE" != x; then 47867 # Only use ccache if it is 3.1.4 or later, which supports 47868 # precompiled headers. 47869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 47870 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 47871 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 47872 if test "x$HAS_GOOD_CCACHE" = x; then 47873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 47874 $as_echo "no, disabling ccache" >&6; } 47875 CCACHE= 47876 CCACHE_STATUS="disabled" 47877 else 47878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47879 $as_echo "yes" >&6; } 47880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 47881 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 47882 PUSHED_FLAGS="$CXXFLAGS" 47883 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 47884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47885 /* end confdefs.h. */ 47886 47887 int 47888 main () 47889 { 47890 47891 ; 47892 return 0; 47893 } 47894 _ACEOF 47895 if ac_fn_cxx_try_compile "$LINENO"; then : 47896 CC_KNOWS_CCACHE_TRICK=yes 47897 else 47898 CC_KNOWS_CCACHE_TRICK=no 47899 fi 47900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47901 CXXFLAGS="$PUSHED_FLAGS" 47902 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 47903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47904 $as_echo "yes" >&6; } 47905 else 47906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 47907 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 47908 CCACHE= 47909 CCACHE_STATUS="disabled" 47910 fi 47911 fi 47912 fi 47913 47914 if test "x$CCACHE" != x; then 47915 CCACHE_SLOPPINESS=time_macros 47916 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 47917 CCACHE_FLAGS=-fpch-preprocess 47918 47919 if test "x$SET_CCACHE_DIR" != x; then 47920 mkdir -p $CCACHE_DIR > /dev/null 2>&1 47921 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 47922 fi 47923 fi 47924 47925 fi 47926 47927 47928 ############################################################################### 47929 # 47930 # And now the finish... 47931 # 47932 ############################################################################### 47933 47934 # Check for some common pitfalls 47935 47936 if test x"$OPENJDK_BUILD_OS" = xwindows; then 47937 file_to_test="$SRC_ROOT/LICENSE" 47938 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 47939 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 47940 fi 47941 fi 47942 47943 47944 # Did user specify any unknown variables? 47945 47946 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 47947 # Replace the separating ! with spaces before presenting for end user. 47948 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 47949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 47950 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 47951 fi 47952 47953 47954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 47955 $as_echo_n "checking if build directory is on local disk... " >&6; } 47956 47957 # df -l lists only local disks; if the given directory is not found then 47958 # a non-zero exit code is given 47959 if test "x$DF" = x; then 47960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47961 # msys does not have df; use Windows "net use" instead. 47962 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 47963 if test "x$IS_NETWORK_DISK" = x; then 47964 OUTPUT_DIR_IS_LOCAL="yes" 47965 else 47966 OUTPUT_DIR_IS_LOCAL="no" 47967 fi 47968 else 47969 # No df here, say it's local 47970 OUTPUT_DIR_IS_LOCAL="yes" 47971 fi 47972 else 47973 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 47974 OUTPUT_DIR_IS_LOCAL="yes" 47975 else 47976 OUTPUT_DIR_IS_LOCAL="no" 47977 fi 47978 fi 47979 47980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 47981 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 47982 47983 47984 47985 # Check if the user has any old-style ALT_ variables set. 47986 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 47987 47988 # Before generating output files, test if they exist. If they do, this is a reconfigure. 47989 # Since we can't properly handle the dependencies for this, warn the user about the situation 47990 if test -e $OUTPUT_ROOT/spec.gmk; then 47991 IS_RECONFIGURE=yes 47992 else 47993 IS_RECONFIGURE=no 47994 fi 47995 47996 47997 # At the end, call the custom hook. (Dummy macro if no custom sources available) 47998 47999 48000 # We're messing a bit with internal autoconf variables to put the config.status 48001 # in the output directory instead of the current directory. 48002 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 48003 48004 # Create the actual output files. Now the main work of configure is done. 48005 cat >confcache <<\_ACEOF 48006 # This file is a shell script that caches the results of configure 48007 # tests run on this system so they can be shared between configure 48008 # scripts and configure runs, see configure's option --config-cache. 48009 # It is not useful on other systems. If it contains results you don't 48010 # want to keep, you may remove or edit it. 48011 # 48012 # config.status only pays attention to the cache file if you give it 48013 # the --recheck option to rerun configure. 48014 # 48015 # `ac_cv_env_foo' variables (set or unset) will be overridden when 48016 # loading this file, other *unset* `ac_cv_foo' will be assigned the 48017 # following values. 48018 48019 _ACEOF 48020 48021 # The following way of writing the cache mishandles newlines in values, 48022 # but we know of no workaround that is simple, portable, and efficient. 48023 # So, we kill variables containing newlines. 48024 # Ultrix sh set writes to stderr and can't be redirected directly, 48025 # and sets the high bit in the cache file unless we assign to the vars. 48026 ( 48027 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 48028 eval ac_val=\$$ac_var 48029 case $ac_val in #( 48030 *${as_nl}*) 48031 case $ac_var in #( 48032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 48033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 48034 esac 48035 case $ac_var in #( 48036 _ | IFS | as_nl) ;; #( 48037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 48038 *) { eval $ac_var=; unset $ac_var;} ;; 48039 esac ;; 48040 esac 48041 done 48042 48043 (set) 2>&1 | 48044 case $as_nl`(ac_space=' '; set) 2>&1` in #( 48045 *${as_nl}ac_space=\ *) 48046 # `set' does not quote correctly, so add quotes: double-quote 48047 # substitution turns \\\\ into \\, and sed turns \\ into \. 48048 sed -n \ 48049 "s/'/'\\\\''/g; 48050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 48051 ;; #( 48052 *) 48053 # `set' quotes correctly as required by POSIX, so do not add quotes. 48054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 48055 ;; 48056 esac | 48057 sort 48058 ) | 48059 sed ' 48060 /^ac_cv_env_/b end 48061 t clear 48062 :clear 48063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 48064 t end 48065 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 48066 :end' >>confcache 48067 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 48068 if test -w "$cache_file"; then 48069 if test "x$cache_file" != "x/dev/null"; then 48070 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 48071 $as_echo "$as_me: updating cache $cache_file" >&6;} 48072 if test ! -f "$cache_file" || test -h "$cache_file"; then 48073 cat confcache >"$cache_file" 48074 else 48075 case $cache_file in #( 48076 */* | ?:*) 48077 mv -f confcache "$cache_file"$$ && 48078 mv -f "$cache_file"$$ "$cache_file" ;; #( 48079 *) 48080 mv -f confcache "$cache_file" ;; 48081 esac 48082 fi 48083 fi 48084 else 48085 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 48086 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 48087 fi 48088 fi 48089 rm -f confcache 48090 48091 test "x$prefix" = xNONE && prefix=$ac_default_prefix 48092 # Let make expand exec_prefix. 48093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 48094 48095 DEFS=-DHAVE_CONFIG_H 48096 48097 ac_libobjs= 48098 ac_ltlibobjs= 48099 U= 48100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 48101 # 1. Remove the extension, and $U if already installed. 48102 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 48103 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 48104 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 48105 # will be set to the directory where LIBOBJS objects are built. 48106 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 48107 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 48108 done 48109 LIBOBJS=$ac_libobjs 48110 48111 LTLIBOBJS=$ac_ltlibobjs 48112 48113 48114 48115 : "${CONFIG_STATUS=./config.status}" 48116 ac_write_fail=0 48117 ac_clean_files_save=$ac_clean_files 48118 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 48119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 48120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 48121 as_write_fail=0 48122 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 48123 #! $SHELL 48124 # Generated by $as_me. 48125 # Run this file to recreate the current configuration. 48126 # Compiler output produced by configure, useful for debugging 48127 # configure, is in config.log if it exists. 48128 48129 debug=false 48130 ac_cs_recheck=false 48131 ac_cs_silent=false 48132 48133 SHELL=\${CONFIG_SHELL-$SHELL} 48134 export SHELL 48135 _ASEOF 48136 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 48137 ## -------------------- ## 48138 ## M4sh Initialization. ## 48139 ## -------------------- ## 48140 48141 # Be more Bourne compatible 48142 DUALCASE=1; export DUALCASE # for MKS sh 48143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 48144 emulate sh 48145 NULLCMD=: 48146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 48147 # is contrary to our usage. Disable this feature. 48148 alias -g '${1+"$@"}'='"$@"' 48149 setopt NO_GLOB_SUBST 48150 else 48151 case `(set -o) 2>/dev/null` in #( 48152 *posix*) : 48153 set -o posix ;; #( 48154 *) : 48155 ;; 48156 esac 48157 fi 48158 48159 48160 as_nl=' 48161 ' 48162 export as_nl 48163 # Printing a long string crashes Solaris 7 /usr/bin/printf. 48164 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 48165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 48167 # Prefer a ksh shell builtin over an external printf program on Solaris, 48168 # but without wasting forks for bash or zsh. 48169 if test -z "$BASH_VERSION$ZSH_VERSION" \ 48170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48171 as_echo='print -r --' 48172 as_echo_n='print -rn --' 48173 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48174 as_echo='printf %s\n' 48175 as_echo_n='printf %s' 48176 else 48177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 48178 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 48179 as_echo_n='/usr/ucb/echo -n' 48180 else 48181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 48182 as_echo_n_body='eval 48183 arg=$1; 48184 case $arg in #( 48185 *"$as_nl"*) 48186 expr "X$arg" : "X\\(.*\\)$as_nl"; 48187 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 48188 esac; 48189 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 48190 ' 48191 export as_echo_n_body 48192 as_echo_n='sh -c $as_echo_n_body as_echo' 48193 fi 48194 export as_echo_body 48195 as_echo='sh -c $as_echo_body as_echo' 48196 fi 48197 48198 # The user is always right. 48199 if test "${PATH_SEPARATOR+set}" != set; then 48200 PATH_SEPARATOR=: 48201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 48202 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 48203 PATH_SEPARATOR=';' 48204 } 48205 fi 48206 48207 48208 # IFS 48209 # We need space, tab and new line, in precisely that order. Quoting is 48210 # there to prevent editors from complaining about space-tab. 48211 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 48212 # splitting by setting IFS to empty value.) 48213 IFS=" "" $as_nl" 48214 48215 # Find who we are. Look in the path if we contain no directory separator. 48216 as_myself= 48217 case $0 in #(( 48218 *[\\/]* ) as_myself=$0 ;; 48219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48220 for as_dir in $PATH 48221 do 48222 IFS=$as_save_IFS 48223 test -z "$as_dir" && as_dir=. 48224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 48225 done 48226 IFS=$as_save_IFS 48227 48228 ;; 48229 esac 48230 # We did not find ourselves, most probably we were run as `sh COMMAND' 48231 # in which case we are not to be found in the path. 48232 if test "x$as_myself" = x; then 48233 as_myself=$0 48234 fi 48235 if test ! -f "$as_myself"; then 48236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 48237 exit 1 48238 fi 48239 48240 # Unset variables that we do not need and which cause bugs (e.g. in 48241 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 48242 # suppresses any "Segmentation fault" message there. '((' could 48243 # trigger a bug in pdksh 5.2.14. 48244 for as_var in BASH_ENV ENV MAIL MAILPATH 48245 do eval test x\${$as_var+set} = xset \ 48246 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 48247 done 48248 PS1='$ ' 48249 PS2='> ' 48250 PS4='+ ' 48251 48252 # NLS nuisances. 48253 LC_ALL=C 48254 export LC_ALL 48255 LANGUAGE=C 48256 export LANGUAGE 48257 48258 # CDPATH. 48259 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 48260 48261 48262 # as_fn_error STATUS ERROR [LINENO LOG_FD] 48263 # ---------------------------------------- 48264 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 48265 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 48266 # script with STATUS, using 1 if that was 0. 48267 as_fn_error () 48268 { 48269 as_status=$1; test $as_status -eq 0 && as_status=1 48270 if test "$4"; then 48271 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 48272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 48273 fi 48274 $as_echo "$as_me: error: $2" >&2 48275 as_fn_exit $as_status 48276 } # as_fn_error 48277 48278 48279 # as_fn_set_status STATUS 48280 # ----------------------- 48281 # Set $? to STATUS, without forking. 48282 as_fn_set_status () 48283 { 48284 return $1 48285 } # as_fn_set_status 48286 48287 # as_fn_exit STATUS 48288 # ----------------- 48289 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 48290 as_fn_exit () 48291 { 48292 set +e 48293 as_fn_set_status $1 48294 exit $1 48295 } # as_fn_exit 48296 48297 # as_fn_unset VAR 48298 # --------------- 48299 # Portably unset VAR. 48300 as_fn_unset () 48301 { 48302 { eval $1=; unset $1;} 48303 } 48304 as_unset=as_fn_unset 48305 # as_fn_append VAR VALUE 48306 # ---------------------- 48307 # Append the text in VALUE to the end of the definition contained in VAR. Take 48308 # advantage of any shell optimizations that allow amortized linear growth over 48309 # repeated appends, instead of the typical quadratic growth present in naive 48310 # implementations. 48311 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 48312 eval 'as_fn_append () 48313 { 48314 eval $1+=\$2 48315 }' 48316 else 48317 as_fn_append () 48318 { 48319 eval $1=\$$1\$2 48320 } 48321 fi # as_fn_append 48322 48323 # as_fn_arith ARG... 48324 # ------------------ 48325 # Perform arithmetic evaluation on the ARGs, and store the result in the 48326 # global $as_val. Take advantage of shells that can avoid forks. The arguments 48327 # must be portable across $(()) and expr. 48328 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 48329 eval 'as_fn_arith () 48330 { 48331 as_val=$(( $* )) 48332 }' 48333 else 48334 as_fn_arith () 48335 { 48336 as_val=`expr "$@" || test $? -eq 1` 48337 } 48338 fi # as_fn_arith 48339 48340 48341 if expr a : '\(a\)' >/dev/null 2>&1 && 48342 test "X`expr 00001 : '.*\(...\)'`" = X001; then 48343 as_expr=expr 48344 else 48345 as_expr=false 48346 fi 48347 48348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 48349 as_basename=basename 48350 else 48351 as_basename=false 48352 fi 48353 48354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 48355 as_dirname=dirname 48356 else 48357 as_dirname=false 48358 fi 48359 48360 as_me=`$as_basename -- "$0" || 48361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 48362 X"$0" : 'X\(//\)$' \| \ 48363 X"$0" : 'X\(/\)' \| . 2>/dev/null || 48364 $as_echo X/"$0" | 48365 sed '/^.*\/\([^/][^/]*\)\/*$/{ 48366 s//\1/ 48367 q 48368 } 48369 /^X\/\(\/\/\)$/{ 48370 s//\1/ 48371 q 48372 } 48373 /^X\/\(\/\).*/{ 48374 s//\1/ 48375 q 48376 } 48377 s/.*/./; q'` 48378 48379 # Avoid depending upon Character Ranges. 48380 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 48381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 48382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 48383 as_cr_digits='0123456789' 48384 as_cr_alnum=$as_cr_Letters$as_cr_digits 48385 48386 ECHO_C= ECHO_N= ECHO_T= 48387 case `echo -n x` in #((((( 48388 -n*) 48389 case `echo 'xy\c'` in 48390 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 48391 xy) ECHO_C='\c';; 48392 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 48393 ECHO_T=' ';; 48394 esac;; 48395 *) 48396 ECHO_N='-n';; 48397 esac 48398 48399 rm -f conf$$ conf$$.exe conf$$.file 48400 if test -d conf$$.dir; then 48401 rm -f conf$$.dir/conf$$.file 48402 else 48403 rm -f conf$$.dir 48404 mkdir conf$$.dir 2>/dev/null 48405 fi 48406 if (echo >conf$$.file) 2>/dev/null; then 48407 if ln -s conf$$.file conf$$ 2>/dev/null; then 48408 as_ln_s='ln -s' 48409 # ... but there are two gotchas: 48410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 48411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 48412 # In both cases, we have to default to `cp -pR'. 48413 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 48414 as_ln_s='cp -pR' 48415 elif ln conf$$.file conf$$ 2>/dev/null; then 48416 as_ln_s=ln 48417 else 48418 as_ln_s='cp -pR' 48419 fi 48420 else 48421 as_ln_s='cp -pR' 48422 fi 48423 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 48424 rmdir conf$$.dir 2>/dev/null 48425 48426 48427 # as_fn_mkdir_p 48428 # ------------- 48429 # Create "$as_dir" as a directory, including parents if necessary. 48430 as_fn_mkdir_p () 48431 { 48432 48433 case $as_dir in #( 48434 -*) as_dir=./$as_dir;; 48435 esac 48436 test -d "$as_dir" || eval $as_mkdir_p || { 48437 as_dirs= 48438 while :; do 48439 case $as_dir in #( 48440 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 48441 *) as_qdir=$as_dir;; 48442 esac 48443 as_dirs="'$as_qdir' $as_dirs" 48444 as_dir=`$as_dirname -- "$as_dir" || 48445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 48446 X"$as_dir" : 'X\(//\)[^/]' \| \ 48447 X"$as_dir" : 'X\(//\)$' \| \ 48448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 48449 $as_echo X"$as_dir" | 48450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 48451 s//\1/ 48452 q 48453 } 48454 /^X\(\/\/\)[^/].*/{ 48455 s//\1/ 48456 q 48457 } 48458 /^X\(\/\/\)$/{ 48459 s//\1/ 48460 q 48461 } 48462 /^X\(\/\).*/{ 48463 s//\1/ 48464 q 48465 } 48466 s/.*/./; q'` 48467 test -d "$as_dir" && break 48468 done 48469 test -z "$as_dirs" || eval "mkdir $as_dirs" 48470 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 48471 48472 48473 } # as_fn_mkdir_p 48474 if mkdir -p . 2>/dev/null; then 48475 as_mkdir_p='mkdir -p "$as_dir"' 48476 else 48477 test -d ./-p && rmdir ./-p 48478 as_mkdir_p=false 48479 fi 48480 48481 48482 # as_fn_executable_p FILE 48483 # ----------------------- 48484 # Test if FILE is an executable regular file. 48485 as_fn_executable_p () 48486 { 48487 test -f "$1" && test -x "$1" 48488 } # as_fn_executable_p 48489 as_test_x='test -x' 48490 as_executable_p=as_fn_executable_p 48491 48492 # Sed expression to map a string onto a valid CPP name. 48493 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 48494 48495 # Sed expression to map a string onto a valid variable name. 48496 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 48497 48498 48499 exec 6>&1 48500 ## ----------------------------------- ## 48501 ## Main body of $CONFIG_STATUS script. ## 48502 ## ----------------------------------- ## 48503 _ASEOF 48504 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 48505 48506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48507 # Save the log message, to keep $0 and so on meaningful, and to 48508 # report actual input values of CONFIG_FILES etc. instead of their 48509 # values after options handling. 48510 ac_log=" 48511 This file was extended by OpenJDK $as_me jdk8, which was 48512 generated by GNU Autoconf 2.69. Invocation command line was 48513 48514 CONFIG_FILES = $CONFIG_FILES 48515 CONFIG_HEADERS = $CONFIG_HEADERS 48516 CONFIG_LINKS = $CONFIG_LINKS 48517 CONFIG_COMMANDS = $CONFIG_COMMANDS 48518 $ $0 $@ 48519 48520 on `(hostname || uname -n) 2>/dev/null | sed 1q` 48521 " 48522 48523 _ACEOF 48524 48525 case $ac_config_files in *" 48526 "*) set x $ac_config_files; shift; ac_config_files=$*;; 48527 esac 48528 48529 case $ac_config_headers in *" 48530 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 48531 esac 48532 48533 48534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48535 # Files that config.status was made for. 48536 config_files="$ac_config_files" 48537 config_headers="$ac_config_headers" 48538 48539 _ACEOF 48540 48541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48542 ac_cs_usage="\ 48543 \`$as_me' instantiates files and other configuration actions 48544 from templates according to the current configuration. Unless the files 48545 and actions are specified as TAGs, all are instantiated by default. 48546 48547 Usage: $0 [OPTION]... [TAG]... 48548 48549 -h, --help print this help, then exit 48550 -V, --version print version number and configuration settings, then exit 48551 --config print configuration, then exit 48552 -q, --quiet, --silent 48553 do not print progress messages 48554 -d, --debug don't remove temporary files 48555 --recheck update $as_me by reconfiguring in the same conditions 48556 --file=FILE[:TEMPLATE] 48557 instantiate the configuration file FILE 48558 --header=FILE[:TEMPLATE] 48559 instantiate the configuration header FILE 48560 48561 Configuration files: 48562 $config_files 48563 48564 Configuration headers: 48565 $config_headers 48566 48567 Report bugs to <build-dev@openjdk.java.net>. 48568 OpenJDK home page: <http://openjdk.java.net>." 48569 48570 _ACEOF 48571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48572 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 48573 ac_cs_version="\\ 48574 OpenJDK config.status jdk8 48575 configured by $0, generated by GNU Autoconf 2.69, 48576 with options \\"\$ac_cs_config\\" 48577 48578 Copyright (C) 2012 Free Software Foundation, Inc. 48579 This config.status script is free software; the Free Software Foundation 48580 gives unlimited permission to copy, distribute and modify it." 48581 48582 ac_pwd='$ac_pwd' 48583 srcdir='$srcdir' 48584 AWK='$AWK' 48585 test -n "\$AWK" || AWK=awk 48586 _ACEOF 48587 48588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48589 # The default lists apply if the user does not specify any file. 48590 ac_need_defaults=: 48591 while test $# != 0 48592 do 48593 case $1 in 48594 --*=?*) 48595 ac_option=`expr "X$1" : 'X\([^=]*\)='` 48596 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 48597 ac_shift=: 48598 ;; 48599 --*=) 48600 ac_option=`expr "X$1" : 'X\([^=]*\)='` 48601 ac_optarg= 48602 ac_shift=: 48603 ;; 48604 *) 48605 ac_option=$1 48606 ac_optarg=$2 48607 ac_shift=shift 48608 ;; 48609 esac 48610 48611 case $ac_option in 48612 # Handling of the options. 48613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 48614 ac_cs_recheck=: ;; 48615 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 48616 $as_echo "$ac_cs_version"; exit ;; 48617 --config | --confi | --conf | --con | --co | --c ) 48618 $as_echo "$ac_cs_config"; exit ;; 48619 --debug | --debu | --deb | --de | --d | -d ) 48620 debug=: ;; 48621 --file | --fil | --fi | --f ) 48622 $ac_shift 48623 case $ac_optarg in 48624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 48625 '') as_fn_error $? "missing file argument" ;; 48626 esac 48627 as_fn_append CONFIG_FILES " '$ac_optarg'" 48628 ac_need_defaults=false;; 48629 --header | --heade | --head | --hea ) 48630 $ac_shift 48631 case $ac_optarg in 48632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 48633 esac 48634 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 48635 ac_need_defaults=false;; 48636 --he | --h) 48637 # Conflict between --help and --header 48638 as_fn_error $? "ambiguous option: \`$1' 48639 Try \`$0 --help' for more information.";; 48640 --help | --hel | -h ) 48641 $as_echo "$ac_cs_usage"; exit ;; 48642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 48643 | -silent | --silent | --silen | --sile | --sil | --si | --s) 48644 ac_cs_silent=: ;; 48645 48646 # This is an error. 48647 -*) as_fn_error $? "unrecognized option: \`$1' 48648 Try \`$0 --help' for more information." ;; 48649 48650 *) as_fn_append ac_config_targets " $1" 48651 ac_need_defaults=false ;; 48652 48653 esac 48654 shift 48655 done 48656 48657 ac_configure_extra_args= 48658 48659 if $ac_cs_silent; then 48660 exec 6>/dev/null 48661 ac_configure_extra_args="$ac_configure_extra_args --silent" 48662 fi 48663 48664 _ACEOF 48665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48666 if \$ac_cs_recheck; then 48667 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 48668 shift 48669 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 48670 CONFIG_SHELL='$SHELL' 48671 export CONFIG_SHELL 48672 exec "\$@" 48673 fi 48674 48675 _ACEOF 48676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48677 exec 5>>config.log 48678 { 48679 echo 48680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 48681 ## Running $as_me. ## 48682 _ASBOX 48683 $as_echo "$ac_log" 48684 } >&5 48685 48686 _ACEOF 48687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48688 _ACEOF 48689 48690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48691 48692 # Handling of arguments. 48693 for ac_config_target in $ac_config_targets 48694 do 48695 case $ac_config_target in 48696 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 48697 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 48698 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 48699 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 48700 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 48701 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 48702 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 48703 48704 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 48705 esac 48706 done 48707 48708 48709 # If the user did not use the arguments to specify the items to instantiate, 48710 # then the envvar interface is used. Set only those that are not. 48711 # We use the long form for the default assignment because of an extremely 48712 # bizarre bug on SunOS 4.1.3. 48713 if $ac_need_defaults; then 48714 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 48715 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 48716 fi 48717 48718 # Have a temporary directory for convenience. Make it in the build tree 48719 # simply because there is no reason against having it here, and in addition, 48720 # creating and moving files from /tmp can sometimes cause problems. 48721 # Hook for its removal unless debugging. 48722 # Note that there is a small window in which the directory will not be cleaned: 48723 # after its creation but before its name has been assigned to `$tmp'. 48724 $debug || 48725 { 48726 tmp= ac_tmp= 48727 trap 'exit_status=$? 48728 : "${ac_tmp:=$tmp}" 48729 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 48730 ' 0 48731 trap 'as_fn_exit 1' 1 2 13 15 48732 } 48733 # Create a (secure) tmp directory for tmp files. 48734 48735 { 48736 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 48737 test -d "$tmp" 48738 } || 48739 { 48740 tmp=./conf$$-$RANDOM 48741 (umask 077 && mkdir "$tmp") 48742 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 48743 ac_tmp=$tmp 48744 48745 # Set up the scripts for CONFIG_FILES section. 48746 # No need to generate them if there are no CONFIG_FILES. 48747 # This happens for instance with `./config.status config.h'. 48748 if test -n "$CONFIG_FILES"; then 48749 48750 48751 ac_cr=`echo X | tr X '\015'` 48752 # On cygwin, bash can eat \r inside `` if the user requested igncr. 48753 # But we know of no other shell where ac_cr would be empty at this 48754 # point, so we can use a bashism as a fallback. 48755 if test "x$ac_cr" = x; then 48756 eval ac_cr=\$\'\\r\' 48757 fi 48758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 48759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 48760 ac_cs_awk_cr='\\r' 48761 else 48762 ac_cs_awk_cr=$ac_cr 48763 fi 48764 48765 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 48766 _ACEOF 48767 48768 48769 { 48770 echo "cat >conf$$subs.awk <<_ACEOF" && 48771 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 48772 echo "_ACEOF" 48773 } >conf$$subs.sh || 48774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 48775 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 48776 ac_delim='%!_!# ' 48777 for ac_last_try in false false false false false :; do 48778 . ./conf$$subs.sh || 48779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 48780 48781 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 48782 if test $ac_delim_n = $ac_delim_num; then 48783 break 48784 elif $ac_last_try; then 48785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 48786 else 48787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 48788 fi 48789 done 48790 rm -f conf$$subs.sh 48791 48792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48793 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 48794 _ACEOF 48795 sed -n ' 48796 h 48797 s/^/S["/; s/!.*/"]=/ 48798 p 48799 g 48800 s/^[^!]*!// 48801 :repl 48802 t repl 48803 s/'"$ac_delim"'$// 48804 t delim 48805 :nl 48806 h 48807 s/\(.\{148\}\)..*/\1/ 48808 t more1 48809 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 48810 p 48811 n 48812 b repl 48813 :more1 48814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 48815 p 48816 g 48817 s/.\{148\}// 48818 t nl 48819 :delim 48820 h 48821 s/\(.\{148\}\)..*/\1/ 48822 t more2 48823 s/["\\]/\\&/g; s/^/"/; s/$/"/ 48824 p 48825 b 48826 :more2 48827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 48828 p 48829 g 48830 s/.\{148\}// 48831 t delim 48832 ' <conf$$subs.awk | sed ' 48833 /^[^""]/{ 48834 N 48835 s/\n// 48836 } 48837 ' >>$CONFIG_STATUS || ac_write_fail=1 48838 rm -f conf$$subs.awk 48839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48840 _ACAWK 48841 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 48842 for (key in S) S_is_set[key] = 1 48843 FS = "" 48844 48845 } 48846 { 48847 line = $ 0 48848 nfields = split(line, field, "@") 48849 substed = 0 48850 len = length(field[1]) 48851 for (i = 2; i < nfields; i++) { 48852 key = field[i] 48853 keylen = length(key) 48854 if (S_is_set[key]) { 48855 value = S[key] 48856 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 48857 len += length(value) + length(field[++i]) 48858 substed = 1 48859 } else 48860 len += 1 + keylen 48861 } 48862 48863 print line 48864 } 48865 48866 _ACAWK 48867 _ACEOF 48868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48869 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 48870 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 48871 else 48872 cat 48873 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 48874 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 48875 _ACEOF 48876 48877 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 48878 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 48879 # trailing colons and then remove the whole line if VPATH becomes empty 48880 # (actually we leave an empty line to preserve line numbers). 48881 if test "x$srcdir" = x.; then 48882 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 48883 h 48884 s/// 48885 s/^/:/ 48886 s/[ ]*$/:/ 48887 s/:\$(srcdir):/:/g 48888 s/:\${srcdir}:/:/g 48889 s/:@srcdir@:/:/g 48890 s/^:*// 48891 s/:*$// 48892 x 48893 s/\(=[ ]*\).*/\1/ 48894 G 48895 s/\n// 48896 s/^[^=]*=[ ]*$// 48897 }' 48898 fi 48899 48900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48901 fi # test -n "$CONFIG_FILES" 48902 48903 # Set up the scripts for CONFIG_HEADERS section. 48904 # No need to generate them if there are no CONFIG_HEADERS. 48905 # This happens for instance with `./config.status Makefile'. 48906 if test -n "$CONFIG_HEADERS"; then 48907 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 48908 BEGIN { 48909 _ACEOF 48910 48911 # Transform confdefs.h into an awk script `defines.awk', embedded as 48912 # here-document in config.status, that substitutes the proper values into 48913 # config.h.in to produce config.h. 48914 48915 # Create a delimiter string that does not exist in confdefs.h, to ease 48916 # handling of long lines. 48917 ac_delim='%!_!# ' 48918 for ac_last_try in false false :; do 48919 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 48920 if test -z "$ac_tt"; then 48921 break 48922 elif $ac_last_try; then 48923 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 48924 else 48925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 48926 fi 48927 done 48928 48929 # For the awk script, D is an array of macro values keyed by name, 48930 # likewise P contains macro parameters if any. Preserve backslash 48931 # newline sequences. 48932 48933 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 48934 sed -n ' 48935 s/.\{148\}/&'"$ac_delim"'/g 48936 t rset 48937 :rset 48938 s/^[ ]*#[ ]*define[ ][ ]*/ / 48939 t def 48940 d 48941 :def 48942 s/\\$// 48943 t bsnl 48944 s/["\\]/\\&/g 48945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 48946 D["\1"]=" \3"/p 48947 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 48948 d 48949 :bsnl 48950 s/["\\]/\\&/g 48951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 48952 D["\1"]=" \3\\\\\\n"\\/p 48953 t cont 48954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 48955 t cont 48956 d 48957 :cont 48958 n 48959 s/.\{148\}/&'"$ac_delim"'/g 48960 t clear 48961 :clear 48962 s/\\$// 48963 t bsnlc 48964 s/["\\]/\\&/g; s/^/"/; s/$/"/p 48965 d 48966 :bsnlc 48967 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 48968 b cont 48969 ' <confdefs.h | sed ' 48970 s/'"$ac_delim"'/"\\\ 48971 "/g' >>$CONFIG_STATUS || ac_write_fail=1 48972 48973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48974 for (key in D) D_is_set[key] = 1 48975 FS = "" 48976 } 48977 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 48978 line = \$ 0 48979 split(line, arg, " ") 48980 if (arg[1] == "#") { 48981 defundef = arg[2] 48982 mac1 = arg[3] 48983 } else { 48984 defundef = substr(arg[1], 2) 48985 mac1 = arg[2] 48986 } 48987 split(mac1, mac2, "(") #) 48988 macro = mac2[1] 48989 prefix = substr(line, 1, index(line, defundef) - 1) 48990 if (D_is_set[macro]) { 48991 # Preserve the white space surrounding the "#". 48992 print prefix "define", macro P[macro] D[macro] 48993 next 48994 } else { 48995 # Replace #undef with comments. This is necessary, for example, 48996 # in the case of _POSIX_SOURCE, which is predefined and required 48997 # on some systems where configure will not decide to define it. 48998 if (defundef == "undef") { 48999 print "/*", prefix defundef, macro, "*/" 49000 next 49001 } 49002 } 49003 } 49004 { print } 49005 _ACAWK 49006 _ACEOF 49007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49008 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 49009 fi # test -n "$CONFIG_HEADERS" 49010 49011 49012 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 49013 shift 49014 for ac_tag 49015 do 49016 case $ac_tag in 49017 :[FHLC]) ac_mode=$ac_tag; continue;; 49018 esac 49019 case $ac_mode$ac_tag in 49020 :[FHL]*:*);; 49021 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 49022 :[FH]-) ac_tag=-:-;; 49023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 49024 esac 49025 ac_save_IFS=$IFS 49026 IFS=: 49027 set x $ac_tag 49028 IFS=$ac_save_IFS 49029 shift 49030 ac_file=$1 49031 shift 49032 49033 case $ac_mode in 49034 :L) ac_source=$1;; 49035 :[FH]) 49036 ac_file_inputs= 49037 for ac_f 49038 do 49039 case $ac_f in 49040 -) ac_f="$ac_tmp/stdin";; 49041 *) # Look for the file first in the build tree, then in the source tree 49042 # (if the path is not absolute). The absolute path cannot be DOS-style, 49043 # because $ac_f cannot contain `:'. 49044 test -f "$ac_f" || 49045 case $ac_f in 49046 [\\/$]*) false;; 49047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 49048 esac || 49049 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 49050 esac 49051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 49052 as_fn_append ac_file_inputs " '$ac_f'" 49053 done 49054 49055 # Let's still pretend it is `configure' which instantiates (i.e., don't 49056 # use $as_me), people would be surprised to read: 49057 # /* config.h. Generated by config.status. */ 49058 configure_input='Generated from '` 49059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 49060 `' by configure.' 49061 if test x"$ac_file" != x-; then 49062 configure_input="$ac_file. $configure_input" 49063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 49064 $as_echo "$as_me: creating $ac_file" >&6;} 49065 fi 49066 # Neutralize special characters interpreted by sed in replacement strings. 49067 case $configure_input in #( 49068 *\&* | *\|* | *\\* ) 49069 ac_sed_conf_input=`$as_echo "$configure_input" | 49070 sed 's/[\\\\&|]/\\\\&/g'`;; #( 49071 *) ac_sed_conf_input=$configure_input;; 49072 esac 49073 49074 case $ac_tag in 49075 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 49076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 49077 esac 49078 ;; 49079 esac 49080 49081 ac_dir=`$as_dirname -- "$ac_file" || 49082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 49083 X"$ac_file" : 'X\(//\)[^/]' \| \ 49084 X"$ac_file" : 'X\(//\)$' \| \ 49085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 49086 $as_echo X"$ac_file" | 49087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 49088 s//\1/ 49089 q 49090 } 49091 /^X\(\/\/\)[^/].*/{ 49092 s//\1/ 49093 q 49094 } 49095 /^X\(\/\/\)$/{ 49096 s//\1/ 49097 q 49098 } 49099 /^X\(\/\).*/{ 49100 s//\1/ 49101 q 49102 } 49103 s/.*/./; q'` 49104 as_dir="$ac_dir"; as_fn_mkdir_p 49105 ac_builddir=. 49106 49107 case "$ac_dir" in 49108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 49109 *) 49110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 49111 # A ".." for each directory in $ac_dir_suffix. 49112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 49113 case $ac_top_builddir_sub in 49114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 49115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 49116 esac ;; 49117 esac 49118 ac_abs_top_builddir=$ac_pwd 49119 ac_abs_builddir=$ac_pwd$ac_dir_suffix 49120 # for backward compatibility: 49121 ac_top_builddir=$ac_top_build_prefix 49122 49123 case $srcdir in 49124 .) # We are building in place. 49125 ac_srcdir=. 49126 ac_top_srcdir=$ac_top_builddir_sub 49127 ac_abs_top_srcdir=$ac_pwd ;; 49128 [\\/]* | ?:[\\/]* ) # Absolute name. 49129 ac_srcdir=$srcdir$ac_dir_suffix; 49130 ac_top_srcdir=$srcdir 49131 ac_abs_top_srcdir=$srcdir ;; 49132 *) # Relative name. 49133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 49134 ac_top_srcdir=$ac_top_build_prefix$srcdir 49135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 49136 esac 49137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 49138 49139 49140 case $ac_mode in 49141 :F) 49142 # 49143 # CONFIG_FILE 49144 # 49145 49146 _ACEOF 49147 49148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49149 # If the template does not know about datarootdir, expand it. 49150 # FIXME: This hack should be removed a few years after 2.60. 49151 ac_datarootdir_hack=; ac_datarootdir_seen= 49152 ac_sed_dataroot=' 49153 /datarootdir/ { 49154 p 49155 q 49156 } 49157 /@datadir@/p 49158 /@docdir@/p 49159 /@infodir@/p 49160 /@localedir@/p 49161 /@mandir@/p' 49162 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 49163 *datarootdir*) ac_datarootdir_seen=yes;; 49164 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 49165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 49166 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 49167 _ACEOF 49168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49169 ac_datarootdir_hack=' 49170 s&@datadir@&$datadir&g 49171 s&@docdir@&$docdir&g 49172 s&@infodir@&$infodir&g 49173 s&@localedir@&$localedir&g 49174 s&@mandir@&$mandir&g 49175 s&\\\${datarootdir}&$datarootdir&g' ;; 49176 esac 49177 _ACEOF 49178 49179 # Neutralize VPATH when `$srcdir' = `.'. 49180 # Shell code in configure.ac might set extrasub. 49181 # FIXME: do we really want to maintain this feature? 49182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49183 ac_sed_extra="$ac_vpsub 49184 $extrasub 49185 _ACEOF 49186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49187 :t 49188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 49189 s|@configure_input@|$ac_sed_conf_input|;t t 49190 s&@top_builddir@&$ac_top_builddir_sub&;t t 49191 s&@top_build_prefix@&$ac_top_build_prefix&;t t 49192 s&@srcdir@&$ac_srcdir&;t t 49193 s&@abs_srcdir@&$ac_abs_srcdir&;t t 49194 s&@top_srcdir@&$ac_top_srcdir&;t t 49195 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 49196 s&@builddir@&$ac_builddir&;t t 49197 s&@abs_builddir@&$ac_abs_builddir&;t t 49198 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 49199 $ac_datarootdir_hack 49200 " 49201 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 49202 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 49203 49204 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 49205 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 49206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 49207 "$ac_tmp/out"`; test -z "$ac_out"; } && 49208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 49209 which seems to be undefined. Please make sure it is defined" >&5 49210 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 49211 which seems to be undefined. Please make sure it is defined" >&2;} 49212 49213 rm -f "$ac_tmp/stdin" 49214 case $ac_file in 49215 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 49216 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 49217 esac \ 49218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 49219 ;; 49220 :H) 49221 # 49222 # CONFIG_HEADER 49223 # 49224 if test x"$ac_file" != x-; then 49225 { 49226 $as_echo "/* $configure_input */" \ 49227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 49228 } >"$ac_tmp/config.h" \ 49229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 49230 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 49231 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 49232 $as_echo "$as_me: $ac_file is unchanged" >&6;} 49233 else 49234 rm -f "$ac_file" 49235 mv "$ac_tmp/config.h" "$ac_file" \ 49236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 49237 fi 49238 else 49239 $as_echo "/* $configure_input */" \ 49240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 49241 || as_fn_error $? "could not create -" "$LINENO" 5 49242 fi 49243 ;; 49244 49245 49246 esac 49247 49248 done # for ac_tag 49249 49250 49251 as_fn_exit 0 49252 _ACEOF 49253 ac_clean_files=$ac_clean_files_save 49254 49255 test $ac_write_fail = 0 || 49256 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 49257 49258 49259 # configure is writing to config.log, and then calls config.status. 49260 # config.status does its own redirection, appending to config.log. 49261 # Unfortunately, on DOS this fails, as config.log is still kept open 49262 # by configure, so config.status won't be able to write to it; its 49263 # output is simply discarded. So we exec the FD to /dev/null, 49264 # effectively closing config.log, so it can be properly (re)opened and 49265 # appended to by config.status. When coming back to configure, we 49266 # need to make the FD available again. 49267 if test "$no_create" != yes; then 49268 ac_cs_success=: 49269 ac_config_status_args= 49270 test "$silent" = yes && 49271 ac_config_status_args="$ac_config_status_args --quiet" 49272 exec 5>/dev/null 49273 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 49274 exec 5>>config.log 49275 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 49276 # would make configure fail if this is the last instruction. 49277 $ac_cs_success || as_fn_exit 1 49278 fi 49279 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 49280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 49281 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 49282 fi 49283 49284 49285 49286 # Try to move the config.log file to the output directory. 49287 if test -e ./config.log; then 49288 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 49289 fi 49290 49291 # Make the compare script executable 49292 $CHMOD +x $OUTPUT_ROOT/compare.sh 49293 49294 # Finally output some useful information to the user 49295 49296 # Finally output some useful information to the user 49297 49298 printf "\n" 49299 printf "====================================================\n" 49300 printf "A new configuration has been successfully created in\n" 49301 printf "$OUTPUT_ROOT\n" 49302 if test "x$CONFIGURE_COMMAND_LINE" != x; then 49303 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 49304 else 49305 printf "using default settings.\n" 49306 fi 49307 49308 printf "\n" 49309 printf "Configuration summary:\n" 49310 printf "* Debug level: $DEBUG_LEVEL\n" 49311 printf "* JDK variant: $JDK_VARIANT\n" 49312 printf "* JVM variants: $with_jvm_variants\n" 49313 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 49314 49315 printf "\n" 49316 printf "Tools summary:\n" 49317 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 49318 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 49319 fi 49320 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 49321 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 49322 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 49323 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 49324 49325 printf "\n" 49326 printf "Build performance summary:\n" 49327 printf "* Cores to use: $JOBS\n" 49328 printf "* Memory limit: $MEMORY_SIZE MB\n" 49329 if test "x$CCACHE_STATUS" != "x"; then 49330 printf "* ccache status: $CCACHE_STATUS\n" 49331 fi 49332 printf "\n" 49333 49334 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 49335 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 49336 printf "will result in longer build times.\n" 49337 printf "\n" 49338 fi 49339 49340 if test "x$FOUND_ALT_VARIABLES" != "x"; then 49341 printf "WARNING: You have old-style ALT_ environment variables set.\n" 49342 printf "These are not respected, and will be ignored. It is recommended\n" 49343 printf "that you clean your environment. The following variables are set:\n" 49344 printf "$FOUND_ALT_VARIABLES\n" 49345 printf "\n" 49346 fi 49347 49348 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 49349 printf "WARNING: Your build output directory is not on a local disk.\n" 49350 printf "This will severely degrade build performance!\n" 49351 printf "It is recommended that you create an output directory on a local disk,\n" 49352 printf "and run the configure script again from that directory.\n" 49353 printf "\n" 49354 fi 49355 49356 if test "x$IS_RECONFIGURE" = "xyes"; then 49357 printf "WARNING: The result of this configuration has overridden an older\n" 49358 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 49359 printf "proper build. Failure to do so might result in strange build problems.\n" 49360 printf "\n" 49361 fi 49362