1 #! /bin/sh
   2 # Guess values for system-dependent variables and create Makefiles.
   3 # Generated by GNU Autoconf 2.67 for openjdk jdk8.
   4 #
   5 # Report bugs to <build-dev@openjdk.java.net>.
   6 #
   7 #
   8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10 # Foundation, Inc.
  11 #
  12 #
  13 # This configure script is free software; the Free Software Foundation
  14 # gives unlimited permission to copy, distribute and modify it.
  15 ## -------------------- ##
  16 ## M4sh Initialization. ##
  17 ## -------------------- ##
  18 
  19 # Be more Bourne compatible
  20 DUALCASE=1; export DUALCASE # for MKS sh
  21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22   emulate sh
  23   NULLCMD=:
  24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25   # is contrary to our usage.  Disable this feature.
  26   alias -g '${1+"$@"}'='"$@"'
  27   setopt NO_GLOB_SUBST
  28 else
  29   case `(set -o) 2>/dev/null` in #(
  30   *posix*) :
  31     set -o posix ;; #(
  32   *) :
  33      ;;
  34 esac
  35 fi
  36 
  37 
  38 as_nl='
  39 '
  40 export as_nl
  41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  45 # Prefer a ksh shell builtin over an external printf program on Solaris,
  46 # but without wasting forks for bash or zsh.
  47 if test -z "$BASH_VERSION$ZSH_VERSION" \
  48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  49   as_echo='print -r --'
  50   as_echo_n='print -rn --'
  51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  52   as_echo='printf %s\n'
  53   as_echo_n='printf %s'
  54 else
  55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  57     as_echo_n='/usr/ucb/echo -n'
  58   else
  59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  60     as_echo_n_body='eval
  61       arg=$1;
  62       case $arg in #(
  63       *"$as_nl"*)
  64         expr "X$arg" : "X\\(.*\\)$as_nl";
  65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  66       esac;
  67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  68     '
  69     export as_echo_n_body
  70     as_echo_n='sh -c $as_echo_n_body as_echo'
  71   fi
  72   export as_echo_body
  73   as_echo='sh -c $as_echo_body as_echo'
  74 fi
  75 
  76 # The user is always right.
  77 if test "${PATH_SEPARATOR+set}" != set; then
  78   PATH_SEPARATOR=:
  79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  81       PATH_SEPARATOR=';'
  82   }
  83 fi
  84 
  85 
  86 # IFS
  87 # We need space, tab and new line, in precisely that order.  Quoting is
  88 # there to prevent editors from complaining about space-tab.
  89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  90 # splitting by setting IFS to empty value.)
  91 IFS=" ""        $as_nl"
  92 
  93 # Find who we are.  Look in the path if we contain no directory separator.
  94 case $0 in #((
  95   *[\\/]* ) as_myself=$0 ;;
  96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  97 for as_dir in $PATH
  98 do
  99   IFS=$as_save_IFS
 100   test -z "$as_dir" && as_dir=.
 101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 102   done
 103 IFS=$as_save_IFS
 104 
 105      ;;
 106 esac
 107 # We did not find ourselves, most probably we were run as `sh COMMAND'
 108 # in which case we are not to be found in the path.
 109 if test "x$as_myself" = x; then
 110   as_myself=$0
 111 fi
 112 if test ! -f "$as_myself"; then
 113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 114   exit 1
 115 fi
 116 
 117 # Unset variables that we do not need and which cause bugs (e.g. in
 118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 119 # suppresses any "Segmentation fault" message there.  '((' could
 120 # trigger a bug in pdksh 5.2.14.
 121 for as_var in BASH_ENV ENV MAIL MAILPATH
 122 do eval test x\${$as_var+set} = xset \
 123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 124 done
 125 PS1='$ '
 126 PS2='> '
 127 PS4='+ '
 128 
 129 # NLS nuisances.
 130 LC_ALL=C
 131 export LC_ALL
 132 LANGUAGE=C
 133 export LANGUAGE
 134 
 135 # CDPATH.
 136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 137 
 138 if test "x$CONFIG_SHELL" = x; then
 139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 140   emulate sh
 141   NULLCMD=:
 142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 143   # is contrary to our usage.  Disable this feature.
 144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 145   setopt NO_GLOB_SUBST
 146 else
 147   case \`(set -o) 2>/dev/null\` in #(
 148   *posix*) :
 149     set -o posix ;; #(
 150   *) :
 151      ;;
 152 esac
 153 fi
 154 "
 155   as_required="as_fn_return () { (exit \$1); }
 156 as_fn_success () { as_fn_return 0; }
 157 as_fn_failure () { as_fn_return 1; }
 158 as_fn_ret_success () { return 0; }
 159 as_fn_ret_failure () { return 1; }
 160 
 161 exitcode=0
 162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 167 
 168 else
 169   exitcode=1; echo positional parameters were not saved.
 170 fi
 171 test x\$exitcode = x0 || exit 1"
 172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 176 test \$(( 1 + 1 )) = 2 || exit 1"
 177   if (eval "$as_required") 2>/dev/null; then :
 178   as_have_required=yes
 179 else
 180   as_have_required=no
 181 fi
 182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 183 
 184 else
 185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 186 as_found=false
 187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 188 do
 189   IFS=$as_save_IFS
 190   test -z "$as_dir" && as_dir=.
 191   as_found=:
 192   case $as_dir in #(
 193          /*)
 194            for as_base in sh bash ksh sh5; do
 195              # Try only shells that exist, to save several forks.
 196              as_shell=$as_dir/$as_base
 197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 199   CONFIG_SHELL=$as_shell as_have_required=yes
 200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 201   break 2
 202 fi
 203 fi
 204            done;;
 205        esac
 206   as_found=false
 207 done
 208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 210   CONFIG_SHELL=$SHELL as_have_required=yes
 211 fi; }
 212 IFS=$as_save_IFS
 213 
 214 
 215       if test "x$CONFIG_SHELL" != x; then :
 216   # We cannot yet assume a decent shell, so we have to provide a
 217         # neutralization value for shells without unset; and this also
 218         # works around shells that cannot unset nonexistent variables.
 219         BASH_ENV=/dev/null
 220         ENV=/dev/null
 221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 222         export CONFIG_SHELL
 223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 224 fi
 225 
 226     if test x$as_have_required = xno; then :
 227   $as_echo "$0: This script requires a shell more modern than all"
 228   $as_echo "$0: the shells that I found on your system."
 229   if test x${ZSH_VERSION+set} = xset ; then
 230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 232   else
 233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 234 $0: build-dev@openjdk.java.net about your system, including
 235 $0: any error possibly output before this message. Then
 236 $0: install a modern shell, or manually run the script
 237 $0: under such a shell if you do have one."
 238   fi
 239   exit 1
 240 fi
 241 fi
 242 fi
 243 SHELL=${CONFIG_SHELL-/bin/sh}
 244 export SHELL
 245 # Unset more variables known to interfere with behavior of common tools.
 246 CLICOLOR_FORCE= GREP_OPTIONS=
 247 unset CLICOLOR_FORCE GREP_OPTIONS
 248 
 249 ## --------------------- ##
 250 ## M4sh Shell Functions. ##
 251 ## --------------------- ##
 252 # as_fn_unset VAR
 253 # ---------------
 254 # Portably unset VAR.
 255 as_fn_unset ()
 256 {
 257   { eval $1=; unset $1;}
 258 }
 259 as_unset=as_fn_unset
 260 
 261 # as_fn_set_status STATUS
 262 # -----------------------
 263 # Set $? to STATUS, without forking.
 264 as_fn_set_status ()
 265 {
 266   return $1
 267 } # as_fn_set_status
 268 
 269 # as_fn_exit STATUS
 270 # -----------------
 271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 272 as_fn_exit ()
 273 {
 274   set +e
 275   as_fn_set_status $1
 276   exit $1
 277 } # as_fn_exit
 278 
 279 # as_fn_mkdir_p
 280 # -------------
 281 # Create "$as_dir" as a directory, including parents if necessary.
 282 as_fn_mkdir_p ()
 283 {
 284 
 285   case $as_dir in #(
 286   -*) as_dir=./$as_dir;;
 287   esac
 288   test -d "$as_dir" || eval $as_mkdir_p || {
 289     as_dirs=
 290     while :; do
 291       case $as_dir in #(
 292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 293       *) as_qdir=$as_dir;;
 294       esac
 295       as_dirs="'$as_qdir' $as_dirs"
 296       as_dir=`$as_dirname -- "$as_dir" ||
 297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 298          X"$as_dir" : 'X\(//\)[^/]' \| \
 299          X"$as_dir" : 'X\(//\)$' \| \
 300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 301 $as_echo X"$as_dir" |
 302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 303             s//\1/
 304             q
 305           }
 306           /^X\(\/\/\)[^/].*/{
 307             s//\1/
 308             q
 309           }
 310           /^X\(\/\/\)$/{
 311             s//\1/
 312             q
 313           }
 314           /^X\(\/\).*/{
 315             s//\1/
 316             q
 317           }
 318           s/.*/./; q'`
 319       test -d "$as_dir" && break
 320     done
 321     test -z "$as_dirs" || eval "mkdir $as_dirs"
 322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 323 
 324 
 325 } # as_fn_mkdir_p
 326 # as_fn_append VAR VALUE
 327 # ----------------------
 328 # Append the text in VALUE to the end of the definition contained in VAR. Take
 329 # advantage of any shell optimizations that allow amortized linear growth over
 330 # repeated appends, instead of the typical quadratic growth present in naive
 331 # implementations.
 332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 333   eval 'as_fn_append ()
 334   {
 335     eval $1+=\$2
 336   }'
 337 else
 338   as_fn_append ()
 339   {
 340     eval $1=\$$1\$2
 341   }
 342 fi # as_fn_append
 343 
 344 # as_fn_arith ARG...
 345 # ------------------
 346 # Perform arithmetic evaluation on the ARGs, and store the result in the
 347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 348 # must be portable across $(()) and expr.
 349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 350   eval 'as_fn_arith ()
 351   {
 352     as_val=$(( $* ))
 353   }'
 354 else
 355   as_fn_arith ()
 356   {
 357     as_val=`expr "$@" || test $? -eq 1`
 358   }
 359 fi # as_fn_arith
 360 
 361 
 362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 363 # ----------------------------------------
 364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 366 # script with STATUS, using 1 if that was 0.
 367 as_fn_error ()
 368 {
 369   as_status=$1; test $as_status -eq 0 && as_status=1
 370   if test "$4"; then
 371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 373   fi
 374   $as_echo "$as_me: error: $2" >&2
 375   as_fn_exit $as_status
 376 } # as_fn_error
 377 
 378 if expr a : '\(a\)' >/dev/null 2>&1 &&
 379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 380   as_expr=expr
 381 else
 382   as_expr=false
 383 fi
 384 
 385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 386   as_basename=basename
 387 else
 388   as_basename=false
 389 fi
 390 
 391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 392   as_dirname=dirname
 393 else
 394   as_dirname=false
 395 fi
 396 
 397 as_me=`$as_basename -- "$0" ||
 398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 399          X"$0" : 'X\(//\)$' \| \
 400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 401 $as_echo X/"$0" |
 402     sed '/^.*\/\([^/][^/]*\)\/*$/{
 403             s//\1/
 404             q
 405           }
 406           /^X\/\(\/\/\)$/{
 407             s//\1/
 408             q
 409           }
 410           /^X\/\(\/\).*/{
 411             s//\1/
 412             q
 413           }
 414           s/.*/./; q'`
 415 
 416 # Avoid depending upon Character Ranges.
 417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 420 as_cr_digits='0123456789'
 421 as_cr_alnum=$as_cr_Letters$as_cr_digits
 422 
 423 
 424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 429   sed -n '
 430     p
 431     /[$]LINENO/=
 432   ' <$as_myself |
 433     sed '
 434       s/[$]LINENO.*/&-/
 435       t lineno
 436       b
 437       :lineno
 438       N
 439       :loop
 440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 441       t loop
 442       s/-\n.*//
 443     ' >$as_me.lineno &&
 444   chmod +x "$as_me.lineno" ||
 445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 446 
 447   # Don't try to exec as it changes $[0], causing all sort of problems
 448   # (the dirname of $[0] is not the place where we might find the
 449   # original and so on.  Autoconf is especially sensitive to this).
 450   . "./$as_me.lineno"
 451   # Exit status is that of the last command.
 452   exit
 453 }
 454 
 455 ECHO_C= ECHO_N= ECHO_T=
 456 case `echo -n x` in #(((((
 457 -n*)
 458   case `echo 'xy\c'` in
 459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 460   xy)  ECHO_C='\c';;
 461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 462        ECHO_T=' ';;
 463   esac;;
 464 *)
 465   ECHO_N='-n';;
 466 esac
 467 
 468 rm -f conf$$ conf$$.exe conf$$.file
 469 if test -d conf$$.dir; then
 470   rm -f conf$$.dir/conf$$.file
 471 else
 472   rm -f conf$$.dir
 473   mkdir conf$$.dir 2>/dev/null
 474 fi
 475 if (echo >conf$$.file) 2>/dev/null; then
 476   if ln -s conf$$.file conf$$ 2>/dev/null; then
 477     as_ln_s='ln -s'
 478     # ... but there are two gotchas:
 479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 481     # In both cases, we have to default to `cp -p'.
 482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 483       as_ln_s='cp -p'
 484   elif ln conf$$.file conf$$ 2>/dev/null; then
 485     as_ln_s=ln
 486   else
 487     as_ln_s='cp -p'
 488   fi
 489 else
 490   as_ln_s='cp -p'
 491 fi
 492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 493 rmdir conf$$.dir 2>/dev/null
 494 
 495 if mkdir -p . 2>/dev/null; then
 496   as_mkdir_p='mkdir -p "$as_dir"'
 497 else
 498   test -d ./-p && rmdir ./-p
 499   as_mkdir_p=false
 500 fi
 501 
 502 if test -x / >/dev/null 2>&1; then
 503   as_test_x='test -x'
 504 else
 505   if ls -dL / >/dev/null 2>&1; then
 506     as_ls_L_option=L
 507   else
 508     as_ls_L_option=
 509   fi
 510   as_test_x='
 511     eval sh -c '\''
 512       if test -d "$1"; then
 513         test -d "$1/.";
 514       else
 515         case $1 in #(
 516         -*)set "./$1";;
 517         esac;
 518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 519         ???[sx]*):;;*)false;;esac;fi
 520     '\'' sh
 521   '
 522 fi
 523 as_executable_p=$as_test_x
 524 
 525 # Sed expression to map a string onto a valid CPP name.
 526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 527 
 528 # Sed expression to map a string onto a valid variable name.
 529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 530 
 531 
 532 test -n "$DJDIR" || exec 7<&0 </dev/null
 533 exec 6>&1
 534 
 535 # Name of the host.
 536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 537 # so uname gets run too.
 538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 539 
 540 #
 541 # Initializations.
 542 #
 543 ac_default_prefix=/usr/local
 544 ac_clean_files=
 545 ac_config_libobj_dir=.
 546 LIBOBJS=
 547 cross_compiling=no
 548 subdirs=
 549 MFLAGS=
 550 MAKEFLAGS=
 551 
 552 # Identity of this package.
 553 PACKAGE_NAME='openjdk'
 554 PACKAGE_TARNAME='openjdk'
 555 PACKAGE_VERSION='jdk8'
 556 PACKAGE_STRING='openjdk jdk8'
 557 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 558 PACKAGE_URL=''
 559 
 560 # Factoring default headers for most tests.
 561 ac_includes_default="\
 562 #include <stdio.h>
 563 #ifdef HAVE_SYS_TYPES_H
 564 # include <sys/types.h>
 565 #endif
 566 #ifdef HAVE_SYS_STAT_H
 567 # include <sys/stat.h>
 568 #endif
 569 #ifdef STDC_HEADERS
 570 # include <stdlib.h>
 571 # include <stddef.h>
 572 #else
 573 # ifdef HAVE_STDLIB_H
 574 #  include <stdlib.h>
 575 # endif
 576 #endif
 577 #ifdef HAVE_STRING_H
 578 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 579 #  include <memory.h>
 580 # endif
 581 # include <string.h>
 582 #endif
 583 #ifdef HAVE_STRINGS_H
 584 # include <strings.h>
 585 #endif
 586 #ifdef HAVE_INTTYPES_H
 587 # include <inttypes.h>
 588 #endif
 589 #ifdef HAVE_STDINT_H
 590 # include <stdint.h>
 591 #endif
 592 #ifdef HAVE_UNISTD_H
 593 # include <unistd.h>
 594 #endif"
 595 
 596 ac_subst_vars='LTLIBOBJS
 597 LIBOBJS
 598 CCACHE
 599 USE_PRECOMPILED_HEADER
 600 ENABLE_SJAVAC
 601 JAVAC_USE_MODE
 602 JAVAC_USE_DEPS
 603 JAVAC_SERVER_CORES
 604 JAVAC_SERVERS
 605 JAVAC_USE_REMOTE
 606 SERVER_JAVA
 607 MEMORY_SIZE
 608 CONCURRENT_BUILD_JOBS
 609 NUM_CORES
 610 SALIB_NAME
 611 HOTSPOT_MAKE_ARGS
 612 LIBCXX
 613 LIBDL
 614 LIBM
 615 LIBZIP_CAN_USE_MMAP
 616 USE_EXTERNAL_LIBZ
 617 USE_EXTERNAL_LIBGIF
 618 USE_EXTERNAL_LIBJPEG
 619 ALSA_LIBS
 620 ALSA_CFLAGS
 621 FREETYPE2_LIB_PATH
 622 USING_SYSTEM_FT_LIB
 623 FREETYPE2_LIBS
 624 FREETYPE2_CFLAGS
 625 CUPS_LIBS
 626 CUPS_CFLAGS
 627 OPENWIN_HOME
 628 X_EXTRA_LIBS
 629 X_LIBS
 630 X_PRE_LIBS
 631 X_CFLAGS
 632 XMKMF
 633 CXXFLAGS_DEBUG_SYMBOLS
 634 CFLAGS_DEBUG_SYMBOLS
 635 ZIP_DEBUGINFO_FILES
 636 ENABLE_DEBUG_SYMBOLS
 637 UNCYGDRIVE
 638 LDFLAGS_JDKEXE_SUFFIX
 639 LDFLAGS_JDKLIB_SUFFIX
 640 LDFLAGS_JDKEXE
 641 LDFLAGS_JDKLIB
 642 CXXFLAGS_JDKEXE
 643 CXXFLAGS_JDKLIB
 644 CFLAGS_JDKEXE
 645 CFLAGS_JDKLIB
 646 PACKAGE_PATH
 647 CXX_FLAG_DEPS
 648 C_FLAG_DEPS
 649 CXX_O_FLAG_NONE
 650 CXX_O_FLAG_NORM
 651 CXX_O_FLAG_HI
 652 CXX_O_FLAG_HIGHEST
 653 C_O_FLAG_NONE
 654 C_O_FLAG_NORM
 655 C_O_FLAG_HI
 656 C_O_FLAG_HIGHEST
 657 POST_MCS_CMD
 658 POST_STRIP_CMD
 659 SET_SHARED_LIBRARY_ORIGIN
 660 CXX_FLAG_REORDER
 661 C_FLAG_REORDER
 662 SET_SHARED_LIBRARY_MAPFILE
 663 SET_SHARED_LIBRARY_NAME
 664 SHARED_LIBRARY_FLAGS
 665 EXE_SUFFIX
 666 STATIC_LIBRARY_SUFFIX
 667 SHARED_LIBRARY_SUFFIX
 668 LIBRARY_PREFIX
 669 STATIC_LIBRARY
 670 SHARED_LIBRARY
 671 OBJ_SUFFIX
 672 ENDIAN
 673 ARCH_DATA_MODEL
 674 LP64
 675 OBJCOPY
 676 MCS
 677 STRIP
 678 NM
 679 ASFLAGS
 680 AS
 681 CXXCPP
 682 CPP
 683 COMPILER_TYPE
 684 RC_FLAGS
 685 DUMPBIN
 686 WINAR
 687 RC
 688 MT
 689 WINLD
 690 ARFLAGS
 691 AR
 692 LDEXECXX
 693 LDCXX
 694 LDEXE
 695 LD
 696 ac_ct_OBJC
 697 OBJCFLAGS
 698 OBJC
 699 ac_ct_CXX
 700 CXXFLAGS
 701 CXX
 702 OBJEXT
 703 EXEEXT
 704 ac_ct_CC
 705 CPPFLAGS
 706 LDFLAGS
 707 CFLAGS
 708 CC
 709 HOSTLD
 710 HOSTCXX
 711 HOSTCC
 712 DEFINE_CROSS_COMPILE_ARCH
 713 MSVCR100DLL
 714 CHECK_FOR_VCINSTALLDIR
 715 SETUPDEVENV
 716 AR_OUT_OPTION
 717 LD_OUT_OPTION
 718 EXE_OUT_OPTION
 719 CC_OUT_OPTION
 720 SYS_ROOT
 721 HOTSPOT_DIST
 722 JAXWS_DIST
 723 JAXP_DIST
 724 CORBA_DIST
 725 LANGTOOLS_DIST
 726 IMAGES_OUTPUTDIR
 727 JDK_OUTPUTDIR
 728 HOTSPOT_OUTPUTDIR
 729 JAXWS_OUTPUTDIR
 730 JAXP_OUTPUTDIR
 731 CORBA_OUTPUTDIR
 732 LANGTOOLS_OUTPUTDIR
 733 OVERRIDE_SRC_ROOT
 734 ADD_SRC_ROOT
 735 JDK_TOPDIR
 736 HOTSPOT_TOPDIR
 737 JAXWS_TOPDIR
 738 JAXP_TOPDIR
 739 CORBA_TOPDIR
 740 LANGTOOLS_TOPDIR
 741 BOOT_JDK_JVMARGS
 742 NATIVE2ASCII
 743 RMIC
 744 JAR
 745 JAVAH
 746 JAVAC_FLAGS
 747 JAVAC
 748 BOOT_JDK_SOURCETARGET
 749 JAVA
 750 BOOT_TOOLSJAR
 751 BOOT_RTJAR
 752 BOOT_JDK
 753 JAVA_CHECK
 754 JAVAC_CHECK
 755 OUTPUT_ROOT
 756 CONF_NAME
 757 SPEC
 758 COOKED_BUILD_NUMBER
 759 FULL_VERSION
 760 RELEASE
 761 JDK_VERSION
 762 RUNTIME_NAME
 763 COPYRIGHT_YEAR
 764 COMPANY_NAME
 765 JDK_RC_PLATFORM_NAME
 766 PRODUCT_SUFFIX
 767 PRODUCT_NAME
 768 LAUNCHER_NAME
 769 MILESTONE
 770 JDK_BUILD_NUMBER
 771 JDK_UPDATE_VERSION
 772 JDK_MICRO_VERSION
 773 JDK_MINOR_VERSION
 774 JDK_MAJOR_VERSION
 775 ENABLE_JFR
 776 COMPRESS_JARS
 777 CACERTS_FILE
 778 TEST_IN_BUILD
 779 DISABLE_NIMBUS
 780 GENERATE_DOCS
 781 ENABLE_DOCS
 782 BUILD_HEADLESS_ONLY
 783 BUILD_HEADLESS
 784 SUPPORT_HEADFUL
 785 SUPPORT_HEADLESS
 786 JIGSAW
 787 SET_OPENJDK
 788 BUILD_VARIANT_RELEASE
 789 DEBUG_CLASSFILES
 790 FASTDEBUG
 791 VARIANT
 792 DEBUG_LEVEL
 793 JVM_VARIANT_ZEROSHARK
 794 JVM_VARIANT_ZERO
 795 JVM_VARIANT_KERNEL
 796 JVM_VARIANT_CLIENT
 797 JVM_VARIANT_SERVER
 798 JVM_VARIANTS
 799 JDK_VARIANT
 800 MINIMIZE_RAM_USAGE
 801 JAVASE_EMBEDDED
 802 PATH_SEP
 803 CYGPATH
 804 OS_VERSION_MICRO
 805 OS_VERSION_MINOR
 806 OS_VERSION_MAJOR
 807 REQUIRED_OS_VERSION
 808 REQUIRED_OS_NAME
 809 LEGACY_OPENJDK_BUILD_CPU3
 810 LEGACY_OPENJDK_BUILD_CPU2
 811 LEGACY_OPENJDK_BUILD_CPU1
 812 OPENJDK_BUILD_CPU_ENDIAN
 813 OPENJDK_BUILD_CPU_BITS
 814 OPENJDK_BUILD_CPU_ARCH
 815 OPENJDK_BUILD_CPU
 816 LEGACY_OPENJDK_BUILD_OS_API
 817 OPENJDK_BUILD_OS_API
 818 OPENJDK_BUILD_OS_FAMILY
 819 OPENJDK_BUILD_OS
 820 LEGACY_OPENJDK_TARGET_CPU3
 821 LEGACY_OPENJDK_TARGET_CPU2
 822 LEGACY_OPENJDK_TARGET_CPU1
 823 OPENJDK_TARGET_CPU_ENDIAN
 824 OPENJDK_TARGET_CPU_BITS
 825 OPENJDK_TARGET_CPU_ARCH
 826 OPENJDK_TARGET_CPU
 827 LEGACY_OPENJDK_TARGET_OS_API
 828 OPENJDK_TARGET_OS_API
 829 OPENJDK_TARGET_OS_FAMILY
 830 OPENJDK_TARGET_OS
 831 OPENJDK_BUILD_SYSTEM
 832 OPENJDK_TARGET_SYSTEM
 833 target_os
 834 target_vendor
 835 target_cpu
 836 target
 837 host_os
 838 host_vendor
 839 host_cpu
 840 host
 841 build_os
 842 build_vendor
 843 build_cpu
 844 build
 845 PKG_CONFIG
 846 BDEPS_FTP
 847 BDEPS_UNZIP
 848 HG
 849 FILE
 850 EXPR
 851 READELF
 852 OTOOL
 853 LDD
 854 UNZIP
 855 ZIP
 856 XARGS
 857 WC
 858 TOUCH
 859 TR
 860 TEE
 861 TAIL
 862 TAR
 863 SORT
 864 SH
 865 SED
 866 RM
 867 THEPWDCMD
 868 PRINTF
 869 NAWK
 870 MV
 871 MKDIR
 872 MAKE
 873 LS
 874 LN
 875 HEAD
 876 FIND_DELETE
 877 FIND
 878 FGREP
 879 EGREP
 880 GREP
 881 ECHO
 882 DIFF
 883 DF
 884 DATE
 885 CUT
 886 CPIO
 887 CP
 888 CHMOD
 889 CAT
 890 AWK
 891 PKGHANDLER
 892 BUILD_LOG_WRAPPER
 893 BUILD_LOG_PREVIOUS
 894 BUILD_LOG
 895 SRC_ROOT
 896 READLINK
 897 DATE_WHEN_CONFIGURED
 898 CONFIGURE_COMMAND_LINE
 899 target_alias
 900 host_alias
 901 build_alias
 902 LIBS
 903 ECHO_T
 904 ECHO_N
 905 ECHO_C
 906 DEFS
 907 mandir
 908 localedir
 909 libdir
 910 psdir
 911 pdfdir
 912 dvidir
 913 htmldir
 914 infodir
 915 docdir
 916 oldincludedir
 917 includedir
 918 localstatedir
 919 sharedstatedir
 920 sysconfdir
 921 datadir
 922 datarootdir
 923 libexecdir
 924 sbindir
 925 bindir
 926 program_transform_name
 927 prefix
 928 exec_prefix
 929 PACKAGE_URL
 930 PACKAGE_BUGREPORT
 931 PACKAGE_STRING
 932 PACKAGE_VERSION
 933 PACKAGE_TARNAME
 934 PACKAGE_NAME
 935 PATH_SEPARATOR
 936 SHELL'
 937 ac_subst_files=''
 938 ac_user_opts='
 939 enable_option_checking
 940 with_builddeps_conf
 941 with_builddeps_server
 942 with_builddeps_dir
 943 with_builddeps_group
 944 enable_list_builddeps
 945 with_target_bits
 946 with_jdk_variant
 947 with_jvm_variants
 948 enable_debug
 949 with_debug_level
 950 enable_openjdk_only
 951 enable_jigsaw
 952 enable_headful
 953 enable_docs
 954 enable_nimbus
 955 enable_hotspot_test_in_build
 956 with_cacerts_file
 957 enable_jfr
 958 with_conf_name
 959 with_boot_jdk
 960 with_boot_jdk_jvmargs
 961 with_add_source_root
 962 with_override_source_root
 963 with_adds_and_overrides
 964 with_override_langtools
 965 with_override_corba
 966 with_override_jaxp
 967 with_override_jaxws
 968 with_override_hotspot
 969 with_override_jdk
 970 with_msvcr100dll
 971 with_sys_root
 972 with_tools_dir
 973 with_devkit
 974 with_extra_cflags
 975 with_extra_cxxflags
 976 with_extra_ldflags
 977 enable_debug_symbols
 978 enable_zip_debug_info
 979 enable_macosx_runtime_support
 980 with_x
 981 with_cups
 982 with_cups_include
 983 with_cups_lib
 984 with_freetype
 985 with_alsa
 986 with_alsa_include
 987 with_alsa_lib
 988 with_zlib
 989 enable_static_link_stdc__
 990 with_num_cores
 991 with_memory_size
 992 with_server_java
 993 enable_javac_server
 994 with_javac_server_cores
 995 enable_javac_deps
 996 enable_javac_multi_core
 997 enable_sjavac
 998 enable_precompiled_headers
 999 enable_ccache
1000 with_ccache_dir
1001 '
1002       ac_precious_vars='build_alias
1003 host_alias
1004 target_alias
1005 PKG_CONFIG
1006 CC
1007 CFLAGS
1008 LDFLAGS
1009 LIBS
1010 CPPFLAGS
1011 CXX
1012 CXXFLAGS
1013 CCC
1014 OBJC
1015 OBJCFLAGS
1016 CPP
1017 CXXCPP
1018 XMKMF
1019 FREETYPE2_CFLAGS
1020 FREETYPE2_LIBS
1021 ALSA_CFLAGS
1022 ALSA_LIBS'
1023 
1024 
1025 # Initialize some variables set by options.
1026 ac_init_help=
1027 ac_init_version=false
1028 ac_unrecognized_opts=
1029 ac_unrecognized_sep=
1030 # The variables have the same names as the options, with
1031 # dashes changed to underlines.
1032 cache_file=/dev/null
1033 exec_prefix=NONE
1034 no_create=
1035 no_recursion=
1036 prefix=NONE
1037 program_prefix=NONE
1038 program_suffix=NONE
1039 program_transform_name=s,x,x,
1040 silent=
1041 site=
1042 srcdir=
1043 verbose=
1044 x_includes=NONE
1045 x_libraries=NONE
1046 
1047 # Installation directory options.
1048 # These are left unexpanded so users can "make install exec_prefix=/foo"
1049 # and all the variables that are supposed to be based on exec_prefix
1050 # by default will actually change.
1051 # Use braces instead of parens because sh, perl, etc. also accept them.
1052 # (The list follows the same order as the GNU Coding Standards.)
1053 bindir='${exec_prefix}/bin'
1054 sbindir='${exec_prefix}/sbin'
1055 libexecdir='${exec_prefix}/libexec'
1056 datarootdir='${prefix}/share'
1057 datadir='${datarootdir}'
1058 sysconfdir='${prefix}/etc'
1059 sharedstatedir='${prefix}/com'
1060 localstatedir='${prefix}/var'
1061 includedir='${prefix}/include'
1062 oldincludedir='/usr/include'
1063 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1064 infodir='${datarootdir}/info'
1065 htmldir='${docdir}'
1066 dvidir='${docdir}'
1067 pdfdir='${docdir}'
1068 psdir='${docdir}'
1069 libdir='${exec_prefix}/lib'
1070 localedir='${datarootdir}/locale'
1071 mandir='${datarootdir}/man'
1072 
1073 ac_prev=
1074 ac_dashdash=
1075 for ac_option
1076 do
1077   # If the previous option needs an argument, assign it.
1078   if test -n "$ac_prev"; then
1079     eval $ac_prev=\$ac_option
1080     ac_prev=
1081     continue
1082   fi
1083 
1084   case $ac_option in
1085   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1086   *=)   ac_optarg= ;;
1087   *)    ac_optarg=yes ;;
1088   esac
1089 
1090   # Accept the important Cygnus configure options, so we can diagnose typos.
1091 
1092   case $ac_dashdash$ac_option in
1093   --)
1094     ac_dashdash=yes ;;
1095 
1096   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1097     ac_prev=bindir ;;
1098   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1099     bindir=$ac_optarg ;;
1100 
1101   -build | --build | --buil | --bui | --bu)
1102     ac_prev=build_alias ;;
1103   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1104     build_alias=$ac_optarg ;;
1105 
1106   -cache-file | --cache-file | --cache-fil | --cache-fi \
1107   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1108     ac_prev=cache_file ;;
1109   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1110   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1111     cache_file=$ac_optarg ;;
1112 
1113   --config-cache | -C)
1114     cache_file=config.cache ;;
1115 
1116   -datadir | --datadir | --datadi | --datad)
1117     ac_prev=datadir ;;
1118   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1119     datadir=$ac_optarg ;;
1120 
1121   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1122   | --dataroo | --dataro | --datar)
1123     ac_prev=datarootdir ;;
1124   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1125   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1126     datarootdir=$ac_optarg ;;
1127 
1128   -disable-* | --disable-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       as_fn_error $? "invalid feature name: $ac_useropt"
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "enable_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval enable_$ac_useropt=no ;;
1143 
1144   -docdir | --docdir | --docdi | --doc | --do)
1145     ac_prev=docdir ;;
1146   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1147     docdir=$ac_optarg ;;
1148 
1149   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1150     ac_prev=dvidir ;;
1151   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1152     dvidir=$ac_optarg ;;
1153 
1154   -enable-* | --enable-*)
1155     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158       as_fn_error $? "invalid feature name: $ac_useropt"
1159     ac_useropt_orig=$ac_useropt
1160     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161     case $ac_user_opts in
1162       *"
1163 "enable_$ac_useropt"
1164 "*) ;;
1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1166          ac_unrecognized_sep=', ';;
1167     esac
1168     eval enable_$ac_useropt=\$ac_optarg ;;
1169 
1170   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1171   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1172   | --exec | --exe | --ex)
1173     ac_prev=exec_prefix ;;
1174   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1175   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1176   | --exec=* | --exe=* | --ex=*)
1177     exec_prefix=$ac_optarg ;;
1178 
1179   -gas | --gas | --ga | --g)
1180     # Obsolete; use --with-gas.
1181     with_gas=yes ;;
1182 
1183   -help | --help | --hel | --he | -h)
1184     ac_init_help=long ;;
1185   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1186     ac_init_help=recursive ;;
1187   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1188     ac_init_help=short ;;
1189 
1190   -host | --host | --hos | --ho)
1191     ac_prev=host_alias ;;
1192   -host=* | --host=* | --hos=* | --ho=*)
1193     host_alias=$ac_optarg ;;
1194 
1195   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1196     ac_prev=htmldir ;;
1197   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1198   | --ht=*)
1199     htmldir=$ac_optarg ;;
1200 
1201   -includedir | --includedir | --includedi | --included | --include \
1202   | --includ | --inclu | --incl | --inc)
1203     ac_prev=includedir ;;
1204   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1205   | --includ=* | --inclu=* | --incl=* | --inc=*)
1206     includedir=$ac_optarg ;;
1207 
1208   -infodir | --infodir | --infodi | --infod | --info | --inf)
1209     ac_prev=infodir ;;
1210   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1211     infodir=$ac_optarg ;;
1212 
1213   -libdir | --libdir | --libdi | --libd)
1214     ac_prev=libdir ;;
1215   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1216     libdir=$ac_optarg ;;
1217 
1218   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1219   | --libexe | --libex | --libe)
1220     ac_prev=libexecdir ;;
1221   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1222   | --libexe=* | --libex=* | --libe=*)
1223     libexecdir=$ac_optarg ;;
1224 
1225   -localedir | --localedir | --localedi | --localed | --locale)
1226     ac_prev=localedir ;;
1227   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1228     localedir=$ac_optarg ;;
1229 
1230   -localstatedir | --localstatedir | --localstatedi | --localstated \
1231   | --localstate | --localstat | --localsta | --localst | --locals)
1232     ac_prev=localstatedir ;;
1233   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1234   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1235     localstatedir=$ac_optarg ;;
1236 
1237   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1238     ac_prev=mandir ;;
1239   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1240     mandir=$ac_optarg ;;
1241 
1242   -nfp | --nfp | --nf)
1243     # Obsolete; use --without-fp.
1244     with_fp=no ;;
1245 
1246   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1247   | --no-cr | --no-c | -n)
1248     no_create=yes ;;
1249 
1250   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1251   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1252     no_recursion=yes ;;
1253 
1254   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1255   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1256   | --oldin | --oldi | --old | --ol | --o)
1257     ac_prev=oldincludedir ;;
1258   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1259   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1260   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1261     oldincludedir=$ac_optarg ;;
1262 
1263   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1264     ac_prev=prefix ;;
1265   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1266     prefix=$ac_optarg ;;
1267 
1268   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1269   | --program-pre | --program-pr | --program-p)
1270     ac_prev=program_prefix ;;
1271   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1272   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1273     program_prefix=$ac_optarg ;;
1274 
1275   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1276   | --program-suf | --program-su | --program-s)
1277     ac_prev=program_suffix ;;
1278   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1279   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1280     program_suffix=$ac_optarg ;;
1281 
1282   -program-transform-name | --program-transform-name \
1283   | --program-transform-nam | --program-transform-na \
1284   | --program-transform-n | --program-transform- \
1285   | --program-transform | --program-transfor \
1286   | --program-transfo | --program-transf \
1287   | --program-trans | --program-tran \
1288   | --progr-tra | --program-tr | --program-t)
1289     ac_prev=program_transform_name ;;
1290   -program-transform-name=* | --program-transform-name=* \
1291   | --program-transform-nam=* | --program-transform-na=* \
1292   | --program-transform-n=* | --program-transform-=* \
1293   | --program-transform=* | --program-transfor=* \
1294   | --program-transfo=* | --program-transf=* \
1295   | --program-trans=* | --program-tran=* \
1296   | --progr-tra=* | --program-tr=* | --program-t=*)
1297     program_transform_name=$ac_optarg ;;
1298 
1299   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1300     ac_prev=pdfdir ;;
1301   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1302     pdfdir=$ac_optarg ;;
1303 
1304   -psdir | --psdir | --psdi | --psd | --ps)
1305     ac_prev=psdir ;;
1306   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1307     psdir=$ac_optarg ;;
1308 
1309   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310   | -silent | --silent | --silen | --sile | --sil)
1311     silent=yes ;;
1312 
1313   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1314     ac_prev=sbindir ;;
1315   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1316   | --sbi=* | --sb=*)
1317     sbindir=$ac_optarg ;;
1318 
1319   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1320   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1321   | --sharedst | --shareds | --shared | --share | --shar \
1322   | --sha | --sh)
1323     ac_prev=sharedstatedir ;;
1324   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1325   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1326   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1327   | --sha=* | --sh=*)
1328     sharedstatedir=$ac_optarg ;;
1329 
1330   -site | --site | --sit)
1331     ac_prev=site ;;
1332   -site=* | --site=* | --sit=*)
1333     site=$ac_optarg ;;
1334 
1335   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1336     ac_prev=srcdir ;;
1337   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1338     srcdir=$ac_optarg ;;
1339 
1340   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1341   | --syscon | --sysco | --sysc | --sys | --sy)
1342     ac_prev=sysconfdir ;;
1343   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1344   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1345     sysconfdir=$ac_optarg ;;
1346 
1347   -target | --target | --targe | --targ | --tar | --ta | --t)
1348     ac_prev=target_alias ;;
1349   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1350     target_alias=$ac_optarg ;;
1351 
1352   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1353     verbose=yes ;;
1354 
1355   -version | --version | --versio | --versi | --vers | -V)
1356     ac_init_version=: ;;
1357 
1358   -with-* | --with-*)
1359     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1360     # Reject names that are not valid shell variable names.
1361     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362       as_fn_error $? "invalid package name: $ac_useropt"
1363     ac_useropt_orig=$ac_useropt
1364     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365     case $ac_user_opts in
1366       *"
1367 "with_$ac_useropt"
1368 "*) ;;
1369       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1370          ac_unrecognized_sep=', ';;
1371     esac
1372     eval with_$ac_useropt=\$ac_optarg ;;
1373 
1374   -without-* | --without-*)
1375     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1376     # Reject names that are not valid shell variable names.
1377     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378       as_fn_error $? "invalid package name: $ac_useropt"
1379     ac_useropt_orig=$ac_useropt
1380     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381     case $ac_user_opts in
1382       *"
1383 "with_$ac_useropt"
1384 "*) ;;
1385       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1386          ac_unrecognized_sep=', ';;
1387     esac
1388     eval with_$ac_useropt=no ;;
1389 
1390   --x)
1391     # Obsolete; use --with-x.
1392     with_x=yes ;;
1393 
1394   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1395   | --x-incl | --x-inc | --x-in | --x-i)
1396     ac_prev=x_includes ;;
1397   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1398   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1399     x_includes=$ac_optarg ;;
1400 
1401   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1402   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1403     ac_prev=x_libraries ;;
1404   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1405   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1406     x_libraries=$ac_optarg ;;
1407 
1408   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1409 Try \`$0 --help' for more information"
1410     ;;
1411 
1412   *=*)
1413     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1414     # Reject names that are not valid shell variable names.
1415     case $ac_envvar in #(
1416       '' | [0-9]* | *[!_$as_cr_alnum]* )
1417       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1418     esac
1419     eval $ac_envvar=\$ac_optarg
1420     export $ac_envvar ;;
1421 
1422   *)
1423     # FIXME: should be removed in autoconf 3.0.
1424     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1425     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1426       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1427     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1428     ;;
1429 
1430   esac
1431 done
1432 
1433 if test -n "$ac_prev"; then
1434   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1435   as_fn_error $? "missing argument to $ac_option"
1436 fi
1437 
1438 if test -n "$ac_unrecognized_opts"; then
1439   case $enable_option_checking in
1440     no) ;;
1441     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1442     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443   esac
1444 fi
1445 
1446 # Check all directory arguments for consistency.
1447 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1448                 datadir sysconfdir sharedstatedir localstatedir includedir \
1449                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1450                 libdir localedir mandir
1451 do
1452   eval ac_val=\$$ac_var
1453   # Remove trailing slashes.
1454   case $ac_val in
1455     */ )
1456       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1457       eval $ac_var=\$ac_val;;
1458   esac
1459   # Be sure to have absolute directory names.
1460   case $ac_val in
1461     [\\/$]* | ?:[\\/]* )  continue;;
1462     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1463   esac
1464   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1465 done
1466 
1467 # There might be people who depend on the old broken behavior: `$host'
1468 # used to hold the argument of --host etc.
1469 # FIXME: To remove some day.
1470 build=$build_alias
1471 host=$host_alias
1472 target=$target_alias
1473 
1474 # FIXME: To remove some day.
1475 if test "x$host_alias" != x; then
1476   if test "x$build_alias" = x; then
1477     cross_compiling=maybe
1478     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1479     If a cross compiler is detected then cross compile mode will be used" >&2
1480   elif test "x$build_alias" != "x$host_alias"; then
1481     cross_compiling=yes
1482   fi
1483 fi
1484 
1485 ac_tool_prefix=
1486 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1487 
1488 test "$silent" = yes && exec 6>/dev/null
1489 
1490 
1491 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1492 ac_ls_di=`ls -di .` &&
1493 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1494   as_fn_error $? "working directory cannot be determined"
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496   as_fn_error $? "pwd does not report name of working directory"
1497 
1498 
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501   ac_srcdir_defaulted=yes
1502   # Try the directory containing this script, then the parent directory.
1503   ac_confdir=`$as_dirname -- "$as_myself" ||
1504 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505          X"$as_myself" : 'X\(//\)[^/]' \| \
1506          X"$as_myself" : 'X\(//\)$' \| \
1507          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1508 $as_echo X"$as_myself" |
1509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\/\)[^/].*/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)$/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\).*/{
1522             s//\1/
1523             q
1524           }
1525           s/.*/./; q'`
1526   srcdir=$ac_confdir
1527   if test ! -r "$srcdir/$ac_unique_file"; then
1528     srcdir=..
1529   fi
1530 else
1531   ac_srcdir_defaulted=no
1532 fi
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1536 fi
1537 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1538 ac_abs_confdir=`(
1539         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1540         pwd)`
1541 # When building in place, set srcdir=.
1542 if test "$ac_abs_confdir" = "$ac_pwd"; then
1543   srcdir=.
1544 fi
1545 # Remove unnecessary trailing slashes from srcdir.
1546 # Double slashes in file names in object file debugging info
1547 # mess up M-x gdb in Emacs.
1548 case $srcdir in
1549 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550 esac
1551 for ac_var in $ac_precious_vars; do
1552   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1553   eval ac_env_${ac_var}_value=\$${ac_var}
1554   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1555   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1556 done
1557 
1558 #
1559 # Report the --help message.
1560 #
1561 if test "$ac_init_help" = "long"; then
1562   # Omit some internal or obsolete options to make the list less imposing.
1563   # This message is too long to be a string in the A/UX 3.1 sh.
1564   cat <<_ACEOF
1565 \`configure' configures openjdk jdk8 to adapt to many kinds of systems.
1566 
1567 Usage: $0 [OPTION]... [VAR=VALUE]...
1568 
1569 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1570 VAR=VALUE.  See below for descriptions of some of the useful variables.
1571 
1572 Defaults for the options are specified in brackets.
1573 
1574 Configuration:
1575   -h, --help              display this help and exit
1576       --help=short        display options specific to this package
1577       --help=recursive    display the short help of all the included packages
1578   -V, --version           display version information and exit
1579   -q, --quiet, --silent   do not print \`checking ...' messages
1580       --cache-file=FILE   cache test results in FILE [disabled]
1581   -C, --config-cache      alias for \`--cache-file=config.cache'
1582   -n, --no-create         do not create output files
1583       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1584 
1585 Installation directories:
1586   --prefix=PREFIX         install architecture-independent files in PREFIX
1587                           [$ac_default_prefix]
1588   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1589                           [PREFIX]
1590 
1591 By default, \`make install' will install all the files in
1592 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1593 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1594 for instance \`--prefix=\$HOME'.
1595 
1596 For better control, use the options below.
1597 
1598 Fine tuning of the installation directories:
1599   --bindir=DIR            user executables [EPREFIX/bin]
1600   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1601   --libexecdir=DIR        program executables [EPREFIX/libexec]
1602   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1603   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1604   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1605   --libdir=DIR            object code libraries [EPREFIX/lib]
1606   --includedir=DIR        C header files [PREFIX/include]
1607   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1608   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1609   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1610   --infodir=DIR           info documentation [DATAROOTDIR/info]
1611   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1612   --mandir=DIR            man documentation [DATAROOTDIR/man]
1613   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1614   --htmldir=DIR           html documentation [DOCDIR]
1615   --dvidir=DIR            dvi documentation [DOCDIR]
1616   --pdfdir=DIR            pdf documentation [DOCDIR]
1617   --psdir=DIR             ps documentation [DOCDIR]
1618 _ACEOF
1619 
1620   cat <<\_ACEOF
1621 
1622 X features:
1623   --x-includes=DIR    X include files are in DIR
1624   --x-libraries=DIR   X library files are in DIR
1625 
1626 System types:
1627   --build=BUILD     configure for building on BUILD [guessed]
1628   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1629   --target=TARGET   configure for building compilers for TARGET [HOST]
1630 _ACEOF
1631 fi
1632 
1633 if test -n "$ac_init_help"; then
1634   case $ac_init_help in
1635      short | recursive ) echo "Configuration of openjdk jdk8:";;
1636    esac
1637   cat <<\_ACEOF
1638 
1639 Optional Features:
1640   --disable-option-checking  ignore unrecognized --enable/--with options
1641   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1642   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1643   --enable-list-builddeps list all build dependencies known to the configure
1644                           script
1645   --enable-debug          set the debug level to fastdebug (shorthand for
1646                           --with-debug-level=fastdebug) [disabled]
1647   --enable-openjdk-only   build OpenJDK regardless of the presence of closed
1648                           repositories [disabled]
1649   --enable-jigsaw         build Jigsaw images (not yet available) [disabled]
1650   --disable-headful       build headful support (graphical UI support)
1651                           [enabled]
1652   --enable-docs           enable generation of Javadoc documentation
1653                           [disabled]
1654   --disable-nimbus        disable Nimbus L&F [enabled]
1655   --enable-hotspot-test-in-build
1656                           enable running of Queens test after Hotspot build
1657                           (not yet available) [disabled]
1658   --enable-jfr            enable jfr (default is no)
1659         ENABLE_JFR="${enableval}"
1660   --disable-debug-symbols disable generation of debug symbols ([enabled])
1661   --disable-zip-debug-info
1662                           don't zip debug-info files ([enabled@:@)
1663   --disable-macosx-runtime-support
1664                           disable the use of MacOSX Java runtime support
1665                           framework [enabled]
1666   --disable-static-link-stdc++
1667                           disable static linking of the C++ runtime on Linux
1668                           [enabled]
1669   --enable-javac-server   enable the shared javac server during the build
1670                           process [disabled]
1671   --enable-javac-deps     enable the dependency tracking between Java packages
1672                           [disabled]
1673   --enable-javac-multi-core
1674                           compile Java packages concurrently [disabled]
1675   --enable-sjavac         use sjavac to do fast incremental compiles
1676                           [disabled]
1677   --disable-precompiled-headers
1678                           use precompiled headers when compiling C++ [enabled]
1679   --disable-ccache        use ccache to speed up recompilations [enabled]
1680 
1681 Optional Packages:
1682   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1683   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1684   --with-builddeps-conf   use this configuration file for the builddeps
1685   --with-builddeps-server download and use build dependencies from this server
1686                           url, e.g.
1687                           --with-builddeps-server=ftp://example.com/dir
1688   --with-builddeps-dir    store downloaded build dependencies here
1689                           [d/localhome/builddeps]
1690   --with-builddeps-group  chgrp the downloaded build dependencies to this
1691                           group
1692   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1693                           support it), e.g. --with-target-bits=32 [guessed]
1694   --with-jdk-variant      JDK variant to build (normal, embedded) [normal]
1695   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1696                           client, kernel, zero, zeroshark) [server]
1697   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1698                           [release]
1699   --with-cacerts-file     specify alternative cacerts file
1700   --with-conf-name        use this as the name of the configuration,
1701                           overriding the generated default
1702   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1703   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1704                           invocations of the Boot JDK, overriding the default
1705                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1706                           -enableassertions"
1707   --with-add-source-root  for each and every source directory, look in this
1708                           additional source root for the same directory; if it
1709                           exists and have files in it, include it in the build
1710   --with-override-source-root
1711                           for each and every source directory, look in this
1712                           override source root for the same directory; if it
1713                           exists, use that directory instead and ignore the
1714                           directory in the original source root
1715   --with-adds-and-overrides
1716                           use the subdirs 'adds' and 'overrides' in the
1717                           specified directory as add-source-root and
1718                           override-source-root
1719   --with-override-langtools
1720                           use this langtools dir for the build
1721   --with-override-corba   use this corba dir for the build
1722   --with-override-jaxp    use this jaxp dir for the build
1723   --with-override-jaxws   use this jaxws dir for the build
1724   --with-override-hotspot use this hotspot dir for the build
1725   --with-override-jdk     use this jdk dir for the build
1726   --with-msvcr100dll      copy this msvcr100.dll into the built JDK
1727   --with-sys-root         pass this sys-root to the compilers and linker
1728                           (useful if the sys-root encoded in the cross
1729                           compiler tools is incorrect)
1730   --with-tools-dir        search this directory for compilers and tools
1731   --with-devkit           use this directory as base for tools-dir and
1732                           sys-root
1733   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1734   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1735   --with-extra-ldflags    extra flags to be used when linking jdk
1736   --with-x                use the X Window System
1737   --with-cups             specify prefix directory for the cups package
1738                           (expecting the libraries under PATH/lib and the
1739                           headers under PATH/include)
1740   --with-cups-include     specify directory for the cups include files
1741   --with-cups-lib         specify directory for the cups library
1742   --with-freetype         specify prefix directory for the freetype2 package
1743                           (expecting the libraries under PATH/lib and the
1744                           headers under PATH/include)
1745   --with-alsa             specify prefix directory for the alsa package
1746                           (expecting the libraries under PATH/lib and the
1747                           headers under PATH/include)
1748   --with-alsa-include     specify directory for the alsa include files
1749   --with-alsa-lib         specify directory for the alsa library
1750   --with-zlib             use zlib from build system or OpenJDK source
1751                           (system, bundled) [bundled]
1752   --with-num-cores        number of cores in the build system, e.g.
1753                           --with-num-cores=8 [probed]
1754   --with-memory-size      memory (in MB) available in the build system, e.g.
1755                           --with-memory-size=1024 [probed]
1756   --with-server-java      use this java binary for running the javac
1757                           background server and other long running java tasks
1758                           in the build process, e.g.
1759                           ---with-server-java="/opt/jrockit/bin/java -server"
1760   --with-javac-server-cores
1761                           use at most this number of concurrent threads on the
1762                           javac server [probed]
1763   --with-ccache-dir       where to store ccache files [~/.ccache]
1764 
1765 Some influential environment variables:
1766   PKG_CONFIG  path to pkg-config utility
1767   CC          C compiler command
1768   CFLAGS      C compiler flags
1769   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1770               nonstandard directory <lib dir>
1771   LIBS        libraries to pass to the linker, e.g. -l<library>
1772   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1773               you have headers in a nonstandard directory <include dir>
1774   CXX         C++ compiler command
1775   CXXFLAGS    C++ compiler flags
1776   OBJC        Objective C compiler command
1777   OBJCFLAGS   Objective C compiler flags
1778   CPP         C preprocessor
1779   CXXCPP      C++ preprocessor
1780   XMKMF       Path to xmkmf, Makefile generator for X Window System
1781   FREETYPE2_CFLAGS
1782               C compiler flags for FREETYPE2, overriding pkg-config
1783   FREETYPE2_LIBS
1784               linker flags for FREETYPE2, overriding pkg-config
1785   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1786   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1787 
1788 Use these variables to override the choices made by `configure' or to help
1789 it to find libraries and programs with nonstandard names/locations.
1790 
1791 Report bugs to <build-dev@openjdk.java.net>.
1792 _ACEOF
1793 ac_status=$?
1794 fi
1795 
1796 if test "$ac_init_help" = "recursive"; then
1797   # If there are subdirs, report their specific --help.
1798   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1799     test -d "$ac_dir" ||
1800       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1801       continue
1802     ac_builddir=.
1803 
1804 case "$ac_dir" in
1805 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1806 *)
1807   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1808   # A ".." for each directory in $ac_dir_suffix.
1809   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1810   case $ac_top_builddir_sub in
1811   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1812   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1813   esac ;;
1814 esac
1815 ac_abs_top_builddir=$ac_pwd
1816 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1817 # for backward compatibility:
1818 ac_top_builddir=$ac_top_build_prefix
1819 
1820 case $srcdir in
1821   .)  # We are building in place.
1822     ac_srcdir=.
1823     ac_top_srcdir=$ac_top_builddir_sub
1824     ac_abs_top_srcdir=$ac_pwd ;;
1825   [\\/]* | ?:[\\/]* )  # Absolute name.
1826     ac_srcdir=$srcdir$ac_dir_suffix;
1827     ac_top_srcdir=$srcdir
1828     ac_abs_top_srcdir=$srcdir ;;
1829   *) # Relative name.
1830     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1831     ac_top_srcdir=$ac_top_build_prefix$srcdir
1832     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1833 esac
1834 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1835 
1836     cd "$ac_dir" || { ac_status=$?; continue; }
1837     # Check for guested configure.
1838     if test -f "$ac_srcdir/configure.gnu"; then
1839       echo &&
1840       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1841     elif test -f "$ac_srcdir/configure"; then
1842       echo &&
1843       $SHELL "$ac_srcdir/configure" --help=recursive
1844     else
1845       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1846     fi || ac_status=$?
1847     cd "$ac_pwd" || { ac_status=$?; break; }
1848   done
1849 fi
1850 
1851 test -n "$ac_init_help" && exit $ac_status
1852 if $ac_init_version; then
1853   cat <<\_ACEOF
1854 openjdk configure jdk8
1855 generated by GNU Autoconf 2.67
1856 
1857 Copyright (C) 2010 Free Software Foundation, Inc.
1858 This configure script is free software; the Free Software Foundation
1859 gives unlimited permission to copy, distribute and modify it.
1860 _ACEOF
1861   exit
1862 fi
1863 
1864 ## ------------------------ ##
1865 ## Autoconf initialization. ##
1866 ## ------------------------ ##
1867 
1868 # ac_fn_c_try_compile LINENO
1869 # --------------------------
1870 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_c_try_compile ()
1872 {
1873   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874   rm -f conftest.$ac_objext
1875   if { { ac_try="$ac_compile"
1876 case "(($ac_try" in
1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878   *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882   (eval "$ac_compile") 2>conftest.err
1883   ac_status=$?
1884   if test -s conftest.err; then
1885     grep -v '^ *+' conftest.err >conftest.er1
1886     cat conftest.er1 >&5
1887     mv -f conftest.er1 conftest.err
1888   fi
1889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890   test $ac_status = 0; } && {
1891          test -z "$ac_c_werror_flag" ||
1892          test ! -s conftest.err
1893        } && test -s conftest.$ac_objext; then :
1894   ac_retval=0
1895 else
1896   $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898 
1899         ac_retval=1
1900 fi
1901   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902   as_fn_set_status $ac_retval
1903 
1904 } # ac_fn_c_try_compile
1905 
1906 # ac_fn_cxx_try_compile LINENO
1907 # ----------------------------
1908 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_cxx_try_compile ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   rm -f conftest.$ac_objext
1913   if { { ac_try="$ac_compile"
1914 case "(($ac_try" in
1915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916   *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920   (eval "$ac_compile") 2>conftest.err
1921   ac_status=$?
1922   if test -s conftest.err; then
1923     grep -v '^ *+' conftest.err >conftest.er1
1924     cat conftest.er1 >&5
1925     mv -f conftest.er1 conftest.err
1926   fi
1927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928   test $ac_status = 0; } && {
1929          test -z "$ac_cxx_werror_flag" ||
1930          test ! -s conftest.err
1931        } && test -s conftest.$ac_objext; then :
1932   ac_retval=0
1933 else
1934   $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1936 
1937         ac_retval=1
1938 fi
1939   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940   as_fn_set_status $ac_retval
1941 
1942 } # ac_fn_cxx_try_compile
1943 
1944 # ac_fn_objc_try_compile LINENO
1945 # -----------------------------
1946 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_objc_try_compile ()
1948 {
1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950   rm -f conftest.$ac_objext
1951   if { { ac_try="$ac_compile"
1952 case "(($ac_try" in
1953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954   *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958   (eval "$ac_compile") 2>conftest.err
1959   ac_status=$?
1960   if test -s conftest.err; then
1961     grep -v '^ *+' conftest.err >conftest.er1
1962     cat conftest.er1 >&5
1963     mv -f conftest.er1 conftest.err
1964   fi
1965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966   test $ac_status = 0; } && {
1967          test -z "$ac_objc_werror_flag" ||
1968          test ! -s conftest.err
1969        } && test -s conftest.$ac_objext; then :
1970   ac_retval=0
1971 else
1972   $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974 
1975         ac_retval=1
1976 fi
1977   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978   as_fn_set_status $ac_retval
1979 
1980 } # ac_fn_objc_try_compile
1981 
1982 # ac_fn_c_try_cpp LINENO
1983 # ----------------------
1984 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1985 ac_fn_c_try_cpp ()
1986 {
1987   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988   if { { ac_try="$ac_cpp conftest.$ac_ext"
1989 case "(($ac_try" in
1990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991   *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1996   ac_status=$?
1997   if test -s conftest.err; then
1998     grep -v '^ *+' conftest.err >conftest.er1
1999     cat conftest.er1 >&5
2000     mv -f conftest.er1 conftest.err
2001   fi
2002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003   test $ac_status = 0; } > conftest.i && {
2004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2005          test ! -s conftest.err
2006        }; then :
2007   ac_retval=0
2008 else
2009   $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011 
2012     ac_retval=1
2013 fi
2014   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015   as_fn_set_status $ac_retval
2016 
2017 } # ac_fn_c_try_cpp
2018 
2019 # ac_fn_cxx_try_cpp LINENO
2020 # ------------------------
2021 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2022 ac_fn_cxx_try_cpp ()
2023 {
2024   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025   if { { ac_try="$ac_cpp conftest.$ac_ext"
2026 case "(($ac_try" in
2027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028   *) ac_try_echo=$ac_try;;
2029 esac
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2033   ac_status=$?
2034   if test -s conftest.err; then
2035     grep -v '^ *+' conftest.err >conftest.er1
2036     cat conftest.er1 >&5
2037     mv -f conftest.er1 conftest.err
2038   fi
2039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040   test $ac_status = 0; } > conftest.i && {
2041          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2042          test ! -s conftest.err
2043        }; then :
2044   ac_retval=0
2045 else
2046   $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048 
2049     ac_retval=1
2050 fi
2051   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052   as_fn_set_status $ac_retval
2053 
2054 } # ac_fn_cxx_try_cpp
2055 
2056 # ac_fn_cxx_try_run LINENO
2057 # ------------------------
2058 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2059 # that executables *can* be run.
2060 ac_fn_cxx_try_run ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   if { { ac_try="$ac_link"
2064 case "(($ac_try" in
2065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066   *) ac_try_echo=$ac_try;;
2067 esac
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070   (eval "$ac_link") 2>&5
2071   ac_status=$?
2072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2074   { { case "(($ac_try" in
2075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076   *) ac_try_echo=$ac_try;;
2077 esac
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080   (eval "$ac_try") 2>&5
2081   ac_status=$?
2082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083   test $ac_status = 0; }; }; then :
2084   ac_retval=0
2085 else
2086   $as_echo "$as_me: program exited with status $ac_status" >&5
2087        $as_echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2089 
2090        ac_retval=$ac_status
2091 fi
2092   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2093   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094   as_fn_set_status $ac_retval
2095 
2096 } # ac_fn_cxx_try_run
2097 
2098 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2099 # ----------------------------------------------
2100 # Tries to find the compile-time value of EXPR in a program that includes
2101 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2102 # computed
2103 ac_fn_cxx_compute_int ()
2104 {
2105   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106   if test "$cross_compiling" = yes; then
2107     # Depending upon the size, compute the lo and hi bounds.
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 static int test_array [1 - 2 * !(($2) >= 0)];
2115 test_array [0] = 0
2116 
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_cxx_try_compile "$LINENO"; then :
2122   ac_lo=0 ac_mid=0
2123   while :; do
2124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h.  */
2126 $4
2127 int
2128 main ()
2129 {
2130 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2131 test_array [0] = 0
2132 
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_cxx_try_compile "$LINENO"; then :
2138   ac_hi=$ac_mid; break
2139 else
2140   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2141                         if test $ac_lo -le $ac_mid; then
2142                           ac_lo= ac_hi=
2143                           break
2144                         fi
2145                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148   done
2149 else
2150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h.  */
2152 $4
2153 int
2154 main ()
2155 {
2156 static int test_array [1 - 2 * !(($2) < 0)];
2157 test_array [0] = 0
2158 
2159   ;
2160   return 0;
2161 }
2162 _ACEOF
2163 if ac_fn_cxx_try_compile "$LINENO"; then :
2164   ac_hi=-1 ac_mid=-1
2165   while :; do
2166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h.  */
2168 $4
2169 int
2170 main ()
2171 {
2172 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2173 test_array [0] = 0
2174 
2175   ;
2176   return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_cxx_try_compile "$LINENO"; then :
2180   ac_lo=$ac_mid; break
2181 else
2182   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2183                         if test $ac_mid -le $ac_hi; then
2184                           ac_lo= ac_hi=
2185                           break
2186                         fi
2187                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190   done
2191 else
2192   ac_lo= ac_hi=
2193 fi
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 # Binary search between lo and hi bounds.
2198 while test "x$ac_lo" != "x$ac_hi"; do
2199   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h.  */
2202 $4
2203 int
2204 main ()
2205 {
2206 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 test_array [0] = 0
2208 
2209   ;
2210   return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_cxx_try_compile "$LINENO"; then :
2214   ac_hi=$ac_mid
2215 else
2216   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2217 fi
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 done
2220 case $ac_lo in #((
2221 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2222 '') ac_retval=1 ;;
2223 esac
2224   else
2225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h.  */
2227 $4
2228 static long int longval () { return $2; }
2229 static unsigned long int ulongval () { return $2; }
2230 #include <stdio.h>
2231 #include <stdlib.h>
2232 int
2233 main ()
2234 {
2235 
2236   FILE *f = fopen ("conftest.val", "w");
2237   if (! f)
2238     return 1;
2239   if (($2) < 0)
2240     {
2241       long int i = longval ();
2242       if (i != ($2))
2243         return 1;
2244       fprintf (f, "%ld", i);
2245     }
2246   else
2247     {
2248       unsigned long int i = ulongval ();
2249       if (i != ($2))
2250         return 1;
2251       fprintf (f, "%lu", i);
2252     }
2253   /* Do not output a trailing newline, as this causes \r\n confusion
2254      on some platforms.  */
2255   return ferror (f) || fclose (f) != 0;
2256 
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_cxx_try_run "$LINENO"; then :
2262   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2263 else
2264   ac_retval=1
2265 fi
2266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2267   conftest.$ac_objext conftest.beam conftest.$ac_ext
2268 rm -f conftest.val
2269 
2270   fi
2271   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2272   as_fn_set_status $ac_retval
2273 
2274 } # ac_fn_cxx_compute_int
2275 
2276 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2277 # ---------------------------------------------------------
2278 # Tests whether HEADER exists and can be compiled using the include files in
2279 # INCLUDES, setting the cache variable VAR accordingly.
2280 ac_fn_cxx_check_header_compile ()
2281 {
2282   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2284 $as_echo_n "checking for $2... " >&6; }
2285 if eval "test \"\${$3+set}\"" = set; then :
2286   $as_echo_n "(cached) " >&6
2287 else
2288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h.  */
2290 $4
2291 #include <$2>
2292 _ACEOF
2293 if ac_fn_cxx_try_compile "$LINENO"; then :
2294   eval "$3=yes"
2295 else
2296   eval "$3=no"
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 eval ac_res=\$$3
2301                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2304 
2305 } # ac_fn_cxx_check_header_compile
2306 
2307 # ac_fn_cxx_try_link LINENO
2308 # -------------------------
2309 # Try to link conftest.$ac_ext, and return whether this succeeded.
2310 ac_fn_cxx_try_link ()
2311 {
2312   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2313   rm -f conftest.$ac_objext conftest$ac_exeext
2314   if { { ac_try="$ac_link"
2315 case "(($ac_try" in
2316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317   *) ac_try_echo=$ac_try;;
2318 esac
2319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2320 $as_echo "$ac_try_echo"; } >&5
2321   (eval "$ac_link") 2>conftest.err
2322   ac_status=$?
2323   if test -s conftest.err; then
2324     grep -v '^ *+' conftest.err >conftest.er1
2325     cat conftest.er1 >&5
2326     mv -f conftest.er1 conftest.err
2327   fi
2328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2329   test $ac_status = 0; } && {
2330          test -z "$ac_cxx_werror_flag" ||
2331          test ! -s conftest.err
2332        } && test -s conftest$ac_exeext && {
2333          test "$cross_compiling" = yes ||
2334          $as_test_x conftest$ac_exeext
2335        }; then :
2336   ac_retval=0
2337 else
2338   $as_echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2340 
2341         ac_retval=1
2342 fi
2343   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2344   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2345   # interfere with the next link command; also delete a directory that is
2346   # left behind by Apple's compiler.  We do this before executing the actions.
2347   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2348   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349   as_fn_set_status $ac_retval
2350 
2351 } # ac_fn_cxx_try_link
2352 
2353 # ac_fn_cxx_check_func LINENO FUNC VAR
2354 # ------------------------------------
2355 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2356 ac_fn_cxx_check_func ()
2357 {
2358   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2360 $as_echo_n "checking for $2... " >&6; }
2361 if eval "test \"\${$3+set}\"" = set; then :
2362   $as_echo_n "(cached) " >&6
2363 else
2364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h.  */
2366 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2368 #define $2 innocuous_$2
2369 
2370 /* System header to define __stub macros and hopefully few prototypes,
2371     which can conflict with char $2 (); below.
2372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2373     <limits.h> exists even on freestanding compilers.  */
2374 
2375 #ifdef __STDC__
2376 # include <limits.h>
2377 #else
2378 # include <assert.h>
2379 #endif
2380 
2381 #undef $2
2382 
2383 /* Override any GCC internal prototype to avoid an error.
2384    Use char because int might match the return type of a GCC
2385    builtin and then its argument prototype would still apply.  */
2386 #ifdef __cplusplus
2387 extern "C"
2388 #endif
2389 char $2 ();
2390 /* The GNU C library defines this for functions which it implements
2391     to always fail with ENOSYS.  Some functions are actually named
2392     something starting with __ and the normal name is an alias.  */
2393 #if defined __stub_$2 || defined __stub___$2
2394 choke me
2395 #endif
2396 
2397 int
2398 main ()
2399 {
2400 return $2 ();
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 if ac_fn_cxx_try_link "$LINENO"; then :
2406   eval "$3=yes"
2407 else
2408   eval "$3=no"
2409 fi
2410 rm -f core conftest.err conftest.$ac_objext \
2411     conftest$ac_exeext conftest.$ac_ext
2412 fi
2413 eval ac_res=\$$3
2414                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2415 $as_echo "$ac_res" >&6; }
2416   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2417 
2418 } # ac_fn_cxx_check_func
2419 
2420 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2421 # -------------------------------------------------------
2422 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2423 # the include files in INCLUDES and setting the cache variable VAR
2424 # accordingly.
2425 ac_fn_c_check_header_mongrel ()
2426 {
2427   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428   if eval "test \"\${$3+set}\"" = set; then :
2429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2430 $as_echo_n "checking for $2... " >&6; }
2431 if eval "test \"\${$3+set}\"" = set; then :
2432   $as_echo_n "(cached) " >&6
2433 fi
2434 eval ac_res=\$$3
2435                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437 else
2438   # Is the header compilable?
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2440 $as_echo_n "checking $2 usability... " >&6; }
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h.  */
2443 $4
2444 #include <$2>
2445 _ACEOF
2446 if ac_fn_c_try_compile "$LINENO"; then :
2447   ac_header_compiler=yes
2448 else
2449   ac_header_compiler=no
2450 fi
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2453 $as_echo "$ac_header_compiler" >&6; }
2454 
2455 # Is the header present?
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2457 $as_echo_n "checking $2 presence... " >&6; }
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h.  */
2460 #include <$2>
2461 _ACEOF
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2463   ac_header_preproc=yes
2464 else
2465   ac_header_preproc=no
2466 fi
2467 rm -f conftest.err conftest.i conftest.$ac_ext
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2469 $as_echo "$ac_header_preproc" >&6; }
2470 
2471 # So?  What about this header?
2472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2473   yes:no: )
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2475 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2477 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2478     ;;
2479   no:yes:* )
2480     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2481 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2482     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2483 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2485 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2486     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2487 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2488     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2489 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2490 ( $as_echo "## ----------------------------------------- ##
2491 ## Report this to build-dev@openjdk.java.net ##
2492 ## ----------------------------------------- ##"
2493      ) | sed "s/^/$as_me: WARNING:     /" >&2
2494     ;;
2495 esac
2496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2497 $as_echo_n "checking for $2... " >&6; }
2498 if eval "test \"\${$3+set}\"" = set; then :
2499   $as_echo_n "(cached) " >&6
2500 else
2501   eval "$3=\$ac_header_compiler"
2502 fi
2503 eval ac_res=\$$3
2504                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505 $as_echo "$ac_res" >&6; }
2506 fi
2507   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508 
2509 } # ac_fn_c_check_header_mongrel
2510 
2511 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2512 # ---------------------------------------------------------
2513 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2514 # the include files in INCLUDES and setting the cache variable VAR
2515 # accordingly.
2516 ac_fn_cxx_check_header_mongrel ()
2517 {
2518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519   if eval "test \"\${$3+set}\"" = set; then :
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if eval "test \"\${$3+set}\"" = set; then :
2523   $as_echo_n "(cached) " >&6
2524 fi
2525 eval ac_res=\$$3
2526                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 else
2529   # Is the header compilable?
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2531 $as_echo_n "checking $2 usability... " >&6; }
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h.  */
2534 $4
2535 #include <$2>
2536 _ACEOF
2537 if ac_fn_cxx_try_compile "$LINENO"; then :
2538   ac_header_compiler=yes
2539 else
2540   ac_header_compiler=no
2541 fi
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2544 $as_echo "$ac_header_compiler" >&6; }
2545 
2546 # Is the header present?
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2548 $as_echo_n "checking $2 presence... " >&6; }
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h.  */
2551 #include <$2>
2552 _ACEOF
2553 if ac_fn_cxx_try_cpp "$LINENO"; then :
2554   ac_header_preproc=yes
2555 else
2556   ac_header_preproc=no
2557 fi
2558 rm -f conftest.err conftest.i conftest.$ac_ext
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2560 $as_echo "$ac_header_preproc" >&6; }
2561 
2562 # So?  What about this header?
2563 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2564   yes:no: )
2565     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2566 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2567     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2568 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2569     ;;
2570   no:yes:* )
2571     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2572 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2573     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2574 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2575     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2576 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2577     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2578 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2579     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2580 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2581 ( $as_echo "## ----------------------------------------- ##
2582 ## Report this to build-dev@openjdk.java.net ##
2583 ## ----------------------------------------- ##"
2584      ) | sed "s/^/$as_me: WARNING:     /" >&2
2585     ;;
2586 esac
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2588 $as_echo_n "checking for $2... " >&6; }
2589 if eval "test \"\${$3+set}\"" = set; then :
2590   $as_echo_n "(cached) " >&6
2591 else
2592   eval "$3=\$ac_header_compiler"
2593 fi
2594 eval ac_res=\$$3
2595                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596 $as_echo "$ac_res" >&6; }
2597 fi
2598   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2599 
2600 } # ac_fn_cxx_check_header_mongrel
2601 cat >config.log <<_ACEOF
2602 This file contains any messages produced by compilers while
2603 running configure, to aid debugging if configure makes a mistake.
2604 
2605 It was created by openjdk $as_me jdk8, which was
2606 generated by GNU Autoconf 2.67.  Invocation command line was
2607 
2608   $ $0 $@
2609 
2610 _ACEOF
2611 exec 5>>config.log
2612 {
2613 cat <<_ASUNAME
2614 ## --------- ##
2615 ## Platform. ##
2616 ## --------- ##
2617 
2618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2623 
2624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2625 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2626 
2627 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2628 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2630 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2631 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2632 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2633 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2634 
2635 _ASUNAME
2636 
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640   IFS=$as_save_IFS
2641   test -z "$as_dir" && as_dir=.
2642     $as_echo "PATH: $as_dir"
2643   done
2644 IFS=$as_save_IFS
2645 
2646 } >&5
2647 
2648 cat >&5 <<_ACEOF
2649 
2650 
2651 ## ----------- ##
2652 ## Core tests. ##
2653 ## ----------- ##
2654 
2655 _ACEOF
2656 
2657 
2658 # Keep a trace of the command line.
2659 # Strip out --no-create and --no-recursion so they do not pile up.
2660 # Strip out --silent because we don't want to record it for future runs.
2661 # Also quote any args containing shell meta-characters.
2662 # Make two passes to allow for proper duplicate-argument suppression.
2663 ac_configure_args=
2664 ac_configure_args0=
2665 ac_configure_args1=
2666 ac_must_keep_next=false
2667 for ac_pass in 1 2
2668 do
2669   for ac_arg
2670   do
2671     case $ac_arg in
2672     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2673     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2674     | -silent | --silent | --silen | --sile | --sil)
2675       continue ;;
2676     *\'*)
2677       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2678     esac
2679     case $ac_pass in
2680     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2681     2)
2682       as_fn_append ac_configure_args1 " '$ac_arg'"
2683       if test $ac_must_keep_next = true; then
2684         ac_must_keep_next=false # Got value, back to normal.
2685       else
2686         case $ac_arg in
2687           *=* | --config-cache | -C | -disable-* | --disable-* \
2688           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2689           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2690           | -with-* | --with-* | -without-* | --without-* | --x)
2691             case "$ac_configure_args0 " in
2692               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2693             esac
2694             ;;
2695           -* ) ac_must_keep_next=true ;;
2696         esac
2697       fi
2698       as_fn_append ac_configure_args " '$ac_arg'"
2699       ;;
2700     esac
2701   done
2702 done
2703 { ac_configure_args0=; unset ac_configure_args0;}
2704 { ac_configure_args1=; unset ac_configure_args1;}
2705 
2706 # When interrupted or exit'd, cleanup temporary files, and complete
2707 # config.log.  We remove comments because anyway the quotes in there
2708 # would cause problems or look ugly.
2709 # WARNING: Use '\'' to represent an apostrophe within the trap.
2710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2711 trap 'exit_status=$?
2712   # Save into config.log some information that might help in debugging.
2713   {
2714     echo
2715 
2716     $as_echo "## ---------------- ##
2717 ## Cache variables. ##
2718 ## ---------------- ##"
2719     echo
2720     # The following way of writing the cache mishandles newlines in values,
2721 (
2722   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2723     eval ac_val=\$$ac_var
2724     case $ac_val in #(
2725     *${as_nl}*)
2726       case $ac_var in #(
2727       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2728 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2729       esac
2730       case $ac_var in #(
2731       _ | IFS | as_nl) ;; #(
2732       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2733       *) { eval $ac_var=; unset $ac_var;} ;;
2734       esac ;;
2735     esac
2736   done
2737   (set) 2>&1 |
2738     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2739     *${as_nl}ac_space=\ *)
2740       sed -n \
2741         "s/'\''/'\''\\\\'\'''\''/g;
2742           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2743       ;; #(
2744     *)
2745       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2746       ;;
2747     esac |
2748     sort
2749 )
2750     echo
2751 
2752     $as_echo "## ----------------- ##
2753 ## Output variables. ##
2754 ## ----------------- ##"
2755     echo
2756     for ac_var in $ac_subst_vars
2757     do
2758       eval ac_val=\$$ac_var
2759       case $ac_val in
2760       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2761       esac
2762       $as_echo "$ac_var='\''$ac_val'\''"
2763     done | sort
2764     echo
2765 
2766     if test -n "$ac_subst_files"; then
2767       $as_echo "## ------------------- ##
2768 ## File substitutions. ##
2769 ## ------------------- ##"
2770       echo
2771       for ac_var in $ac_subst_files
2772       do
2773         eval ac_val=\$$ac_var
2774         case $ac_val in
2775         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2776         esac
2777         $as_echo "$ac_var='\''$ac_val'\''"
2778       done | sort
2779       echo
2780     fi
2781 
2782     if test -s confdefs.h; then
2783       $as_echo "## ----------- ##
2784 ## confdefs.h. ##
2785 ## ----------- ##"
2786       echo
2787       cat confdefs.h
2788       echo
2789     fi
2790     test "$ac_signal" != 0 &&
2791       $as_echo "$as_me: caught signal $ac_signal"
2792     $as_echo "$as_me: exit $exit_status"
2793   } >&5
2794   rm -f core *.core core.conftest.* &&
2795     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2796     exit $exit_status
2797 ' 0
2798 for ac_signal in 1 2 13 15; do
2799   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2800 done
2801 ac_signal=0
2802 
2803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2804 rm -f -r conftest* confdefs.h
2805 
2806 $as_echo "/* confdefs.h */" > confdefs.h
2807 
2808 # Predefined preprocessor variables.
2809 
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE_NAME "$PACKAGE_NAME"
2812 _ACEOF
2813 
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2816 _ACEOF
2817 
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2820 _ACEOF
2821 
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_STRING "$PACKAGE_STRING"
2824 _ACEOF
2825 
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2828 _ACEOF
2829 
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_URL "$PACKAGE_URL"
2832 _ACEOF
2833 
2834 
2835 # Let the site file select an alternate cache file if it wants to.
2836 # Prefer an explicitly selected file to automatically selected ones.
2837 ac_site_file1=NONE
2838 ac_site_file2=NONE
2839 if test -n "$CONFIG_SITE"; then
2840   # We do not want a PATH search for config.site.
2841   case $CONFIG_SITE in #((
2842     -*)  ac_site_file1=./$CONFIG_SITE;;
2843     */*) ac_site_file1=$CONFIG_SITE;;
2844     *)   ac_site_file1=./$CONFIG_SITE;;
2845   esac
2846 elif test "x$prefix" != xNONE; then
2847   ac_site_file1=$prefix/share/config.site
2848   ac_site_file2=$prefix/etc/config.site
2849 else
2850   ac_site_file1=$ac_default_prefix/share/config.site
2851   ac_site_file2=$ac_default_prefix/etc/config.site
2852 fi
2853 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2854 do
2855   test "x$ac_site_file" = xNONE && continue
2856   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2857     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2858 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2859     sed 's/^/| /' "$ac_site_file" >&5
2860     . "$ac_site_file" \
2861       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2863 as_fn_error $? "failed to load site script $ac_site_file
2864 See \`config.log' for more details" "$LINENO" 5 ; }
2865   fi
2866 done
2867 
2868 if test -r "$cache_file"; then
2869   # Some versions of bash will fail to source /dev/null (special files
2870   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2871   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2872     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2873 $as_echo "$as_me: loading cache $cache_file" >&6;}
2874     case $cache_file in
2875       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2876       *)                      . "./$cache_file";;
2877     esac
2878   fi
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2881 $as_echo "$as_me: creating cache $cache_file" >&6;}
2882   >$cache_file
2883 fi
2884 
2885 # Check that the precious variables saved in the cache have kept the same
2886 # value.
2887 ac_cache_corrupted=false
2888 for ac_var in $ac_precious_vars; do
2889   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2890   eval ac_new_set=\$ac_env_${ac_var}_set
2891   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2892   eval ac_new_val=\$ac_env_${ac_var}_value
2893   case $ac_old_set,$ac_new_set in
2894     set,)
2895       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2896 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2897       ac_cache_corrupted=: ;;
2898     ,set)
2899       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2900 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2901       ac_cache_corrupted=: ;;
2902     ,);;
2903     *)
2904       if test "x$ac_old_val" != "x$ac_new_val"; then
2905         # differences in whitespace do not lead to failure.
2906         ac_old_val_w=`echo x $ac_old_val`
2907         ac_new_val_w=`echo x $ac_new_val`
2908         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2909           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2910 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2911           ac_cache_corrupted=:
2912         else
2913           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2914 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2915           eval $ac_var=\$ac_old_val
2916         fi
2917         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2918 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2919         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2920 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2921       fi;;
2922   esac
2923   # Pass precious variables to config.status.
2924   if test "$ac_new_set" = set; then
2925     case $ac_new_val in
2926     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2927     *) ac_arg=$ac_var=$ac_new_val ;;
2928     esac
2929     case " $ac_configure_args " in
2930       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2931       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2932     esac
2933   fi
2934 done
2935 if $ac_cache_corrupted; then
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2939 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2940   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2941 fi
2942 ## -------------------- ##
2943 ## Main body of script. ##
2944 ## -------------------- ##
2945 
2946 ac_ext=c
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 
2952 
2953 
2954 # Do not change or remove the following line, it is needed for consistency checks:
2955 # DATE_WHEN_GENERATED: 1341161875
2956 
2957 ac_aux_dir=
2958 for ac_dir in build-aux "$srcdir"/build-aux; do
2959   if test -f "$ac_dir/install-sh"; then
2960     ac_aux_dir=$ac_dir
2961     ac_install_sh="$ac_aux_dir/install-sh -c"
2962     break
2963   elif test -f "$ac_dir/install.sh"; then
2964     ac_aux_dir=$ac_dir
2965     ac_install_sh="$ac_aux_dir/install.sh -c"
2966     break
2967   elif test -f "$ac_dir/shtool"; then
2968     ac_aux_dir=$ac_dir
2969     ac_install_sh="$ac_aux_dir/shtool install -c"
2970     break
2971   fi
2972 done
2973 if test -z "$ac_aux_dir"; then
2974   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2975 fi
2976 
2977 # These three variables are undocumented and unsupported,
2978 # and are intended to be withdrawn in a future Autoconf release.
2979 # They can cause serious problems if a builder's source tree is in a directory
2980 # whose full name contains unusual characters.
2981 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2982 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2983 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2984 
2985 
2986 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
2987 #
2988 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
2989 #
2990 # This program is free software; you can redistribute it and/or modify
2991 # it under the terms of the GNU General Public License as published by
2992 # the Free Software Foundation; either version 2 of the License, or
2993 # (at your option) any later version.
2994 #
2995 # This program is distributed in the hope that it will be useful, but
2996 # WITHOUT ANY WARRANTY; without even the implied warranty of
2997 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2998 # General Public License for more details.
2999 #
3000 # You should have received a copy of the GNU General Public License
3001 # along with this program; if not, write to the Free Software
3002 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3003 #
3004 # As a special exception to the GNU General Public License, if you
3005 # distribute this file as part of a program that contains a
3006 # configuration script generated by Autoconf, you may include it under
3007 # the same distribution terms that you use for the rest of that program.
3008 
3009 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3010 # ----------------------------------
3011 # PKG_PROG_PKG_CONFIG
3012 
3013 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3014 #
3015 # Check to see whether a particular set of modules exists.  Similar
3016 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3017 #
3018 #
3019 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3020 # this or PKG_CHECK_MODULES is called, or make sure to call
3021 # PKG_CHECK_EXISTS manually
3022 # --------------------------------------------------------------
3023 
3024 
3025 
3026 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3027 # ---------------------------------------------
3028 # _PKG_CONFIG
3029 
3030 # _PKG_SHORT_ERRORS_SUPPORTED
3031 # -----------------------------
3032 # _PKG_SHORT_ERRORS_SUPPORTED
3033 
3034 
3035 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3036 # [ACTION-IF-NOT-FOUND])
3037 #
3038 #
3039 # Note that if there is a possibility the first call to
3040 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3041 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3042 #
3043 #
3044 # --------------------------------------------------------------
3045 # PKG_CHECK_MODULES
3046 
3047 
3048 # Include these first...
3049 #
3050 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3051 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3052 #
3053 # This code is free software; you can redistribute it and/or modify it
3054 # under the terms of the GNU General Public License version 2 only, as
3055 # published by the Free Software Foundation.  Oracle designates this
3056 # particular file as subject to the "Classpath" exception as provided
3057 # by Oracle in the LICENSE file that accompanied this code.
3058 #
3059 # This code is distributed in the hope that it will be useful, but WITHOUT
3060 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3061 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3062 # version 2 for more details (a copy is included in the LICENSE file that
3063 # accompanied this code).
3064 #
3065 # You should have received a copy of the GNU General Public License version
3066 # 2 along with this work; if not, write to the Free Software Foundation,
3067 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3068 #
3069 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3070 # or visit www.oracle.com if you need additional information or have any
3071 # questions.
3072 #
3073 
3074 
3075 
3076 
3077 
3078 
3079 
3080 
3081 
3082 
3083 
3084 
3085 
3086 
3087 
3088 
3089 
3090 
3091 
3092 
3093 
3094 
3095 
3096 
3097 #%%% Simple tools %%%
3098 
3099 
3100 
3101 
3102 
3103 
3104 
3105 
3106 
3107 
3108 
3109 
3110 # Check if build directory is on local disk.
3111 # Argument 1: directory to test
3112 # Argument 2: what to do if it is on local disk
3113 # Argument 3: what to do otherwise (remote disk or failure)
3114 
3115 
3116 
3117 
3118 #
3119 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3120 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3121 #
3122 # This code is free software; you can redistribute it and/or modify it
3123 # under the terms of the GNU General Public License version 2 only, as
3124 # published by the Free Software Foundation.  Oracle designates this
3125 # particular file as subject to the "Classpath" exception as provided
3126 # by Oracle in the LICENSE file that accompanied this code.
3127 #
3128 # This code is distributed in the hope that it will be useful, but WITHOUT
3129 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3130 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3131 # version 2 for more details (a copy is included in the LICENSE file that
3132 # accompanied this code).
3133 #
3134 # You should have received a copy of the GNU General Public License version
3135 # 2 along with this work; if not, write to the Free Software Foundation,
3136 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3137 #
3138 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3139 # or visit www.oracle.com if you need additional information or have any
3140 # questions.
3141 #
3142 
3143 
3144 
3145 
3146 
3147 
3148 
3149 
3150 
3151 
3152 
3153 # ... then the rest
3154 #
3155 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3156 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3157 #
3158 # This code is free software; you can redistribute it and/or modify it
3159 # under the terms of the GNU General Public License version 2 only, as
3160 # published by the Free Software Foundation.  Oracle designates this
3161 # particular file as subject to the "Classpath" exception as provided
3162 # by Oracle in the LICENSE file that accompanied this code.
3163 #
3164 # This code is distributed in the hope that it will be useful, but WITHOUT
3165 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3166 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3167 # version 2 for more details (a copy is included in the LICENSE file that
3168 # accompanied this code).
3169 #
3170 # You should have received a copy of the GNU General Public License version
3171 # 2 along with this work; if not, write to the Free Software Foundation,
3172 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3173 #
3174 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3175 # or visit www.oracle.com if you need additional information or have any
3176 # questions.
3177 #
3178 
3179 # Fixes paths on windows to be mixed mode short.
3180 
3181 
3182 
3183 
3184 ###############################################################################
3185 #
3186 # We need a Boot JDK to bootstrap the build.
3187 #
3188 
3189 
3190 
3191 
3192 
3193 #
3194 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3195 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3196 #
3197 # This code is free software; you can redistribute it and/or modify it
3198 # under the terms of the GNU General Public License version 2 only, as
3199 # published by the Free Software Foundation.  Oracle designates this
3200 # particular file as subject to the "Classpath" exception as provided
3201 # by Oracle in the LICENSE file that accompanied this code.
3202 #
3203 # This code is distributed in the hope that it will be useful, but WITHOUT
3204 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3205 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3206 # version 2 for more details (a copy is included in the LICENSE file that
3207 # accompanied this code).
3208 #
3209 # You should have received a copy of the GNU General Public License version
3210 # 2 along with this work; if not, write to the Free Software Foundation,
3211 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3212 #
3213 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3214 # or visit www.oracle.com if you need additional information or have any
3215 # questions.
3216 #
3217 
3218 
3219 
3220 
3221 
3222 
3223 
3224 
3225 
3226 
3227 
3228 
3229 
3230 
3231 
3232 
3233 
3234 
3235 #
3236 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3237 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3238 #
3239 # This code is free software; you can redistribute it and/or modify it
3240 # under the terms of the GNU General Public License version 2 only, as
3241 # published by the Free Software Foundation.  Oracle designates this
3242 # particular file as subject to the "Classpath" exception as provided
3243 # by Oracle in the LICENSE file that accompanied this code.
3244 #
3245 # This code is distributed in the hope that it will be useful, but WITHOUT
3246 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3247 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3248 # version 2 for more details (a copy is included in the LICENSE file that
3249 # accompanied this code).
3250 #
3251 # You should have received a copy of the GNU General Public License version
3252 # 2 along with this work; if not, write to the Free Software Foundation,
3253 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3254 #
3255 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3256 # or visit www.oracle.com if you need additional information or have any
3257 # questions.
3258 #
3259 
3260 
3261 
3262 
3263 
3264 apt_help() {
3265     case $1 in
3266     devkit)
3267         PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3268     openjdk)
3269         PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3270     alsa)
3271         PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3272     cups)
3273         PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3274     freetype2)
3275         PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3276     pulse)
3277         PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3278     x11)
3279         PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev" ;;
3280     ccache)
3281         PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3282     * )
3283        break ;;
3284     esac
3285 }
3286 
3287 yum_help() {
3288     case $1 in
3289     devkit)
3290         PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3291     openjdk)
3292         PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3293     alsa)
3294         PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3295     cups)
3296         PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3297     freetype2)
3298         PKGHANDLER_COMMAND="sudo yum install freetype2-devel" ;;
3299     pulse)
3300         PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3301     x11)
3302         PKGHANDLER_COMMAND="sudo yum install libXtst-devel" ;;
3303     ccache)
3304         PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3305     * )
3306        break ;;
3307     esac
3308 }
3309 
3310 port_help() {
3311     PKGHANDLER_COMMAND=""
3312 }
3313 
3314 pkgutil_help() {
3315     PKGHANDLER_COMMAND=""
3316 }
3317 
3318 pkgadd_help() {
3319     PKGHANDLER_COMMAND=""
3320 }
3321 
3322 
3323 
3324 #
3325 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3326 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3327 #
3328 # This code is free software; you can redistribute it and/or modify it
3329 # under the terms of the GNU General Public License version 2 only, as
3330 # published by the Free Software Foundation.  Oracle designates this
3331 # particular file as subject to the "Classpath" exception as provided
3332 # by Oracle in the LICENSE file that accompanied this code.
3333 #
3334 # This code is distributed in the hope that it will be useful, but WITHOUT
3335 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3336 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3337 # version 2 for more details (a copy is included in the LICENSE file that
3338 # accompanied this code).
3339 #
3340 # You should have received a copy of the GNU General Public License version
3341 # 2 along with this work; if not, write to the Free Software Foundation,
3342 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3343 #
3344 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3345 # or visit www.oracle.com if you need additional information or have any
3346 # questions.
3347 #
3348 
3349 
3350 
3351 
3352 
3353 
3354 
3355 
3356 
3357 
3358 
3359 
3360 
3361 
3362 
3363 #
3364 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3365 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3366 #
3367 # This code is free software; you can redistribute it and/or modify it
3368 # under the terms of the GNU General Public License version 2 only, as
3369 # published by the Free Software Foundation.  Oracle designates this
3370 # particular file as subject to the "Classpath" exception as provided
3371 # by Oracle in the LICENSE file that accompanied this code.
3372 #
3373 # This code is distributed in the hope that it will be useful, but WITHOUT
3374 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3375 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3376 # version 2 for more details (a copy is included in the LICENSE file that
3377 # accompanied this code).
3378 #
3379 # You should have received a copy of the GNU General Public License version
3380 # 2 along with this work; if not, write to the Free Software Foundation,
3381 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3382 #
3383 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3384 # or visit www.oracle.com if you need additional information or have any
3385 # questions.
3386 #
3387 
3388 
3389 
3390 
3391 
3392 
3393 
3394 
3395 
3396 
3397 
3398 
3399 
3400 
3401 
3402 #
3403 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3404 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3405 #
3406 # This code is free software; you can redistribute it and/or modify it
3407 # under the terms of the GNU General Public License version 2 only, as
3408 # published by the Free Software Foundation.  Oracle designates this
3409 # particular file as subject to the "Classpath" exception as provided
3410 # by Oracle in the LICENSE file that accompanied this code.
3411 #
3412 # This code is distributed in the hope that it will be useful, but WITHOUT
3413 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3414 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3415 # version 2 for more details (a copy is included in the LICENSE file that
3416 # accompanied this code).
3417 #
3418 # You should have received a copy of the GNU General Public License version
3419 # 2 along with this work; if not, write to the Free Software Foundation,
3420 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3421 #
3422 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3423 # or visit www.oracle.com if you need additional information or have any
3424 # questions.
3425 #
3426 
3427 
3428 
3429 
3430 
3431 
3432 
3433 
3434 
3435 
3436 
3437 
3438 
3439 #%%% Build and target systems %%%
3440 
3441 
3442 
3443 
3444 
3445 
3446 
3447 
3448 
3449 
3450 #
3451 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3452 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3453 #
3454 # This code is free software; you can redistribute it and/or modify it
3455 # under the terms of the GNU General Public License version 2 only, as
3456 # published by the Free Software Foundation.  Oracle designates this
3457 # particular file as subject to the "Classpath" exception as provided
3458 # by Oracle in the LICENSE file that accompanied this code.
3459 #
3460 # This code is distributed in the hope that it will be useful, but WITHOUT
3461 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3462 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3463 # version 2 for more details (a copy is included in the LICENSE file that
3464 # accompanied this code).
3465 #
3466 # You should have received a copy of the GNU General Public License version
3467 # 2 along with this work; if not, write to the Free Software Foundation,
3468 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3469 #
3470 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3471 # or visit www.oracle.com if you need additional information or have any
3472 # questions.
3473 #
3474 
3475 
3476 
3477 
3478 
3479 
3480 
3481 
3482 #
3483 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3484 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3485 #
3486 # This code is free software; you can redistribute it and/or modify it
3487 # under the terms of the GNU General Public License version 2 only, as
3488 # published by the Free Software Foundation.  Oracle designates this
3489 # particular file as subject to the "Classpath" exception as provided
3490 # by Oracle in the LICENSE file that accompanied this code.
3491 #
3492 # This code is distributed in the hope that it will be useful, but WITHOUT
3493 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3494 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3495 # version 2 for more details (a copy is included in the LICENSE file that
3496 # accompanied this code).
3497 #
3498 # You should have received a copy of the GNU General Public License version
3499 # 2 along with this work; if not, write to the Free Software Foundation,
3500 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3501 #
3502 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3503 # or visit www.oracle.com if you need additional information or have any
3504 # questions.
3505 #
3506 
3507 
3508 
3509 
3510 
3511 
3512 
3513 
3514 
3515 
3516 
3517 
3518 
3519 
3520 
3521 # This line needs to be here, verbatim, after all includes.
3522 # It is replaced with closed functionality when building
3523 # closed sources.
3524 
3525 
3526 ###############################################################################
3527 #
3528 # Initialization
3529 #
3530 ###############################################################################
3531 
3532 # Basic initialization that must happen first of all
3533 
3534 # Save the original command line. This is passed to us by the wrapper configure script.
3535 
3536 DATE_WHEN_CONFIGURED=`LANG=C date`
3537 
3538 
3539 # Locate the directory of this script.
3540 SCRIPT="$0"
3541 
3542     if test "x$OPENJDK_BUILD_OS" != xwindows; then
3543         # Follow a chain of symbolic links. Use readlink
3544         # where it exists, else fall back to horribly
3545         # complicated shell code.
3546         # Extract the first word of "readlink", so it can be a program name with args.
3547 set dummy readlink; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_path_READLINK+set}" = set; then :
3551   $as_echo_n "(cached) " >&6
3552 else
3553   case $READLINK in
3554   [\\/]* | ?:[\\/]*)
3555   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
3556   ;;
3557   *)
3558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561   IFS=$as_save_IFS
3562   test -z "$as_dir" && as_dir=.
3563     for ac_exec_ext in '' $ac_executable_extensions; do
3564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
3566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570   done
3571 IFS=$as_save_IFS
3572 
3573   ;;
3574 esac
3575 fi
3576 READLINK=$ac_cv_path_READLINK
3577 if test -n "$READLINK"; then
3578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
3579 $as_echo "$READLINK" >&6; }
3580 else
3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3583 fi
3584 
3585 
3586         if test "x$READLINK_TESTED" != yes; then
3587             # On MacOSX there is a readlink tool with a different
3588             # purpose than the GNU readlink tool. Check the found readlink.
3589             ISGNU=`$READLINK --help 2>&1 | grep GNU`
3590             if test "x$ISGNU" = x; then
3591                  # A readlink that we do not know how to use.
3592                  # Are there other non-GNU readlinks out there?
3593                  READLINK_TESTED=yes
3594                  READLINK=
3595             fi
3596         fi
3597 
3598         if test "x$READLINK" != x; then
3599             SCRIPT=`$READLINK -f $SCRIPT`
3600         else
3601             STARTDIR=$PWD
3602             COUNTER=0
3603             DIR=`dirname $SCRIPT`
3604             FIL=`basename $SCRIPT`
3605             while test $COUNTER -lt 20; do
3606                 ISLINK=`ls -l $DIR/$FIL | grep '\->' | sed -e 's/.*-> \(.*\)/\1/'`
3607                 if test "x$ISLINK" == x; then
3608                     # This is not a symbolic link! We are done!
3609                     break
3610                 fi
3611                 # The link might be relative! We have to use cd to travel safely.
3612                 cd $DIR
3613                 cd `dirname $ISLINK`
3614                 DIR=`pwd`
3615                 FIL=`basename $ISLINK`
3616                 let COUNTER=COUNTER+1
3617             done
3618             cd $STARTDIR
3619             SCRIPT=$DIR/$FIL
3620         fi
3621     fi
3622 
3623 AUTOCONF_DIR=`dirname $0`
3624 
3625 
3626 # Where is the source? It is located two levels above the configure script.
3627 CURDIR="$PWD"
3628 cd "$AUTOCONF_DIR/../.."
3629 SRC_ROOT="`pwd`"
3630 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
3631     SRC_ROOT_LENGTH=`pwd|wc -m`
3632     if test $SRC_ROOT_LENGTH -gt 100; then
3633         as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
3634     fi
3635 fi
3636 
3637 cd "$CURDIR"
3638 
3639 
3640     # Fail with message the path to the source root if var SRC_ROOT contains a path with no spaces in it.
3641     # Unless on Windows, where we can rewrite the path.
3642     HAS_SPACE=`echo "$SRC_ROOT" | grep " "`
3643     if test "x$HAS_SPACE" != x; then
3644         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
3645             SRC_ROOT=`$CYGPATH -s -m -a "$SRC_ROOT"`
3646             SRC_ROOT=`$CYGPATH -u "$SRC_ROOT"`
3647         else
3648             as_fn_error $? "You cannot have spaces in the path to the source root! \"$SRC_ROOT\"" "$LINENO" 5
3649         fi
3650     fi
3651 
3652 
3653     # Fail with message the path to the current directory if var CURDIR contains a path with no spaces in it.
3654     # Unless on Windows, where we can rewrite the path.
3655     HAS_SPACE=`echo "$CURDIR" | grep " "`
3656     if test "x$HAS_SPACE" != x; then
3657         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
3658             CURDIR=`$CYGPATH -s -m -a "$CURDIR"`
3659             CURDIR=`$CYGPATH -u "$CURDIR"`
3660         else
3661             as_fn_error $? "You cannot have spaces in the path to the current directory! \"$CURDIR\"" "$LINENO" 5
3662         fi
3663     fi
3664 
3665 
3666 
3667 # Setup default logging of stdout and stderr to build.log in the output root.
3668 BUILD_LOG='$(OUTPUT_ROOT)/build.log'
3669 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
3670 BUILD_LOG_WRAPPER='$(SH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
3671 
3672 
3673 
3674 
3675 
3676 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
3677 
3678     for ac_prog in apt-get yum port pkgutil pkgadd
3679 do
3680   # Extract the first word of "$ac_prog", so it can be a program name with args.
3681 set dummy $ac_prog; ac_word=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
3685   $as_echo_n "(cached) " >&6
3686 else
3687   if test -n "$PKGHANDLER"; then
3688   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693   IFS=$as_save_IFS
3694   test -z "$as_dir" && as_dir=.
3695     for ac_exec_ext in '' $ac_executable_extensions; do
3696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697     ac_cv_prog_PKGHANDLER="$ac_prog"
3698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699     break 2
3700   fi
3701 done
3702   done
3703 IFS=$as_save_IFS
3704 
3705 fi
3706 fi
3707 PKGHANDLER=$ac_cv_prog_PKGHANDLER
3708 if test -n "$PKGHANDLER"; then
3709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
3710 $as_echo "$PKGHANDLER" >&6; }
3711 else
3712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3714 fi
3715 
3716 
3717   test -n "$PKGHANDLER" && break
3718 done
3719 
3720 
3721 
3722 # Setup simple tools, that do not need have cross compilation support.
3723 # Without these, we can't properly run the rest of the configure script.
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3725 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3726 if test "${ac_cv_path_GREP+set}" = set; then :
3727   $as_echo_n "(cached) " >&6
3728 else
3729   if test -z "$GREP"; then
3730   ac_path_GREP_found=false
3731   # Loop through the user's path and test for each of PROGNAME-LIST
3732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3734 do
3735   IFS=$as_save_IFS
3736   test -z "$as_dir" && as_dir=.
3737     for ac_prog in grep ggrep; do
3738     for ac_exec_ext in '' $ac_executable_extensions; do
3739       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3740       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3741 # Check for GNU ac_path_GREP and select it if it is found.
3742   # Check for GNU $ac_path_GREP
3743 case `"$ac_path_GREP" --version 2>&1` in
3744 *GNU*)
3745   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3746 *)
3747   ac_count=0
3748   $as_echo_n 0123456789 >"conftest.in"
3749   while :
3750   do
3751     cat "conftest.in" "conftest.in" >"conftest.tmp"
3752     mv "conftest.tmp" "conftest.in"
3753     cp "conftest.in" "conftest.nl"
3754     $as_echo 'GREP' >> "conftest.nl"
3755     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3756     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3757     as_fn_arith $ac_count + 1 && ac_count=$as_val
3758     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3759       # Best one so far, save it but keep looking for a better one
3760       ac_cv_path_GREP="$ac_path_GREP"
3761       ac_path_GREP_max=$ac_count
3762     fi
3763     # 10*(2^10) chars as input seems more than enough
3764     test $ac_count -gt 10 && break
3765   done
3766   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3767 esac
3768 
3769       $ac_path_GREP_found && break 3
3770     done
3771   done
3772   done
3773 IFS=$as_save_IFS
3774   if test -z "$ac_cv_path_GREP"; then
3775     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3776   fi
3777 else
3778   ac_cv_path_GREP=$GREP
3779 fi
3780 
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3783 $as_echo "$ac_cv_path_GREP" >&6; }
3784  GREP="$ac_cv_path_GREP"
3785 
3786 
3787 
3788 # Start with tools that do not need have cross compilation support
3789 # and can be expected to be found in the default PATH. These tools are
3790 # used by configure. Nor are these tools expected to be found in the
3791 # devkit from the builddeps server either, since they are
3792 # needed to download the devkit.
3793 for ac_prog in gawk mawk nawk awk
3794 do
3795   # Extract the first word of "$ac_prog", so it can be a program name with args.
3796 set dummy $ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if test "${ac_cv_prog_AWK+set}" = set; then :
3800   $as_echo_n "(cached) " >&6
3801 else
3802   if test -n "$AWK"; then
3803   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808   IFS=$as_save_IFS
3809   test -z "$as_dir" && as_dir=.
3810     for ac_exec_ext in '' $ac_executable_extensions; do
3811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812     ac_cv_prog_AWK="$ac_prog"
3813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814     break 2
3815   fi
3816 done
3817   done
3818 IFS=$as_save_IFS
3819 
3820 fi
3821 fi
3822 AWK=$ac_cv_prog_AWK
3823 if test -n "$AWK"; then
3824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3825 $as_echo "$AWK" >&6; }
3826 else
3827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3829 fi
3830 
3831 
3832   test -n "$AWK" && break
3833 done
3834 
3835 
3836     # Test that variable AWK is not empty.
3837     if test "" = "$AWK"; then as_fn_error $? "Could not find awk !" "$LINENO" 5 ; fi
3838 
3839 # Extract the first word of "cat", so it can be a program name with args.
3840 set dummy cat; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if test "${ac_cv_path_CAT+set}" = set; then :
3844   $as_echo_n "(cached) " >&6
3845 else
3846   case $CAT in
3847   [\\/]* | ?:[\\/]*)
3848   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3849   ;;
3850   *)
3851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856     for ac_exec_ext in '' $ac_executable_extensions; do
3857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863   done
3864 IFS=$as_save_IFS
3865 
3866   ;;
3867 esac
3868 fi
3869 CAT=$ac_cv_path_CAT
3870 if test -n "$CAT"; then
3871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
3872 $as_echo "$CAT" >&6; }
3873 else
3874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 fi
3877 
3878 
3879 
3880     # Test that variable CAT is not empty.
3881     if test "" = "$CAT"; then as_fn_error $? "Could not find cat !" "$LINENO" 5 ; fi
3882 
3883 # Extract the first word of "chmod", so it can be a program name with args.
3884 set dummy chmod; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if test "${ac_cv_path_CHMOD+set}" = set; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   case $CHMOD in
3891   [\\/]* | ?:[\\/]*)
3892   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3893   ;;
3894   *)
3895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898   IFS=$as_save_IFS
3899   test -z "$as_dir" && as_dir=.
3900     for ac_exec_ext in '' $ac_executable_extensions; do
3901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904     break 2
3905   fi
3906 done
3907   done
3908 IFS=$as_save_IFS
3909 
3910   ;;
3911 esac
3912 fi
3913 CHMOD=$ac_cv_path_CHMOD
3914 if test -n "$CHMOD"; then
3915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3916 $as_echo "$CHMOD" >&6; }
3917 else
3918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3920 fi
3921 
3922 
3923 
3924     # Test that variable CHMOD is not empty.
3925     if test "" = "$CHMOD"; then as_fn_error $? "Could not find chmod !" "$LINENO" 5 ; fi
3926 
3927 # Extract the first word of "cp", so it can be a program name with args.
3928 set dummy cp; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if test "${ac_cv_path_CP+set}" = set; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   case $CP in
3935   [\\/]* | ?:[\\/]*)
3936   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3937   ;;
3938   *)
3939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942   IFS=$as_save_IFS
3943   test -z "$as_dir" && as_dir=.
3944     for ac_exec_ext in '' $ac_executable_extensions; do
3945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948     break 2
3949   fi
3950 done
3951   done
3952 IFS=$as_save_IFS
3953 
3954   ;;
3955 esac
3956 fi
3957 CP=$ac_cv_path_CP
3958 if test -n "$CP"; then
3959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
3960 $as_echo "$CP" >&6; }
3961 else
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3964 fi
3965 
3966 
3967 
3968     # Test that variable CP is not empty.
3969     if test "" = "$CP"; then as_fn_error $? "Could not find cp !" "$LINENO" 5 ; fi
3970 
3971 # Extract the first word of "cpio", so it can be a program name with args.
3972 set dummy cpio; ac_word=$2
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974 $as_echo_n "checking for $ac_word... " >&6; }
3975 if test "${ac_cv_path_CPIO+set}" = set; then :
3976   $as_echo_n "(cached) " >&6
3977 else
3978   case $CPIO in
3979   [\\/]* | ?:[\\/]*)
3980   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
3981   ;;
3982   *)
3983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986   IFS=$as_save_IFS
3987   test -z "$as_dir" && as_dir=.
3988     for ac_exec_ext in '' $ac_executable_extensions; do
3989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
3991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992     break 2
3993   fi
3994 done
3995   done
3996 IFS=$as_save_IFS
3997 
3998   ;;
3999 esac
4000 fi
4001 CPIO=$ac_cv_path_CPIO
4002 if test -n "$CPIO"; then
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
4004 $as_echo "$CPIO" >&6; }
4005 else
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 fi
4009 
4010 
4011 
4012     # Test that variable CPIO is not empty.
4013     if test "" = "$CPIO"; then as_fn_error $? "Could not find cpio !" "$LINENO" 5 ; fi
4014 
4015 # Extract the first word of "cut", so it can be a program name with args.
4016 set dummy cut; ac_word=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if test "${ac_cv_path_CUT+set}" = set; then :
4020   $as_echo_n "(cached) " >&6
4021 else
4022   case $CUT in
4023   [\\/]* | ?:[\\/]*)
4024   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4025   ;;
4026   *)
4027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030   IFS=$as_save_IFS
4031   test -z "$as_dir" && as_dir=.
4032     for ac_exec_ext in '' $ac_executable_extensions; do
4033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4034     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036     break 2
4037   fi
4038 done
4039   done
4040 IFS=$as_save_IFS
4041 
4042   ;;
4043 esac
4044 fi
4045 CUT=$ac_cv_path_CUT
4046 if test -n "$CUT"; then
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
4048 $as_echo "$CUT" >&6; }
4049 else
4050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 fi
4053 
4054 
4055 
4056     # Test that variable CUT is not empty.
4057     if test "" = "$CUT"; then as_fn_error $? "Could not find cut !" "$LINENO" 5 ; fi
4058 
4059 # Extract the first word of "date", so it can be a program name with args.
4060 set dummy date; ac_word=$2
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 $as_echo_n "checking for $ac_word... " >&6; }
4063 if test "${ac_cv_path_DATE+set}" = set; then :
4064   $as_echo_n "(cached) " >&6
4065 else
4066   case $DATE in
4067   [\\/]* | ?:[\\/]*)
4068   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4069   ;;
4070   *)
4071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076     for ac_exec_ext in '' $ac_executable_extensions; do
4077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080     break 2
4081   fi
4082 done
4083   done
4084 IFS=$as_save_IFS
4085 
4086   ;;
4087 esac
4088 fi
4089 DATE=$ac_cv_path_DATE
4090 if test -n "$DATE"; then
4091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
4092 $as_echo "$DATE" >&6; }
4093 else
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4096 fi
4097 
4098 
4099 
4100     # Test that variable DATE is not empty.
4101     if test "" = "$DATE"; then as_fn_error $? "Could not find date !" "$LINENO" 5 ; fi
4102 
4103 # Extract the first word of "df", so it can be a program name with args.
4104 set dummy df; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_path_DF+set}" = set; then :
4108   $as_echo_n "(cached) " >&6
4109 else
4110   case $DF in
4111   [\\/]* | ?:[\\/]*)
4112   ac_cv_path_DF="$DF" # Let the user override the test with a path.
4113   ;;
4114   *)
4115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120     for ac_exec_ext in '' $ac_executable_extensions; do
4121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
4123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127   done
4128 IFS=$as_save_IFS
4129 
4130   ;;
4131 esac
4132 fi
4133 DF=$ac_cv_path_DF
4134 if test -n "$DF"; then
4135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
4136 $as_echo "$DF" >&6; }
4137 else
4138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4140 fi
4141 
4142 
4143 
4144     # Test that variable DF is not empty.
4145     if test "" = "$DF"; then as_fn_error $? "Could not find df !" "$LINENO" 5 ; fi
4146 
4147 # Extract the first word of "diff", so it can be a program name with args.
4148 set dummy diff; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if test "${ac_cv_path_DIFF+set}" = set; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   case $DIFF in
4155   [\\/]* | ?:[\\/]*)
4156   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4157   ;;
4158   *)
4159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164     for ac_exec_ext in '' $ac_executable_extensions; do
4165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168     break 2
4169   fi
4170 done
4171   done
4172 IFS=$as_save_IFS
4173 
4174   ;;
4175 esac
4176 fi
4177 DIFF=$ac_cv_path_DIFF
4178 if test -n "$DIFF"; then
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
4180 $as_echo "$DIFF" >&6; }
4181 else
4182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4184 fi
4185 
4186 
4187 
4188     # Test that variable DIFF is not empty.
4189     if test "" = "$DIFF"; then as_fn_error $? "Could not find diff !" "$LINENO" 5 ; fi
4190 
4191 # Warning echo is really, really unportable!!!!! Different
4192 # behaviour in bash and dash and in a lot of other shells!
4193 # Use printf for serious work!
4194 # Extract the first word of "echo", so it can be a program name with args.
4195 set dummy echo; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if test "${ac_cv_path_ECHO+set}" = set; then :
4199   $as_echo_n "(cached) " >&6
4200 else
4201   case $ECHO in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211     for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218   done
4219 IFS=$as_save_IFS
4220 
4221   ;;
4222 esac
4223 fi
4224 ECHO=$ac_cv_path_ECHO
4225 if test -n "$ECHO"; then
4226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4227 $as_echo "$ECHO" >&6; }
4228 else
4229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4231 fi
4232 
4233 
4234 
4235     # Test that variable ECHO is not empty.
4236     if test "" = "$ECHO"; then as_fn_error $? "Could not find echo !" "$LINENO" 5 ; fi
4237 
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4239 $as_echo_n "checking for egrep... " >&6; }
4240 if test "${ac_cv_path_EGREP+set}" = set; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4244    then ac_cv_path_EGREP="$GREP -E"
4245    else
4246      if test -z "$EGREP"; then
4247   ac_path_EGREP_found=false
4248   # Loop through the user's path and test for each of PROGNAME-LIST
4249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254     for ac_prog in egrep; do
4255     for ac_exec_ext in '' $ac_executable_extensions; do
4256       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4257       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4258 # Check for GNU ac_path_EGREP and select it if it is found.
4259   # Check for GNU $ac_path_EGREP
4260 case `"$ac_path_EGREP" --version 2>&1` in
4261 *GNU*)
4262   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4263 *)
4264   ac_count=0
4265   $as_echo_n 0123456789 >"conftest.in"
4266   while :
4267   do
4268     cat "conftest.in" "conftest.in" >"conftest.tmp"
4269     mv "conftest.tmp" "conftest.in"
4270     cp "conftest.in" "conftest.nl"
4271     $as_echo 'EGREP' >> "conftest.nl"
4272     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274     as_fn_arith $ac_count + 1 && ac_count=$as_val
4275     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4276       # Best one so far, save it but keep looking for a better one
4277       ac_cv_path_EGREP="$ac_path_EGREP"
4278       ac_path_EGREP_max=$ac_count
4279     fi
4280     # 10*(2^10) chars as input seems more than enough
4281     test $ac_count -gt 10 && break
4282   done
4283   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284 esac
4285 
4286       $ac_path_EGREP_found && break 3
4287     done
4288   done
4289   done
4290 IFS=$as_save_IFS
4291   if test -z "$ac_cv_path_EGREP"; then
4292     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293   fi
4294 else
4295   ac_cv_path_EGREP=$EGREP
4296 fi
4297 
4298    fi
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4301 $as_echo "$ac_cv_path_EGREP" >&6; }
4302  EGREP="$ac_cv_path_EGREP"
4303 
4304 
4305 
4306     # Test that variable EGREP is not empty.
4307     if test "" = "$EGREP"; then as_fn_error $? "Could not find egrep !" "$LINENO" 5 ; fi
4308 
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4310 $as_echo_n "checking for fgrep... " >&6; }
4311 if test "${ac_cv_path_FGREP+set}" = set; then :
4312   $as_echo_n "(cached) " >&6
4313 else
4314   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4315    then ac_cv_path_FGREP="$GREP -F"
4316    else
4317      if test -z "$FGREP"; then
4318   ac_path_FGREP_found=false
4319   # Loop through the user's path and test for each of PROGNAME-LIST
4320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 do
4323   IFS=$as_save_IFS
4324   test -z "$as_dir" && as_dir=.
4325     for ac_prog in fgrep; do
4326     for ac_exec_ext in '' $ac_executable_extensions; do
4327       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4328       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4329 # Check for GNU ac_path_FGREP and select it if it is found.
4330   # Check for GNU $ac_path_FGREP
4331 case `"$ac_path_FGREP" --version 2>&1` in
4332 *GNU*)
4333   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4334 *)
4335   ac_count=0
4336   $as_echo_n 0123456789 >"conftest.in"
4337   while :
4338   do
4339     cat "conftest.in" "conftest.in" >"conftest.tmp"
4340     mv "conftest.tmp" "conftest.in"
4341     cp "conftest.in" "conftest.nl"
4342     $as_echo 'FGREP' >> "conftest.nl"
4343     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345     as_fn_arith $ac_count + 1 && ac_count=$as_val
4346     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4347       # Best one so far, save it but keep looking for a better one
4348       ac_cv_path_FGREP="$ac_path_FGREP"
4349       ac_path_FGREP_max=$ac_count
4350     fi
4351     # 10*(2^10) chars as input seems more than enough
4352     test $ac_count -gt 10 && break
4353   done
4354   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 esac
4356 
4357       $ac_path_FGREP_found && break 3
4358     done
4359   done
4360   done
4361 IFS=$as_save_IFS
4362   if test -z "$ac_cv_path_FGREP"; then
4363     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364   fi
4365 else
4366   ac_cv_path_FGREP=$FGREP
4367 fi
4368 
4369    fi
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4372 $as_echo "$ac_cv_path_FGREP" >&6; }
4373  FGREP="$ac_cv_path_FGREP"
4374 
4375 
4376 
4377     # Test that variable FGREP is not empty.
4378     if test "" = "$FGREP"; then as_fn_error $? "Could not find fgrep !" "$LINENO" 5 ; fi
4379 
4380 
4381 # Extract the first word of "find", so it can be a program name with args.
4382 set dummy find; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if test "${ac_cv_path_FIND+set}" = set; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   case $FIND in
4389   [\\/]* | ?:[\\/]*)
4390   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4391   ;;
4392   *)
4393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398     for ac_exec_ext in '' $ac_executable_extensions; do
4399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405   done
4406 IFS=$as_save_IFS
4407 
4408   ;;
4409 esac
4410 fi
4411 FIND=$ac_cv_path_FIND
4412 if test -n "$FIND"; then
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4414 $as_echo "$FIND" >&6; }
4415 else
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419 
4420 
4421 
4422     # Test that variable FIND is not empty.
4423     if test "" = "$FIND"; then as_fn_error $? "Could not find find !" "$LINENO" 5 ; fi
4424 
4425 
4426     # Test if find supports -delete
4427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
4428 $as_echo_n "checking if find supports -delete... " >&6; }
4429     FIND_DELETE="-delete"
4430 
4431     DELETEDIR=`mktemp -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
4432 
4433     echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
4434 
4435     TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
4436     if test -f $DELETEDIR/TestIfFindSupportsDelete; then
4437         # No, it does not.
4438         rm $DELETEDIR/TestIfFindSupportsDelete
4439         FIND_DELETE="-exec rm \{\} \+"
4440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442     else
4443         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444 $as_echo "yes" >&6; }
4445     fi
4446     rmdir $DELETEDIR
4447 
4448 
4449 
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4451 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4452 if test "${ac_cv_path_GREP+set}" = set; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if test -z "$GREP"; then
4456   ac_path_GREP_found=false
4457   # Loop through the user's path and test for each of PROGNAME-LIST
4458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463     for ac_prog in grep ggrep; do
4464     for ac_exec_ext in '' $ac_executable_extensions; do
4465       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4466       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4467 # Check for GNU ac_path_GREP and select it if it is found.
4468   # Check for GNU $ac_path_GREP
4469 case `"$ac_path_GREP" --version 2>&1` in
4470 *GNU*)
4471   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4472 *)
4473   ac_count=0
4474   $as_echo_n 0123456789 >"conftest.in"
4475   while :
4476   do
4477     cat "conftest.in" "conftest.in" >"conftest.tmp"
4478     mv "conftest.tmp" "conftest.in"
4479     cp "conftest.in" "conftest.nl"
4480     $as_echo 'GREP' >> "conftest.nl"
4481     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483     as_fn_arith $ac_count + 1 && ac_count=$as_val
4484     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4485       # Best one so far, save it but keep looking for a better one
4486       ac_cv_path_GREP="$ac_path_GREP"
4487       ac_path_GREP_max=$ac_count
4488     fi
4489     # 10*(2^10) chars as input seems more than enough
4490     test $ac_count -gt 10 && break
4491   done
4492   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 esac
4494 
4495       $ac_path_GREP_found && break 3
4496     done
4497   done
4498   done
4499 IFS=$as_save_IFS
4500   if test -z "$ac_cv_path_GREP"; then
4501     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502   fi
4503 else
4504   ac_cv_path_GREP=$GREP
4505 fi
4506 
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4509 $as_echo "$ac_cv_path_GREP" >&6; }
4510  GREP="$ac_cv_path_GREP"
4511 
4512 
4513 
4514     # Test that variable GREP is not empty.
4515     if test "" = "$GREP"; then as_fn_error $? "Could not find grep !" "$LINENO" 5 ; fi
4516 
4517 # Extract the first word of "head", so it can be a program name with args.
4518 set dummy head; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if test "${ac_cv_path_HEAD+set}" = set; then :
4522   $as_echo_n "(cached) " >&6
4523 else
4524   case $HEAD in
4525   [\\/]* | ?:[\\/]*)
4526   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4527   ;;
4528   *)
4529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534     for ac_exec_ext in '' $ac_executable_extensions; do
4535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541   done
4542 IFS=$as_save_IFS
4543 
4544   ;;
4545 esac
4546 fi
4547 HEAD=$ac_cv_path_HEAD
4548 if test -n "$HEAD"; then
4549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
4550 $as_echo "$HEAD" >&6; }
4551 else
4552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4554 fi
4555 
4556 
4557 
4558     # Test that variable HEAD is not empty.
4559     if test "" = "$HEAD"; then as_fn_error $? "Could not find head !" "$LINENO" 5 ; fi
4560 
4561 # Extract the first word of "ln", so it can be a program name with args.
4562 set dummy ln; ac_word=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_path_LN+set}" = set; then :
4566   $as_echo_n "(cached) " >&6
4567 else
4568   case $LN in
4569   [\\/]* | ?:[\\/]*)
4570   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4571   ;;
4572   *)
4573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578     for ac_exec_ext in '' $ac_executable_extensions; do
4579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582     break 2
4583   fi
4584 done
4585   done
4586 IFS=$as_save_IFS
4587 
4588   ;;
4589 esac
4590 fi
4591 LN=$ac_cv_path_LN
4592 if test -n "$LN"; then
4593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4594 $as_echo "$LN" >&6; }
4595 else
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 fi
4599 
4600 
4601 
4602     # Test that variable LN is not empty.
4603     if test "" = "$LN"; then as_fn_error $? "Could not find ln !" "$LINENO" 5 ; fi
4604 
4605 # Extract the first word of "ls", so it can be a program name with args.
4606 set dummy ls; 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 test "${ac_cv_path_LS+set}" = set; then :
4610   $as_echo_n "(cached) " >&6
4611 else
4612   case $LS in
4613   [\\/]* | ?:[\\/]*)
4614   ac_cv_path_LS="$LS" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624     ac_cv_path_LS="$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 LS=$ac_cv_path_LS
4636 if test -n "$LS"; then
4637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
4638 $as_echo "$LS" >&6; }
4639 else
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4642 fi
4643 
4644 
4645 
4646     # Test that variable LS is not empty.
4647     if test "" = "$LS"; then as_fn_error $? "Could not find ls !" "$LINENO" 5 ; fi
4648 
4649 for ac_prog in gmake make
4650 do
4651   # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_path_MAKE+set}" = set; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   case $MAKE in
4659   [\\/]* | ?:[\\/]*)
4660   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4661   ;;
4662   *)
4663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668     for ac_exec_ext in '' $ac_executable_extensions; do
4669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675   done
4676 IFS=$as_save_IFS
4677 
4678   ;;
4679 esac
4680 fi
4681 MAKE=$ac_cv_path_MAKE
4682 if test -n "$MAKE"; then
4683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4684 $as_echo "$MAKE" >&6; }
4685 else
4686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4688 fi
4689 
4690 
4691   test -n "$MAKE" && break
4692 done
4693 
4694 
4695     # Test that variable MAKE is not empty.
4696     if test "" = "$MAKE"; then as_fn_error $? "Could not find make !" "$LINENO" 5 ; fi
4697 
4698 MAKE_VERSION=`$MAKE --version | head -n 1 | grep '3.8[12346789]'`
4699 if test "x$MAKE_VERSION" = x; then
4700     as_fn_error $? "You must use 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
4701 fi
4702 # Extract the first word of "mkdir", so it can be a program name with args.
4703 set dummy mkdir; ac_word=$2
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if test "${ac_cv_path_MKDIR+set}" = set; then :
4707   $as_echo_n "(cached) " >&6
4708 else
4709   case $MKDIR in
4710   [\\/]* | ?:[\\/]*)
4711   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4712   ;;
4713   *)
4714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719     for ac_exec_ext in '' $ac_executable_extensions; do
4720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726   done
4727 IFS=$as_save_IFS
4728 
4729   ;;
4730 esac
4731 fi
4732 MKDIR=$ac_cv_path_MKDIR
4733 if test -n "$MKDIR"; then
4734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4735 $as_echo "$MKDIR" >&6; }
4736 else
4737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4739 fi
4740 
4741 
4742 
4743     # Test that variable MKDIR is not empty.
4744     if test "" = "$MKDIR"; then as_fn_error $? "Could not find mkdir !" "$LINENO" 5 ; fi
4745 
4746 # Extract the first word of "mv", so it can be a program name with args.
4747 set dummy mv; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if test "${ac_cv_path_MV+set}" = set; then :
4751   $as_echo_n "(cached) " >&6
4752 else
4753   case $MV in
4754   [\\/]* | ?:[\\/]*)
4755   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4756   ;;
4757   *)
4758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763     for ac_exec_ext in '' $ac_executable_extensions; do
4764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770   done
4771 IFS=$as_save_IFS
4772 
4773   ;;
4774 esac
4775 fi
4776 MV=$ac_cv_path_MV
4777 if test -n "$MV"; then
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4779 $as_echo "$MV" >&6; }
4780 else
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4783 fi
4784 
4785 
4786 
4787     # Test that variable MV is not empty.
4788     if test "" = "$MV"; then as_fn_error $? "Could not find mv !" "$LINENO" 5 ; fi
4789 
4790 for ac_prog in nawk gawk awk
4791 do
4792   # Extract the first word of "$ac_prog", so it can be a program name with args.
4793 set dummy $ac_prog; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_path_NAWK+set}" = set; then :
4797   $as_echo_n "(cached) " >&6
4798 else
4799   case $NAWK in
4800   [\\/]* | ?:[\\/]*)
4801   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
4802   ;;
4803   *)
4804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809     for ac_exec_ext in '' $ac_executable_extensions; do
4810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
4812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813     break 2
4814   fi
4815 done
4816   done
4817 IFS=$as_save_IFS
4818 
4819   ;;
4820 esac
4821 fi
4822 NAWK=$ac_cv_path_NAWK
4823 if test -n "$NAWK"; then
4824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
4825 $as_echo "$NAWK" >&6; }
4826 else
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4829 fi
4830 
4831 
4832   test -n "$NAWK" && break
4833 done
4834 
4835 
4836     # Test that variable NAWK is not empty.
4837     if test "" = "$NAWK"; then as_fn_error $? "Could not find nawk !" "$LINENO" 5 ; fi
4838 
4839 # Extract the first word of "printf", so it can be a program name with args.
4840 set dummy printf; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if test "${ac_cv_path_PRINTF+set}" = set; then :
4844   $as_echo_n "(cached) " >&6
4845 else
4846   case $PRINTF in
4847   [\\/]* | ?:[\\/]*)
4848   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
4849   ;;
4850   *)
4851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854   IFS=$as_save_IFS
4855   test -z "$as_dir" && as_dir=.
4856     for ac_exec_ext in '' $ac_executable_extensions; do
4857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
4859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860     break 2
4861   fi
4862 done
4863   done
4864 IFS=$as_save_IFS
4865 
4866   ;;
4867 esac
4868 fi
4869 PRINTF=$ac_cv_path_PRINTF
4870 if test -n "$PRINTF"; then
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
4872 $as_echo "$PRINTF" >&6; }
4873 else
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877 
4878 
4879 
4880     # Test that variable PRINTF is not empty.
4881     if test "" = "$PRINTF"; then as_fn_error $? "Could not find printf !" "$LINENO" 5 ; fi
4882 
4883 # Extract the first word of "pwd", so it can be a program name with args.
4884 set dummy pwd; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if test "${ac_cv_path_THEPWDCMD+set}" = set; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   case $THEPWDCMD in
4891   [\\/]* | ?:[\\/]*)
4892   ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path.
4893   ;;
4894   *)
4895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898   IFS=$as_save_IFS
4899   test -z "$as_dir" && as_dir=.
4900     for ac_exec_ext in '' $ac_executable_extensions; do
4901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902     ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext"
4903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904     break 2
4905   fi
4906 done
4907   done
4908 IFS=$as_save_IFS
4909 
4910   ;;
4911 esac
4912 fi
4913 THEPWDCMD=$ac_cv_path_THEPWDCMD
4914 if test -n "$THEPWDCMD"; then
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THEPWDCMD" >&5
4916 $as_echo "$THEPWDCMD" >&6; }
4917 else
4918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921 
4922 
4923 # Extract the first word of "rm", so it can be a program name with args.
4924 set dummy rm; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_path_RM+set}" = set; then :
4928   $as_echo_n "(cached) " >&6
4929 else
4930   case $RM in
4931   [\\/]* | ?:[\\/]*)
4932   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4933   ;;
4934   *)
4935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938   IFS=$as_save_IFS
4939   test -z "$as_dir" && as_dir=.
4940     for ac_exec_ext in '' $ac_executable_extensions; do
4941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944     break 2
4945   fi
4946 done
4947   done
4948 IFS=$as_save_IFS
4949 
4950   ;;
4951 esac
4952 fi
4953 RM=$ac_cv_path_RM
4954 if test -n "$RM"; then
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4956 $as_echo "$RM" >&6; }
4957 else
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961 
4962 
4963 
4964     # Test that variable RM is not empty.
4965     if test "" = "$RM"; then as_fn_error $? "Could not find rm !" "$LINENO" 5 ; fi
4966 
4967 RM="$RM -f"
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4969 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4970 if test "${ac_cv_path_SED+set}" = set; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4974      for ac_i in 1 2 3 4 5 6 7; do
4975        ac_script="$ac_script$as_nl$ac_script"
4976      done
4977      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4978      { ac_script=; unset ac_script;}
4979      if test -z "$SED"; then
4980   ac_path_SED_found=false
4981   # Loop through the user's path and test for each of PROGNAME-LIST
4982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987     for ac_prog in sed gsed; do
4988     for ac_exec_ext in '' $ac_executable_extensions; do
4989       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4990       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4991 # Check for GNU ac_path_SED and select it if it is found.
4992   # Check for GNU $ac_path_SED
4993 case `"$ac_path_SED" --version 2>&1` in
4994 *GNU*)
4995   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4996 *)
4997   ac_count=0
4998   $as_echo_n 0123456789 >"conftest.in"
4999   while :
5000   do
5001     cat "conftest.in" "conftest.in" >"conftest.tmp"
5002     mv "conftest.tmp" "conftest.in"
5003     cp "conftest.in" "conftest.nl"
5004     $as_echo '' >> "conftest.nl"
5005     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007     as_fn_arith $ac_count + 1 && ac_count=$as_val
5008     if test $ac_count -gt ${ac_path_SED_max-0}; then
5009       # Best one so far, save it but keep looking for a better one
5010       ac_cv_path_SED="$ac_path_SED"
5011       ac_path_SED_max=$ac_count
5012     fi
5013     # 10*(2^10) chars as input seems more than enough
5014     test $ac_count -gt 10 && break
5015   done
5016   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017 esac
5018 
5019       $ac_path_SED_found && break 3
5020     done
5021   done
5022   done
5023 IFS=$as_save_IFS
5024   if test -z "$ac_cv_path_SED"; then
5025     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5026   fi
5027 else
5028   ac_cv_path_SED=$SED
5029 fi
5030 
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5033 $as_echo "$ac_cv_path_SED" >&6; }
5034  SED="$ac_cv_path_SED"
5035   rm -f conftest.sed
5036 
5037 
5038     # Test that variable SED is not empty.
5039     if test "" = "$SED"; then as_fn_error $? "Could not find sed !" "$LINENO" 5 ; fi
5040 
5041 # Extract the first word of "sh", so it can be a program name with args.
5042 set dummy sh; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if test "${ac_cv_path_SH+set}" = set; then :
5046   $as_echo_n "(cached) " >&6
5047 else
5048   case $SH in
5049   [\\/]* | ?:[\\/]*)
5050   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5051   ;;
5052   *)
5053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058     for ac_exec_ext in '' $ac_executable_extensions; do
5059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062     break 2
5063   fi
5064 done
5065   done
5066 IFS=$as_save_IFS
5067 
5068   ;;
5069 esac
5070 fi
5071 SH=$ac_cv_path_SH
5072 if test -n "$SH"; then
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
5074 $as_echo "$SH" >&6; }
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079 
5080 
5081 
5082     # Test that variable SH is not empty.
5083     if test "" = "$SH"; then as_fn_error $? "Could not find sh !" "$LINENO" 5 ; fi
5084 
5085 # Extract the first word of "sort", so it can be a program name with args.
5086 set dummy sort; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_path_SORT+set}" = set; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   case $SORT in
5093   [\\/]* | ?:[\\/]*)
5094   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5095   ;;
5096   *)
5097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102     for ac_exec_ext in '' $ac_executable_extensions; do
5103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109   done
5110 IFS=$as_save_IFS
5111 
5112   ;;
5113 esac
5114 fi
5115 SORT=$ac_cv_path_SORT
5116 if test -n "$SORT"; then
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5118 $as_echo "$SORT" >&6; }
5119 else
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5122 fi
5123 
5124 
5125 
5126     # Test that variable SORT is not empty.
5127     if test "" = "$SORT"; then as_fn_error $? "Could not find sort !" "$LINENO" 5 ; fi
5128 
5129 # Extract the first word of "tar", so it can be a program name with args.
5130 set dummy tar; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_path_TAR+set}" = set; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   case $TAR in
5137   [\\/]* | ?:[\\/]*)
5138   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5139   ;;
5140   *)
5141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146     for ac_exec_ext in '' $ac_executable_extensions; do
5147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153   done
5154 IFS=$as_save_IFS
5155 
5156   ;;
5157 esac
5158 fi
5159 TAR=$ac_cv_path_TAR
5160 if test -n "$TAR"; then
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
5162 $as_echo "$TAR" >&6; }
5163 else
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167 
5168 
5169 
5170     # Test that variable TAR is not empty.
5171     if test "" = "$TAR"; then as_fn_error $? "Could not find tar !" "$LINENO" 5 ; fi
5172 
5173 # Extract the first word of "tail", so it can be a program name with args.
5174 set dummy tail; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if test "${ac_cv_path_TAIL+set}" = set; then :
5178   $as_echo_n "(cached) " >&6
5179 else
5180   case $TAIL in
5181   [\\/]* | ?:[\\/]*)
5182   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5183   ;;
5184   *)
5185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190     for ac_exec_ext in '' $ac_executable_extensions; do
5191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197   done
5198 IFS=$as_save_IFS
5199 
5200   ;;
5201 esac
5202 fi
5203 TAIL=$ac_cv_path_TAIL
5204 if test -n "$TAIL"; then
5205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
5206 $as_echo "$TAIL" >&6; }
5207 else
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 fi
5211 
5212 
5213 
5214     # Test that variable TAIL is not empty.
5215     if test "" = "$TAIL"; then as_fn_error $? "Could not find tail !" "$LINENO" 5 ; fi
5216 
5217 # Extract the first word of "tee", so it can be a program name with args.
5218 set dummy tee; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_path_TEE+set}" = set; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   case $TEE in
5225   [\\/]* | ?:[\\/]*)
5226   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5227   ;;
5228   *)
5229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234     for ac_exec_ext in '' $ac_executable_extensions; do
5235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238     break 2
5239   fi
5240 done
5241   done
5242 IFS=$as_save_IFS
5243 
5244   ;;
5245 esac
5246 fi
5247 TEE=$ac_cv_path_TEE
5248 if test -n "$TEE"; then
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
5250 $as_echo "$TEE" >&6; }
5251 else
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5254 fi
5255 
5256 
5257 
5258     # Test that variable TEE is not empty.
5259     if test "" = "$TEE"; then as_fn_error $? "Could not find tee !" "$LINENO" 5 ; fi
5260 
5261 # Extract the first word of "tr", so it can be a program name with args.
5262 set dummy tr; 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 test "${ac_cv_path_TR+set}" = set; then :
5266   $as_echo_n "(cached) " >&6
5267 else
5268   case $TR in
5269   [\\/]* | ?:[\\/]*)
5270   ac_cv_path_TR="$TR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280     ac_cv_path_TR="$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 TR=$ac_cv_path_TR
5292 if test -n "$TR"; then
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
5294 $as_echo "$TR" >&6; }
5295 else
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299 
5300 
5301 
5302     # Test that variable TR is not empty.
5303     if test "" = "$TR"; then as_fn_error $? "Could not find tr !" "$LINENO" 5 ; fi
5304 
5305 # Extract the first word of "touch", so it can be a program name with args.
5306 set dummy touch; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_path_TOUCH+set}" = set; then :
5310   $as_echo_n "(cached) " >&6
5311 else
5312   case $TOUCH in
5313   [\\/]* | ?:[\\/]*)
5314   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5315   ;;
5316   *)
5317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320   IFS=$as_save_IFS
5321   test -z "$as_dir" && as_dir=.
5322     for ac_exec_ext in '' $ac_executable_extensions; do
5323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326     break 2
5327   fi
5328 done
5329   done
5330 IFS=$as_save_IFS
5331 
5332   ;;
5333 esac
5334 fi
5335 TOUCH=$ac_cv_path_TOUCH
5336 if test -n "$TOUCH"; then
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5338 $as_echo "$TOUCH" >&6; }
5339 else
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343 
5344 
5345 
5346     # Test that variable TOUCH is not empty.
5347     if test "" = "$TOUCH"; then as_fn_error $? "Could not find touch !" "$LINENO" 5 ; fi
5348 
5349 # Extract the first word of "wc", so it can be a program name with args.
5350 set dummy wc; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_path_WC+set}" = set; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356   case $WC in
5357   [\\/]* | ?:[\\/]*)
5358   ac_cv_path_WC="$WC" # Let the user override the test with a path.
5359   ;;
5360   *)
5361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5363 do
5364   IFS=$as_save_IFS
5365   test -z "$as_dir" && as_dir=.
5366     for ac_exec_ext in '' $ac_executable_extensions; do
5367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370     break 2
5371   fi
5372 done
5373   done
5374 IFS=$as_save_IFS
5375 
5376   ;;
5377 esac
5378 fi
5379 WC=$ac_cv_path_WC
5380 if test -n "$WC"; then
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
5382 $as_echo "$WC" >&6; }
5383 else
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387 
5388 
5389 
5390     # Test that variable WC is not empty.
5391     if test "" = "$WC"; then as_fn_error $? "Could not find wc !" "$LINENO" 5 ; fi
5392 
5393 # Extract the first word of "xargs", so it can be a program name with args.
5394 set dummy xargs; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_path_XARGS+set}" = set; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   case $XARGS in
5401   [\\/]* | ?:[\\/]*)
5402   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5403   ;;
5404   *)
5405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408   IFS=$as_save_IFS
5409   test -z "$as_dir" && as_dir=.
5410     for ac_exec_ext in '' $ac_executable_extensions; do
5411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414     break 2
5415   fi
5416 done
5417   done
5418 IFS=$as_save_IFS
5419 
5420   ;;
5421 esac
5422 fi
5423 XARGS=$ac_cv_path_XARGS
5424 if test -n "$XARGS"; then
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
5426 $as_echo "$XARGS" >&6; }
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431 
5432 
5433 
5434     # Test that variable XARGS is not empty.
5435     if test "" = "$XARGS"; then as_fn_error $? "Could not find xargs !" "$LINENO" 5 ; fi
5436 
5437 # Extract the first word of "zip", so it can be a program name with args.
5438 set dummy zip; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if test "${ac_cv_path_ZIP+set}" = set; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   case $ZIP in
5445   [\\/]* | ?:[\\/]*)
5446   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5447   ;;
5448   *)
5449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5451 do
5452   IFS=$as_save_IFS
5453   test -z "$as_dir" && as_dir=.
5454     for ac_exec_ext in '' $ac_executable_extensions; do
5455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458     break 2
5459   fi
5460 done
5461   done
5462 IFS=$as_save_IFS
5463 
5464   ;;
5465 esac
5466 fi
5467 ZIP=$ac_cv_path_ZIP
5468 if test -n "$ZIP"; then
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5470 $as_echo "$ZIP" >&6; }
5471 else
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474 fi
5475 
5476 
5477 
5478     # Test that variable ZIP is not empty.
5479     if test "" = "$ZIP"; then as_fn_error $? "Could not find zip !" "$LINENO" 5 ; fi
5480 
5481 # Extract the first word of "unzip", so it can be a program name with args.
5482 set dummy unzip; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if test "${ac_cv_path_UNZIP+set}" = set; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   case $UNZIP in
5489   [\\/]* | ?:[\\/]*)
5490   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5491   ;;
5492   *)
5493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498     for ac_exec_ext in '' $ac_executable_extensions; do
5499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505   done
5506 IFS=$as_save_IFS
5507 
5508   ;;
5509 esac
5510 fi
5511 UNZIP=$ac_cv_path_UNZIP
5512 if test -n "$UNZIP"; then
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5514 $as_echo "$UNZIP" >&6; }
5515 else
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519 
5520 
5521 
5522     # Test that variable UNZIP is not empty.
5523     if test "" = "$UNZIP"; then as_fn_error $? "Could not find unzip !" "$LINENO" 5 ; fi
5524 
5525 # Extract the first word of "ldd", so it can be a program name with args.
5526 set dummy ldd; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if test "${ac_cv_path_LDD+set}" = set; then :
5530   $as_echo_n "(cached) " >&6
5531 else
5532   case $LDD in
5533   [\\/]* | ?:[\\/]*)
5534   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
5535   ;;
5536   *)
5537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540   IFS=$as_save_IFS
5541   test -z "$as_dir" && as_dir=.
5542     for ac_exec_ext in '' $ac_executable_extensions; do
5543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
5545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546     break 2
5547   fi
5548 done
5549   done
5550 IFS=$as_save_IFS
5551 
5552   ;;
5553 esac
5554 fi
5555 LDD=$ac_cv_path_LDD
5556 if test -n "$LDD"; then
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
5558 $as_echo "$LDD" >&6; }
5559 else
5560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 fi
5563 
5564 
5565 if test "x$LDD" = "x"; then
5566     # List shared lib dependencies is used for
5567     # debug output and checking for forbidden dependencies.
5568     # We can build without it.
5569     LDD="true"
5570 fi
5571 # Extract the first word of "otool", so it can be a program name with args.
5572 set dummy otool; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if test "${ac_cv_path_OTOOL+set}" = set; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   case $OTOOL in
5579   [\\/]* | ?:[\\/]*)
5580   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
5581   ;;
5582   *)
5583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5585 do
5586   IFS=$as_save_IFS
5587   test -z "$as_dir" && as_dir=.
5588     for ac_exec_ext in '' $ac_executable_extensions; do
5589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
5591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592     break 2
5593   fi
5594 done
5595   done
5596 IFS=$as_save_IFS
5597 
5598   ;;
5599 esac
5600 fi
5601 OTOOL=$ac_cv_path_OTOOL
5602 if test -n "$OTOOL"; then
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5604 $as_echo "$OTOOL" >&6; }
5605 else
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609 
5610 
5611 if test "x$OTOOL" = "x"; then
5612    OTOOL="true"
5613 fi
5614 # Extract the first word of "readelf", so it can be a program name with args.
5615 set dummy readelf; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_path_READELF+set}" = set; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   case $READELF in
5622   [\\/]* | ?:[\\/]*)
5623   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
5624   ;;
5625   *)
5626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638   done
5639 IFS=$as_save_IFS
5640 
5641   ;;
5642 esac
5643 fi
5644 READELF=$ac_cv_path_READELF
5645 if test -n "$READELF"; then
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5647 $as_echo "$READELF" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652 
5653 
5654 # Extract the first word of "expr", so it can be a program name with args.
5655 set dummy expr; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if test "${ac_cv_path_EXPR+set}" = set; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661   case $EXPR in
5662   [\\/]* | ?:[\\/]*)
5663   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
5664   ;;
5665   *)
5666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671     for ac_exec_ext in '' $ac_executable_extensions; do
5672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
5674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678   done
5679 IFS=$as_save_IFS
5680 
5681   ;;
5682 esac
5683 fi
5684 EXPR=$ac_cv_path_EXPR
5685 if test -n "$EXPR"; then
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
5687 $as_echo "$EXPR" >&6; }
5688 else
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692 
5693 
5694 
5695     # Test that variable EXPR is not empty.
5696     if test "" = "$EXPR"; then as_fn_error $? "Could not find expr !" "$LINENO" 5 ; fi
5697 
5698 # Extract the first word of "file", so it can be a program name with args.
5699 set dummy file; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if test "${ac_cv_path_FILE+set}" = set; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   case $FILE in
5706   [\\/]* | ?:[\\/]*)
5707   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
5708   ;;
5709   *)
5710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713   IFS=$as_save_IFS
5714   test -z "$as_dir" && as_dir=.
5715     for ac_exec_ext in '' $ac_executable_extensions; do
5716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
5718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719     break 2
5720   fi
5721 done
5722   done
5723 IFS=$as_save_IFS
5724 
5725   ;;
5726 esac
5727 fi
5728 FILE=$ac_cv_path_FILE
5729 if test -n "$FILE"; then
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
5731 $as_echo "$FILE" >&6; }
5732 else
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736 
5737 
5738 
5739     # Test that variable FILE is not empty.
5740     if test "" = "$FILE"; then as_fn_error $? "Could not find file !" "$LINENO" 5 ; fi
5741 
5742 # Extract the first word of "hg", so it can be a program name with args.
5743 set dummy hg; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if test "${ac_cv_path_HG+set}" = set; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   case $HG in
5750   [\\/]* | ?:[\\/]*)
5751   ac_cv_path_HG="$HG" # Let the user override the test with a path.
5752   ;;
5753   *)
5754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757   IFS=$as_save_IFS
5758   test -z "$as_dir" && as_dir=.
5759     for ac_exec_ext in '' $ac_executable_extensions; do
5760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5761     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
5762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763     break 2
5764   fi
5765 done
5766   done
5767 IFS=$as_save_IFS
5768 
5769   ;;
5770 esac
5771 fi
5772 HG=$ac_cv_path_HG
5773 if test -n "$HG"; then
5774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
5775 $as_echo "$HG" >&6; }
5776 else
5777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780 
5781 
5782 
5783 
5784 # Setup builddeps, for automatic downloading of tools we need.
5785 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
5786 # boot-jdk setup, but we need to have basic tools setup first.
5787 
5788 
5789 # Check whether --with-builddeps-conf was given.
5790 if test "${with_builddeps_conf+set}" = set; then :
5791   withval=$with_builddeps_conf;
5792 fi
5793 
5794 
5795 
5796 # Check whether --with-builddeps-server was given.
5797 if test "${with_builddeps_server+set}" = set; then :
5798   withval=$with_builddeps_server;
5799 fi
5800 
5801 
5802 
5803 # Check whether --with-builddeps-dir was given.
5804 if test "${with_builddeps_dir+set}" = set; then :
5805   withval=$with_builddeps_dir;
5806 else
5807   with_builddeps_dir=/localhome/builddeps
5808 fi
5809 
5810 
5811 
5812 # Check whether --with-builddeps-group was given.
5813 if test "${with_builddeps_group+set}" = set; then :
5814   withval=$with_builddeps_group;
5815 fi
5816 
5817 
5818 # Check whether --enable-list-builddeps was given.
5819 if test "${enable_list_builddeps+set}" = set; then :
5820   enableval=$enable_list_builddeps; LIST_BUILDDEPS="${enableval}"
5821 else
5822   LIST_BUILDDEPS='no'
5823 fi
5824 
5825 
5826 if test "x$LIST_BUILDDEPS" = xyes; then
5827     echo
5828     echo List of build dependencies known to the configure script,
5829     echo that can be used in builddeps.conf files:
5830     cat $AUTOCONF_DIR/*.ac $AUTOCONF_DIR/*.m4 | grep BDEPS_CHECK_MODULE\( | cut -f 2 -d ',' | tr -d ' ' | sort
5831     echo
5832     exit 1
5833 fi
5834 
5835 
5836 
5837     if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
5838         if test "x$with_builddeps_conf" != x; then
5839             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
5840 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
5841             builddepsfile=$with_builddeps_conf
5842             if test -s $builddepsfile; then
5843                 . $builddepsfile
5844                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
5845 $as_echo "loaded!" >&6; }
5846             else
5847                as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
5848            fi
5849         else
5850             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
5851 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
5852             builddepsfile=`mktemp`
5853             touch $builddepsfile
5854             # Put all found confs into a single file.
5855             find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
5856             # Source the file to acquire the variables
5857             if test -s $builddepsfile; then
5858                 . $builddepsfile
5859                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
5860 $as_echo "found at least one!" >&6; }
5861             else
5862                as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
5863            fi
5864         fi
5865         # Create build and target names that use _ instead of "-" and ".".
5866         # This is necessary to use them in variable names.
5867         build_var=`echo ${OPENJDK_BUILD_SYSTEM} | tr '-' '_' | tr '.' '_'`
5868         target_var=`echo ${OPENJDK_TARGET_SYSTEM} | tr '-' '_' | tr '.' '_'`
5869         # Extract rewrite information for build and target
5870         eval rewritten_build=\${REWRITE_${build_var}}
5871         if test "x$rewritten_build" = x; then
5872             rewritten_build=${OPENJDK_BUILD_SYSTEM}
5873             echo Build stays the same $rewritten_build
5874         else
5875             echo Rewriting build for builddeps into $rewritten_build
5876         fi
5877         eval rewritten_target=\${REWRITE_${target_var}}
5878         if test "x$rewritten_target" = x; then
5879             rewritten_target=${OPENJDK_TARGET_SYSTEM}
5880             echo Target stays the same $rewritten_target
5881         else
5882             echo Rewriting target for builddeps into $rewritten_target
5883         fi
5884         rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
5885         rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
5886     fi
5887     for ac_prog in 7z unzip
5888 do
5889   # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
5894   $as_echo_n "(cached) " >&6
5895 else
5896   if test -n "$BDEPS_UNZIP"; then
5897   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904     for ac_exec_ext in '' $ac_executable_extensions; do
5905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
5907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911   done
5912 IFS=$as_save_IFS
5913 
5914 fi
5915 fi
5916 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
5917 if test -n "$BDEPS_UNZIP"; then
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
5919 $as_echo "$BDEPS_UNZIP" >&6; }
5920 else
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924 
5925 
5926   test -n "$BDEPS_UNZIP" && break
5927 done
5928 
5929     if test "x$BDEPS_UNZIP" = x7z; then
5930         BDEPS_UNZIP="7z x"
5931     fi
5932 
5933     for ac_prog in wget lftp ftp
5934 do
5935   # Extract the first word of "$ac_prog", so it can be a program name with args.
5936 set dummy $ac_prog; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
5940   $as_echo_n "(cached) " >&6
5941 else
5942   if test -n "$BDEPS_FTP"; then
5943   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948   IFS=$as_save_IFS
5949   test -z "$as_dir" && as_dir=.
5950     for ac_exec_ext in '' $ac_executable_extensions; do
5951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952     ac_cv_prog_BDEPS_FTP="$ac_prog"
5953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954     break 2
5955   fi
5956 done
5957   done
5958 IFS=$as_save_IFS
5959 
5960 fi
5961 fi
5962 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
5963 if test -n "$BDEPS_FTP"; then
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
5965 $as_echo "$BDEPS_FTP" >&6; }
5966 else
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5969 fi
5970 
5971 
5972   test -n "$BDEPS_FTP" && break
5973 done
5974 
5975 
5976 
5977 # Check if pkg-config is available.
5978 
5979 
5980 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5981         if test -n "$ac_tool_prefix"; then
5982   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   case $PKG_CONFIG in
5990   [\\/]* | ?:[\\/]*)
5991   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5992   ;;
5993   *)
5994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999     for ac_exec_ext in '' $ac_executable_extensions; do
6000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006   done
6007 IFS=$as_save_IFS
6008 
6009   ;;
6010 esac
6011 fi
6012 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6013 if test -n "$PKG_CONFIG"; then
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6015 $as_echo "$PKG_CONFIG" >&6; }
6016 else
6017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6019 fi
6020 
6021 
6022 fi
6023 if test -z "$ac_cv_path_PKG_CONFIG"; then
6024   ac_pt_PKG_CONFIG=$PKG_CONFIG
6025   # Extract the first word of "pkg-config", so it can be a program name with args.
6026 set dummy pkg-config; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   case $ac_pt_PKG_CONFIG in
6033   [\\/]* | ?:[\\/]*)
6034   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6035   ;;
6036   *)
6037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042     for ac_exec_ext in '' $ac_executable_extensions; do
6043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049   done
6050 IFS=$as_save_IFS
6051 
6052   ;;
6053 esac
6054 fi
6055 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6056 if test -n "$ac_pt_PKG_CONFIG"; then
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6058 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6059 else
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063 
6064   if test "x$ac_pt_PKG_CONFIG" = x; then
6065     PKG_CONFIG=""
6066   else
6067     case $cross_compiling:$ac_tool_warned in
6068 yes:)
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6071 ac_tool_warned=yes ;;
6072 esac
6073     PKG_CONFIG=$ac_pt_PKG_CONFIG
6074   fi
6075 else
6076   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6077 fi
6078 
6079 fi
6080 if test -n "$PKG_CONFIG"; then
6081         _pkg_min_version=0.9.0
6082         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6083 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6084         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6085                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6086 $as_echo "yes" >&6; }
6087         else
6088                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090                 PKG_CONFIG=""
6091         fi
6092 
6093 fi
6094 
6095 ###############################################################################
6096 #
6097 # Determine OpenJDK build and target platforms.
6098 #
6099 ###############################################################################
6100 
6101 # Make sure we can run config.sub.
6102 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6103   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6104 
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6106 $as_echo_n "checking build system type... " >&6; }
6107 if test "${ac_cv_build+set}" = set; then :
6108   $as_echo_n "(cached) " >&6
6109 else
6110   ac_build_alias=$build_alias
6111 test "x$ac_build_alias" = x &&
6112   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6113 test "x$ac_build_alias" = x &&
6114   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6115 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6116   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6117 
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6120 $as_echo "$ac_cv_build" >&6; }
6121 case $ac_cv_build in
6122 *-*-*) ;;
6123 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
6124 esac
6125 build=$ac_cv_build
6126 ac_save_IFS=$IFS; IFS='-'
6127 set x $ac_cv_build
6128 shift
6129 build_cpu=$1
6130 build_vendor=$2
6131 shift; shift
6132 # Remember, the first character of IFS is used to create $*,
6133 # except with old shells:
6134 build_os=$*
6135 IFS=$ac_save_IFS
6136 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6137 
6138 
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6140 $as_echo_n "checking host system type... " >&6; }
6141 if test "${ac_cv_host+set}" = set; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   if test "x$host_alias" = x; then
6145   ac_cv_host=$ac_cv_build
6146 else
6147   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6148     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6149 fi
6150 
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6153 $as_echo "$ac_cv_host" >&6; }
6154 case $ac_cv_host in
6155 *-*-*) ;;
6156 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
6157 esac
6158 host=$ac_cv_host
6159 ac_save_IFS=$IFS; IFS='-'
6160 set x $ac_cv_host
6161 shift
6162 host_cpu=$1
6163 host_vendor=$2
6164 shift; shift
6165 # Remember, the first character of IFS is used to create $*,
6166 # except with old shells:
6167 host_os=$*
6168 IFS=$ac_save_IFS
6169 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6170 
6171 
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6173 $as_echo_n "checking target system type... " >&6; }
6174 if test "${ac_cv_target+set}" = set; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   if test "x$target_alias" = x; then
6178   ac_cv_target=$ac_cv_host
6179 else
6180   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6181     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6182 fi
6183 
6184 fi
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6186 $as_echo "$ac_cv_target" >&6; }
6187 case $ac_cv_target in
6188 *-*-*) ;;
6189 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
6190 esac
6191 target=$ac_cv_target
6192 ac_save_IFS=$IFS; IFS='-'
6193 set x $ac_cv_target
6194 shift
6195 target_cpu=$1
6196 target_vendor=$2
6197 shift; shift
6198 # Remember, the first character of IFS is used to create $*,
6199 # except with old shells:
6200 target_os=$*
6201 IFS=$ac_save_IFS
6202 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6203 
6204 
6205 # The aliases save the names the user supplied, while $host etc.
6206 # will get canonicalized.
6207 test -n "$target_alias" &&
6208   test "$program_prefix$program_suffix$program_transform_name" = \
6209     NONENONEs,x,x, &&
6210   program_prefix=${target_alias}-
6211 
6212 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
6213 # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
6214 # product you're building. The target of this build is called "host". Since this is confusing to most people, we
6215 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
6216 # to use the configure naming style.
6217 
6218 
6219 
6220 
6221 
6222 # Check whether --with-target-bits was given.
6223 if test "${with_target_bits+set}" = set; then :
6224   withval=$with_target_bits;
6225 fi
6226 
6227 
6228 if test "x$with_target_bits" != x && \
6229    test "x$with_target_bits" != x32 && \
6230    test "x$with_target_bits" != x64 ; then
6231     as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
6232 fi
6233 # Translate the standard cpu-vendor-kernel-os quadruplets into
6234 # the new TARGET_.... and BUILD_... and the legacy names used by
6235 # the openjdk build.
6236 # It uses $host_os $host_cpu $build_os $build_cpu and $with_target_bits
6237 
6238     # Expects $host_os $host_cpu $build_os and $build_cpu
6239     # and $with_target_bits to have been setup!
6240     #
6241     # Translate the standard triplet(quadruplet) definition
6242     # of the target/build system into
6243     # OPENJDK_TARGET_OS=aix,bsd,hpux,linux,macosx,solaris,windows
6244     # OPENJDK_TARGET_OS_FAMILY=bsd,gnu,sysv,win32,wince
6245     # OPENJDK_TARGET_OS_API=posix,winapi
6246     #
6247     # OPENJDK_TARGET_CPU=ia32,x64,sparc,sparcv9,arm,arm64,ppc,ppc64
6248     # OPENJDK_TARGET_CPU_ARCH=x86,sparc,pcc,arm
6249     # OPENJDK_TARGET_CPU_BITS=32,64
6250     # OPENJDK_TARGET_CPU_ENDIAN=big,little
6251     #
6252     # The same values are setup for BUILD_...
6253     #
6254     # And the legacy variables, for controlling the old makefiles.
6255     # LEGACY_OPENJDK_TARGET_CPU1=i586,amd64/x86_64,sparc,sparcv9,arm,arm64...
6256     # LEGACY_OPENJDK_TARGET_CPU2=i386,amd64,sparc,sparcv9,arm,arm64...
6257     # LEGACY_OPENJDK_TARGET_CPU3=sparcv9,amd64 (but only on solaris)
6258     # LEGACY_OPENJDK_TARGET_OS_API=solaris,windows
6259     #
6260     # We also copy the autoconf trip/quadruplet
6261     # verbatim to OPENJDK_TARGET_SYSTEM (from the autoconf "host") and OPENJDK_BUILD_SYSTEM
6262     OPENJDK_TARGET_SYSTEM="$host"
6263     OPENJDK_BUILD_SYSTEM="$build"
6264 
6265 
6266 
6267 
6268 
6269   case "$host_os" in
6270     *linux*)
6271       VAR_OS=linux
6272       VAR_OS_API=posix
6273       VAR_OS_FAMILY=gnu
6274       ;;
6275     *solaris*)
6276       VAR_OS=solaris
6277       VAR_OS_API=posix
6278       VAR_OS_FAMILY=sysv
6279       ;;
6280     *darwin*)
6281       VAR_OS=macosx
6282       VAR_OS_API=posix
6283       VAR_OS_FAMILY=bsd
6284       ;;
6285     *bsd*)
6286       VAR_OS=bsd
6287       VAR_OS_API=posix
6288       VAR_OS_FAMILY=bsd
6289       ;;
6290     *cygwin*|*windows*)
6291       VAR_OS=windows
6292       VAR_OS_API=winapi
6293       VAR_OS_FAMILY=windows
6294       ;;
6295     *)
6296       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
6297       ;;
6298   esac
6299 
6300     OPENJDK_TARGET_OS="$VAR_OS"
6301     OPENJDK_TARGET_OS_FAMILY="$VAR_OS_FAMILY"
6302     OPENJDK_TARGET_OS_API="$VAR_OS_API"
6303 
6304 
6305 
6306 
6307 
6308     if test "x$OPENJDK_TARGET_OS_API" = xposix; then
6309         LEGACY_OPENJDK_TARGET_OS_API="solaris"
6310     fi
6311     if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
6312         LEGACY_OPENJDK_TARGET_OS_API="windows"
6313     fi
6314 
6315 
6316 
6317 
6318   # First argument is the cpu name from the trip/quad
6319   case "$host_cpu" in
6320     x86_64)
6321       VAR_CPU=x64
6322       VAR_CPU_ARCH=x86
6323       VAR_CPU_BITS=64
6324       VAR_CPU_ENDIAN=little
6325       VAR_LEGACY_CPU=amd64
6326       ;;
6327     i?86)
6328       VAR_CPU=ia32
6329       VAR_CPU_ARCH=x86
6330       VAR_CPU_BITS=32
6331       VAR_CPU_ENDIAN=little
6332       VAR_LEGACY_CPU=i586
6333       ;;
6334     alpha*)
6335       VAR_CPU=alpha
6336       VAR_CPU_ARCH=alpha
6337       VAR_CPU_BITS=64
6338       VAR_CPU_ENDIAN=big
6339       VAR_LEGACY_CPU=alpha
6340       ;;
6341     arm*)
6342       VAR_CPU=arm
6343       VAR_CPU_ARCH=arm
6344       VAR_CPU_BITS=32
6345       VAR_CPU_ENDIAN=little
6346       VAR_LEGACY_CPU=arm
6347       ;;
6348     mips)
6349       VAR_CPU=mips
6350       VAR_CPU_ARCH=mips
6351       VAR_CPU_BITS=woot
6352       VAR_CPU_ENDIAN=woot
6353       VAR_LEGACY_CPU=mips
6354        ;;
6355     mipsel)
6356       VAR_CPU=mipsel
6357       VAR_CPU_ARCH=mips
6358       VAR_CPU_BITS=woot
6359       VAR_CPU_ENDIAN=woot
6360       VAR_LEGACY_CPU=mipsel
6361        ;;
6362     powerpc)
6363       VAR_CPU=ppc
6364       VAR_CPU_ARCH=ppc
6365       VAR_CPU_BITS=32
6366       VAR_CPU_ENDIAN=big
6367       VAR_LEGACY_CPU=ppc
6368        ;;
6369     powerpc64)
6370       VAR_CPU=ppc64
6371       VAR_CPU_ARCH=ppc
6372       VAR_CPU_BITS=64
6373       VAR_CPU_ENDIAN=big
6374       VAR_LEGACY_CPU=ppc64
6375        ;;
6376     sparc)
6377       VAR_CPU=sparc
6378       VAR_CPU_ARCH=sparc
6379       VAR_CPU_BITS=32
6380       VAR_CPU_ENDIAN=big
6381       VAR_LEGACY_CPU=sparc
6382        ;;
6383     sparc64)
6384       VAR_CPU=sparcv9
6385       VAR_CPU_ARCH=sparc
6386       VAR_CPU_BITS=64
6387       VAR_CPU_ENDIAN=big
6388       VAR_LEGACY_CPU=sparcv9
6389        ;;
6390     s390)
6391       VAR_CPU=s390
6392       VAR_CPU_ARCH=s390
6393       VAR_CPU_BITS=32
6394       VAR_CPU_ENDIAN=woot
6395       VAR_LEGACY_CPU=s390
6396       VAR_LEGACY_CPU=s390
6397        ;;
6398     s390x)
6399       VAR_CPU=s390x
6400       VAR_CPU_ARCH=s390
6401       VAR_CPU_BITS=64
6402       VAR_CPU_ENDIAN=woot
6403       VAR_LEGACY_CPU=s390x
6404        ;;
6405     *)
6406       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
6407       ;;
6408   esac
6409 
6410   # Workaround cygwin not knowing about 64 bit.
6411   if test "x$VAR_OS" = "xwindows"; then
6412       if test "x$PROCESSOR_IDENTIFIER" != "x"; then
6413           PROC_ARCH=`echo $PROCESSOR_IDENTIFIER | $CUT -f1 -d' '`
6414           case "$PROC_ARCH" in
6415             intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
6416               VAR_CPU=x64
6417               VAR_CPU_BITS=64
6418               VAR_LEGACY_CPU=amd64
6419               ;;
6420           esac
6421       fi
6422   fi
6423 
6424   # on solaris x86...default seems to be 32-bit
6425   if test "x$VAR_OS" = "xsolaris" && \
6426      test "x$with_target_bits" = "x" && \
6427      test "x$VAR_CPU_ARCH" = "xx86"
6428   then
6429       with_target_bits=32
6430   fi
6431 
6432   if test "x$VAR_CPU_ARCH" = "xx86"; then
6433       if test "x$with_target_bits" = "x64"; then
6434           VAR_CPU=x64
6435           VAR_CPU_BITS=64
6436           VAR_LEGACY_CPU=amd64
6437       fi
6438       if test "x$with_target_bits" = "x32"; then
6439           VAR_CPU=ia32
6440           VAR_CPU_BITS=32
6441           VAR_LEGACY_CPU=i586
6442       fi
6443   fi
6444 
6445   if test "x$VAR_CPU_ARCH" = "xsparc"; then
6446       if test "x$with_target_bits" = "x64"; then
6447           VAR_CPU=sparcv9
6448           VAR_CPU_BITS=64
6449           VAR_LEGACY_CPU=sparcv9
6450       fi
6451   fi
6452 
6453     OPENJDK_TARGET_CPU="$VAR_CPU"
6454     OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
6455     OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
6456     OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
6457 
6458 
6459 
6460 
6461 
6462 
6463     # Also store the legacy naming of the cpu.
6464     # Ie i586 and amd64 instead of ia32 and x64
6465     LEGACY_OPENJDK_TARGET_CPU1="$VAR_LEGACY_CPU"
6466 
6467 
6468     # And the second legacy naming of the cpu.
6469     # Ie i386 and amd64 instead of ia32 and x64.
6470     LEGACY_OPENJDK_TARGET_CPU2="$LEGACY_OPENJDK_TARGET_CPU1"
6471     if test "x$LEGACY_OPENJDK_TARGET_CPU1" = xi586; then
6472         LEGACY_OPENJDK_TARGET_CPU2=i386
6473     fi
6474 
6475 
6476     # And the third legacy naming of the cpu.
6477     # Ie only amd64 or sparcv9, used for the ISA_DIR on Solaris.
6478     LEGACY_OPENJDK_TARGET_CPU3=""
6479     if test "x$OPENJDK_TARGET_CPU" = xx64; then
6480         LEGACY_OPENJDK_TARGET_CPU3=amd64
6481     fi
6482     if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
6483         LEGACY_OPENJDK_TARGET_CPU3=sparcv9
6484     fi
6485 
6486 
6487 
6488 
6489 
6490   case "$build_os" in
6491     *linux*)
6492       VAR_OS=linux
6493       VAR_OS_API=posix
6494       VAR_OS_FAMILY=gnu
6495       ;;
6496     *solaris*)
6497       VAR_OS=solaris
6498       VAR_OS_API=posix
6499       VAR_OS_FAMILY=sysv
6500       ;;
6501     *darwin*)
6502       VAR_OS=macosx
6503       VAR_OS_API=posix
6504       VAR_OS_FAMILY=bsd
6505       ;;
6506     *bsd*)
6507       VAR_OS=bsd
6508       VAR_OS_API=posix
6509       VAR_OS_FAMILY=bsd
6510       ;;
6511     *cygwin*|*windows*)
6512       VAR_OS=windows
6513       VAR_OS_API=winapi
6514       VAR_OS_FAMILY=windows
6515       ;;
6516     *)
6517       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
6518       ;;
6519   esac
6520 
6521     OPENJDK_BUILD_OS="$VAR_OS"
6522     OPENJDK_BUILD_OS_FAMILY="$VAR_OS_FAMILY"
6523     OPENJDK_BUILD_OS_API="$VAR_OS_API"
6524 
6525 
6526 
6527 
6528 
6529     if test "x$OPENJDK_BUILD_OS_API" = xposix; then
6530         LEGACY_OPENJDK_BUILD_OS_API="solaris"
6531     fi
6532     if test "x$OPENJDK_BUILD_OS_API" = xwinapi; then
6533         LEGACY_OPENJDK_BUILD_OS_API="windows"
6534     fi
6535 
6536 
6537 
6538 
6539   # First argument is the cpu name from the trip/quad
6540   case "$build_cpu" in
6541     x86_64)
6542       VAR_CPU=x64
6543       VAR_CPU_ARCH=x86
6544       VAR_CPU_BITS=64
6545       VAR_CPU_ENDIAN=little
6546       VAR_LEGACY_CPU=amd64
6547       ;;
6548     i?86)
6549       VAR_CPU=ia32
6550       VAR_CPU_ARCH=x86
6551       VAR_CPU_BITS=32
6552       VAR_CPU_ENDIAN=little
6553       VAR_LEGACY_CPU=i586
6554       ;;
6555     alpha*)
6556       VAR_CPU=alpha
6557       VAR_CPU_ARCH=alpha
6558       VAR_CPU_BITS=64
6559       VAR_CPU_ENDIAN=big
6560       VAR_LEGACY_CPU=alpha
6561       ;;
6562     arm*)
6563       VAR_CPU=arm
6564       VAR_CPU_ARCH=arm
6565       VAR_CPU_BITS=32
6566       VAR_CPU_ENDIAN=little
6567       VAR_LEGACY_CPU=arm
6568       ;;
6569     mips)
6570       VAR_CPU=mips
6571       VAR_CPU_ARCH=mips
6572       VAR_CPU_BITS=woot
6573       VAR_CPU_ENDIAN=woot
6574       VAR_LEGACY_CPU=mips
6575        ;;
6576     mipsel)
6577       VAR_CPU=mipsel
6578       VAR_CPU_ARCH=mips
6579       VAR_CPU_BITS=woot
6580       VAR_CPU_ENDIAN=woot
6581       VAR_LEGACY_CPU=mipsel
6582        ;;
6583     powerpc)
6584       VAR_CPU=ppc
6585       VAR_CPU_ARCH=ppc
6586       VAR_CPU_BITS=32
6587       VAR_CPU_ENDIAN=big
6588       VAR_LEGACY_CPU=ppc
6589        ;;
6590     powerpc64)
6591       VAR_CPU=ppc64
6592       VAR_CPU_ARCH=ppc
6593       VAR_CPU_BITS=64
6594       VAR_CPU_ENDIAN=big
6595       VAR_LEGACY_CPU=ppc64
6596        ;;
6597     sparc)
6598       VAR_CPU=sparc
6599       VAR_CPU_ARCH=sparc
6600       VAR_CPU_BITS=32
6601       VAR_CPU_ENDIAN=big
6602       VAR_LEGACY_CPU=sparc
6603        ;;
6604     sparc64)
6605       VAR_CPU=sparcv9
6606       VAR_CPU_ARCH=sparc
6607       VAR_CPU_BITS=64
6608       VAR_CPU_ENDIAN=big
6609       VAR_LEGACY_CPU=sparcv9
6610        ;;
6611     s390)
6612       VAR_CPU=s390
6613       VAR_CPU_ARCH=s390
6614       VAR_CPU_BITS=32
6615       VAR_CPU_ENDIAN=woot
6616       VAR_LEGACY_CPU=s390
6617       VAR_LEGACY_CPU=s390
6618        ;;
6619     s390x)
6620       VAR_CPU=s390x
6621       VAR_CPU_ARCH=s390
6622       VAR_CPU_BITS=64
6623       VAR_CPU_ENDIAN=woot
6624       VAR_LEGACY_CPU=s390x
6625        ;;
6626     *)
6627       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
6628       ;;
6629   esac
6630 
6631   # Workaround cygwin not knowing about 64 bit.
6632   if test "x$VAR_OS" = "xwindows"; then
6633       if test "x$PROCESSOR_IDENTIFIER" != "x"; then
6634           PROC_ARCH=`echo $PROCESSOR_IDENTIFIER | $CUT -f1 -d' '`
6635           case "$PROC_ARCH" in
6636             intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
6637               VAR_CPU=x64
6638               VAR_CPU_BITS=64
6639               VAR_LEGACY_CPU=amd64
6640               ;;
6641           esac
6642       fi
6643   fi
6644 
6645   # on solaris x86...default seems to be 32-bit
6646   if test "x$VAR_OS" = "xsolaris" && \
6647      test "x$with_target_bits" = "x" && \
6648      test "x$VAR_CPU_ARCH" = "xx86"
6649   then
6650       with_target_bits=32
6651   fi
6652 
6653   if test "x$VAR_CPU_ARCH" = "xx86"; then
6654       if test "x$with_target_bits" = "x64"; then
6655           VAR_CPU=x64
6656           VAR_CPU_BITS=64
6657           VAR_LEGACY_CPU=amd64
6658       fi
6659       if test "x$with_target_bits" = "x32"; then
6660           VAR_CPU=ia32
6661           VAR_CPU_BITS=32
6662           VAR_LEGACY_CPU=i586
6663       fi
6664   fi
6665 
6666   if test "x$VAR_CPU_ARCH" = "xsparc"; then
6667       if test "x$with_target_bits" = "x64"; then
6668           VAR_CPU=sparcv9
6669           VAR_CPU_BITS=64
6670           VAR_LEGACY_CPU=sparcv9
6671       fi
6672   fi
6673 
6674     OPENJDK_BUILD_CPU="$VAR_CPU"
6675     OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
6676     OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
6677     OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
6678 
6679 
6680 
6681 
6682 
6683 
6684     # Also store the legacy naming of the cpu.
6685     # Ie i586 and amd64 instead of ia32 and x64
6686     LEGACY_OPENJDK_BUILD_CPU1="$VAR_LEGACY_CPU"
6687 
6688 
6689     # And the second legacy naming of the cpu.
6690     # Ie i386 and amd64 instead of ia32 and x64.
6691     LEGACY_OPENJDK_BUILD_CPU2="$LEGACY_OPENJDK_BUILD_CPU1"
6692     if test "x$LEGACY_OPENJDK_BUILD_CPU1" = xi586; then
6693         LEGACY_OPENJDK_BUILD_CPU2=i386
6694     fi
6695 
6696 
6697     # And the third legacy naming of the cpu.
6698     # Ie only amd64 or sparcv9, used for the ISA_DIR on Solaris.
6699     LEGACY_OPENJDK_BUILD_CPU3=""
6700     if test "x$OPENJDK_BUILD_CPU" = xx64; then
6701         LEGACY_OPENJDK_BUILD_CPU3=amd64
6702     fi
6703     if test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
6704         LEGACY_OPENJDK_BUILD_CPU3=sparcv9
6705     fi
6706 
6707 
6708 
6709     if test "x$OPENJDK_TARGET_OS" != xsolaris; then
6710         LEGACY_OPENJDK_TARGET_CPU3=""
6711         LEGACY_OPENJDK_BUILD_CPU3=""
6712     fi
6713 
6714     # On MacOSX and MacOSX only, we have a different name for the x64 CPU in ARCH (LEGACY_OPENJDK_TARGET_CPU1) ...
6715     if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$OPENJDK_TARGET_CPU" = xx64; then
6716         LEGACY_OPENJDK_TARGET_CPU1="x86_64"
6717     fi
6718 
6719 
6720     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
6721        REQUIRED_OS_NAME=SunOS
6722        REQUIRED_OS_VERSION=5.10
6723     fi
6724     if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
6725        REQUIRED_OS_NAME=Linux
6726        REQUIRED_OS_VERSION=2.6
6727     fi
6728     if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
6729         REQUIRED_OS_NAME=Windows
6730         REQUIRED_OS_VERSION=5.1
6731     fi
6732     if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
6733         REQUIRED_OS_NAME=Darwin
6734         REQUIRED_OS_VERSION=11.2
6735     fi
6736 
6737 
6738 
6739 
6740 
6741 
6742 # The LEGACY_OPENJDK_TARGET_CPU3 is the setting for ISA_DIR.
6743 if test "x$LEGACY_OPENJDK_TARGET_CPU3" != x; then
6744    LEGACY_OPENJDK_TARGET_CPU3="/${LEGACY_OPENJDK_TARGET_CPU3}"
6745 fi
6746 
6747 # Now the following vars are defined.
6748 # OPENJDK_TARGET_OS=aix,bsd,hpux,linux,macosx,solaris,windows
6749 # OPENJDK_TARGET_OS_FAMILY=bsd,gnu,sysv,win32,wince
6750 # OPENJDK_TARGET_OS_API=posix,winapi
6751 #
6752 # OPENJDK_TARGET_CPU=ia32,x64,sparc,sparcv9,arm,arm64,ppc,ppc64
6753 # OPENJDK_TARGET_CPU_ARCH=x86,sparc,pcc,arm
6754 # OPENJDK_TARGET_CPU_BITS=32,64
6755 # OPENJDK_TARGET_CPU_ENDIAN=big,little
6756 #
6757 # There is also a:
6758 # LEGACY_OPENJDK_TARGET_CPU1=i586,amd64,....  # used to set the old var ARCH
6759 # LEGACY_OPENJDK_TARGET_CPU2=i386,amd64,.... # used to set the old var LIBARCH
6760 # LEGACY_OPENJDK_TARGET_CPU3=only sparcv9,amd64 # used to set the ISA_DIR on Solaris
6761 # There was also a BUILDARCH that had i486,amd64,... but we do not use that
6762 # in the new build.
6763 # LEGACY_OPENJDK_TARGET_OS_API=solaris,windows # used to select source roots
6764 
6765 
6766 ###############################################################################
6767 
6768 # Note that this is the build platform OS version!
6769 
6770 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
6771 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
6772 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
6773 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
6774 
6775 
6776 
6777 
6778 
6779 # With knowledge of the build platform, setup more basic things.
6780 
6781 # For cygwin we need cygpath first, since it is used everywhere.
6782 # Extract the first word of "cygpath", so it can be a program name with args.
6783 set dummy cygpath; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if test "${ac_cv_path_CYGPATH+set}" = set; then :
6787   $as_echo_n "(cached) " >&6
6788 else
6789   case $CYGPATH in
6790   [\\/]* | ?:[\\/]*)
6791   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6792   ;;
6793   *)
6794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799     for ac_exec_ext in '' $ac_executable_extensions; do
6800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806   done
6807 IFS=$as_save_IFS
6808 
6809   ;;
6810 esac
6811 fi
6812 CYGPATH=$ac_cv_path_CYGPATH
6813 if test -n "$CYGPATH"; then
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6815 $as_echo "$CYGPATH" >&6; }
6816 else
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820 
6821 
6822 PATH_SEP=":"
6823 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
6824     if test "x$CYGPATH" = x; then
6825         as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
6826     fi
6827     PATH_SEP=";"
6828 fi
6829 
6830 
6831 
6832 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
6833     # Add extra search paths on solaris for utilities like ar and as etc...
6834     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
6835 fi
6836 
6837 
6838 ###############################################################################
6839 #
6840 # Determine OpenJDK variants, options and version numbers.
6841 #
6842 ###############################################################################
6843 
6844 # We need build & target for this.
6845 
6846 ###############################################################################
6847 #
6848 # Check which variant of the JDK that we want to build.
6849 # Currently we have:
6850 #    normal:   standard edition
6851 #    embedded: cut down to a smaller footprint
6852 #
6853 # Effectively the JDK variant gives a name to a specific set of
6854 # modules to compile into the JDK. In the future, these modules
6855 # might even be Jigsaw modules.
6856 #
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
6858 $as_echo_n "checking which variant of the JDK to build... " >&6; }
6859 
6860 # Check whether --with-jdk-variant was given.
6861 if test "${with_jdk_variant+set}" = set; then :
6862   withval=$with_jdk_variant;
6863 fi
6864 
6865 
6866 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
6867     JAVASE_EMBEDDED=""
6868     MINIMIZE_RAM_USAGE=""
6869     JDK_VARIANT="normal"
6870 elif test "x$with_jdk_variant" = xembedded; then
6871     JAVASE_EMBEDDED="JAVASE_EMBEDDED:=true"
6872     MINIMIZE_RAM_USAGE="MINIMIZE_RAM_USAGE:=true"
6873     JDK_VARIANT="embedded"
6874 else
6875     as_fn_error $? "The available JDK variants are: normal, embedded" "$LINENO" 5
6876 fi
6877 
6878 
6879 
6880 
6881 
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
6883 $as_echo "$JDK_VARIANT" >&6; }
6884 
6885 
6886 
6887 ###############################################################################
6888 #
6889 # Check which variants of the JVM that we want to build.
6890 # Currently we have:
6891 #    server: normal interpreter and a tiered C1/C2 compiler
6892 #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
6893 #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
6894 #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
6895 #    zero: no machine code interpreter, no compiler
6896 #    zeroshark: zero interpreter and shark/llvm compiler backend
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM that should be built" >&5
6898 $as_echo_n "checking which variants of the JVM that should be built... " >&6; }
6899 
6900 # Check whether --with-jvm-variants was given.
6901 if test "${with_jvm_variants+set}" = set; then :
6902   withval=$with_jvm_variants;
6903 fi
6904 
6905 
6906 if test "x$with_jvm_variants" = x; then
6907     if test "x$JDK_VARIANT" = xembedded; then
6908         with_jvm_variants="client"
6909     else
6910         with_jvm_variants="server"
6911     fi
6912 fi
6913 
6914 JVM_VARIANTS=",$with_jvm_variants,"
6915 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//'`
6916 
6917 if test "x$TEST_VARIANTS" != "x,"; then
6918    as_fn_error $? "The available JVM variants are: server, client, kernel, zero, zeroshark" "$LINENO" 5
6919 fi
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
6921 $as_echo "$with_jvm_variants" >&6; }
6922 
6923 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
6924 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
6925 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
6926 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
6927 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
6928 
6929 if test "x$JVM_VARIANT_CLIENT" = xtrue; then
6930     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
6931         as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
6932     fi
6933 fi
6934 if test "x$JVM_VARIANT_KERNEL" = xtrue; then
6935     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
6936         as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
6937     fi
6938 fi
6939 
6940 # Replace the commas with AND for use in the build directory name.
6941 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/'`
6942 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/'`
6943 if test "x$COUNT_VARIANTS" != "x,1"; then
6944     BUILDING_MULTIPLE_JVM_VARIANTS=yes
6945 else
6946     BUILDING_MULTIPLE_JVM_VARIANTS=no
6947 fi
6948 
6949 
6950 
6951 
6952 
6953 
6954 
6955 
6956 
6957 
6958 
6959 ###############################################################################
6960 #
6961 # Set the debug level
6962 #    release: no debug information, all optimizations, no asserts.
6963 #    fastdebug: debug information (-g), all optimizations, all asserts
6964 #    slowdebug: debug information (-g), no optimizations, all asserts
6965 #
6966 DEBUG_LEVEL="release"
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
6968 $as_echo_n "checking which debug level to use... " >&6; }
6969 # Check whether --enable-debug was given.
6970 if test "${enable_debug+set}" = set; then :
6971   enableval=$enable_debug;
6972         ENABLE_DEBUG="${enableval}"
6973         DEBUG_LEVEL="fastdebug"
6974 
6975 else
6976   ENABLE_DEBUG="no"
6977 fi
6978 
6979 
6980 
6981 # Check whether --with-debug-level was given.
6982 if test "${with_debug_level+set}" = set; then :
6983   withval=$with_debug_level;
6984         DEBUG_LEVEL="${withval}"
6985         if test "x$ENABLE_DEBUG" = xyes; then
6986                         as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
6987         fi
6988 
6989 fi
6990 
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
6992 $as_echo "$DEBUG_LEVEL" >&6; }
6993 
6994 if test "x$DEBUG_LEVEL" != xrelease && \
6995    test "x$DEBUG_LEVEL" != xfastdebug && \
6996    test "x$DEBUG_LEVEL" != xslowdebug; then
6997    as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
6998 fi
6999 
7000 
7001 ###############################################################################
7002 #
7003 # Setup legacy vars/targets and new vars to deal with different debug levels.
7004 #
7005 
7006 case $DEBUG_LEVEL in
7007       release )
7008           VARIANT="OPT"
7009           FASTDEBUG="false"
7010           DEBUG_CLASSFILES="false"
7011           BUILD_VARIANT_RELEASE=""
7012           HOTSPOT_DEBUG_LEVEL="product"
7013           HOTSPOT_EXPORT="product"
7014            ;;
7015       fastdebug )
7016           VARIANT="DBG"
7017           FASTDEBUG="true"
7018           DEBUG_CLASSFILES="true"
7019           BUILD_VARIANT_RELEASE="-fastdebug"
7020           HOTSPOT_DEBUG_LEVEL="fastdebug"
7021           HOTSPOT_EXPORT="fastdebug"
7022            ;;
7023       slowdebug )
7024           VARIANT="DBG"
7025           FASTDEBUG="false"
7026           DEBUG_CLASSFILES="true"
7027           BUILD_VARIANT_RELEASE="-debug"
7028           HOTSPOT_DEBUG_LEVEL="jvmg"
7029           HOTSPOT_EXPORT="debug"
7030            ;;
7031 esac
7032 
7033 #####
7034 # Generate the legacy makefile targets for hotspot.
7035 # The hotspot api for selecting the build artifacts, really, needs to be improved.
7036 #
7037 HOTSPOT_TARGET=""
7038 
7039 if test "x$JVM_VARIANT_SERVER" = xtrue; then
7040     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
7041 fi
7042 
7043 if test "x$JVM_VARIANT_CLIENT" = xtrue; then
7044     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
7045 fi
7046 
7047 if test "x$JVM_VARIANT_KERNEL" = xtrue; then
7048     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
7049 fi
7050 
7051 if test "x$JVM_VARIANT_ZERO" = xtrue; then
7052     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
7053 fi
7054 
7055 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
7056     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
7057 fi
7058 
7059 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
7060 
7061 #####
7062 
7063 
7064 
7065 
7066 
7067 
7068 
7069 
7070 
7071 ###############################################################################
7072 #
7073 # Should we build only OpenJDK even if closed sources are present?
7074 #
7075 # Check whether --enable-openjdk-only was given.
7076 if test "${enable_openjdk_only+set}" = set; then :
7077   enableval=$enable_openjdk_only;
7078 fi
7079 
7080 
7081 if test "x$enable_openjdk_only" = "xyes"; then
7082     OPENJDK=true
7083 elif test "x$enable_openjdk_only" = "xno"; then
7084     OPENJDK=false
7085 elif test -d "$SRC_ROOT/jdk/src/closed"; then
7086     OPENJDK=false
7087 else
7088     OPENJDK=true
7089 fi
7090 
7091 if test "x$OPENJDK" = "xtrue"; then
7092     SET_OPENJDK=OPENJDK=true
7093 fi
7094 
7095 
7096 
7097 ###############################################################################
7098 #
7099 # JIGSAW or not.  The JIGSAW variable is used during the intermediate
7100 # stage when we are building both the old style JDK and the new style modularized JDK.
7101 # When the modularized JDK is finalized, this option will go away.
7102 #
7103 # Check whether --enable-jigsaw was given.
7104 if test "${enable_jigsaw+set}" = set; then :
7105   enableval=$enable_jigsaw;
7106 fi
7107 
7108 
7109 if test "x$enable_jigsaw" = "xyes"; then
7110     JIGSAW=true
7111 else
7112     JIGSAW=false
7113 fi
7114 
7115 
7116 ###############################################################################
7117 #
7118 # Should we build a JDK/JVM with headful support (ie a graphical ui)?
7119 # We always build headless support.
7120 #
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
7122 $as_echo_n "checking headful support... " >&6; }
7123 # Check whether --enable-headful was given.
7124 if test "${enable_headful+set}" = set; then :
7125   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
7126 else
7127   SUPPORT_HEADFUL=yes
7128 fi
7129 
7130 
7131 SUPPORT_HEADLESS=yes
7132 BUILD_HEADLESS="BUILD_HEADLESS:=true"
7133 
7134 if test "x$SUPPORT_HEADFUL" = xyes; then
7135     # We are building both headful and headless.
7136     BUILD_HEADLESS_ONLY=""
7137     headful_msg="inlude support for both headful and headless"
7138 fi
7139 
7140 if test "x$SUPPORT_HEADFUL" = xno; then
7141     # Thus we are building headless only.
7142     BUILD_HEADLESS="BUILD_HEADLESS:=true"
7143     BUILD_HEADLESS_ONLY="BUILD_HEADLESS_ONLY:=true"
7144     headful_msg="headless only"
7145 fi
7146 
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
7148 $as_echo "$headful_msg" >&6; }
7149 
7150 
7151 
7152 
7153 
7154 
7155 ###############################################################################
7156 #
7157 # Should we run the painfully slow javadoc tool?
7158 #
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
7160 $as_echo_n "checking whether to build documentation... " >&6; }
7161 # Check whether --enable-docs was given.
7162 if test "${enable_docs+set}" = set; then :
7163   enableval=$enable_docs; ENABLE_DOCS="${enableval}"
7164 else
7165   ENABLE_DOCS='no'
7166 fi
7167 
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DOCS" >&5
7169 $as_echo "$ENABLE_DOCS" >&6; }
7170 
7171 GENERATE_DOCS=false
7172 if test "x$ENABLE_DOCS" = xyes; then
7173     GENERATE_DOCS=true
7174 fi
7175 
7176 
7177 ###############################################################################
7178 #
7179 # Should we compile nimbus swing L&F? We can probably remove this option
7180 # since nimbus is officially part of javax now.
7181 #
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build nimbus L&F" >&5
7183 $as_echo_n "checking whether to build nimbus L&F... " >&6; }
7184 # Check whether --enable-nimbus was given.
7185 if test "${enable_nimbus+set}" = set; then :
7186   enableval=$enable_nimbus; ENABLE_NIMBUS="${enableval}"
7187 else
7188   ENABLE_NIMBUS='yes'
7189 fi
7190 
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_NIMBUS" >&5
7192 $as_echo "$ENABLE_NIMBUS" >&6; }
7193 DISABLE_NIMBUS=
7194 if test "x$ENABLE_NIMBUS" = xno; then
7195     DISABLE_NIMBUS=true
7196 fi
7197 
7198 
7199 # Control wether Hotspot runs Queens test after build.
7200 # Check whether --enable-hotspot-test-in-build was given.
7201 if test "${enable_hotspot_test_in_build+set}" = set; then :
7202   enableval=$enable_hotspot_test_in_build;
7203 else
7204   enable_hotspot_test_in_build=no
7205 fi
7206 
7207 if test "x$enable_hotspot_test_in_build" = "xyes"; then
7208     TEST_IN_BUILD=true
7209 else
7210     TEST_IN_BUILD=false
7211 fi
7212 
7213 
7214 ###############################################################################
7215 #
7216 # Choose cacerts source file
7217 #
7218 
7219 # Check whether --with-cacerts-file was given.
7220 if test "${with_cacerts_file+set}" = set; then :
7221   withval=$with_cacerts_file;
7222 fi
7223 
7224 if test "x$with_cacerts_file" != x; then
7225     CACERTS_FILE=$with_cacerts_file
7226 else
7227     if test "x$OPENJDK" = "xtrue"; then
7228         CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
7229     else
7230         CACERTS_FILE=${SRC_ROOT}/jdk/src/closed/share/lib/security/cacerts.internal
7231     fi
7232 fi
7233 
7234 
7235 ###############################################################################
7236 #
7237 # Compress jars
7238 #
7239 COMPRESS_JARS=false
7240 
7241 # default for embedded is yes...
7242 if test "x$JDK_VARIANT" = "xembedded"; then
7243    COMPRESS_JARS=true
7244 fi
7245 
7246 
7247 ###############################################################################
7248 #
7249 # Should we compile JFR
7250 #   default no, except for on closed-jdk and !embedded
7251 #
7252 ENABLE_JFR=no
7253 
7254 # Is the JFR source present
7255 
7256 #
7257 # For closed && !embedded default is yes if the source is present
7258 #
7259 if test "x${OPENJDK}" != "xtrue" && test "x$JDK_VARIANT" != "xembedded" && test -d "$SRC_ROOT/jdk/src/closed/share/native/oracle/jfr"; then
7260    ENABLE_JFR=yes
7261 fi
7262 
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build jfr" >&5
7264 $as_echo_n "checking whether to build jfr... " >&6; }
7265 # Check whether --enable-jfr was given.
7266 if test "${enable_jfr+set}" = set; then :
7267   enableval=$enable_jfr;
7268 fi
7269 
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_JFR}" >&5
7271 $as_echo "${ENABLE_JFR}" >&6; }
7272 
7273 if test "x$ENABLE_JFR" = "xyes"; then
7274     ENABLE_JFR=true
7275 elif test "x$ENABLE_JFR" = "xno"; then
7276     ENABLE_JFR=false
7277 else
7278    as_fn_error $? "Invalid argument to --enable-jfr" "$LINENO" 5
7279 fi
7280 
7281 
7282 
7283 
7284 # Source the version numbers
7285 . $AUTOCONF_DIR/version.numbers
7286 if test "x$OPENJDK" = "xfalse"; then
7287     . $AUTOCONF_DIR/closed.version.numbers
7288 fi
7289 # Now set the JDK version, milestone, build number etc.
7290 
7291 
7292 
7293 
7294 
7295 
7296 
7297 
7298 
7299 
7300 
7301 
7302 COPYRIGHT_YEAR=`date +'%Y'`
7303 
7304 
7305 RUNTIME_NAME="$PRODUCT_NAME $PRODUCT_SUFFIX"
7306 
7307 
7308 if test "x$JDK_UPDATE_VERSION" != x; then
7309     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
7310 else
7311     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
7312 fi
7313 
7314 
7315 if test "x$MILESTONE" != x; then
7316     RELEASE="${JDK_VERSION}-${MILESTONE}${BUILD_VARIANT_RELEASE}"
7317 else
7318     RELEASE="${JDK_VERSION}${BUILD_VARIANT_RELEASE}"
7319 fi
7320 
7321 
7322 if test "x$JDK_BUILD_NUMBER" != x; then
7323     FULL_VERSION="${RELEASE}-${JDK_BUILD_NUMBER}"
7324 else
7325     JDK_BUILD_NUMBER=b00
7326     BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
7327     # Avoid [:alnum:] since it depends on the locale.
7328     CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyz0123456789'`
7329     USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvqxyz'`
7330     FULL_VERSION="${RELEASE}-${USER_RELEASE_SUFFIX}-${JDK_BUILD_NUMBER}"
7331 fi
7332 
7333 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
7334 
7335 
7336 
7337 # To properly create a configuration name, we need to have the OpenJDK target
7338 # and options (variants and debug level) parsed.
7339 
7340 
7341 
7342 # Check whether --with-conf-name was given.
7343 if test "${with_conf_name+set}" = set; then :
7344   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
7345 fi
7346 
7347 
7348 # Test from where we are running configure, in or outside of src root.
7349 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" || test "x$CURDIR" = "x$SRC_ROOT/common/makefiles" ; then
7350     # We are running configure from the src root.
7351     # Create a default ./build/target-variant-debuglevel output root.
7352     if test "x${CONF_NAME}" = x; then
7353         CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
7354     fi
7355     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
7356     mkdir -p "$OUTPUT_ROOT"
7357     if test ! -d "$OUTPUT_ROOT"; then
7358         as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
7359     fi
7360 else
7361     # We are running configure from outside of the src dir.
7362     # Then use the current directory as output dir!
7363     # If configuration is situated in normal build directory, just use the build
7364     # directory name as configuration name, otherwise use the complete path.
7365     if test "x${CONF_NAME}" = x; then
7366         CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
7367     fi
7368     OUTPUT_ROOT="$CURDIR"
7369 fi
7370 
7371 
7372     # Fail with message the path to the output root if var OUTPUT_ROOT contains a path with no spaces in it.
7373     # Unless on Windows, where we can rewrite the path.
7374     HAS_SPACE=`echo "$OUTPUT_ROOT" | grep " "`
7375     if test "x$HAS_SPACE" != x; then
7376         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
7377             OUTPUT_ROOT=`$CYGPATH -s -m -a "$OUTPUT_ROOT"`
7378             OUTPUT_ROOT=`$CYGPATH -u "$OUTPUT_ROOT"`
7379         else
7380             as_fn_error $? "You cannot have spaces in the path to the output root! \"$OUTPUT_ROOT\"" "$LINENO" 5
7381         fi
7382     fi
7383 
7384 
7385 SPEC=$OUTPUT_ROOT/spec.gmk
7386 
7387 CONF_NAME=$CONF_NAME
7388 
7389 OUTPUT_ROOT=$OUTPUT_ROOT
7390 
7391 
7392 # Most of the probed defines are put into config.h
7393 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
7394 
7395 # The spec.gmk file contains all variables for the make system.
7396 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
7397 
7398 # The spec.sh file contains variables for compare{images|-objects}.sh scrips.
7399 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
7400 
7401 # The generated Makefile knows where the spec.gmk is and where the source is.
7402 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
7403 # which will look for generated configurations
7404 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
7405 
7406 
7407 # Save the arguments given to us
7408 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
7409 
7410 
7411 ###############################################################################
7412 #
7413 # Setup BootJDK, used to bootstrap the build.
7414 #
7415 ###############################################################################
7416 
7417 
7418 BOOT_JDK_FOUND=no
7419 
7420 # Check whether --with-boot-jdk was given.
7421 if test "${with_boot_jdk+set}" = set; then :
7422   withval=$with_boot_jdk;
7423 fi
7424 
7425 
7426 if test "x$with_boot_jdk" != x; then
7427     BOOT_JDK=$with_boot_jdk
7428     BOOT_JDK_FOUND=yes
7429 fi
7430 if test "x$BOOT_JDK_FOUND" = xno; then
7431 
7432 
7433     if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
7434         # Source the builddeps file again, to make sure it uses the latest variables!
7435         . $builddepsfile
7436         # Look for a target and build machine specific resource!
7437         eval resource=\${builddep_boot-jdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
7438         if test "x$resource" = x; then
7439             # Ok, lets instead look for a target specific resource
7440             eval resource=\${builddep_boot-jdk_TARGET_${rewritten_target_var}}
7441         fi
7442         if test "x$resource" = x; then
7443             # Ok, lets instead look for a build specific resource
7444             eval resource=\${builddep_boot-jdk_BUILD_${rewritten_build_var}}
7445         fi
7446         if test "x$resource" = x; then
7447             # Ok, lets instead look for a generic resource
7448             # (The boot-jdk comes from M4 and not the shell, thus no need for eval here.)
7449             resource=${builddep_boot-jdk}
7450         fi
7451         if test "x$resource" != x; then
7452             { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for boot-jdk" >&5
7453 $as_echo "$as_me: Using builddeps $resource for boot-jdk" >&6;}
7454             # If the resource in the builddeps.conf file is an existing directory,
7455             # for example /java/linux/cups
7456             if test -d ${resource}; then
7457                depdir=${resource}
7458             else
7459 
7460 # boot-jdk is for example mymodule
7461 # $resource is for example libs/general/libmymod_1_2_3.zip
7462 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
7463 # $with_builddeps_dir is for example /localhome/builddeps
7464 # depdir is the name of the variable into which we store the depdir, eg MYMOD
7465 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
7466 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
7467     filename=`basename $resource`
7468     filebase=`echo $filename | sed 's/\.[^\.]*$//'`
7469     filebase=${filename%%.*}
7470     extension=${filename#*.}
7471     installdir=$with_builddeps_dir/$filebase
7472     if test ! -f $installdir/$filename.unpacked; then
7473         { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency boot-jdk from $with_builddeps_server/$resource and installing into $installdir" >&5
7474 $as_echo "$as_me: Downloading build dependency boot-jdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
7475         if test ! -d $installdir; then
7476             mkdir -p $installdir
7477         fi
7478         if test ! -d $installdir; then
7479             as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
7480         fi
7481         tmpfile=`mktemp $installdir/boot-jdk.XXXXXXXXX`
7482         touch $tmpfile
7483         if test ! -f $tmpfile; then
7484             as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
7485         fi
7486 
7487     # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
7488     # $tmpfile is the local file name for the downloaded file.
7489     VALID_TOOL=no
7490     if test "x$BDEPS_FTP" = xwget; then
7491        VALID_TOOL=yes
7492        wget -O $tmpfile $with_builddeps_server/$resource
7493     fi
7494     if test "x$BDEPS_FTP" = xlftp; then
7495        VALID_TOOL=yes
7496        lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
7497     fi
7498     if test "x$BDEPS_FTP" = xftp; then
7499         VALID_TOOL=yes
7500         FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
7501         FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
7502         FTPUSERPWD=${FTPSERVER%%@*}
7503         if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
7504             FTPUSER=${userpwd%%:*}
7505             FTPPWD=${userpwd#*@}
7506             FTPSERVER=${FTPSERVER#*@}
7507         else
7508             FTPUSER=ftp
7509             FTPPWD=ftp
7510         fi
7511         # the "pass" command does not work on some
7512         # ftp clients (read ftp.exe) but if it works,
7513         # passive mode is better!
7514         (\
7515             echo "user $FTPUSER $FTPPWD"        ;\
7516             echo "pass"                         ;\
7517             echo "bin"                          ;\
7518             echo "get $FTPPATH $tmpfile"              ;\
7519         ) | ftp -in $FTPSERVER
7520     fi
7521     if test "x$VALID_TOOL" != xyes; then
7522        as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
7523     fi
7524 
7525         mv $tmpfile $installdir/$filename
7526         if test ! -s $installdir/$filename; then
7527             as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
7528         fi
7529         case "$extension" in
7530             zip)  echo "Unzipping $installdir/$filename..."
7531                (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
7532             ;;
7533             tar.gz) echo "Untaring $installdir/$filename..."
7534                (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
7535             ;;
7536             tgz) echo "Untaring $installdir/$filename..."
7537                (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
7538             ;;
7539             *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
7540             ;;
7541         esac
7542     fi
7543     if test -f $installdir/$filename.unpacked; then
7544         depdir=$installdir
7545     fi
7546 
7547             fi
7548             # Source the builddeps file again, because in the previous command, the depdir
7549             # was updated to point at the current build dependency install directory.
7550             . $builddepsfile
7551             # Now extract variables from the builddeps.conf files.
7552             theroot=${builddep_boot-jdk_ROOT}
7553             thecflags=${builddep_boot-jdk_CFLAGS}
7554             thelibs=${builddep_boot-jdk_LIBS}
7555             if test "x$depdir" = x; then
7556                 as_fn_error $? "Could not download build dependency boot-jdk" "$LINENO" 5
7557             fi
7558             BOOT_JDK=$depdir
7559             if test "x$theroot" != x; then
7560                BOOT_JDK="$theroot"
7561             fi
7562             if test "x$thecflags" != x; then
7563                BOOT_JDK_CFLAGS="$thecflags"
7564             fi
7565             if test "x$thelibs" != x; then
7566                BOOT_JDK_LIBS="$thelibs"
7567             fi
7568             BOOT_JDK_FOUND=yes
7569             else BOOT_JDK_FOUND=no
7570 
7571         fi
7572         else BOOT_JDK_FOUND=no
7573 
7574     fi
7575 
7576 fi
7577 
7578 if test "x$BOOT_JDK_FOUND" = xno; then
7579     if test "x$JAVA_HOME" != x; then
7580         if test ! -d "$JAVA_HOME"; then
7581             { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
7582 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
7583 
7584     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
7585 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
7586     as_fn_error $? "Cannot continue" "$LINENO" 5
7587 
7588         fi
7589         # Aha, the user has set a JAVA_HOME
7590         # let us use that as the Boot JDK.
7591         BOOT_JDK="$JAVA_HOME"
7592         BOOT_JDK_FOUND=yes
7593         # To be on the safe side, lets check that it is a JDK.
7594         if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
7595             JAVAC="$BOOT_JDK/bin/javac"
7596             JAVA="$BOOT_JDK/bin/java"
7597             BOOT_JDK_FOUND=yes
7598         else
7599             { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a JRE! The build needs a JDK! Please point JAVA_HOME to a JDK. JAVA_HOME=$JAVA_HOME" >&5
7600 $as_echo "$as_me: Your JAVA_HOME points to a JRE! The build needs a JDK! Please point JAVA_HOME to a JDK. JAVA_HOME=$JAVA_HOME" >&6;}
7601 
7602     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
7603 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
7604     as_fn_error $? "Cannot continue" "$LINENO" 5
7605 
7606         fi
7607     fi
7608 fi
7609 
7610 if test "x$BOOT_JDK_FOUND" = xno; then
7611     # Extract the first word of "javac", so it can be a program name with args.
7612 set dummy javac; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
7616   $as_echo_n "(cached) " >&6
7617 else
7618   case $JAVAC_CHECK in
7619   [\\/]* | ?:[\\/]*)
7620   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
7621   ;;
7622   *)
7623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626   IFS=$as_save_IFS
7627   test -z "$as_dir" && as_dir=.
7628     for ac_exec_ext in '' $ac_executable_extensions; do
7629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
7631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632     break 2
7633   fi
7634 done
7635   done
7636 IFS=$as_save_IFS
7637 
7638   ;;
7639 esac
7640 fi
7641 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
7642 if test -n "$JAVAC_CHECK"; then
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
7644 $as_echo "$JAVAC_CHECK" >&6; }
7645 else
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649 
7650 
7651     # Extract the first word of "java", so it can be a program name with args.
7652 set dummy java; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   case $JAVA_CHECK in
7659   [\\/]* | ?:[\\/]*)
7660   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
7661   ;;
7662   *)
7663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666   IFS=$as_save_IFS
7667   test -z "$as_dir" && as_dir=.
7668     for ac_exec_ext in '' $ac_executable_extensions; do
7669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
7671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672     break 2
7673   fi
7674 done
7675   done
7676 IFS=$as_save_IFS
7677 
7678   ;;
7679 esac
7680 fi
7681 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
7682 if test -n "$JAVA_CHECK"; then
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
7684 $as_echo "$JAVA_CHECK" >&6; }
7685 else
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689 
7690 
7691     BINARY="$JAVAC_CHECK"
7692     if test "x$JAVAC_CHECK" = x; then
7693         BINARY="$JAVA_CHECK"
7694     fi
7695     if test "x$BINARY" != x; then
7696         # So there is a java(c) binary, it might be part of a JDK.
7697         # Lets find the JDK/JRE directory by following symbolic links.
7698         # Linux/GNU systems often have links from /usr/bin/java to
7699         # /etc/alternatives/java to the real JDK binary.
7700 
7701     # Translate long cygdrive or C:\sdfsf path
7702     # into a short mixed mode path that has no
7703     # spaces in it.
7704     tmp="$BINARY"
7705 
7706     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
7707         tmp=`$CYGPATH -u "$BINARY"`
7708         tmp=`which "$tmp"`
7709         # If file exists with .exe appended, that's the real filename
7710         # and cygpath needs that to convert to short style path.
7711         if test -f "${tmp}.exe"; then
7712            tmp="${tmp}.exe"
7713         elif test -f "${tmp}.cmd"; then
7714            tmp="${tmp}.cmd"
7715         fi
7716         # Convert to C:/ mixed style path without spaces.
7717          tmp=`$CYGPATH -s -m "$tmp"`
7718     fi
7719     BINARY="$tmp"
7720 
7721 
7722     if test "x$OPENJDK_BUILD_OS" != xwindows; then
7723         # Follow a chain of symbolic links. Use readlink
7724         # where it exists, else fall back to horribly
7725         # complicated shell code.
7726         # Extract the first word of "readlink", so it can be a program name with args.
7727 set dummy readlink; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if test "${ac_cv_path_READLINK+set}" = set; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   case $READLINK in
7734   [\\/]* | ?:[\\/]*)
7735   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
7736   ;;
7737   *)
7738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741   IFS=$as_save_IFS
7742   test -z "$as_dir" && as_dir=.
7743     for ac_exec_ext in '' $ac_executable_extensions; do
7744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
7746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747     break 2
7748   fi
7749 done
7750   done
7751 IFS=$as_save_IFS
7752 
7753   ;;
7754 esac
7755 fi
7756 READLINK=$ac_cv_path_READLINK
7757 if test -n "$READLINK"; then
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
7759 $as_echo "$READLINK" >&6; }
7760 else
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7763 fi
7764 
7765 
7766         if test "x$READLINK_TESTED" != yes; then
7767             # On MacOSX there is a readlink tool with a different
7768             # purpose than the GNU readlink tool. Check the found readlink.
7769             ISGNU=`$READLINK --help 2>&1 | grep GNU`
7770             if test "x$ISGNU" = x; then
7771                  # A readlink that we do not know how to use.
7772                  # Are there other non-GNU readlinks out there?
7773                  READLINK_TESTED=yes
7774                  READLINK=
7775             fi
7776         fi
7777 
7778         if test "x$READLINK" != x; then
7779             BINARY=`$READLINK -f $BINARY`
7780         else
7781             STARTDIR=$PWD
7782             COUNTER=0
7783             DIR=`dirname $BINARY`
7784             FIL=`basename $BINARY`
7785             while test $COUNTER -lt 20; do
7786                 ISLINK=`ls -l $DIR/$FIL | grep '\->' | sed -e 's/.*-> \(.*\)/\1/'`
7787                 if test "x$ISLINK" == x; then
7788                     # This is not a symbolic link! We are done!
7789                     break
7790                 fi
7791                 # The link might be relative! We have to use cd to travel safely.
7792                 cd $DIR
7793                 cd `dirname $ISLINK`
7794                 DIR=`pwd`
7795                 FIL=`basename $ISLINK`
7796                 let COUNTER=COUNTER+1
7797             done
7798             cd $STARTDIR
7799             BINARY=$DIR/$FIL
7800         fi
7801     fi
7802 
7803         BOOT_JDK=`dirname $BINARY`
7804         BOOT_JDK=`cd $BOOT_JDK/..; pwd`
7805         if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then
7806             JAVAC=$BOOT_JDK/bin/javac
7807             JAVA=$BOOT_JDK/bin/java
7808             BOOT_JDK_FOUND=yes
7809         fi
7810     fi
7811 fi
7812 
7813 if test "x$BOOT_JDK_FOUND" = xno; then
7814     # Try the MacOSX way.
7815     if test -x /usr/libexec/java_home; then
7816         BOOT_JDK=`/usr/libexec/java_home`
7817         if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then
7818             JAVAC=$BOOT_JDK/bin/javac
7819             JAVA=$BOOT_JDK/bin/java
7820             BOOT_JDK_FOUND=yes
7821         fi
7822     fi
7823 fi
7824 
7825 if test "x$BOOT_JDK_FOUND" = xno; then
7826     # Extract the first word of "java", so it can be a program name with args.
7827 set dummy java; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   case $JAVA_CHECK in
7834   [\\/]* | ?:[\\/]*)
7835   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
7836   ;;
7837   *)
7838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841   IFS=$as_save_IFS
7842   test -z "$as_dir" && as_dir=.
7843     for ac_exec_ext in '' $ac_executable_extensions; do
7844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7845     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
7846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850   done
7851 IFS=$as_save_IFS
7852 
7853   ;;
7854 esac
7855 fi
7856 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
7857 if test -n "$JAVA_CHECK"; then
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
7859 $as_echo "$JAVA_CHECK" >&6; }
7860 else
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864 
7865 
7866     if test "x$JAVA_CHECK" != x; then
7867         # There is a java in the path. But apparently we have not found a javac
7868         # in the path, since that would have been tested earlier.
7869         if test "x$OPENJDK_TARGET_OS" = xwindows; then
7870             # Now if this is a windows platform. The default installation of a JDK
7871             # actually puts the JRE in the path and keeps the JDK out of the path!
7872             # Go look in the default installation location.
7873             BOOT_JDK=/cygdrive/c/Program\ Files/Java/`ls /cygdrive/c/Program\ Files/Java | grep jdk | sort -r | head --lines 1`
7874             if test -d "$BOOT_JDK"; then
7875                 BOOT_JDK_FOUND=yes
7876             fi
7877         fi
7878         if test "x$BOOT_JDK_FOUND" = xno; then
7879 
7880     # Print a helpful message on how to acquire the necessary build dependency.
7881     # openjdk is the help tag: freetyp2, cups, pulse, alsa etc
7882     MISSING_DEPENDENCY=openjdk
7883     PKGHANDLER_COMMAND=
7884 
7885     case $PKGHANDLER in
7886         apt-get)
7887                 apt_help     $MISSING_DEPENDENCY ;;
7888     yum)
7889                 yum_help     $MISSING_DEPENDENCY ;;
7890         port)
7891                 port_help    $MISSING_DEPENDENCY ;;
7892         pkgutil)
7893                 pkgutil_help $MISSING_DEPENDENCY ;;
7894         pkgadd)
7895                 pkgadd_help  $MISSING_DEPENDENCY ;;
7896     * )
7897       break ;;
7898     esac
7899 
7900     if test "x$PKGHANDLER_COMMAND" != x; then
7901         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
7902     fi
7903 
7904             { $as_echo "$as_me:${as_lineno-$LINENO}: Found a JRE, not not a JDK! Please remove the JRE from your path and put a JDK there instead. $HELP_MSG" >&5
7905 $as_echo "$as_me: Found a JRE, not not a JDK! Please remove the JRE from your path and put a JDK there instead. $HELP_MSG" >&6;}
7906 
7907     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
7908 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
7909     as_fn_error $? "Cannot continue" "$LINENO" 5
7910 
7911         fi
7912     else
7913 
7914     # Print a helpful message on how to acquire the necessary build dependency.
7915     # openjdk is the help tag: freetyp2, cups, pulse, alsa etc
7916     MISSING_DEPENDENCY=openjdk
7917     PKGHANDLER_COMMAND=
7918 
7919     case $PKGHANDLER in
7920         apt-get)
7921                 apt_help     $MISSING_DEPENDENCY ;;
7922     yum)
7923                 yum_help     $MISSING_DEPENDENCY ;;
7924         port)
7925                 port_help    $MISSING_DEPENDENCY ;;
7926         pkgutil)
7927                 pkgutil_help $MISSING_DEPENDENCY ;;
7928         pkgadd)
7929                 pkgadd_help  $MISSING_DEPENDENCY ;;
7930     * )
7931       break ;;
7932     esac
7933 
7934     if test "x$PKGHANDLER_COMMAND" != x; then
7935         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
7936     fi
7937 
7938         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a JDK. $HELP_MSG" >&5
7939 $as_echo "$as_me: Could not find a JDK. $HELP_MSG" >&6;}
7940 
7941     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
7942 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
7943     as_fn_error $? "Cannot continue" "$LINENO" 5
7944 
7945     fi
7946 fi
7947 
7948 
7949     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
7950         # Extract the first word of "cygpath", so it can be a program name with args.
7951 set dummy cygpath; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if test "${ac_cv_path_CYGPATH+set}" = set; then :
7955   $as_echo_n "(cached) " >&6
7956 else
7957   case $CYGPATH in
7958   [\\/]* | ?:[\\/]*)
7959   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
7960   ;;
7961   *)
7962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967     for ac_exec_ext in '' $ac_executable_extensions; do
7968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
7970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974   done
7975 IFS=$as_save_IFS
7976 
7977   ;;
7978 esac
7979 fi
7980 CYGPATH=$ac_cv_path_CYGPATH
7981 if test -n "$CYGPATH"; then
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
7983 $as_echo "$CYGPATH" >&6; }
7984 else
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7987 fi
7988 
7989 
7990         tmp="$BOOT_JDK"
7991         # Convert to C:/ mixed style path without spaces.
7992         tmp=`$CYGPATH -s -m "$tmp"`
7993         BOOT_JDK="$tmp"
7994     fi
7995 
7996 
7997 # Now see if we can find the rt.jar, or its nearest equivalent.
7998 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
7999 
8000     # Fail with message the path to the Boot JDK rt.jar (or nearest equivalent) if var BOOT_RTJAR contains a path with no spaces in it.
8001     # Unless on Windows, where we can rewrite the path.
8002     HAS_SPACE=`echo "$BOOT_RTJAR" | grep " "`
8003     if test "x$HAS_SPACE" != x; then
8004         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
8005             BOOT_RTJAR=`$CYGPATH -s -m -a "$BOOT_RTJAR"`
8006             BOOT_RTJAR=`$CYGPATH -u "$BOOT_RTJAR"`
8007         else
8008             as_fn_error $? "You cannot have spaces in the path to the Boot JDK rt.jar (or nearest equivalent)! \"$BOOT_RTJAR\"" "$LINENO" 5
8009         fi
8010     fi
8011 
8012 
8013 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
8014 
8015     # Fail with message the path to the Boot JDK tools.jar (or nearest equivalent) if var BOOT_TOOLSJAR contains a path with no spaces in it.
8016     # Unless on Windows, where we can rewrite the path.
8017     HAS_SPACE=`echo "$BOOT_TOOLSJAR" | grep " "`
8018     if test "x$HAS_SPACE" != x; then
8019         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
8020             BOOT_TOOLSJAR=`$CYGPATH -s -m -a "$BOOT_TOOLSJAR"`
8021             BOOT_TOOLSJAR=`$CYGPATH -u "$BOOT_TOOLSJAR"`
8022         else
8023             as_fn_error $? "You cannot have spaces in the path to the Boot JDK tools.jar (or nearest equivalent)! \"$BOOT_TOOLSJAR\"" "$LINENO" 5
8024         fi
8025     fi
8026 
8027 
8028 if test ! -f $BOOT_RTJAR; then
8029     # On MacOSX it is called classes.jar
8030     BOOT_RTJAR=$BOOT_JDK/../Classes/classes.jar
8031     if test ! -f $BOOT_RTJAR; then
8032         { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot find the rt.jar or its equivalent!" >&5
8033 $as_echo "$as_me: Cannot find the rt.jar or its equivalent!" >&6;}
8034         { $as_echo "$as_me:${as_lineno-$LINENO}: This typically means that configure failed to automatically find a suitable Boot JDK" >&5
8035 $as_echo "$as_me: This typically means that configure failed to automatically find a suitable Boot JDK" >&6;}
8036 
8037     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
8038 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
8039     as_fn_error $? "Cannot continue" "$LINENO" 5
8040 
8041     fi
8042     # Remove the ..
8043     BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
8044     # The tools.jar is part of classes.jar
8045     BOOT_TOOLSJAR="$BOOT_RTJAR"
8046 fi
8047 
8048 
8049 
8050 
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
8052 $as_echo_n "checking for Boot JDK... " >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
8054 $as_echo "$BOOT_JDK" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot rt.jar" >&5
8056 $as_echo_n "checking for Boot rt.jar... " >&6; }
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_RTJAR" >&5
8058 $as_echo "$BOOT_RTJAR" >&6; }
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot tools.jar" >&5
8060 $as_echo_n "checking for Boot tools.jar... " >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_TOOLSJAR" >&5
8062 $as_echo "$BOOT_TOOLSJAR" >&6; }
8063 
8064 # Use the java tool from the Boot JDK.
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
8066 $as_echo_n "checking for java in Boot JDK... " >&6; }
8067 JAVA=$BOOT_JDK/bin/java
8068 if test ! -x $JAVA; then
8069     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a working java" >&5
8070 $as_echo "$as_me: Could not find a working java" >&6;}
8071 
8072     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
8073 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
8074     as_fn_error $? "Cannot continue" "$LINENO" 5
8075 
8076 fi
8077 BOOT_JDK_VERSION=`$JAVA -version 2>&1 | head -n 1`
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes $BOOT_JDK_VERSION" >&5
8079 $as_echo "yes $BOOT_JDK_VERSION" >&6; }
8080 
8081 
8082 # Extra M4 quote needed to protect [] in grep expression.
8083 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
8084 if test "x$FOUND_VERSION_78" = x; then
8085 
8086     # Print a helpful message on how to acquire the necessary build dependency.
8087     # openjdk is the help tag: freetyp2, cups, pulse, alsa etc
8088     MISSING_DEPENDENCY=openjdk
8089     PKGHANDLER_COMMAND=
8090 
8091     case $PKGHANDLER in
8092         apt-get)
8093                 apt_help     $MISSING_DEPENDENCY ;;
8094     yum)
8095                 yum_help     $MISSING_DEPENDENCY ;;
8096         port)
8097                 port_help    $MISSING_DEPENDENCY ;;
8098         pkgutil)
8099                 pkgutil_help $MISSING_DEPENDENCY ;;
8100         pkgadd)
8101                 pkgadd_help  $MISSING_DEPENDENCY ;;
8102     * )
8103       break ;;
8104     esac
8105 
8106     if test "x$PKGHANDLER_COMMAND" != x; then
8107         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
8108     fi
8109 
8110     { $as_echo "$as_me:${as_lineno-$LINENO}: Your boot-jdk must be version 7 or 8. $HELP_MSG" >&5
8111 $as_echo "$as_me: Your boot-jdk must be version 7 or 8. $HELP_MSG" >&6;}
8112 
8113     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
8114 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
8115     as_fn_error $? "Cannot continue" "$LINENO" 5
8116 
8117 fi
8118 
8119 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
8120 BOOT_JDK_SOURCETARGET="-source 7 -target 7"
8121 
8122 
8123 # Use the javac tool from the Boot JDK.
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
8125 $as_echo_n "checking for javac in Boot JDK... " >&6; }
8126 JAVAC=$BOOT_JDK/bin/javac
8127 if test ! -x $JAVAC; then
8128     as_fn_error $? "Could not find a working javac" "$LINENO" 5
8129 fi
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 
8133 
8134 
8135 # Use the javah tool from the Boot JDK.
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
8137 $as_echo_n "checking for javah in Boot JDK... " >&6; }
8138 JAVAH=$BOOT_JDK/bin/javah
8139 if test ! -x $JAVAH; then
8140     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a working javah" >&5
8141 $as_echo "$as_me: Could not find a working javah" >&6;}
8142 
8143     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
8144 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
8145     as_fn_error $? "Cannot continue" "$LINENO" 5
8146 
8147 fi
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8149 $as_echo "yes" >&6; }
8150 
8151 
8152 # Use the jar tool from the Boot JDK.
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
8154 $as_echo_n "checking for jar in Boot JDK... " >&6; }
8155 JAR=$BOOT_JDK/bin/jar
8156 if test ! -x $JAR; then
8157     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a working jar" >&5
8158 $as_echo "$as_me: Could not find a working jar" >&6;}
8159 
8160     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
8161 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
8162     as_fn_error $? "Cannot continue" "$LINENO" 5
8163 
8164 fi
8165 
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8167 $as_echo "yes" >&6; }
8168 
8169 # Use the rmic tool from the Boot JDK.
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
8171 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
8172 RMIC=$BOOT_JDK/bin/rmic
8173 if test ! -x $RMIC; then
8174     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a working rmic" >&5
8175 $as_echo "$as_me: Could not find a working rmic" >&6;}
8176 
8177     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
8178 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
8179     as_fn_error $? "Cannot continue" "$LINENO" 5
8180 
8181 fi
8182 
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8184 $as_echo "yes" >&6; }
8185 
8186 # Use the native2ascii tool from the Boot JDK.
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
8188 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
8189 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
8190 if test ! -x $NATIVE2ASCII; then
8191     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a working native2ascii" >&5
8192 $as_echo "$as_me: Could not find a working native2ascii" >&6;}
8193 
8194     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
8195 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
8196     as_fn_error $? "Cannot continue" "$LINENO" 5
8197 
8198 fi
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8200 $as_echo "yes" >&6; }
8201 
8202 
8203 
8204 ##############################################################################
8205 #
8206 # Specify options for anything that is run with the Boot JDK.
8207 #
8208 
8209 # Check whether --with-boot-jdk-jvmargs was given.
8210 if test "${with_boot_jdk_jvmargs+set}" = set; then :
8211   withval=$with_boot_jdk_jvmargs;
8212 fi
8213 
8214 
8215 if test "x$with_boot_jdk_jvmargs" = x; then
8216     # Not all JVM:s accept the same arguments on the command line.
8217     # OpenJDK specific increase in thread stack for JDK build,
8218     # well more specifically, when running javac.
8219     if test "x$BUILD_NUM_BITS" = x32; then
8220        STACK_SIZE=768
8221     else
8222        # Running Javac on a JVM on a 64-bit machine, the stack takes more space
8223        # since 64-bit pointers are pushed on the stach. Apparently, we need
8224        # to increase the stack space when javacing the JDK....
8225        STACK_SIZE=1536
8226     fi
8227 
8228     # Minimum amount of heap memory.
8229 
8230     # Test if -Xms64M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
8231     # If so, then append -Xms64M to boot_jdk_jvmargs
8232     FOUND_WARN=`$JAVA -Xms64M -version 2>&1 | grep -i warn`
8233     FOUND_VERSION=`$JAVA -Xms64M -version 2>&1 | grep " version \""`
8234     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
8235         boot_jdk_jvmargs="$boot_jdk_jvmargs -Xms64M"
8236     fi
8237 
8238     if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
8239         # Why does macosx need more heap? Its the huge JDK batch.
8240 
8241     # Test if -Xmx1600M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
8242     # If so, then append -Xmx1600M to boot_jdk_jvmargs
8243     FOUND_WARN=`$JAVA -Xmx1600M -version 2>&1 | grep -i warn`
8244     FOUND_VERSION=`$JAVA -Xmx1600M -version 2>&1 | grep " version \""`
8245     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
8246         boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1600M"
8247     fi
8248 
8249     else
8250 
8251     # Test if -Xmx1100M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
8252     # If so, then append -Xmx1100M to boot_jdk_jvmargs
8253     FOUND_WARN=`$JAVA -Xmx1100M -version 2>&1 | grep -i warn`
8254     FOUND_VERSION=`$JAVA -Xmx1100M -version 2>&1 | grep " version \""`
8255     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
8256         boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1100M"
8257     fi
8258 
8259     fi
8260     # When is adding -client something that speeds up the JVM?
8261     # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA])
8262 
8263     # Test if -XX:PermSize=32m is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
8264     # If so, then append -XX:PermSize=32m to boot_jdk_jvmargs
8265     FOUND_WARN=`$JAVA -XX:PermSize=32m -version 2>&1 | grep -i warn`
8266     FOUND_VERSION=`$JAVA -XX:PermSize=32m -version 2>&1 | grep " version \""`
8267     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
8268         boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:PermSize=32m"
8269     fi
8270 
8271 
8272     # Test if -XX:MaxPermSize=160m is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
8273     # If so, then append -XX:MaxPermSize=160m to boot_jdk_jvmargs
8274     FOUND_WARN=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep -i warn`
8275     FOUND_VERSION=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep " version \""`
8276     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
8277         boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:MaxPermSize=160m"
8278     fi
8279 
8280 
8281     # Test if -XX:ThreadStackSize=$STACK_SIZE is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
8282     # If so, then append -XX:ThreadStackSize=$STACK_SIZE to boot_jdk_jvmargs
8283     FOUND_WARN=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep -i warn`
8284     FOUND_VERSION=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep " version \""`
8285     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
8286         boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:ThreadStackSize=$STACK_SIZE"
8287     fi
8288 
8289     # Disable special log output when a debug build is used as Boot JDK...
8290 
8291     # Test if -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
8292     # If so, then append -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput to boot_jdk_jvmargs
8293     FOUND_WARN=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep -i warn`
8294     FOUND_VERSION=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep " version \""`
8295     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
8296         boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
8297     fi
8298 
8299 fi
8300 
8301 BOOT_JDK_JVMARGS=$boot_jdk_jvmargs
8302 
8303 
8304 
8305 ###############################################################################
8306 #
8307 # Configure the sources to use. We can add or override individual directories.
8308 #
8309 ###############################################################################
8310 
8311 
8312 
8313 # Where are the sources. Any of these can be overridden
8314 # using --with-override-corba and the likes.
8315 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
8316 CORBA_TOPDIR="$SRC_ROOT/corba"
8317 JAXP_TOPDIR="$SRC_ROOT/jaxp"
8318 JAXWS_TOPDIR="$SRC_ROOT/jaxws"
8319 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
8320 JDK_TOPDIR="$SRC_ROOT/jdk"
8321 
8322 
8323 
8324 
8325 
8326 
8327 
8328 
8329 
8330 ###############################################################################
8331 #
8332 # Pickup additional source for a component from outside of the source root
8333 # or override source for a component.
8334 #
8335 
8336 # Check whether --with-add-source-root was given.
8337 if test "${with_add_source_root+set}" = set; then :
8338   withval=$with_add_source_root;
8339 fi
8340 
8341 
8342 
8343 # Check whether --with-override-source-root was given.
8344 if test "${with_override_source_root+set}" = set; then :
8345   withval=$with_override_source_root;
8346 fi
8347 
8348 
8349 
8350 # Check whether --with-adds-and-overrides was given.
8351 if test "${with_adds_and_overrides+set}" = set; then :
8352   withval=$with_adds_and_overrides;
8353 fi
8354 
8355 
8356 if test "x$with_adds_and_overrides" != x; then
8357     with_add_source_root="$with_adds_and_overrides/adds"
8358     with_override_source_root="$with_adds_and_overrides/overrides"
8359 fi
8360 
8361 if test "x$with_add_source_root" != x; then
8362     if ! test -d $with_add_source_root; then
8363        as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5
8364     fi
8365     CURDIR="$PWD"
8366     cd "$with_add_source_root"
8367     ADD_SRC_ROOT="`pwd`"
8368     cd "$CURDIR"
8369     # Verify that the addon source root does not have any root makefiles.
8370     # If it does, then it is usually an error, prevent this.
8371     if test -f $with_add_source_root/langtools/makefiles/Makefile || \
8372        test -f $with_add_source_root/langtools/make/Makefile; then
8373         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
8374     fi
8375     if test -f $with_add_source_root/corba/makefiles/Makefile || \
8376        test -f $with_add_source_root/corba/make/Makefile; then
8377         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
8378     fi
8379     if test -f $with_add_source_root/jaxp/makefiles/Makefile || \
8380        test -f $with_add_source_root/jaxp/make/Makefile; then
8381         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
8382     fi
8383     if test -f $with_add_source_root/jaxws/makefiles/Makefile || \
8384        test -f $with_add_source_root/jaxws/make/Makefile; then
8385         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
8386     fi
8387     if test -f $with_add_source_root/hotspot/makefiles/Makefile || \
8388        test -f $with_add_source_root/hotspot/make/Makefile; then
8389         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
8390     fi
8391     if test -f $with_add_source_root/jdk/makefiles/Makefile || \
8392        test -f $with_add_source_root/jdk/make/Makefile; then
8393         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
8394     fi
8395 fi
8396 
8397 
8398 if test "x$with_override_source_root" != x; then
8399     if ! test -d $with_override_source_root; then
8400        as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5
8401     fi
8402     CURDIR="$PWD"
8403     cd "$with_override_source_root"
8404     OVERRIDE_SRC_ROOT="`pwd`"
8405     cd "$CURDIR"
8406     if test -f $with_override_source_root/langtools/makefiles/Makefile || \
8407        test -f $with_override_source_root/langtools/make/Makefile; then
8408         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
8409     fi
8410     if test -f $with_override_source_root/corba/makefiles/Makefile || \
8411        test -f $with_override_source_root/corba/make/Makefile; then
8412         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
8413     fi
8414     if test -f $with_override_source_root/jaxp/makefiles/Makefile || \
8415        test -f $with_override_source_root/jaxp/make/Makefile; then
8416         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
8417     fi
8418     if test -f $with_override_source_root/jaxws/makefiles/Makefile || \
8419        test -f $with_override_source_root/jaxws/make/Makefile; then
8420         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
8421     fi
8422     if test -f $with_override_source_root/hotspot/makefiles/Makefile || \
8423        test -f $with_override_source_root/hotspot/make/Makefile; then
8424         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
8425     fi
8426     if test -f $with_override_source_root/jdk/makefiles/Makefile || \
8427        test -f $with_override_source_root/jdk/make/Makefile; then
8428         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
8429     fi
8430 fi
8431 
8432 
8433 ###############################################################################
8434 #
8435 # Override a repo completely, this is used for example when you have 3 small
8436 # development sandboxes of the langtools sources and want to avoid having 3 full
8437 # OpenJDK sources checked out on disk.
8438 #
8439 # Assuming that the 3 langtools sandboxes are located here:
8440 # /home/fredrik/sandbox1/langtools
8441 # /home/fredrik/sandbox2/langtools
8442 # /home/fredrik/sandbox3/langtools
8443 #
8444 # From the source root you create build subdirs manually:
8445 #     mkdir -p build1 build2 build3
8446 # in each build directory run:
8447 #     (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make)
8448 #     (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make)
8449 #     (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make)
8450 #
8451 
8452 
8453 # Check whether --with-override-langtools was given.
8454 if test "${with_override_langtools+set}" = set; then :
8455   withval=$with_override_langtools;
8456 fi
8457 
8458 
8459 
8460 # Check whether --with-override-corba was given.
8461 if test "${with_override_corba+set}" = set; then :
8462   withval=$with_override_corba;
8463 fi
8464 
8465 
8466 
8467 # Check whether --with-override-jaxp was given.
8468 if test "${with_override_jaxp+set}" = set; then :
8469   withval=$with_override_jaxp;
8470 fi
8471 
8472 
8473 
8474 # Check whether --with-override-jaxws was given.
8475 if test "${with_override_jaxws+set}" = set; then :
8476   withval=$with_override_jaxws;
8477 fi
8478 
8479 
8480 
8481 # Check whether --with-override-hotspot was given.
8482 if test "${with_override_hotspot+set}" = set; then :
8483   withval=$with_override_hotspot;
8484 fi
8485 
8486 
8487 
8488 # Check whether --with-override-jdk was given.
8489 if test "${with_override_jdk+set}" = set; then :
8490   withval=$with_override_jdk;
8491 fi
8492 
8493 
8494 if test "x$with_override_langtools" != x; then
8495     CURDIR="$PWD"
8496     cd "$with_override_langtools"
8497     LANGTOOLS_TOPDIR="`pwd`"
8498     cd "$CURDIR"
8499     if ! test -f $LANGTOOLS_TOPDIR/makefiles/Makefile; then
8500         as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5
8501     fi
8502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5
8503 $as_echo_n "checking if langtools should be overridden... " >&6; }
8504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5
8505 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; }
8506 fi
8507 if test "x$with_override_corba" != x; then
8508     CURDIR="$PWD"
8509     cd "$with_override_corba"
8510     CORBA_TOPDIR="`pwd`"
8511     cd "$CURDIR"
8512     if ! test -f $CORBA_TOPDIR/makefiles/Makefile; then
8513         as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5
8514     fi
8515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5
8516 $as_echo_n "checking if corba should be overridden... " >&6; }
8517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5
8518 $as_echo "yes with $CORBA_TOPDIR" >&6; }
8519 fi
8520 if test "x$with_override_jaxp" != x; then
8521     CURDIR="$PWD"
8522     cd "$with_override_jaxp"
8523     JAXP_TOPDIR="`pwd`"
8524     cd "$CURDIR"
8525     if ! test -f $JAXP_TOPDIR/makefiles/Makefile; then
8526         as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5
8527     fi
8528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5
8529 $as_echo_n "checking if jaxp should be overridden... " >&6; }
8530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5
8531 $as_echo "yes with $JAXP_TOPDIR" >&6; }
8532 fi
8533 if test "x$with_override_jaxws" != x; then
8534     CURDIR="$PWD"
8535     cd "$with_override_jaxws"
8536     JAXWS_TOPDIR="`pwd`"
8537     cd "$CURDIR"
8538     if ! test -f $JAXWS_TOPDIR/makefiles/Makefile; then
8539         as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5
8540     fi
8541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5
8542 $as_echo_n "checking if jaxws should be overridden... " >&6; }
8543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5
8544 $as_echo "yes with $JAXWS_TOPDIR" >&6; }
8545 fi
8546 if test "x$with_override_hotspot" != x; then
8547     CURDIR="$PWD"
8548     cd "$with_override_hotspot"
8549     HOTSPOT_TOPDIR="`pwd`"
8550     cd "$CURDIR"
8551     if ! test -f $HOTSPOT_TOPDIR/make/Makefile && \
8552        ! test -f $HOTSPOT_TOPDIR/makefiles/Makefile; then
8553         as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5
8554     fi
8555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5
8556 $as_echo_n "checking if hotspot should be overridden... " >&6; }
8557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5
8558 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; }
8559 fi
8560 if test "x$with_override_jdk" != x; then
8561     CURDIR="$PWD"
8562     cd "$with_override_jdk"
8563     JDK_TOPDIR="`pwd`"
8564     cd "$CURDIR"
8565     if ! test -f $JDK_TOPDIR/makefiles/Makefile; then
8566         as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5
8567     fi
8568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5
8569 $as_echo_n "checking if JDK should be overridden... " >&6; }
8570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5
8571 $as_echo "yes with $JDK_TOPDIR" >&6; }
8572 fi
8573 
8574 
8575 
8576 LANGTOOLS_OUTPUTDIR="$OUTPUT_ROOT/langtools"
8577 CORBA_OUTPUTDIR="$OUTPUT_ROOT/corba"
8578 JAXP_OUTPUTDIR="$OUTPUT_ROOT/jaxp"
8579 JAXWS_OUTPUTDIR="$OUTPUT_ROOT/jaxws"
8580 HOTSPOT_OUTPUTDIR="$OUTPUT_ROOT/hotspot"
8581 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
8582 IMAGES_OUTPUTDIR="$OUTPUT_ROOT/images"
8583 
8584 
8585 
8586 
8587 
8588 
8589 
8590 
8591 
8592 LANGTOOLS_DIST="$OUTPUT_ROOT/langtools/dist"
8593 CORBA_DIST="$OUTPUT_ROOT/corba/dist"
8594 JAXP_DIST="$OUTPUT_ROOT/jaxp/dist"
8595 JAXWS_DIST="$OUTPUT_ROOT/jaxws/dist"
8596 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist"
8597 
8598 
8599 
8600 
8601 
8602 
8603 
8604 
8605 ###############################################################################
8606 #
8607 # Setup the toolchain (compilers etc), i.e. the tools that need to be
8608 # cross-compilation aware.
8609 #
8610 ###############################################################################
8611 
8612 
8613 ###############################################################################
8614 #
8615 # Configure the development tool paths and potential sysroot.
8616 #
8617 ac_ext=cpp
8618 ac_cpp='$CXXCPP $CPPFLAGS'
8619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8622 
8623 DEVKIT=
8624 SYS_ROOT=/
8625 
8626 
8627 # The option used to specify the target .o,.a or .so file.
8628 # When compiling, how to specify the to be created object file.
8629 CC_OUT_OPTION='-o$(SPACE)'
8630 # When linking, how to specify the to be created executable.
8631 EXE_OUT_OPTION='-o$(SPACE)'
8632 # When linking, how to specify the to be created dynamically linkable library.
8633 LD_OUT_OPTION='-o$(SPACE)'
8634 # When archiving, how to specify the to be create static archive for object files.
8635 AR_OUT_OPTION='rcs$(SPACE)'
8636 
8637 
8638 
8639 
8640 
8641 
8642 
8643 # Check if the VS env variables were setup prior to running configure.
8644 # If not, then find vcvarsall.bat and run it automatically, and integrate
8645 # the set env variables into the spec file.
8646 SETUPDEVENV="# No special vars"
8647 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
8648     # If vcvarsall.bat has been run, then VCINSTALLDIR is set.
8649     if test "x$VCINSTALLDIR" != x; then
8650         # No further setup is needed. The build will happen from this kind
8651         # of shell.
8652         SETUPDEVENV="# This spec file expects that you are running bash from within a VS command prompt."
8653         # Make sure to remind you, if you forget to run make from a cygwin bash shell
8654         # that is spawned "bash -l" from a VS command prompt.
8655         CHECK_FOR_VCINSTALLDIR=yes
8656         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are running from within a VS command prompt" >&5
8657 $as_echo_n "checking if you are running from within a VS command prompt... " >&6; }
8658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8659 $as_echo "yes" >&6; }
8660     else
8661         # Ah, we have not yet run vcvarsall.bat/vsvars32.bat/vsvars64.bat. Lets do that. First find it.
8662         if test "x$VS100COMNTOOLS" != x; then
8663             VARSBAT=`find "$VS100COMNTOOLS/../.." -name vcvarsall.bat`
8664             SEARCH_ROOT="$VS100COMNTOOLS"
8665         else
8666             VARSBAT=`find "$PROGRAMFILES" -name vcvarsall.bat`
8667             SEARCH_ROOT="$PROGRAMFILES"
8668         fi
8669         VCPATH=`dirname "$VARSBAT"`
8670         VCPATH=`cygpath -w "$VCPATH"`
8671         if test "x$VARSBAT" = x || test ! -d "$VCPATH"; then
8672             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can find the VS installation" >&5
8673 $as_echo_n "checking if we can find the VS installation... " >&6; }
8674             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675 $as_echo "no" >&6; }
8676             as_fn_error $? "Tried to find a VS installation using both $SEARCH_ROOT but failed. Please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
8677         fi
8678         case "$LEGACY_OPENJDK_TARGET_CPU1" in
8679           i?86)
8680             VARSBAT_ARCH=x86
8681             ;;
8682           *)
8683             VARSBAT_ARCH=$LEGACY_OPENJDK_TARGET_CPU1
8684             ;;
8685         esac
8686         # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
8687         cd $OUTPUT_ROOT
8688         bash $SRC_ROOT/common/bin/extractvcvars.sh "$VARSBAT" "$VARSBAT_ARCH"
8689         cd $CURDIR
8690         if test ! -s $OUTPUT_ROOT/localdevenv.sh || test ! -s $OUTPUT_ROOT/localdevenv.gmk; then
8691             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can extract the needed env variables" >&5
8692 $as_echo_n "checking if we can extract the needed env variables... " >&6; }
8693             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8695             as_fn_error $? "Could not succesfully extract the env variables needed for the VS setup. Please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
8696         fi
8697         # Now set all paths and other env variables. This will allow the rest of
8698         # the configure script to find and run the compiler in the proper way.
8699         . $OUTPUT_ROOT/localdevenv.sh
8700         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can find the VS installation" >&5
8701 $as_echo_n "checking if we can find the VS installation... " >&6; }
8702         if test "x$VCINSTALLDIR" != x; then
8703             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VCINSTALLDIR" >&5
8704 $as_echo "$VCINSTALLDIR" >&6; }
8705         else
8706             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8708             as_fn_error $? "Could not find VS installation. Please install. If you are sure you have installed VS, then please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
8709         fi
8710         CHECK_FOR_VCINSTALLDIR=no
8711         SETUPDEVENV="include $OUTPUT_ROOT/localdevenv.gmk"
8712 
8713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
8714 $as_echo_n "checking for msvcr100.dll... " >&6; }
8715 
8716 # Check whether --with-msvcr100dll was given.
8717 if test "${with_msvcr100dll+set}" = set; then :
8718   withval=$with_msvcr100dll;
8719 fi
8720 
8721         if test "x$with_msvcr100dll" != x; then
8722             MSVCR100DLL="$with_msvcr100dll"
8723         else
8724             if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
8725                 MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | grep x64 | head --lines 1`
8726             else
8727                 MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | grep x86 | grep -v ia64 | grep -v x64 | head --lines 1`
8728                 if test "x$MSVCR100DLL" = x; then
8729                     MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | head --lines 1`
8730                 fi
8731             fi
8732         fi
8733         if test "x$MSVCR100DLL" = x; then
8734            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8736            as_fn_error $? "Could not find msvcr100.dll !" "$LINENO" 5
8737         fi
8738         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR100DLL" >&5
8739 $as_echo "$MSVCR100DLL" >&6; }
8740 
8741     # Fail with message the path to msvcr100.dll if var MSVCR100DLL contains a path with no spaces in it.
8742     # Unless on Windows, where we can rewrite the path.
8743     HAS_SPACE=`echo "$MSVCR100DLL" | grep " "`
8744     if test "x$HAS_SPACE" != x; then
8745         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
8746             MSVCR100DLL=`$CYGPATH -s -m -a "$MSVCR100DLL"`
8747             MSVCR100DLL=`$CYGPATH -u "$MSVCR100DLL"`
8748         else
8749             as_fn_error $? "You cannot have spaces in the path to msvcr100.dll! \"$MSVCR100DLL\"" "$LINENO" 5
8750         fi
8751     fi
8752 
8753     fi
8754 fi
8755 
8756 
8757 
8758 
8759 # Locate the actual tools
8760 
8761 # If --build AND --host is set, then the configure script will find any
8762 # cross compilation tools in the PATH. Cross compilation tools
8763 # follows the cross compilation standard where they are prefixed with ${host}.
8764 # For example the binary i686-sun-solaris2.10-gcc
8765 # will cross compile for i686-sun-solaris2.10
8766 # If neither of build and host is not set, then build=host and the
8767 # default compiler found in the path will be used.
8768 # Setting only --host, does not seem to be really supported.
8769 # Please set both --build and --host if you want to cross compile.
8770 
8771 DEFINE_CROSS_COMPILE_ARCH=""
8772 HOSTCC=""
8773 HOSTCXX=""
8774 HOSTLD=""
8775 
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a cross compile" >&5
8777 $as_echo_n "checking if this is a cross compile... " >&6; }
8778 if test "x$OPENJDK_BUILD_SYSTEM" != "x$OPENJDK_TARGET_SYSTEM"; then
8779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, from $OPENJDK_BUILD_SYSTEM to $OPENJDK_TARGET_SYSTEM" >&5
8780 $as_echo "yes, from $OPENJDK_BUILD_SYSTEM to $OPENJDK_TARGET_SYSTEM" >&6; }
8781     # We have detected a cross compile!
8782     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$LEGACY_OPENJDK_TARGET_CPU1"
8783     # Now we to find a C/C++ compiler that can build executables for the build
8784     # platform. We can't use the AC_PROG_CC macro, since it can only be used
8785     # once.
8786     for ac_prog in cl cc gcc
8787 do
8788   # Extract the first word of "$ac_prog", so it can be a program name with args.
8789 set dummy $ac_prog; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if test "${ac_cv_path_HOSTCC+set}" = set; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   case $HOSTCC in
8796   [\\/]* | ?:[\\/]*)
8797   ac_cv_path_HOSTCC="$HOSTCC" # Let the user override the test with a path.
8798   ;;
8799   *)
8800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 for as_dir in $PATH
8802 do
8803   IFS=$as_save_IFS
8804   test -z "$as_dir" && as_dir=.
8805     for ac_exec_ext in '' $ac_executable_extensions; do
8806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807     ac_cv_path_HOSTCC="$as_dir/$ac_word$ac_exec_ext"
8808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809     break 2
8810   fi
8811 done
8812   done
8813 IFS=$as_save_IFS
8814 
8815   ;;
8816 esac
8817 fi
8818 HOSTCC=$ac_cv_path_HOSTCC
8819 if test -n "$HOSTCC"; then
8820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCC" >&5
8821 $as_echo "$HOSTCC" >&6; }
8822 else
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8825 fi
8826 
8827 
8828   test -n "$HOSTCC" && break
8829 done
8830 
8831 
8832     # Translate "gcc -E" into "`which gcc` -E" ie
8833     # extract the full path to the binary and at the
8834     # same time maintain any arguments passed to it.
8835     # The command MUST exist in the path, or else!
8836     tmp="$HOSTCC"
8837     car="${tmp%% *}"
8838     tmp="$HOSTCC EOL"
8839     cdr="${tmp#* }"
8840     # On windows we want paths without spaces.
8841     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
8842 
8843     # Translate long cygdrive or C:\sdfsf path
8844     # into a short mixed mode path that has no
8845     # spaces in it.
8846     tmp="$car"
8847 
8848     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
8849         tmp=`$CYGPATH -u "$car"`
8850         tmp=`which "$tmp"`
8851         # If file exists with .exe appended, that's the real filename
8852         # and cygpath needs that to convert to short style path.
8853         if test -f "${tmp}.exe"; then
8854            tmp="${tmp}.exe"
8855         elif test -f "${tmp}.cmd"; then
8856            tmp="${tmp}.cmd"
8857         fi
8858         # Convert to C:/ mixed style path without spaces.
8859          tmp=`$CYGPATH -s -m "$tmp"`
8860     fi
8861     car="$tmp"
8862 
8863     else
8864         # "which" is not portable, but is used here
8865         # because we know that the command exists!
8866         car=`which $car`
8867     fi
8868     if test "x$cdr" != xEOL; then
8869         HOSTCC="$car ${cdr% *}"
8870     else
8871         HOSTCC="$car"
8872     fi
8873 
8874     for ac_prog in cl CC g++
8875 do
8876   # Extract the first word of "$ac_prog", so it can be a program name with args.
8877 set dummy $ac_prog; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if test "${ac_cv_path_HOSTCXX+set}" = set; then :
8881   $as_echo_n "(cached) " >&6
8882 else
8883   case $HOSTCXX in
8884   [\\/]* | ?:[\\/]*)
8885   ac_cv_path_HOSTCXX="$HOSTCXX" # Let the user override the test with a path.
8886   ;;
8887   *)
8888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8890 do
8891   IFS=$as_save_IFS
8892   test -z "$as_dir" && as_dir=.
8893     for ac_exec_ext in '' $ac_executable_extensions; do
8894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8895     ac_cv_path_HOSTCXX="$as_dir/$ac_word$ac_exec_ext"
8896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897     break 2
8898   fi
8899 done
8900   done
8901 IFS=$as_save_IFS
8902 
8903   ;;
8904 esac
8905 fi
8906 HOSTCXX=$ac_cv_path_HOSTCXX
8907 if test -n "$HOSTCXX"; then
8908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCXX" >&5
8909 $as_echo "$HOSTCXX" >&6; }
8910 else
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8913 fi
8914 
8915 
8916   test -n "$HOSTCXX" && break
8917 done
8918 
8919 
8920     # Translate "gcc -E" into "`which gcc` -E" ie
8921     # extract the full path to the binary and at the
8922     # same time maintain any arguments passed to it.
8923     # The command MUST exist in the path, or else!
8924     tmp="$HOSTCXX"
8925     car="${tmp%% *}"
8926     tmp="$HOSTCXX EOL"
8927     cdr="${tmp#* }"
8928     # On windows we want paths without spaces.
8929     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
8930 
8931     # Translate long cygdrive or C:\sdfsf path
8932     # into a short mixed mode path that has no
8933     # spaces in it.
8934     tmp="$car"
8935 
8936     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
8937         tmp=`$CYGPATH -u "$car"`
8938         tmp=`which "$tmp"`
8939         # If file exists with .exe appended, that's the real filename
8940         # and cygpath needs that to convert to short style path.
8941         if test -f "${tmp}.exe"; then
8942            tmp="${tmp}.exe"
8943         elif test -f "${tmp}.cmd"; then
8944            tmp="${tmp}.cmd"
8945         fi
8946         # Convert to C:/ mixed style path without spaces.
8947          tmp=`$CYGPATH -s -m "$tmp"`
8948     fi
8949     car="$tmp"
8950 
8951     else
8952         # "which" is not portable, but is used here
8953         # because we know that the command exists!
8954         car=`which $car`
8955     fi
8956     if test "x$cdr" != xEOL; then
8957         HOSTCXX="$car ${cdr% *}"
8958     else
8959         HOSTCXX="$car"
8960     fi
8961 
8962     # Extract the first word of "ld", so it can be a program name with args.
8963 set dummy ld; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if test "${ac_cv_path_HOSTLD+set}" = set; then :
8967   $as_echo_n "(cached) " >&6
8968 else
8969   case $HOSTLD in
8970   [\\/]* | ?:[\\/]*)
8971   ac_cv_path_HOSTLD="$HOSTLD" # Let the user override the test with a path.
8972   ;;
8973   *)
8974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in $PATH
8976 do
8977   IFS=$as_save_IFS
8978   test -z "$as_dir" && as_dir=.
8979     for ac_exec_ext in '' $ac_executable_extensions; do
8980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8981     ac_cv_path_HOSTLD="$as_dir/$ac_word$ac_exec_ext"
8982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983     break 2
8984   fi
8985 done
8986   done
8987 IFS=$as_save_IFS
8988 
8989   ;;
8990 esac
8991 fi
8992 HOSTLD=$ac_cv_path_HOSTLD
8993 if test -n "$HOSTLD"; then
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTLD" >&5
8995 $as_echo "$HOSTLD" >&6; }
8996 else
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 $as_echo "no" >&6; }
8999 fi
9000 
9001 
9002 
9003     # Translate "gcc -E" into "`which gcc` -E" ie
9004     # extract the full path to the binary and at the
9005     # same time maintain any arguments passed to it.
9006     # The command MUST exist in the path, or else!
9007     tmp="$HOSTLD"
9008     car="${tmp%% *}"
9009     tmp="$HOSTLD EOL"
9010     cdr="${tmp#* }"
9011     # On windows we want paths without spaces.
9012     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
9013 
9014     # Translate long cygdrive or C:\sdfsf path
9015     # into a short mixed mode path that has no
9016     # spaces in it.
9017     tmp="$car"
9018 
9019     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
9020         tmp=`$CYGPATH -u "$car"`
9021         tmp=`which "$tmp"`
9022         # If file exists with .exe appended, that's the real filename
9023         # and cygpath needs that to convert to short style path.
9024         if test -f "${tmp}.exe"; then
9025            tmp="${tmp}.exe"
9026         elif test -f "${tmp}.cmd"; then
9027            tmp="${tmp}.cmd"
9028         fi
9029         # Convert to C:/ mixed style path without spaces.
9030          tmp=`$CYGPATH -s -m "$tmp"`
9031     fi
9032     car="$tmp"
9033 
9034     else
9035         # "which" is not portable, but is used here
9036         # because we know that the command exists!
9037         car=`which $car`
9038     fi
9039     if test "x$cdr" != xEOL; then
9040         HOSTLD="$car ${cdr% *}"
9041     else
9042         HOSTLD="$car"
9043     fi
9044 
9045     # Building for the build platform should be easy. Therefore
9046     # we do not need any linkers or assemblers etc.
9047 else
9048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9050 fi
9051 
9052 # You can force the sys-root if the sys-root encoded into the cross compiler tools
9053 # is not correct.
9054 
9055 # Check whether --with-sys-root was given.
9056 if test "${with_sys_root+set}" = set; then :
9057   withval=$with_sys_root;
9058 fi
9059 
9060 
9061 if test "x$with_sys_root" != x; then
9062     SYS_ROOT=$with_sys_root
9063 fi
9064 
9065 # If a devkit is found on the builddeps server, then prepend its path to the
9066 # PATH variable. If there are cross compilers available in the devkit, these
9067 # will be found by AC_PROG_CC et al.
9068 
9069 
9070     if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
9071         # Source the builddeps file again, to make sure it uses the latest variables!
9072         . $builddepsfile
9073         # Look for a target and build machine specific resource!
9074         eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
9075         if test "x$resource" = x; then
9076             # Ok, lets instead look for a target specific resource
9077             eval resource=\${builddep_devkit_TARGET_${rewritten_target_var}}
9078         fi
9079         if test "x$resource" = x; then
9080             # Ok, lets instead look for a build specific resource
9081             eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}}
9082         fi
9083         if test "x$resource" = x; then
9084             # Ok, lets instead look for a generic resource
9085             # (The devkit comes from M4 and not the shell, thus no need for eval here.)
9086             resource=${builddep_devkit}
9087         fi
9088         if test "x$resource" != x; then
9089             { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5
9090 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;}
9091             # If the resource in the builddeps.conf file is an existing directory,
9092             # for example /java/linux/cups
9093             if test -d ${resource}; then
9094                depdir=${resource}
9095             else
9096 
9097 # devkit is for example mymodule
9098 # $resource is for example libs/general/libmymod_1_2_3.zip
9099 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
9100 # $with_builddeps_dir is for example /localhome/builddeps
9101 # depdir is the name of the variable into which we store the depdir, eg MYMOD
9102 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
9103 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
9104     filename=`basename $resource`
9105     filebase=`echo $filename | sed 's/\.[^\.]*$//'`
9106     filebase=${filename%%.*}
9107     extension=${filename#*.}
9108     installdir=$with_builddeps_dir/$filebase
9109     if test ! -f $installdir/$filename.unpacked; then
9110         { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5
9111 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;}
9112         if test ! -d $installdir; then
9113             mkdir -p $installdir
9114         fi
9115         if test ! -d $installdir; then
9116             as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
9117         fi
9118         tmpfile=`mktemp $installdir/devkit.XXXXXXXXX`
9119         touch $tmpfile
9120         if test ! -f $tmpfile; then
9121             as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
9122         fi
9123 
9124     # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
9125     # $tmpfile is the local file name for the downloaded file.
9126     VALID_TOOL=no
9127     if test "x$BDEPS_FTP" = xwget; then
9128        VALID_TOOL=yes
9129        wget -O $tmpfile $with_builddeps_server/$resource
9130     fi
9131     if test "x$BDEPS_FTP" = xlftp; then
9132        VALID_TOOL=yes
9133        lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
9134     fi
9135     if test "x$BDEPS_FTP" = xftp; then
9136         VALID_TOOL=yes
9137         FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
9138         FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
9139         FTPUSERPWD=${FTPSERVER%%@*}
9140         if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
9141             FTPUSER=${userpwd%%:*}
9142             FTPPWD=${userpwd#*@}
9143             FTPSERVER=${FTPSERVER#*@}
9144         else
9145             FTPUSER=ftp
9146             FTPPWD=ftp
9147         fi
9148         # the "pass" command does not work on some
9149         # ftp clients (read ftp.exe) but if it works,
9150         # passive mode is better!
9151         (\
9152             echo "user $FTPUSER $FTPPWD"        ;\
9153             echo "pass"                         ;\
9154             echo "bin"                          ;\
9155             echo "get $FTPPATH $tmpfile"              ;\
9156         ) | ftp -in $FTPSERVER
9157     fi
9158     if test "x$VALID_TOOL" != xyes; then
9159        as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
9160     fi
9161 
9162         mv $tmpfile $installdir/$filename
9163         if test ! -s $installdir/$filename; then
9164             as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
9165         fi
9166         case "$extension" in
9167             zip)  echo "Unzipping $installdir/$filename..."
9168                (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
9169             ;;
9170             tar.gz) echo "Untaring $installdir/$filename..."
9171                (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
9172             ;;
9173             tgz) echo "Untaring $installdir/$filename..."
9174                (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
9175             ;;
9176             *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
9177             ;;
9178         esac
9179     fi
9180     if test -f $installdir/$filename.unpacked; then
9181         depdir=$installdir
9182     fi
9183 
9184             fi
9185             # Source the builddeps file again, because in the previous command, the depdir
9186             # was updated to point at the current build dependency install directory.
9187             . $builddepsfile
9188             # Now extract variables from the builddeps.conf files.
9189             theroot=${builddep_devkit_ROOT}
9190             thecflags=${builddep_devkit_CFLAGS}
9191             thelibs=${builddep_devkit_LIBS}
9192             if test "x$depdir" = x; then
9193                 as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5
9194             fi
9195             DEVKIT=$depdir
9196             if test "x$theroot" != x; then
9197                DEVKIT="$theroot"
9198             fi
9199             if test "x$thecflags" != x; then
9200                DEVKIT_CFLAGS="$thecflags"
9201             fi
9202             if test "x$thelibs" != x; then
9203                DEVKIT_LIBS="$thelibs"
9204             fi
9205             # Found devkit
9206                      PATH="$DEVKIT/bin:$PATH"
9207                      SYS_ROOT="$DEVKIT/${rewritten_target}/sys-root"
9208                      if test "x$x_includes" = "xNONE"; then
9209                          x_includes="$SYS_ROOT/usr/include/X11"
9210                      fi
9211                      if test "x$x_libraries" = "xNONE"; then
9212                          x_libraries="$SYS_ROOT/usr/lib"
9213                      fi
9214 
9215 
9216         fi
9217 
9218     fi
9219 
9220 
9221 if test "x$SYS_ROOT" != "x/" ; then
9222     CFLAGS="--sysroot=$SYS_ROOT $CFLAGS"
9223     CXXFLAGS="--sysroot=$SYS_ROOT $CXXFLAGS"
9224     OBJCFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
9225     OBJCXXFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
9226     CPPFLAGS="--sysroot=$SYS_ROOT $CPPFLAGS"
9227     LDFLAGS="--sysroot=$SYS_ROOT $LDFLAGS"
9228 fi
9229 
9230 # Store the CFLAGS etal passed to the configure script.
9231 ORG_CFLAGS="$CFLAGS"
9232 ORG_CXXFLAGS="$CXXFLAGS"
9233 ORG_OBJCFLAGS="$OBJCFLAGS"
9234 
9235 
9236 # Check whether --with-tools-dir was given.
9237 if test "${with_tools_dir+set}" = set; then :
9238   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
9239 fi
9240 
9241 
9242 
9243 # Check whether --with-devkit was given.
9244 if test "${with_devkit+set}" = set; then :
9245   withval=$with_devkit;
9246     if test "x$with_sys_root" != x; then
9247       as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
9248     fi
9249     if test "x$with_tools_dir" != x; then
9250       as_fn_error $? "Cannot specify both --with-devkit and --with-tools-dir at the same time" "$LINENO" 5
9251     fi
9252     TOOLS_DIR=$with_devkit/bin
9253     SYS_ROOT=$with_devkit/$host_alias/libc
9254 
9255 fi
9256 
9257 
9258 # autoconf magic only relies on PATH, so update it if tools dir is specified
9259 OLD_PATH="$PATH"
9260 if test "x$TOOLS_DIR" != x; then
9261   PATH=$TOOLS_DIR:$PATH
9262 fi
9263 
9264 # gcc is almost always present, but on Windows we
9265 # prefer cl.exe and on Solaris we prefer CC.
9266 # Thus test for them in this order.
9267 ac_ext=c
9268 ac_cpp='$CPP $CPPFLAGS'
9269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9272 if test -n "$ac_tool_prefix"; then
9273   for ac_prog in cl cc gcc
9274   do
9275     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278 $as_echo_n "checking for $ac_word... " >&6; }
9279 if test "${ac_cv_prog_CC+set}" = set; then :
9280   $as_echo_n "(cached) " >&6
9281 else
9282   if test -n "$CC"; then
9283   ac_cv_prog_CC="$CC" # Let the user override the test.
9284 else
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 for as_dir in $PATH
9287 do
9288   IFS=$as_save_IFS
9289   test -z "$as_dir" && as_dir=.
9290     for ac_exec_ext in '' $ac_executable_extensions; do
9291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9292     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294     break 2
9295   fi
9296 done
9297   done
9298 IFS=$as_save_IFS
9299 
9300 fi
9301 fi
9302 CC=$ac_cv_prog_CC
9303 if test -n "$CC"; then
9304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9305 $as_echo "$CC" >&6; }
9306 else
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9309 fi
9310 
9311 
9312     test -n "$CC" && break
9313   done
9314 fi
9315 if test -z "$CC"; then
9316   ac_ct_CC=$CC
9317   for ac_prog in cl cc gcc
9318 do
9319   # Extract the first word of "$ac_prog", so it can be a program name with args.
9320 set dummy $ac_prog; ac_word=$2
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 $as_echo_n "checking for $ac_word... " >&6; }
9323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
9324   $as_echo_n "(cached) " >&6
9325 else
9326   if test -n "$ac_ct_CC"; then
9327   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9328 else
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in $PATH
9331 do
9332   IFS=$as_save_IFS
9333   test -z "$as_dir" && as_dir=.
9334     for ac_exec_ext in '' $ac_executable_extensions; do
9335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336     ac_cv_prog_ac_ct_CC="$ac_prog"
9337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9338     break 2
9339   fi
9340 done
9341   done
9342 IFS=$as_save_IFS
9343 
9344 fi
9345 fi
9346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9347 if test -n "$ac_ct_CC"; then
9348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9349 $as_echo "$ac_ct_CC" >&6; }
9350 else
9351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9353 fi
9354 
9355 
9356   test -n "$ac_ct_CC" && break
9357 done
9358 
9359   if test "x$ac_ct_CC" = x; then
9360     CC=""
9361   else
9362     case $cross_compiling:$ac_tool_warned in
9363 yes:)
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9366 ac_tool_warned=yes ;;
9367 esac
9368     CC=$ac_ct_CC
9369   fi
9370 fi
9371 
9372 
9373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9375 as_fn_error $? "no acceptable C compiler found in \$PATH
9376 See \`config.log' for more details" "$LINENO" 5 ; }
9377 
9378 # Provide some information about the compiler.
9379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
9380 set X $ac_compile
9381 ac_compiler=$2
9382 for ac_option in --version -v -V -qversion; do
9383   { { ac_try="$ac_compiler $ac_option >&5"
9384 case "(($ac_try" in
9385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386   *) ac_try_echo=$ac_try;;
9387 esac
9388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9389 $as_echo "$ac_try_echo"; } >&5
9390   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9391   ac_status=$?
9392   if test -s conftest.err; then
9393     sed '10a\
9394 ... rest of stderr output deleted ...
9395          10q' conftest.err >conftest.er1
9396     cat conftest.er1 >&5
9397   fi
9398   rm -f conftest.er1 conftest.err
9399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9400   test $ac_status = 0; }
9401 done
9402 
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h.  */
9405 
9406 int
9407 main ()
9408 {
9409 
9410   ;
9411   return 0;
9412 }
9413 _ACEOF
9414 ac_clean_files_save=$ac_clean_files
9415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
9416 # Try to create an executable without -o first, disregard a.out.
9417 # It will help us diagnose broken compilers, and finding out an intuition
9418 # of exeext.
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
9420 $as_echo_n "checking whether the C compiler works... " >&6; }
9421 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9422 
9423 # The possible output files:
9424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
9425 
9426 ac_rmfiles=
9427 for ac_file in $ac_files
9428 do
9429   case $ac_file in
9430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
9431     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
9432   esac
9433 done
9434 rm -f $ac_rmfiles
9435 
9436 if { { ac_try="$ac_link_default"
9437 case "(($ac_try" in
9438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439   *) ac_try_echo=$ac_try;;
9440 esac
9441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9442 $as_echo "$ac_try_echo"; } >&5
9443   (eval "$ac_link_default") 2>&5
9444   ac_status=$?
9445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9446   test $ac_status = 0; }; then :
9447   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
9448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
9449 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
9450 # so that the user can short-circuit this test for compilers unknown to
9451 # Autoconf.
9452 for ac_file in $ac_files ''
9453 do
9454   test -f "$ac_file" || continue
9455   case $ac_file in
9456     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
9457         ;;
9458     [ab].out )
9459         # We found the default executable, but exeext='' is most
9460         # certainly right.
9461         break;;
9462     *.* )
9463         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
9464         then :; else
9465            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9466         fi
9467         # We set ac_cv_exeext here because the later test for it is not
9468         # safe: cross compilers may not add the suffix if given an `-o'
9469         # argument, so we may need to know it at that point already.
9470         # Even if this section looks crufty: it has the advantage of
9471         # actually working.
9472         break;;
9473     * )
9474         break;;
9475   esac
9476 done
9477 test "$ac_cv_exeext" = no && ac_cv_exeext=
9478 
9479 else
9480   ac_file=''
9481 fi
9482 if test -z "$ac_file"; then :
9483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9485 $as_echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9487 
9488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9490 as_fn_error 77 "C compiler cannot create executables
9491 See \`config.log' for more details" "$LINENO" 5 ; }
9492 else
9493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9494 $as_echo "yes" >&6; }
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
9497 $as_echo_n "checking for C compiler default output file name... " >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
9499 $as_echo "$ac_file" >&6; }
9500 ac_exeext=$ac_cv_exeext
9501 
9502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
9503 ac_clean_files=$ac_clean_files_save
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
9505 $as_echo_n "checking for suffix of executables... " >&6; }
9506 if { { ac_try="$ac_link"
9507 case "(($ac_try" in
9508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509   *) ac_try_echo=$ac_try;;
9510 esac
9511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9512 $as_echo "$ac_try_echo"; } >&5
9513   (eval "$ac_link") 2>&5
9514   ac_status=$?
9515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9516   test $ac_status = 0; }; then :
9517   # If both `conftest.exe' and `conftest' are `present' (well, observable)
9518 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
9519 # work properly (i.e., refer to `conftest.exe'), while it won't with
9520 # `rm'.
9521 for ac_file in conftest.exe conftest conftest.*; do
9522   test -f "$ac_file" || continue
9523   case $ac_file in
9524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
9525     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9526           break;;
9527     * ) break;;
9528   esac
9529 done
9530 else
9531   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9533 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
9534 See \`config.log' for more details" "$LINENO" 5 ; }
9535 fi
9536 rm -f conftest conftest$ac_cv_exeext
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
9538 $as_echo "$ac_cv_exeext" >&6; }
9539 
9540 rm -f conftest.$ac_ext
9541 EXEEXT=$ac_cv_exeext
9542 ac_exeext=$EXEEXT
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h.  */
9545 #include <stdio.h>
9546 int
9547 main ()
9548 {
9549 FILE *f = fopen ("conftest.out", "w");
9550  return ferror (f) || fclose (f) != 0;
9551 
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 ac_clean_files="$ac_clean_files conftest.out"
9557 # Check that the compiler produces executables we can run.  If not, either
9558 # the compiler is broken, or we cross compile.
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
9560 $as_echo_n "checking whether we are cross compiling... " >&6; }
9561 if test "$cross_compiling" != yes; then
9562   { { ac_try="$ac_link"
9563 case "(($ac_try" in
9564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565   *) ac_try_echo=$ac_try;;
9566 esac
9567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9568 $as_echo "$ac_try_echo"; } >&5
9569   (eval "$ac_link") 2>&5
9570   ac_status=$?
9571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9572   test $ac_status = 0; }
9573   if { ac_try='./conftest$ac_cv_exeext'
9574   { { case "(($ac_try" in
9575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576   *) ac_try_echo=$ac_try;;
9577 esac
9578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9579 $as_echo "$ac_try_echo"; } >&5
9580   (eval "$ac_try") 2>&5
9581   ac_status=$?
9582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9583   test $ac_status = 0; }; }; then
9584     cross_compiling=no
9585   else
9586     if test "$cross_compiling" = maybe; then
9587         cross_compiling=yes
9588     else
9589         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9591 as_fn_error $? "cannot run C compiled programs.
9592 If you meant to cross compile, use \`--host'.
9593 See \`config.log' for more details" "$LINENO" 5 ; }
9594     fi
9595   fi
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
9598 $as_echo "$cross_compiling" >&6; }
9599 
9600 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
9601 ac_clean_files=$ac_clean_files_save
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
9603 $as_echo_n "checking for suffix of object files... " >&6; }
9604 if test "${ac_cv_objext+set}" = set; then :
9605   $as_echo_n "(cached) " >&6
9606 else
9607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h.  */
9609 
9610 int
9611 main ()
9612 {
9613 
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.o conftest.obj
9619 if { { ac_try="$ac_compile"
9620 case "(($ac_try" in
9621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622   *) ac_try_echo=$ac_try;;
9623 esac
9624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9625 $as_echo "$ac_try_echo"; } >&5
9626   (eval "$ac_compile") 2>&5
9627   ac_status=$?
9628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9629   test $ac_status = 0; }; then :
9630   for ac_file in conftest.o conftest.obj conftest.*; do
9631   test -f "$ac_file" || continue;
9632   case $ac_file in
9633     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
9634     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
9635        break;;
9636   esac
9637 done
9638 else
9639   $as_echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641 
9642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9644 as_fn_error $? "cannot compute suffix of object files: cannot compile
9645 See \`config.log' for more details" "$LINENO" 5 ; }
9646 fi
9647 rm -f conftest.$ac_cv_objext conftest.$ac_ext
9648 fi
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
9650 $as_echo "$ac_cv_objext" >&6; }
9651 OBJEXT=$ac_cv_objext
9652 ac_objext=$OBJEXT
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
9654 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
9655 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
9656   $as_echo_n "(cached) " >&6
9657 else
9658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h.  */
9660 
9661 int
9662 main ()
9663 {
9664 #ifndef __GNUC__
9665        choke me
9666 #endif
9667 
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 if ac_fn_c_try_compile "$LINENO"; then :
9673   ac_compiler_gnu=yes
9674 else
9675   ac_compiler_gnu=no
9676 fi
9677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678 ac_cv_c_compiler_gnu=$ac_compiler_gnu
9679 
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
9682 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
9683 if test $ac_compiler_gnu = yes; then
9684   GCC=yes
9685 else
9686   GCC=
9687 fi
9688 ac_test_CFLAGS=${CFLAGS+set}
9689 ac_save_CFLAGS=$CFLAGS
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
9691 $as_echo_n "checking whether $CC accepts -g... " >&6; }
9692 if test "${ac_cv_prog_cc_g+set}" = set; then :
9693   $as_echo_n "(cached) " >&6
9694 else
9695   ac_save_c_werror_flag=$ac_c_werror_flag
9696    ac_c_werror_flag=yes
9697    ac_cv_prog_cc_g=no
9698    CFLAGS="-g"
9699    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h.  */
9701 
9702 int
9703 main ()
9704 {
9705 
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 if ac_fn_c_try_compile "$LINENO"; then :
9711   ac_cv_prog_cc_g=yes
9712 else
9713   CFLAGS=""
9714       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h.  */
9716 
9717 int
9718 main ()
9719 {
9720 
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 if ac_fn_c_try_compile "$LINENO"; then :
9726 
9727 else
9728   ac_c_werror_flag=$ac_save_c_werror_flag
9729          CFLAGS="-g"
9730          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h.  */
9732 
9733 int
9734 main ()
9735 {
9736 
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 if ac_fn_c_try_compile "$LINENO"; then :
9742   ac_cv_prog_cc_g=yes
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 fi
9746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749    ac_c_werror_flag=$ac_save_c_werror_flag
9750 fi
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
9752 $as_echo "$ac_cv_prog_cc_g" >&6; }
9753 if test "$ac_test_CFLAGS" = set; then
9754   CFLAGS=$ac_save_CFLAGS
9755 elif test $ac_cv_prog_cc_g = yes; then
9756   if test "$GCC" = yes; then
9757     CFLAGS="-g -O2"
9758   else
9759     CFLAGS="-g"
9760   fi
9761 else
9762   if test "$GCC" = yes; then
9763     CFLAGS="-O2"
9764   else
9765     CFLAGS=
9766   fi
9767 fi
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9769 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9770 if test "${ac_cv_prog_cc_c89+set}" = set; then :
9771   $as_echo_n "(cached) " >&6
9772 else
9773   ac_cv_prog_cc_c89=no
9774 ac_save_CC=$CC
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h.  */
9777 #include <stdarg.h>
9778 #include <stdio.h>
9779 #include <sys/types.h>
9780 #include <sys/stat.h>
9781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
9782 struct buf { int x; };
9783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9784 static char *e (p, i)
9785      char **p;
9786      int i;
9787 {
9788   return p[i];
9789 }
9790 static char *f (char * (*g) (char **, int), char **p, ...)
9791 {
9792   char *s;
9793   va_list v;
9794   va_start (v,p);
9795   s = g (p, va_arg (v,int));
9796   va_end (v);
9797   return s;
9798 }
9799 
9800 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
9801    function prototypes and stuff, but not '\xHH' hex character constants.
9802    These don't provoke an error unfortunately, instead are silently treated
9803    as 'x'.  The following induces an error, until -std is added to get
9804    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
9805    array size at least.  It's necessary to write '\x00'==0 to get something
9806    that's true only with -std.  */
9807 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9808 
9809 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9810    inside strings and character constants.  */
9811 #define FOO(x) 'x'
9812 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9813 
9814 int test (int i, double x);
9815 struct s1 {int (*f) (int a);};
9816 struct s2 {int (*f) (double a);};
9817 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9818 int argc;
9819 char **argv;
9820 int
9821 main ()
9822 {
9823 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
9824   ;
9825   return 0;
9826 }
9827 _ACEOF
9828 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9829         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9830 do
9831   CC="$ac_save_CC $ac_arg"
9832   if ac_fn_c_try_compile "$LINENO"; then :
9833   ac_cv_prog_cc_c89=$ac_arg
9834 fi
9835 rm -f core conftest.err conftest.$ac_objext
9836   test "x$ac_cv_prog_cc_c89" != "xno" && break
9837 done
9838 rm -f conftest.$ac_ext
9839 CC=$ac_save_CC
9840 
9841 fi
9842 # AC_CACHE_VAL
9843 case "x$ac_cv_prog_cc_c89" in
9844   x)
9845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9846 $as_echo "none needed" >&6; } ;;
9847   xno)
9848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9849 $as_echo "unsupported" >&6; } ;;
9850   *)
9851     CC="$CC $ac_cv_prog_cc_c89"
9852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9854 esac
9855 if test "x$ac_cv_prog_cc_c89" != xno; then :
9856 
9857 fi
9858 
9859 ac_ext=cpp
9860 ac_cpp='$CXXCPP $CPPFLAGS'
9861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9864 
9865 if test "x$CC" = x; then
9866 
9867     # Print a helpful message on how to acquire the necessary build dependency.
9868     # devkit is the help tag: freetyp2, cups, pulse, alsa etc
9869     MISSING_DEPENDENCY=devkit
9870     PKGHANDLER_COMMAND=
9871 
9872     case $PKGHANDLER in
9873         apt-get)
9874                 apt_help     $MISSING_DEPENDENCY ;;
9875     yum)
9876                 yum_help     $MISSING_DEPENDENCY ;;
9877         port)
9878                 port_help    $MISSING_DEPENDENCY ;;
9879         pkgutil)
9880                 pkgutil_help $MISSING_DEPENDENCY ;;
9881         pkgadd)
9882                 pkgadd_help  $MISSING_DEPENDENCY ;;
9883     * )
9884       break ;;
9885     esac
9886 
9887     if test "x$PKGHANDLER_COMMAND" != x; then
9888         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
9889     fi
9890 
9891     as_fn_error $? "Could not find a compiler. $HELP_MSG" "$LINENO" 5
9892 fi
9893 if test "x$CC" = xcc && test "x$OPENJDK_BUILD_OS" = xmacosx; then
9894     # Do not use cc on MacOSX use gcc instead.
9895     CC="gcc"
9896 fi
9897 
9898     # Translate "gcc -E" into "`which gcc` -E" ie
9899     # extract the full path to the binary and at the
9900     # same time maintain any arguments passed to it.
9901     # The command MUST exist in the path, or else!
9902     tmp="$CC"
9903     car="${tmp%% *}"
9904     tmp="$CC EOL"
9905     cdr="${tmp#* }"
9906     # On windows we want paths without spaces.
9907     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
9908 
9909     # Translate long cygdrive or C:\sdfsf path
9910     # into a short mixed mode path that has no
9911     # spaces in it.
9912     tmp="$car"
9913 
9914     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
9915         tmp=`$CYGPATH -u "$car"`
9916         tmp=`which "$tmp"`
9917         # If file exists with .exe appended, that's the real filename
9918         # and cygpath needs that to convert to short style path.
9919         if test -f "${tmp}.exe"; then
9920            tmp="${tmp}.exe"
9921         elif test -f "${tmp}.cmd"; then
9922            tmp="${tmp}.cmd"
9923         fi
9924         # Convert to C:/ mixed style path without spaces.
9925          tmp=`$CYGPATH -s -m "$tmp"`
9926     fi
9927     car="$tmp"
9928 
9929     else
9930         # "which" is not portable, but is used here
9931         # because we know that the command exists!
9932         car=`which $car`
9933     fi
9934     if test "x$cdr" != xEOL; then
9935         CC="$car ${cdr% *}"
9936     else
9937         CC="$car"
9938     fi
9939 
9940 
9941 ac_ext=cpp
9942 ac_cpp='$CXXCPP $CPPFLAGS'
9943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9946 if test -z "$CXX"; then
9947   if test -n "$CCC"; then
9948     CXX=$CCC
9949   else
9950     if test -n "$ac_tool_prefix"; then
9951   for ac_prog in cl CC g++
9952   do
9953     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if test "${ac_cv_prog_CXX+set}" = set; then :
9958   $as_echo_n "(cached) " >&6
9959 else
9960   if test -n "$CXX"; then
9961   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9962 else
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
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 fi
9979 fi
9980 CXX=$ac_cv_prog_CXX
9981 if test -n "$CXX"; then
9982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9983 $as_echo "$CXX" >&6; }
9984 else
9985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9987 fi
9988 
9989 
9990     test -n "$CXX" && break
9991   done
9992 fi
9993 if test -z "$CXX"; then
9994   ac_ct_CXX=$CXX
9995   for ac_prog in cl CC g++
9996 do
9997   # Extract the first word of "$ac_prog", so it can be a program name with args.
9998 set dummy $ac_prog; ac_word=$2
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 $as_echo_n "checking for $ac_word... " >&6; }
10001 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   if test -n "$ac_ct_CXX"; then
10005   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10006 else
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10009 do
10010   IFS=$as_save_IFS
10011   test -z "$as_dir" && as_dir=.
10012     for ac_exec_ext in '' $ac_executable_extensions; do
10013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10014     ac_cv_prog_ac_ct_CXX="$ac_prog"
10015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016     break 2
10017   fi
10018 done
10019   done
10020 IFS=$as_save_IFS
10021 
10022 fi
10023 fi
10024 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10025 if test -n "$ac_ct_CXX"; then
10026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10027 $as_echo "$ac_ct_CXX" >&6; }
10028 else
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10031 fi
10032 
10033 
10034   test -n "$ac_ct_CXX" && break
10035 done
10036 
10037   if test "x$ac_ct_CXX" = x; then
10038     CXX="g++"
10039   else
10040     case $cross_compiling:$ac_tool_warned in
10041 yes:)
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10044 ac_tool_warned=yes ;;
10045 esac
10046     CXX=$ac_ct_CXX
10047   fi
10048 fi
10049 
10050   fi
10051 fi
10052 # Provide some information about the compiler.
10053 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10054 set X $ac_compile
10055 ac_compiler=$2
10056 for ac_option in --version -v -V -qversion; do
10057   { { ac_try="$ac_compiler $ac_option >&5"
10058 case "(($ac_try" in
10059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060   *) ac_try_echo=$ac_try;;
10061 esac
10062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10063 $as_echo "$ac_try_echo"; } >&5
10064   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10065   ac_status=$?
10066   if test -s conftest.err; then
10067     sed '10a\
10068 ... rest of stderr output deleted ...
10069          10q' conftest.err >conftest.er1
10070     cat conftest.er1 >&5
10071   fi
10072   rm -f conftest.er1 conftest.err
10073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10074   test $ac_status = 0; }
10075 done
10076 
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10078 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10079 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10080   $as_echo_n "(cached) " >&6
10081 else
10082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h.  */
10084 
10085 int
10086 main ()
10087 {
10088 #ifndef __GNUC__
10089        choke me
10090 #endif
10091 
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 if ac_fn_cxx_try_compile "$LINENO"; then :
10097   ac_compiler_gnu=yes
10098 else
10099   ac_compiler_gnu=no
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10103 
10104 fi
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10106 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10107 if test $ac_compiler_gnu = yes; then
10108   GXX=yes
10109 else
10110   GXX=
10111 fi
10112 ac_test_CXXFLAGS=${CXXFLAGS+set}
10113 ac_save_CXXFLAGS=$CXXFLAGS
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10115 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10116 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10117   $as_echo_n "(cached) " >&6
10118 else
10119   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10120    ac_cxx_werror_flag=yes
10121    ac_cv_prog_cxx_g=no
10122    CXXFLAGS="-g"
10123    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h.  */
10125 
10126 int
10127 main ()
10128 {
10129 
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 if ac_fn_cxx_try_compile "$LINENO"; then :
10135   ac_cv_prog_cxx_g=yes
10136 else
10137   CXXFLAGS=""
10138       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h.  */
10140 
10141 int
10142 main ()
10143 {
10144 
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 if ac_fn_cxx_try_compile "$LINENO"; then :
10150 
10151 else
10152   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10153          CXXFLAGS="-g"
10154          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h.  */
10156 
10157 int
10158 main ()
10159 {
10160 
10161   ;
10162   return 0;
10163 }
10164 _ACEOF
10165 if ac_fn_cxx_try_compile "$LINENO"; then :
10166   ac_cv_prog_cxx_g=yes
10167 fi
10168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10169 fi
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 fi
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10174 fi
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10176 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10177 if test "$ac_test_CXXFLAGS" = set; then
10178   CXXFLAGS=$ac_save_CXXFLAGS
10179 elif test $ac_cv_prog_cxx_g = yes; then
10180   if test "$GXX" = yes; then
10181     CXXFLAGS="-g -O2"
10182   else
10183     CXXFLAGS="-g"
10184   fi
10185 else
10186   if test "$GXX" = yes; then
10187     CXXFLAGS="-O2"
10188   else
10189     CXXFLAGS=
10190   fi
10191 fi
10192 ac_ext=cpp
10193 ac_cpp='$CXXCPP $CPPFLAGS'
10194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10197 
10198 if test "x$CXX" = xCC && test "x$OPENJDK_BUILD_OS" = xmacosx; then
10199     # The found CC, even though it seems to be a g++ derivate, cannot compile
10200     # c++ code. Override.
10201     CXX="g++"
10202 fi
10203 
10204     # Translate "gcc -E" into "`which gcc` -E" ie
10205     # extract the full path to the binary and at the
10206     # same time maintain any arguments passed to it.
10207     # The command MUST exist in the path, or else!
10208     tmp="$CXX"
10209     car="${tmp%% *}"
10210     tmp="$CXX EOL"
10211     cdr="${tmp#* }"
10212     # On windows we want paths without spaces.
10213     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
10214 
10215     # Translate long cygdrive or C:\sdfsf path
10216     # into a short mixed mode path that has no
10217     # spaces in it.
10218     tmp="$car"
10219 
10220     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
10221         tmp=`$CYGPATH -u "$car"`
10222         tmp=`which "$tmp"`
10223         # If file exists with .exe appended, that's the real filename
10224         # and cygpath needs that to convert to short style path.
10225         if test -f "${tmp}.exe"; then
10226            tmp="${tmp}.exe"
10227         elif test -f "${tmp}.cmd"; then
10228            tmp="${tmp}.cmd"
10229         fi
10230         # Convert to C:/ mixed style path without spaces.
10231          tmp=`$CYGPATH -s -m "$tmp"`
10232     fi
10233     car="$tmp"
10234 
10235     else
10236         # "which" is not portable, but is used here
10237         # because we know that the command exists!
10238         car=`which $car`
10239     fi
10240     if test "x$cdr" != xEOL; then
10241         CXX="$car ${cdr% *}"
10242     else
10243         CXX="$car"
10244     fi
10245 
10246 
10247 if test "x$CXX" = x || test "x$CC" = x; then
10248 
10249     # Print a helpful message on how to acquire the necessary build dependency.
10250     # devkit is the help tag: freetyp2, cups, pulse, alsa etc
10251     MISSING_DEPENDENCY=devkit
10252     PKGHANDLER_COMMAND=
10253 
10254     case $PKGHANDLER in
10255         apt-get)
10256                 apt_help     $MISSING_DEPENDENCY ;;
10257     yum)
10258                 yum_help     $MISSING_DEPENDENCY ;;
10259         port)
10260                 port_help    $MISSING_DEPENDENCY ;;
10261         pkgutil)
10262                 pkgutil_help $MISSING_DEPENDENCY ;;
10263         pkgadd)
10264                 pkgadd_help  $MISSING_DEPENDENCY ;;
10265     * )
10266       break ;;
10267     esac
10268 
10269     if test "x$PKGHANDLER_COMMAND" != x; then
10270         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
10271     fi
10272 
10273     as_fn_error $? "Could not find the needed compilers! $HELP_MSG " "$LINENO" 5
10274 fi
10275 
10276 if test "x$OPENJDK_BUILD_OS" != xwindows; then
10277     ac_ext=m
10278 ac_cpp='$OBJCPP $CPPFLAGS'
10279 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10280 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10281 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
10282 if test -n "$ac_tool_prefix"; then
10283   for ac_prog in gcc objcc objc cc CC
10284   do
10285     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if test "${ac_cv_prog_OBJC+set}" = set; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   if test -n "$OBJC"; then
10293   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300     for ac_exec_ext in '' $ac_executable_extensions; do
10301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
10303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307   done
10308 IFS=$as_save_IFS
10309 
10310 fi
10311 fi
10312 OBJC=$ac_cv_prog_OBJC
10313 if test -n "$OBJC"; then
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
10315 $as_echo "$OBJC" >&6; }
10316 else
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320 
10321 
10322     test -n "$OBJC" && break
10323   done
10324 fi
10325 if test -z "$OBJC"; then
10326   ac_ct_OBJC=$OBJC
10327   for ac_prog in gcc objcc objc cc CC
10328 do
10329   # Extract the first word of "$ac_prog", so it can be a program name with args.
10330 set dummy $ac_prog; ac_word=$2
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 $as_echo_n "checking for $ac_word... " >&6; }
10333 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
10334   $as_echo_n "(cached) " >&6
10335 else
10336   if test -n "$ac_ct_OBJC"; then
10337   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
10338 else
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in $PATH
10341 do
10342   IFS=$as_save_IFS
10343   test -z "$as_dir" && as_dir=.
10344     for ac_exec_ext in '' $ac_executable_extensions; do
10345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10346     ac_cv_prog_ac_ct_OBJC="$ac_prog"
10347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348     break 2
10349   fi
10350 done
10351   done
10352 IFS=$as_save_IFS
10353 
10354 fi
10355 fi
10356 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
10357 if test -n "$ac_ct_OBJC"; then
10358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
10359 $as_echo "$ac_ct_OBJC" >&6; }
10360 else
10361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10363 fi
10364 
10365 
10366   test -n "$ac_ct_OBJC" && break
10367 done
10368 
10369   if test "x$ac_ct_OBJC" = x; then
10370     OBJC="gcc"
10371   else
10372     case $cross_compiling:$ac_tool_warned in
10373 yes:)
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10376 ac_tool_warned=yes ;;
10377 esac
10378     OBJC=$ac_ct_OBJC
10379   fi
10380 fi
10381 
10382 # Provide some information about the compiler.
10383 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
10384 set X $ac_compile
10385 ac_compiler=$2
10386 for ac_option in --version -v -V -qversion; do
10387   { { ac_try="$ac_compiler $ac_option >&5"
10388 case "(($ac_try" in
10389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390   *) ac_try_echo=$ac_try;;
10391 esac
10392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10393 $as_echo "$ac_try_echo"; } >&5
10394   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10395   ac_status=$?
10396   if test -s conftest.err; then
10397     sed '10a\
10398 ... rest of stderr output deleted ...
10399          10q' conftest.err >conftest.er1
10400     cat conftest.er1 >&5
10401   fi
10402   rm -f conftest.er1 conftest.err
10403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10404   test $ac_status = 0; }
10405 done
10406 
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
10408 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
10409 if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
10410   $as_echo_n "(cached) " >&6
10411 else
10412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h.  */
10414 
10415 int
10416 main ()
10417 {
10418 #ifndef __GNUC__
10419        choke me
10420 #endif
10421 
10422   ;
10423   return 0;
10424 }
10425 _ACEOF
10426 if ac_fn_objc_try_compile "$LINENO"; then :
10427   ac_compiler_gnu=yes
10428 else
10429   ac_compiler_gnu=no
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
10433 
10434 fi
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
10436 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
10437 if test $ac_compiler_gnu = yes; then
10438   GOBJC=yes
10439 else
10440   GOBJC=
10441 fi
10442 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
10443 ac_save_OBJCFLAGS=$OBJCFLAGS
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
10445 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
10446 if test "${ac_cv_prog_objc_g+set}" = set; then :
10447   $as_echo_n "(cached) " >&6
10448 else
10449   ac_save_objc_werror_flag=$ac_objc_werror_flag
10450    ac_objc_werror_flag=yes
10451    ac_cv_prog_objc_g=no
10452    OBJCFLAGS="-g"
10453    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h.  */
10455 
10456 int
10457 main ()
10458 {
10459 
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 if ac_fn_objc_try_compile "$LINENO"; then :
10465   ac_cv_prog_objc_g=yes
10466 else
10467   OBJCFLAGS=""
10468       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h.  */
10470 
10471 int
10472 main ()
10473 {
10474 
10475   ;
10476   return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_objc_try_compile "$LINENO"; then :
10480 
10481 else
10482   ac_objc_werror_flag=$ac_save_objc_werror_flag
10483          OBJCFLAGS="-g"
10484          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h.  */
10486 
10487 int
10488 main ()
10489 {
10490 
10491   ;
10492   return 0;
10493 }
10494 _ACEOF
10495 if ac_fn_objc_try_compile "$LINENO"; then :
10496   ac_cv_prog_objc_g=yes
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 fi
10502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10503    ac_objc_werror_flag=$ac_save_objc_werror_flag
10504 fi
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
10506 $as_echo "$ac_cv_prog_objc_g" >&6; }
10507 if test "$ac_test_OBJCFLAGS" = set; then
10508   OBJCFLAGS=$ac_save_OBJCFLAGS
10509 elif test $ac_cv_prog_objc_g = yes; then
10510   if test "$GOBJC" = yes; then
10511     OBJCFLAGS="-g -O2"
10512   else
10513     OBJCFLAGS="-g"
10514   fi
10515 else
10516   if test "$GOBJC" = yes; then
10517     OBJCFLAGS="-O2"
10518   else
10519     OBJCFLAGS=
10520   fi
10521 fi
10522 ac_ext=cpp
10523 ac_cpp='$CXXCPP $CPPFLAGS'
10524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10527 
10528 
10529     # Translate "gcc -E" into "`which gcc` -E" ie
10530     # extract the full path to the binary and at the
10531     # same time maintain any arguments passed to it.
10532     # The command MUST exist in the path, or else!
10533     tmp="$OBJC"
10534     car="${tmp%% *}"
10535     tmp="$OBJC EOL"
10536     cdr="${tmp#* }"
10537     # On windows we want paths without spaces.
10538     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
10539 
10540     # Translate long cygdrive or C:\sdfsf path
10541     # into a short mixed mode path that has no
10542     # spaces in it.
10543     tmp="$car"
10544 
10545     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
10546         tmp=`$CYGPATH -u "$car"`
10547         tmp=`which "$tmp"`
10548         # If file exists with .exe appended, that's the real filename
10549         # and cygpath needs that to convert to short style path.
10550         if test -f "${tmp}.exe"; then
10551            tmp="${tmp}.exe"
10552         elif test -f "${tmp}.cmd"; then
10553            tmp="${tmp}.cmd"
10554         fi
10555         # Convert to C:/ mixed style path without spaces.
10556          tmp=`$CYGPATH -s -m "$tmp"`
10557     fi
10558     car="$tmp"
10559 
10560     else
10561         # "which" is not portable, but is used here
10562         # because we know that the command exists!
10563         car=`which $car`
10564     fi
10565     if test "x$cdr" != xEOL; then
10566         OBJC="$car ${cdr% *}"
10567     else
10568         OBJC="$car"
10569     fi
10570 
10571 else
10572     OBJC=
10573 fi
10574 
10575 # Restore the flags to the user specified values.
10576 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
10577 CFLAGS="$ORG_CFLAGS"
10578 CXXFLAGS="$ORG_CXXFLAGS"
10579 OBJCFLAGS="$ORG_OBJCFLAGS"
10580 
10581 # If we are not cross compiling, use the same compilers for
10582 # building the build platform executables.
10583 if test "x$DEFINE_CROSS_COMPILE_ARCH" = x; then
10584     HOSTCC="$CC"
10585     HOSTCXX="$CXX"
10586 fi
10587 
10588 if test -n "$ac_tool_prefix"; then
10589   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
10590 set dummy ${ac_tool_prefix}ld; ac_word=$2
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592 $as_echo_n "checking for $ac_word... " >&6; }
10593 if test "${ac_cv_prog_LD+set}" = set; then :
10594   $as_echo_n "(cached) " >&6
10595 else
10596   if test -n "$LD"; then
10597   ac_cv_prog_LD="$LD" # Let the user override the test.
10598 else
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10601 do
10602   IFS=$as_save_IFS
10603   test -z "$as_dir" && as_dir=.
10604     for ac_exec_ext in '' $ac_executable_extensions; do
10605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10606     ac_cv_prog_LD="${ac_tool_prefix}ld"
10607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608     break 2
10609   fi
10610 done
10611   done
10612 IFS=$as_save_IFS
10613 
10614 fi
10615 fi
10616 LD=$ac_cv_prog_LD
10617 if test -n "$LD"; then
10618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10619 $as_echo "$LD" >&6; }
10620 else
10621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10623 fi
10624 
10625 
10626 fi
10627 if test -z "$ac_cv_prog_LD"; then
10628   ac_ct_LD=$LD
10629   # Extract the first word of "ld", so it can be a program name with args.
10630 set dummy ld; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
10634   $as_echo_n "(cached) " >&6
10635 else
10636   if test -n "$ac_ct_LD"; then
10637   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
10638 else
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10641 do
10642   IFS=$as_save_IFS
10643   test -z "$as_dir" && as_dir=.
10644     for ac_exec_ext in '' $ac_executable_extensions; do
10645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10646     ac_cv_prog_ac_ct_LD="ld"
10647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10648     break 2
10649   fi
10650 done
10651   done
10652 IFS=$as_save_IFS
10653 
10654 fi
10655 fi
10656 ac_ct_LD=$ac_cv_prog_ac_ct_LD
10657 if test -n "$ac_ct_LD"; then
10658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
10659 $as_echo "$ac_ct_LD" >&6; }
10660 else
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10663 fi
10664 
10665   if test "x$ac_ct_LD" = x; then
10666     LD=""
10667   else
10668     case $cross_compiling:$ac_tool_warned in
10669 yes:)
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10672 ac_tool_warned=yes ;;
10673 esac
10674     LD=$ac_ct_LD
10675   fi
10676 else
10677   LD="$ac_cv_prog_LD"
10678 fi
10679 
10680 
10681     # Translate "gcc -E" into "`which gcc` -E" ie
10682     # extract the full path to the binary and at the
10683     # same time maintain any arguments passed to it.
10684     # The command MUST exist in the path, or else!
10685     tmp="$LD"
10686     car="${tmp%% *}"
10687     tmp="$LD EOL"
10688     cdr="${tmp#* }"
10689     # On windows we want paths without spaces.
10690     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
10691 
10692     # Translate long cygdrive or C:\sdfsf path
10693     # into a short mixed mode path that has no
10694     # spaces in it.
10695     tmp="$car"
10696 
10697     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
10698         tmp=`$CYGPATH -u "$car"`
10699         tmp=`which "$tmp"`
10700         # If file exists with .exe appended, that's the real filename
10701         # and cygpath needs that to convert to short style path.
10702         if test -f "${tmp}.exe"; then
10703            tmp="${tmp}.exe"
10704         elif test -f "${tmp}.cmd"; then
10705            tmp="${tmp}.cmd"
10706         fi
10707         # Convert to C:/ mixed style path without spaces.
10708          tmp=`$CYGPATH -s -m "$tmp"`
10709     fi
10710     car="$tmp"
10711 
10712     else
10713         # "which" is not portable, but is used here
10714         # because we know that the command exists!
10715         car=`which $car`
10716     fi
10717     if test "x$cdr" != xEOL; then
10718         LD="$car ${cdr% *}"
10719     else
10720         LD="$car"
10721     fi
10722 
10723 LD="$CC"
10724 LDEXE="$CC"
10725 LDCXX="$CXX"
10726 LDEXECXX="$CXX"
10727 # LDEXE is the linker to use, when creating executables.
10728 
10729 # Linking C++ libraries.
10730 
10731 # Linking C++ executables.
10732 
10733 
10734 if test -n "$ac_tool_prefix"; then
10735   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10736 set dummy ${ac_tool_prefix}ar; ac_word=$2
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738 $as_echo_n "checking for $ac_word... " >&6; }
10739 if test "${ac_cv_prog_AR+set}" = set; then :
10740   $as_echo_n "(cached) " >&6
10741 else
10742   if test -n "$AR"; then
10743   ac_cv_prog_AR="$AR" # Let the user override the test.
10744 else
10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $PATH
10747 do
10748   IFS=$as_save_IFS
10749   test -z "$as_dir" && as_dir=.
10750     for ac_exec_ext in '' $ac_executable_extensions; do
10751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10752     ac_cv_prog_AR="${ac_tool_prefix}ar"
10753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10754     break 2
10755   fi
10756 done
10757   done
10758 IFS=$as_save_IFS
10759 
10760 fi
10761 fi
10762 AR=$ac_cv_prog_AR
10763 if test -n "$AR"; then
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10765 $as_echo "$AR" >&6; }
10766 else
10767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10769 fi
10770 
10771 
10772 fi
10773 if test -z "$ac_cv_prog_AR"; then
10774   ac_ct_AR=$AR
10775   # Extract the first word of "ar", so it can be a program name with args.
10776 set dummy ar; ac_word=$2
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778 $as_echo_n "checking for $ac_word... " >&6; }
10779 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10780   $as_echo_n "(cached) " >&6
10781 else
10782   if test -n "$ac_ct_AR"; then
10783   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10784 else
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10787 do
10788   IFS=$as_save_IFS
10789   test -z "$as_dir" && as_dir=.
10790     for ac_exec_ext in '' $ac_executable_extensions; do
10791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10792     ac_cv_prog_ac_ct_AR="ar"
10793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794     break 2
10795   fi
10796 done
10797   done
10798 IFS=$as_save_IFS
10799 
10800 fi
10801 fi
10802 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10803 if test -n "$ac_ct_AR"; then
10804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10805 $as_echo "$ac_ct_AR" >&6; }
10806 else
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10809 fi
10810 
10811   if test "x$ac_ct_AR" = x; then
10812     AR=""
10813   else
10814     case $cross_compiling:$ac_tool_warned in
10815 yes:)
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10818 ac_tool_warned=yes ;;
10819 esac
10820     AR=$ac_ct_AR
10821   fi
10822 else
10823   AR="$ac_cv_prog_AR"
10824 fi
10825 
10826 
10827     # Translate "gcc -E" into "`which gcc` -E" ie
10828     # extract the full path to the binary and at the
10829     # same time maintain any arguments passed to it.
10830     # The command MUST exist in the path, or else!
10831     tmp="$AR"
10832     car="${tmp%% *}"
10833     tmp="$AR EOL"
10834     cdr="${tmp#* }"
10835     # On windows we want paths without spaces.
10836     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
10837 
10838     # Translate long cygdrive or C:\sdfsf path
10839     # into a short mixed mode path that has no
10840     # spaces in it.
10841     tmp="$car"
10842 
10843     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
10844         tmp=`$CYGPATH -u "$car"`
10845         tmp=`which "$tmp"`
10846         # If file exists with .exe appended, that's the real filename
10847         # and cygpath needs that to convert to short style path.
10848         if test -f "${tmp}.exe"; then
10849            tmp="${tmp}.exe"
10850         elif test -f "${tmp}.cmd"; then
10851            tmp="${tmp}.cmd"
10852         fi
10853         # Convert to C:/ mixed style path without spaces.
10854          tmp=`$CYGPATH -s -m "$tmp"`
10855     fi
10856     car="$tmp"
10857 
10858     else
10859         # "which" is not portable, but is used here
10860         # because we know that the command exists!
10861         car=`which $car`
10862     fi
10863     if test "x$cdr" != xEOL; then
10864         AR="$car ${cdr% *}"
10865     else
10866         AR="$car"
10867     fi
10868 
10869 if test "x$OPENJDK_BUILD_OS" = xmacosx; then
10870     ARFLAGS="-r"
10871 else
10872     ARFLAGS=""
10873 fi
10874 
10875 
10876 COMPILER_NAME=gcc
10877 COMPILER_TYPE=CC
10878 if test "x$OPENJDK_BUILD_OS" = xwindows; then :
10879 
10880     # For now, assume that we are always compiling using cl.exe.
10881     CC_OUT_OPTION=-Fo
10882     EXE_OUT_OPTION=-out:
10883     LD_OUT_OPTION=-out:
10884     AR_OUT_OPTION=-out:
10885     # On Windows, reject /usr/bin/link, which is a cygwin
10886     # program for something completely different.
10887     # Extract the first word of "link", so it can be a program name with args.
10888 set dummy link; ac_word=$2
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10890 $as_echo_n "checking for $ac_word... " >&6; }
10891 if test "${ac_cv_prog_WINLD+set}" = set; then :
10892   $as_echo_n "(cached) " >&6
10893 else
10894   if test -n "$WINLD"; then
10895   ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
10896 else
10897   ac_prog_rejected=no
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10900 do
10901   IFS=$as_save_IFS
10902   test -z "$as_dir" && as_dir=.
10903     for ac_exec_ext in '' $ac_executable_extensions; do
10904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10905     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/link"; then
10906        ac_prog_rejected=yes
10907        continue
10908      fi
10909     ac_cv_prog_WINLD="link"
10910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10911     break 2
10912   fi
10913 done
10914   done
10915 IFS=$as_save_IFS
10916 
10917 if test $ac_prog_rejected = yes; then
10918   # We found a bogon in the path, so make sure we never use it.
10919   set dummy $ac_cv_prog_WINLD
10920   shift
10921   if test $# != 0; then
10922     # We chose a different compiler from the bogus one.
10923     # However, it has the same basename, so the bogon will be chosen
10924     # first if we set WINLD to just the basename; use the full file name.
10925     shift
10926     ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@"
10927   fi
10928 fi
10929 fi
10930 fi
10931 WINLD=$ac_cv_prog_WINLD
10932 if test -n "$WINLD"; then
10933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5
10934 $as_echo "$WINLD" >&6; }
10935 else
10936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937 $as_echo "no" >&6; }
10938 fi
10939 
10940 
10941     # Since we must ignore the first found link, WINLD will contain
10942     # the full path to the link.exe program.
10943 
10944     # Translate long cygdrive or C:\sdfsf path
10945     # into a short mixed mode path that has no
10946     # spaces in it.
10947     tmp="$WINLD"
10948 
10949     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
10950         tmp=`$CYGPATH -u "$WINLD"`
10951         tmp=`which "$tmp"`
10952         # If file exists with .exe appended, that's the real filename
10953         # and cygpath needs that to convert to short style path.
10954         if test -f "${tmp}.exe"; then
10955            tmp="${tmp}.exe"
10956         elif test -f "${tmp}.cmd"; then
10957            tmp="${tmp}.cmd"
10958         fi
10959         # Convert to C:/ mixed style path without spaces.
10960          tmp=`$CYGPATH -s -m "$tmp"`
10961     fi
10962     WINLD="$tmp"
10963 
10964     LD="$WINLD"
10965     LDEXE="$WINLD"
10966     LDCXX="$WINLD"
10967     LDEXECXX="$WINLD"
10968     # Set HOSTLD to same as LD until we fully support cross compilation
10969     # on windows.
10970     HOSTLD="$WINLD"
10971 
10972     # Extract the first word of "mt", so it can be a program name with args.
10973 set dummy mt; ac_word=$2
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975 $as_echo_n "checking for $ac_word... " >&6; }
10976 if test "${ac_cv_prog_MT+set}" = set; then :
10977   $as_echo_n "(cached) " >&6
10978 else
10979   if test -n "$MT"; then
10980   ac_cv_prog_MT="$MT" # Let the user override the test.
10981 else
10982   ac_prog_rejected=no
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10985 do
10986   IFS=$as_save_IFS
10987   test -z "$as_dir" && as_dir=.
10988     for ac_exec_ext in '' $ac_executable_extensions; do
10989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
10991        ac_prog_rejected=yes
10992        continue
10993      fi
10994     ac_cv_prog_MT="mt"
10995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996     break 2
10997   fi
10998 done
10999   done
11000 IFS=$as_save_IFS
11001 
11002 if test $ac_prog_rejected = yes; then
11003   # We found a bogon in the path, so make sure we never use it.
11004   set dummy $ac_cv_prog_MT
11005   shift
11006   if test $# != 0; then
11007     # We chose a different compiler from the bogus one.
11008     # However, it has the same basename, so the bogon will be chosen
11009     # first if we set MT to just the basename; use the full file name.
11010     shift
11011     ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@"
11012   fi
11013 fi
11014 fi
11015 fi
11016 MT=$ac_cv_prog_MT
11017 if test -n "$MT"; then
11018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
11019 $as_echo "$MT" >&6; }
11020 else
11021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11023 fi
11024 
11025 
11026 
11027     # Translate long cygdrive or C:\sdfsf path
11028     # into a short mixed mode path that has no
11029     # spaces in it.
11030     tmp="$MT"
11031 
11032     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11033         tmp=`$CYGPATH -u "$MT"`
11034         tmp=`which "$tmp"`
11035         # If file exists with .exe appended, that's the real filename
11036         # and cygpath needs that to convert to short style path.
11037         if test -f "${tmp}.exe"; then
11038            tmp="${tmp}.exe"
11039         elif test -f "${tmp}.cmd"; then
11040            tmp="${tmp}.cmd"
11041         fi
11042         # Convert to C:/ mixed style path without spaces.
11043          tmp=`$CYGPATH -s -m "$tmp"`
11044     fi
11045     MT="$tmp"
11046 
11047     # The resource compiler
11048     # Extract the first word of "rc", so it can be a program name with args.
11049 set dummy rc; ac_word=$2
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051 $as_echo_n "checking for $ac_word... " >&6; }
11052 if test "${ac_cv_prog_RC+set}" = set; then :
11053   $as_echo_n "(cached) " >&6
11054 else
11055   if test -n "$RC"; then
11056   ac_cv_prog_RC="$RC" # Let the user override the test.
11057 else
11058   ac_prog_rejected=no
11059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060 for as_dir in $PATH
11061 do
11062   IFS=$as_save_IFS
11063   test -z "$as_dir" && as_dir=.
11064     for ac_exec_ext in '' $ac_executable_extensions; do
11065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11066     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
11067        ac_prog_rejected=yes
11068        continue
11069      fi
11070     ac_cv_prog_RC="rc"
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 if test $ac_prog_rejected = yes; then
11079   # We found a bogon in the path, so make sure we never use it.
11080   set dummy $ac_cv_prog_RC
11081   shift
11082   if test $# != 0; then
11083     # We chose a different compiler from the bogus one.
11084     # However, it has the same basename, so the bogon will be chosen
11085     # first if we set RC to just the basename; use the full file name.
11086     shift
11087     ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@"
11088   fi
11089 fi
11090 fi
11091 fi
11092 RC=$ac_cv_prog_RC
11093 if test -n "$RC"; then
11094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
11095 $as_echo "$RC" >&6; }
11096 else
11097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11099 fi
11100 
11101 
11102 
11103     # Translate long cygdrive or C:\sdfsf path
11104     # into a short mixed mode path that has no
11105     # spaces in it.
11106     tmp="$RC"
11107 
11108     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11109         tmp=`$CYGPATH -u "$RC"`
11110         tmp=`which "$tmp"`
11111         # If file exists with .exe appended, that's the real filename
11112         # and cygpath needs that to convert to short style path.
11113         if test -f "${tmp}.exe"; then
11114            tmp="${tmp}.exe"
11115         elif test -f "${tmp}.cmd"; then
11116            tmp="${tmp}.cmd"
11117         fi
11118         # Convert to C:/ mixed style path without spaces.
11119          tmp=`$CYGPATH -s -m "$tmp"`
11120     fi
11121     RC="$tmp"
11122 
11123 
11124     RC_FLAGS="-nologo /l 0x409 /r"
11125     if test "x$VARIANT" = xOPT; then :
11126 
11127         RC_FLAGS="$RC_FLAGS -d NDEBUG"
11128 
11129 fi
11130     JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
11131     if test "x$JDK_UPDATE_VERSION" = x; then :
11132 
11133         JDK_UPDATE_VERSION_NOTNULL=0
11134 
11135 fi
11136     RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
11137     RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
11138     RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
11139     RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
11140     RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
11141     RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
11142     RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
11143 
11144     # lib.exe is used to create static libraries.
11145     # Extract the first word of "lib", so it can be a program name with args.
11146 set dummy lib; ac_word=$2
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if test "${ac_cv_prog_WINAR+set}" = set; then :
11150   $as_echo_n "(cached) " >&6
11151 else
11152   if test -n "$WINAR"; then
11153   ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
11154 else
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11157 do
11158   IFS=$as_save_IFS
11159   test -z "$as_dir" && as_dir=.
11160     for ac_exec_ext in '' $ac_executable_extensions; do
11161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11162     ac_cv_prog_WINAR="lib"
11163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11164     break 2
11165   fi
11166 done
11167   done
11168 IFS=$as_save_IFS
11169 
11170 fi
11171 fi
11172 WINAR=$ac_cv_prog_WINAR
11173 if test -n "$WINAR"; then
11174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
11175 $as_echo "$WINAR" >&6; }
11176 else
11177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11179 fi
11180 
11181 
11182 
11183     # Translate long cygdrive or C:\sdfsf path
11184     # into a short mixed mode path that has no
11185     # spaces in it.
11186     tmp="$WINAR"
11187 
11188     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11189         tmp=`$CYGPATH -u "$WINAR"`
11190         tmp=`which "$tmp"`
11191         # If file exists with .exe appended, that's the real filename
11192         # and cygpath needs that to convert to short style path.
11193         if test -f "${tmp}.exe"; then
11194            tmp="${tmp}.exe"
11195         elif test -f "${tmp}.cmd"; then
11196            tmp="${tmp}.cmd"
11197         fi
11198         # Convert to C:/ mixed style path without spaces.
11199          tmp=`$CYGPATH -s -m "$tmp"`
11200     fi
11201     WINAR="$tmp"
11202 
11203     AR="$WINAR"
11204     ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
11205 
11206     # Extract the first word of "dumpbin", so it can be a program name with args.
11207 set dummy dumpbin; ac_word=$2
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11211   $as_echo_n "(cached) " >&6
11212 else
11213   if test -n "$DUMPBIN"; then
11214   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219   IFS=$as_save_IFS
11220   test -z "$as_dir" && as_dir=.
11221     for ac_exec_ext in '' $ac_executable_extensions; do
11222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223     ac_cv_prog_DUMPBIN="dumpbin"
11224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225     break 2
11226   fi
11227 done
11228   done
11229 IFS=$as_save_IFS
11230 
11231 fi
11232 fi
11233 DUMPBIN=$ac_cv_prog_DUMPBIN
11234 if test -n "$DUMPBIN"; then
11235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11236 $as_echo "$DUMPBIN" >&6; }
11237 else
11238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11240 fi
11241 
11242 
11243 
11244     # Translate long cygdrive or C:\sdfsf path
11245     # into a short mixed mode path that has no
11246     # spaces in it.
11247     tmp="$DUMPBIN"
11248 
11249     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11250         tmp=`$CYGPATH -u "$DUMPBIN"`
11251         tmp=`which "$tmp"`
11252         # If file exists with .exe appended, that's the real filename
11253         # and cygpath needs that to convert to short style path.
11254         if test -f "${tmp}.exe"; then
11255            tmp="${tmp}.exe"
11256         elif test -f "${tmp}.cmd"; then
11257            tmp="${tmp}.cmd"
11258         fi
11259         # Convert to C:/ mixed style path without spaces.
11260          tmp=`$CYGPATH -s -m "$tmp"`
11261     fi
11262     DUMPBIN="$tmp"
11263 
11264 
11265     COMPILER_TYPE=CL
11266     CCXXFLAGS="$CCXXFLAGS -nologo"
11267 
11268 fi
11269 
11270 
11271 
11272 ac_ext=c
11273 ac_cpp='$CPP $CPPFLAGS'
11274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11278 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11279 # On Suns, sometimes $CPP names a directory.
11280 if test -n "$CPP" && test -d "$CPP"; then
11281   CPP=
11282 fi
11283 if test -z "$CPP"; then
11284   if test "${ac_cv_prog_CPP+set}" = set; then :
11285   $as_echo_n "(cached) " >&6
11286 else
11287       # Double quotes because CPP needs to be expanded
11288     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11289     do
11290       ac_preproc_ok=false
11291 for ac_c_preproc_warn_flag in '' yes
11292 do
11293   # Use a header file that comes with gcc, so configuring glibc
11294   # with a fresh cross-compiler works.
11295   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11296   # <limits.h> exists even on freestanding compilers.
11297   # On the NeXT, cc -E runs the code through the compiler's parser,
11298   # not just through cpp. "Syntax error" is here to catch this case.
11299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h.  */
11301 #ifdef __STDC__
11302 # include <limits.h>
11303 #else
11304 # include <assert.h>
11305 #endif
11306                      Syntax error
11307 _ACEOF
11308 if ac_fn_c_try_cpp "$LINENO"; then :
11309 
11310 else
11311   # Broken: fails on valid input.
11312 continue
11313 fi
11314 rm -f conftest.err conftest.i conftest.$ac_ext
11315 
11316   # OK, works on sane cases.  Now check whether nonexistent headers
11317   # can be detected and how.
11318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h.  */
11320 #include <ac_nonexistent.h>
11321 _ACEOF
11322 if ac_fn_c_try_cpp "$LINENO"; then :
11323   # Broken: success on invalid input.
11324 continue
11325 else
11326   # Passes both tests.
11327 ac_preproc_ok=:
11328 break
11329 fi
11330 rm -f conftest.err conftest.i conftest.$ac_ext
11331 
11332 done
11333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11334 rm -f conftest.i conftest.err conftest.$ac_ext
11335 if $ac_preproc_ok; then :
11336   break
11337 fi
11338 
11339     done
11340     ac_cv_prog_CPP=$CPP
11341 
11342 fi
11343   CPP=$ac_cv_prog_CPP
11344 else
11345   ac_cv_prog_CPP=$CPP
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11348 $as_echo "$CPP" >&6; }
11349 ac_preproc_ok=false
11350 for ac_c_preproc_warn_flag in '' yes
11351 do
11352   # Use a header file that comes with gcc, so configuring glibc
11353   # with a fresh cross-compiler works.
11354   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11355   # <limits.h> exists even on freestanding compilers.
11356   # On the NeXT, cc -E runs the code through the compiler's parser,
11357   # not just through cpp. "Syntax error" is here to catch this case.
11358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h.  */
11360 #ifdef __STDC__
11361 # include <limits.h>
11362 #else
11363 # include <assert.h>
11364 #endif
11365                      Syntax error
11366 _ACEOF
11367 if ac_fn_c_try_cpp "$LINENO"; then :
11368 
11369 else
11370   # Broken: fails on valid input.
11371 continue
11372 fi
11373 rm -f conftest.err conftest.i conftest.$ac_ext
11374 
11375   # OK, works on sane cases.  Now check whether nonexistent headers
11376   # can be detected and how.
11377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h.  */
11379 #include <ac_nonexistent.h>
11380 _ACEOF
11381 if ac_fn_c_try_cpp "$LINENO"; then :
11382   # Broken: success on invalid input.
11383 continue
11384 else
11385   # Passes both tests.
11386 ac_preproc_ok=:
11387 break
11388 fi
11389 rm -f conftest.err conftest.i conftest.$ac_ext
11390 
11391 done
11392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11393 rm -f conftest.i conftest.err conftest.$ac_ext
11394 if $ac_preproc_ok; then :
11395 
11396 else
11397   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11399 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11400 See \`config.log' for more details" "$LINENO" 5 ; }
11401 fi
11402 
11403 ac_ext=cpp
11404 ac_cpp='$CXXCPP $CPPFLAGS'
11405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11408 
11409 
11410     # Translate "gcc -E" into "`which gcc` -E" ie
11411     # extract the full path to the binary and at the
11412     # same time maintain any arguments passed to it.
11413     # The command MUST exist in the path, or else!
11414     tmp="$CPP"
11415     car="${tmp%% *}"
11416     tmp="$CPP EOL"
11417     cdr="${tmp#* }"
11418     # On windows we want paths without spaces.
11419     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11420 
11421     # Translate long cygdrive or C:\sdfsf path
11422     # into a short mixed mode path that has no
11423     # spaces in it.
11424     tmp="$car"
11425 
11426     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11427         tmp=`$CYGPATH -u "$car"`
11428         tmp=`which "$tmp"`
11429         # If file exists with .exe appended, that's the real filename
11430         # and cygpath needs that to convert to short style path.
11431         if test -f "${tmp}.exe"; then
11432            tmp="${tmp}.exe"
11433         elif test -f "${tmp}.cmd"; then
11434            tmp="${tmp}.cmd"
11435         fi
11436         # Convert to C:/ mixed style path without spaces.
11437          tmp=`$CYGPATH -s -m "$tmp"`
11438     fi
11439     car="$tmp"
11440 
11441     else
11442         # "which" is not portable, but is used here
11443         # because we know that the command exists!
11444         car=`which $car`
11445     fi
11446     if test "x$cdr" != xEOL; then
11447         CPP="$car ${cdr% *}"
11448     else
11449         CPP="$car"
11450     fi
11451 
11452 
11453 ac_ext=cpp
11454 ac_cpp='$CXXCPP $CPPFLAGS'
11455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11459 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11460 if test -z "$CXXCPP"; then
11461   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11462   $as_echo_n "(cached) " >&6
11463 else
11464       # Double quotes because CXXCPP needs to be expanded
11465     for CXXCPP in "$CXX -E" "/lib/cpp"
11466     do
11467       ac_preproc_ok=false
11468 for ac_cxx_preproc_warn_flag in '' yes
11469 do
11470   # Use a header file that comes with gcc, so configuring glibc
11471   # with a fresh cross-compiler works.
11472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11473   # <limits.h> exists even on freestanding compilers.
11474   # On the NeXT, cc -E runs the code through the compiler's parser,
11475   # not just through cpp. "Syntax error" is here to catch this case.
11476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h.  */
11478 #ifdef __STDC__
11479 # include <limits.h>
11480 #else
11481 # include <assert.h>
11482 #endif
11483                      Syntax error
11484 _ACEOF
11485 if ac_fn_cxx_try_cpp "$LINENO"; then :
11486 
11487 else
11488   # Broken: fails on valid input.
11489 continue
11490 fi
11491 rm -f conftest.err conftest.i conftest.$ac_ext
11492 
11493   # OK, works on sane cases.  Now check whether nonexistent headers
11494   # can be detected and how.
11495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h.  */
11497 #include <ac_nonexistent.h>
11498 _ACEOF
11499 if ac_fn_cxx_try_cpp "$LINENO"; then :
11500   # Broken: success on invalid input.
11501 continue
11502 else
11503   # Passes both tests.
11504 ac_preproc_ok=:
11505 break
11506 fi
11507 rm -f conftest.err conftest.i conftest.$ac_ext
11508 
11509 done
11510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11511 rm -f conftest.i conftest.err conftest.$ac_ext
11512 if $ac_preproc_ok; then :
11513   break
11514 fi
11515 
11516     done
11517     ac_cv_prog_CXXCPP=$CXXCPP
11518 
11519 fi
11520   CXXCPP=$ac_cv_prog_CXXCPP
11521 else
11522   ac_cv_prog_CXXCPP=$CXXCPP
11523 fi
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11525 $as_echo "$CXXCPP" >&6; }
11526 ac_preproc_ok=false
11527 for ac_cxx_preproc_warn_flag in '' yes
11528 do
11529   # Use a header file that comes with gcc, so configuring glibc
11530   # with a fresh cross-compiler works.
11531   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11532   # <limits.h> exists even on freestanding compilers.
11533   # On the NeXT, cc -E runs the code through the compiler's parser,
11534   # not just through cpp. "Syntax error" is here to catch this case.
11535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h.  */
11537 #ifdef __STDC__
11538 # include <limits.h>
11539 #else
11540 # include <assert.h>
11541 #endif
11542                      Syntax error
11543 _ACEOF
11544 if ac_fn_cxx_try_cpp "$LINENO"; then :
11545 
11546 else
11547   # Broken: fails on valid input.
11548 continue
11549 fi
11550 rm -f conftest.err conftest.i conftest.$ac_ext
11551 
11552   # OK, works on sane cases.  Now check whether nonexistent headers
11553   # can be detected and how.
11554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h.  */
11556 #include <ac_nonexistent.h>
11557 _ACEOF
11558 if ac_fn_cxx_try_cpp "$LINENO"; then :
11559   # Broken: success on invalid input.
11560 continue
11561 else
11562   # Passes both tests.
11563 ac_preproc_ok=:
11564 break
11565 fi
11566 rm -f conftest.err conftest.i conftest.$ac_ext
11567 
11568 done
11569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11570 rm -f conftest.i conftest.err conftest.$ac_ext
11571 if $ac_preproc_ok; then :
11572 
11573 else
11574   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11576 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11577 See \`config.log' for more details" "$LINENO" 5 ; }
11578 fi
11579 
11580 ac_ext=cpp
11581 ac_cpp='$CXXCPP $CPPFLAGS'
11582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11585 
11586 
11587     # Translate "gcc -E" into "`which gcc` -E" ie
11588     # extract the full path to the binary and at the
11589     # same time maintain any arguments passed to it.
11590     # The command MUST exist in the path, or else!
11591     tmp="$CXXCPP"
11592     car="${tmp%% *}"
11593     tmp="$CXXCPP EOL"
11594     cdr="${tmp#* }"
11595     # On windows we want paths without spaces.
11596     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11597 
11598     # Translate long cygdrive or C:\sdfsf path
11599     # into a short mixed mode path that has no
11600     # spaces in it.
11601     tmp="$car"
11602 
11603     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11604         tmp=`$CYGPATH -u "$car"`
11605         tmp=`which "$tmp"`
11606         # If file exists with .exe appended, that's the real filename
11607         # and cygpath needs that to convert to short style path.
11608         if test -f "${tmp}.exe"; then
11609            tmp="${tmp}.exe"
11610         elif test -f "${tmp}.cmd"; then
11611            tmp="${tmp}.cmd"
11612         fi
11613         # Convert to C:/ mixed style path without spaces.
11614          tmp=`$CYGPATH -s -m "$tmp"`
11615     fi
11616     car="$tmp"
11617 
11618     else
11619         # "which" is not portable, but is used here
11620         # because we know that the command exists!
11621         car=`which $car`
11622     fi
11623     if test "x$cdr" != xEOL; then
11624         CXXCPP="$car ${cdr% *}"
11625     else
11626         CXXCPP="$car"
11627     fi
11628 
11629 
11630 # for solaris we really need solaris tools, and not gnu equivalent
11631 #   these seems to normally reside in /usr/ccs/bin so add that to path before
11632 #   starting to probe
11633 #
11634 #   NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
11635 #         so that it can be overriden --with-tools-dir
11636 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
11637     PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
11638 fi
11639 
11640 # Find the right assembler.
11641 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
11642     # Extract the first word of "as", so it can be a program name with args.
11643 set dummy as; ac_word=$2
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if test "${ac_cv_path_AS+set}" = set; then :
11647   $as_echo_n "(cached) " >&6
11648 else
11649   case $AS in
11650   [\\/]* | ?:[\\/]*)
11651   ac_cv_path_AS="$AS" # Let the user override the test with a path.
11652   ;;
11653   *)
11654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11656 do
11657   IFS=$as_save_IFS
11658   test -z "$as_dir" && as_dir=.
11659     for ac_exec_ext in '' $ac_executable_extensions; do
11660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
11662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663     break 2
11664   fi
11665 done
11666   done
11667 IFS=$as_save_IFS
11668 
11669   ;;
11670 esac
11671 fi
11672 AS=$ac_cv_path_AS
11673 if test -n "$AS"; then
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11675 $as_echo "$AS" >&6; }
11676 else
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11679 fi
11680 
11681 
11682 
11683     # Translate "gcc -E" into "`which gcc` -E" ie
11684     # extract the full path to the binary and at the
11685     # same time maintain any arguments passed to it.
11686     # The command MUST exist in the path, or else!
11687     tmp="$AS"
11688     car="${tmp%% *}"
11689     tmp="$AS EOL"
11690     cdr="${tmp#* }"
11691     # On windows we want paths without spaces.
11692     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11693 
11694     # Translate long cygdrive or C:\sdfsf path
11695     # into a short mixed mode path that has no
11696     # spaces in it.
11697     tmp="$car"
11698 
11699     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11700         tmp=`$CYGPATH -u "$car"`
11701         tmp=`which "$tmp"`
11702         # If file exists with .exe appended, that's the real filename
11703         # and cygpath needs that to convert to short style path.
11704         if test -f "${tmp}.exe"; then
11705            tmp="${tmp}.exe"
11706         elif test -f "${tmp}.cmd"; then
11707            tmp="${tmp}.cmd"
11708         fi
11709         # Convert to C:/ mixed style path without spaces.
11710          tmp=`$CYGPATH -s -m "$tmp"`
11711     fi
11712     car="$tmp"
11713 
11714     else
11715         # "which" is not portable, but is used here
11716         # because we know that the command exists!
11717         car=`which $car`
11718     fi
11719     if test "x$cdr" != xEOL; then
11720         AS="$car ${cdr% *}"
11721     else
11722         AS="$car"
11723     fi
11724 
11725     ASFLAGS=" "
11726 else
11727     AS="$CC -c"
11728     ASFLAGS=" "
11729 fi
11730 
11731 
11732 
11733 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
11734     # Extract the first word of "nm", so it can be a program name with args.
11735 set dummy nm; ac_word=$2
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737 $as_echo_n "checking for $ac_word... " >&6; }
11738 if test "${ac_cv_path_NM+set}" = set; then :
11739   $as_echo_n "(cached) " >&6
11740 else
11741   case $NM in
11742   [\\/]* | ?:[\\/]*)
11743   ac_cv_path_NM="$NM" # Let the user override the test with a path.
11744   ;;
11745   *)
11746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11748 do
11749   IFS=$as_save_IFS
11750   test -z "$as_dir" && as_dir=.
11751     for ac_exec_ext in '' $ac_executable_extensions; do
11752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
11754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755     break 2
11756   fi
11757 done
11758   done
11759 IFS=$as_save_IFS
11760 
11761   ;;
11762 esac
11763 fi
11764 NM=$ac_cv_path_NM
11765 if test -n "$NM"; then
11766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11767 $as_echo "$NM" >&6; }
11768 else
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11771 fi
11772 
11773 
11774 
11775     # Translate "gcc -E" into "`which gcc` -E" ie
11776     # extract the full path to the binary and at the
11777     # same time maintain any arguments passed to it.
11778     # The command MUST exist in the path, or else!
11779     tmp="$NM"
11780     car="${tmp%% *}"
11781     tmp="$NM EOL"
11782     cdr="${tmp#* }"
11783     # On windows we want paths without spaces.
11784     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11785 
11786     # Translate long cygdrive or C:\sdfsf path
11787     # into a short mixed mode path that has no
11788     # spaces in it.
11789     tmp="$car"
11790 
11791     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11792         tmp=`$CYGPATH -u "$car"`
11793         tmp=`which "$tmp"`
11794         # If file exists with .exe appended, that's the real filename
11795         # and cygpath needs that to convert to short style path.
11796         if test -f "${tmp}.exe"; then
11797            tmp="${tmp}.exe"
11798         elif test -f "${tmp}.cmd"; then
11799            tmp="${tmp}.cmd"
11800         fi
11801         # Convert to C:/ mixed style path without spaces.
11802          tmp=`$CYGPATH -s -m "$tmp"`
11803     fi
11804     car="$tmp"
11805 
11806     else
11807         # "which" is not portable, but is used here
11808         # because we know that the command exists!
11809         car=`which $car`
11810     fi
11811     if test "x$cdr" != xEOL; then
11812         NM="$car ${cdr% *}"
11813     else
11814         NM="$car"
11815     fi
11816 
11817     # Extract the first word of "strip", so it can be a program name with args.
11818 set dummy strip; ac_word=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if test "${ac_cv_path_STRIP+set}" = set; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   case $STRIP in
11825   [\\/]* | ?:[\\/]*)
11826   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
11827   ;;
11828   *)
11829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11831 do
11832   IFS=$as_save_IFS
11833   test -z "$as_dir" && as_dir=.
11834     for ac_exec_ext in '' $ac_executable_extensions; do
11835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11836     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
11837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838     break 2
11839   fi
11840 done
11841   done
11842 IFS=$as_save_IFS
11843 
11844   ;;
11845 esac
11846 fi
11847 STRIP=$ac_cv_path_STRIP
11848 if test -n "$STRIP"; then
11849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11850 $as_echo "$STRIP" >&6; }
11851 else
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855 
11856 
11857 
11858     # Translate "gcc -E" into "`which gcc` -E" ie
11859     # extract the full path to the binary and at the
11860     # same time maintain any arguments passed to it.
11861     # The command MUST exist in the path, or else!
11862     tmp="$STRIP"
11863     car="${tmp%% *}"
11864     tmp="$STRIP EOL"
11865     cdr="${tmp#* }"
11866     # On windows we want paths without spaces.
11867     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11868 
11869     # Translate long cygdrive or C:\sdfsf path
11870     # into a short mixed mode path that has no
11871     # spaces in it.
11872     tmp="$car"
11873 
11874     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11875         tmp=`$CYGPATH -u "$car"`
11876         tmp=`which "$tmp"`
11877         # If file exists with .exe appended, that's the real filename
11878         # and cygpath needs that to convert to short style path.
11879         if test -f "${tmp}.exe"; then
11880            tmp="${tmp}.exe"
11881         elif test -f "${tmp}.cmd"; then
11882            tmp="${tmp}.cmd"
11883         fi
11884         # Convert to C:/ mixed style path without spaces.
11885          tmp=`$CYGPATH -s -m "$tmp"`
11886     fi
11887     car="$tmp"
11888 
11889     else
11890         # "which" is not portable, but is used here
11891         # because we know that the command exists!
11892         car=`which $car`
11893     fi
11894     if test "x$cdr" != xEOL; then
11895         STRIP="$car ${cdr% *}"
11896     else
11897         STRIP="$car"
11898     fi
11899 
11900     # Extract the first word of "mcs", so it can be a program name with args.
11901 set dummy mcs; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if test "${ac_cv_path_MCS+set}" = set; then :
11905   $as_echo_n "(cached) " >&6
11906 else
11907   case $MCS in
11908   [\\/]* | ?:[\\/]*)
11909   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
11910   ;;
11911   *)
11912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11914 do
11915   IFS=$as_save_IFS
11916   test -z "$as_dir" && as_dir=.
11917     for ac_exec_ext in '' $ac_executable_extensions; do
11918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11919     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
11920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921     break 2
11922   fi
11923 done
11924   done
11925 IFS=$as_save_IFS
11926 
11927   ;;
11928 esac
11929 fi
11930 MCS=$ac_cv_path_MCS
11931 if test -n "$MCS"; then
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
11933 $as_echo "$MCS" >&6; }
11934 else
11935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; }
11937 fi
11938 
11939 
11940 
11941     # Translate "gcc -E" into "`which gcc` -E" ie
11942     # extract the full path to the binary and at the
11943     # same time maintain any arguments passed to it.
11944     # The command MUST exist in the path, or else!
11945     tmp="$MCS"
11946     car="${tmp%% *}"
11947     tmp="$MCS EOL"
11948     cdr="${tmp#* }"
11949     # On windows we want paths without spaces.
11950     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11951 
11952     # Translate long cygdrive or C:\sdfsf path
11953     # into a short mixed mode path that has no
11954     # spaces in it.
11955     tmp="$car"
11956 
11957     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
11958         tmp=`$CYGPATH -u "$car"`
11959         tmp=`which "$tmp"`
11960         # If file exists with .exe appended, that's the real filename
11961         # and cygpath needs that to convert to short style path.
11962         if test -f "${tmp}.exe"; then
11963            tmp="${tmp}.exe"
11964         elif test -f "${tmp}.cmd"; then
11965            tmp="${tmp}.cmd"
11966         fi
11967         # Convert to C:/ mixed style path without spaces.
11968          tmp=`$CYGPATH -s -m "$tmp"`
11969     fi
11970     car="$tmp"
11971 
11972     else
11973         # "which" is not portable, but is used here
11974         # because we know that the command exists!
11975         car=`which $car`
11976     fi
11977     if test "x$cdr" != xEOL; then
11978         MCS="$car ${cdr% *}"
11979     else
11980         MCS="$car"
11981     fi
11982 
11983 else
11984     if test -n "$ac_tool_prefix"; then
11985   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
11986 set dummy ${ac_tool_prefix}nm; ac_word=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if test "${ac_cv_prog_NM+set}" = set; then :
11990   $as_echo_n "(cached) " >&6
11991 else
11992   if test -n "$NM"; then
11993   ac_cv_prog_NM="$NM" # Let the user override the test.
11994 else
11995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996 for as_dir in $PATH
11997 do
11998   IFS=$as_save_IFS
11999   test -z "$as_dir" && as_dir=.
12000     for ac_exec_ext in '' $ac_executable_extensions; do
12001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12002     ac_cv_prog_NM="${ac_tool_prefix}nm"
12003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004     break 2
12005   fi
12006 done
12007   done
12008 IFS=$as_save_IFS
12009 
12010 fi
12011 fi
12012 NM=$ac_cv_prog_NM
12013 if test -n "$NM"; then
12014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12015 $as_echo "$NM" >&6; }
12016 else
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018 $as_echo "no" >&6; }
12019 fi
12020 
12021 
12022 fi
12023 if test -z "$ac_cv_prog_NM"; then
12024   ac_ct_NM=$NM
12025   # Extract the first word of "nm", so it can be a program name with args.
12026 set dummy nm; ac_word=$2
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028 $as_echo_n "checking for $ac_word... " >&6; }
12029 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
12030   $as_echo_n "(cached) " >&6
12031 else
12032   if test -n "$ac_ct_NM"; then
12033   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
12034 else
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12037 do
12038   IFS=$as_save_IFS
12039   test -z "$as_dir" && as_dir=.
12040     for ac_exec_ext in '' $ac_executable_extensions; do
12041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12042     ac_cv_prog_ac_ct_NM="nm"
12043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044     break 2
12045   fi
12046 done
12047   done
12048 IFS=$as_save_IFS
12049 
12050 fi
12051 fi
12052 ac_ct_NM=$ac_cv_prog_ac_ct_NM
12053 if test -n "$ac_ct_NM"; then
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
12055 $as_echo "$ac_ct_NM" >&6; }
12056 else
12057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12059 fi
12060 
12061   if test "x$ac_ct_NM" = x; then
12062     NM=""
12063   else
12064     case $cross_compiling:$ac_tool_warned in
12065 yes:)
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12068 ac_tool_warned=yes ;;
12069 esac
12070     NM=$ac_ct_NM
12071   fi
12072 else
12073   NM="$ac_cv_prog_NM"
12074 fi
12075 
12076 
12077     # Translate "gcc -E" into "`which gcc` -E" ie
12078     # extract the full path to the binary and at the
12079     # same time maintain any arguments passed to it.
12080     # The command MUST exist in the path, or else!
12081     tmp="$NM"
12082     car="${tmp%% *}"
12083     tmp="$NM EOL"
12084     cdr="${tmp#* }"
12085     # On windows we want paths without spaces.
12086     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
12087 
12088     # Translate long cygdrive or C:\sdfsf path
12089     # into a short mixed mode path that has no
12090     # spaces in it.
12091     tmp="$car"
12092 
12093     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
12094         tmp=`$CYGPATH -u "$car"`
12095         tmp=`which "$tmp"`
12096         # If file exists with .exe appended, that's the real filename
12097         # and cygpath needs that to convert to short style path.
12098         if test -f "${tmp}.exe"; then
12099            tmp="${tmp}.exe"
12100         elif test -f "${tmp}.cmd"; then
12101            tmp="${tmp}.cmd"
12102         fi
12103         # Convert to C:/ mixed style path without spaces.
12104          tmp=`$CYGPATH -s -m "$tmp"`
12105     fi
12106     car="$tmp"
12107 
12108     else
12109         # "which" is not portable, but is used here
12110         # because we know that the command exists!
12111         car=`which $car`
12112     fi
12113     if test "x$cdr" != xEOL; then
12114         NM="$car ${cdr% *}"
12115     else
12116         NM="$car"
12117     fi
12118 
12119     if test -n "$ac_tool_prefix"; then
12120   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12121 set dummy ${ac_tool_prefix}strip; ac_word=$2
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123 $as_echo_n "checking for $ac_word... " >&6; }
12124 if test "${ac_cv_prog_STRIP+set}" = set; then :
12125   $as_echo_n "(cached) " >&6
12126 else
12127   if test -n "$STRIP"; then
12128   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12129 else
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12132 do
12133   IFS=$as_save_IFS
12134   test -z "$as_dir" && as_dir=.
12135     for ac_exec_ext in '' $ac_executable_extensions; do
12136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12137     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139     break 2
12140   fi
12141 done
12142   done
12143 IFS=$as_save_IFS
12144 
12145 fi
12146 fi
12147 STRIP=$ac_cv_prog_STRIP
12148 if test -n "$STRIP"; then
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12150 $as_echo "$STRIP" >&6; }
12151 else
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 fi
12155 
12156 
12157 fi
12158 if test -z "$ac_cv_prog_STRIP"; then
12159   ac_ct_STRIP=$STRIP
12160   # Extract the first word of "strip", so it can be a program name with args.
12161 set dummy strip; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12165   $as_echo_n "(cached) " >&6
12166 else
12167   if test -n "$ac_ct_STRIP"; then
12168   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12169 else
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH
12172 do
12173   IFS=$as_save_IFS
12174   test -z "$as_dir" && as_dir=.
12175     for ac_exec_ext in '' $ac_executable_extensions; do
12176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12177     ac_cv_prog_ac_ct_STRIP="strip"
12178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179     break 2
12180   fi
12181 done
12182   done
12183 IFS=$as_save_IFS
12184 
12185 fi
12186 fi
12187 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12188 if test -n "$ac_ct_STRIP"; then
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12190 $as_echo "$ac_ct_STRIP" >&6; }
12191 else
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194 fi
12195 
12196   if test "x$ac_ct_STRIP" = x; then
12197     STRIP=""
12198   else
12199     case $cross_compiling:$ac_tool_warned in
12200 yes:)
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12203 ac_tool_warned=yes ;;
12204 esac
12205     STRIP=$ac_ct_STRIP
12206   fi
12207 else
12208   STRIP="$ac_cv_prog_STRIP"
12209 fi
12210 
12211 
12212     # Translate "gcc -E" into "`which gcc` -E" ie
12213     # extract the full path to the binary and at the
12214     # same time maintain any arguments passed to it.
12215     # The command MUST exist in the path, or else!
12216     tmp="$STRIP"
12217     car="${tmp%% *}"
12218     tmp="$STRIP EOL"
12219     cdr="${tmp#* }"
12220     # On windows we want paths without spaces.
12221     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
12222 
12223     # Translate long cygdrive or C:\sdfsf path
12224     # into a short mixed mode path that has no
12225     # spaces in it.
12226     tmp="$car"
12227 
12228     if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
12229         tmp=`$CYGPATH -u "$car"`
12230         tmp=`which "$tmp"`
12231         # If file exists with .exe appended, that's the real filename
12232         # and cygpath needs that to convert to short style path.
12233         if test -f "${tmp}.exe"; then
12234            tmp="${tmp}.exe"
12235         elif test -f "${tmp}.cmd"; then
12236            tmp="${tmp}.cmd"
12237         fi
12238         # Convert to C:/ mixed style path without spaces.
12239          tmp=`$CYGPATH -s -m "$tmp"`
12240     fi
12241     car="$tmp"
12242 
12243     else
12244         # "which" is not portable, but is used here
12245         # because we know that the command exists!
12246         car=`which $car`
12247     fi
12248     if test "x$cdr" != xEOL; then
12249         STRIP="$car ${cdr% *}"
12250     else
12251         STRIP="$car"
12252     fi
12253 
12254 fi
12255 
12256 ###
12257 #
12258 # Check for objcopy
12259 #
12260 #   but search for gobjcopy first...
12261 #   since I on solaris found a broken objcopy...buhh
12262 #
12263 if test -n "$ac_tool_prefix"; then
12264   # Extract the first word of "${ac_tool_prefix}gobjcopy", so it can be a program name with args.
12265 set dummy ${ac_tool_prefix}gobjcopy; ac_word=$2
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267 $as_echo_n "checking for $ac_word... " >&6; }
12268 if test "${ac_cv_path_OBJCOPY+set}" = set; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271   case $OBJCOPY in
12272   [\\/]* | ?:[\\/]*)
12273   ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
12274   ;;
12275   *)
12276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12278 do
12279   IFS=$as_save_IFS
12280   test -z "$as_dir" && as_dir=.
12281     for ac_exec_ext in '' $ac_executable_extensions; do
12282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12283     ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
12284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12285     break 2
12286   fi
12287 done
12288   done
12289 IFS=$as_save_IFS
12290 
12291   ;;
12292 esac
12293 fi
12294 OBJCOPY=$ac_cv_path_OBJCOPY
12295 if test -n "$OBJCOPY"; then
12296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12297 $as_echo "$OBJCOPY" >&6; }
12298 else
12299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12301 fi
12302 
12303 
12304 fi
12305 if test -z "$ac_cv_path_OBJCOPY"; then
12306   ac_pt_OBJCOPY=$OBJCOPY
12307   # Extract the first word of "gobjcopy", so it can be a program name with args.
12308 set dummy gobjcopy; ac_word=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if test "${ac_cv_path_ac_pt_OBJCOPY+set}" = set; then :
12312   $as_echo_n "(cached) " >&6
12313 else
12314   case $ac_pt_OBJCOPY in
12315   [\\/]* | ?:[\\/]*)
12316   ac_cv_path_ac_pt_OBJCOPY="$ac_pt_OBJCOPY" # Let the user override the test with a path.
12317   ;;
12318   *)
12319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320 for as_dir in $PATH
12321 do
12322   IFS=$as_save_IFS
12323   test -z "$as_dir" && as_dir=.
12324     for ac_exec_ext in '' $ac_executable_extensions; do
12325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12326     ac_cv_path_ac_pt_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
12327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328     break 2
12329   fi
12330 done
12331   done
12332 IFS=$as_save_IFS
12333 
12334   ;;
12335 esac
12336 fi
12337 ac_pt_OBJCOPY=$ac_cv_path_ac_pt_OBJCOPY
12338 if test -n "$ac_pt_OBJCOPY"; then
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OBJCOPY" >&5
12340 $as_echo "$ac_pt_OBJCOPY" >&6; }
12341 else
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345 
12346   if test "x$ac_pt_OBJCOPY" = x; then
12347     OBJCOPY=""
12348   else
12349     case $cross_compiling:$ac_tool_warned in
12350 yes:)
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12353 ac_tool_warned=yes ;;
12354 esac
12355     OBJCOPY=$ac_pt_OBJCOPY
12356   fi
12357 else
12358   OBJCOPY="$ac_cv_path_OBJCOPY"
12359 fi
12360 
12361 if test "x$OBJCOPY" = x; then
12362    if test -n "$ac_tool_prefix"; then
12363   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
12364 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if test "${ac_cv_path_OBJCOPY+set}" = set; then :
12368   $as_echo_n "(cached) " >&6
12369 else
12370   case $OBJCOPY in
12371   [\\/]* | ?:[\\/]*)
12372   ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
12373   ;;
12374   *)
12375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12377 do
12378   IFS=$as_save_IFS
12379   test -z "$as_dir" && as_dir=.
12380     for ac_exec_ext in '' $ac_executable_extensions; do
12381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12382     ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
12383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12384     break 2
12385   fi
12386 done
12387   done
12388 IFS=$as_save_IFS
12389 
12390   ;;
12391 esac
12392 fi
12393 OBJCOPY=$ac_cv_path_OBJCOPY
12394 if test -n "$OBJCOPY"; then
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12396 $as_echo "$OBJCOPY" >&6; }
12397 else
12398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12400 fi
12401 
12402 
12403 fi
12404 if test -z "$ac_cv_path_OBJCOPY"; then
12405   ac_pt_OBJCOPY=$OBJCOPY
12406   # Extract the first word of "objcopy", so it can be a program name with args.
12407 set dummy objcopy; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if test "${ac_cv_path_ac_pt_OBJCOPY+set}" = set; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   case $ac_pt_OBJCOPY in
12414   [\\/]* | ?:[\\/]*)
12415   ac_cv_path_ac_pt_OBJCOPY="$ac_pt_OBJCOPY" # Let the user override the test with a path.
12416   ;;
12417   *)
12418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419 for as_dir in $PATH
12420 do
12421   IFS=$as_save_IFS
12422   test -z "$as_dir" && as_dir=.
12423     for ac_exec_ext in '' $ac_executable_extensions; do
12424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12425     ac_cv_path_ac_pt_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
12426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427     break 2
12428   fi
12429 done
12430   done
12431 IFS=$as_save_IFS
12432 
12433   ;;
12434 esac
12435 fi
12436 ac_pt_OBJCOPY=$ac_cv_path_ac_pt_OBJCOPY
12437 if test -n "$ac_pt_OBJCOPY"; then
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OBJCOPY" >&5
12439 $as_echo "$ac_pt_OBJCOPY" >&6; }
12440 else
12441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443 fi
12444 
12445   if test "x$ac_pt_OBJCOPY" = x; then
12446     OBJCOPY=""
12447   else
12448     case $cross_compiling:$ac_tool_warned in
12449 yes:)
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12452 ac_tool_warned=yes ;;
12453 esac
12454     OBJCOPY=$ac_pt_OBJCOPY
12455   fi
12456 else
12457   OBJCOPY="$ac_cv_path_OBJCOPY"
12458 fi
12459 
12460 fi
12461 
12462 # Restore old path without tools dir
12463 PATH="$OLD_PATH"
12464 
12465 
12466 # FIXME: Currently we must test this after paths but before flags. Fix!
12467 
12468 # And we can test some aspects on the target using configure macros.
12469 
12470 
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12472 $as_echo_n "checking for ANSI C header files... " >&6; }
12473 if test "${ac_cv_header_stdc+set}" = set; then :
12474   $as_echo_n "(cached) " >&6
12475 else
12476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h.  */
12478 #include <stdlib.h>
12479 #include <stdarg.h>
12480 #include <string.h>
12481 #include <float.h>
12482 
12483 int
12484 main ()
12485 {
12486 
12487   ;
12488   return 0;
12489 }
12490 _ACEOF
12491 if ac_fn_cxx_try_compile "$LINENO"; then :
12492   ac_cv_header_stdc=yes
12493 else
12494   ac_cv_header_stdc=no
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497 
12498 if test $ac_cv_header_stdc = yes; then
12499   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h.  */
12502 #include <string.h>
12503 
12504 _ACEOF
12505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12506   $EGREP "memchr" >/dev/null 2>&1; then :
12507 
12508 else
12509   ac_cv_header_stdc=no
12510 fi
12511 rm -f conftest*
12512 
12513 fi
12514 
12515 if test $ac_cv_header_stdc = yes; then
12516   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h.  */
12519 #include <stdlib.h>
12520 
12521 _ACEOF
12522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12523   $EGREP "free" >/dev/null 2>&1; then :
12524 
12525 else
12526   ac_cv_header_stdc=no
12527 fi
12528 rm -f conftest*
12529 
12530 fi
12531 
12532 if test $ac_cv_header_stdc = yes; then
12533   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12534   if test "$cross_compiling" = yes; then :
12535   :
12536 else
12537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h.  */
12539 #include <ctype.h>
12540 #include <stdlib.h>
12541 #if ((' ' & 0x0FF) == 0x020)
12542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12544 #else
12545 # define ISLOWER(c) \
12546                    (('a' <= (c) && (c) <= 'i') \
12547                      || ('j' <= (c) && (c) <= 'r') \
12548                      || ('s' <= (c) && (c) <= 'z'))
12549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12550 #endif
12551 
12552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12553 int
12554 main ()
12555 {
12556   int i;
12557   for (i = 0; i < 256; i++)
12558     if (XOR (islower (i), ISLOWER (i))
12559         || toupper (i) != TOUPPER (i))
12560       return 2;
12561   return 0;
12562 }
12563 _ACEOF
12564 if ac_fn_cxx_try_run "$LINENO"; then :
12565 
12566 else
12567   ac_cv_header_stdc=no
12568 fi
12569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12570   conftest.$ac_objext conftest.beam conftest.$ac_ext
12571 fi
12572 
12573 fi
12574 fi
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12576 $as_echo "$ac_cv_header_stdc" >&6; }
12577 if test $ac_cv_header_stdc = yes; then
12578 
12579 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12580 
12581 fi
12582 
12583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12585                   inttypes.h stdint.h unistd.h
12586 do :
12587   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12588 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12589 "
12590 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12591   cat >>confdefs.h <<_ACEOF
12592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12593 _ACEOF
12594 
12595 fi
12596 
12597 done
12598 
12599 
12600 
12601 ###############################################################################
12602 #
12603 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
12604 # (The JVM can use 32 or 64 bit Java pointers but that decision
12605 # is made at runtime.)
12606 #
12607 ac_ext=cpp
12608 ac_cpp='$CXXCPP $CPPFLAGS'
12609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12612 
12613 OLD_CXXFLAGS="$CXXFLAGS"
12614 if test "x$OPENJDK_TARGET_OS" != xwindows && test "x$with_target_bits" != x; then
12615         CXXFLAGS="-m${with_target_bits} $CXXFLAGS"
12616 fi
12617 # The cast to long int works around a bug in the HP C Compiler
12618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12620 # This bug is HP SR number 8606223364.
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
12622 $as_echo_n "checking size of int *... " >&6; }
12623 if test "${ac_cv_sizeof_int_p+set}" = set; then :
12624   $as_echo_n "(cached) " >&6
12625 else
12626   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
12627 
12628 else
12629   if test "$ac_cv_type_int_p" = yes; then
12630      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12632 as_fn_error 77 "cannot compute sizeof (int *)
12633 See \`config.log' for more details" "$LINENO" 5 ; }
12634    else
12635      ac_cv_sizeof_int_p=0
12636    fi
12637 fi
12638 
12639 fi
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
12641 $as_echo "$ac_cv_sizeof_int_p" >&6; }
12642 
12643 
12644 
12645 cat >>confdefs.h <<_ACEOF
12646 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12647 _ACEOF
12648 
12649 
12650 CXXFLAGS="$OLD_CXXFLAGS"
12651 ac_ext=cpp
12652 ac_cpp='$CXXCPP $CPPFLAGS'
12653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12656 
12657 
12658 # keep track of c/cxx flags that we added outselves...
12659 #   to prevent emitting warning...
12660 ADDED_CFLAGS=
12661 ADDED_CXXFLAGS=
12662 ADDED_LDFLAGS=
12663 
12664 if test "x$ac_cv_sizeof_int_p" = x0; then
12665     # The test failed, lets pick the assumed value.
12666     ARCH_DATA_MODEL=$OPENJDK_TARGET_CPU_BITS
12667 else
12668     ARCH_DATA_MODEL=`expr 8 \* $ac_cv_sizeof_int_p`
12669 
12670     if test "x$OPENJDK_TARGET_OS" != xwindows && test "x$with_target_bits" != x; then
12671        ADDED_CFLAGS=" -m${with_target_bits}"
12672        ADDED_CXXFLAGS=" -m${with_target_bits}"
12673        ADDED_LDFLAGS=" -m${with_target_bits}"
12674 
12675        CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
12676        CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
12677        LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
12678 
12679        CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
12680        CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
12681        LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
12682     fi
12683 fi
12684 
12685 if test "x$ARCH_DATA_MODEL" = x64; then
12686     A_LP64="LP64:="
12687     ADD_LP64="-D_LP64=1"
12688 fi
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
12690 $as_echo_n "checking for target address size... " >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH_DATA_MODEL bits" >&5
12692 $as_echo "$ARCH_DATA_MODEL bits" >&6; }
12693 LP64=$A_LP64
12694 
12695 
12696 
12697 if test "x$ARCH_DATA_MODEL" != "x$OPENJDK_TARGET_CPU_BITS"; then
12698     as_fn_error $? "The tested number of bits in the target ($ARCH_DATA_MODEL) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5
12699 fi
12700 
12701 #
12702 # NOTE: check for -mstackrealign needs to be below potential addition of -m32
12703 #
12704 if test "x$OPENJDK_TARGET_CPU_BITS" = x32 && test "x$OPENJDK_TARGET_OS" = xmacosx; then
12705     # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned.
12706     # While waiting for a better solution, the current workaround is to use -mstackrealign.
12707     CFLAGS="$CFLAGS -mstackrealign"
12708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5
12709 $as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; }
12710     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h.  */
12712 int main() { return 0; }
12713 _ACEOF
12714 if ac_fn_cxx_try_link "$LINENO"; then :
12715 
12716                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12717 $as_echo "yes" >&6; }
12718 
12719 else
12720 
12721                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723                         as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5
12724 
12725 fi
12726 rm -f core conftest.err conftest.$ac_objext \
12727     conftest$ac_exeext conftest.$ac_ext
12728 fi
12729 
12730 
12731 ###############################################################################
12732 #
12733 # Is the target little of big endian?
12734 #
12735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12736 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12737 if test "${ac_cv_c_bigendian+set}" = set; then :
12738   $as_echo_n "(cached) " >&6
12739 else
12740   ac_cv_c_bigendian=unknown
12741     # See if we're dealing with a universal compiler.
12742     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h.  */
12744 #ifndef __APPLE_CC__
12745                not a universal capable compiler
12746              #endif
12747              typedef int dummy;
12748 
12749 _ACEOF
12750 if ac_fn_cxx_try_compile "$LINENO"; then :
12751 
12752         # Check for potential -arch flags.  It is not universal unless
12753         # there are at least two -arch flags with different values.
12754         ac_arch=
12755         ac_prev=
12756         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12757          if test -n "$ac_prev"; then
12758            case $ac_word in
12759              i?86 | x86_64 | ppc | ppc64)
12760                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12761                  ac_arch=$ac_word
12762                else
12763                  ac_cv_c_bigendian=universal
12764                  break
12765                fi
12766                ;;
12767            esac
12768            ac_prev=
12769          elif test "x$ac_word" = "x-arch"; then
12770            ac_prev=arch
12771          fi
12772        done
12773 fi
12774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12775     if test $ac_cv_c_bigendian = unknown; then
12776       # See if sys/param.h defines the BYTE_ORDER macro.
12777       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h.  */
12779 #include <sys/types.h>
12780              #include <sys/param.h>
12781 
12782 int
12783 main ()
12784 {
12785 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12786                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12787                      && LITTLE_ENDIAN)
12788               bogus endian macros
12789              #endif
12790 
12791   ;
12792   return 0;
12793 }
12794 _ACEOF
12795 if ac_fn_cxx_try_compile "$LINENO"; then :
12796   # It does; now see whether it defined to BIG_ENDIAN or not.
12797          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h.  */
12799 #include <sys/types.h>
12800                 #include <sys/param.h>
12801 
12802 int
12803 main ()
12804 {
12805 #if BYTE_ORDER != BIG_ENDIAN
12806                  not big endian
12807                 #endif
12808 
12809   ;
12810   return 0;
12811 }
12812 _ACEOF
12813 if ac_fn_cxx_try_compile "$LINENO"; then :
12814   ac_cv_c_bigendian=yes
12815 else
12816   ac_cv_c_bigendian=no
12817 fi
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 fi
12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821     fi
12822     if test $ac_cv_c_bigendian = unknown; then
12823       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12824       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h.  */
12826 #include <limits.h>
12827 
12828 int
12829 main ()
12830 {
12831 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12832               bogus endian macros
12833              #endif
12834 
12835   ;
12836   return 0;
12837 }
12838 _ACEOF
12839 if ac_fn_cxx_try_compile "$LINENO"; then :
12840   # It does; now see whether it defined to _BIG_ENDIAN or not.
12841          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h.  */
12843 #include <limits.h>
12844 
12845 int
12846 main ()
12847 {
12848 #ifndef _BIG_ENDIAN
12849                  not big endian
12850                 #endif
12851 
12852   ;
12853   return 0;
12854 }
12855 _ACEOF
12856 if ac_fn_cxx_try_compile "$LINENO"; then :
12857   ac_cv_c_bigendian=yes
12858 else
12859   ac_cv_c_bigendian=no
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 fi
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864     fi
12865     if test $ac_cv_c_bigendian = unknown; then
12866       # Compile a test program.
12867       if test "$cross_compiling" = yes; then :
12868   # Try to guess by grepping values from an object file.
12869          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h.  */
12871 short int ascii_mm[] =
12872                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12873                 short int ascii_ii[] =
12874                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12875                 int use_ascii (int i) {
12876                   return ascii_mm[i] + ascii_ii[i];
12877                 }
12878                 short int ebcdic_ii[] =
12879                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12880                 short int ebcdic_mm[] =
12881                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12882                 int use_ebcdic (int i) {
12883                   return ebcdic_mm[i] + ebcdic_ii[i];
12884                 }
12885                 extern int foo;
12886 
12887 int
12888 main ()
12889 {
12890 return use_ascii (foo) == use_ebcdic (foo);
12891   ;
12892   return 0;
12893 }
12894 _ACEOF
12895 if ac_fn_cxx_try_compile "$LINENO"; then :
12896   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12897               ac_cv_c_bigendian=yes
12898             fi
12899             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12900               if test "$ac_cv_c_bigendian" = unknown; then
12901                 ac_cv_c_bigendian=no
12902               else
12903                 # finding both strings is unlikely to happen, but who knows?
12904                 ac_cv_c_bigendian=unknown
12905               fi
12906             fi
12907 fi
12908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 else
12910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h.  */
12912 $ac_includes_default
12913 int
12914 main ()
12915 {
12916 
12917              /* Are we little or big endian?  From Harbison&Steele.  */
12918              union
12919              {
12920                long int l;
12921                char c[sizeof (long int)];
12922              } u;
12923              u.l = 1;
12924              return u.c[sizeof (long int) - 1] == 1;
12925 
12926   ;
12927   return 0;
12928 }
12929 _ACEOF
12930 if ac_fn_cxx_try_run "$LINENO"; then :
12931   ac_cv_c_bigendian=no
12932 else
12933   ac_cv_c_bigendian=yes
12934 fi
12935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12936   conftest.$ac_objext conftest.beam conftest.$ac_ext
12937 fi
12938 
12939     fi
12940 fi
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12942 $as_echo "$ac_cv_c_bigendian" >&6; }
12943  case $ac_cv_c_bigendian in #(
12944    yes)
12945      ENDIAN="big";; #(
12946    no)
12947      ENDIAN="little" ;; #(
12948    universal)
12949      ENDIAN="universal_endianness"
12950      ;; #(
12951    *)
12952      ENDIAN="unknown" ;;
12953  esac
12954 
12955 
12956 if test "x$ENDIAN" = xuniversal_endianness; then
12957     as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5
12958 fi
12959 if test "x$ENDIAN" = xunknown; then
12960     ENDIAN="$OPENJDK_TARGET_CPU_ENDIAN"
12961 fi
12962 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then
12963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The tested endian in the target ($ENDIAN) differs from the endian expected to be found in the target ($OPENJDK_TARGET_CPU_ENDIAN)" >&5
12964 $as_echo "$as_me: WARNING: The tested endian in the target ($ENDIAN) differs from the endian expected to be found in the target ($OPENJDK_TARGET_CPU_ENDIAN)" >&2;}
12965     ENDIAN="$OPENJDK_TARGET_CPU_ENDIAN"
12966 fi
12967 
12968 
12969 
12970 # Configure flags for the tools
12971 
12972 
12973 ###############################################################################
12974 #
12975 # How to compile shared libraries.
12976 #
12977 
12978 if test "x$GCC" = xyes; then
12979     COMPILER_NAME=gcc
12980     PICFLAG="-fPIC"
12981     LIBRARY_PREFIX=lib
12982     SHARED_LIBRARY='lib$1.so'
12983     STATIC_LIBRARY='lib$1.a'
12984     SHARED_LIBRARY_FLAGS="-shared"
12985     SHARED_LIBRARY_SUFFIX='.so'
12986     STATIC_LIBRARY_SUFFIX='.a'
12987     OBJ_SUFFIX='.o'
12988     EXE_SUFFIX=''
12989     SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1'
12990     SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1'
12991     C_FLAG_REORDER=''
12992     CXX_FLAG_REORDER=''
12993     SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN/$1'
12994     LD="$CC"
12995     LDEXE="$CC"
12996     LDCXX="$CXX"
12997     LDEXECXX="$CXX"
12998     POST_STRIP_CMD="$STRIP -g"
12999     if test "x$JDK_VARIANT" = xembedded; then
13000         POST_STRIP_CMD="$STRIP --strip-unneeded"
13001     fi
13002 
13003     # Linking is different on MacOSX
13004     if test "x$OPENJDK_BUILD_OS" = xmacosx; then
13005         # Might change in the future to clang.
13006         COMPILER_NAME=gcc
13007         SHARED_LIBRARY='lib$1.dylib'
13008         SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
13009         SHARED_LIBRARY_SUFFIX='.dylib'
13010         EXE_SUFFIX=''
13011         SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1'
13012         SET_SHARED_LIBRARY_MAPFILE=''
13013         SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.'
13014         POST_STRIP_CMD="$STRIP -S"
13015     fi
13016 else
13017     if test "x$OPENJDK_BUILD_OS" = xsolaris; then
13018         # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler
13019         COMPILER_NAME=ossc
13020         PICFLAG="-KPIC"
13021         LIBRARY_PREFIX=lib
13022         SHARED_LIBRARY='lib$1.so'
13023         STATIC_LIBRARY='lib$1.a'
13024         SHARED_LIBRARY_FLAGS="-z defs -xildoff -ztext -G"
13025         SHARED_LIBRARY_SUFFIX='.so'
13026         STATIC_LIBRARY_SUFFIX='.a'
13027         OBJ_SUFFIX='.o'
13028         EXE_SUFFIX=''
13029         SET_SHARED_LIBRARY_NAME=''
13030         SET_SHARED_LIBRARY_MAPFILE='-M$1'
13031         C_FLAG_REORDER='-xF'
13032         CXX_FLAG_REORDER='-xF'
13033         SET_SHARED_LIBRARY_ORIGIN='-R \$$$$ORIGIN/$1'
13034         CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__"
13035         CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__"
13036         CFLAGS_JDKLIB_EXTRA='-xstrconst'
13037         POST_STRIP_CMD="$STRIP -x"
13038         POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
13039     fi
13040     if test "x$OPENJDK_BUILD_OS" = xwindows; then
13041         # If it is not gcc, then assume it is the MS Visual Studio compiler
13042         COMPILER_NAME=cl
13043         PICFLAG=""
13044         LIBRARY_PREFIX=
13045         SHARED_LIBRARY='$1.dll'
13046         STATIC_LIBRARY='$1.lib'
13047         SHARED_LIBRARY_FLAGS="-LD"
13048         SHARED_LIBRARY_SUFFIX='.dll'
13049         STATIC_LIBRARY_SUFFIX='.lib'
13050         OBJ_SUFFIX='.obj'
13051         EXE_SUFFIX='.exe'
13052         SET_SHARED_LIBRARY_NAME=''
13053         SET_SHARED_LIBRARY_MAPFILE=''
13054         SET_SHARED_LIBRARY_ORIGIN=''
13055     fi
13056 fi
13057 
13058 
13059 
13060 
13061 
13062 
13063 
13064 
13065 
13066 
13067 
13068 
13069 
13070 
13071 
13072 
13073 
13074 # The (cross) compiler is now configured, we can now test capabilities
13075 # of the target platform.
13076 
13077 
13078 
13079 ###############################################################################
13080 #
13081 # Setup the opt flags for different compilers
13082 # and different operating systems.
13083 #
13084 C_FLAG_DEPS="-MMD -MF"
13085 CXX_FLAG_DEPS="-MMD -MF"
13086 
13087 case $COMPILER_TYPE in
13088   CC )
13089     D_FLAG="-g"
13090     case $COMPILER_NAME in
13091       gcc )
13092         case $OPENJDK_TARGET_OS in
13093           macosx )
13094             # On MacOSX we optimize for size, something
13095             # we should do for all platforms?
13096             C_O_FLAG_HI="-Os"
13097             C_O_FLAG_NORM="-Os"
13098             C_O_FLAG_NONE=""
13099             ;;
13100           *)
13101             C_O_FLAG_HI="-O3"
13102             C_O_FLAG_NORM="-O2"
13103             C_O_FLAG_NONE="-O0"
13104             CFLAGS_DEBUG_SYMBOLS="-g"
13105             CXXFLAGS_DEBUG_SYMBOLS="-g"
13106             if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
13107                CFLAGS_DEBUG_SYMBOLS="-g1"
13108                CXXFLAGS_DEBUG_SYMBOLSG="-g1"
13109             fi
13110             ;;
13111         esac
13112         CXX_O_FLAG_HI="$C_O_FLAG_HI"
13113         CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
13114         CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
13115         ;;
13116       ossc )
13117         #
13118         # Forte has different names for this with their C++ compiler...
13119         #
13120         C_FLAG_DEPS="-xMMD -xMF"
13121         CXX_FLAG_DEPS="-xMMD -xMF"
13122 
13123 # Extra options used with HIGHEST
13124 #
13125 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
13126 #          done with care, there are some assumptions below that need to
13127 #          be understood about the use of pointers, and IEEE behavior.
13128 #
13129 # Use non-standard floating point mode (not IEEE 754)
13130 CC_HIGHEST="$CC_HIGHEST -fns"
13131 # Do some simplification of floating point arithmetic (not IEEE 754)
13132 CC_HIGHEST="$CC_HIGHEST -fsimple"
13133 # Use single precision floating point with 'float'
13134 CC_HIGHEST="$CC_HIGHEST -fsingle"
13135 # Assume memory references via basic pointer types do not alias
13136 #   (Source with excessing pointer casting and data access with mixed
13137 #    pointer types are not recommended)
13138 CC_HIGHEST="$CC_HIGHEST -xalias_level=basic"
13139 # Use intrinsic or inline versions for math/std functions
13140 #   (If you expect perfect errno behavior, do not use this)
13141 CC_HIGHEST="$CC_HIGHEST -xbuiltin=%all"
13142 # Loop data dependency optimizations (need -xO3 or higher)
13143 CC_HIGHEST="$CC_HIGHEST -xdepend"
13144 # Pointer parameters to functions do not overlap
13145 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
13146 #    If you pass in multiple pointers to the same data, do not use this)
13147 CC_HIGHEST="$CC_HIGHEST -xrestrict"
13148 # Inline some library routines
13149 #   (If you expect perfect errno behavior, do not use this)
13150 CC_HIGHEST="$CC_HIGHEST -xlibmil"
13151 # Use optimized math routines
13152 #   (If you expect perfect errno behavior, do not use this)
13153 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
13154 #CC_HIGHEST="$CC_HIGHEST -xlibmopt"
13155 
13156         case $LEGACY_OPENJDK_TARGET_CPU1 in
13157           i586)
13158             C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xchip=pentium"
13159             C_O_FLAG_HI="-xO4 -Wu,-O4~yz"
13160             C_O_FLAG_NORM="-xO2 -Wu,-O2~yz"
13161             C_O_FLAG_NONE=""
13162             CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xchip=pentium"
13163             CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz"
13164             CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz"
13165             CXX_O_FLAG_NONE=""
13166             ;;
13167           sparc)
13168             CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
13169             CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
13170             CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
13171             CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
13172             C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
13173             C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
13174             C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
13175             C_O_FLAG_NONE=""
13176             CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
13177             CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
13178             CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
13179             CXX_O_FLAG_NONE=""
13180             ;;
13181         esac
13182 
13183     CFLAGS_DEBUG_SYMBOLS="-g -xs"
13184     CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs"
13185     esac
13186     ;;
13187   CL )
13188     D_FLAG=
13189     C_O_FLAG_HI="-O2"
13190     C_O_FLAG_NORM="-O1"
13191     C_O_FLAG_NONE="-Od"
13192     CXX_O_FLAG_HI="$C_O_FLAG_HI"
13193     CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
13194     CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
13195     ;;
13196 esac
13197 
13198 if test -z "$C_O_FLAG_HIGHEST"; then
13199    C_O_FLAG_HIGHEST="$C_O_FLAG_HI"
13200 fi
13201 
13202 if test -z "$CXX_O_FLAG_HIGHEST"; then
13203    CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI"
13204 fi
13205 
13206 
13207 
13208 
13209 
13210 
13211 
13212 
13213 
13214 
13215 
13216 
13217 
13218 
13219 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
13220    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags\"" >&5
13221 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags\"" >&2;}
13222 fi
13223 
13224 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
13225    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags\"" >&5
13226 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags\"" >&2;}
13227 fi
13228 
13229 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
13230    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags\"" >&5
13231 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags\"" >&2;}
13232 fi
13233 
13234 
13235 # Check whether --with-extra-cflags was given.
13236 if test "${with_extra_cflags+set}" = set; then :
13237   withval=$with_extra_cflags;
13238 fi
13239 
13240 
13241 
13242 # Check whether --with-extra-cxxflags was given.
13243 if test "${with_extra_cxxflags+set}" = set; then :
13244   withval=$with_extra_cxxflags;
13245 fi
13246 
13247 
13248 
13249 # Check whether --with-extra-ldflags was given.
13250 if test "${with_extra_ldflags+set}" = set; then :
13251   withval=$with_extra_ldflags;
13252 fi
13253 
13254 
13255 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags"
13256 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags"
13257 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags"
13258 
13259 ###############################################################################
13260 #
13261 # Now setup the CFLAGS and LDFLAGS for the JDK build.
13262 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
13263 #
13264 case $COMPILER_NAME in
13265       gcc )
13266           CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \
13267                           -pipe \
13268                           -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
13269           case $OPENJDK_TARGET_CPU_ARCH in
13270           arm )
13271             # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
13272             CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
13273           ;;
13274           ppc )
13275             # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing
13276           ;;
13277           * )
13278             CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
13279             CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
13280           ;;
13281           esac
13282           ;;
13283       ossc )
13284           CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -norunpath -xnolib"
13285           CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX"
13286           ;;
13287       cl )
13288           CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
13289                -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
13290                -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
13291                -DWIN32 -DIAL"
13292           case $LEGACY_OPENJDK_TARGET_CPU1 in
13293               i?86 )
13294                   CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
13295                   ;;
13296               amd64 )
13297                   CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
13298                   ;;
13299           esac
13300           ;;
13301 esac
13302 
13303 ###############################################################################
13304 #
13305 # Cross-compile arch specific flags
13306 
13307 #
13308 if test "x$JDK_VARIANT" = "xembedded"; then
13309    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DJAVASE_EMBEDDED"
13310 fi
13311 
13312 case $OPENJDK_TARGET_CPU_ARCH in
13313 arm )
13314     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fsigned-char"
13315     ;;
13316 ppc )
13317     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fsigned-char"
13318     ;;
13319 esac
13320 
13321 ###############################################################################
13322 
13323 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
13324 
13325 # The package path is used only on macosx?
13326 PACKAGE_PATH=/opt/local
13327 
13328 
13329 # Sometimes we use a cpu dir (.../lib/amd64/server)
13330 # Sometimes not (.../lib/server)
13331 LIBARCHDIR="$LEGACY_OPENJDK_TARGET_CPU2/"
13332 if test "x$ENDIAN" = xlittle; then
13333     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
13334 else
13335     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
13336 fi
13337 if test "x$OPENJDK_TARGET_OS" = xlinux; then
13338     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
13339 fi
13340 if test "x$OPENJDK_TARGET_OS" = xwindows; then
13341     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS"
13342 fi
13343 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13344     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
13345 fi
13346 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13347     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE"
13348     LIBARCHDIR=""
13349 fi
13350 if test "x$OPENJDK_TARGET_OS" = xbsd; then
13351     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
13352 fi
13353 if test "x$DEBUG_LEVEL" = xrelease; then
13354     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
13355 else
13356     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG"
13357 fi
13358 
13359 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$LEGACY_OPENJDK_TARGET_CPU1\"' -D$LEGACY_OPENJDK_TARGET_CPU1"
13360 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"$RELEASE\"'"
13361 
13362 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \
13363         -I${JDK_OUTPUTDIR}/include \
13364         -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \
13365         -I${JDK_TOPDIR}/src/share/javavm/export \
13366         -I${JDK_TOPDIR}/src/$LEGACY_OPENJDK_TARGET_OS_API/javavm/export \
13367         -I${JDK_TOPDIR}/src/share/native/common \
13368         -I${JDK_TOPDIR}/src/$LEGACY_OPENJDK_TARGET_OS_API/native/common"
13369 
13370 # The shared libraries are compiled using the picflag.
13371 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA"
13372 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA "
13373 
13374 # Executable flags
13375 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK"
13376 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK"
13377 
13378 # Now this is odd. The JDK native libraries have to link against libjvm.so
13379 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server.
13380 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library
13381 # is identical for client and server? Yes. Which is picked at runtime (client or server)?
13382 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following
13383 # libraries will link to whatever is in memory. Yuck.
13384 #
13385 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh.
13386 if test "x$COMPILER_TYPE" = xCL; then
13387     LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no"
13388     if test "x$LEGACY_OPENJDK_TARGET_CPU1" = xi586; then
13389         LDFLAGS_JDK="$LDFLAGS_JDK -safeseh"
13390     fi
13391     # TODO: make -debug optional "--disable-full-debug-symbols"
13392     LDFLAGS_JDK="$LDFLAGS_JDK -debug"
13393     LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib"
13394     LDFLAGS_JDKLIB_SUFFIX=""
13395     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13396         LDFLAGS_STACK_SIZE=1048576
13397     else
13398         LDFLAGS_STACK_SIZE=327680
13399     fi
13400     LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE"
13401 else
13402     # If this is a --hash-style=gnu system, use --hash-style=both, why?
13403     HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'`
13404     if test -n "$HAS_GNU_HASH"; then
13405         # And since we now know that the linker is gnu, then add -z defs, to forbid
13406         # undefined symbols in object files.
13407         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both -Xlinker -z -Xlinker defs"
13408         if test "x$DEBUG_LEVEL" == "xrelease"; then
13409             # When building release libraries, tell the linker optimize them.
13410             # Should this be supplied to the OSS linker as well?
13411             LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1"
13412         fi
13413     fi
13414 
13415     LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \
13416                     -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}server \
13417                     -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}client \
13418                     -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}"
13419     LDFLAGS_JDKLIB_SUFFIX="-ljvm -ljava"
13420     if test "x$COMPILER_NAME" = xossc; then
13421         LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc"
13422     fi
13423 
13424     # Only the jli library is explicitly linked when the launchers are built.
13425     # The libjvm is then dynamically loaded/linked by the launcher.
13426     LDFLAGS_JDKEXE="${LDFLAGS_JDK}"
13427     if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then
13428        LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}jli"
13429        LDFLAGS_JDKEXE_SUFFIX="-ljli"
13430     fi
13431 fi
13432 
13433 # Adjust flags according to debug level.
13434 case $DEBUG_LEVEL in
13435       fastdebug )
13436               CFLAGS="$CFLAGS $D_FLAG"
13437               JAVAC_FLAGS="$JAVAC_FLAGS -g"
13438               ;;
13439       slowdebug )
13440               CFLAGS="$CFLAGS $D_FLAG"
13441               C_O_FLAG_HI="$C_O_FLAG_NONE"
13442               C_O_FLAG_NORM="$C_O_FLAG_NONE"
13443               CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
13444               CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
13445               JAVAC_FLAGS="$JAVAC_FLAGS -g"
13446               ;;
13447 esac
13448 
13449 
13450 
13451 
13452 
13453 
13454 
13455 
13456 
13457 
13458 
13459 
13460 
13461 
13462 # After we have toolchain, we can compile the uncygdrive helper
13463 
13464 # When using cygwin, we need a wrapper binary that renames
13465 # /cygdrive/c/ arguments into c:/ arguments and peeks into
13466 # @files and rewrites these too! This wrapper binary is
13467 # called uncygdrive.exe.
13468 UNCYGDRIVE=
13469 if test "x$OPENJDK_BUILD_OS" = xwindows; then
13470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uncygdrive can be created" >&5
13471 $as_echo_n "checking if uncygdrive can be created... " >&6; }
13472     UNCYGDRIVE_SRC=`$CYGPATH -m $SRC_ROOT/common/src/uncygdrive.c`
13473     rm -f $OUTPUT_ROOT/uncygdrive*
13474     UNCYGDRIVE=`$CYGPATH -m $OUTPUT_ROOT/uncygdrive.exe`
13475     cd $OUTPUT_ROOT
13476     $CC $UNCYGDRIVE_SRC /Fe$UNCYGDRIVE > $OUTPUT_ROOT/uncygdrive1.log 2>&1
13477     cd $CURDIR
13478 
13479     if test ! -x $OUTPUT_ROOT/uncygdrive.exe; then
13480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13482         cat $OUTPUT_ROOT/uncygdrive1.log
13483         as_fn_error $? "Could not create $OUTPUT_ROOT/uncygdrive.exe" "$LINENO" 5
13484     fi
13485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCYGDRIVE" >&5
13486 $as_echo "$UNCYGDRIVE" >&6; }
13487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uncygdrive.exe works" >&5
13488 $as_echo_n "checking if uncygdrive.exe works... " >&6; }
13489     cd $OUTPUT_ROOT
13490     $UNCYGDRIVE $CC $SRC_ROOT/common/src/uncygdrive.c /Fe$OUTPUT_ROOT/uncygdrive2.exe > $OUTPUT_ROOT/uncygdrive2.log 2>&1
13491     cd $CURDIR
13492     if test ! -x $OUTPUT_ROOT/uncygdrive2.exe; then
13493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13495         cat $OUTPUT_ROOT/uncygdrive2.log
13496         as_fn_error $? "Uncygdrive did not work!" "$LINENO" 5
13497     fi
13498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13499 $as_echo "yes" >&6; }
13500     rm -f $OUTPUT_ROOT/uncygdrive?.??? $OUTPUT_ROOT/uncygdrive.obj
13501 fi
13502 
13503 
13504 
13505 
13506 
13507 # Setup debug symbols (need objcopy from the toolchain for that)
13508 
13509 #
13510 # ENABLE_DEBUG_SYMBOLS
13511 # This must be done after the toolchain is setup, since we're looking at objcopy.
13512 #
13513 ENABLE_DEBUG_SYMBOLS=default
13514 
13515 # default on macosx is no...
13516 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13517    ENABLE_DEBUG_SYMBOLS=no
13518 fi
13519 
13520 # default for embedded is no...
13521 if test "x$JDK_VARIANT" = "xembedded"; then
13522    ENABLE_DEBUG_SYMBOLS=no
13523 fi
13524 
13525 # Check whether --enable-debug-symbols was given.
13526 if test "${enable_debug_symbols+set}" = set; then :
13527   enableval=$enable_debug_symbols; ENABLE_DEBUG_SYMBOLS=${enable_debug_symbols}
13528 fi
13529 
13530 
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
13532 $as_echo_n "checking if we should generate debug symbols... " >&6; }
13533 
13534 if test "x$ENABLE_DEBUG_SYMBOLS" = "xyes" && test "x$OBJCOPY" = x; then
13535    # explicit enabling of enable-debug-symbols and can't find objcopy
13536    #   this is an error
13537    as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5
13538 fi
13539 
13540 if test "x$ENABLE_DEBUG_SYMBOLS" = "xdefault"; then
13541   # Default is on if objcopy is found, otherwise off
13542   if test "x$OBJCOPY" != x; then
13543      ENABLE_DEBUG_SYMBOLS=yes
13544   else
13545      ENABLE_DEBUG_SYMBOLS=no
13546   fi
13547 fi
13548 
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5
13550 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; }
13551 
13552 #
13553 # ZIP_DEBUGINFO_FILES
13554 #
13555 ZIP_DEBUGINFO_FILES=yes
13556 
13557 # Check whether --enable-zip-debug-info was given.
13558 if test "${enable_zip_debug_info+set}" = set; then :
13559   enableval=$enable_zip_debug_info; ZIP_DEBUGINFO_FILES=${enable_zip_debug_info}
13560 fi
13561 
13562 
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5
13564 $as_echo_n "checking if we should zip debug-info files... " >&6; }
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP_DEBUGINFO_FILES" >&5
13566 $as_echo "$ZIP_DEBUGINFO_FILES" >&6; }
13567 
13568 # Hotspot wants ZIP_DEBUGINFO_FILES to be 1 for yes
13569 #   use that...
13570 if test "x$ZIP_DEBUGINFO_FILES" = "xyes"; then
13571    ZIP_DEBUGINFO_FILES=1
13572 else
13573    ZIP_DEBUGINFO_FILES=0
13574 fi
13575 
13576 
13577 
13578 
13579 
13580 
13581 
13582 ###############################################################################
13583 #
13584 # Check dependencies for external and internal libraries.
13585 #
13586 ###############################################################################
13587 
13588 
13589 
13590 ###############################################################################
13591 #
13592 # OS specific settings that we never will need to probe.
13593 #
13594 if test "x$OPENJDK_TARGET_OS" = xlinux; then
13595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
13596 $as_echo_n "checking what is not needed on Linux?... " >&6; }
13597     PULSE_NOT_NEEDED=yes
13598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
13599 $as_echo "pulse" >&6; }
13600 fi
13601 
13602 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
13604 $as_echo_n "checking what is not needed on Solaris?... " >&6; }
13605     ALSA_NOT_NEEDED=yes
13606     PULSE_NOT_NEEDED=yes
13607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
13608 $as_echo "alsa pulse" >&6; }
13609 fi
13610 
13611 if test "x$OPENJDK_TARGET_OS" = xwindows; then
13612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
13613 $as_echo_n "checking what is not needed on Windows?... " >&6; }
13614     CUPS_NOT_NEEDED=yes
13615     ALSA_NOT_NEEDED=yes
13616     PULSE_NOT_NEEDED=yes
13617     X11_NOT_NEEDED=yes
13618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
13619 $as_echo "alsa cups pulse x11" >&6; }
13620 fi
13621 
13622 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
13624 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
13625     ALSA_NOT_NEEDED=yes
13626     PULSE_NOT_NEEDED=yes
13627     X11_NOT_NEEDED=yes
13628     FREETYPE2_NOT_NEEDED=yes
13629     # If the java runtime framework is disabled, then we need X11.
13630     # This will be adjusted below.
13631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5
13632 $as_echo "alsa pulse x11" >&6; }
13633 fi
13634 
13635 if test "x$OPENJDK_TARGET_OS" = xbsd; then
13636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5
13637 $as_echo_n "checking what is not needed on bsd?... " >&6; }
13638     ALSA_NOT_NEEDED=yes
13639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5
13640 $as_echo "alsa" >&6; }
13641 fi
13642 
13643 if test "x$OPENJDK" = "xfalse"; then
13644     FREETYPE2_NOT_NEEDED=yes
13645 fi
13646 
13647 ###############################################################################
13648 #
13649 # Check for MacOSX support for OpenJDK. If this exists, try to build a JVM
13650 # that uses this API.
13651 #
13652 # Check whether --enable-macosx-runtime-support was given.
13653 if test "${enable_macosx_runtime_support+set}" = set; then :
13654   enableval=$enable_macosx_runtime_support; MACOSX_RUNTIME_SUPPORT="${enableval}"
13655 else
13656   MACOSX_RUNTIME_SUPPORT="no"
13657 fi
13658 
13659 
13660 USE_MACOSX_RUNTIME_SUPPORT=no
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit Java runtime support in the OS" >&5
13662 $as_echo_n "checking for explicit Java runtime support in the OS... " >&6; }
13663 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then
13664     if test "x$MACOSX_RUNTIME_SUPPORT" != xno; then
13665         MACOSX_RUNTIME_SUPPORT=yes
13666         USE_MACOSX_RUNTIME_SUPPORT=yes
13667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, does not need alsa freetype2 pulse and X11" >&5
13668 $as_echo "yes, does not need alsa freetype2 pulse and X11" >&6; }
13669     else
13670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but explicitly disabled." >&5
13671 $as_echo "yes, but explicitly disabled." >&6; }
13672     fi
13673 else
13674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13676 fi
13677 
13678 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$USE_MACOSX_RUNTIME_SUPPORT" = xno; then
13679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on an X11 build on MacOSX?" >&5
13680 $as_echo_n "checking what is not needed on an X11 build on MacOSX?... " >&6; }
13681     X11_NOT_NEEDED=
13682     FREETYPE2_NOT_NEEDED=
13683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
13684 $as_echo "alsa pulse" >&6; }
13685 fi
13686 
13687 
13688 
13689 
13690 
13691 ###############################################################################
13692 #
13693 # Check for X Windows
13694 #
13695 
13696 # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
13697 # Make a simple check for the libraries at the sysroot, and setup --x-includes and
13698 # --x-libraries for the sysroot, if that seems to be correct.
13699 if test "x$SYS_ROOT" != "x/"; then
13700   if test "x$x_includes" = xNONE; then
13701     if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
13702       x_includes="$SYS_ROOT/usr/X11R6/include"
13703     fi
13704   fi
13705   if test "x$x_libraries" = xNONE; then
13706     if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
13707       x_libraries="$SYS_ROOT/usr/X11R6/lib"
13708     fi
13709   fi
13710 fi
13711 
13712 # Now let autoconf do it's magic
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13714 $as_echo_n "checking for X... " >&6; }
13715 
13716 
13717 # Check whether --with-x was given.
13718 if test "${with_x+set}" = set; then :
13719   withval=$with_x;
13720 fi
13721 
13722 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13723 if test "x$with_x" = xno; then
13724   # The user explicitly disabled X.
13725   have_x=disabled
13726 else
13727   case $x_includes,$x_libraries in #(
13728     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
13729     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
13730   $as_echo_n "(cached) " >&6
13731 else
13732   # One or both of the vars are not set, and there is no cached value.
13733 ac_x_includes=no ac_x_libraries=no
13734 rm -f -r conftest.dir
13735 if mkdir conftest.dir; then
13736   cd conftest.dir
13737   cat >Imakefile <<'_ACEOF'
13738 incroot:
13739         @echo incroot='${INCROOT}'
13740 usrlibdir:
13741         @echo usrlibdir='${USRLIBDIR}'
13742 libdir:
13743         @echo libdir='${LIBDIR}'
13744 _ACEOF
13745   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13746     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13747     for ac_var in incroot usrlibdir libdir; do
13748       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13749     done
13750     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13751     for ac_extension in a so sl dylib la dll; do
13752       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13753          test -f "$ac_im_libdir/libX11.$ac_extension"; then
13754         ac_im_usrlibdir=$ac_im_libdir; break
13755       fi
13756     done
13757     # Screen out bogus values from the imake configuration.  They are
13758     # bogus both because they are the default anyway, and because
13759     # using them would break gcc on systems where it needs fixed includes.
13760     case $ac_im_incroot in
13761         /usr/include) ac_x_includes= ;;
13762         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13763     esac
13764     case $ac_im_usrlibdir in
13765         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13766         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13767     esac
13768   fi
13769   cd ..
13770   rm -f -r conftest.dir
13771 fi
13772 
13773 # Standard set of common directories for X headers.
13774 # Check X11 before X11Rn because it is often a symlink to the current release.
13775 ac_x_header_dirs='
13776 /usr/X11/include
13777 /usr/X11R7/include
13778 /usr/X11R6/include
13779 /usr/X11R5/include
13780 /usr/X11R4/include
13781 
13782 /usr/include/X11
13783 /usr/include/X11R7
13784 /usr/include/X11R6
13785 /usr/include/X11R5
13786 /usr/include/X11R4
13787 
13788 /usr/local/X11/include
13789 /usr/local/X11R7/include
13790 /usr/local/X11R6/include
13791 /usr/local/X11R5/include
13792 /usr/local/X11R4/include
13793 
13794 /usr/local/include/X11
13795 /usr/local/include/X11R7
13796 /usr/local/include/X11R6
13797 /usr/local/include/X11R5
13798 /usr/local/include/X11R4
13799 
13800 /usr/X386/include
13801 /usr/x386/include
13802 /usr/XFree86/include/X11
13803 
13804 /usr/include
13805 /usr/local/include
13806 /usr/unsupported/include
13807 /usr/athena/include
13808 /usr/local/x11r5/include
13809 /usr/lpp/Xamples/include
13810 
13811 /usr/openwin/include
13812 /usr/openwin/share/include'
13813 
13814 if test "$ac_x_includes" = no; then
13815   # Guess where to find include files, by looking for Xlib.h.
13816   # First, try using that file with no special directory specified.
13817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h.  */
13819 #include <X11/Xlib.h>
13820 _ACEOF
13821 if ac_fn_cxx_try_cpp "$LINENO"; then :
13822   # We can compile using X headers with no special include directory.
13823 ac_x_includes=
13824 else
13825   for ac_dir in $ac_x_header_dirs; do
13826   if test -r "$ac_dir/X11/Xlib.h"; then
13827     ac_x_includes=$ac_dir
13828     break
13829   fi
13830 done
13831 fi
13832 rm -f conftest.err conftest.i conftest.$ac_ext
13833 fi # $ac_x_includes = no
13834 
13835 if test "$ac_x_libraries" = no; then
13836   # Check for the libraries.
13837   # See if we find them without any special options.
13838   # Don't add to $LIBS permanently.
13839   ac_save_LIBS=$LIBS
13840   LIBS="-lX11 $LIBS"
13841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h.  */
13843 #include <X11/Xlib.h>
13844 int
13845 main ()
13846 {
13847 XrmInitialize ()
13848   ;
13849   return 0;
13850 }
13851 _ACEOF
13852 if ac_fn_cxx_try_link "$LINENO"; then :
13853   LIBS=$ac_save_LIBS
13854 # We can link X programs with no special library path.
13855 ac_x_libraries=
13856 else
13857   LIBS=$ac_save_LIBS
13858 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13859 do
13860   # Don't even attempt the hair of trying to link an X program!
13861   for ac_extension in a so sl dylib la dll; do
13862     if test -r "$ac_dir/libX11.$ac_extension"; then
13863       ac_x_libraries=$ac_dir
13864       break 2
13865     fi
13866   done
13867 done
13868 fi
13869 rm -f core conftest.err conftest.$ac_objext \
13870     conftest$ac_exeext conftest.$ac_ext
13871 fi # $ac_x_libraries = no
13872 
13873 case $ac_x_includes,$ac_x_libraries in #(
13874   no,* | *,no | *\'*)
13875     # Didn't find X, or a directory has "'" in its name.
13876     ac_cv_have_x="have_x=no";; #(
13877   *)
13878     # Record where we found X for the cache.
13879     ac_cv_have_x="have_x=yes\
13880         ac_x_includes='$ac_x_includes'\
13881         ac_x_libraries='$ac_x_libraries'"
13882 esac
13883 fi
13884 ;; #(
13885     *) have_x=yes;;
13886   esac
13887   eval "$ac_cv_have_x"
13888 fi # $with_x != no
13889 
13890 if test "$have_x" != yes; then
13891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13892 $as_echo "$have_x" >&6; }
13893   no_x=yes
13894 else
13895   # If each of the values was on the command line, it overrides each guess.
13896   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13897   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13898   # Update the cache value to reflect the command line values.
13899   ac_cv_have_x="have_x=yes\
13900         ac_x_includes='$x_includes'\
13901         ac_x_libraries='$x_libraries'"
13902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13903 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13904 fi
13905 
13906 if test "$no_x" = yes; then
13907   # Not all programs may use this symbol, but it does not hurt to define it.
13908 
13909 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13910 
13911   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13912 else
13913   if test -n "$x_includes"; then
13914     X_CFLAGS="$X_CFLAGS -I$x_includes"
13915   fi
13916 
13917   # It would also be nice to do this for all -L options, not just this one.
13918   if test -n "$x_libraries"; then
13919     X_LIBS="$X_LIBS -L$x_libraries"
13920     # For Solaris; some versions of Sun CC require a space after -R and
13921     # others require no space.  Words are not sufficient . . . .
13922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13923 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13924     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13925     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
13926     ac_cxx_werror_flag=yes
13927     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h.  */
13929 
13930 int
13931 main ()
13932 {
13933 
13934   ;
13935   return 0;
13936 }
13937 _ACEOF
13938 if ac_fn_cxx_try_link "$LINENO"; then :
13939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 $as_echo "no" >&6; }
13941        X_LIBS="$X_LIBS -R$x_libraries"
13942 else
13943   LIBS="$ac_xsave_LIBS -R $x_libraries"
13944        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h.  */
13946 
13947 int
13948 main ()
13949 {
13950 
13951   ;
13952   return 0;
13953 }
13954 _ACEOF
13955 if ac_fn_cxx_try_link "$LINENO"; then :
13956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13957 $as_echo "yes" >&6; }
13958           X_LIBS="$X_LIBS -R $x_libraries"
13959 else
13960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13961 $as_echo "neither works" >&6; }
13962 fi
13963 rm -f core conftest.err conftest.$ac_objext \
13964     conftest$ac_exeext conftest.$ac_ext
13965 fi
13966 rm -f core conftest.err conftest.$ac_objext \
13967     conftest$ac_exeext conftest.$ac_ext
13968     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
13969     LIBS=$ac_xsave_LIBS
13970   fi
13971 
13972   # Check for system-dependent libraries X programs must link with.
13973   # Do this before checking for the system-independent R6 libraries
13974   # (-lICE), since we may need -lsocket or whatever for X linking.
13975 
13976   if test "$ISC" = yes; then
13977     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13978   else
13979     # Martyn Johnson says this is needed for Ultrix, if the X
13980     # libraries were built with DECnet support.  And Karl Berry says
13981     # the Alpha needs dnet_stub (dnet does not exist).
13982     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h.  */
13985 
13986 /* Override any GCC internal prototype to avoid an error.
13987    Use char because int might match the return type of a GCC
13988    builtin and then its argument prototype would still apply.  */
13989 #ifdef __cplusplus
13990 extern "C"
13991 #endif
13992 char XOpenDisplay ();
13993 int
13994 main ()
13995 {
13996 return XOpenDisplay ();
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 if ac_fn_cxx_try_link "$LINENO"; then :
14002 
14003 else
14004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
14005 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
14006 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
14007   $as_echo_n "(cached) " >&6
14008 else
14009   ac_check_lib_save_LIBS=$LIBS
14010 LIBS="-ldnet  $LIBS"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h.  */
14013 
14014 /* Override any GCC internal prototype to avoid an error.
14015    Use char because int might match the return type of a GCC
14016    builtin and then its argument prototype would still apply.  */
14017 #ifdef __cplusplus
14018 extern "C"
14019 #endif
14020 char dnet_ntoa ();
14021 int
14022 main ()
14023 {
14024 return dnet_ntoa ();
14025   ;
14026   return 0;
14027 }
14028 _ACEOF
14029 if ac_fn_cxx_try_link "$LINENO"; then :
14030   ac_cv_lib_dnet_dnet_ntoa=yes
14031 else
14032   ac_cv_lib_dnet_dnet_ntoa=no
14033 fi
14034 rm -f core conftest.err conftest.$ac_objext \
14035     conftest$ac_exeext conftest.$ac_ext
14036 LIBS=$ac_check_lib_save_LIBS
14037 fi
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
14039 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
14040 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
14041   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14042 fi
14043 
14044     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14045       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
14046 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
14047 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
14048   $as_echo_n "(cached) " >&6
14049 else
14050   ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-ldnet_stub  $LIBS"
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h.  */
14054 
14055 /* Override any GCC internal prototype to avoid an error.
14056    Use char because int might match the return type of a GCC
14057    builtin and then its argument prototype would still apply.  */
14058 #ifdef __cplusplus
14059 extern "C"
14060 #endif
14061 char dnet_ntoa ();
14062 int
14063 main ()
14064 {
14065 return dnet_ntoa ();
14066   ;
14067   return 0;
14068 }
14069 _ACEOF
14070 if ac_fn_cxx_try_link "$LINENO"; then :
14071   ac_cv_lib_dnet_stub_dnet_ntoa=yes
14072 else
14073   ac_cv_lib_dnet_stub_dnet_ntoa=no
14074 fi
14075 rm -f core conftest.err conftest.$ac_objext \
14076     conftest$ac_exeext conftest.$ac_ext
14077 LIBS=$ac_check_lib_save_LIBS
14078 fi
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
14080 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
14081 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
14082   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14083 fi
14084 
14085     fi
14086 fi
14087 rm -f core conftest.err conftest.$ac_objext \
14088     conftest$ac_exeext conftest.$ac_ext
14089     LIBS="$ac_xsave_LIBS"
14090 
14091     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14092     # to get the SysV transport functions.
14093     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
14094     # needs -lnsl.
14095     # The nsl library prevents programs from opening the X display
14096     # on Irix 5.2, according to T.E. Dickey.
14097     # The functions gethostbyname, getservbyname, and inet_addr are
14098     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
14099     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14100 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14101 
14102 fi
14103 
14104     if test $ac_cv_func_gethostbyname = no; then
14105       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14106 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14107 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
14108   $as_echo_n "(cached) " >&6
14109 else
14110   ac_check_lib_save_LIBS=$LIBS
14111 LIBS="-lnsl  $LIBS"
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h.  */
14114 
14115 /* Override any GCC internal prototype to avoid an error.
14116    Use char because int might match the return type of a GCC
14117    builtin and then its argument prototype would still apply.  */
14118 #ifdef __cplusplus
14119 extern "C"
14120 #endif
14121 char gethostbyname ();
14122 int
14123 main ()
14124 {
14125 return gethostbyname ();
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_cxx_try_link "$LINENO"; then :
14131   ac_cv_lib_nsl_gethostbyname=yes
14132 else
14133   ac_cv_lib_nsl_gethostbyname=no
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext \
14136     conftest$ac_exeext conftest.$ac_ext
14137 LIBS=$ac_check_lib_save_LIBS
14138 fi
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14140 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14141 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
14142   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14143 fi
14144 
14145       if test $ac_cv_lib_nsl_gethostbyname = no; then
14146         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
14147 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
14148 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
14149   $as_echo_n "(cached) " >&6
14150 else
14151   ac_check_lib_save_LIBS=$LIBS
14152 LIBS="-lbsd  $LIBS"
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h.  */
14155 
14156 /* Override any GCC internal prototype to avoid an error.
14157    Use char because int might match the return type of a GCC
14158    builtin and then its argument prototype would still apply.  */
14159 #ifdef __cplusplus
14160 extern "C"
14161 #endif
14162 char gethostbyname ();
14163 int
14164 main ()
14165 {
14166 return gethostbyname ();
14167   ;
14168   return 0;
14169 }
14170 _ACEOF
14171 if ac_fn_cxx_try_link "$LINENO"; then :
14172   ac_cv_lib_bsd_gethostbyname=yes
14173 else
14174   ac_cv_lib_bsd_gethostbyname=no
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext \
14177     conftest$ac_exeext conftest.$ac_ext
14178 LIBS=$ac_check_lib_save_LIBS
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
14181 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
14182 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
14183   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
14184 fi
14185 
14186       fi
14187     fi
14188 
14189     # lieder@skyler.mavd.honeywell.com says without -lsocket,
14190     # socket/setsockopt and other routines are undefined under SCO ODT
14191     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
14192     # on later versions), says Simon Leinen: it contains gethostby*
14193     # variants that don't use the name server (or something).  -lsocket
14194     # must be given before -lnsl if both are needed.  We assume that
14195     # if connect needs -lnsl, so does gethostbyname.
14196     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
14197 if test "x$ac_cv_func_connect" = x""yes; then :
14198 
14199 fi
14200 
14201     if test $ac_cv_func_connect = no; then
14202       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14203 $as_echo_n "checking for connect in -lsocket... " >&6; }
14204 if test "${ac_cv_lib_socket_connect+set}" = set; then :
14205   $as_echo_n "(cached) " >&6
14206 else
14207   ac_check_lib_save_LIBS=$LIBS
14208 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h.  */
14211 
14212 /* Override any GCC internal prototype to avoid an error.
14213    Use char because int might match the return type of a GCC
14214    builtin and then its argument prototype would still apply.  */
14215 #ifdef __cplusplus
14216 extern "C"
14217 #endif
14218 char connect ();
14219 int
14220 main ()
14221 {
14222 return connect ();
14223   ;
14224   return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_cxx_try_link "$LINENO"; then :
14228   ac_cv_lib_socket_connect=yes
14229 else
14230   ac_cv_lib_socket_connect=no
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext \
14233     conftest$ac_exeext conftest.$ac_ext
14234 LIBS=$ac_check_lib_save_LIBS
14235 fi
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14237 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14238 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
14239   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14240 fi
14241 
14242     fi
14243 
14244     # Guillermo Gomez says -lposix is necessary on A/UX.
14245     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
14246 if test "x$ac_cv_func_remove" = x""yes; then :
14247 
14248 fi
14249 
14250     if test $ac_cv_func_remove = no; then
14251       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
14252 $as_echo_n "checking for remove in -lposix... " >&6; }
14253 if test "${ac_cv_lib_posix_remove+set}" = set; then :
14254   $as_echo_n "(cached) " >&6
14255 else
14256   ac_check_lib_save_LIBS=$LIBS
14257 LIBS="-lposix  $LIBS"
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h.  */
14260 
14261 /* Override any GCC internal prototype to avoid an error.
14262    Use char because int might match the return type of a GCC
14263    builtin and then its argument prototype would still apply.  */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char remove ();
14268 int
14269 main ()
14270 {
14271 return remove ();
14272   ;
14273   return 0;
14274 }
14275 _ACEOF
14276 if ac_fn_cxx_try_link "$LINENO"; then :
14277   ac_cv_lib_posix_remove=yes
14278 else
14279   ac_cv_lib_posix_remove=no
14280 fi
14281 rm -f core conftest.err conftest.$ac_objext \
14282     conftest$ac_exeext conftest.$ac_ext
14283 LIBS=$ac_check_lib_save_LIBS
14284 fi
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
14286 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14287 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
14288   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14289 fi
14290 
14291     fi
14292 
14293     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14294     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14295 if test "x$ac_cv_func_shmat" = x""yes; then :
14296 
14297 fi
14298 
14299     if test $ac_cv_func_shmat = no; then
14300       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14301 $as_echo_n "checking for shmat in -lipc... " >&6; }
14302 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
14303   $as_echo_n "(cached) " >&6
14304 else
14305   ac_check_lib_save_LIBS=$LIBS
14306 LIBS="-lipc  $LIBS"
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h.  */
14309 
14310 /* Override any GCC internal prototype to avoid an error.
14311    Use char because int might match the return type of a GCC
14312    builtin and then its argument prototype would still apply.  */
14313 #ifdef __cplusplus
14314 extern "C"
14315 #endif
14316 char shmat ();
14317 int
14318 main ()
14319 {
14320 return shmat ();
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 if ac_fn_cxx_try_link "$LINENO"; then :
14326   ac_cv_lib_ipc_shmat=yes
14327 else
14328   ac_cv_lib_ipc_shmat=no
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext \
14331     conftest$ac_exeext conftest.$ac_ext
14332 LIBS=$ac_check_lib_save_LIBS
14333 fi
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14335 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14336 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
14337   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14338 fi
14339 
14340     fi
14341   fi
14342 
14343   # Check for libraries that X11R6 Xt/Xaw programs need.
14344   ac_save_LDFLAGS=$LDFLAGS
14345   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14346   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14347   # check for ICE first), but we must link in the order -lSM -lICE or
14348   # we get undefined symbols.  So assume we have SM if we have ICE.
14349   # These have to be linked with before -lX11, unlike the other
14350   # libraries we check for below, so use a different variable.
14351   # John Interrante, Karl Berry
14352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14353 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14354 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
14355   $as_echo_n "(cached) " >&6
14356 else
14357   ac_check_lib_save_LIBS=$LIBS
14358 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h.  */
14361 
14362 /* Override any GCC internal prototype to avoid an error.
14363    Use char because int might match the return type of a GCC
14364    builtin and then its argument prototype would still apply.  */
14365 #ifdef __cplusplus
14366 extern "C"
14367 #endif
14368 char IceConnectionNumber ();
14369 int
14370 main ()
14371 {
14372 return IceConnectionNumber ();
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 if ac_fn_cxx_try_link "$LINENO"; then :
14378   ac_cv_lib_ICE_IceConnectionNumber=yes
14379 else
14380   ac_cv_lib_ICE_IceConnectionNumber=no
14381 fi
14382 rm -f core conftest.err conftest.$ac_objext \
14383     conftest$ac_exeext conftest.$ac_ext
14384 LIBS=$ac_check_lib_save_LIBS
14385 fi
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14387 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14388 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
14389   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14390 fi
14391 
14392   LDFLAGS=$ac_save_LDFLAGS
14393 
14394 fi
14395 
14396 
14397 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
14398 
14399     # Print a helpful message on how to acquire the necessary build dependency.
14400     # x11 is the help tag: freetyp2, cups, pulse, alsa etc
14401     MISSING_DEPENDENCY=x11
14402     PKGHANDLER_COMMAND=
14403 
14404     case $PKGHANDLER in
14405         apt-get)
14406                 apt_help     $MISSING_DEPENDENCY ;;
14407     yum)
14408                 yum_help     $MISSING_DEPENDENCY ;;
14409         port)
14410                 port_help    $MISSING_DEPENDENCY ;;
14411         pkgutil)
14412                 pkgutil_help $MISSING_DEPENDENCY ;;
14413         pkgadd)
14414                 pkgadd_help  $MISSING_DEPENDENCY ;;
14415     * )
14416       break ;;
14417     esac
14418 
14419     if test "x$PKGHANDLER_COMMAND" != x; then
14420         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
14421     fi
14422 
14423     as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5
14424 fi
14425 
14426 # Some of the old makefiles require a setting of OPENWIN_HOME
14427 # Since the X11R6 directory has disappeared on later Linuxes,
14428 # we need to probe for it.
14429 if test "x$OPENJDK_TARGET_OS" = xlinux; then
14430     if test -d "$SYS_ROOT/usr/X11R6"; then
14431         OPENWIN_HOME="$SYS_ROOT/usr/X11R6"
14432     fi
14433     if test -d "$SYS_ROOT/usr/include/X11"; then
14434         OPENWIN_HOME="$SYS_ROOT/usr"
14435     fi
14436 fi
14437 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14438     OPENWIN_HOME="/usr/openwin"
14439 fi
14440 
14441 
14442 
14443 #
14444 # Weird Sol10 something check...TODO change to try compile
14445 #
14446 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then
14447   if test "`uname -r`" = "5.10"; then
14448      if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then
14449         X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS"
14450      fi
14451   fi
14452 fi
14453 
14454 ac_ext=c
14455 ac_cpp='$CPP $CPPFLAGS'
14456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14459 
14460 OLD_CFLAGS="$CFLAGS"
14461 CFLAGS="$CFLAGS $X_CFLAGS"
14462 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h
14463 do :
14464   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14465 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14466 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14467   cat >>confdefs.h <<_ACEOF
14468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14469 _ACEOF
14470  X11_A_OK=yes
14471 else
14472   X11_A_OK=no
14473 fi
14474 
14475 done
14476 
14477 CFLAGS="$OLD_CFLAGS"
14478 ac_ext=cpp
14479 ac_cpp='$CXXCPP $CPPFLAGS'
14480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14483 
14484 
14485 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
14486 
14487     # Print a helpful message on how to acquire the necessary build dependency.
14488     # x11 is the help tag: freetyp2, cups, pulse, alsa etc
14489     MISSING_DEPENDENCY=x11
14490     PKGHANDLER_COMMAND=
14491 
14492     case $PKGHANDLER in
14493         apt-get)
14494                 apt_help     $MISSING_DEPENDENCY ;;
14495     yum)
14496                 yum_help     $MISSING_DEPENDENCY ;;
14497         port)
14498                 port_help    $MISSING_DEPENDENCY ;;
14499         pkgutil)
14500                 pkgutil_help $MISSING_DEPENDENCY ;;
14501         pkgadd)
14502                 pkgadd_help  $MISSING_DEPENDENCY ;;
14503     * )
14504       break ;;
14505     esac
14506 
14507     if test "x$PKGHANDLER_COMMAND" != x; then
14508         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
14509     fi
14510 
14511     as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h). $HELP_MSG" "$LINENO" 5
14512 fi
14513 
14514 
14515 
14516 
14517 
14518 
14519 ###############################################################################
14520 #
14521 # The common unix printing system cups is used to print from java.
14522 #
14523 
14524 # Check whether --with-cups was given.
14525 if test "${with_cups+set}" = set; then :
14526   withval=$with_cups;
14527 fi
14528 
14529 
14530 # Check whether --with-cups-include was given.
14531 if test "${with_cups_include+set}" = set; then :
14532   withval=$with_cups_include;
14533 fi
14534 
14535 
14536 # Check whether --with-cups-lib was given.
14537 if test "${with_cups_lib+set}" = set; then :
14538   withval=$with_cups_lib;
14539 fi
14540 
14541 
14542 if test "x$CUPS_NOT_NEEDED" = xyes; then
14543         if test "x${with_cups}" != x || test "x${with_cups_include}" != x || test "x${with_cups_lib}" != x; then
14544                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5
14545 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;}
14546         fi
14547         CUPS_CFLAGS=
14548         CUPS_LIBS=
14549 else
14550         CUPS_FOUND=no
14551 
14552         if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno || test "x${with_cups_lib}" = xno; then
14553             as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5
14554         fi
14555 
14556         if test "x${with_cups}" != x; then
14557             CUPS_LIBS="-L${with_cups}/lib -lcups"
14558             CUPS_CFLAGS="-I${with_cups}/include"
14559             CUPS_FOUND=yes
14560         fi
14561         if test "x${with_cups_include}" != x; then
14562             CUPS_CFLAGS="-I${with_cups_include}"
14563             CUPS_FOUND=yes
14564         fi
14565         if test "x${with_cups_lib}" != x; then
14566             CUPS_LIBS="-L${with_cups_lib} -lcups"
14567             CUPS_FOUND=yes
14568         fi
14569         if test "x$CUPS_FOUND" = xno; then
14570 
14571 
14572     if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
14573         # Source the builddeps file again, to make sure it uses the latest variables!
14574         . $builddepsfile
14575         # Look for a target and build machine specific resource!
14576         eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
14577         if test "x$resource" = x; then
14578             # Ok, lets instead look for a target specific resource
14579             eval resource=\${builddep_cups_TARGET_${rewritten_target_var}}
14580         fi
14581         if test "x$resource" = x; then
14582             # Ok, lets instead look for a build specific resource
14583             eval resource=\${builddep_cups_BUILD_${rewritten_build_var}}
14584         fi
14585         if test "x$resource" = x; then
14586             # Ok, lets instead look for a generic resource
14587             # (The cups comes from M4 and not the shell, thus no need for eval here.)
14588             resource=${builddep_cups}
14589         fi
14590         if test "x$resource" != x; then
14591             { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5
14592 $as_echo "$as_me: Using builddeps $resource for cups" >&6;}
14593             # If the resource in the builddeps.conf file is an existing directory,
14594             # for example /java/linux/cups
14595             if test -d ${resource}; then
14596                depdir=${resource}
14597             else
14598 
14599 # cups is for example mymodule
14600 # $resource is for example libs/general/libmymod_1_2_3.zip
14601 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
14602 # $with_builddeps_dir is for example /localhome/builddeps
14603 # depdir is the name of the variable into which we store the depdir, eg MYMOD
14604 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
14605 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
14606     filename=`basename $resource`
14607     filebase=`echo $filename | sed 's/\.[^\.]*$//'`
14608     filebase=${filename%%.*}
14609     extension=${filename#*.}
14610     installdir=$with_builddeps_dir/$filebase
14611     if test ! -f $installdir/$filename.unpacked; then
14612         { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5
14613 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;}
14614         if test ! -d $installdir; then
14615             mkdir -p $installdir
14616         fi
14617         if test ! -d $installdir; then
14618             as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
14619         fi
14620         tmpfile=`mktemp $installdir/cups.XXXXXXXXX`
14621         touch $tmpfile
14622         if test ! -f $tmpfile; then
14623             as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
14624         fi
14625 
14626     # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
14627     # $tmpfile is the local file name for the downloaded file.
14628     VALID_TOOL=no
14629     if test "x$BDEPS_FTP" = xwget; then
14630        VALID_TOOL=yes
14631        wget -O $tmpfile $with_builddeps_server/$resource
14632     fi
14633     if test "x$BDEPS_FTP" = xlftp; then
14634        VALID_TOOL=yes
14635        lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
14636     fi
14637     if test "x$BDEPS_FTP" = xftp; then
14638         VALID_TOOL=yes
14639         FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
14640         FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
14641         FTPUSERPWD=${FTPSERVER%%@*}
14642         if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
14643             FTPUSER=${userpwd%%:*}
14644             FTPPWD=${userpwd#*@}
14645             FTPSERVER=${FTPSERVER#*@}
14646         else
14647             FTPUSER=ftp
14648             FTPPWD=ftp
14649         fi
14650         # the "pass" command does not work on some
14651         # ftp clients (read ftp.exe) but if it works,
14652         # passive mode is better!
14653         (\
14654             echo "user $FTPUSER $FTPPWD"        ;\
14655             echo "pass"                         ;\
14656             echo "bin"                          ;\
14657             echo "get $FTPPATH $tmpfile"              ;\
14658         ) | ftp -in $FTPSERVER
14659     fi
14660     if test "x$VALID_TOOL" != xyes; then
14661        as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
14662     fi
14663 
14664         mv $tmpfile $installdir/$filename
14665         if test ! -s $installdir/$filename; then
14666             as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
14667         fi
14668         case "$extension" in
14669             zip)  echo "Unzipping $installdir/$filename..."
14670                (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
14671             ;;
14672             tar.gz) echo "Untaring $installdir/$filename..."
14673                (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
14674             ;;
14675             tgz) echo "Untaring $installdir/$filename..."
14676                (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
14677             ;;
14678             *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
14679             ;;
14680         esac
14681     fi
14682     if test -f $installdir/$filename.unpacked; then
14683         depdir=$installdir
14684     fi
14685 
14686             fi
14687             # Source the builddeps file again, because in the previous command, the depdir
14688             # was updated to point at the current build dependency install directory.
14689             . $builddepsfile
14690             # Now extract variables from the builddeps.conf files.
14691             theroot=${builddep_cups_ROOT}
14692             thecflags=${builddep_cups_CFLAGS}
14693             thelibs=${builddep_cups_LIBS}
14694             if test "x$depdir" = x; then
14695                 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5
14696             fi
14697             CUPS=$depdir
14698             if test "x$theroot" != x; then
14699                CUPS="$theroot"
14700             fi
14701             if test "x$thecflags" != x; then
14702                CUPS_CFLAGS="$thecflags"
14703             fi
14704             if test "x$thelibs" != x; then
14705                CUPS_LIBS="$thelibs"
14706             fi
14707             CUPS_FOUND=yes
14708 
14709         fi
14710 
14711     fi
14712 
14713         fi
14714         if test "x$CUPS_FOUND" = xno; then
14715             # Are the cups headers installed in the default /usr/include location?
14716             for ac_header in cups/cups.h cups/ppd.h
14717 do :
14718   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14719 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14721   cat >>confdefs.h <<_ACEOF
14722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14723 _ACEOF
14724  CUPS_FOUND=yes
14725                               CUPS_CFLAGS=
14726                               CUPS_LIBS="-lcups"
14727                               DEFAULT_CUPS=yes
14728 fi
14729 
14730 done
14731 
14732         fi
14733         if test "x$CUPS_FOUND" = xno; then
14734             # Getting nervous now? Lets poke around for standard Solaris third-party
14735             # package installation locations.
14736             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers and libs" >&5
14737 $as_echo_n "checking for cups headers and libs... " >&6; }
14738             if test -s /opt/sfw/cups/include/cups/cups.h; then
14739                # An SFW package seems to be installed!
14740                CUPS_FOUND=yes
14741                CUPS_CFLAGS="-I/opt/sfw/cups/include"
14742                CUPS_LIBS="-L/opt/sfw/cups/lib -lcups"
14743             elif test -s /opt/csw/include/cups/cups.h; then
14744                # A CSW package seems to be installed!
14745                CUPS_FOUND=yes
14746                CUPS_CFLAGS="-I/opt/csw/include"
14747                CUPS_LIBS="-L/opt/csw/lib -lcups"
14748             fi
14749             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5
14750 $as_echo "$CUPS_FOUND" >&6; }
14751         fi
14752         if test "x$CUPS_FOUND" = xno; then
14753 
14754     # Print a helpful message on how to acquire the necessary build dependency.
14755     # cups is the help tag: freetyp2, cups, pulse, alsa etc
14756     MISSING_DEPENDENCY=cups
14757     PKGHANDLER_COMMAND=
14758 
14759     case $PKGHANDLER in
14760         apt-get)
14761                 apt_help     $MISSING_DEPENDENCY ;;
14762     yum)
14763                 yum_help     $MISSING_DEPENDENCY ;;
14764         port)
14765                 port_help    $MISSING_DEPENDENCY ;;
14766         pkgutil)
14767                 pkgutil_help $MISSING_DEPENDENCY ;;
14768         pkgadd)
14769                 pkgadd_help  $MISSING_DEPENDENCY ;;
14770     * )
14771       break ;;
14772     esac
14773 
14774     if test "x$PKGHANDLER_COMMAND" != x; then
14775         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
14776     fi
14777 
14778             as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
14779         fi
14780 fi
14781 
14782 
14783 
14784 
14785 
14786 
14787 
14788 ###############################################################################
14789 #
14790 # The ubiquitous freetype2 library is used to render fonts.
14791 #
14792 
14793 # Check whether --with-freetype was given.
14794 if test "${with_freetype+set}" = set; then :
14795   withval=$with_freetype;
14796 fi
14797 
14798 
14799 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree
14800 USING_SYSTEM_FT_LIB=false
14801 
14802 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then
14803         if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
14804                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5
14805 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;}
14806         fi
14807         FREETYPE2_CFLAGS=
14808         FREETYPE2_LIBS=
14809         FREETYPE2_LIB_PATH=
14810 else
14811         FREETYPE2_FOUND=no
14812 
14813         if test "x$with_freetype" != x; then
14814 
14815     # Fail with message the path to freetype if var with_freetype contains a path with no spaces in it.
14816     # Unless on Windows, where we can rewrite the path.
14817     HAS_SPACE=`echo "$with_freetype" | grep " "`
14818     if test "x$HAS_SPACE" != x; then
14819         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
14820             with_freetype=`$CYGPATH -s -m -a "$with_freetype"`
14821             with_freetype=`$CYGPATH -u "$with_freetype"`
14822         else
14823             as_fn_error $? "You cannot have spaces in the path to freetype! \"$with_freetype\"" "$LINENO" 5
14824         fi
14825     fi
14826 
14827             FREETYPE2_LIBS="-L$with_freetype/lib -lfreetype"
14828             if test "x$OPENJDK_TARGET_OS" = xwindows; then
14829                 FREETYPE2_LIBS="$with_freetype/lib/freetype.lib"
14830             fi
14831             FREETYPE2_LIB_PATH="$with_freetype/lib"
14832             FREETYPE2_CFLAGS="-I$with_freetype/include"
14833             if test -s $with_freetype/include/ft2build.h && test -d $with_freetype/include/freetype2/freetype; then
14834                 FREETYPE2_CFLAGS="-I$with_freetype/include/freetype2 -I$with_freetype/include"
14835             fi
14836             FREETYPE2_FOUND=yes
14837             if test "x$FREETYPE2_FOUND" = xyes; then
14838                 # Verify that the directories exist
14839                 if ! test -d "$with_freetype/lib" || ! test -d "$with_freetype/include"; then
14840                    as_fn_error $? "Could not find the expected directories $with_freetype/lib and $with_freetype/include" "$LINENO" 5
14841                 fi
14842                 # List the contents of the lib.
14843                 FREETYPELIB=`ls $with_freetype/lib/libfreetype.so $with_freetype/lib/freetype.dll 2> /dev/null`
14844                 if test "x$FREETYPELIB" = x; then
14845                    as_fn_error $? "Could not find libfreetype.se nor freetype.dll in $with_freetype/lib" "$LINENO" 5
14846                 fi
14847                 # Check one h-file
14848                 if ! test -s "$with_freetype/include/ft2build.h"; then
14849                    as_fn_error $? "Could not find $with_freetype/include/ft2build.h" "$LINENO" 5
14850                 fi
14851             fi
14852         fi
14853         if test "x$FREETYPE2_FOUND" = xno; then
14854 
14855 
14856     if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
14857         # Source the builddeps file again, to make sure it uses the latest variables!
14858         . $builddepsfile
14859         # Look for a target and build machine specific resource!
14860         eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
14861         if test "x$resource" = x; then
14862             # Ok, lets instead look for a target specific resource
14863             eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}}
14864         fi
14865         if test "x$resource" = x; then
14866             # Ok, lets instead look for a build specific resource
14867             eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}}
14868         fi
14869         if test "x$resource" = x; then
14870             # Ok, lets instead look for a generic resource
14871             # (The freetype2 comes from M4 and not the shell, thus no need for eval here.)
14872             resource=${builddep_freetype2}
14873         fi
14874         if test "x$resource" != x; then
14875             { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5
14876 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;}
14877             # If the resource in the builddeps.conf file is an existing directory,
14878             # for example /java/linux/cups
14879             if test -d ${resource}; then
14880                depdir=${resource}
14881             else
14882 
14883 # freetype2 is for example mymodule
14884 # $resource is for example libs/general/libmymod_1_2_3.zip
14885 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
14886 # $with_builddeps_dir is for example /localhome/builddeps
14887 # depdir is the name of the variable into which we store the depdir, eg MYMOD
14888 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
14889 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
14890     filename=`basename $resource`
14891     filebase=`echo $filename | sed 's/\.[^\.]*$//'`
14892     filebase=${filename%%.*}
14893     extension=${filename#*.}
14894     installdir=$with_builddeps_dir/$filebase
14895     if test ! -f $installdir/$filename.unpacked; then
14896         { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5
14897 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;}
14898         if test ! -d $installdir; then
14899             mkdir -p $installdir
14900         fi
14901         if test ! -d $installdir; then
14902             as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
14903         fi
14904         tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX`
14905         touch $tmpfile
14906         if test ! -f $tmpfile; then
14907             as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
14908         fi
14909 
14910     # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
14911     # $tmpfile is the local file name for the downloaded file.
14912     VALID_TOOL=no
14913     if test "x$BDEPS_FTP" = xwget; then
14914        VALID_TOOL=yes
14915        wget -O $tmpfile $with_builddeps_server/$resource
14916     fi
14917     if test "x$BDEPS_FTP" = xlftp; then
14918        VALID_TOOL=yes
14919        lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
14920     fi
14921     if test "x$BDEPS_FTP" = xftp; then
14922         VALID_TOOL=yes
14923         FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
14924         FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
14925         FTPUSERPWD=${FTPSERVER%%@*}
14926         if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
14927             FTPUSER=${userpwd%%:*}
14928             FTPPWD=${userpwd#*@}
14929             FTPSERVER=${FTPSERVER#*@}
14930         else
14931             FTPUSER=ftp
14932             FTPPWD=ftp
14933         fi
14934         # the "pass" command does not work on some
14935         # ftp clients (read ftp.exe) but if it works,
14936         # passive mode is better!
14937         (\
14938             echo "user $FTPUSER $FTPPWD"        ;\
14939             echo "pass"                         ;\
14940             echo "bin"                          ;\
14941             echo "get $FTPPATH $tmpfile"              ;\
14942         ) | ftp -in $FTPSERVER
14943     fi
14944     if test "x$VALID_TOOL" != xyes; then
14945        as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
14946     fi
14947 
14948         mv $tmpfile $installdir/$filename
14949         if test ! -s $installdir/$filename; then
14950             as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
14951         fi
14952         case "$extension" in
14953             zip)  echo "Unzipping $installdir/$filename..."
14954                (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
14955             ;;
14956             tar.gz) echo "Untaring $installdir/$filename..."
14957                (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
14958             ;;
14959             tgz) echo "Untaring $installdir/$filename..."
14960                (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
14961             ;;
14962             *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
14963             ;;
14964         esac
14965     fi
14966     if test -f $installdir/$filename.unpacked; then
14967         depdir=$installdir
14968     fi
14969 
14970             fi
14971             # Source the builddeps file again, because in the previous command, the depdir
14972             # was updated to point at the current build dependency install directory.
14973             . $builddepsfile
14974             # Now extract variables from the builddeps.conf files.
14975             theroot=${builddep_freetype2_ROOT}
14976             thecflags=${builddep_freetype2_CFLAGS}
14977             thelibs=${builddep_freetype2_LIBS}
14978             if test "x$depdir" = x; then
14979                 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5
14980             fi
14981             FREETYPE2=$depdir
14982             if test "x$theroot" != x; then
14983                FREETYPE2="$theroot"
14984             fi
14985             if test "x$thecflags" != x; then
14986                FREETYPE2_CFLAGS="$thecflags"
14987             fi
14988             if test "x$thelibs" != x; then
14989                FREETYPE2_LIBS="$thelibs"
14990             fi
14991             FREETYPE2_FOUND=yes
14992             else FREETYPE2_FOUND=no
14993 
14994         fi
14995         else FREETYPE2_FOUND=no
14996 
14997     fi
14998 
14999             USING_SYSTEM_FT_LIB=true
15000         fi
15001         if test "x$FREETYPE2_FOUND" = xno; then
15002 
15003 pkg_failed=no
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5
15005 $as_echo_n "checking for FREETYPE2... " >&6; }
15006 
15007 if test -n "$FREETYPE2_CFLAGS"; then
15008     pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
15009  elif test -n "$PKG_CONFIG"; then
15010     if test -n "$PKG_CONFIG" && \
15011     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
15012   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
15013   ac_status=$?
15014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15015   test $ac_status = 0; }; then
15016   pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
15017 else
15018   pkg_failed=yes
15019 fi
15020  else
15021     pkg_failed=untried
15022 fi
15023 if test -n "$FREETYPE2_LIBS"; then
15024     pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
15025  elif test -n "$PKG_CONFIG"; then
15026     if test -n "$PKG_CONFIG" && \
15027     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
15028   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
15029   ac_status=$?
15030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15031   test $ac_status = 0; }; then
15032   pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
15033 else
15034   pkg_failed=yes
15035 fi
15036  else
15037     pkg_failed=untried
15038 fi
15039 
15040 
15041 
15042 if test $pkg_failed = yes; then
15043 
15044 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15045         _pkg_short_errors_supported=yes
15046 else
15047         _pkg_short_errors_supported=no
15048 fi
15049         if test $_pkg_short_errors_supported = yes; then
15050                 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
15051         else
15052                 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
15053         fi
15054         # Put the nasty error message in config.log where it belongs
15055         echo "$FREETYPE2_PKG_ERRORS" >&5
15056 
15057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058 $as_echo "no" >&6; }
15059                 FREETYPE2_FOUND=no
15060 elif test $pkg_failed = untried; then
15061         FREETYPE2_FOUND=no
15062 else
15063         FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
15064         FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
15065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15066 $as_echo "yes" >&6; }
15067         FREETYPE2_FOUND=yes
15068 fi
15069             USING_SYSTEM_FT_LIB=true
15070         fi
15071         if test "x$FREETYPE2_FOUND" = xno; then
15072             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in some standard locations" >&5
15073 $as_echo_n "checking for freetype in some standard locations... " >&6; }
15074 
15075             if test -s /usr/X11/include/ft2build.h && test -d /usr/X11/include/freetype2/freetype; then
15076                 DEFAULT_FREETYPE_CFLAGS="-I/usr/X11/include/freetype2 -I/usr/X11/include"
15077                 DEFAULT_FREETYPE_LIBS="-L/usr/X11/lib -lfreetype"
15078             fi
15079             if test -s /usr/include/ft2build.h && test -d /usr/include/freetype2/freetype; then
15080                 DEFAULT_FREETYPE_CFLAGS="-I/usr/include/freetype2"
15081                 DEFAULT_FREETYPE_LIBS="-lfreetype"
15082             fi
15083 
15084             PREV_CXXCFLAGS="$CXXFLAGS"
15085             PREV_LDFLAGS="$LDFLAGS"
15086             CXXFLAGS="$CXXFLAGS $DEFAULT_FREETYPE_CFLAGS"
15087             LDFLAGS="$LDFLAGS $DEFAULT_FREETYPE_LIBS"
15088             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h.  */
15090 #include<ft2build.h>
15091                             #include FT_FREETYPE_H
15092                            int main() { return 0; }
15093 
15094 _ACEOF
15095 if ac_fn_cxx_try_link "$LINENO"; then :
15096 
15097                               # Yes, the default cflags and libs did the trick.
15098                               FREETYPE2_FOUND=yes
15099                               FREETYPE2_CFLAGS="$DEFAULT_FREETYPE_CFLAGS"
15100                               FREETYPE2_LIBS="$DEFAULT_FREETYPE_LIBS"
15101 
15102 else
15103 
15104                               FREETYPE2_FOUND=no
15105 
15106 fi
15107 rm -f core conftest.err conftest.$ac_objext \
15108     conftest$ac_exeext conftest.$ac_ext
15109             CXXCFLAGS="$PREV_CXXFLAGS"
15110             LDFLAGS="$PREV_LDFLAGS"
15111             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_FOUND" >&5
15112 $as_echo "$FREETYPE2_FOUND" >&6; }
15113             USING_SYSTEM_FT_LIB=true
15114         fi
15115         if test "x$FREETYPE2_FOUND" = xno; then
15116 
15117     # Print a helpful message on how to acquire the necessary build dependency.
15118     # freetype2 is the help tag: freetyp2, cups, pulse, alsa etc
15119     MISSING_DEPENDENCY=freetype2
15120     PKGHANDLER_COMMAND=
15121 
15122     case $PKGHANDLER in
15123         apt-get)
15124                 apt_help     $MISSING_DEPENDENCY ;;
15125     yum)
15126                 yum_help     $MISSING_DEPENDENCY ;;
15127         port)
15128                 port_help    $MISSING_DEPENDENCY ;;
15129         pkgutil)
15130                 pkgutil_help $MISSING_DEPENDENCY ;;
15131         pkgadd)
15132                 pkgadd_help  $MISSING_DEPENDENCY ;;
15133     * )
15134       break ;;
15135     esac
15136 
15137     if test "x$PKGHANDLER_COMMAND" != x; then
15138         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
15139     fi
15140 
15141                 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
15142         fi
15143 fi
15144 
15145 
15146 
15147 
15148 
15149 
15150 
15151 
15152 
15153 ###############################################################################
15154 #
15155 # Check for alsa headers and libraries. Used on Linux/GNU systems.
15156 #
15157 
15158 # Check whether --with-alsa was given.
15159 if test "${with_alsa+set}" = set; then :
15160   withval=$with_alsa;
15161 fi
15162 
15163 
15164 # Check whether --with-alsa-include was given.
15165 if test "${with_alsa_include+set}" = set; then :
15166   withval=$with_alsa_include;
15167 fi
15168 
15169 
15170 # Check whether --with-alsa-lib was given.
15171 if test "${with_alsa_lib+set}" = set; then :
15172   withval=$with_alsa_lib;
15173 fi
15174 
15175 
15176 if test "x$ALSA_NOT_NEEDED" = xyes; then
15177         if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then
15178                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5
15179 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;}
15180         fi
15181         ALSA_CFLAGS=
15182         ALSA_LIBS=
15183 else
15184         ALSA_FOUND=no
15185 
15186         if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then
15187             as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5
15188         fi
15189 
15190         if test "x${with_alsa}" != x; then
15191             ALSA_LIBS="-L${with_alsa}/lib -lalsa"
15192             ALSA_CFLAGS="-I${with_alsa}/include"
15193             ALSA_FOUND=yes
15194         fi
15195         if test "x${with_alsa_include}" != x; then
15196             ALSA_CFLAGS="-I${with_alsa_include}"
15197             ALSA_FOUND=yes
15198         fi
15199         if test "x${with_alsa_lib}" != x; then
15200             ALSA_LIBS="-L${with_alsa_lib} -lalsa"
15201             ALSA_FOUND=yes
15202         fi
15203         if test "x$ALSA_FOUND" = xno; then
15204 
15205 
15206     if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
15207         # Source the builddeps file again, to make sure it uses the latest variables!
15208         . $builddepsfile
15209         # Look for a target and build machine specific resource!
15210         eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
15211         if test "x$resource" = x; then
15212             # Ok, lets instead look for a target specific resource
15213             eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}}
15214         fi
15215         if test "x$resource" = x; then
15216             # Ok, lets instead look for a build specific resource
15217             eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}}
15218         fi
15219         if test "x$resource" = x; then
15220             # Ok, lets instead look for a generic resource
15221             # (The alsa comes from M4 and not the shell, thus no need for eval here.)
15222             resource=${builddep_alsa}
15223         fi
15224         if test "x$resource" != x; then
15225             { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5
15226 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;}
15227             # If the resource in the builddeps.conf file is an existing directory,
15228             # for example /java/linux/cups
15229             if test -d ${resource}; then
15230                depdir=${resource}
15231             else
15232 
15233 # alsa is for example mymodule
15234 # $resource is for example libs/general/libmymod_1_2_3.zip
15235 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
15236 # $with_builddeps_dir is for example /localhome/builddeps
15237 # depdir is the name of the variable into which we store the depdir, eg MYMOD
15238 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
15239 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
15240     filename=`basename $resource`
15241     filebase=`echo $filename | sed 's/\.[^\.]*$//'`
15242     filebase=${filename%%.*}
15243     extension=${filename#*.}
15244     installdir=$with_builddeps_dir/$filebase
15245     if test ! -f $installdir/$filename.unpacked; then
15246         { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5
15247 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;}
15248         if test ! -d $installdir; then
15249             mkdir -p $installdir
15250         fi
15251         if test ! -d $installdir; then
15252             as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
15253         fi
15254         tmpfile=`mktemp $installdir/alsa.XXXXXXXXX`
15255         touch $tmpfile
15256         if test ! -f $tmpfile; then
15257             as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
15258         fi
15259 
15260     # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
15261     # $tmpfile is the local file name for the downloaded file.
15262     VALID_TOOL=no
15263     if test "x$BDEPS_FTP" = xwget; then
15264        VALID_TOOL=yes
15265        wget -O $tmpfile $with_builddeps_server/$resource
15266     fi
15267     if test "x$BDEPS_FTP" = xlftp; then
15268        VALID_TOOL=yes
15269        lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
15270     fi
15271     if test "x$BDEPS_FTP" = xftp; then
15272         VALID_TOOL=yes
15273         FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
15274         FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
15275         FTPUSERPWD=${FTPSERVER%%@*}
15276         if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
15277             FTPUSER=${userpwd%%:*}
15278             FTPPWD=${userpwd#*@}
15279             FTPSERVER=${FTPSERVER#*@}
15280         else
15281             FTPUSER=ftp
15282             FTPPWD=ftp
15283         fi
15284         # the "pass" command does not work on some
15285         # ftp clients (read ftp.exe) but if it works,
15286         # passive mode is better!
15287         (\
15288             echo "user $FTPUSER $FTPPWD"        ;\
15289             echo "pass"                         ;\
15290             echo "bin"                          ;\
15291             echo "get $FTPPATH $tmpfile"              ;\
15292         ) | ftp -in $FTPSERVER
15293     fi
15294     if test "x$VALID_TOOL" != xyes; then
15295        as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
15296     fi
15297 
15298         mv $tmpfile $installdir/$filename
15299         if test ! -s $installdir/$filename; then
15300             as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
15301         fi
15302         case "$extension" in
15303             zip)  echo "Unzipping $installdir/$filename..."
15304                (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
15305             ;;
15306             tar.gz) echo "Untaring $installdir/$filename..."
15307                (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
15308             ;;
15309             tgz) echo "Untaring $installdir/$filename..."
15310                (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
15311             ;;
15312             *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
15313             ;;
15314         esac
15315     fi
15316     if test -f $installdir/$filename.unpacked; then
15317         depdir=$installdir
15318     fi
15319 
15320             fi
15321             # Source the builddeps file again, because in the previous command, the depdir
15322             # was updated to point at the current build dependency install directory.
15323             . $builddepsfile
15324             # Now extract variables from the builddeps.conf files.
15325             theroot=${builddep_alsa_ROOT}
15326             thecflags=${builddep_alsa_CFLAGS}
15327             thelibs=${builddep_alsa_LIBS}
15328             if test "x$depdir" = x; then
15329                 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5
15330             fi
15331             ALSA=$depdir
15332             if test "x$theroot" != x; then
15333                ALSA="$theroot"
15334             fi
15335             if test "x$thecflags" != x; then
15336                ALSA_CFLAGS="$thecflags"
15337             fi
15338             if test "x$thelibs" != x; then
15339                ALSA_LIBS="$thelibs"
15340             fi
15341             ALSA_FOUND=yes
15342             else ALSA_FOUND=no
15343 
15344         fi
15345         else ALSA_FOUND=no
15346 
15347     fi
15348 
15349         fi
15350         if test "x$ALSA_FOUND" = xno; then
15351 
15352 pkg_failed=no
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
15354 $as_echo_n "checking for ALSA... " >&6; }
15355 
15356 if test -n "$ALSA_CFLAGS"; then
15357     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
15358  elif test -n "$PKG_CONFIG"; then
15359     if test -n "$PKG_CONFIG" && \
15360     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
15361   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
15362   ac_status=$?
15363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15364   test $ac_status = 0; }; then
15365   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
15366 else
15367   pkg_failed=yes
15368 fi
15369  else
15370     pkg_failed=untried
15371 fi
15372 if test -n "$ALSA_LIBS"; then
15373     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
15374  elif test -n "$PKG_CONFIG"; then
15375     if test -n "$PKG_CONFIG" && \
15376     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
15377   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
15378   ac_status=$?
15379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15380   test $ac_status = 0; }; then
15381   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
15382 else
15383   pkg_failed=yes
15384 fi
15385  else
15386     pkg_failed=untried
15387 fi
15388 
15389 
15390 
15391 if test $pkg_failed = yes; then
15392 
15393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15394         _pkg_short_errors_supported=yes
15395 else
15396         _pkg_short_errors_supported=no
15397 fi
15398         if test $_pkg_short_errors_supported = yes; then
15399                 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
15400         else
15401                 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
15402         fi
15403         # Put the nasty error message in config.log where it belongs
15404         echo "$ALSA_PKG_ERRORS" >&5
15405 
15406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15407 $as_echo "no" >&6; }
15408                 ALSA_FOUND=no
15409 elif test $pkg_failed = untried; then
15410         ALSA_FOUND=no
15411 else
15412         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
15413         ALSA_LIBS=$pkg_cv_ALSA_LIBS
15414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15415 $as_echo "yes" >&6; }
15416         ALSA_FOUND=yes
15417 fi
15418         fi
15419         if test "x$ALSA_FOUND" = xno; then
15420             for ac_header in alsa/asoundlib.h
15421 do :
15422   ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
15423 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
15424   cat >>confdefs.h <<_ACEOF
15425 #define HAVE_ALSA_ASOUNDLIB_H 1
15426 _ACEOF
15427  ALSA_FOUND=yes
15428                               ALSA_CFLAGS=-Iignoreme
15429                               ALSA_LIBS=-lasound
15430                               DEFAULT_ALSA=yes
15431 else
15432   ALSA_FOUND=no
15433 fi
15434 
15435 done
15436 
15437         fi
15438         if test "x$ALSA_FOUND" = xno; then
15439 
15440     # Print a helpful message on how to acquire the necessary build dependency.
15441     # alsa is the help tag: freetyp2, cups, pulse, alsa etc
15442     MISSING_DEPENDENCY=alsa
15443     PKGHANDLER_COMMAND=
15444 
15445     case $PKGHANDLER in
15446         apt-get)
15447                 apt_help     $MISSING_DEPENDENCY ;;
15448     yum)
15449                 yum_help     $MISSING_DEPENDENCY ;;
15450         port)
15451                 port_help    $MISSING_DEPENDENCY ;;
15452         pkgutil)
15453                 pkgutil_help $MISSING_DEPENDENCY ;;
15454         pkgadd)
15455                 pkgadd_help  $MISSING_DEPENDENCY ;;
15456     * )
15457       break ;;
15458     esac
15459 
15460     if test "x$PKGHANDLER_COMMAND" != x; then
15461         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
15462     fi
15463 
15464             as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
15465         fi
15466 fi
15467 
15468 
15469 
15470 
15471 
15472 
15473 
15474 ###############################################################################
15475 #
15476 # Check for the jpeg library
15477 #
15478 
15479 USE_EXTERNAL_LIBJPEG=true
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
15481 $as_echo_n "checking for main in -ljpeg... " >&6; }
15482 if test "${ac_cv_lib_jpeg_main+set}" = set; then :
15483   $as_echo_n "(cached) " >&6
15484 else
15485   ac_check_lib_save_LIBS=$LIBS
15486 LIBS="-ljpeg  $LIBS"
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h.  */
15489 
15490 
15491 int
15492 main ()
15493 {
15494 return main ();
15495   ;
15496   return 0;
15497 }
15498 _ACEOF
15499 if ac_fn_cxx_try_link "$LINENO"; then :
15500   ac_cv_lib_jpeg_main=yes
15501 else
15502   ac_cv_lib_jpeg_main=no
15503 fi
15504 rm -f core conftest.err conftest.$ac_objext \
15505     conftest$ac_exeext conftest.$ac_ext
15506 LIBS=$ac_check_lib_save_LIBS
15507 fi
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
15509 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
15510 if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
15511   cat >>confdefs.h <<_ACEOF
15512 #define HAVE_LIBJPEG 1
15513 _ACEOF
15514 
15515   LIBS="-ljpeg $LIBS"
15516 
15517 else
15518    USE_EXTERNAL_LIBJPEG=false
15519                { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
15520 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
15521 
15522 fi
15523 
15524 
15525 
15526 ###############################################################################
15527 #
15528 # Check for the gif library
15529 #
15530 
15531 USE_EXTERNAL_LIBJPEG=true
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgif" >&5
15533 $as_echo_n "checking for main in -lgif... " >&6; }
15534 if test "${ac_cv_lib_gif_main+set}" = set; then :
15535   $as_echo_n "(cached) " >&6
15536 else
15537   ac_check_lib_save_LIBS=$LIBS
15538 LIBS="-lgif  $LIBS"
15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h.  */
15541 
15542 
15543 int
15544 main ()
15545 {
15546 return main ();
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 if ac_fn_cxx_try_link "$LINENO"; then :
15552   ac_cv_lib_gif_main=yes
15553 else
15554   ac_cv_lib_gif_main=no
15555 fi
15556 rm -f core conftest.err conftest.$ac_objext \
15557     conftest$ac_exeext conftest.$ac_ext
15558 LIBS=$ac_check_lib_save_LIBS
15559 fi
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5
15561 $as_echo "$ac_cv_lib_gif_main" >&6; }
15562 if test "x$ac_cv_lib_gif_main" = x""yes; then :
15563   cat >>confdefs.h <<_ACEOF
15564 #define HAVE_LIBGIF 1
15565 _ACEOF
15566 
15567   LIBS="-lgif $LIBS"
15568 
15569 else
15570    USE_EXTERNAL_LIBGIF=false
15571                { $as_echo "$as_me:${as_lineno-$LINENO}: Will use gif decoder bundled with the OpenJDK source" >&5
15572 $as_echo "$as_me: Will use gif decoder bundled with the OpenJDK source" >&6;}
15573 
15574 fi
15575 
15576 
15577 
15578 ###############################################################################
15579 #
15580 # Check for the zlib library
15581 #
15582 
15583 
15584 # Check whether --with-zlib was given.
15585 if test "${with_zlib+set}" = set; then :
15586   withval=$with_zlib;
15587 fi
15588 
15589 
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
15591 $as_echo_n "checking for compress in -lz... " >&6; }
15592 if test "${ac_cv_lib_z_compress+set}" = set; then :
15593   $as_echo_n "(cached) " >&6
15594 else
15595   ac_check_lib_save_LIBS=$LIBS
15596 LIBS="-lz  $LIBS"
15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h.  */
15599 
15600 /* Override any GCC internal prototype to avoid an error.
15601    Use char because int might match the return type of a GCC
15602    builtin and then its argument prototype would still apply.  */
15603 #ifdef __cplusplus
15604 extern "C"
15605 #endif
15606 char compress ();
15607 int
15608 main ()
15609 {
15610 return compress ();
15611   ;
15612   return 0;
15613 }
15614 _ACEOF
15615 if ac_fn_cxx_try_link "$LINENO"; then :
15616   ac_cv_lib_z_compress=yes
15617 else
15618   ac_cv_lib_z_compress=no
15619 fi
15620 rm -f core conftest.err conftest.$ac_objext \
15621     conftest$ac_exeext conftest.$ac_ext
15622 LIBS=$ac_check_lib_save_LIBS
15623 fi
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
15625 $as_echo "$ac_cv_lib_z_compress" >&6; }
15626 if test "x$ac_cv_lib_z_compress" = x""yes; then :
15627    ZLIB_FOUND=yes
15628 else
15629    ZLIB_FOUND=no
15630 fi
15631 
15632 
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
15634 $as_echo_n "checking for which zlib to use... " >&6; }
15635 
15636 DEFAULT_ZLIB=bundled
15637 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15638 #
15639 # On macosx default is system...on others default is
15640 #
15641     DEFAULT_ZLIB=system
15642 fi
15643 
15644 if test "x${ZLIB_FOUND}" != "xyes"; then
15645 #
15646 # If we don't find any system...set default to bundled
15647 #
15648     DEFAULT_ZLIB=bundled
15649 fi
15650 
15651 #
15652 # If user didn't specify, use DEFAULT_ZLIB
15653 #
15654 if test "x${with_zlib}" = "x"; then
15655     with_zlib=${DEFAULT_ZLIB}
15656 fi
15657 
15658 if test "x${with_zlib}" = "xbundled"; then
15659     USE_EXTERNAL_LIBZ=false
15660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
15661 $as_echo "bundled" >&6; }
15662 elif test "x${with_zlib}" = "xsystem"; then
15663     if test "x${ZLIB_FOUND}" = "xyes"; then
15664         USE_EXTERNAL_LIBZ=true
15665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
15666 $as_echo "system" >&6; }
15667     else
15668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5
15669 $as_echo "system not found" >&6; }
15670         as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5
15671     fi
15672 else
15673     as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5
15674 fi
15675 
15676 
15677 
15678 ###############################################################################
15679 LIBZIP_CAN_USE_MMAP=true
15680 if test "x$JDK_VARIANT" = "xembedded"; then
15681    LIBZIP_CAN_USE_MMAP=false
15682 fi
15683 
15684 
15685 ###############################################################################
15686 #
15687 # Check if altzone exists in time.h
15688 #
15689 
15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h.  */
15692 #include <time.h>
15693 int
15694 main ()
15695 {
15696 return (int)altzone;
15697   ;
15698   return 0;
15699 }
15700 _ACEOF
15701 if ac_fn_cxx_try_link "$LINENO"; then :
15702   has_altzone=yes
15703 else
15704   has_altzone=no
15705 fi
15706 rm -f core conftest.err conftest.$ac_objext \
15707     conftest$ac_exeext conftest.$ac_ext
15708 if test "x$has_altzone" = xyes; then
15709 
15710 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
15711 
15712 fi
15713 
15714 ###############################################################################
15715 #
15716 # Check the maths library
15717 #
15718 
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15720 $as_echo_n "checking for cos in -lm... " >&6; }
15721 if test "${ac_cv_lib_m_cos+set}" = set; then :
15722   $as_echo_n "(cached) " >&6
15723 else
15724   ac_check_lib_save_LIBS=$LIBS
15725 LIBS="-lm  $LIBS"
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h.  */
15728 
15729 /* Override any GCC internal prototype to avoid an error.
15730    Use char because int might match the return type of a GCC
15731    builtin and then its argument prototype would still apply.  */
15732 #ifdef __cplusplus
15733 extern "C"
15734 #endif
15735 char cos ();
15736 int
15737 main ()
15738 {
15739 return cos ();
15740   ;
15741   return 0;
15742 }
15743 _ACEOF
15744 if ac_fn_cxx_try_link "$LINENO"; then :
15745   ac_cv_lib_m_cos=yes
15746 else
15747   ac_cv_lib_m_cos=no
15748 fi
15749 rm -f core conftest.err conftest.$ac_objext \
15750     conftest$ac_exeext conftest.$ac_ext
15751 LIBS=$ac_check_lib_save_LIBS
15752 fi
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15754 $as_echo "$ac_cv_lib_m_cos" >&6; }
15755 if test "x$ac_cv_lib_m_cos" = x""yes; then :
15756   cat >>confdefs.h <<_ACEOF
15757 #define HAVE_LIBM 1
15758 _ACEOF
15759 
15760   LIBS="-lm $LIBS"
15761 
15762 else
15763 
15764                   { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
15765 $as_echo "$as_me: Maths library was not found" >&6;}
15766 
15767 fi
15768 
15769 
15770 
15771 ###############################################################################
15772 #
15773 # Check for libdl.so
15774 
15775 save_LIBS="$LIBS"
15776 LIBS=""
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15778 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15779 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15780   $as_echo_n "(cached) " >&6
15781 else
15782   ac_check_lib_save_LIBS=$LIBS
15783 LIBS="-ldl  $LIBS"
15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h.  */
15786 
15787 /* Override any GCC internal prototype to avoid an error.
15788    Use char because int might match the return type of a GCC
15789    builtin and then its argument prototype would still apply.  */
15790 #ifdef __cplusplus
15791 extern "C"
15792 #endif
15793 char dlopen ();
15794 int
15795 main ()
15796 {
15797 return dlopen ();
15798   ;
15799   return 0;
15800 }
15801 _ACEOF
15802 if ac_fn_cxx_try_link "$LINENO"; then :
15803   ac_cv_lib_dl_dlopen=yes
15804 else
15805   ac_cv_lib_dl_dlopen=no
15806 fi
15807 rm -f core conftest.err conftest.$ac_objext \
15808     conftest$ac_exeext conftest.$ac_ext
15809 LIBS=$ac_check_lib_save_LIBS
15810 fi
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15812 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15813 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15814   cat >>confdefs.h <<_ACEOF
15815 #define HAVE_LIBDL 1
15816 _ACEOF
15817 
15818   LIBS="-ldl $LIBS"
15819 
15820 fi
15821 
15822 LIBDL="$LIBS"
15823 
15824 LIBS="$save_LIBS"
15825 
15826 
15827 
15828 ###############################################################################
15829 #
15830 # statically link libstdc++ before C++ ABI is stablized on Linux unless
15831 # dynamic build is configured on command line.
15832 #
15833 # Check whether --enable-static-link-stdc++ was given.
15834 if test "${enable_static_link_stdc__+set}" = set; then :
15835   enableval=$enable_static_link_stdc__;
15836 else
15837 
15838                 enable_static_link_stdc__=yes
15839 
15840 fi
15841 
15842 
15843 if test "x$OPENJDK_TARGET_OS" = xlinux; then
15844     # Test if -lstdc++ works.
15845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5
15846 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; }
15847     ac_ext=cpp
15848 ac_cpp='$CXXCPP $CPPFLAGS'
15849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15852 
15853     OLD_CXXFLAGS="$CXXFLAGS"
15854     CXXFLAGS="$CXXFLAGS -lstdc++"
15855     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h.  */
15857 
15858 int
15859 main ()
15860 {
15861 return 0;
15862   ;
15863   return 0;
15864 }
15865 _ACEOF
15866 if ac_fn_cxx_try_link "$LINENO"; then :
15867   has_dynamic_libstdcxx=yes
15868 else
15869   has_dynamic_libstdcxx=no
15870 fi
15871 rm -f core conftest.err conftest.$ac_objext \
15872     conftest$ac_exeext conftest.$ac_ext
15873     CXXFLAGS="$OLD_CXXFLAGS"
15874     ac_ext=cpp
15875 ac_cpp='$CXXCPP $CPPFLAGS'
15876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15879 
15880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5
15881 $as_echo "$has_dynamic_libstdcxx" >&6; }
15882 
15883     # Test if stdc++ can be linked statically.
15884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5
15885 $as_echo_n "checking if static link of stdc++ is possible... " >&6; }
15886     STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic"
15887     ac_ext=cpp
15888 ac_cpp='$CXXCPP $CPPFLAGS'
15889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15892 
15893     OLD_LIBS="$LIBS"
15894     OLD_CXX="$CXX"
15895     LIBS="$STATIC_STDCXX_FLAGS"
15896     CXX="$CC"
15897     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h.  */
15899 
15900 int
15901 main ()
15902 {
15903 return 0;
15904   ;
15905   return 0;
15906 }
15907 _ACEOF
15908 if ac_fn_cxx_try_link "$LINENO"; then :
15909   has_static_libstdcxx=yes
15910 else
15911   has_static_libstdcxx=no
15912 fi
15913 rm -f core conftest.err conftest.$ac_objext \
15914     conftest$ac_exeext conftest.$ac_ext
15915     LIBS="$OLD_LIBS"
15916     CXX="$OLD_CXX"
15917     ac_ext=cpp
15918 ac_cpp='$CXXCPP $CPPFLAGS'
15919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15922 
15923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5
15924 $as_echo "$has_static_libstdcxx" >&6; }
15925 
15926     if test "x$has_static_libcxx" = xno && test "x$has_dynamic_libcxx" = xno; then
15927         as_fn_error $? "I cannot link to stdc++! Neither dynamically nor statically." "$LINENO" 5
15928     fi
15929 
15930     if test "x$enable_static_link_stdc__" = xyes && test "x$has_static_libstdcxx" = xno; then
15931         { $as_echo "$as_me:${as_lineno-$LINENO}: Static linking of libstdc++ was not possible reverting to dynamic linking." >&5
15932 $as_echo "$as_me: Static linking of libstdc++ was not possible reverting to dynamic linking." >&6;}
15933         enable_static_link_stdc__=no
15934     fi
15935 
15936     if test "x$enable_static_link_stdc__" = xno && test "x$has_dynamic_libstdcxx" = xno; then
15937         { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic linking of libstdc++ was not possible reverting to static linking." >&5
15938 $as_echo "$as_me: Dynamic linking of libstdc++ was not possible reverting to static linking." >&6;}
15939         enable_static_link_stdc__=yes
15940     fi
15941 
15942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5
15943 $as_echo_n "checking how to link with libstdc++... " >&6; }
15944     if test "x$enable_static_link_stdc__" = xyes; then
15945         LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
15946         LDCXX="$CC"
15947         { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
15948 $as_echo "static" >&6; }
15949     else
15950         LIBCXX="$LIBCXX -lstdc++"
15951         LDCXX="$CXX"
15952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
15953 $as_echo "dynamic" >&6; }
15954     fi
15955 fi
15956 
15957 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so)
15958 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$LIBCXX" = x; then
15959     LIBCXX="/usr/lib${LEGACY_OPENJDK_TARGET_CPU3}/libCrun.so.1"
15960 fi
15961 
15962 # TODO better (platform agnostic) test
15963 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$GCC" = xyes; then
15964     LIBCXX="-lstdc++"
15965 fi
15966 
15967 
15968 
15969 
15970 
15971 ###############################################################################
15972 #
15973 # We need to do some final tweaking, when everything else is done.
15974 #
15975 ###############################################################################
15976 
15977 
15978 HOTSPOT_MAKE_ARGS="ALT_OUTPUTDIR=$HOTSPOT_OUTPUTDIR ALT_EXPORT_PATH=$HOTSPOT_DIST $HOTSPOT_TARGET"
15979 
15980 
15981 # The name of the Service Agent jar.
15982 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}"
15983 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15984     SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}"
15985 fi
15986 
15987 
15988 
15989 
15990 ###############################################################################
15991 #
15992 # Configure parts of the build that only affect the build performance,
15993 # not the result.
15994 #
15995 ###############################################################################
15996 
15997 
15998 # How many cores do we have on this build system?
15999 
16000 # Check whether --with-num-cores was given.
16001 if test "${with_num_cores+set}" = set; then :
16002   withval=$with_num_cores;
16003 fi
16004 
16005 if test "x$with_num_cores" = x; then
16006     # The number of cores were not specified, try to probe them.
16007 
16008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
16009 $as_echo_n "checking for number of cores... " >&6; }
16010     NUM_CORES=1
16011     FOUND_CORES=no
16012 
16013     if test -f /proc/cpuinfo; then
16014         # Looks like a Linux system
16015         NUM_CORES=`cat /proc/cpuinfo  | grep -c processor`
16016         FOUND_CORES=yes
16017     fi
16018 
16019     if test -x /usr/sbin/psrinfo; then
16020         # Looks like a Solaris system
16021         NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
16022         FOUND_CORES=yes
16023     fi
16024 
16025     if test -x /usr/sbin/system_profiler; then
16026         # Looks like a MacOSX system
16027         NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk  '{print $5}'`
16028         FOUND_CORES=yes
16029     fi
16030 
16031     if test "x$build_os" = xwindows; then
16032         NUM_CORES=4
16033     fi
16034 
16035     # For c/c++ code we run twice as many concurrent build
16036     # jobs than we have cores, otherwise we will stall on io.
16037     CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2`
16038 
16039     if test "x$FOUND_CORES" = xyes; then
16040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
16041 $as_echo "$NUM_CORES" >&6; }
16042     else
16043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1!" >&5
16044 $as_echo "could not detect number of cores, defaulting to 1!" >&6; }
16045     fi
16046 
16047 
16048 else
16049     NUM_CORES=$with_num_cores
16050     CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2`
16051 fi
16052 
16053 
16054 
16055 
16056 # How much memory do we have on this build system?
16057 
16058 # Check whether --with-memory-size was given.
16059 if test "${with_memory_size+set}" = set; then :
16060   withval=$with_memory_size;
16061 fi
16062 
16063 if test "x$with_memory_size" = x; then
16064     # The memory size was not specified, try to probe it.
16065 
16066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
16067 $as_echo_n "checking for memory size... " >&6; }
16068     # Default to 1024MB
16069     MEMORY_SIZE=1024
16070     FOUND_MEM=no
16071 
16072     if test -f /proc/cpuinfo; then
16073         # Looks like a Linux system
16074         MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
16075         MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
16076         FOUND_MEM=yes
16077     fi
16078 
16079     if test -x /usr/sbin/prtconf; then
16080         # Looks like a Solaris system
16081         MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print $3 }'`
16082         FOUND_MEM=yes
16083     fi
16084 
16085     if test -x /usr/sbin/system_profiler; then
16086         # Looks like a MacOSX system
16087         MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk  '{print $2}'`
16088         MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
16089         FOUND_MEM=yes
16090     fi
16091 
16092     if test "x$build_os" = xwindows; then
16093         MEMORY_SIZE=`systeminfo | grep 'Total Physical Memory:' | awk '{ print $4 }' | sed 's/,//'`
16094         FOUND_MEM=yes
16095     fi
16096 
16097     if test "x$FOUND_MEM" = xyes; then
16098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
16099 $as_echo "$MEMORY_SIZE MB" >&6; }
16100     else
16101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size defaulting to 1024MB!" >&5
16102 $as_echo "could not detect memory size defaulting to 1024MB!" >&6; }
16103     fi
16104 
16105 else
16106     MEMORY_SIZE=$with_memory_size
16107 fi
16108 
16109 
16110 
16111 # Setup smart javac (after cores and memory have been setup)
16112 
16113 
16114 # Check whether --with-server-java was given.
16115 if test "${with_server_java+set}" = set; then :
16116   withval=$with_server_java;
16117 fi
16118 
16119 
16120 if test "x$with_server_java" != x; then
16121     SERVER_JAVA="$with_server_java"
16122     FOUND_VERSION=`$SERVER_JAVA -version 2>&1 | grep " version \""`
16123     if test "x$FOUND_VERSION" = x; then
16124         as_fn_error $? "Could not execute server java: $SERVER_JAVA" "$LINENO" 5
16125     fi
16126 else
16127     SERVER_JAVA=""
16128     # Hotspot specific options.
16129 
16130     # Test if -XX:+UseParallelOldGC is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
16131     # If so, then append -XX:+UseParallelOldGC to SERVER_JAVA
16132     FOUND_WARN=`$JAVA -XX:+UseParallelOldGC -version 2>&1 | grep -i warn`
16133     FOUND_VERSION=`$JAVA -XX:+UseParallelOldGC -version 2>&1 | grep " version \""`
16134     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16135         SERVER_JAVA="$SERVER_JAVA -XX:+UseParallelOldGC"
16136     fi
16137 
16138 
16139     # Test if -verbosegc is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
16140     # If so, then append -verbosegc to SERVER_JAVA
16141     FOUND_WARN=`$JAVA -verbosegc -version 2>&1 | grep -i warn`
16142     FOUND_VERSION=`$JAVA -verbosegc -version 2>&1 | grep " version \""`
16143     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16144         SERVER_JAVA="$SERVER_JAVA -verbosegc"
16145     fi
16146 
16147     # JRockit specific options.
16148 
16149     # Test if -Xverbose:gc is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
16150     # If so, then append -Xverbose:gc to SERVER_JAVA
16151     FOUND_WARN=`$JAVA -Xverbose:gc -version 2>&1 | grep -i warn`
16152     FOUND_VERSION=`$JAVA -Xverbose:gc -version 2>&1 | grep " version \""`
16153     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16154         SERVER_JAVA="$SERVER_JAVA -Xverbose:gc"
16155     fi
16156 
16157     SERVER_JAVA="$JAVA $SERVER_JAVA"
16158 fi
16159 
16160 
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shared server for javac" >&5
16162 $as_echo_n "checking whether to use shared server for javac... " >&6; }
16163 # Check whether --enable-javac-server was given.
16164 if test "${enable_javac_server+set}" = set; then :
16165   enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}"
16166 else
16167   ENABLE_JAVAC_SERVER='no'
16168 fi
16169 
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5
16171 $as_echo "$ENABLE_JAVAC_SERVER" >&6; }
16172 if test "x$ENABLE_JAVAC_SERVER" = xyes; then
16173     JAVAC_USE_REMOTE=true
16174     JAVAC_SERVERS="$OUTPUT_ROOT/javacservers"
16175 else
16176     JAVAC_USE_REMOTE=false
16177     JAVAC_SERVERS=
16178 fi
16179 
16180 
16181 
16182 
16183 # Check whether --with-javac-server-cores was given.
16184 if test "${with_javac_server_cores+set}" = set; then :
16185   withval=$with_javac_server_cores;
16186 fi
16187 
16188 if test "x$with_javac_server_cores" != x; then
16189     JAVAC_SERVER_CORES="$with_javac_server_cores"
16190 else
16191     if test "$NUM_CORES" -gt 16; then
16192         # We set this arbitrary limit because we want to limit the heap
16193         # size of the javac server.
16194         # In the future we will make the javac compilers in the server
16195         # share more and more state, thus enabling us to use more and
16196         # more concurrent threads in the server.
16197         JAVAC_SERVER_CORES="16"
16198     else
16199         JAVAC_SERVER_CORES="$NUM_CORES"
16200     fi
16201 
16202     if test "$MEMORY_SIZE" -gt "17000"; then
16203         MAX_HEAP_MEM=10000
16204 
16205     # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16206     # If so, then append -d64 to SERVER_JAVA
16207     FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
16208     FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
16209     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16210         SERVER_JAVA="$SERVER_JAVA -d64"
16211     fi
16212 
16213 
16214     # Test if -Xms10G -Xmx10G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16215     # If so, then append -Xms10G -Xmx10G to SERVER_JAVA
16216     FOUND_WARN=`$SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep -i warn`
16217     FOUND_VERSION=`$SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep " version \""`
16218     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16219         SERVER_JAVA="$SERVER_JAVA -Xms10G -Xmx10G"
16220     fi
16221 
16222 
16223     # Test if -Xmn2G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16224     # If so, then append -Xmn2G to SERVER_JAVA
16225     FOUND_WARN=`$SERVER_JAVA -Xmn2G -version 2>&1 | grep -i warn`
16226     FOUND_VERSION=`$SERVER_JAVA -Xmn2G -version 2>&1 | grep " version \""`
16227     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16228         SERVER_JAVA="$SERVER_JAVA -Xmn2G"
16229     fi
16230 
16231     elif test "$MEMORY_SIZE" -gt "10000"; then
16232         MAX_HEAP_MEM=6000
16233 
16234     # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16235     # If so, then append -d64 to SERVER_JAVA
16236     FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
16237     FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
16238     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16239         SERVER_JAVA="$SERVER_JAVA -d64"
16240     fi
16241 
16242 
16243     # Test if -Xms6G -Xmx6G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16244     # If so, then append -Xms6G -Xmx6G to SERVER_JAVA
16245     FOUND_WARN=`$SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep -i warn`
16246     FOUND_VERSION=`$SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep " version \""`
16247     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16248         SERVER_JAVA="$SERVER_JAVA -Xms6G -Xmx6G"
16249     fi
16250 
16251 
16252     # Test if -Xmn1G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16253     # If so, then append -Xmn1G to SERVER_JAVA
16254     FOUND_WARN=`$SERVER_JAVA -Xmn1G -version 2>&1 | grep -i warn`
16255     FOUND_VERSION=`$SERVER_JAVA -Xmn1G -version 2>&1 | grep " version \""`
16256     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16257         SERVER_JAVA="$SERVER_JAVA -Xmn1G"
16258     fi
16259 
16260     elif test "$MEMORY_SIZE" -gt "5000"; then
16261         MAX_HEAP_MEM=3000
16262 
16263     # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16264     # If so, then append -d64 to SERVER_JAVA
16265     FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
16266     FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
16267     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16268         SERVER_JAVA="$SERVER_JAVA -d64"
16269     fi
16270 
16271 
16272     # Test if -Xms1G -Xmx3G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16273     # If so, then append -Xms1G -Xmx3G to SERVER_JAVA
16274     FOUND_WARN=`$SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep -i warn`
16275     FOUND_VERSION=`$SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep " version \""`
16276     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16277         SERVER_JAVA="$SERVER_JAVA -Xms1G -Xmx3G"
16278     fi
16279 
16280 
16281     # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16282     # If so, then append -Xmn256M to SERVER_JAVA
16283     FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
16284     FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
16285     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16286         SERVER_JAVA="$SERVER_JAVA -Xmn256M"
16287     fi
16288 
16289     elif test "$MEMORY_SIZE" -gt "3800"; then
16290         MAX_HEAP_MEM=2500
16291 
16292     # Test if -Xms1G -Xmx2500M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16293     # If so, then append -Xms1G -Xmx2500M to SERVER_JAVA
16294     FOUND_WARN=`$SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep -i warn`
16295     FOUND_VERSION=`$SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep " version \""`
16296     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16297         SERVER_JAVA="$SERVER_JAVA -Xms1G -Xmx2500M"
16298     fi
16299 
16300 
16301     # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16302     # If so, then append -Xmn256M to SERVER_JAVA
16303     FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
16304     FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
16305     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16306         SERVER_JAVA="$SERVER_JAVA -Xmn256M"
16307     fi
16308 
16309     elif test "$MEMORY_SIZE" -gt "1900"; then
16310         MAX_HEAP_MEM=1200
16311 
16312     # Test if -Xms700M -Xmx1200M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16313     # If so, then append -Xms700M -Xmx1200M to SERVER_JAVA
16314     FOUND_WARN=`$SERVER_JAVA -Xms700M -Xmx1200M -version 2>&1 | grep -i warn`
16315     FOUND_VERSION=`$SERVER_JAVA -Xms700M -Xmx1200M -version 2>&1 | grep " version \""`
16316     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16317         SERVER_JAVA="$SERVER_JAVA -Xms700M -Xmx1200M"
16318     fi
16319 
16320 
16321     # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16322     # If so, then append -Xmn256M to SERVER_JAVA
16323     FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
16324     FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
16325     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16326         SERVER_JAVA="$SERVER_JAVA -Xmn256M"
16327     fi
16328 
16329     elif test "$MEMORY_SIZE" -gt "1000"; then
16330         MAX_HEAP_MEM=900
16331 
16332     # Test if -Xms400M -Xmx900M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16333     # If so, then append -Xms400M -Xmx900M to SERVER_JAVA
16334     FOUND_WARN=`$SERVER_JAVA -Xms400M -Xmx900M -version 2>&1 | grep -i warn`
16335     FOUND_VERSION=`$SERVER_JAVA -Xms400M -Xmx900M -version 2>&1 | grep " version \""`
16336     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16337         SERVER_JAVA="$SERVER_JAVA -Xms400M -Xmx900M"
16338     fi
16339 
16340 
16341     # Test if -Xmn128M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16342     # If so, then append -Xmn128M to SERVER_JAVA
16343     FOUND_WARN=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep -i warn`
16344     FOUND_VERSION=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep " version \""`
16345     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16346         SERVER_JAVA="$SERVER_JAVA -Xmn128M"
16347     fi
16348 
16349     else
16350         MAX_HEAP_MEM=512
16351 
16352     # Test if -Xms256M -Xmx512M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16353     # If so, then append -Xms256M -Xmx512M to SERVER_JAVA
16354     FOUND_WARN=`$SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep -i warn`
16355     FOUND_VERSION=`$SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep " version \""`
16356     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16357         SERVER_JAVA="$SERVER_JAVA -Xms256M -Xmx512M"
16358     fi
16359 
16360 
16361     # Test if -Xmn128M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
16362     # If so, then append -Xmn128M to SERVER_JAVA
16363     FOUND_WARN=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep -i warn`
16364     FOUND_VERSION=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep " version \""`
16365     if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
16366         SERVER_JAVA="$SERVER_JAVA -Xmn128M"
16367     fi
16368 
16369     fi
16370 
16371     MAX_COMPILERS_IN_HEAP=`expr $MAX_HEAP_MEM / 501`
16372     if test "$JAVAC_SERVER_CORES" -gt "$MAX_COMPILERS_IN_HEAP"; then
16373         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if number of server cores must be reduced" >&5
16374 $as_echo_n "checking if number of server cores must be reduced... " >&6; }
16375         JAVAC_SERVER_CORES="$MAX_COMPILERS_IN_HEAP"
16376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, to $JAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&5
16377 $as_echo "yes, to $JAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&6; }
16378     fi
16379 fi
16380 
16381 
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track dependencies between Java packages" >&5
16383 $as_echo_n "checking whether to track dependencies between Java packages... " >&6; }
16384 # Check whether --enable-javac-deps was given.
16385 if test "${enable_javac_deps+set}" = set; then :
16386   enableval=$enable_javac_deps; ENABLE_JAVAC_DEPS="${enableval}"
16387 else
16388   ENABLE_JAVAC_DEPS='no'
16389 fi
16390 
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_DEPS" >&5
16392 $as_echo "$ENABLE_JAVAC_DEPS" >&6; }
16393 if test "x$ENABLE_JAVAC_DEPS" = xyes; then
16394     JAVAC_USE_DEPS=true
16395 else
16396     JAVAC_USE_DEPS=false
16397 fi
16398 
16399 
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use multiple cores for javac compilation" >&5
16401 $as_echo_n "checking whether to use multiple cores for javac compilation... " >&6; }
16402 # Check whether --enable-javac-multi-core was given.
16403 if test "${enable_javac_multi_core+set}" = set; then :
16404   enableval=$enable_javac_multi_core; ENABLE_JAVAC_MULTICORE="${enableval}"
16405 else
16406   ENABLE_JAVAC_MULTICORE='no'
16407 fi
16408 
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_MULTICORE" >&5
16410 $as_echo "$ENABLE_JAVAC_MULTICORE" >&6; }
16411 if test "x$ENABLE_JAVAC_MULTICORE" = xyes; then
16412     JAVAC_USE_MODE=MULTI_CORE_CONCURRENT
16413 else
16414     JAVAC_USE_MODE=SINGLE_THREADED_BATCH
16415     if test "x$ENABLE_JAVAC_DEPS" = xyes; then
16416         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking is not supported with single threaded batch compiles of Java source roots. Please add --disable-javac-deps to your configure options." >&5
16417 $as_echo "$as_me: WARNING: Dependency tracking is not supported with single threaded batch compiles of Java source roots. Please add --disable-javac-deps to your configure options." >&2;}
16418         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling dependency tracking for you now." >&5
16419 $as_echo "$as_me: WARNING: Disabling dependency tracking for you now." >&2;}
16420         JAVAC_USE_DEPS=false
16421     fi
16422     if test "x$ENABLE_JAVAC_SERVER" = xyes; then
16423         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The javac server will not be used since single threaded batch compiles are run within their own JVM. Please add --disable-javac-server to your configure options." >&5
16424 $as_echo "$as_me: WARNING: The javac server will not be used since single threaded batch compiles are run within their own JVM. Please add --disable-javac-server to your configure options." >&2;}
16425         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling javac server for you now." >&5
16426 $as_echo "$as_me: WARNING: Disabling javac server for you now." >&2;}
16427         JAVAC_USE_REMOTE=false
16428     fi
16429 fi
16430 
16431 
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5
16433 $as_echo_n "checking whether to use sjavac... " >&6; }
16434 # Check whether --enable-sjavac was given.
16435 if test "${enable_sjavac+set}" = set; then :
16436   enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}"
16437 else
16438   ENABLE_SJAVAC='no'
16439 fi
16440 
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5
16442 $as_echo "$ENABLE_SJAVAC" >&6; }
16443 
16444 
16445 
16446 
16447 # Can the C/C++ compiler use precompiled headers?
16448 
16449 
16450 ###############################################################################
16451 #
16452 # Can the C/C++ compiler use precompiled headers?
16453 #
16454 # Check whether --enable-precompiled-headers was given.
16455 if test "${enable_precompiled_headers+set}" = set; then :
16456   enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled-headers}
16457 else
16458   ENABLE_PRECOMPH=yes
16459 fi
16460 
16461 
16462 USE_PRECOMPILED_HEADER=1
16463 if test "x$ENABLE_PRECOMPH" = xno; then
16464     USE_PRECOMPILED_HEADER=0
16465 fi
16466 
16467 if test "x$ENABLE_PRECOMPH" = xyes; then
16468     # Check that the compiler actually supports precomp headers.
16469     if test "x$GCC" = xyes; then
16470          { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5
16471 $as_echo_n "checking that precompiled headers work... " >&6; }
16472          echo "int alfa();" > conftest.h
16473          $CXX -x c++-header conftest.h -o conftest.hpp.gch
16474          if test ! -f conftest.hpp.gch; then
16475              echo Precompiled header is not working!
16476              USE_PRECOMPILED_HEADER=0
16477              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16478 $as_echo "no" >&6; }
16479          else
16480              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16481 $as_echo "yes" >&6; }
16482          fi
16483          rm -f conftest.h
16484     fi
16485 fi
16486 
16487 
16488 
16489 
16490 # Setup use of ccache, if available
16491 
16492     # Check whether --enable-ccache was given.
16493 if test "${enable_ccache+set}" = set; then :
16494   enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
16495 else
16496   ENABLE_CCACHE=yes
16497 fi
16498 
16499     if test "x$ENABLE_CCACHE" = xyes; then
16500         # Extract the first word of "ccache", so it can be a program name with args.
16501 set dummy ccache; ac_word=$2
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16503 $as_echo_n "checking for $ac_word... " >&6; }
16504 if test "${ac_cv_path_CCACHE+set}" = set; then :
16505   $as_echo_n "(cached) " >&6
16506 else
16507   case $CCACHE in
16508   [\\/]* | ?:[\\/]*)
16509   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
16510   ;;
16511   *)
16512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16513 for as_dir in $PATH
16514 do
16515   IFS=$as_save_IFS
16516   test -z "$as_dir" && as_dir=.
16517     for ac_exec_ext in '' $ac_executable_extensions; do
16518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16519     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
16520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16521     break 2
16522   fi
16523 done
16524   done
16525 IFS=$as_save_IFS
16526 
16527   ;;
16528 esac
16529 fi
16530 CCACHE=$ac_cv_path_CCACHE
16531 if test -n "$CCACHE"; then
16532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
16533 $as_echo "$CCACHE" >&6; }
16534 else
16535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16536 $as_echo "no" >&6; }
16537 fi
16538 
16539 
16540     else
16541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache" >&5
16542 $as_echo_n "checking for ccache... " >&6; }
16543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: explicitly disabled" >&5
16544 $as_echo "explicitly disabled" >&6; }
16545         CCACHE=
16546     fi
16547 
16548 
16549 
16550 # Check whether --with-ccache-dir was given.
16551 if test "${with_ccache_dir+set}" = set; then :
16552   withval=$with_ccache_dir;
16553 fi
16554 
16555 
16556     if test "x$with_ccache_dir" != x; then
16557         # When using a non home ccache directory, assume the use is to share ccache files
16558         # with other users. Thus change the umask.
16559         SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
16560     fi
16561     CCACHE_FOUND=""
16562     if test "x$CCACHE" != x; then
16563 
16564     if test "x$CCACHE" != x; then
16565         CCACHE_FOUND="true"
16566         # Only use ccache if it is 3.1.4 or later, which supports
16567         # precompiled headers.
16568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5
16569 $as_echo_n "checking if ccache supports precompiled headers... " >&6; }
16570         HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null`
16571         if test "x$HAS_GOOD_CCACHE" = x; then
16572             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5
16573 $as_echo "no, disabling ccache" >&6; }
16574             CCACHE=
16575         else
16576             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16577 $as_echo "yes" >&6; }
16578             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
16579 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }
16580             PUSHED_FLAGS="$CXXFLAGS"
16581             CXXFLAGS="-fpch-preprocess $CXXFLAGS"
16582             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h.  */
16584 
16585 int
16586 main ()
16587 {
16588 
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 if ac_fn_cxx_try_compile "$LINENO"; then :
16594   CC_KNOWS_CCACHE_TRICK=yes
16595 else
16596   CC_KNOWS_CCACHE_TRICK=no
16597 fi
16598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16599             CXXFLAGS="$PUSHED_FLAGS"
16600             if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then
16601                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16602 $as_echo "yes" >&6; }
16603             else
16604                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5
16605 $as_echo "no, disabling ccaching of precompiled headers" >&6; }
16606                 CCACHE=
16607             fi
16608         fi
16609     fi
16610 
16611     if test "x$CCACHE" != x; then
16612         CCACHE_SLOPPINESS=time_macros
16613         CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE"
16614         CCACHE_FLAGS=-fpch-preprocess
16615 
16616         if test "x$SET_CCACHE_DIR" != x; then
16617             mkdir -p $CCACHE_DIR > /dev/null 2>&1
16618             chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1
16619         fi
16620     fi
16621 
16622     fi
16623 
16624 
16625 ###############################################################################
16626 #
16627 # And now the finish...
16628 #
16629 ###############################################################################
16630 
16631 # Check for some common pitfalls
16632 
16633 
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5
16635 $as_echo_n "checking if build directory is on local disk... " >&6; }
16636 
16637         # df -l lists only local disks; if the given directory is not found then
16638         # a non-zero exit code is given
16639         if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then
16640           OUTPUT_DIR_IS_LOCAL="yes"
16641         else
16642           OUTPUT_DIR_IS_LOCAL="no"
16643         fi
16644 
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5
16646 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; }
16647 
16648 # Check if the user has any old-style ALT_ variables set.
16649 FOUND_ALT_VARIABLES=`env | grep ^ALT_`
16650 
16651 # Before generating output files, test if they exist. If they do, this is a reconfigure.
16652 # Since we can't properly handle the dependencies for this, warn the user about the situation
16653 if test -e $OUTPUT_ROOT/spec.gmk; then
16654   IS_RECONFIGURE=yes
16655 else
16656   IS_RECONFIGURE=no
16657 fi
16658 
16659 if test -e $SRC_ROOT/build/.hide-configure-performance-hints; then
16660   HIDE_PERFORMANCE_HINTS=yes
16661 else
16662   HIDE_PERFORMANCE_HINTS=no
16663   # Hide it the next time around...
16664   $TOUCH $SRC_ROOT/build/.hide-configure-performance-hints > /dev/null 2>&1
16665 fi
16666 
16667 
16668 
16669 # At the end, call the closed hook. (Dummy macro if no closed sources available)
16670 
16671 
16672 # We're messing a bit with internal autoconf variables to put the config.status
16673 # in the output directory instead of the current directory.
16674 CONFIG_STATUS="$OUTPUT_ROOT/config.status"
16675 # Create the actual output files. Now the main work of configure is done.
16676 cat >confcache <<\_ACEOF
16677 # This file is a shell script that caches the results of configure
16678 # tests run on this system so they can be shared between configure
16679 # scripts and configure runs, see configure's option --config-cache.
16680 # It is not useful on other systems.  If it contains results you don't
16681 # want to keep, you may remove or edit it.
16682 #
16683 # config.status only pays attention to the cache file if you give it
16684 # the --recheck option to rerun configure.
16685 #
16686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16688 # following values.
16689 
16690 _ACEOF
16691 
16692 # The following way of writing the cache mishandles newlines in values,
16693 # but we know of no workaround that is simple, portable, and efficient.
16694 # So, we kill variables containing newlines.
16695 # Ultrix sh set writes to stderr and can't be redirected directly,
16696 # and sets the high bit in the cache file unless we assign to the vars.
16697 (
16698   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16699     eval ac_val=\$$ac_var
16700     case $ac_val in #(
16701     *${as_nl}*)
16702       case $ac_var in #(
16703       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16704 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16705       esac
16706       case $ac_var in #(
16707       _ | IFS | as_nl) ;; #(
16708       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16709       *) { eval $ac_var=; unset $ac_var;} ;;
16710       esac ;;
16711     esac
16712   done
16713 
16714   (set) 2>&1 |
16715     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16716     *${as_nl}ac_space=\ *)
16717       # `set' does not quote correctly, so add quotes: double-quote
16718       # substitution turns \\\\ into \\, and sed turns \\ into \.
16719       sed -n \
16720         "s/'/'\\\\''/g;
16721           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16722       ;; #(
16723     *)
16724       # `set' quotes correctly as required by POSIX, so do not add quotes.
16725       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16726       ;;
16727     esac |
16728     sort
16729 ) |
16730   sed '
16731      /^ac_cv_env_/b end
16732      t clear
16733      :clear
16734      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16735      t end
16736      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16737      :end' >>confcache
16738 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16739   if test -w "$cache_file"; then
16740     test "x$cache_file" != "x/dev/null" &&
16741       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16742 $as_echo "$as_me: updating cache $cache_file" >&6;}
16743     cat confcache >$cache_file
16744   else
16745     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16747   fi
16748 fi
16749 rm -f confcache
16750 
16751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16752 # Let make expand exec_prefix.
16753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16754 
16755 DEFS=-DHAVE_CONFIG_H
16756 
16757 ac_libobjs=
16758 ac_ltlibobjs=
16759 U=
16760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16761   # 1. Remove the extension, and $U if already installed.
16762   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16763   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16764   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16765   #    will be set to the directory where LIBOBJS objects are built.
16766   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16767   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16768 done
16769 LIBOBJS=$ac_libobjs
16770 
16771 LTLIBOBJS=$ac_ltlibobjs
16772 
16773 
16774 
16775 : ${CONFIG_STATUS=./config.status}
16776 ac_write_fail=0
16777 ac_clean_files_save=$ac_clean_files
16778 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16780 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16781 as_write_fail=0
16782 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16783 #! $SHELL
16784 # Generated by $as_me.
16785 # Run this file to recreate the current configuration.
16786 # Compiler output produced by configure, useful for debugging
16787 # configure, is in config.log if it exists.
16788 
16789 debug=false
16790 ac_cs_recheck=false
16791 ac_cs_silent=false
16792 
16793 SHELL=\${CONFIG_SHELL-$SHELL}
16794 export SHELL
16795 _ASEOF
16796 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16797 ## -------------------- ##
16798 ## M4sh Initialization. ##
16799 ## -------------------- ##
16800 
16801 # Be more Bourne compatible
16802 DUALCASE=1; export DUALCASE # for MKS sh
16803 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16804   emulate sh
16805   NULLCMD=:
16806   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16807   # is contrary to our usage.  Disable this feature.
16808   alias -g '${1+"$@"}'='"$@"'
16809   setopt NO_GLOB_SUBST
16810 else
16811   case `(set -o) 2>/dev/null` in #(
16812   *posix*) :
16813     set -o posix ;; #(
16814   *) :
16815      ;;
16816 esac
16817 fi
16818 
16819 
16820 as_nl='
16821 '
16822 export as_nl
16823 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16824 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16825 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16826 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16827 # Prefer a ksh shell builtin over an external printf program on Solaris,
16828 # but without wasting forks for bash or zsh.
16829 if test -z "$BASH_VERSION$ZSH_VERSION" \
16830     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16831   as_echo='print -r --'
16832   as_echo_n='print -rn --'
16833 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16834   as_echo='printf %s\n'
16835   as_echo_n='printf %s'
16836 else
16837   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16838     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16839     as_echo_n='/usr/ucb/echo -n'
16840   else
16841     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16842     as_echo_n_body='eval
16843       arg=$1;
16844       case $arg in #(
16845       *"$as_nl"*)
16846         expr "X$arg" : "X\\(.*\\)$as_nl";
16847         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16848       esac;
16849       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16850     '
16851     export as_echo_n_body
16852     as_echo_n='sh -c $as_echo_n_body as_echo'
16853   fi
16854   export as_echo_body
16855   as_echo='sh -c $as_echo_body as_echo'
16856 fi
16857 
16858 # The user is always right.
16859 if test "${PATH_SEPARATOR+set}" != set; then
16860   PATH_SEPARATOR=:
16861   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16862     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16863       PATH_SEPARATOR=';'
16864   }
16865 fi
16866 
16867 
16868 # IFS
16869 # We need space, tab and new line, in precisely that order.  Quoting is
16870 # there to prevent editors from complaining about space-tab.
16871 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16872 # splitting by setting IFS to empty value.)
16873 IFS=" ""        $as_nl"
16874 
16875 # Find who we are.  Look in the path if we contain no directory separator.
16876 case $0 in #((
16877   *[\\/]* ) as_myself=$0 ;;
16878   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16879 for as_dir in $PATH
16880 do
16881   IFS=$as_save_IFS
16882   test -z "$as_dir" && as_dir=.
16883     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16884   done
16885 IFS=$as_save_IFS
16886 
16887      ;;
16888 esac
16889 # We did not find ourselves, most probably we were run as `sh COMMAND'
16890 # in which case we are not to be found in the path.
16891 if test "x$as_myself" = x; then
16892   as_myself=$0
16893 fi
16894 if test ! -f "$as_myself"; then
16895   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16896   exit 1
16897 fi
16898 
16899 # Unset variables that we do not need and which cause bugs (e.g. in
16900 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16901 # suppresses any "Segmentation fault" message there.  '((' could
16902 # trigger a bug in pdksh 5.2.14.
16903 for as_var in BASH_ENV ENV MAIL MAILPATH
16904 do eval test x\${$as_var+set} = xset \
16905   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16906 done
16907 PS1='$ '
16908 PS2='> '
16909 PS4='+ '
16910 
16911 # NLS nuisances.
16912 LC_ALL=C
16913 export LC_ALL
16914 LANGUAGE=C
16915 export LANGUAGE
16916 
16917 # CDPATH.
16918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16919 
16920 
16921 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16922 # ----------------------------------------
16923 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16924 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16925 # script with STATUS, using 1 if that was 0.
16926 as_fn_error ()
16927 {
16928   as_status=$1; test $as_status -eq 0 && as_status=1
16929   if test "$4"; then
16930     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16931     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16932   fi
16933   $as_echo "$as_me: error: $2" >&2
16934   as_fn_exit $as_status
16935 } # as_fn_error
16936 
16937 
16938 # as_fn_set_status STATUS
16939 # -----------------------
16940 # Set $? to STATUS, without forking.
16941 as_fn_set_status ()
16942 {
16943   return $1
16944 } # as_fn_set_status
16945 
16946 # as_fn_exit STATUS
16947 # -----------------
16948 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16949 as_fn_exit ()
16950 {
16951   set +e
16952   as_fn_set_status $1
16953   exit $1
16954 } # as_fn_exit
16955 
16956 # as_fn_unset VAR
16957 # ---------------
16958 # Portably unset VAR.
16959 as_fn_unset ()
16960 {
16961   { eval $1=; unset $1;}
16962 }
16963 as_unset=as_fn_unset
16964 # as_fn_append VAR VALUE
16965 # ----------------------
16966 # Append the text in VALUE to the end of the definition contained in VAR. Take
16967 # advantage of any shell optimizations that allow amortized linear growth over
16968 # repeated appends, instead of the typical quadratic growth present in naive
16969 # implementations.
16970 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16971   eval 'as_fn_append ()
16972   {
16973     eval $1+=\$2
16974   }'
16975 else
16976   as_fn_append ()
16977   {
16978     eval $1=\$$1\$2
16979   }
16980 fi # as_fn_append
16981 
16982 # as_fn_arith ARG...
16983 # ------------------
16984 # Perform arithmetic evaluation on the ARGs, and store the result in the
16985 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16986 # must be portable across $(()) and expr.
16987 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16988   eval 'as_fn_arith ()
16989   {
16990     as_val=$(( $* ))
16991   }'
16992 else
16993   as_fn_arith ()
16994   {
16995     as_val=`expr "$@" || test $? -eq 1`
16996   }
16997 fi # as_fn_arith
16998 
16999 
17000 if expr a : '\(a\)' >/dev/null 2>&1 &&
17001    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17002   as_expr=expr
17003 else
17004   as_expr=false
17005 fi
17006 
17007 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17008   as_basename=basename
17009 else
17010   as_basename=false
17011 fi
17012 
17013 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17014   as_dirname=dirname
17015 else
17016   as_dirname=false
17017 fi
17018 
17019 as_me=`$as_basename -- "$0" ||
17020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17021          X"$0" : 'X\(//\)$' \| \
17022          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17023 $as_echo X/"$0" |
17024     sed '/^.*\/\([^/][^/]*\)\/*$/{
17025             s//\1/
17026             q
17027           }
17028           /^X\/\(\/\/\)$/{
17029             s//\1/
17030             q
17031           }
17032           /^X\/\(\/\).*/{
17033             s//\1/
17034             q
17035           }
17036           s/.*/./; q'`
17037 
17038 # Avoid depending upon Character Ranges.
17039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17042 as_cr_digits='0123456789'
17043 as_cr_alnum=$as_cr_Letters$as_cr_digits
17044 
17045 ECHO_C= ECHO_N= ECHO_T=
17046 case `echo -n x` in #(((((
17047 -n*)
17048   case `echo 'xy\c'` in
17049   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17050   xy)  ECHO_C='\c';;
17051   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17052        ECHO_T=' ';;
17053   esac;;
17054 *)
17055   ECHO_N='-n';;
17056 esac
17057 
17058 rm -f conf$$ conf$$.exe conf$$.file
17059 if test -d conf$$.dir; then
17060   rm -f conf$$.dir/conf$$.file
17061 else
17062   rm -f conf$$.dir
17063   mkdir conf$$.dir 2>/dev/null
17064 fi
17065 if (echo >conf$$.file) 2>/dev/null; then
17066   if ln -s conf$$.file conf$$ 2>/dev/null; then
17067     as_ln_s='ln -s'
17068     # ... but there are two gotchas:
17069     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17070     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17071     # In both cases, we have to default to `cp -p'.
17072     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17073       as_ln_s='cp -p'
17074   elif ln conf$$.file conf$$ 2>/dev/null; then
17075     as_ln_s=ln
17076   else
17077     as_ln_s='cp -p'
17078   fi
17079 else
17080   as_ln_s='cp -p'
17081 fi
17082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17083 rmdir conf$$.dir 2>/dev/null
17084 
17085 
17086 # as_fn_mkdir_p
17087 # -------------
17088 # Create "$as_dir" as a directory, including parents if necessary.
17089 as_fn_mkdir_p ()
17090 {
17091 
17092   case $as_dir in #(
17093   -*) as_dir=./$as_dir;;
17094   esac
17095   test -d "$as_dir" || eval $as_mkdir_p || {
17096     as_dirs=
17097     while :; do
17098       case $as_dir in #(
17099       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17100       *) as_qdir=$as_dir;;
17101       esac
17102       as_dirs="'$as_qdir' $as_dirs"
17103       as_dir=`$as_dirname -- "$as_dir" ||
17104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17105          X"$as_dir" : 'X\(//\)[^/]' \| \
17106          X"$as_dir" : 'X\(//\)$' \| \
17107          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17108 $as_echo X"$as_dir" |
17109     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17110             s//\1/
17111             q
17112           }
17113           /^X\(\/\/\)[^/].*/{
17114             s//\1/
17115             q
17116           }
17117           /^X\(\/\/\)$/{
17118             s//\1/
17119             q
17120           }
17121           /^X\(\/\).*/{
17122             s//\1/
17123             q
17124           }
17125           s/.*/./; q'`
17126       test -d "$as_dir" && break
17127     done
17128     test -z "$as_dirs" || eval "mkdir $as_dirs"
17129   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17130 
17131 
17132 } # as_fn_mkdir_p
17133 if mkdir -p . 2>/dev/null; then
17134   as_mkdir_p='mkdir -p "$as_dir"'
17135 else
17136   test -d ./-p && rmdir ./-p
17137   as_mkdir_p=false
17138 fi
17139 
17140 if test -x / >/dev/null 2>&1; then
17141   as_test_x='test -x'
17142 else
17143   if ls -dL / >/dev/null 2>&1; then
17144     as_ls_L_option=L
17145   else
17146     as_ls_L_option=
17147   fi
17148   as_test_x='
17149     eval sh -c '\''
17150       if test -d "$1"; then
17151         test -d "$1/.";
17152       else
17153         case $1 in #(
17154         -*)set "./$1";;
17155         esac;
17156         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17157         ???[sx]*):;;*)false;;esac;fi
17158     '\'' sh
17159   '
17160 fi
17161 as_executable_p=$as_test_x
17162 
17163 # Sed expression to map a string onto a valid CPP name.
17164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17165 
17166 # Sed expression to map a string onto a valid variable name.
17167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17168 
17169 
17170 exec 6>&1
17171 ## ----------------------------------- ##
17172 ## Main body of $CONFIG_STATUS script. ##
17173 ## ----------------------------------- ##
17174 _ASEOF
17175 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17176 
17177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17178 # Save the log message, to keep $0 and so on meaningful, and to
17179 # report actual input values of CONFIG_FILES etc. instead of their
17180 # values after options handling.
17181 ac_log="
17182 This file was extended by openjdk $as_me jdk8, which was
17183 generated by GNU Autoconf 2.67.  Invocation command line was
17184 
17185   CONFIG_FILES    = $CONFIG_FILES
17186   CONFIG_HEADERS  = $CONFIG_HEADERS
17187   CONFIG_LINKS    = $CONFIG_LINKS
17188   CONFIG_COMMANDS = $CONFIG_COMMANDS
17189   $ $0 $@
17190 
17191 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17192 "
17193 
17194 _ACEOF
17195 
17196 case $ac_config_files in *"
17197 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17198 esac
17199 
17200 case $ac_config_headers in *"
17201 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17202 esac
17203 
17204 
17205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17206 # Files that config.status was made for.
17207 config_files="$ac_config_files"
17208 config_headers="$ac_config_headers"
17209 
17210 _ACEOF
17211 
17212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17213 ac_cs_usage="\
17214 \`$as_me' instantiates files and other configuration actions
17215 from templates according to the current configuration.  Unless the files
17216 and actions are specified as TAGs, all are instantiated by default.
17217 
17218 Usage: $0 [OPTION]... [TAG]...
17219 
17220   -h, --help       print this help, then exit
17221   -V, --version    print version number and configuration settings, then exit
17222       --config     print configuration, then exit
17223   -q, --quiet, --silent
17224                    do not print progress messages
17225   -d, --debug      don't remove temporary files
17226       --recheck    update $as_me by reconfiguring in the same conditions
17227       --file=FILE[:TEMPLATE]
17228                    instantiate the configuration file FILE
17229       --header=FILE[:TEMPLATE]
17230                    instantiate the configuration header FILE
17231 
17232 Configuration files:
17233 $config_files
17234 
17235 Configuration headers:
17236 $config_headers
17237 
17238 Report bugs to <build-dev@openjdk.java.net>."
17239 
17240 _ACEOF
17241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17242 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17243 ac_cs_version="\\
17244 openjdk config.status jdk8
17245 configured by $0, generated by GNU Autoconf 2.67,
17246   with options \\"\$ac_cs_config\\"
17247 
17248 Copyright (C) 2010 Free Software Foundation, Inc.
17249 This config.status script is free software; the Free Software Foundation
17250 gives unlimited permission to copy, distribute and modify it."
17251 
17252 ac_pwd='$ac_pwd'
17253 srcdir='$srcdir'
17254 AWK='$AWK'
17255 test -n "\$AWK" || AWK=awk
17256 _ACEOF
17257 
17258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17259 # The default lists apply if the user does not specify any file.
17260 ac_need_defaults=:
17261 while test $# != 0
17262 do
17263   case $1 in
17264   --*=?*)
17265     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17266     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17267     ac_shift=:
17268     ;;
17269   --*=)
17270     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17271     ac_optarg=
17272     ac_shift=:
17273     ;;
17274   *)
17275     ac_option=$1
17276     ac_optarg=$2
17277     ac_shift=shift
17278     ;;
17279   esac
17280 
17281   case $ac_option in
17282   # Handling of the options.
17283   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17284     ac_cs_recheck=: ;;
17285   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17286     $as_echo "$ac_cs_version"; exit ;;
17287   --config | --confi | --conf | --con | --co | --c )
17288     $as_echo "$ac_cs_config"; exit ;;
17289   --debug | --debu | --deb | --de | --d | -d )
17290     debug=: ;;
17291   --file | --fil | --fi | --f )
17292     $ac_shift
17293     case $ac_optarg in
17294     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17295     '') as_fn_error $? "missing file argument" ;;
17296     esac
17297     as_fn_append CONFIG_FILES " '$ac_optarg'"
17298     ac_need_defaults=false;;
17299   --header | --heade | --head | --hea )
17300     $ac_shift
17301     case $ac_optarg in
17302     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17303     esac
17304     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17305     ac_need_defaults=false;;
17306   --he | --h)
17307     # Conflict between --help and --header
17308     as_fn_error $? "ambiguous option: \`$1'
17309 Try \`$0 --help' for more information.";;
17310   --help | --hel | -h )
17311     $as_echo "$ac_cs_usage"; exit ;;
17312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17313   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17314     ac_cs_silent=: ;;
17315 
17316   # This is an error.
17317   -*) as_fn_error $? "unrecognized option: \`$1'
17318 Try \`$0 --help' for more information." ;;
17319 
17320   *) as_fn_append ac_config_targets " $1"
17321      ac_need_defaults=false ;;
17322 
17323   esac
17324   shift
17325 done
17326 
17327 ac_configure_extra_args=
17328 
17329 if $ac_cs_silent; then
17330   exec 6>/dev/null
17331   ac_configure_extra_args="$ac_configure_extra_args --silent"
17332 fi
17333 
17334 _ACEOF
17335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17336 if \$ac_cs_recheck; then
17337   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17338   shift
17339   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17340   CONFIG_SHELL='$SHELL'
17341   export CONFIG_SHELL
17342   exec "\$@"
17343 fi
17344 
17345 _ACEOF
17346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17347 exec 5>>config.log
17348 {
17349   echo
17350   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17351 ## Running $as_me. ##
17352 _ASBOX
17353   $as_echo "$ac_log"
17354 } >&5
17355 
17356 _ACEOF
17357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17358 _ACEOF
17359 
17360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17361 
17362 # Handling of arguments.
17363 for ac_config_target in $ac_config_targets
17364 do
17365   case $ac_config_target in
17366     "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
17367     "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
17368     "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
17369     "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
17370 
17371   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17372   esac
17373 done
17374 
17375 
17376 # If the user did not use the arguments to specify the items to instantiate,
17377 # then the envvar interface is used.  Set only those that are not.
17378 # We use the long form for the default assignment because of an extremely
17379 # bizarre bug on SunOS 4.1.3.
17380 if $ac_need_defaults; then
17381   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17382   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17383 fi
17384 
17385 # Have a temporary directory for convenience.  Make it in the build tree
17386 # simply because there is no reason against having it here, and in addition,
17387 # creating and moving files from /tmp can sometimes cause problems.
17388 # Hook for its removal unless debugging.
17389 # Note that there is a small window in which the directory will not be cleaned:
17390 # after its creation but before its name has been assigned to `$tmp'.
17391 $debug ||
17392 {
17393   tmp=
17394   trap 'exit_status=$?
17395   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17396 ' 0
17397   trap 'as_fn_exit 1' 1 2 13 15
17398 }
17399 # Create a (secure) tmp directory for tmp files.
17400 
17401 {
17402   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17403   test -n "$tmp" && test -d "$tmp"
17404 }  ||
17405 {
17406   tmp=./conf$$-$RANDOM
17407   (umask 077 && mkdir "$tmp")
17408 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17409 
17410 # Set up the scripts for CONFIG_FILES section.
17411 # No need to generate them if there are no CONFIG_FILES.
17412 # This happens for instance with `./config.status config.h'.
17413 if test -n "$CONFIG_FILES"; then
17414 
17415 
17416 ac_cr=`echo X | tr X '\015'`
17417 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17418 # But we know of no other shell where ac_cr would be empty at this
17419 # point, so we can use a bashism as a fallback.
17420 if test "x$ac_cr" = x; then
17421   eval ac_cr=\$\'\\r\'
17422 fi
17423 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17424 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17425   ac_cs_awk_cr='\\r'
17426 else
17427   ac_cs_awk_cr=$ac_cr
17428 fi
17429 
17430 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17431 _ACEOF
17432 
17433 
17434 {
17435   echo "cat >conf$$subs.awk <<_ACEOF" &&
17436   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17437   echo "_ACEOF"
17438 } >conf$$subs.sh ||
17439   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17440 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17441 ac_delim='%!_!# '
17442 for ac_last_try in false false false false false :; do
17443   . ./conf$$subs.sh ||
17444     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17445 
17446   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17447   if test $ac_delim_n = $ac_delim_num; then
17448     break
17449   elif $ac_last_try; then
17450     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17451   else
17452     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17453   fi
17454 done
17455 rm -f conf$$subs.sh
17456 
17457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17458 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17459 _ACEOF
17460 sed -n '
17461 h
17462 s/^/S["/; s/!.*/"]=/
17463 p
17464 g
17465 s/^[^!]*!//
17466 :repl
17467 t repl
17468 s/'"$ac_delim"'$//
17469 t delim
17470 :nl
17471 h
17472 s/\(.\{148\}\)..*/\1/
17473 t more1
17474 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17475 p
17476 n
17477 b repl
17478 :more1
17479 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17480 p
17481 g
17482 s/.\{148\}//
17483 t nl
17484 :delim
17485 h
17486 s/\(.\{148\}\)..*/\1/
17487 t more2
17488 s/["\\]/\\&/g; s/^/"/; s/$/"/
17489 p
17490 b
17491 :more2
17492 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17493 p
17494 g
17495 s/.\{148\}//
17496 t delim
17497 ' <conf$$subs.awk | sed '
17498 /^[^""]/{
17499   N
17500   s/\n//
17501 }
17502 ' >>$CONFIG_STATUS || ac_write_fail=1
17503 rm -f conf$$subs.awk
17504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17505 _ACAWK
17506 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17507   for (key in S) S_is_set[key] = 1
17508   FS = ""
17509 
17510 }
17511 {
17512   line = $ 0
17513   nfields = split(line, field, "@")
17514   substed = 0
17515   len = length(field[1])
17516   for (i = 2; i < nfields; i++) {
17517     key = field[i]
17518     keylen = length(key)
17519     if (S_is_set[key]) {
17520       value = S[key]
17521       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17522       len += length(value) + length(field[++i])
17523       substed = 1
17524     } else
17525       len += 1 + keylen
17526   }
17527 
17528   print line
17529 }
17530 
17531 _ACAWK
17532 _ACEOF
17533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17534 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17535   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17536 else
17537   cat
17538 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17539   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17540 _ACEOF
17541 
17542 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17543 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17544 # trailing colons and then remove the whole line if VPATH becomes empty
17545 # (actually we leave an empty line to preserve line numbers).
17546 if test "x$srcdir" = x.; then
17547   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17548 h
17549 s///
17550 s/^/:/
17551 s/[      ]*$/:/
17552 s/:\$(srcdir):/:/g
17553 s/:\${srcdir}:/:/g
17554 s/:@srcdir@:/:/g
17555 s/^:*//
17556 s/:*$//
17557 x
17558 s/\(=[   ]*\).*/\1/
17559 G
17560 s/\n//
17561 s/^[^=]*=[       ]*$//
17562 }'
17563 fi
17564 
17565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17566 fi # test -n "$CONFIG_FILES"
17567 
17568 # Set up the scripts for CONFIG_HEADERS section.
17569 # No need to generate them if there are no CONFIG_HEADERS.
17570 # This happens for instance with `./config.status Makefile'.
17571 if test -n "$CONFIG_HEADERS"; then
17572 cat >"$tmp/defines.awk" <<\_ACAWK ||
17573 BEGIN {
17574 _ACEOF
17575 
17576 # Transform confdefs.h into an awk script `defines.awk', embedded as
17577 # here-document in config.status, that substitutes the proper values into
17578 # config.h.in to produce config.h.
17579 
17580 # Create a delimiter string that does not exist in confdefs.h, to ease
17581 # handling of long lines.
17582 ac_delim='%!_!# '
17583 for ac_last_try in false false :; do
17584   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17585   if test -z "$ac_t"; then
17586     break
17587   elif $ac_last_try; then
17588     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17589   else
17590     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17591   fi
17592 done
17593 
17594 # For the awk script, D is an array of macro values keyed by name,
17595 # likewise P contains macro parameters if any.  Preserve backslash
17596 # newline sequences.
17597 
17598 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17599 sed -n '
17600 s/.\{148\}/&'"$ac_delim"'/g
17601 t rset
17602 :rset
17603 s/^[     ]*#[    ]*define[       ][      ]*/ /
17604 t def
17605 d
17606 :def
17607 s/\\$//
17608 t bsnl
17609 s/["\\]/\\&/g
17610 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17611 D["\1"]=" \3"/p
17612 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17613 d
17614 :bsnl
17615 s/["\\]/\\&/g
17616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17617 D["\1"]=" \3\\\\\\n"\\/p
17618 t cont
17619 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17620 t cont
17621 d
17622 :cont
17623 n
17624 s/.\{148\}/&'"$ac_delim"'/g
17625 t clear
17626 :clear
17627 s/\\$//
17628 t bsnlc
17629 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17630 d
17631 :bsnlc
17632 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17633 b cont
17634 ' <confdefs.h | sed '
17635 s/'"$ac_delim"'/"\\\
17636 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17637 
17638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17639   for (key in D) D_is_set[key] = 1
17640   FS = ""
17641 }
17642 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17643   line = \$ 0
17644   split(line, arg, " ")
17645   if (arg[1] == "#") {
17646     defundef = arg[2]
17647     mac1 = arg[3]
17648   } else {
17649     defundef = substr(arg[1], 2)
17650     mac1 = arg[2]
17651   }
17652   split(mac1, mac2, "(") #)
17653   macro = mac2[1]
17654   prefix = substr(line, 1, index(line, defundef) - 1)
17655   if (D_is_set[macro]) {
17656     # Preserve the white space surrounding the "#".
17657     print prefix "define", macro P[macro] D[macro]
17658     next
17659   } else {
17660     # Replace #undef with comments.  This is necessary, for example,
17661     # in the case of _POSIX_SOURCE, which is predefined and required
17662     # on some systems where configure will not decide to define it.
17663     if (defundef == "undef") {
17664       print "/*", prefix defundef, macro, "*/"
17665       next
17666     }
17667   }
17668 }
17669 { print }
17670 _ACAWK
17671 _ACEOF
17672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17673   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17674 fi # test -n "$CONFIG_HEADERS"
17675 
17676 
17677 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
17678 shift
17679 for ac_tag
17680 do
17681   case $ac_tag in
17682   :[FHLC]) ac_mode=$ac_tag; continue;;
17683   esac
17684   case $ac_mode$ac_tag in
17685   :[FHL]*:*);;
17686   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17687   :[FH]-) ac_tag=-:-;;
17688   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17689   esac
17690   ac_save_IFS=$IFS
17691   IFS=:
17692   set x $ac_tag
17693   IFS=$ac_save_IFS
17694   shift
17695   ac_file=$1
17696   shift
17697 
17698   case $ac_mode in
17699   :L) ac_source=$1;;
17700   :[FH])
17701     ac_file_inputs=
17702     for ac_f
17703     do
17704       case $ac_f in
17705       -) ac_f="$tmp/stdin";;
17706       *) # Look for the file first in the build tree, then in the source tree
17707          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17708          # because $ac_f cannot contain `:'.
17709          test -f "$ac_f" ||
17710            case $ac_f in
17711            [\\/$]*) false;;
17712            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17713            esac ||
17714            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17715       esac
17716       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17717       as_fn_append ac_file_inputs " '$ac_f'"
17718     done
17719 
17720     # Let's still pretend it is `configure' which instantiates (i.e., don't
17721     # use $as_me), people would be surprised to read:
17722     #    /* config.h.  Generated by config.status.  */
17723     configure_input='Generated from '`
17724           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17725         `' by configure.'
17726     if test x"$ac_file" != x-; then
17727       configure_input="$ac_file.  $configure_input"
17728       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17729 $as_echo "$as_me: creating $ac_file" >&6;}
17730     fi
17731     # Neutralize special characters interpreted by sed in replacement strings.
17732     case $configure_input in #(
17733     *\&* | *\|* | *\\* )
17734        ac_sed_conf_input=`$as_echo "$configure_input" |
17735        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17736     *) ac_sed_conf_input=$configure_input;;
17737     esac
17738 
17739     case $ac_tag in
17740     *:-:* | *:-) cat >"$tmp/stdin" \
17741       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
17742     esac
17743     ;;
17744   esac
17745 
17746   ac_dir=`$as_dirname -- "$ac_file" ||
17747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17748          X"$ac_file" : 'X\(//\)[^/]' \| \
17749          X"$ac_file" : 'X\(//\)$' \| \
17750          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17751 $as_echo X"$ac_file" |
17752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17753             s//\1/
17754             q
17755           }
17756           /^X\(\/\/\)[^/].*/{
17757             s//\1/
17758             q
17759           }
17760           /^X\(\/\/\)$/{
17761             s//\1/
17762             q
17763           }
17764           /^X\(\/\).*/{
17765             s//\1/
17766             q
17767           }
17768           s/.*/./; q'`
17769   as_dir="$ac_dir"; as_fn_mkdir_p
17770   ac_builddir=.
17771 
17772 case "$ac_dir" in
17773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17774 *)
17775   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17776   # A ".." for each directory in $ac_dir_suffix.
17777   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17778   case $ac_top_builddir_sub in
17779   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17780   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17781   esac ;;
17782 esac
17783 ac_abs_top_builddir=$ac_pwd
17784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17785 # for backward compatibility:
17786 ac_top_builddir=$ac_top_build_prefix
17787 
17788 case $srcdir in
17789   .)  # We are building in place.
17790     ac_srcdir=.
17791     ac_top_srcdir=$ac_top_builddir_sub
17792     ac_abs_top_srcdir=$ac_pwd ;;
17793   [\\/]* | ?:[\\/]* )  # Absolute name.
17794     ac_srcdir=$srcdir$ac_dir_suffix;
17795     ac_top_srcdir=$srcdir
17796     ac_abs_top_srcdir=$srcdir ;;
17797   *) # Relative name.
17798     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17799     ac_top_srcdir=$ac_top_build_prefix$srcdir
17800     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17801 esac
17802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17803 
17804 
17805   case $ac_mode in
17806   :F)
17807   #
17808   # CONFIG_FILE
17809   #
17810 
17811 _ACEOF
17812 
17813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17814 # If the template does not know about datarootdir, expand it.
17815 # FIXME: This hack should be removed a few years after 2.60.
17816 ac_datarootdir_hack=; ac_datarootdir_seen=
17817 ac_sed_dataroot='
17818 /datarootdir/ {
17819   p
17820   q
17821 }
17822 /@datadir@/p
17823 /@docdir@/p
17824 /@infodir@/p
17825 /@localedir@/p
17826 /@mandir@/p'
17827 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17828 *datarootdir*) ac_datarootdir_seen=yes;;
17829 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17830   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17831 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17832 _ACEOF
17833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17834   ac_datarootdir_hack='
17835   s&@datadir@&$datadir&g
17836   s&@docdir@&$docdir&g
17837   s&@infodir@&$infodir&g
17838   s&@localedir@&$localedir&g
17839   s&@mandir@&$mandir&g
17840   s&\\\${datarootdir}&$datarootdir&g' ;;
17841 esac
17842 _ACEOF
17843 
17844 # Neutralize VPATH when `$srcdir' = `.'.
17845 # Shell code in configure.ac might set extrasub.
17846 # FIXME: do we really want to maintain this feature?
17847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17848 ac_sed_extra="$ac_vpsub
17849 $extrasub
17850 _ACEOF
17851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17852 :t
17853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17854 s|@configure_input@|$ac_sed_conf_input|;t t
17855 s&@top_builddir@&$ac_top_builddir_sub&;t t
17856 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17857 s&@srcdir@&$ac_srcdir&;t t
17858 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17859 s&@top_srcdir@&$ac_top_srcdir&;t t
17860 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17861 s&@builddir@&$ac_builddir&;t t
17862 s&@abs_builddir@&$ac_abs_builddir&;t t
17863 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17864 $ac_datarootdir_hack
17865 "
17866 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17867   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17868 
17869 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17870   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17871   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17872   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17873 which seems to be undefined.  Please make sure it is defined" >&5
17874 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17875 which seems to be undefined.  Please make sure it is defined" >&2;}
17876 
17877   rm -f "$tmp/stdin"
17878   case $ac_file in
17879   -) cat "$tmp/out" && rm -f "$tmp/out";;
17880   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17881   esac \
17882   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17883  ;;
17884   :H)
17885   #
17886   # CONFIG_HEADER
17887   #
17888   if test x"$ac_file" != x-; then
17889     {
17890       $as_echo "/* $configure_input  */" \
17891       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17892     } >"$tmp/config.h" \
17893       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17894     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17895       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17896 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17897     else
17898       rm -f "$ac_file"
17899       mv "$tmp/config.h" "$ac_file" \
17900         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17901     fi
17902   else
17903     $as_echo "/* $configure_input  */" \
17904       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17905       || as_fn_error $? "could not create -" "$LINENO" 5
17906   fi
17907  ;;
17908 
17909 
17910   esac
17911 
17912 done # for ac_tag
17913 
17914 
17915 as_fn_exit 0
17916 _ACEOF
17917 ac_clean_files=$ac_clean_files_save
17918 
17919 test $ac_write_fail = 0 ||
17920   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17921 
17922 
17923 # configure is writing to config.log, and then calls config.status.
17924 # config.status does its own redirection, appending to config.log.
17925 # Unfortunately, on DOS this fails, as config.log is still kept open
17926 # by configure, so config.status won't be able to write to it; its
17927 # output is simply discarded.  So we exec the FD to /dev/null,
17928 # effectively closing config.log, so it can be properly (re)opened and
17929 # appended to by config.status.  When coming back to configure, we
17930 # need to make the FD available again.
17931 if test "$no_create" != yes; then
17932   ac_cs_success=:
17933   ac_config_status_args=
17934   test "$silent" = yes &&
17935     ac_config_status_args="$ac_config_status_args --quiet"
17936   exec 5>/dev/null
17937   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17938   exec 5>>config.log
17939   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17940   # would make configure fail if this is the last instruction.
17941   $ac_cs_success || as_fn_exit 1
17942 fi
17943 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17944   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17945 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17946 fi
17947 
17948 
17949 # Finally output some useful information to the user
17950 
17951 # Finally output some useful information to the user
17952 
17953 if test "x$CCACHE_FOUND" != x; then
17954         if  test "x$HAS_GOOD_CCACHE" = x; then
17955                 CCACHE_STATUS="installed, but disabled (version older than 3.1.4)"
17956                 CCACHE_HELP_MSG="You have ccache installed, but it is a version prior to 3.1.4. Try upgrading."
17957         else
17958                 CCACHE_STATUS="installed and in use"
17959         fi
17960 else
17961         if test "x$GCC" = xyes; then
17962                 CCACHE_STATUS="not installed (consider installing)"
17963                 CCACHE_HELP_MSG="You do not have ccache installed. Try installing it."
17964         else
17965                 CCACHE_STATUS="not available for your system"
17966         fi
17967 fi
17968 
17969 printf "\n"
17970 printf "====================================================\n"
17971 printf "A new configuration has been successfully created in\n"
17972 printf "$OUTPUT_ROOT\n"
17973 if test "x$CONFIGURE_COMMAND_LINE" != x; then
17974         printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
17975 else
17976         printf "using default settings.\n"
17977 fi
17978 
17979 printf "\n"
17980 printf "Configuration summary:\n"
17981 printf "* Debug level:    $DEBUG_LEVEL\n"
17982 printf "* JDK variant:    $JDK_VARIANT\n"
17983 printf "* JVM variants:   $with_jvm_variants\n"
17984 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n"
17985 printf "* Boot JDK:       $BOOT_JDK\n"
17986 
17987 printf "\n"
17988 printf "Build performance summary:\n"
17989 printf "* Cores to use:   $NUM_CORES\n"
17990 printf "* Memory limit:   $MEMORY_SIZE MB\n"
17991 printf "* ccache status:  $CCACHE_STATUS\n"
17992 printf "\n"
17993 
17994 if test "x$CCACHE_HELP_MSG" != x && test "x$HIDE_PERFORMANCE_HINTS" = "xno"; then
17995         printf "Build performance tip: ccache gives a tremendous speedup for C++ recompilations.\n"
17996         printf "$CCACHE_HELP_MSG\n"
17997 
17998     # Print a helpful message on how to acquire the necessary build dependency.
17999     # ccache is the help tag: freetyp2, cups, pulse, alsa etc
18000     MISSING_DEPENDENCY=ccache
18001     PKGHANDLER_COMMAND=
18002 
18003     case $PKGHANDLER in
18004         apt-get)
18005                 apt_help     $MISSING_DEPENDENCY ;;
18006     yum)
18007                 yum_help     $MISSING_DEPENDENCY ;;
18008         port)
18009                 port_help    $MISSING_DEPENDENCY ;;
18010         pkgutil)
18011                 pkgutil_help $MISSING_DEPENDENCY ;;
18012         pkgadd)
18013                 pkgadd_help  $MISSING_DEPENDENCY ;;
18014     * )
18015       break ;;
18016     esac
18017 
18018     if test "x$PKGHANDLER_COMMAND" != x; then
18019         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
18020     fi
18021 
18022         printf "$HELP_MSG\n"
18023         printf "\n"
18024 fi
18025 
18026 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then
18027         printf "NOTE: You have requested to build more than one version of the JVM, which\n"
18028         printf "will result in longer build times.\n"
18029         printf "\n"
18030 fi
18031 
18032 if test "x$FOUND_ALT_VARIABLES" != "x"; then
18033         printf "WARNING: You have old-style ALT_ environment variables set.\n"
18034         printf "These are not respected, and will be ignored. It is recommended\n"
18035         printf "that you clean your environment. The following variables are set:\n"
18036         printf "$FOUND_ALT_VARIABLES\n"
18037         printf "\n"
18038 fi
18039 
18040 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then
18041         printf "WARNING: Your build output directory is not on a local disk.\n"
18042         printf "This will severely degrade build performance!\n"
18043         printf "It is recommended that you create an output directory on a local disk,\n"
18044         printf "and run the configure script again from that directory.\n"
18045         printf "\n"
18046 fi
18047 
18048 if test "x$IS_RECONFIGURE" = "xyes"; then
18049         printf "WARNING: The result of this configuration has overridden an older\n"
18050         printf "configuration. You *should* run 'make clean' to make sure you get a\n"
18051         printf "proper build. Failure to do so might result in strange build problems.\n"
18052         printf "\n"
18053 fi
18054