1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.67 for openjdk version-0.1. 4 # 5 # Report bugs to <build-infra-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-infra-dev@openjdk.java.net about your system, 235 $0: including any error possibly output before this 236 $0: message. Then install a modern shell, or manually run 237 $0: the script 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='version-0.1' 556 PACKAGE_STRING='openjdk version-0.1' 557 PACKAGE_BUGREPORT='build-infra-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 TEST_IN_BUILD 599 LIBCXX 600 LDFLAGS_JDKEXE_SUFFIX 601 LDFLAGS_JDKLIB_SUFFIX 602 LDFLAGS_JDKEXE 603 LDFLAGS_JDKLIB 604 CXXFLAGS_JDKEXE 605 CXXFLAGS_JDKLIB 606 CFLAGS_JDKEXE 607 CFLAGS_JDKLIB 608 PACKAGE_PATH 609 IMAGES_MAKE_ARGS 610 IMAGES_OUTPUTDIR 611 JDK_MAKE_ARGS 612 JDK_OUTPUTDIR 613 HOTSPOT_MAKE_ARGS 614 HOTSPOT_DIST 615 HOTSPOT_OUTPUTDIR 616 JAXWS_MAKE_ARGS 617 JAXWS_DIST 618 JAXWS_OUTPUTDIR 619 JAXP_MAKE_ARGS 620 JAXP_DIST 621 JAXP_OUTPUTDIR 622 CORBA_MAKE_ARGS 623 CORBA_DIST 624 CORBA_OUTPUTDIR 625 LANGTOOLS_MAKE_ARGS 626 LANGTOOLS_DIST 627 LANGTOOLS_OUTPUTDIR 628 CXX_O_FLAG_NONE 629 CXX_O_FLAG_NORM 630 CXX_O_FLAG_HI 631 C_O_FLAG_NONE 632 C_O_FLAG_NORM 633 C_O_FLAG_HI 634 DISABLE_NIMBUS 635 GENERATE_DOCS 636 ENABLE_DOCS 637 LIBM 638 USE_EXTERNAL_LIBZ 639 USE_EXTERNAL_LIBGIF 640 USE_EXTERNAL_LIBJPEG 641 PULSE_LIBS 642 PULSE_CFLAGS 643 LIBPULSE_LIBS 644 LIBPULSE_CFLAGS 645 ALSA_LIBS 646 ALSA_CFLAGS 647 FREETYPE2_LIB_PATH 648 USING_SYSTEM_FT_LIB 649 FREETYPE2_LIBS 650 FREETYPE2_CFLAGS 651 CUPS_LIBS 652 CUPS_CFLAGS 653 OPENWIN_HOME 654 X_EXTRA_LIBS 655 X_LIBS 656 X_PRE_LIBS 657 X_CFLAGS 658 XMKMF 659 JAVAC_USE_MODE 660 JAVAC_USE_DEPS 661 JAVAC_SERVER_CORES 662 JAVAC_SERVERS 663 JAVAC_USE_REMOTE 664 SERVER_JAVA 665 BOOT_JDK_JVMARGS 666 OVERRIDE_SRC_ROOT 667 ADD_SRC_ROOT 668 RMIC 669 JAR 670 JAVAH 671 JAVAC_FLAGS 672 JAVAC 673 BOOT_JDK_SOURCETARGET 674 JAVA 675 BOOT_TOOLSJAR 676 BOOT_RTJAR 677 BOOT_JDK 678 JAVA_CHECK 679 JAVAC_CHECK 680 ENDIAN 681 SET_SHARED_LIBRARY_ORIGIN 682 SET_SHARED_LIBRARY_MAPFILE 683 SET_SHARED_LIBRARY_NAME 684 SHARED_LIBRARY_FLAGS 685 EXE_SUFFIX 686 STATIC_LIBRARY_SUFFIX 687 SHARED_LIBRARY_SUFFIX 688 LIBRARY_PREFIX 689 STATIC_LIBRARY 690 SHARED_LIBRARY 691 OBJ_SUFFIX 692 USE_PRECOMPILED_HEADER 693 ARCH_DATA_MODEL 694 LP64 695 BUILD_LOG_WRAPPER 696 BUILD_LOG 697 CCACHE 698 UNCYGDRIVE 699 MCS 700 STRIP 701 NM 702 ASFLAGS 703 AS 704 CXXCPP 705 CPP 706 COMPILER_TYPE 707 RC_FLAGS 708 DUMPBIN 709 WINAR 710 RC 711 MT 712 WINLD 713 ARFLAGS 714 AR 715 LDEXECXX 716 LDCXX 717 LDEXE 718 LD 719 ac_ct_OBJC 720 OBJCFLAGS 721 OBJC 722 ac_ct_CXX 723 CXXFLAGS 724 CXX 725 OBJEXT 726 EXEEXT 727 ac_ct_CC 728 CPPFLAGS 729 LDFLAGS 730 CFLAGS 731 CC 732 HOSTCXX 733 HOSTCC 734 HOST_CXX 735 HOST_CC 736 DEFINE_CROSS_COMPILE_ARCH 737 AR_OUT_OPTION 738 LD_OUT_OPTION 739 EXE_OUT_OPTION 740 CC_OUT_OPTION 741 SYS_ROOT 742 BDEPS_FTP 743 BDEPS_UNZIP 744 PKG_CONFIG 745 JDK_TOPDIR 746 HOTSPOT_TOPDIR 747 JAXWS_TOPDIR 748 JAXP_TOPDIR 749 CORBA_TOPDIR 750 LANGTOOLS_TOPDIR 751 OUTPUT_ROOT 752 SPEC 753 MSVCR100DLL 754 CHECK_FOR_VCINSTALLDIR 755 SETUPDEVENV 756 COOKED_BUILD_NUMBER 757 FULL_VERSION 758 RELEASE 759 JDK_VERSION 760 RUNTIME_NAME 761 COPYRIGHT_YEAR 762 COMPANY_NAME 763 JDK_RC_PLATFORM_NAME 764 PRODUCT_SUFFIX 765 PRODUCT_NAME 766 LAUNCHER_NAME 767 MILESTONE 768 JDK_BUILD_NUMBER 769 JDK_UPDATE_VERSION 770 JDK_MICRO_VERSION 771 JDK_MINOR_VERSION 772 JDK_MAJOR_VERSION 773 BUILD_VARIANT_RELEASE 774 DEBUG_CLASSFILES 775 FASTDEBUG 776 VARIANT 777 DEBUG_LEVEL 778 JVM_VARIANT_ZEROSHARK 779 JVM_VARIANT_ZERO 780 JVM_VARIANT_KERNEL 781 JVM_VARIANT_CLIENT 782 JVM_VARIANT_SERVER 783 JVM_VARIANTS 784 BUILD_HEADLESS_ONLY 785 BUILD_HEADLESS 786 SUPPORT_HEADFUL 787 SUPPORT_HEADLESS 788 JDK_VARIANT 789 MINIMIZE_RAM_USAGE 790 JAVASE_EMBEDDED 791 JIGSAW 792 SET_OPENJDK 793 PATH_SEP 794 CYGPATH 795 SRC_ROOT 796 MEMORY_SIZE 797 CONCURRENT_BUILD_JOBS 798 NUM_CORES 799 DATE_WHEN_CONFIGURED 800 LEGACY_BUILD_CPU3 801 LEGACY_BUILD_CPU2 802 LEGACY_BUILD_CPU1 803 BUILD_CPU_ENDIAN 804 BUILD_CPU_BITS 805 BUILD_CPU_ARCH 806 BUILD_CPU 807 LEGACY_BUILD_OS_API 808 BUILD_OS_API 809 BUILD_OS_FAMILY 810 BUILD_OS 811 LEGACY_HOST_CPU3 812 LEGACY_HOST_CPU2 813 LEGACY_HOST_CPU1 814 HOST_CPU_ENDIAN 815 HOST_CPU_BITS 816 HOST_CPU_ARCH 817 HOST_CPU 818 LEGACY_HOST_OS_API 819 HOST_OS_API 820 HOST_OS_FAMILY 821 HOST_OS 822 BUILD 823 HOST 824 host_os 825 host_vendor 826 host_cpu 827 host 828 build_os 829 build_vendor 830 build_cpu 831 build 832 FILE 833 EXPR 834 READELF 835 OTOOL 836 LDD 837 UNZIP 838 ZIP 839 XARGS 840 WC 841 TOUCH 842 TR 843 TEE 844 TAIL 845 TAR 846 SORT 847 SH 848 SED 849 RM 850 THEPWDCMD 851 PRINTF 852 NAWK 853 MV 854 MKDIR 855 MAKE 856 LS 857 LN 858 HEAD 859 FIND_DELETE 860 FIND 861 FGREP 862 EGREP 863 GREP 864 ECHO 865 DIFF 866 DF 867 DATE 868 CUT 869 CPIO 870 CP 871 CHMOD 872 CAT 873 AWK 874 READLINK 875 CONFIGURE_COMMAND_LINE 876 PKGHANDLER 877 target_alias 878 host_alias 879 build_alias 880 LIBS 881 ECHO_T 882 ECHO_N 883 ECHO_C 884 DEFS 885 mandir 886 localedir 887 libdir 888 psdir 889 pdfdir 890 dvidir 891 htmldir 892 infodir 893 docdir 894 oldincludedir 895 includedir 896 localstatedir 897 sharedstatedir 898 sysconfdir 899 datadir 900 datarootdir 901 libexecdir 902 sbindir 903 bindir 904 program_transform_name 905 prefix 906 exec_prefix 907 PACKAGE_URL 908 PACKAGE_BUGREPORT 909 PACKAGE_STRING 910 PACKAGE_VERSION 911 PACKAGE_TARNAME 912 PACKAGE_NAME 913 PATH_SEPARATOR 914 SHELL' 915 ac_subst_files='' 916 ac_user_opts=' 917 enable_option_checking 918 with_data_model 919 with_num_cores 920 with_memory_size 921 enable_openjdk 922 enable_jigsaw 923 with_jdk_variant 924 enable_headful 925 with_jvm_variants 926 enable_debug 927 with_debug_level 928 with_msvcr100dll 929 with_builddeps_conf 930 with_builddeps_server 931 with_builddeps_dir 932 with_builddeps_group 933 enable_list_builddeps 934 with_sys_root 935 enable_ccache 936 with_ccache_dir 937 enable_precompiled_headers 938 with_boot_jdk 939 with_add_source_root 940 with_override_source_root 941 with_adds_and_overrides 942 with_override_langtools 943 with_override_corba 944 with_override_jaxp 945 with_override_jaxws 946 with_override_hotspot 947 with_override_jdk 948 with_boot_jdk_jvmargs 949 with_server_java 950 enable_javac_server 951 with_javac_server_cores 952 enable_javac_deps 953 enable_javac_multi_core 954 enable_macosx_runtime_support 955 with_x 956 with_cups 957 with_cups_include 958 with_cups_lib 959 with_freetype 960 with_alsa 961 with_alsa_include 962 with_alsa_lib 963 with_pulse 964 with_pulse_include 965 with_pulse_lib 966 enable_docs 967 enable_nimbus 968 enable_static_link_stdc__ 969 enable_hotspot_test_in_build 970 ' 971 ac_precious_vars='build_alias 972 host_alias 973 target_alias 974 PKG_CONFIG 975 CC 976 CFLAGS 977 LDFLAGS 978 LIBS 979 CPPFLAGS 980 CXX 981 CXXFLAGS 982 CCC 983 OBJC 984 OBJCFLAGS 985 CPP 986 CXXCPP 987 XMKMF 988 FREETYPE2_CFLAGS 989 FREETYPE2_LIBS 990 ALSA_CFLAGS 991 ALSA_LIBS 992 LIBPULSE_CFLAGS 993 LIBPULSE_LIBS' 994 995 996 # Initialize some variables set by options. 997 ac_init_help= 998 ac_init_version=false 999 ac_unrecognized_opts= 1000 ac_unrecognized_sep= 1001 # The variables have the same names as the options, with 1002 # dashes changed to underlines. 1003 cache_file=/dev/null 1004 exec_prefix=NONE 1005 no_create= 1006 no_recursion= 1007 prefix=NONE 1008 program_prefix=NONE 1009 program_suffix=NONE 1010 program_transform_name=s,x,x, 1011 silent= 1012 site= 1013 srcdir= 1014 verbose= 1015 x_includes=NONE 1016 x_libraries=NONE 1017 1018 # Installation directory options. 1019 # These are left unexpanded so users can "make install exec_prefix=/foo" 1020 # and all the variables that are supposed to be based on exec_prefix 1021 # by default will actually change. 1022 # Use braces instead of parens because sh, perl, etc. also accept them. 1023 # (The list follows the same order as the GNU Coding Standards.) 1024 bindir='${exec_prefix}/bin' 1025 sbindir='${exec_prefix}/sbin' 1026 libexecdir='${exec_prefix}/libexec' 1027 datarootdir='${prefix}/share' 1028 datadir='${datarootdir}' 1029 sysconfdir='${prefix}/etc' 1030 sharedstatedir='${prefix}/com' 1031 localstatedir='${prefix}/var' 1032 includedir='${prefix}/include' 1033 oldincludedir='/usr/include' 1034 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1035 infodir='${datarootdir}/info' 1036 htmldir='${docdir}' 1037 dvidir='${docdir}' 1038 pdfdir='${docdir}' 1039 psdir='${docdir}' 1040 libdir='${exec_prefix}/lib' 1041 localedir='${datarootdir}/locale' 1042 mandir='${datarootdir}/man' 1043 1044 ac_prev= 1045 ac_dashdash= 1046 for ac_option 1047 do 1048 # If the previous option needs an argument, assign it. 1049 if test -n "$ac_prev"; then 1050 eval $ac_prev=\$ac_option 1051 ac_prev= 1052 continue 1053 fi 1054 1055 case $ac_option in 1056 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1057 *=) ac_optarg= ;; 1058 *) ac_optarg=yes ;; 1059 esac 1060 1061 # Accept the important Cygnus configure options, so we can diagnose typos. 1062 1063 case $ac_dashdash$ac_option in 1064 --) 1065 ac_dashdash=yes ;; 1066 1067 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1068 ac_prev=bindir ;; 1069 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1070 bindir=$ac_optarg ;; 1071 1072 -build | --build | --buil | --bui | --bu) 1073 ac_prev=build_alias ;; 1074 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1075 build_alias=$ac_optarg ;; 1076 1077 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1078 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1079 ac_prev=cache_file ;; 1080 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1081 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1082 cache_file=$ac_optarg ;; 1083 1084 --config-cache | -C) 1085 cache_file=config.cache ;; 1086 1087 -datadir | --datadir | --datadi | --datad) 1088 ac_prev=datadir ;; 1089 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1090 datadir=$ac_optarg ;; 1091 1092 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1093 | --dataroo | --dataro | --datar) 1094 ac_prev=datarootdir ;; 1095 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1096 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1097 datarootdir=$ac_optarg ;; 1098 1099 -disable-* | --disable-*) 1100 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1101 # Reject names that are not valid shell variable names. 1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1103 as_fn_error $? "invalid feature name: $ac_useropt" 1104 ac_useropt_orig=$ac_useropt 1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1106 case $ac_user_opts in 1107 *" 1108 "enable_$ac_useropt" 1109 "*) ;; 1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1111 ac_unrecognized_sep=', ';; 1112 esac 1113 eval enable_$ac_useropt=no ;; 1114 1115 -docdir | --docdir | --docdi | --doc | --do) 1116 ac_prev=docdir ;; 1117 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1118 docdir=$ac_optarg ;; 1119 1120 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1121 ac_prev=dvidir ;; 1122 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1123 dvidir=$ac_optarg ;; 1124 1125 -enable-* | --enable-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error $? "invalid feature name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134 "enable_$ac_useropt" 1135 "*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval enable_$ac_useropt=\$ac_optarg ;; 1140 1141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1143 | --exec | --exe | --ex) 1144 ac_prev=exec_prefix ;; 1145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1147 | --exec=* | --exe=* | --ex=*) 1148 exec_prefix=$ac_optarg ;; 1149 1150 -gas | --gas | --ga | --g) 1151 # Obsolete; use --with-gas. 1152 with_gas=yes ;; 1153 1154 -help | --help | --hel | --he | -h) 1155 ac_init_help=long ;; 1156 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1157 ac_init_help=recursive ;; 1158 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1159 ac_init_help=short ;; 1160 1161 -host | --host | --hos | --ho) 1162 ac_prev=host_alias ;; 1163 -host=* | --host=* | --hos=* | --ho=*) 1164 host_alias=$ac_optarg ;; 1165 1166 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1167 ac_prev=htmldir ;; 1168 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1169 | --ht=*) 1170 htmldir=$ac_optarg ;; 1171 1172 -includedir | --includedir | --includedi | --included | --include \ 1173 | --includ | --inclu | --incl | --inc) 1174 ac_prev=includedir ;; 1175 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1176 | --includ=* | --inclu=* | --incl=* | --inc=*) 1177 includedir=$ac_optarg ;; 1178 1179 -infodir | --infodir | --infodi | --infod | --info | --inf) 1180 ac_prev=infodir ;; 1181 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1182 infodir=$ac_optarg ;; 1183 1184 -libdir | --libdir | --libdi | --libd) 1185 ac_prev=libdir ;; 1186 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1187 libdir=$ac_optarg ;; 1188 1189 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1190 | --libexe | --libex | --libe) 1191 ac_prev=libexecdir ;; 1192 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1193 | --libexe=* | --libex=* | --libe=*) 1194 libexecdir=$ac_optarg ;; 1195 1196 -localedir | --localedir | --localedi | --localed | --locale) 1197 ac_prev=localedir ;; 1198 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1199 localedir=$ac_optarg ;; 1200 1201 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1202 | --localstate | --localstat | --localsta | --localst | --locals) 1203 ac_prev=localstatedir ;; 1204 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1205 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1206 localstatedir=$ac_optarg ;; 1207 1208 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1209 ac_prev=mandir ;; 1210 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1211 mandir=$ac_optarg ;; 1212 1213 -nfp | --nfp | --nf) 1214 # Obsolete; use --without-fp. 1215 with_fp=no ;; 1216 1217 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1218 | --no-cr | --no-c | -n) 1219 no_create=yes ;; 1220 1221 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1222 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1223 no_recursion=yes ;; 1224 1225 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1226 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1227 | --oldin | --oldi | --old | --ol | --o) 1228 ac_prev=oldincludedir ;; 1229 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1230 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1231 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1232 oldincludedir=$ac_optarg ;; 1233 1234 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1235 ac_prev=prefix ;; 1236 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1237 prefix=$ac_optarg ;; 1238 1239 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1240 | --program-pre | --program-pr | --program-p) 1241 ac_prev=program_prefix ;; 1242 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1243 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1244 program_prefix=$ac_optarg ;; 1245 1246 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1247 | --program-suf | --program-su | --program-s) 1248 ac_prev=program_suffix ;; 1249 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1250 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1251 program_suffix=$ac_optarg ;; 1252 1253 -program-transform-name | --program-transform-name \ 1254 | --program-transform-nam | --program-transform-na \ 1255 | --program-transform-n | --program-transform- \ 1256 | --program-transform | --program-transfor \ 1257 | --program-transfo | --program-transf \ 1258 | --program-trans | --program-tran \ 1259 | --progr-tra | --program-tr | --program-t) 1260 ac_prev=program_transform_name ;; 1261 -program-transform-name=* | --program-transform-name=* \ 1262 | --program-transform-nam=* | --program-transform-na=* \ 1263 | --program-transform-n=* | --program-transform-=* \ 1264 | --program-transform=* | --program-transfor=* \ 1265 | --program-transfo=* | --program-transf=* \ 1266 | --program-trans=* | --program-tran=* \ 1267 | --progr-tra=* | --program-tr=* | --program-t=*) 1268 program_transform_name=$ac_optarg ;; 1269 1270 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1271 ac_prev=pdfdir ;; 1272 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1273 pdfdir=$ac_optarg ;; 1274 1275 -psdir | --psdir | --psdi | --psd | --ps) 1276 ac_prev=psdir ;; 1277 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1278 psdir=$ac_optarg ;; 1279 1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1281 | -silent | --silent | --silen | --sile | --sil) 1282 silent=yes ;; 1283 1284 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1285 ac_prev=sbindir ;; 1286 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1287 | --sbi=* | --sb=*) 1288 sbindir=$ac_optarg ;; 1289 1290 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1291 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1292 | --sharedst | --shareds | --shared | --share | --shar \ 1293 | --sha | --sh) 1294 ac_prev=sharedstatedir ;; 1295 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1296 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1297 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1298 | --sha=* | --sh=*) 1299 sharedstatedir=$ac_optarg ;; 1300 1301 -site | --site | --sit) 1302 ac_prev=site ;; 1303 -site=* | --site=* | --sit=*) 1304 site=$ac_optarg ;; 1305 1306 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1307 ac_prev=srcdir ;; 1308 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1309 srcdir=$ac_optarg ;; 1310 1311 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1312 | --syscon | --sysco | --sysc | --sys | --sy) 1313 ac_prev=sysconfdir ;; 1314 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1315 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1316 sysconfdir=$ac_optarg ;; 1317 1318 -target | --target | --targe | --targ | --tar | --ta | --t) 1319 ac_prev=target_alias ;; 1320 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1321 target_alias=$ac_optarg ;; 1322 1323 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1324 verbose=yes ;; 1325 1326 -version | --version | --versio | --versi | --vers | -V) 1327 ac_init_version=: ;; 1328 1329 -with-* | --with-*) 1330 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1331 # Reject names that are not valid shell variable names. 1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1333 as_fn_error $? "invalid package name: $ac_useropt" 1334 ac_useropt_orig=$ac_useropt 1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1336 case $ac_user_opts in 1337 *" 1338 "with_$ac_useropt" 1339 "*) ;; 1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1341 ac_unrecognized_sep=', ';; 1342 esac 1343 eval with_$ac_useropt=\$ac_optarg ;; 1344 1345 -without-* | --without-*) 1346 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1347 # Reject names that are not valid shell variable names. 1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1349 as_fn_error $? "invalid package name: $ac_useropt" 1350 ac_useropt_orig=$ac_useropt 1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1352 case $ac_user_opts in 1353 *" 1354 "with_$ac_useropt" 1355 "*) ;; 1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1357 ac_unrecognized_sep=', ';; 1358 esac 1359 eval with_$ac_useropt=no ;; 1360 1361 --x) 1362 # Obsolete; use --with-x. 1363 with_x=yes ;; 1364 1365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1366 | --x-incl | --x-inc | --x-in | --x-i) 1367 ac_prev=x_includes ;; 1368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1370 x_includes=$ac_optarg ;; 1371 1372 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1374 ac_prev=x_libraries ;; 1375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1377 x_libraries=$ac_optarg ;; 1378 1379 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1380 Try \`$0 --help' for more information" 1381 ;; 1382 1383 *=*) 1384 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1385 # Reject names that are not valid shell variable names. 1386 case $ac_envvar in #( 1387 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1388 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1389 esac 1390 eval $ac_envvar=\$ac_optarg 1391 export $ac_envvar ;; 1392 1393 *) 1394 # FIXME: should be removed in autoconf 3.0. 1395 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1396 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1397 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1398 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1399 ;; 1400 1401 esac 1402 done 1403 1404 if test -n "$ac_prev"; then 1405 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1406 as_fn_error $? "missing argument to $ac_option" 1407 fi 1408 1409 if test -n "$ac_unrecognized_opts"; then 1410 case $enable_option_checking in 1411 no) ;; 1412 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1413 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1414 esac 1415 fi 1416 1417 # Check all directory arguments for consistency. 1418 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1419 datadir sysconfdir sharedstatedir localstatedir includedir \ 1420 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1421 libdir localedir mandir 1422 do 1423 eval ac_val=\$$ac_var 1424 # Remove trailing slashes. 1425 case $ac_val in 1426 */ ) 1427 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1428 eval $ac_var=\$ac_val;; 1429 esac 1430 # Be sure to have absolute directory names. 1431 case $ac_val in 1432 [\\/$]* | ?:[\\/]* ) continue;; 1433 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1434 esac 1435 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1436 done 1437 1438 # There might be people who depend on the old broken behavior: `$host' 1439 # used to hold the argument of --host etc. 1440 # FIXME: To remove some day. 1441 build=$build_alias 1442 host=$host_alias 1443 target=$target_alias 1444 1445 # FIXME: To remove some day. 1446 if test "x$host_alias" != x; then 1447 if test "x$build_alias" = x; then 1448 cross_compiling=maybe 1449 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1450 If a cross compiler is detected then cross compile mode will be used" >&2 1451 elif test "x$build_alias" != "x$host_alias"; then 1452 cross_compiling=yes 1453 fi 1454 fi 1455 1456 ac_tool_prefix= 1457 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1458 1459 test "$silent" = yes && exec 6>/dev/null 1460 1461 1462 ac_pwd=`pwd` && test -n "$ac_pwd" && 1463 ac_ls_di=`ls -di .` && 1464 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1465 as_fn_error $? "working directory cannot be determined" 1466 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1467 as_fn_error $? "pwd does not report name of working directory" 1468 1469 1470 # Find the source files, if location was not specified. 1471 if test -z "$srcdir"; then 1472 ac_srcdir_defaulted=yes 1473 # Try the directory containing this script, then the parent directory. 1474 ac_confdir=`$as_dirname -- "$as_myself" || 1475 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1476 X"$as_myself" : 'X\(//\)[^/]' \| \ 1477 X"$as_myself" : 'X\(//\)$' \| \ 1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1479 $as_echo X"$as_myself" | 1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1481 s//\1/ 1482 q 1483 } 1484 /^X\(\/\/\)[^/].*/{ 1485 s//\1/ 1486 q 1487 } 1488 /^X\(\/\/\)$/{ 1489 s//\1/ 1490 q 1491 } 1492 /^X\(\/\).*/{ 1493 s//\1/ 1494 q 1495 } 1496 s/.*/./; q'` 1497 srcdir=$ac_confdir 1498 if test ! -r "$srcdir/$ac_unique_file"; then 1499 srcdir=.. 1500 fi 1501 else 1502 ac_srcdir_defaulted=no 1503 fi 1504 if test ! -r "$srcdir/$ac_unique_file"; then 1505 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1506 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1507 fi 1508 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1509 ac_abs_confdir=`( 1510 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1511 pwd)` 1512 # When building in place, set srcdir=. 1513 if test "$ac_abs_confdir" = "$ac_pwd"; then 1514 srcdir=. 1515 fi 1516 # Remove unnecessary trailing slashes from srcdir. 1517 # Double slashes in file names in object file debugging info 1518 # mess up M-x gdb in Emacs. 1519 case $srcdir in 1520 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1521 esac 1522 for ac_var in $ac_precious_vars; do 1523 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1524 eval ac_env_${ac_var}_value=\$${ac_var} 1525 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1526 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1527 done 1528 1529 # 1530 # Report the --help message. 1531 # 1532 if test "$ac_init_help" = "long"; then 1533 # Omit some internal or obsolete options to make the list less imposing. 1534 # This message is too long to be a string in the A/UX 3.1 sh. 1535 cat <<_ACEOF 1536 \`configure' configures openjdk version-0.1 to adapt to many kinds of systems. 1537 1538 Usage: $0 [OPTION]... [VAR=VALUE]... 1539 1540 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1541 VAR=VALUE. See below for descriptions of some of the useful variables. 1542 1543 Defaults for the options are specified in brackets. 1544 1545 Configuration: 1546 -h, --help display this help and exit 1547 --help=short display options specific to this package 1548 --help=recursive display the short help of all the included packages 1549 -V, --version display version information and exit 1550 -q, --quiet, --silent do not print \`checking ...' messages 1551 --cache-file=FILE cache test results in FILE [disabled] 1552 -C, --config-cache alias for \`--cache-file=config.cache' 1553 -n, --no-create do not create output files 1554 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1555 1556 Installation directories: 1557 --prefix=PREFIX install architecture-independent files in PREFIX 1558 [$ac_default_prefix] 1559 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1560 [PREFIX] 1561 1562 By default, \`make install' will install all the files in 1563 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1564 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1565 for instance \`--prefix=\$HOME'. 1566 1567 For better control, use the options below. 1568 1569 Fine tuning of the installation directories: 1570 --bindir=DIR user executables [EPREFIX/bin] 1571 --sbindir=DIR system admin executables [EPREFIX/sbin] 1572 --libexecdir=DIR program executables [EPREFIX/libexec] 1573 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1574 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1575 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1576 --libdir=DIR object code libraries [EPREFIX/lib] 1577 --includedir=DIR C header files [PREFIX/include] 1578 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1579 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1580 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1581 --infodir=DIR info documentation [DATAROOTDIR/info] 1582 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1583 --mandir=DIR man documentation [DATAROOTDIR/man] 1584 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1585 --htmldir=DIR html documentation [DOCDIR] 1586 --dvidir=DIR dvi documentation [DOCDIR] 1587 --pdfdir=DIR pdf documentation [DOCDIR] 1588 --psdir=DIR ps documentation [DOCDIR] 1589 _ACEOF 1590 1591 cat <<\_ACEOF 1592 1593 X features: 1594 --x-includes=DIR X include files are in DIR 1595 --x-libraries=DIR X library files are in DIR 1596 1597 System types: 1598 --build=BUILD configure for building on BUILD [guessed] 1599 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1600 _ACEOF 1601 fi 1602 1603 if test -n "$ac_init_help"; then 1604 case $ac_init_help in 1605 short | recursive ) echo "Configuration of openjdk version-0.1:";; 1606 esac 1607 cat <<\_ACEOF 1608 1609 Optional Features: 1610 --disable-option-checking ignore unrecognized --enable/--with options 1611 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1612 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1613 --enable-openjdk build OpenJDK regardless of the presence of closed 1614 repositories [disabled] 1615 --enable-jigsaw build Jigsaw images (not yet available) [disabled] 1616 --disable-headful build headful support (graphical UI support) 1617 [enabled] 1618 --enable-debug set the debug level to fastdebug (shorthand for 1619 --with-debug-level=fastdebug) [disabled] 1620 --enable-list-builddeps list all build dependencies known to the configure 1621 script 1622 --disable-ccache use ccache to speed up recompilations [enabled] 1623 --disable-precompiled-headers 1624 use precompiled headers when compiling C++ [enabled] 1625 --enable-javac-server enable the shared javac server during the build 1626 process [disabled] 1627 --enable-javac-deps enable the dependency tracking between Java packages 1628 [disabled] 1629 --enable-javac-multi-core 1630 compile Java packages concurrently [disabled] 1631 --disable-macosx-runtime-support 1632 disable the use of MacOSX Java runtime support 1633 framework [enabled] 1634 --enable-docs enable generation of Javadoc documentation 1635 [disabled] 1636 --disable-nimbus disable Nimbus L&F [enabled] 1637 --disable-static-link-stdc++ 1638 disable static linking of the C++ runtime on Linux 1639 [enabled] 1640 --enable-hotspot-test-in-build 1641 enable running of Queens test after Hotspot build 1642 (not yet available) [disabled] 1643 1644 Optional Packages: 1645 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1646 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1647 --with-data-model build 32-bit or 64-bit binaries (for platforms that 1648 support it), e.g. --with-data-model=32 [guessed] 1649 --with-num-cores number of cores in the build system, e.g. 1650 --with-num-cores=8 [probed] 1651 --with-memory-size memory (in MB) available in the build system, e.g. 1652 --with-memory-size=1024 [probed] 1653 --with-jdk-variant JDK variant to build (normal, embedded) [normal] 1654 --with-jvm-variants JVM variants (separated by commas) to build (server, 1655 client, kernel, zero, zeroshark) [server] 1656 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1657 [release] 1658 --with-msvcr100dll copy this msvcr100.dll into the built JDK 1659 --with-builddeps-conf use this configuration file for the builddeps 1660 --with-builddeps-server download and use build dependencies from this server 1661 url, e.g. 1662 --with-builddeps-server=ftp://example.com/dir 1663 --with-builddeps-dir store downloaded build dependencies here 1664 [d/localhome/builddeps] 1665 --with-builddeps-group chgrp the downloaded build dependencies to this 1666 group 1667 --with-sys-root pass this sys-root to the compilers and linker 1668 (useful if the sys-root encoded in the cross 1669 compiler tools is incorrect) 1670 --with-ccache-dir where to store ccache files [~/.ccache] 1671 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1672 --with-add-source-root for each and every source directory, look in this 1673 additional source root for the same directory; if it 1674 exists and have files in it, include it in the build 1675 --with-override-source-root 1676 for each and every source directory, look in this 1677 override source root for the same directory; if it 1678 exists, use that directory instead and ignore the 1679 directory in the original source root 1680 --with-adds-and-overrides 1681 use the subdirs 'adds' and 'overrides' in the 1682 specified directory as add-source-root and 1683 override-source-root 1684 --with-override-langtools 1685 use this langtools dir for the build 1686 --with-override-corba use this corba dir for the build 1687 --with-override-jaxp use this jaxp dir for the build 1688 --with-override-jaxws use this jaxws dir for the build 1689 --with-override-hotspot use this hotspot dir for the build 1690 --with-override-jdk use this jdk dir for the build 1691 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all 1692 invocations of the Boot JDK, overriding the default 1693 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1694 -enableassertions" 1695 --with-server-java use this java binary for running the javac 1696 background server and other long running java tasks 1697 in the build process, e.g. 1698 ---with-server-java="/opt/jrockit/bin/java -server" 1699 --with-javac-server-cores 1700 use at most this number of concurrent threads on the 1701 javac server [probed] 1702 --with-x use the X Window System 1703 --with-cups specify prefix directory for the cups package 1704 (expecting the libraries under PATH/lib and the 1705 headers under PATH/include) 1706 --with-cups-include specify directory for the cups include files 1707 --with-cups-lib specify directory for the cups library 1708 --with-freetype specify prefix directory for the freetype2 package 1709 (expecting the libraries under PATH/lib and the 1710 headers under PATH/include) 1711 --with-alsa specify prefix directory for the alsa package 1712 (expecting the libraries under PATH/lib and the 1713 headers under PATH/include) 1714 --with-alsa-include specify directory for the alsa include files 1715 --with-alsa-lib specify directory for the alsa library 1716 --with-pulse specify prefix directory for the pulseaudio package 1717 (expecting the libraries under PATH/lib and the 1718 headers under PATH/include) 1719 --with-pulse-include specify directory for the pulseaudio include files 1720 --with-pulse-lib specify directory for the pulseaudio library 1721 1722 Some influential environment variables: 1723 PKG_CONFIG path to pkg-config utility 1724 CC C compiler command 1725 CFLAGS C compiler flags 1726 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1727 nonstandard directory <lib dir> 1728 LIBS libraries to pass to the linker, e.g. -l<library> 1729 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1730 you have headers in a nonstandard directory <include dir> 1731 CXX C++ compiler command 1732 CXXFLAGS C++ compiler flags 1733 OBJC Objective C compiler command 1734 OBJCFLAGS Objective C compiler flags 1735 CPP C preprocessor 1736 CXXCPP C++ preprocessor 1737 XMKMF Path to xmkmf, Makefile generator for X Window System 1738 FREETYPE2_CFLAGS 1739 C compiler flags for FREETYPE2, overriding pkg-config 1740 FREETYPE2_LIBS 1741 linker flags for FREETYPE2, overriding pkg-config 1742 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 1743 ALSA_LIBS linker flags for ALSA, overriding pkg-config 1744 LIBPULSE_CFLAGS 1745 C compiler flags for LIBPULSE, overriding pkg-config 1746 LIBPULSE_LIBS 1747 linker flags for LIBPULSE, overriding pkg-config 1748 1749 Use these variables to override the choices made by `configure' or to help 1750 it to find libraries and programs with nonstandard names/locations. 1751 1752 Report bugs to <build-infra-dev@openjdk.java.net>. 1753 _ACEOF 1754 ac_status=$? 1755 fi 1756 1757 if test "$ac_init_help" = "recursive"; then 1758 # If there are subdirs, report their specific --help. 1759 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1760 test -d "$ac_dir" || 1761 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1762 continue 1763 ac_builddir=. 1764 1765 case "$ac_dir" in 1766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1767 *) 1768 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1769 # A ".." for each directory in $ac_dir_suffix. 1770 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1771 case $ac_top_builddir_sub in 1772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1774 esac ;; 1775 esac 1776 ac_abs_top_builddir=$ac_pwd 1777 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1778 # for backward compatibility: 1779 ac_top_builddir=$ac_top_build_prefix 1780 1781 case $srcdir in 1782 .) # We are building in place. 1783 ac_srcdir=. 1784 ac_top_srcdir=$ac_top_builddir_sub 1785 ac_abs_top_srcdir=$ac_pwd ;; 1786 [\\/]* | ?:[\\/]* ) # Absolute name. 1787 ac_srcdir=$srcdir$ac_dir_suffix; 1788 ac_top_srcdir=$srcdir 1789 ac_abs_top_srcdir=$srcdir ;; 1790 *) # Relative name. 1791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1792 ac_top_srcdir=$ac_top_build_prefix$srcdir 1793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1794 esac 1795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1796 1797 cd "$ac_dir" || { ac_status=$?; continue; } 1798 # Check for guested configure. 1799 if test -f "$ac_srcdir/configure.gnu"; then 1800 echo && 1801 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1802 elif test -f "$ac_srcdir/configure"; then 1803 echo && 1804 $SHELL "$ac_srcdir/configure" --help=recursive 1805 else 1806 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1807 fi || ac_status=$? 1808 cd "$ac_pwd" || { ac_status=$?; break; } 1809 done 1810 fi 1811 1812 test -n "$ac_init_help" && exit $ac_status 1813 if $ac_init_version; then 1814 cat <<\_ACEOF 1815 openjdk configure version-0.1 1816 generated by GNU Autoconf 2.67 1817 1818 Copyright (C) 2010 Free Software Foundation, Inc. 1819 This configure script is free software; the Free Software Foundation 1820 gives unlimited permission to copy, distribute and modify it. 1821 _ACEOF 1822 exit 1823 fi 1824 1825 ## ------------------------ ## 1826 ## Autoconf initialization. ## 1827 ## ------------------------ ## 1828 1829 # ac_fn_c_try_compile LINENO 1830 # -------------------------- 1831 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1832 ac_fn_c_try_compile () 1833 { 1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1835 rm -f conftest.$ac_objext 1836 if { { ac_try="$ac_compile" 1837 case "(($ac_try" in 1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1839 *) ac_try_echo=$ac_try;; 1840 esac 1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1842 $as_echo "$ac_try_echo"; } >&5 1843 (eval "$ac_compile") 2>conftest.err 1844 ac_status=$? 1845 if test -s conftest.err; then 1846 grep -v '^ *+' conftest.err >conftest.er1 1847 cat conftest.er1 >&5 1848 mv -f conftest.er1 conftest.err 1849 fi 1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1851 test $ac_status = 0; } && { 1852 test -z "$ac_c_werror_flag" || 1853 test ! -s conftest.err 1854 } && test -s conftest.$ac_objext; then : 1855 ac_retval=0 1856 else 1857 $as_echo "$as_me: failed program was:" >&5 1858 sed 's/^/| /' conftest.$ac_ext >&5 1859 1860 ac_retval=1 1861 fi 1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1863 as_fn_set_status $ac_retval 1864 1865 } # ac_fn_c_try_compile 1866 1867 # ac_fn_cxx_try_compile LINENO 1868 # ---------------------------- 1869 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1870 ac_fn_cxx_try_compile () 1871 { 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 rm -f conftest.$ac_objext 1874 if { { ac_try="$ac_compile" 1875 case "(($ac_try" in 1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1877 *) ac_try_echo=$ac_try;; 1878 esac 1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1880 $as_echo "$ac_try_echo"; } >&5 1881 (eval "$ac_compile") 2>conftest.err 1882 ac_status=$? 1883 if test -s conftest.err; then 1884 grep -v '^ *+' conftest.err >conftest.er1 1885 cat conftest.er1 >&5 1886 mv -f conftest.er1 conftest.err 1887 fi 1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1889 test $ac_status = 0; } && { 1890 test -z "$ac_cxx_werror_flag" || 1891 test ! -s conftest.err 1892 } && test -s conftest.$ac_objext; then : 1893 ac_retval=0 1894 else 1895 $as_echo "$as_me: failed program was:" >&5 1896 sed 's/^/| /' conftest.$ac_ext >&5 1897 1898 ac_retval=1 1899 fi 1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1901 as_fn_set_status $ac_retval 1902 1903 } # ac_fn_cxx_try_compile 1904 1905 # ac_fn_objc_try_compile LINENO 1906 # ----------------------------- 1907 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1908 ac_fn_objc_try_compile () 1909 { 1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1911 rm -f conftest.$ac_objext 1912 if { { ac_try="$ac_compile" 1913 case "(($ac_try" in 1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1915 *) ac_try_echo=$ac_try;; 1916 esac 1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1918 $as_echo "$ac_try_echo"; } >&5 1919 (eval "$ac_compile") 2>conftest.err 1920 ac_status=$? 1921 if test -s conftest.err; then 1922 grep -v '^ *+' conftest.err >conftest.er1 1923 cat conftest.er1 >&5 1924 mv -f conftest.er1 conftest.err 1925 fi 1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1927 test $ac_status = 0; } && { 1928 test -z "$ac_objc_werror_flag" || 1929 test ! -s conftest.err 1930 } && test -s conftest.$ac_objext; then : 1931 ac_retval=0 1932 else 1933 $as_echo "$as_me: failed program was:" >&5 1934 sed 's/^/| /' conftest.$ac_ext >&5 1935 1936 ac_retval=1 1937 fi 1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1939 as_fn_set_status $ac_retval 1940 1941 } # ac_fn_objc_try_compile 1942 1943 # ac_fn_c_try_cpp LINENO 1944 # ---------------------- 1945 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1946 ac_fn_c_try_cpp () 1947 { 1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1949 if { { ac_try="$ac_cpp conftest.$ac_ext" 1950 case "(($ac_try" in 1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1952 *) ac_try_echo=$ac_try;; 1953 esac 1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1955 $as_echo "$ac_try_echo"; } >&5 1956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1957 ac_status=$? 1958 if test -s conftest.err; then 1959 grep -v '^ *+' conftest.err >conftest.er1 1960 cat conftest.er1 >&5 1961 mv -f conftest.er1 conftest.err 1962 fi 1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1964 test $ac_status = 0; } > conftest.i && { 1965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1966 test ! -s conftest.err 1967 }; then : 1968 ac_retval=0 1969 else 1970 $as_echo "$as_me: failed program was:" >&5 1971 sed 's/^/| /' conftest.$ac_ext >&5 1972 1973 ac_retval=1 1974 fi 1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1976 as_fn_set_status $ac_retval 1977 1978 } # ac_fn_c_try_cpp 1979 1980 # ac_fn_cxx_try_cpp LINENO 1981 # ------------------------ 1982 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1983 ac_fn_cxx_try_cpp () 1984 { 1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1986 if { { ac_try="$ac_cpp conftest.$ac_ext" 1987 case "(($ac_try" in 1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1989 *) ac_try_echo=$ac_try;; 1990 esac 1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1992 $as_echo "$ac_try_echo"; } >&5 1993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1994 ac_status=$? 1995 if test -s conftest.err; then 1996 grep -v '^ *+' conftest.err >conftest.er1 1997 cat conftest.er1 >&5 1998 mv -f conftest.er1 conftest.err 1999 fi 2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2001 test $ac_status = 0; } > conftest.i && { 2002 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2003 test ! -s conftest.err 2004 }; then : 2005 ac_retval=0 2006 else 2007 $as_echo "$as_me: failed program was:" >&5 2008 sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=1 2011 fi 2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2013 as_fn_set_status $ac_retval 2014 2015 } # ac_fn_cxx_try_cpp 2016 2017 # ac_fn_cxx_try_link LINENO 2018 # ------------------------- 2019 # Try to link conftest.$ac_ext, and return whether this succeeded. 2020 ac_fn_cxx_try_link () 2021 { 2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2023 rm -f conftest.$ac_objext conftest$ac_exeext 2024 if { { ac_try="$ac_link" 2025 case "(($ac_try" in 2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2027 *) ac_try_echo=$ac_try;; 2028 esac 2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2030 $as_echo "$ac_try_echo"; } >&5 2031 (eval "$ac_link") 2>conftest.err 2032 ac_status=$? 2033 if test -s conftest.err; then 2034 grep -v '^ *+' conftest.err >conftest.er1 2035 cat conftest.er1 >&5 2036 mv -f conftest.er1 conftest.err 2037 fi 2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2039 test $ac_status = 0; } && { 2040 test -z "$ac_cxx_werror_flag" || 2041 test ! -s conftest.err 2042 } && test -s conftest$ac_exeext && { 2043 test "$cross_compiling" = yes || 2044 $as_test_x conftest$ac_exeext 2045 }; then : 2046 ac_retval=0 2047 else 2048 $as_echo "$as_me: failed program was:" >&5 2049 sed 's/^/| /' conftest.$ac_ext >&5 2050 2051 ac_retval=1 2052 fi 2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2055 # interfere with the next link command; also delete a directory that is 2056 # left behind by Apple's compiler. We do this before executing the actions. 2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2059 as_fn_set_status $ac_retval 2060 2061 } # ac_fn_cxx_try_link 2062 2063 # ac_fn_cxx_try_run LINENO 2064 # ------------------------ 2065 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2066 # that executables *can* be run. 2067 ac_fn_cxx_try_run () 2068 { 2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2070 if { { ac_try="$ac_link" 2071 case "(($ac_try" in 2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2073 *) ac_try_echo=$ac_try;; 2074 esac 2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2076 $as_echo "$ac_try_echo"; } >&5 2077 (eval "$ac_link") 2>&5 2078 ac_status=$? 2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2080 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2081 { { case "(($ac_try" in 2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2083 *) ac_try_echo=$ac_try;; 2084 esac 2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2086 $as_echo "$ac_try_echo"; } >&5 2087 (eval "$ac_try") 2>&5 2088 ac_status=$? 2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2090 test $ac_status = 0; }; }; then : 2091 ac_retval=0 2092 else 2093 $as_echo "$as_me: program exited with status $ac_status" >&5 2094 $as_echo "$as_me: failed program was:" >&5 2095 sed 's/^/| /' conftest.$ac_ext >&5 2096 2097 ac_retval=$ac_status 2098 fi 2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2101 as_fn_set_status $ac_retval 2102 2103 } # ac_fn_cxx_try_run 2104 2105 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2106 # ---------------------------------------------- 2107 # Tries to find the compile-time value of EXPR in a program that includes 2108 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2109 # computed 2110 ac_fn_cxx_compute_int () 2111 { 2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2113 if test "$cross_compiling" = yes; then 2114 # Depending upon the size, compute the lo and hi bounds. 2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2116 /* end confdefs.h. */ 2117 $4 2118 int 2119 main () 2120 { 2121 static int test_array [1 - 2 * !(($2) >= 0)]; 2122 test_array [0] = 0 2123 2124 ; 2125 return 0; 2126 } 2127 _ACEOF 2128 if ac_fn_cxx_try_compile "$LINENO"; then : 2129 ac_lo=0 ac_mid=0 2130 while :; do 2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2132 /* end confdefs.h. */ 2133 $4 2134 int 2135 main () 2136 { 2137 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2138 test_array [0] = 0 2139 2140 ; 2141 return 0; 2142 } 2143 _ACEOF 2144 if ac_fn_cxx_try_compile "$LINENO"; then : 2145 ac_hi=$ac_mid; break 2146 else 2147 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2148 if test $ac_lo -le $ac_mid; then 2149 ac_lo= ac_hi= 2150 break 2151 fi 2152 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2153 fi 2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2155 done 2156 else 2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2158 /* end confdefs.h. */ 2159 $4 2160 int 2161 main () 2162 { 2163 static int test_array [1 - 2 * !(($2) < 0)]; 2164 test_array [0] = 0 2165 2166 ; 2167 return 0; 2168 } 2169 _ACEOF 2170 if ac_fn_cxx_try_compile "$LINENO"; then : 2171 ac_hi=-1 ac_mid=-1 2172 while :; do 2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2174 /* end confdefs.h. */ 2175 $4 2176 int 2177 main () 2178 { 2179 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2180 test_array [0] = 0 2181 2182 ; 2183 return 0; 2184 } 2185 _ACEOF 2186 if ac_fn_cxx_try_compile "$LINENO"; then : 2187 ac_lo=$ac_mid; break 2188 else 2189 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2190 if test $ac_mid -le $ac_hi; then 2191 ac_lo= ac_hi= 2192 break 2193 fi 2194 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2195 fi 2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2197 done 2198 else 2199 ac_lo= ac_hi= 2200 fi 2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2202 fi 2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2204 # Binary search between lo and hi bounds. 2205 while test "x$ac_lo" != "x$ac_hi"; do 2206 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2208 /* end confdefs.h. */ 2209 $4 2210 int 2211 main () 2212 { 2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2214 test_array [0] = 0 2215 2216 ; 2217 return 0; 2218 } 2219 _ACEOF 2220 if ac_fn_cxx_try_compile "$LINENO"; then : 2221 ac_hi=$ac_mid 2222 else 2223 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2224 fi 2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2226 done 2227 case $ac_lo in #(( 2228 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2229 '') ac_retval=1 ;; 2230 esac 2231 else 2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2233 /* end confdefs.h. */ 2234 $4 2235 static long int longval () { return $2; } 2236 static unsigned long int ulongval () { return $2; } 2237 #include <stdio.h> 2238 #include <stdlib.h> 2239 int 2240 main () 2241 { 2242 2243 FILE *f = fopen ("conftest.val", "w"); 2244 if (! f) 2245 return 1; 2246 if (($2) < 0) 2247 { 2248 long int i = longval (); 2249 if (i != ($2)) 2250 return 1; 2251 fprintf (f, "%ld", i); 2252 } 2253 else 2254 { 2255 unsigned long int i = ulongval (); 2256 if (i != ($2)) 2257 return 1; 2258 fprintf (f, "%lu", i); 2259 } 2260 /* Do not output a trailing newline, as this causes \r\n confusion 2261 on some platforms. */ 2262 return ferror (f) || fclose (f) != 0; 2263 2264 ; 2265 return 0; 2266 } 2267 _ACEOF 2268 if ac_fn_cxx_try_run "$LINENO"; then : 2269 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2270 else 2271 ac_retval=1 2272 fi 2273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2274 conftest.$ac_objext conftest.beam conftest.$ac_ext 2275 rm -f conftest.val 2276 2277 fi 2278 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2279 as_fn_set_status $ac_retval 2280 2281 } # ac_fn_cxx_compute_int 2282 2283 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2284 # --------------------------------------------------------- 2285 # Tests whether HEADER exists and can be compiled using the include files in 2286 # INCLUDES, setting the cache variable VAR accordingly. 2287 ac_fn_cxx_check_header_compile () 2288 { 2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2291 $as_echo_n "checking for $2... " >&6; } 2292 if eval "test \"\${$3+set}\"" = set; then : 2293 $as_echo_n "(cached) " >&6 2294 else 2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2296 /* end confdefs.h. */ 2297 $4 2298 #include <$2> 2299 _ACEOF 2300 if ac_fn_cxx_try_compile "$LINENO"; then : 2301 eval "$3=yes" 2302 else 2303 eval "$3=no" 2304 fi 2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2306 fi 2307 eval ac_res=\$$3 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2309 $as_echo "$ac_res" >&6; } 2310 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2311 2312 } # ac_fn_cxx_check_header_compile 2313 2314 # ac_fn_cxx_check_func LINENO FUNC VAR 2315 # ------------------------------------ 2316 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2317 ac_fn_cxx_check_func () 2318 { 2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2321 $as_echo_n "checking for $2... " >&6; } 2322 if eval "test \"\${$3+set}\"" = set; then : 2323 $as_echo_n "(cached) " >&6 2324 else 2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2326 /* end confdefs.h. */ 2327 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2328 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2329 #define $2 innocuous_$2 2330 2331 /* System header to define __stub macros and hopefully few prototypes, 2332 which can conflict with char $2 (); below. 2333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2334 <limits.h> exists even on freestanding compilers. */ 2335 2336 #ifdef __STDC__ 2337 # include <limits.h> 2338 #else 2339 # include <assert.h> 2340 #endif 2341 2342 #undef $2 2343 2344 /* Override any GCC internal prototype to avoid an error. 2345 Use char because int might match the return type of a GCC 2346 builtin and then its argument prototype would still apply. */ 2347 #ifdef __cplusplus 2348 extern "C" 2349 #endif 2350 char $2 (); 2351 /* The GNU C library defines this for functions which it implements 2352 to always fail with ENOSYS. Some functions are actually named 2353 something starting with __ and the normal name is an alias. */ 2354 #if defined __stub_$2 || defined __stub___$2 2355 choke me 2356 #endif 2357 2358 int 2359 main () 2360 { 2361 return $2 (); 2362 ; 2363 return 0; 2364 } 2365 _ACEOF 2366 if ac_fn_cxx_try_link "$LINENO"; then : 2367 eval "$3=yes" 2368 else 2369 eval "$3=no" 2370 fi 2371 rm -f core conftest.err conftest.$ac_objext \ 2372 conftest$ac_exeext conftest.$ac_ext 2373 fi 2374 eval ac_res=\$$3 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2376 $as_echo "$ac_res" >&6; } 2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2378 2379 } # ac_fn_cxx_check_func 2380 2381 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2382 # ------------------------------------------------------- 2383 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2384 # the include files in INCLUDES and setting the cache variable VAR 2385 # accordingly. 2386 ac_fn_c_check_header_mongrel () 2387 { 2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2389 if eval "test \"\${$3+set}\"" = set; then : 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2391 $as_echo_n "checking for $2... " >&6; } 2392 if eval "test \"\${$3+set}\"" = set; then : 2393 $as_echo_n "(cached) " >&6 2394 fi 2395 eval ac_res=\$$3 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2397 $as_echo "$ac_res" >&6; } 2398 else 2399 # Is the header compilable? 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2401 $as_echo_n "checking $2 usability... " >&6; } 2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2403 /* end confdefs.h. */ 2404 $4 2405 #include <$2> 2406 _ACEOF 2407 if ac_fn_c_try_compile "$LINENO"; then : 2408 ac_header_compiler=yes 2409 else 2410 ac_header_compiler=no 2411 fi 2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2414 $as_echo "$ac_header_compiler" >&6; } 2415 2416 # Is the header present? 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2418 $as_echo_n "checking $2 presence... " >&6; } 2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2420 /* end confdefs.h. */ 2421 #include <$2> 2422 _ACEOF 2423 if ac_fn_c_try_cpp "$LINENO"; then : 2424 ac_header_preproc=yes 2425 else 2426 ac_header_preproc=no 2427 fi 2428 rm -f conftest.err conftest.i conftest.$ac_ext 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2430 $as_echo "$ac_header_preproc" >&6; } 2431 2432 # So? What about this header? 2433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2434 yes:no: ) 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2436 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2438 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2439 ;; 2440 no:yes:* ) 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2442 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2444 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2446 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2448 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2450 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2451 ( $as_echo "## ----------------------------------------------- ## 2452 ## Report this to build-infra-dev@openjdk.java.net ## 2453 ## ----------------------------------------------- ##" 2454 ) | sed "s/^/$as_me: WARNING: /" >&2 2455 ;; 2456 esac 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2458 $as_echo_n "checking for $2... " >&6; } 2459 if eval "test \"\${$3+set}\"" = set; then : 2460 $as_echo_n "(cached) " >&6 2461 else 2462 eval "$3=\$ac_header_compiler" 2463 fi 2464 eval ac_res=\$$3 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2466 $as_echo "$ac_res" >&6; } 2467 fi 2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2469 2470 } # ac_fn_c_check_header_mongrel 2471 2472 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2473 # --------------------------------------------------------- 2474 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2475 # the include files in INCLUDES and setting the cache variable VAR 2476 # accordingly. 2477 ac_fn_cxx_check_header_mongrel () 2478 { 2479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2480 if eval "test \"\${$3+set}\"" = set; then : 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2482 $as_echo_n "checking for $2... " >&6; } 2483 if eval "test \"\${$3+set}\"" = set; then : 2484 $as_echo_n "(cached) " >&6 2485 fi 2486 eval ac_res=\$$3 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2488 $as_echo "$ac_res" >&6; } 2489 else 2490 # Is the header compilable? 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2492 $as_echo_n "checking $2 usability... " >&6; } 2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2494 /* end confdefs.h. */ 2495 $4 2496 #include <$2> 2497 _ACEOF 2498 if ac_fn_cxx_try_compile "$LINENO"; then : 2499 ac_header_compiler=yes 2500 else 2501 ac_header_compiler=no 2502 fi 2503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2505 $as_echo "$ac_header_compiler" >&6; } 2506 2507 # Is the header present? 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2509 $as_echo_n "checking $2 presence... " >&6; } 2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2511 /* end confdefs.h. */ 2512 #include <$2> 2513 _ACEOF 2514 if ac_fn_cxx_try_cpp "$LINENO"; then : 2515 ac_header_preproc=yes 2516 else 2517 ac_header_preproc=no 2518 fi 2519 rm -f conftest.err conftest.i conftest.$ac_ext 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2521 $as_echo "$ac_header_preproc" >&6; } 2522 2523 # So? What about this header? 2524 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2525 yes:no: ) 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2527 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2529 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2530 ;; 2531 no:yes:* ) 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2533 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2535 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2537 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2539 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2541 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2542 ( $as_echo "## ----------------------------------------------- ## 2543 ## Report this to build-infra-dev@openjdk.java.net ## 2544 ## ----------------------------------------------- ##" 2545 ) | sed "s/^/$as_me: WARNING: /" >&2 2546 ;; 2547 esac 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2549 $as_echo_n "checking for $2... " >&6; } 2550 if eval "test \"\${$3+set}\"" = set; then : 2551 $as_echo_n "(cached) " >&6 2552 else 2553 eval "$3=\$ac_header_compiler" 2554 fi 2555 eval ac_res=\$$3 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2557 $as_echo "$ac_res" >&6; } 2558 fi 2559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2560 2561 } # ac_fn_cxx_check_header_mongrel 2562 cat >config.log <<_ACEOF 2563 This file contains any messages produced by compilers while 2564 running configure, to aid debugging if configure makes a mistake. 2565 2566 It was created by openjdk $as_me version-0.1, which was 2567 generated by GNU Autoconf 2.67. Invocation command line was 2568 2569 $ $0 $@ 2570 2571 _ACEOF 2572 exec 5>>config.log 2573 { 2574 cat <<_ASUNAME 2575 ## --------- ## 2576 ## Platform. ## 2577 ## --------- ## 2578 2579 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2580 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2581 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2582 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2583 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2584 2585 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2586 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2587 2588 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2589 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2590 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2591 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2592 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2593 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2594 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2595 2596 _ASUNAME 2597 2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2599 for as_dir in $PATH 2600 do 2601 IFS=$as_save_IFS 2602 test -z "$as_dir" && as_dir=. 2603 $as_echo "PATH: $as_dir" 2604 done 2605 IFS=$as_save_IFS 2606 2607 } >&5 2608 2609 cat >&5 <<_ACEOF 2610 2611 2612 ## ----------- ## 2613 ## Core tests. ## 2614 ## ----------- ## 2615 2616 _ACEOF 2617 2618 2619 # Keep a trace of the command line. 2620 # Strip out --no-create and --no-recursion so they do not pile up. 2621 # Strip out --silent because we don't want to record it for future runs. 2622 # Also quote any args containing shell meta-characters. 2623 # Make two passes to allow for proper duplicate-argument suppression. 2624 ac_configure_args= 2625 ac_configure_args0= 2626 ac_configure_args1= 2627 ac_must_keep_next=false 2628 for ac_pass in 1 2 2629 do 2630 for ac_arg 2631 do 2632 case $ac_arg in 2633 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2635 | -silent | --silent | --silen | --sile | --sil) 2636 continue ;; 2637 *\'*) 2638 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2639 esac 2640 case $ac_pass in 2641 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2642 2) 2643 as_fn_append ac_configure_args1 " '$ac_arg'" 2644 if test $ac_must_keep_next = true; then 2645 ac_must_keep_next=false # Got value, back to normal. 2646 else 2647 case $ac_arg in 2648 *=* | --config-cache | -C | -disable-* | --disable-* \ 2649 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2650 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2651 | -with-* | --with-* | -without-* | --without-* | --x) 2652 case "$ac_configure_args0 " in 2653 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2654 esac 2655 ;; 2656 -* ) ac_must_keep_next=true ;; 2657 esac 2658 fi 2659 as_fn_append ac_configure_args " '$ac_arg'" 2660 ;; 2661 esac 2662 done 2663 done 2664 { ac_configure_args0=; unset ac_configure_args0;} 2665 { ac_configure_args1=; unset ac_configure_args1;} 2666 2667 # When interrupted or exit'd, cleanup temporary files, and complete 2668 # config.log. We remove comments because anyway the quotes in there 2669 # would cause problems or look ugly. 2670 # WARNING: Use '\'' to represent an apostrophe within the trap. 2671 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2672 trap 'exit_status=$? 2673 # Save into config.log some information that might help in debugging. 2674 { 2675 echo 2676 2677 $as_echo "## ---------------- ## 2678 ## Cache variables. ## 2679 ## ---------------- ##" 2680 echo 2681 # The following way of writing the cache mishandles newlines in values, 2682 ( 2683 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2684 eval ac_val=\$$ac_var 2685 case $ac_val in #( 2686 *${as_nl}*) 2687 case $ac_var in #( 2688 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2689 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2690 esac 2691 case $ac_var in #( 2692 _ | IFS | as_nl) ;; #( 2693 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2694 *) { eval $ac_var=; unset $ac_var;} ;; 2695 esac ;; 2696 esac 2697 done 2698 (set) 2>&1 | 2699 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2700 *${as_nl}ac_space=\ *) 2701 sed -n \ 2702 "s/'\''/'\''\\\\'\'''\''/g; 2703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2704 ;; #( 2705 *) 2706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2707 ;; 2708 esac | 2709 sort 2710 ) 2711 echo 2712 2713 $as_echo "## ----------------- ## 2714 ## Output variables. ## 2715 ## ----------------- ##" 2716 echo 2717 for ac_var in $ac_subst_vars 2718 do 2719 eval ac_val=\$$ac_var 2720 case $ac_val in 2721 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2722 esac 2723 $as_echo "$ac_var='\''$ac_val'\''" 2724 done | sort 2725 echo 2726 2727 if test -n "$ac_subst_files"; then 2728 $as_echo "## ------------------- ## 2729 ## File substitutions. ## 2730 ## ------------------- ##" 2731 echo 2732 for ac_var in $ac_subst_files 2733 do 2734 eval ac_val=\$$ac_var 2735 case $ac_val in 2736 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2737 esac 2738 $as_echo "$ac_var='\''$ac_val'\''" 2739 done | sort 2740 echo 2741 fi 2742 2743 if test -s confdefs.h; then 2744 $as_echo "## ----------- ## 2745 ## confdefs.h. ## 2746 ## ----------- ##" 2747 echo 2748 cat confdefs.h 2749 echo 2750 fi 2751 test "$ac_signal" != 0 && 2752 $as_echo "$as_me: caught signal $ac_signal" 2753 $as_echo "$as_me: exit $exit_status" 2754 } >&5 2755 rm -f core *.core core.conftest.* && 2756 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2757 exit $exit_status 2758 ' 0 2759 for ac_signal in 1 2 13 15; do 2760 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2761 done 2762 ac_signal=0 2763 2764 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2765 rm -f -r conftest* confdefs.h 2766 2767 $as_echo "/* confdefs.h */" > confdefs.h 2768 2769 # Predefined preprocessor variables. 2770 2771 cat >>confdefs.h <<_ACEOF 2772 #define PACKAGE_NAME "$PACKAGE_NAME" 2773 _ACEOF 2774 2775 cat >>confdefs.h <<_ACEOF 2776 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2777 _ACEOF 2778 2779 cat >>confdefs.h <<_ACEOF 2780 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2781 _ACEOF 2782 2783 cat >>confdefs.h <<_ACEOF 2784 #define PACKAGE_STRING "$PACKAGE_STRING" 2785 _ACEOF 2786 2787 cat >>confdefs.h <<_ACEOF 2788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2789 _ACEOF 2790 2791 cat >>confdefs.h <<_ACEOF 2792 #define PACKAGE_URL "$PACKAGE_URL" 2793 _ACEOF 2794 2795 2796 # Let the site file select an alternate cache file if it wants to. 2797 # Prefer an explicitly selected file to automatically selected ones. 2798 ac_site_file1=NONE 2799 ac_site_file2=NONE 2800 if test -n "$CONFIG_SITE"; then 2801 # We do not want a PATH search for config.site. 2802 case $CONFIG_SITE in #(( 2803 -*) ac_site_file1=./$CONFIG_SITE;; 2804 */*) ac_site_file1=$CONFIG_SITE;; 2805 *) ac_site_file1=./$CONFIG_SITE;; 2806 esac 2807 elif test "x$prefix" != xNONE; then 2808 ac_site_file1=$prefix/share/config.site 2809 ac_site_file2=$prefix/etc/config.site 2810 else 2811 ac_site_file1=$ac_default_prefix/share/config.site 2812 ac_site_file2=$ac_default_prefix/etc/config.site 2813 fi 2814 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2815 do 2816 test "x$ac_site_file" = xNONE && continue 2817 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2819 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2820 sed 's/^/| /' "$ac_site_file" >&5 2821 . "$ac_site_file" \ 2822 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2824 as_fn_error $? "failed to load site script $ac_site_file 2825 See \`config.log' for more details" "$LINENO" 5 ; } 2826 fi 2827 done 2828 2829 if test -r "$cache_file"; then 2830 # Some versions of bash will fail to source /dev/null (special files 2831 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2832 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2834 $as_echo "$as_me: loading cache $cache_file" >&6;} 2835 case $cache_file in 2836 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2837 *) . "./$cache_file";; 2838 esac 2839 fi 2840 else 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2842 $as_echo "$as_me: creating cache $cache_file" >&6;} 2843 >$cache_file 2844 fi 2845 2846 # Check that the precious variables saved in the cache have kept the same 2847 # value. 2848 ac_cache_corrupted=false 2849 for ac_var in $ac_precious_vars; do 2850 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2851 eval ac_new_set=\$ac_env_${ac_var}_set 2852 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2853 eval ac_new_val=\$ac_env_${ac_var}_value 2854 case $ac_old_set,$ac_new_set in 2855 set,) 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2857 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2858 ac_cache_corrupted=: ;; 2859 ,set) 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2861 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2862 ac_cache_corrupted=: ;; 2863 ,);; 2864 *) 2865 if test "x$ac_old_val" != "x$ac_new_val"; then 2866 # differences in whitespace do not lead to failure. 2867 ac_old_val_w=`echo x $ac_old_val` 2868 ac_new_val_w=`echo x $ac_new_val` 2869 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2871 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2872 ac_cache_corrupted=: 2873 else 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2875 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2876 eval $ac_var=\$ac_old_val 2877 fi 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2879 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2881 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2882 fi;; 2883 esac 2884 # Pass precious variables to config.status. 2885 if test "$ac_new_set" = set; then 2886 case $ac_new_val in 2887 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2888 *) ac_arg=$ac_var=$ac_new_val ;; 2889 esac 2890 case " $ac_configure_args " in 2891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2892 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2893 esac 2894 fi 2895 done 2896 if $ac_cache_corrupted; then 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2900 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2901 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2902 fi 2903 ## -------------------- ## 2904 ## Main body of script. ## 2905 ## -------------------- ## 2906 2907 ac_ext=c 2908 ac_cpp='$CPP $CPPFLAGS' 2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2912 2913 2914 2915 ac_aux_dir= 2916 for ac_dir in build-aux "$srcdir"/build-aux; do 2917 if test -f "$ac_dir/install-sh"; then 2918 ac_aux_dir=$ac_dir 2919 ac_install_sh="$ac_aux_dir/install-sh -c" 2920 break 2921 elif test -f "$ac_dir/install.sh"; then 2922 ac_aux_dir=$ac_dir 2923 ac_install_sh="$ac_aux_dir/install.sh -c" 2924 break 2925 elif test -f "$ac_dir/shtool"; then 2926 ac_aux_dir=$ac_dir 2927 ac_install_sh="$ac_aux_dir/shtool install -c" 2928 break 2929 fi 2930 done 2931 if test -z "$ac_aux_dir"; then 2932 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2933 fi 2934 2935 # These three variables are undocumented and unsupported, 2936 # and are intended to be withdrawn in a future Autoconf release. 2937 # They can cause serious problems if a builder's source tree is in a directory 2938 # whose full name contains unusual characters. 2939 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2940 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2941 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2942 2943 2944 2945 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 2946 # 2947 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 2948 # 2949 # This program is free software; you can redistribute it and/or modify 2950 # it under the terms of the GNU General Public License as published by 2951 # the Free Software Foundation; either version 2 of the License, or 2952 # (at your option) any later version. 2953 # 2954 # This program is distributed in the hope that it will be useful, but 2955 # WITHOUT ANY WARRANTY; without even the implied warranty of 2956 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2957 # General Public License for more details. 2958 # 2959 # You should have received a copy of the GNU General Public License 2960 # along with this program; if not, write to the Free Software 2961 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 2962 # 2963 # As a special exception to the GNU General Public License, if you 2964 # distribute this file as part of a program that contains a 2965 # configuration script generated by Autoconf, you may include it under 2966 # the same distribution terms that you use for the rest of that program. 2967 2968 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 2969 # ---------------------------------- 2970 # PKG_PROG_PKG_CONFIG 2971 2972 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2973 # 2974 # Check to see whether a particular set of modules exists. Similar 2975 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 2976 # 2977 # 2978 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 2979 # this or PKG_CHECK_MODULES is called, or make sure to call 2980 # PKG_CHECK_EXISTS manually 2981 # -------------------------------------------------------------- 2982 2983 2984 2985 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 2986 # --------------------------------------------- 2987 # _PKG_CONFIG 2988 2989 # _PKG_SHORT_ERRORS_SUPPORTED 2990 # ----------------------------- 2991 # _PKG_SHORT_ERRORS_SUPPORTED 2992 2993 2994 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2995 # [ACTION-IF-NOT-FOUND]) 2996 # 2997 # 2998 # Note that if there is a possibility the first call to 2999 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3000 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3001 # 3002 # 3003 # -------------------------------------------------------------- 3004 # PKG_CHECK_MODULES 3005 3006 # 3007 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3008 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3009 # 3010 # This code is free software; you can redistribute it and/or modify it 3011 # under the terms of the GNU General Public License version 2 only, as 3012 # published by the Free Software Foundation. Oracle designates this 3013 # particular file as subject to the "Classpath" exception as provided 3014 # by Oracle in the LICENSE file that accompanied this code. 3015 # 3016 # This code is distributed in the hope that it will be useful, but WITHOUT 3017 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3018 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3019 # version 2 for more details (a copy is included in the LICENSE file that 3020 # accompanied this code). 3021 # 3022 # You should have received a copy of the GNU General Public License version 3023 # 2 along with this work; if not, write to the Free Software Foundation, 3024 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3025 # 3026 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3027 # or visit www.oracle.com if you need additional information or have any 3028 # questions. 3029 # 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 # 3041 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3042 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3043 # 3044 # This code is free software; you can redistribute it and/or modify it 3045 # under the terms of the GNU General Public License version 2 only, as 3046 # published by the Free Software Foundation. Oracle designates this 3047 # particular file as subject to the "Classpath" exception as provided 3048 # by Oracle in the LICENSE file that accompanied this code. 3049 # 3050 # This code is distributed in the hope that it will be useful, but WITHOUT 3051 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3052 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3053 # version 2 for more details (a copy is included in the LICENSE file that 3054 # accompanied this code). 3055 # 3056 # You should have received a copy of the GNU General Public License version 3057 # 2 along with this work; if not, write to the Free Software Foundation, 3058 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3059 # 3060 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3061 # or visit www.oracle.com if you need additional information or have any 3062 # questions. 3063 # 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 # Fixes paths on windows hosts to be mixed mode short. 3096 3097 3098 # 3099 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3100 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3101 # 3102 # This code is free software; you can redistribute it and/or modify it 3103 # under the terms of the GNU General Public License version 2 only, as 3104 # published by the Free Software Foundation. Oracle designates this 3105 # particular file as subject to the "Classpath" exception as provided 3106 # by Oracle in the LICENSE file that accompanied this code. 3107 # 3108 # This code is distributed in the hope that it will be useful, but WITHOUT 3109 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3110 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3111 # version 2 for more details (a copy is included in the LICENSE file that 3112 # accompanied this code). 3113 # 3114 # You should have received a copy of the GNU General Public License version 3115 # 2 along with this work; if not, write to the Free Software Foundation, 3116 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3117 # 3118 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3119 # or visit www.oracle.com if you need additional information or have any 3120 # questions. 3121 # 3122 3123 3124 3125 3126 3127 # 3128 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3129 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3130 # 3131 # This code is free software; you can redistribute it and/or modify it 3132 # under the terms of the GNU General Public License version 2 only, as 3133 # published by the Free Software Foundation. Oracle designates this 3134 # particular file as subject to the "Classpath" exception as provided 3135 # by Oracle in the LICENSE file that accompanied this code. 3136 # 3137 # This code is distributed in the hope that it will be useful, but WITHOUT 3138 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3139 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3140 # version 2 for more details (a copy is included in the LICENSE file that 3141 # accompanied this code). 3142 # 3143 # You should have received a copy of the GNU General Public License version 3144 # 2 along with this work; if not, write to the Free Software Foundation, 3145 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3146 # 3147 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3148 # or visit www.oracle.com if you need additional information or have any 3149 # questions. 3150 # 3151 3152 function help_on_build_dependency { 3153 # Print a helpful message on how to acquire the necessary build dependency. 3154 # $1 is the help tag: freetyp2, cups, pulse, alsa etc 3155 MISSING_DEPENDENCY=$1 3156 PKGHANDLER_COMMAND= 3157 3158 for ac_prog in apt-get yum port pkgutil pkgadd 3159 do 3160 # Extract the first word of "$ac_prog", so it can be a program name with args. 3161 set dummy $ac_prog; ac_word=$2 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3163 $as_echo_n "checking for $ac_word... " >&6; } 3164 if test "${ac_cv_prog_PKGHANDLER+set}" = set; then : 3165 $as_echo_n "(cached) " >&6 3166 else 3167 if test -n "$PKGHANDLER"; then 3168 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 3169 else 3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171 for as_dir in $PATH 3172 do 3173 IFS=$as_save_IFS 3174 test -z "$as_dir" && as_dir=. 3175 for ac_exec_ext in '' $ac_executable_extensions; do 3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3177 ac_cv_prog_PKGHANDLER="$ac_prog" 3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3179 break 2 3180 fi 3181 done 3182 done 3183 IFS=$as_save_IFS 3184 3185 fi 3186 fi 3187 PKGHANDLER=$ac_cv_prog_PKGHANDLER 3188 if test -n "$PKGHANDLER"; then 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 3190 $as_echo "$PKGHANDLER" >&6; } 3191 else 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3193 $as_echo "no" >&6; } 3194 fi 3195 3196 3197 test -n "$PKGHANDLER" && break 3198 done 3199 3200 3201 case $PKGHANDLER in 3202 apt-get) 3203 apt_help $MISSING_DEPENDENCY ;; 3204 yum) 3205 yum_help $MISSING_DEPENDENCY ;; 3206 port) 3207 port_help $MISSING_DEPENDENCY ;; 3208 pkgutil) 3209 pkgutil_help $MISSING_DEPENDENCY ;; 3210 pkgadd) 3211 pkgadd_help $MISSING_DEPENDENCY ;; 3212 * ) 3213 break ;; 3214 esac 3215 3216 if test "x$PKGHANDLER_COMMAND" != x; then 3217 HELP_MSG="Try running '$PKGHANDLER_COMMAND'." 3218 fi 3219 } 3220 3221 function apt_help { 3222 case $1 in 3223 devkit) 3224 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3225 openjdk) 3226 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3227 alsa) 3228 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3229 cups) 3230 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3231 freetype2) 3232 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3233 pulse) 3234 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3235 x11) 3236 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev" ;; 3237 ccache) 3238 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3239 * ) 3240 break ;; 3241 esac 3242 } 3243 3244 function yum_help { 3245 case $1 in 3246 devkit) 3247 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3248 openjdk) 3249 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3250 alsa) 3251 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3252 cups) 3253 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3254 freetype2) 3255 PKGHANDLER_COMMAND="sudo yum install freetype2-devel" ;; 3256 pulse) 3257 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3258 x11) 3259 PKGHANDLER_COMMAND="sudo yum install libXtst-devel" ;; 3260 ccache) 3261 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3262 * ) 3263 break ;; 3264 esac 3265 } 3266 3267 function port_help { 3268 PKGHANDLER_COMMAND="" 3269 } 3270 3271 function pkgutil_help { 3272 PKGHANDLER_COMMAND="" 3273 } 3274 3275 function pkgadd_help { 3276 PKGHANDLER_COMMAND="" 3277 } 3278 3279 3280 # Save the command line. Do this very early, before it is lost by calling autoconf macros. 3281 CONFIGURE_COMMAND_LINE="$@" 3282 3283 3284 # Locate the directory of this script. 3285 SCRIPT="$0" 3286 3287 if test "x$BUILD_OS" != xwindows; then 3288 # Follow a chain of symbolic links. Use readlink 3289 # where it exists, else fall back to horribly 3290 # complicated shell code. 3291 # Extract the first word of "readlink", so it can be a program name with args. 3292 set dummy readlink; ac_word=$2 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3294 $as_echo_n "checking for $ac_word... " >&6; } 3295 if test "${ac_cv_path_READLINK+set}" = set; then : 3296 $as_echo_n "(cached) " >&6 3297 else 3298 case $READLINK in 3299 [\\/]* | ?:[\\/]*) 3300 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 3301 ;; 3302 *) 3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3304 for as_dir in $PATH 3305 do 3306 IFS=$as_save_IFS 3307 test -z "$as_dir" && as_dir=. 3308 for ac_exec_ext in '' $ac_executable_extensions; do 3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3310 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3312 break 2 3313 fi 3314 done 3315 done 3316 IFS=$as_save_IFS 3317 3318 ;; 3319 esac 3320 fi 3321 READLINK=$ac_cv_path_READLINK 3322 if test -n "$READLINK"; then 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 3324 $as_echo "$READLINK" >&6; } 3325 else 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3327 $as_echo "no" >&6; } 3328 fi 3329 3330 3331 if test "x$READLINK_TESTED" != yes; then 3332 # On MacOSX there is a readlink tool with a different 3333 # purpose than the GNU readlink tool. Check the found readlink. 3334 ISGNU=`$READLINK --help 2>&1 | grep GNU` 3335 if test "x$ISGNU" = x; then 3336 # A readlink that we do not know how to use. 3337 # Are there other non-GNU readlinks out there? 3338 READLINK_TESTED=yes 3339 READLINK= 3340 fi 3341 fi 3342 3343 if test "x$READLINK" != x; then 3344 SCRIPT=`$READLINK -f $SCRIPT` 3345 else 3346 STARTDIR=$PWD 3347 COUNTER=0 3348 DIR=`dirname $SCRIPT` 3349 FIL=`basename $SCRIPT` 3350 while test $COUNTER -lt 20; do 3351 ISLINK=`ls -l $DIR/$FIL | grep '\->' | sed -e 's/.*-> \(.*\)/\1/'` 3352 if test "x$ISLINK" == x; then 3353 # This is not a symbolic link! We are done! 3354 break 3355 fi 3356 # The link might be relative! We have to use cd to travel safely. 3357 cd $DIR 3358 cd `dirname $ISLINK` 3359 DIR=`pwd` 3360 FIL=`basename $ISLINK` 3361 let COUNTER=COUNTER+1 3362 done 3363 cd $STARTDIR 3364 SCRIPT=$DIR/$FIL 3365 fi 3366 fi 3367 3368 AUTOCONF_DIR=`dirname $0` 3369 3370 # Start with tools that do not need have cross compilation support 3371 # and can be expected to be found in the default PATH. These tools are 3372 # used by configure. Nor are these tools expected to be found in the 3373 # devkit from the builddeps server either, since they are 3374 # needed to download the devkit. 3375 for ac_prog in gawk mawk nawk awk 3376 do 3377 # Extract the first word of "$ac_prog", so it can be a program name with args. 3378 set dummy $ac_prog; ac_word=$2 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3380 $as_echo_n "checking for $ac_word... " >&6; } 3381 if test "${ac_cv_prog_AWK+set}" = set; then : 3382 $as_echo_n "(cached) " >&6 3383 else 3384 if test -n "$AWK"; then 3385 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3386 else 3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3388 for as_dir in $PATH 3389 do 3390 IFS=$as_save_IFS 3391 test -z "$as_dir" && as_dir=. 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3394 ac_cv_prog_AWK="$ac_prog" 3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3396 break 2 3397 fi 3398 done 3399 done 3400 IFS=$as_save_IFS 3401 3402 fi 3403 fi 3404 AWK=$ac_cv_prog_AWK 3405 if test -n "$AWK"; then 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3407 $as_echo "$AWK" >&6; } 3408 else 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3410 $as_echo "no" >&6; } 3411 fi 3412 3413 3414 test -n "$AWK" && break 3415 done 3416 3417 3418 # Test that variable AWK is not empty. 3419 if test "" = "$AWK"; then as_fn_error $? "Could not find awk !" "$LINENO" 5 ; fi 3420 3421 # Extract the first word of "cat", so it can be a program name with args. 3422 set dummy cat; ac_word=$2 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3424 $as_echo_n "checking for $ac_word... " >&6; } 3425 if test "${ac_cv_path_CAT+set}" = set; then : 3426 $as_echo_n "(cached) " >&6 3427 else 3428 case $CAT in 3429 [\\/]* | ?:[\\/]*) 3430 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 3431 ;; 3432 *) 3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3434 for as_dir in $PATH 3435 do 3436 IFS=$as_save_IFS 3437 test -z "$as_dir" && as_dir=. 3438 for ac_exec_ext in '' $ac_executable_extensions; do 3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3440 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3442 break 2 3443 fi 3444 done 3445 done 3446 IFS=$as_save_IFS 3447 3448 ;; 3449 esac 3450 fi 3451 CAT=$ac_cv_path_CAT 3452 if test -n "$CAT"; then 3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 3454 $as_echo "$CAT" >&6; } 3455 else 3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3457 $as_echo "no" >&6; } 3458 fi 3459 3460 3461 3462 # Test that variable CAT is not empty. 3463 if test "" = "$CAT"; then as_fn_error $? "Could not find cat !" "$LINENO" 5 ; fi 3464 3465 # Extract the first word of "chmod", so it can be a program name with args. 3466 set dummy chmod; ac_word=$2 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3468 $as_echo_n "checking for $ac_word... " >&6; } 3469 if test "${ac_cv_path_CHMOD+set}" = set; then : 3470 $as_echo_n "(cached) " >&6 3471 else 3472 case $CHMOD in 3473 [\\/]* | ?:[\\/]*) 3474 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 3475 ;; 3476 *) 3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3478 for as_dir in $PATH 3479 do 3480 IFS=$as_save_IFS 3481 test -z "$as_dir" && as_dir=. 3482 for ac_exec_ext in '' $ac_executable_extensions; do 3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3484 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3486 break 2 3487 fi 3488 done 3489 done 3490 IFS=$as_save_IFS 3491 3492 ;; 3493 esac 3494 fi 3495 CHMOD=$ac_cv_path_CHMOD 3496 if test -n "$CHMOD"; then 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 3498 $as_echo "$CHMOD" >&6; } 3499 else 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501 $as_echo "no" >&6; } 3502 fi 3503 3504 3505 3506 # Test that variable CHMOD is not empty. 3507 if test "" = "$CHMOD"; then as_fn_error $? "Could not find chmod !" "$LINENO" 5 ; fi 3508 3509 # Extract the first word of "cp", so it can be a program name with args. 3510 set dummy cp; ac_word=$2 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3512 $as_echo_n "checking for $ac_word... " >&6; } 3513 if test "${ac_cv_path_CP+set}" = set; then : 3514 $as_echo_n "(cached) " >&6 3515 else 3516 case $CP in 3517 [\\/]* | ?:[\\/]*) 3518 ac_cv_path_CP="$CP" # Let the user override the test with a path. 3519 ;; 3520 *) 3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3522 for as_dir in $PATH 3523 do 3524 IFS=$as_save_IFS 3525 test -z "$as_dir" && as_dir=. 3526 for ac_exec_ext in '' $ac_executable_extensions; do 3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3528 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3530 break 2 3531 fi 3532 done 3533 done 3534 IFS=$as_save_IFS 3535 3536 ;; 3537 esac 3538 fi 3539 CP=$ac_cv_path_CP 3540 if test -n "$CP"; then 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 3542 $as_echo "$CP" >&6; } 3543 else 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3545 $as_echo "no" >&6; } 3546 fi 3547 3548 3549 3550 # Test that variable CP is not empty. 3551 if test "" = "$CP"; then as_fn_error $? "Could not find cp !" "$LINENO" 5 ; fi 3552 3553 # Extract the first word of "cpio", so it can be a program name with args. 3554 set dummy cpio; ac_word=$2 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3556 $as_echo_n "checking for $ac_word... " >&6; } 3557 if test "${ac_cv_path_CPIO+set}" = set; then : 3558 $as_echo_n "(cached) " >&6 3559 else 3560 case $CPIO in 3561 [\\/]* | ?:[\\/]*) 3562 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 3563 ;; 3564 *) 3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3566 for as_dir in $PATH 3567 do 3568 IFS=$as_save_IFS 3569 test -z "$as_dir" && as_dir=. 3570 for ac_exec_ext in '' $ac_executable_extensions; do 3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3572 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3574 break 2 3575 fi 3576 done 3577 done 3578 IFS=$as_save_IFS 3579 3580 ;; 3581 esac 3582 fi 3583 CPIO=$ac_cv_path_CPIO 3584 if test -n "$CPIO"; then 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 3586 $as_echo "$CPIO" >&6; } 3587 else 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3589 $as_echo "no" >&6; } 3590 fi 3591 3592 3593 3594 # Test that variable CPIO is not empty. 3595 if test "" = "$CPIO"; then as_fn_error $? "Could not find cpio !" "$LINENO" 5 ; fi 3596 3597 # Extract the first word of "cut", so it can be a program name with args. 3598 set dummy cut; ac_word=$2 3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3600 $as_echo_n "checking for $ac_word... " >&6; } 3601 if test "${ac_cv_path_CUT+set}" = set; then : 3602 $as_echo_n "(cached) " >&6 3603 else 3604 case $CUT in 3605 [\\/]* | ?:[\\/]*) 3606 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 3607 ;; 3608 *) 3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3610 for as_dir in $PATH 3611 do 3612 IFS=$as_save_IFS 3613 test -z "$as_dir" && as_dir=. 3614 for ac_exec_ext in '' $ac_executable_extensions; do 3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3616 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3618 break 2 3619 fi 3620 done 3621 done 3622 IFS=$as_save_IFS 3623 3624 ;; 3625 esac 3626 fi 3627 CUT=$ac_cv_path_CUT 3628 if test -n "$CUT"; then 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 3630 $as_echo "$CUT" >&6; } 3631 else 3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3633 $as_echo "no" >&6; } 3634 fi 3635 3636 3637 3638 # Test that variable CUT is not empty. 3639 if test "" = "$CUT"; then as_fn_error $? "Could not find cut !" "$LINENO" 5 ; fi 3640 3641 # Extract the first word of "date", so it can be a program name with args. 3642 set dummy date; ac_word=$2 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3644 $as_echo_n "checking for $ac_word... " >&6; } 3645 if test "${ac_cv_path_DATE+set}" = set; then : 3646 $as_echo_n "(cached) " >&6 3647 else 3648 case $DATE in 3649 [\\/]* | ?:[\\/]*) 3650 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 3651 ;; 3652 *) 3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3654 for as_dir in $PATH 3655 do 3656 IFS=$as_save_IFS 3657 test -z "$as_dir" && as_dir=. 3658 for ac_exec_ext in '' $ac_executable_extensions; do 3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3660 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3662 break 2 3663 fi 3664 done 3665 done 3666 IFS=$as_save_IFS 3667 3668 ;; 3669 esac 3670 fi 3671 DATE=$ac_cv_path_DATE 3672 if test -n "$DATE"; then 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 3674 $as_echo "$DATE" >&6; } 3675 else 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3677 $as_echo "no" >&6; } 3678 fi 3679 3680 3681 3682 # Test that variable DATE is not empty. 3683 if test "" = "$DATE"; then as_fn_error $? "Could not find date !" "$LINENO" 5 ; fi 3684 3685 # Extract the first word of "df", so it can be a program name with args. 3686 set dummy df; ac_word=$2 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3688 $as_echo_n "checking for $ac_word... " >&6; } 3689 if test "${ac_cv_path_DF+set}" = set; then : 3690 $as_echo_n "(cached) " >&6 3691 else 3692 case $DF in 3693 [\\/]* | ?:[\\/]*) 3694 ac_cv_path_DF="$DF" # Let the user override the test with a path. 3695 ;; 3696 *) 3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3698 for as_dir in $PATH 3699 do 3700 IFS=$as_save_IFS 3701 test -z "$as_dir" && as_dir=. 3702 for ac_exec_ext in '' $ac_executable_extensions; do 3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3704 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3706 break 2 3707 fi 3708 done 3709 done 3710 IFS=$as_save_IFS 3711 3712 ;; 3713 esac 3714 fi 3715 DF=$ac_cv_path_DF 3716 if test -n "$DF"; then 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 3718 $as_echo "$DF" >&6; } 3719 else 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3721 $as_echo "no" >&6; } 3722 fi 3723 3724 3725 3726 # Test that variable DF is not empty. 3727 if test "" = "$DF"; then as_fn_error $? "Could not find df !" "$LINENO" 5 ; fi 3728 3729 # Extract the first word of "diff", so it can be a program name with args. 3730 set dummy diff; ac_word=$2 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3732 $as_echo_n "checking for $ac_word... " >&6; } 3733 if test "${ac_cv_path_DIFF+set}" = set; then : 3734 $as_echo_n "(cached) " >&6 3735 else 3736 case $DIFF in 3737 [\\/]* | ?:[\\/]*) 3738 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 3739 ;; 3740 *) 3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3742 for as_dir in $PATH 3743 do 3744 IFS=$as_save_IFS 3745 test -z "$as_dir" && as_dir=. 3746 for ac_exec_ext in '' $ac_executable_extensions; do 3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3748 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3750 break 2 3751 fi 3752 done 3753 done 3754 IFS=$as_save_IFS 3755 3756 ;; 3757 esac 3758 fi 3759 DIFF=$ac_cv_path_DIFF 3760 if test -n "$DIFF"; then 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 3762 $as_echo "$DIFF" >&6; } 3763 else 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3765 $as_echo "no" >&6; } 3766 fi 3767 3768 3769 3770 # Test that variable DIFF is not empty. 3771 if test "" = "$DIFF"; then as_fn_error $? "Could not find diff !" "$LINENO" 5 ; fi 3772 3773 # Warning echo is really, really unportable!!!!! Different 3774 # behaviour in bash and dash and in a lot of other shells! 3775 # Use printf for serious work! 3776 # Extract the first word of "echo", so it can be a program name with args. 3777 set dummy echo; ac_word=$2 3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3779 $as_echo_n "checking for $ac_word... " >&6; } 3780 if test "${ac_cv_path_ECHO+set}" = set; then : 3781 $as_echo_n "(cached) " >&6 3782 else 3783 case $ECHO in 3784 [\\/]* | ?:[\\/]*) 3785 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 3786 ;; 3787 *) 3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3789 for as_dir in $PATH 3790 do 3791 IFS=$as_save_IFS 3792 test -z "$as_dir" && as_dir=. 3793 for ac_exec_ext in '' $ac_executable_extensions; do 3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3795 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3797 break 2 3798 fi 3799 done 3800 done 3801 IFS=$as_save_IFS 3802 3803 ;; 3804 esac 3805 fi 3806 ECHO=$ac_cv_path_ECHO 3807 if test -n "$ECHO"; then 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 3809 $as_echo "$ECHO" >&6; } 3810 else 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3812 $as_echo "no" >&6; } 3813 fi 3814 3815 3816 3817 # Test that variable ECHO is not empty. 3818 if test "" = "$ECHO"; then as_fn_error $? "Could not find echo !" "$LINENO" 5 ; fi 3819 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3821 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3822 if test "${ac_cv_path_GREP+set}" = set; then : 3823 $as_echo_n "(cached) " >&6 3824 else 3825 if test -z "$GREP"; then 3826 ac_path_GREP_found=false 3827 # Loop through the user's path and test for each of PROGNAME-LIST 3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3829 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3830 do 3831 IFS=$as_save_IFS 3832 test -z "$as_dir" && as_dir=. 3833 for ac_prog in grep ggrep; do 3834 for ac_exec_ext in '' $ac_executable_extensions; do 3835 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3836 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3837 # Check for GNU ac_path_GREP and select it if it is found. 3838 # Check for GNU $ac_path_GREP 3839 case `"$ac_path_GREP" --version 2>&1` in 3840 *GNU*) 3841 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3842 *) 3843 ac_count=0 3844 $as_echo_n 0123456789 >"conftest.in" 3845 while : 3846 do 3847 cat "conftest.in" "conftest.in" >"conftest.tmp" 3848 mv "conftest.tmp" "conftest.in" 3849 cp "conftest.in" "conftest.nl" 3850 $as_echo 'GREP' >> "conftest.nl" 3851 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3853 as_fn_arith $ac_count + 1 && ac_count=$as_val 3854 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3855 # Best one so far, save it but keep looking for a better one 3856 ac_cv_path_GREP="$ac_path_GREP" 3857 ac_path_GREP_max=$ac_count 3858 fi 3859 # 10*(2^10) chars as input seems more than enough 3860 test $ac_count -gt 10 && break 3861 done 3862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3863 esac 3864 3865 $ac_path_GREP_found && break 3 3866 done 3867 done 3868 done 3869 IFS=$as_save_IFS 3870 if test -z "$ac_cv_path_GREP"; then 3871 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3872 fi 3873 else 3874 ac_cv_path_GREP=$GREP 3875 fi 3876 3877 fi 3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3879 $as_echo "$ac_cv_path_GREP" >&6; } 3880 GREP="$ac_cv_path_GREP" 3881 3882 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3884 $as_echo_n "checking for egrep... " >&6; } 3885 if test "${ac_cv_path_EGREP+set}" = set; then : 3886 $as_echo_n "(cached) " >&6 3887 else 3888 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3889 then ac_cv_path_EGREP="$GREP -E" 3890 else 3891 if test -z "$EGREP"; then 3892 ac_path_EGREP_found=false 3893 # Loop through the user's path and test for each of PROGNAME-LIST 3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3896 do 3897 IFS=$as_save_IFS 3898 test -z "$as_dir" && as_dir=. 3899 for ac_prog in egrep; do 3900 for ac_exec_ext in '' $ac_executable_extensions; do 3901 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3902 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3903 # Check for GNU ac_path_EGREP and select it if it is found. 3904 # Check for GNU $ac_path_EGREP 3905 case `"$ac_path_EGREP" --version 2>&1` in 3906 *GNU*) 3907 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3908 *) 3909 ac_count=0 3910 $as_echo_n 0123456789 >"conftest.in" 3911 while : 3912 do 3913 cat "conftest.in" "conftest.in" >"conftest.tmp" 3914 mv "conftest.tmp" "conftest.in" 3915 cp "conftest.in" "conftest.nl" 3916 $as_echo 'EGREP' >> "conftest.nl" 3917 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3919 as_fn_arith $ac_count + 1 && ac_count=$as_val 3920 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3921 # Best one so far, save it but keep looking for a better one 3922 ac_cv_path_EGREP="$ac_path_EGREP" 3923 ac_path_EGREP_max=$ac_count 3924 fi 3925 # 10*(2^10) chars as input seems more than enough 3926 test $ac_count -gt 10 && break 3927 done 3928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3929 esac 3930 3931 $ac_path_EGREP_found && break 3 3932 done 3933 done 3934 done 3935 IFS=$as_save_IFS 3936 if test -z "$ac_cv_path_EGREP"; then 3937 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3938 fi 3939 else 3940 ac_cv_path_EGREP=$EGREP 3941 fi 3942 3943 fi 3944 fi 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3946 $as_echo "$ac_cv_path_EGREP" >&6; } 3947 EGREP="$ac_cv_path_EGREP" 3948 3949 3950 3951 # Test that variable EGREP is not empty. 3952 if test "" = "$EGREP"; then as_fn_error $? "Could not find egrep !" "$LINENO" 5 ; fi 3953 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3955 $as_echo_n "checking for fgrep... " >&6; } 3956 if test "${ac_cv_path_FGREP+set}" = set; then : 3957 $as_echo_n "(cached) " >&6 3958 else 3959 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3960 then ac_cv_path_FGREP="$GREP -F" 3961 else 3962 if test -z "$FGREP"; then 3963 ac_path_FGREP_found=false 3964 # Loop through the user's path and test for each of PROGNAME-LIST 3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3967 do 3968 IFS=$as_save_IFS 3969 test -z "$as_dir" && as_dir=. 3970 for ac_prog in fgrep; do 3971 for ac_exec_ext in '' $ac_executable_extensions; do 3972 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3973 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3974 # Check for GNU ac_path_FGREP and select it if it is found. 3975 # Check for GNU $ac_path_FGREP 3976 case `"$ac_path_FGREP" --version 2>&1` in 3977 *GNU*) 3978 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3979 *) 3980 ac_count=0 3981 $as_echo_n 0123456789 >"conftest.in" 3982 while : 3983 do 3984 cat "conftest.in" "conftest.in" >"conftest.tmp" 3985 mv "conftest.tmp" "conftest.in" 3986 cp "conftest.in" "conftest.nl" 3987 $as_echo 'FGREP' >> "conftest.nl" 3988 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3990 as_fn_arith $ac_count + 1 && ac_count=$as_val 3991 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3992 # Best one so far, save it but keep looking for a better one 3993 ac_cv_path_FGREP="$ac_path_FGREP" 3994 ac_path_FGREP_max=$ac_count 3995 fi 3996 # 10*(2^10) chars as input seems more than enough 3997 test $ac_count -gt 10 && break 3998 done 3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4000 esac 4001 4002 $ac_path_FGREP_found && break 3 4003 done 4004 done 4005 done 4006 IFS=$as_save_IFS 4007 if test -z "$ac_cv_path_FGREP"; then 4008 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4009 fi 4010 else 4011 ac_cv_path_FGREP=$FGREP 4012 fi 4013 4014 fi 4015 fi 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4017 $as_echo "$ac_cv_path_FGREP" >&6; } 4018 FGREP="$ac_cv_path_FGREP" 4019 4020 4021 4022 # Test that variable FGREP is not empty. 4023 if test "" = "$FGREP"; then as_fn_error $? "Could not find fgrep !" "$LINENO" 5 ; fi 4024 4025 4026 # Extract the first word of "find", so it can be a program name with args. 4027 set dummy find; ac_word=$2 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4029 $as_echo_n "checking for $ac_word... " >&6; } 4030 if test "${ac_cv_path_FIND+set}" = set; then : 4031 $as_echo_n "(cached) " >&6 4032 else 4033 case $FIND in 4034 [\\/]* | ?:[\\/]*) 4035 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 4036 ;; 4037 *) 4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4039 for as_dir in $PATH 4040 do 4041 IFS=$as_save_IFS 4042 test -z "$as_dir" && as_dir=. 4043 for ac_exec_ext in '' $ac_executable_extensions; do 4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4045 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4047 break 2 4048 fi 4049 done 4050 done 4051 IFS=$as_save_IFS 4052 4053 ;; 4054 esac 4055 fi 4056 FIND=$ac_cv_path_FIND 4057 if test -n "$FIND"; then 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 4059 $as_echo "$FIND" >&6; } 4060 else 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4062 $as_echo "no" >&6; } 4063 fi 4064 4065 4066 4067 # Test that variable FIND is not empty. 4068 if test "" = "$FIND"; then as_fn_error $? "Could not find find !" "$LINENO" 5 ; fi 4069 4070 4071 # Test if find supports -delete 4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 4073 $as_echo_n "checking if find supports -delete... " >&6; } 4074 FIND_DELETE="-delete" 4075 4076 DELETEDIR=`mktemp -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 4077 4078 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 4079 4080 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 4081 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 4082 # No, it does not. 4083 rm $DELETEDIR/TestIfFindSupportsDelete 4084 FIND_DELETE="-exec rm \{\} \+" 4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4086 $as_echo "no" >&6; } 4087 else 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4089 $as_echo "yes" >&6; } 4090 fi 4091 rmdir $DELETEDIR 4092 4093 4094 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4097 if test "${ac_cv_path_GREP+set}" = set; then : 4098 $as_echo_n "(cached) " >&6 4099 else 4100 if test -z "$GREP"; then 4101 ac_path_GREP_found=false 4102 # Loop through the user's path and test for each of PROGNAME-LIST 4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4105 do 4106 IFS=$as_save_IFS 4107 test -z "$as_dir" && as_dir=. 4108 for ac_prog in grep ggrep; do 4109 for ac_exec_ext in '' $ac_executable_extensions; do 4110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4112 # Check for GNU ac_path_GREP and select it if it is found. 4113 # Check for GNU $ac_path_GREP 4114 case `"$ac_path_GREP" --version 2>&1` in 4115 *GNU*) 4116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4117 *) 4118 ac_count=0 4119 $as_echo_n 0123456789 >"conftest.in" 4120 while : 4121 do 4122 cat "conftest.in" "conftest.in" >"conftest.tmp" 4123 mv "conftest.tmp" "conftest.in" 4124 cp "conftest.in" "conftest.nl" 4125 $as_echo 'GREP' >> "conftest.nl" 4126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4128 as_fn_arith $ac_count + 1 && ac_count=$as_val 4129 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4130 # Best one so far, save it but keep looking for a better one 4131 ac_cv_path_GREP="$ac_path_GREP" 4132 ac_path_GREP_max=$ac_count 4133 fi 4134 # 10*(2^10) chars as input seems more than enough 4135 test $ac_count -gt 10 && break 4136 done 4137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4138 esac 4139 4140 $ac_path_GREP_found && break 3 4141 done 4142 done 4143 done 4144 IFS=$as_save_IFS 4145 if test -z "$ac_cv_path_GREP"; then 4146 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4147 fi 4148 else 4149 ac_cv_path_GREP=$GREP 4150 fi 4151 4152 fi 4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4154 $as_echo "$ac_cv_path_GREP" >&6; } 4155 GREP="$ac_cv_path_GREP" 4156 4157 4158 4159 # Test that variable GREP is not empty. 4160 if test "" = "$GREP"; then as_fn_error $? "Could not find grep !" "$LINENO" 5 ; fi 4161 4162 # Extract the first word of "head", so it can be a program name with args. 4163 set dummy head; ac_word=$2 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4165 $as_echo_n "checking for $ac_word... " >&6; } 4166 if test "${ac_cv_path_HEAD+set}" = set; then : 4167 $as_echo_n "(cached) " >&6 4168 else 4169 case $HEAD in 4170 [\\/]* | ?:[\\/]*) 4171 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 4172 ;; 4173 *) 4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4175 for as_dir in $PATH 4176 do 4177 IFS=$as_save_IFS 4178 test -z "$as_dir" && as_dir=. 4179 for ac_exec_ext in '' $ac_executable_extensions; do 4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4181 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4183 break 2 4184 fi 4185 done 4186 done 4187 IFS=$as_save_IFS 4188 4189 ;; 4190 esac 4191 fi 4192 HEAD=$ac_cv_path_HEAD 4193 if test -n "$HEAD"; then 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 4195 $as_echo "$HEAD" >&6; } 4196 else 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4198 $as_echo "no" >&6; } 4199 fi 4200 4201 4202 4203 # Test that variable HEAD is not empty. 4204 if test "" = "$HEAD"; then as_fn_error $? "Could not find head !" "$LINENO" 5 ; fi 4205 4206 # Extract the first word of "ln", so it can be a program name with args. 4207 set dummy ln; ac_word=$2 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4209 $as_echo_n "checking for $ac_word... " >&6; } 4210 if test "${ac_cv_path_LN+set}" = set; then : 4211 $as_echo_n "(cached) " >&6 4212 else 4213 case $LN in 4214 [\\/]* | ?:[\\/]*) 4215 ac_cv_path_LN="$LN" # Let the user override the test with a path. 4216 ;; 4217 *) 4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4219 for as_dir in $PATH 4220 do 4221 IFS=$as_save_IFS 4222 test -z "$as_dir" && as_dir=. 4223 for ac_exec_ext in '' $ac_executable_extensions; do 4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4225 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4227 break 2 4228 fi 4229 done 4230 done 4231 IFS=$as_save_IFS 4232 4233 ;; 4234 esac 4235 fi 4236 LN=$ac_cv_path_LN 4237 if test -n "$LN"; then 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 4239 $as_echo "$LN" >&6; } 4240 else 4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4242 $as_echo "no" >&6; } 4243 fi 4244 4245 4246 4247 # Test that variable LN is not empty. 4248 if test "" = "$LN"; then as_fn_error $? "Could not find ln !" "$LINENO" 5 ; fi 4249 4250 # Extract the first word of "ls", so it can be a program name with args. 4251 set dummy ls; ac_word=$2 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4253 $as_echo_n "checking for $ac_word... " >&6; } 4254 if test "${ac_cv_path_LS+set}" = set; then : 4255 $as_echo_n "(cached) " >&6 4256 else 4257 case $LS in 4258 [\\/]* | ?:[\\/]*) 4259 ac_cv_path_LS="$LS" # Let the user override the test with a path. 4260 ;; 4261 *) 4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4263 for as_dir in $PATH 4264 do 4265 IFS=$as_save_IFS 4266 test -z "$as_dir" && as_dir=. 4267 for ac_exec_ext in '' $ac_executable_extensions; do 4268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4269 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4271 break 2 4272 fi 4273 done 4274 done 4275 IFS=$as_save_IFS 4276 4277 ;; 4278 esac 4279 fi 4280 LS=$ac_cv_path_LS 4281 if test -n "$LS"; then 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 4283 $as_echo "$LS" >&6; } 4284 else 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4286 $as_echo "no" >&6; } 4287 fi 4288 4289 4290 4291 # Test that variable LS is not empty. 4292 if test "" = "$LS"; then as_fn_error $? "Could not find ls !" "$LINENO" 5 ; fi 4293 4294 for ac_prog in gmake make 4295 do 4296 # Extract the first word of "$ac_prog", so it can be a program name with args. 4297 set dummy $ac_prog; ac_word=$2 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4299 $as_echo_n "checking for $ac_word... " >&6; } 4300 if test "${ac_cv_path_MAKE+set}" = set; then : 4301 $as_echo_n "(cached) " >&6 4302 else 4303 case $MAKE in 4304 [\\/]* | ?:[\\/]*) 4305 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 4306 ;; 4307 *) 4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4309 for as_dir in $PATH 4310 do 4311 IFS=$as_save_IFS 4312 test -z "$as_dir" && as_dir=. 4313 for ac_exec_ext in '' $ac_executable_extensions; do 4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4315 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4317 break 2 4318 fi 4319 done 4320 done 4321 IFS=$as_save_IFS 4322 4323 ;; 4324 esac 4325 fi 4326 MAKE=$ac_cv_path_MAKE 4327 if test -n "$MAKE"; then 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 4329 $as_echo "$MAKE" >&6; } 4330 else 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332 $as_echo "no" >&6; } 4333 fi 4334 4335 4336 test -n "$MAKE" && break 4337 done 4338 4339 4340 # Test that variable MAKE is not empty. 4341 if test "" = "$MAKE"; then as_fn_error $? "Could not find make !" "$LINENO" 5 ; fi 4342 4343 MAKE_VERSION=`$MAKE --version | head -n 1 | grep '3.8[12346789]'` 4344 if test "x$MAKE_VERSION" = x; then 4345 as_fn_error $? "You must use GNU make 3.81 or newer! Please put it in the path." "$LINENO" 5 4346 fi 4347 # Extract the first word of "mkdir", so it can be a program name with args. 4348 set dummy mkdir; ac_word=$2 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4350 $as_echo_n "checking for $ac_word... " >&6; } 4351 if test "${ac_cv_path_MKDIR+set}" = set; then : 4352 $as_echo_n "(cached) " >&6 4353 else 4354 case $MKDIR in 4355 [\\/]* | ?:[\\/]*) 4356 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 4357 ;; 4358 *) 4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4360 for as_dir in $PATH 4361 do 4362 IFS=$as_save_IFS 4363 test -z "$as_dir" && as_dir=. 4364 for ac_exec_ext in '' $ac_executable_extensions; do 4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4366 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4368 break 2 4369 fi 4370 done 4371 done 4372 IFS=$as_save_IFS 4373 4374 ;; 4375 esac 4376 fi 4377 MKDIR=$ac_cv_path_MKDIR 4378 if test -n "$MKDIR"; then 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 4380 $as_echo "$MKDIR" >&6; } 4381 else 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4383 $as_echo "no" >&6; } 4384 fi 4385 4386 4387 4388 # Test that variable MKDIR is not empty. 4389 if test "" = "$MKDIR"; then as_fn_error $? "Could not find mkdir !" "$LINENO" 5 ; fi 4390 4391 # Extract the first word of "mv", so it can be a program name with args. 4392 set dummy mv; ac_word=$2 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4394 $as_echo_n "checking for $ac_word... " >&6; } 4395 if test "${ac_cv_path_MV+set}" = set; then : 4396 $as_echo_n "(cached) " >&6 4397 else 4398 case $MV in 4399 [\\/]* | ?:[\\/]*) 4400 ac_cv_path_MV="$MV" # Let the user override the test with a path. 4401 ;; 4402 *) 4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4404 for as_dir in $PATH 4405 do 4406 IFS=$as_save_IFS 4407 test -z "$as_dir" && as_dir=. 4408 for ac_exec_ext in '' $ac_executable_extensions; do 4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4410 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4412 break 2 4413 fi 4414 done 4415 done 4416 IFS=$as_save_IFS 4417 4418 ;; 4419 esac 4420 fi 4421 MV=$ac_cv_path_MV 4422 if test -n "$MV"; then 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 4424 $as_echo "$MV" >&6; } 4425 else 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4427 $as_echo "no" >&6; } 4428 fi 4429 4430 4431 4432 # Test that variable MV is not empty. 4433 if test "" = "$MV"; then as_fn_error $? "Could not find mv !" "$LINENO" 5 ; fi 4434 4435 for ac_prog in nawk gawk awk 4436 do 4437 # Extract the first word of "$ac_prog", so it can be a program name with args. 4438 set dummy $ac_prog; ac_word=$2 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4440 $as_echo_n "checking for $ac_word... " >&6; } 4441 if test "${ac_cv_path_NAWK+set}" = set; then : 4442 $as_echo_n "(cached) " >&6 4443 else 4444 case $NAWK in 4445 [\\/]* | ?:[\\/]*) 4446 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 4447 ;; 4448 *) 4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4450 for as_dir in $PATH 4451 do 4452 IFS=$as_save_IFS 4453 test -z "$as_dir" && as_dir=. 4454 for ac_exec_ext in '' $ac_executable_extensions; do 4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4456 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4458 break 2 4459 fi 4460 done 4461 done 4462 IFS=$as_save_IFS 4463 4464 ;; 4465 esac 4466 fi 4467 NAWK=$ac_cv_path_NAWK 4468 if test -n "$NAWK"; then 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 4470 $as_echo "$NAWK" >&6; } 4471 else 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4473 $as_echo "no" >&6; } 4474 fi 4475 4476 4477 test -n "$NAWK" && break 4478 done 4479 4480 4481 # Test that variable NAWK is not empty. 4482 if test "" = "$NAWK"; then as_fn_error $? "Could not find nawk !" "$LINENO" 5 ; fi 4483 4484 # Extract the first word of "printf", so it can be a program name with args. 4485 set dummy printf; ac_word=$2 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4487 $as_echo_n "checking for $ac_word... " >&6; } 4488 if test "${ac_cv_path_PRINTF+set}" = set; then : 4489 $as_echo_n "(cached) " >&6 4490 else 4491 case $PRINTF in 4492 [\\/]* | ?:[\\/]*) 4493 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 4494 ;; 4495 *) 4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4497 for as_dir in $PATH 4498 do 4499 IFS=$as_save_IFS 4500 test -z "$as_dir" && as_dir=. 4501 for ac_exec_ext in '' $ac_executable_extensions; do 4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4503 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4505 break 2 4506 fi 4507 done 4508 done 4509 IFS=$as_save_IFS 4510 4511 ;; 4512 esac 4513 fi 4514 PRINTF=$ac_cv_path_PRINTF 4515 if test -n "$PRINTF"; then 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 4517 $as_echo "$PRINTF" >&6; } 4518 else 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4520 $as_echo "no" >&6; } 4521 fi 4522 4523 4524 4525 # Test that variable PRINTF is not empty. 4526 if test "" = "$PRINTF"; then as_fn_error $? "Could not find printf !" "$LINENO" 5 ; fi 4527 4528 # Extract the first word of "pwd", so it can be a program name with args. 4529 set dummy pwd; ac_word=$2 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4531 $as_echo_n "checking for $ac_word... " >&6; } 4532 if test "${ac_cv_path_THEPWDCMD+set}" = set; then : 4533 $as_echo_n "(cached) " >&6 4534 else 4535 case $THEPWDCMD in 4536 [\\/]* | ?:[\\/]*) 4537 ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path. 4538 ;; 4539 *) 4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4541 for as_dir in $PATH 4542 do 4543 IFS=$as_save_IFS 4544 test -z "$as_dir" && as_dir=. 4545 for ac_exec_ext in '' $ac_executable_extensions; do 4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4547 ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext" 4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4549 break 2 4550 fi 4551 done 4552 done 4553 IFS=$as_save_IFS 4554 4555 ;; 4556 esac 4557 fi 4558 THEPWDCMD=$ac_cv_path_THEPWDCMD 4559 if test -n "$THEPWDCMD"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THEPWDCMD" >&5 4561 $as_echo "$THEPWDCMD" >&6; } 4562 else 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4564 $as_echo "no" >&6; } 4565 fi 4566 4567 4568 # Extract the first word of "rm", so it can be a program name with args. 4569 set dummy rm; ac_word=$2 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4571 $as_echo_n "checking for $ac_word... " >&6; } 4572 if test "${ac_cv_path_RM+set}" = set; then : 4573 $as_echo_n "(cached) " >&6 4574 else 4575 case $RM in 4576 [\\/]* | ?:[\\/]*) 4577 ac_cv_path_RM="$RM" # Let the user override the test with a path. 4578 ;; 4579 *) 4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4581 for as_dir in $PATH 4582 do 4583 IFS=$as_save_IFS 4584 test -z "$as_dir" && as_dir=. 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4587 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4589 break 2 4590 fi 4591 done 4592 done 4593 IFS=$as_save_IFS 4594 4595 ;; 4596 esac 4597 fi 4598 RM=$ac_cv_path_RM 4599 if test -n "$RM"; then 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 4601 $as_echo "$RM" >&6; } 4602 else 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4604 $as_echo "no" >&6; } 4605 fi 4606 4607 4608 4609 # Test that variable RM is not empty. 4610 if test "" = "$RM"; then as_fn_error $? "Could not find rm !" "$LINENO" 5 ; fi 4611 4612 RM="$RM -f" 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4614 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4615 if test "${ac_cv_path_SED+set}" = set; then : 4616 $as_echo_n "(cached) " >&6 4617 else 4618 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4619 for ac_i in 1 2 3 4 5 6 7; do 4620 ac_script="$ac_script$as_nl$ac_script" 4621 done 4622 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4623 { ac_script=; unset ac_script;} 4624 if test -z "$SED"; then 4625 ac_path_SED_found=false 4626 # Loop through the user's path and test for each of PROGNAME-LIST 4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628 for as_dir in $PATH 4629 do 4630 IFS=$as_save_IFS 4631 test -z "$as_dir" && as_dir=. 4632 for ac_prog in sed gsed; do 4633 for ac_exec_ext in '' $ac_executable_extensions; do 4634 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4635 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4636 # Check for GNU ac_path_SED and select it if it is found. 4637 # Check for GNU $ac_path_SED 4638 case `"$ac_path_SED" --version 2>&1` in 4639 *GNU*) 4640 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4641 *) 4642 ac_count=0 4643 $as_echo_n 0123456789 >"conftest.in" 4644 while : 4645 do 4646 cat "conftest.in" "conftest.in" >"conftest.tmp" 4647 mv "conftest.tmp" "conftest.in" 4648 cp "conftest.in" "conftest.nl" 4649 $as_echo '' >> "conftest.nl" 4650 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4652 as_fn_arith $ac_count + 1 && ac_count=$as_val 4653 if test $ac_count -gt ${ac_path_SED_max-0}; then 4654 # Best one so far, save it but keep looking for a better one 4655 ac_cv_path_SED="$ac_path_SED" 4656 ac_path_SED_max=$ac_count 4657 fi 4658 # 10*(2^10) chars as input seems more than enough 4659 test $ac_count -gt 10 && break 4660 done 4661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4662 esac 4663 4664 $ac_path_SED_found && break 3 4665 done 4666 done 4667 done 4668 IFS=$as_save_IFS 4669 if test -z "$ac_cv_path_SED"; then 4670 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4671 fi 4672 else 4673 ac_cv_path_SED=$SED 4674 fi 4675 4676 fi 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4678 $as_echo "$ac_cv_path_SED" >&6; } 4679 SED="$ac_cv_path_SED" 4680 rm -f conftest.sed 4681 4682 4683 # Test that variable SED is not empty. 4684 if test "" = "$SED"; then as_fn_error $? "Could not find sed !" "$LINENO" 5 ; fi 4685 4686 # Extract the first word of "sh", so it can be a program name with args. 4687 set dummy sh; ac_word=$2 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4689 $as_echo_n "checking for $ac_word... " >&6; } 4690 if test "${ac_cv_path_SH+set}" = set; then : 4691 $as_echo_n "(cached) " >&6 4692 else 4693 case $SH in 4694 [\\/]* | ?:[\\/]*) 4695 ac_cv_path_SH="$SH" # Let the user override the test with a path. 4696 ;; 4697 *) 4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4699 for as_dir in $PATH 4700 do 4701 IFS=$as_save_IFS 4702 test -z "$as_dir" && as_dir=. 4703 for ac_exec_ext in '' $ac_executable_extensions; do 4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4705 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4707 break 2 4708 fi 4709 done 4710 done 4711 IFS=$as_save_IFS 4712 4713 ;; 4714 esac 4715 fi 4716 SH=$ac_cv_path_SH 4717 if test -n "$SH"; then 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 4719 $as_echo "$SH" >&6; } 4720 else 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4722 $as_echo "no" >&6; } 4723 fi 4724 4725 4726 4727 # Test that variable SH is not empty. 4728 if test "" = "$SH"; then as_fn_error $? "Could not find sh !" "$LINENO" 5 ; fi 4729 4730 # Extract the first word of "sort", so it can be a program name with args. 4731 set dummy sort; ac_word=$2 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4733 $as_echo_n "checking for $ac_word... " >&6; } 4734 if test "${ac_cv_path_SORT+set}" = set; then : 4735 $as_echo_n "(cached) " >&6 4736 else 4737 case $SORT in 4738 [\\/]* | ?:[\\/]*) 4739 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 4740 ;; 4741 *) 4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4743 for as_dir in $PATH 4744 do 4745 IFS=$as_save_IFS 4746 test -z "$as_dir" && as_dir=. 4747 for ac_exec_ext in '' $ac_executable_extensions; do 4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4749 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4751 break 2 4752 fi 4753 done 4754 done 4755 IFS=$as_save_IFS 4756 4757 ;; 4758 esac 4759 fi 4760 SORT=$ac_cv_path_SORT 4761 if test -n "$SORT"; then 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 4763 $as_echo "$SORT" >&6; } 4764 else 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4766 $as_echo "no" >&6; } 4767 fi 4768 4769 4770 4771 # Test that variable SORT is not empty. 4772 if test "" = "$SORT"; then as_fn_error $? "Could not find sort !" "$LINENO" 5 ; fi 4773 4774 # Extract the first word of "tar", so it can be a program name with args. 4775 set dummy tar; ac_word=$2 4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4777 $as_echo_n "checking for $ac_word... " >&6; } 4778 if test "${ac_cv_path_TAR+set}" = set; then : 4779 $as_echo_n "(cached) " >&6 4780 else 4781 case $TAR in 4782 [\\/]* | ?:[\\/]*) 4783 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 4784 ;; 4785 *) 4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4787 for as_dir in $PATH 4788 do 4789 IFS=$as_save_IFS 4790 test -z "$as_dir" && as_dir=. 4791 for ac_exec_ext in '' $ac_executable_extensions; do 4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4793 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4795 break 2 4796 fi 4797 done 4798 done 4799 IFS=$as_save_IFS 4800 4801 ;; 4802 esac 4803 fi 4804 TAR=$ac_cv_path_TAR 4805 if test -n "$TAR"; then 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 4807 $as_echo "$TAR" >&6; } 4808 else 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810 $as_echo "no" >&6; } 4811 fi 4812 4813 4814 4815 # Test that variable TAR is not empty. 4816 if test "" = "$TAR"; then as_fn_error $? "Could not find tar !" "$LINENO" 5 ; fi 4817 4818 # Extract the first word of "tail", so it can be a program name with args. 4819 set dummy tail; ac_word=$2 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4821 $as_echo_n "checking for $ac_word... " >&6; } 4822 if test "${ac_cv_path_TAIL+set}" = set; then : 4823 $as_echo_n "(cached) " >&6 4824 else 4825 case $TAIL in 4826 [\\/]* | ?:[\\/]*) 4827 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 4828 ;; 4829 *) 4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4831 for as_dir in $PATH 4832 do 4833 IFS=$as_save_IFS 4834 test -z "$as_dir" && as_dir=. 4835 for ac_exec_ext in '' $ac_executable_extensions; do 4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4837 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4839 break 2 4840 fi 4841 done 4842 done 4843 IFS=$as_save_IFS 4844 4845 ;; 4846 esac 4847 fi 4848 TAIL=$ac_cv_path_TAIL 4849 if test -n "$TAIL"; then 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 4851 $as_echo "$TAIL" >&6; } 4852 else 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854 $as_echo "no" >&6; } 4855 fi 4856 4857 4858 4859 # Test that variable TAIL is not empty. 4860 if test "" = "$TAIL"; then as_fn_error $? "Could not find tail !" "$LINENO" 5 ; fi 4861 4862 # Extract the first word of "tee", so it can be a program name with args. 4863 set dummy tee; ac_word=$2 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4865 $as_echo_n "checking for $ac_word... " >&6; } 4866 if test "${ac_cv_path_TEE+set}" = set; then : 4867 $as_echo_n "(cached) " >&6 4868 else 4869 case $TEE in 4870 [\\/]* | ?:[\\/]*) 4871 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 4872 ;; 4873 *) 4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4875 for as_dir in $PATH 4876 do 4877 IFS=$as_save_IFS 4878 test -z "$as_dir" && as_dir=. 4879 for ac_exec_ext in '' $ac_executable_extensions; do 4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4881 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4883 break 2 4884 fi 4885 done 4886 done 4887 IFS=$as_save_IFS 4888 4889 ;; 4890 esac 4891 fi 4892 TEE=$ac_cv_path_TEE 4893 if test -n "$TEE"; then 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 4895 $as_echo "$TEE" >&6; } 4896 else 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4898 $as_echo "no" >&6; } 4899 fi 4900 4901 4902 4903 # Test that variable TEE is not empty. 4904 if test "" = "$TEE"; then as_fn_error $? "Could not find tee !" "$LINENO" 5 ; fi 4905 4906 # Extract the first word of "tr", so it can be a program name with args. 4907 set dummy tr; ac_word=$2 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4909 $as_echo_n "checking for $ac_word... " >&6; } 4910 if test "${ac_cv_path_TR+set}" = set; then : 4911 $as_echo_n "(cached) " >&6 4912 else 4913 case $TR in 4914 [\\/]* | ?:[\\/]*) 4915 ac_cv_path_TR="$TR" # Let the user override the test with a path. 4916 ;; 4917 *) 4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4919 for as_dir in $PATH 4920 do 4921 IFS=$as_save_IFS 4922 test -z "$as_dir" && as_dir=. 4923 for ac_exec_ext in '' $ac_executable_extensions; do 4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4925 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4927 break 2 4928 fi 4929 done 4930 done 4931 IFS=$as_save_IFS 4932 4933 ;; 4934 esac 4935 fi 4936 TR=$ac_cv_path_TR 4937 if test -n "$TR"; then 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 4939 $as_echo "$TR" >&6; } 4940 else 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4942 $as_echo "no" >&6; } 4943 fi 4944 4945 4946 4947 # Test that variable TR is not empty. 4948 if test "" = "$TR"; then as_fn_error $? "Could not find tr !" "$LINENO" 5 ; fi 4949 4950 # Extract the first word of "touch", so it can be a program name with args. 4951 set dummy touch; ac_word=$2 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4953 $as_echo_n "checking for $ac_word... " >&6; } 4954 if test "${ac_cv_path_TOUCH+set}" = set; then : 4955 $as_echo_n "(cached) " >&6 4956 else 4957 case $TOUCH in 4958 [\\/]* | ?:[\\/]*) 4959 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 4960 ;; 4961 *) 4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4963 for as_dir in $PATH 4964 do 4965 IFS=$as_save_IFS 4966 test -z "$as_dir" && as_dir=. 4967 for ac_exec_ext in '' $ac_executable_extensions; do 4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4969 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4971 break 2 4972 fi 4973 done 4974 done 4975 IFS=$as_save_IFS 4976 4977 ;; 4978 esac 4979 fi 4980 TOUCH=$ac_cv_path_TOUCH 4981 if test -n "$TOUCH"; then 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 4983 $as_echo "$TOUCH" >&6; } 4984 else 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4986 $as_echo "no" >&6; } 4987 fi 4988 4989 4990 4991 # Test that variable TOUCH is not empty. 4992 if test "" = "$TOUCH"; then as_fn_error $? "Could not find touch !" "$LINENO" 5 ; fi 4993 4994 # Extract the first word of "wc", so it can be a program name with args. 4995 set dummy wc; ac_word=$2 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4997 $as_echo_n "checking for $ac_word... " >&6; } 4998 if test "${ac_cv_path_WC+set}" = set; then : 4999 $as_echo_n "(cached) " >&6 5000 else 5001 case $WC in 5002 [\\/]* | ?:[\\/]*) 5003 ac_cv_path_WC="$WC" # Let the user override the test with a path. 5004 ;; 5005 *) 5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5007 for as_dir in $PATH 5008 do 5009 IFS=$as_save_IFS 5010 test -z "$as_dir" && as_dir=. 5011 for ac_exec_ext in '' $ac_executable_extensions; do 5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5013 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5015 break 2 5016 fi 5017 done 5018 done 5019 IFS=$as_save_IFS 5020 5021 ;; 5022 esac 5023 fi 5024 WC=$ac_cv_path_WC 5025 if test -n "$WC"; then 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 5027 $as_echo "$WC" >&6; } 5028 else 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5030 $as_echo "no" >&6; } 5031 fi 5032 5033 5034 5035 # Test that variable WC is not empty. 5036 if test "" = "$WC"; then as_fn_error $? "Could not find wc !" "$LINENO" 5 ; fi 5037 5038 # Extract the first word of "xargs", so it can be a program name with args. 5039 set dummy xargs; ac_word=$2 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5041 $as_echo_n "checking for $ac_word... " >&6; } 5042 if test "${ac_cv_path_XARGS+set}" = set; then : 5043 $as_echo_n "(cached) " >&6 5044 else 5045 case $XARGS in 5046 [\\/]* | ?:[\\/]*) 5047 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 5048 ;; 5049 *) 5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5051 for as_dir in $PATH 5052 do 5053 IFS=$as_save_IFS 5054 test -z "$as_dir" && as_dir=. 5055 for ac_exec_ext in '' $ac_executable_extensions; do 5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5057 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5059 break 2 5060 fi 5061 done 5062 done 5063 IFS=$as_save_IFS 5064 5065 ;; 5066 esac 5067 fi 5068 XARGS=$ac_cv_path_XARGS 5069 if test -n "$XARGS"; then 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 5071 $as_echo "$XARGS" >&6; } 5072 else 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5074 $as_echo "no" >&6; } 5075 fi 5076 5077 5078 5079 # Test that variable XARGS is not empty. 5080 if test "" = "$XARGS"; then as_fn_error $? "Could not find xargs !" "$LINENO" 5 ; fi 5081 5082 # Extract the first word of "zip", so it can be a program name with args. 5083 set dummy zip; ac_word=$2 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5085 $as_echo_n "checking for $ac_word... " >&6; } 5086 if test "${ac_cv_path_ZIP+set}" = set; then : 5087 $as_echo_n "(cached) " >&6 5088 else 5089 case $ZIP in 5090 [\\/]* | ?:[\\/]*) 5091 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 5092 ;; 5093 *) 5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5095 for as_dir in $PATH 5096 do 5097 IFS=$as_save_IFS 5098 test -z "$as_dir" && as_dir=. 5099 for ac_exec_ext in '' $ac_executable_extensions; do 5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5101 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5103 break 2 5104 fi 5105 done 5106 done 5107 IFS=$as_save_IFS 5108 5109 ;; 5110 esac 5111 fi 5112 ZIP=$ac_cv_path_ZIP 5113 if test -n "$ZIP"; then 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 5115 $as_echo "$ZIP" >&6; } 5116 else 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5118 $as_echo "no" >&6; } 5119 fi 5120 5121 5122 5123 # Test that variable ZIP is not empty. 5124 if test "" = "$ZIP"; then as_fn_error $? "Could not find zip !" "$LINENO" 5 ; fi 5125 5126 # Extract the first word of "unzip", so it can be a program name with args. 5127 set dummy unzip; ac_word=$2 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5129 $as_echo_n "checking for $ac_word... " >&6; } 5130 if test "${ac_cv_path_UNZIP+set}" = set; then : 5131 $as_echo_n "(cached) " >&6 5132 else 5133 case $UNZIP in 5134 [\\/]* | ?:[\\/]*) 5135 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 5136 ;; 5137 *) 5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139 for as_dir in $PATH 5140 do 5141 IFS=$as_save_IFS 5142 test -z "$as_dir" && as_dir=. 5143 for ac_exec_ext in '' $ac_executable_extensions; do 5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5145 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5147 break 2 5148 fi 5149 done 5150 done 5151 IFS=$as_save_IFS 5152 5153 ;; 5154 esac 5155 fi 5156 UNZIP=$ac_cv_path_UNZIP 5157 if test -n "$UNZIP"; then 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 5159 $as_echo "$UNZIP" >&6; } 5160 else 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5162 $as_echo "no" >&6; } 5163 fi 5164 5165 5166 5167 # Test that variable UNZIP is not empty. 5168 if test "" = "$UNZIP"; then as_fn_error $? "Could not find unzip !" "$LINENO" 5 ; fi 5169 5170 # Extract the first word of "ldd", so it can be a program name with args. 5171 set dummy ldd; ac_word=$2 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5173 $as_echo_n "checking for $ac_word... " >&6; } 5174 if test "${ac_cv_path_LDD+set}" = set; then : 5175 $as_echo_n "(cached) " >&6 5176 else 5177 case $LDD in 5178 [\\/]* | ?:[\\/]*) 5179 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 5180 ;; 5181 *) 5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5183 for as_dir in $PATH 5184 do 5185 IFS=$as_save_IFS 5186 test -z "$as_dir" && as_dir=. 5187 for ac_exec_ext in '' $ac_executable_extensions; do 5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5189 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5191 break 2 5192 fi 5193 done 5194 done 5195 IFS=$as_save_IFS 5196 5197 ;; 5198 esac 5199 fi 5200 LDD=$ac_cv_path_LDD 5201 if test -n "$LDD"; then 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 5203 $as_echo "$LDD" >&6; } 5204 else 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5206 $as_echo "no" >&6; } 5207 fi 5208 5209 5210 if test "x$LDD" = "x"; then 5211 # List shared lib dependencies is used for 5212 # debug output and checking for forbidden dependencies. 5213 # We can build without it. 5214 LDD="true" 5215 fi 5216 # Extract the first word of "otool", so it can be a program name with args. 5217 set dummy otool; ac_word=$2 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5219 $as_echo_n "checking for $ac_word... " >&6; } 5220 if test "${ac_cv_path_OTOOL+set}" = set; then : 5221 $as_echo_n "(cached) " >&6 5222 else 5223 case $OTOOL in 5224 [\\/]* | ?:[\\/]*) 5225 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 5226 ;; 5227 *) 5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5229 for as_dir in $PATH 5230 do 5231 IFS=$as_save_IFS 5232 test -z "$as_dir" && as_dir=. 5233 for ac_exec_ext in '' $ac_executable_extensions; do 5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5235 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5237 break 2 5238 fi 5239 done 5240 done 5241 IFS=$as_save_IFS 5242 5243 ;; 5244 esac 5245 fi 5246 OTOOL=$ac_cv_path_OTOOL 5247 if test -n "$OTOOL"; then 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 5249 $as_echo "$OTOOL" >&6; } 5250 else 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5252 $as_echo "no" >&6; } 5253 fi 5254 5255 5256 if test "x$OTOOL" = "x"; then 5257 OTOOL="true" 5258 fi 5259 # Extract the first word of "readelf", so it can be a program name with args. 5260 set dummy readelf; ac_word=$2 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5262 $as_echo_n "checking for $ac_word... " >&6; } 5263 if test "${ac_cv_path_READELF+set}" = set; then : 5264 $as_echo_n "(cached) " >&6 5265 else 5266 case $READELF in 5267 [\\/]* | ?:[\\/]*) 5268 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 5269 ;; 5270 *) 5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5272 for as_dir in $PATH 5273 do 5274 IFS=$as_save_IFS 5275 test -z "$as_dir" && as_dir=. 5276 for ac_exec_ext in '' $ac_executable_extensions; do 5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5278 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5280 break 2 5281 fi 5282 done 5283 done 5284 IFS=$as_save_IFS 5285 5286 ;; 5287 esac 5288 fi 5289 READELF=$ac_cv_path_READELF 5290 if test -n "$READELF"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 5292 $as_echo "$READELF" >&6; } 5293 else 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295 $as_echo "no" >&6; } 5296 fi 5297 5298 5299 # Extract the first word of "expr", so it can be a program name with args. 5300 set dummy expr; ac_word=$2 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5302 $as_echo_n "checking for $ac_word... " >&6; } 5303 if test "${ac_cv_path_EXPR+set}" = set; then : 5304 $as_echo_n "(cached) " >&6 5305 else 5306 case $EXPR in 5307 [\\/]* | ?:[\\/]*) 5308 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 5309 ;; 5310 *) 5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5312 for as_dir in $PATH 5313 do 5314 IFS=$as_save_IFS 5315 test -z "$as_dir" && as_dir=. 5316 for ac_exec_ext in '' $ac_executable_extensions; do 5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5318 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5320 break 2 5321 fi 5322 done 5323 done 5324 IFS=$as_save_IFS 5325 5326 ;; 5327 esac 5328 fi 5329 EXPR=$ac_cv_path_EXPR 5330 if test -n "$EXPR"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 5332 $as_echo "$EXPR" >&6; } 5333 else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335 $as_echo "no" >&6; } 5336 fi 5337 5338 5339 5340 # Test that variable EXPR is not empty. 5341 if test "" = "$EXPR"; then as_fn_error $? "Could not find expr !" "$LINENO" 5 ; fi 5342 5343 # Extract the first word of "file", so it can be a program name with args. 5344 set dummy file; ac_word=$2 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5346 $as_echo_n "checking for $ac_word... " >&6; } 5347 if test "${ac_cv_path_FILE+set}" = set; then : 5348 $as_echo_n "(cached) " >&6 5349 else 5350 case $FILE in 5351 [\\/]* | ?:[\\/]*) 5352 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 5353 ;; 5354 *) 5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5356 for as_dir in $PATH 5357 do 5358 IFS=$as_save_IFS 5359 test -z "$as_dir" && as_dir=. 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5362 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366 done 5367 done 5368 IFS=$as_save_IFS 5369 5370 ;; 5371 esac 5372 fi 5373 FILE=$ac_cv_path_FILE 5374 if test -n "$FILE"; then 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 5376 $as_echo "$FILE" >&6; } 5377 else 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5379 $as_echo "no" >&6; } 5380 fi 5381 5382 5383 5384 # Test that variable FILE is not empty. 5385 if test "" = "$FILE"; then as_fn_error $? "Could not find file !" "$LINENO" 5 ; fi 5386 5387 # Figure out the build and host system. 5388 # Make sure we can run config.sub. 5389 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5390 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5391 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5393 $as_echo_n "checking build system type... " >&6; } 5394 if test "${ac_cv_build+set}" = set; then : 5395 $as_echo_n "(cached) " >&6 5396 else 5397 ac_build_alias=$build_alias 5398 test "x$ac_build_alias" = x && 5399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5400 test "x$ac_build_alias" = x && 5401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5402 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5404 5405 fi 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5407 $as_echo "$ac_cv_build" >&6; } 5408 case $ac_cv_build in 5409 *-*-*) ;; 5410 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 5411 esac 5412 build=$ac_cv_build 5413 ac_save_IFS=$IFS; IFS='-' 5414 set x $ac_cv_build 5415 shift 5416 build_cpu=$1 5417 build_vendor=$2 5418 shift; shift 5419 # Remember, the first character of IFS is used to create $*, 5420 # except with old shells: 5421 build_os=$* 5422 IFS=$ac_save_IFS 5423 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5424 5425 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5427 $as_echo_n "checking host system type... " >&6; } 5428 if test "${ac_cv_host+set}" = set; then : 5429 $as_echo_n "(cached) " >&6 5430 else 5431 if test "x$host_alias" = x; then 5432 ac_cv_host=$ac_cv_build 5433 else 5434 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5435 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5436 fi 5437 5438 fi 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5440 $as_echo "$ac_cv_host" >&6; } 5441 case $ac_cv_host in 5442 *-*-*) ;; 5443 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 5444 esac 5445 host=$ac_cv_host 5446 ac_save_IFS=$IFS; IFS='-' 5447 set x $ac_cv_host 5448 shift 5449 host_cpu=$1 5450 host_vendor=$2 5451 shift; shift 5452 # Remember, the first character of IFS is used to create $*, 5453 # except with old shells: 5454 host_os=$* 5455 IFS=$ac_save_IFS 5456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5457 5458 5459 5460 5461 # Check whether --with-data-model was given. 5462 if test "${with_data_model+set}" = set; then : 5463 withval=$with_data_model; 5464 fi 5465 5466 5467 if test "x$with_data_model" != x && \ 5468 test "x$with_data_model" != x32 && \ 5469 test "x$with_data_model" != x64 ; then 5470 as_fn_error $? "The data model can only be 32 or 64!" "$LINENO" 5 5471 fi 5472 # Translate the standard cpu-vendor-kernel-os quadruplets into 5473 # the new HOST_.... and BUILD_... and the legacy names used by 5474 # the openjdk build. 5475 # It uses $host_os $host_cpu $build_os $build_cpu and $with_data_model 5476 5477 # Expects $host_os $host_cpu $build_os and $build_cpu 5478 # and $with_data_model to have been setup! 5479 # 5480 # Translate the standard triplet(quadruplet) definition 5481 # of the host/build system into 5482 # HOST_OS=aix,bsd,hpux,linux,macosx,solaris,windows 5483 # HOST_OS_FAMILY=bsd,gnu,sysv,win32,wince 5484 # HOST_OS_API=posix,winapi 5485 # 5486 # HOST_CPU=ia32,x64,sparc,sparcv9,arm,arm64,ppc,ppc64 5487 # HOST_CPU_ARCH=x86,sparc,pcc,arm 5488 # HOST_CPU_BITS=32,64 5489 # HOST_CPU_ENDIAN=big,little 5490 # 5491 # The same values are setup for BUILD_... 5492 # 5493 # And the legacy variables, for controlling the old makefiles. 5494 # LEGACY_HOST_CPU1=i586,amd64,sparc,sparcv9,arm,arm64... 5495 # LEGACY_HOST_CPU2=i386,amd64,sparc,sparcv9,arm,arm64... 5496 # LEGACY_HOST_CPU3=sparcv9,amd64 (but only on solaris) 5497 # LEGACY_HOST_OS_API=solaris,windows 5498 # 5499 # We also copy the autoconf trip/quadruplet 5500 # verbatim to HOST and BUILD 5501 HOST=${host} 5502 5503 BUILD=${build} 5504 5505 5506 5507 5508 case "$host_os" in 5509 *linux*) 5510 VAR_OS=linux 5511 VAR_OS_API=posix 5512 VAR_OS_FAMILY=gnu 5513 ;; 5514 *solaris*) 5515 VAR_OS=solaris 5516 VAR_OS_API=posix 5517 VAR_OS_FAMILY=sysv 5518 ;; 5519 *darwin*) 5520 VAR_OS=macosx 5521 VAR_OS_API=posix 5522 VAR_OS_FAMILY=bsd 5523 ;; 5524 *bsd*) 5525 VAR_OS=bsd 5526 VAR_OS_API=posix 5527 VAR_OS_FAMILY=bsd 5528 ;; 5529 *cygwin*|*windows*) 5530 VAR_OS=windows 5531 VAR_OS_API=winapi 5532 VAR_OS_FAMILY=windows 5533 ;; 5534 *) 5535 as_fn_error $? "unsupported host operating system $host_os" "$LINENO" 5 5536 ;; 5537 esac 5538 5539 HOST_OS="$VAR_OS" 5540 HOST_OS_FAMILY="$VAR_OS_FAMILY" 5541 HOST_OS_API="$VAR_OS_API" 5542 5543 5544 5545 5546 5547 if test "x$HOST_OS_API" = xposix; then 5548 LEGACY_HOST_OS_API="solaris" 5549 fi 5550 if test "x$HOST_OS_API" = xwinapi; then 5551 LEGACY_HOST_OS_API="windows" 5552 fi 5553 5554 5555 5556 5557 # First argument is the cpu name from the trip/quad 5558 case "$host_cpu" in 5559 x86_64) 5560 VAR_CPU=x64 5561 VAR_CPU_ARCH=x86 5562 VAR_CPU_BITS=64 5563 VAR_CPU_ENDIAN=little 5564 VAR_LEGACY_CPU=amd64 5565 ;; 5566 i?86) 5567 VAR_CPU=ia32 5568 VAR_CPU_ARCH=x86 5569 VAR_CPU_BITS=32 5570 VAR_CPU_ENDIAN=little 5571 VAR_LEGACY_CPU=i586 5572 ;; 5573 alpha*) 5574 VAR_CPU=alpha 5575 VAR_CPU_ARCH=alpha 5576 VAR_CPU_BITS=64 5577 VAR_CPU_ENDIAN=big 5578 VAR_LEGACY_CPU=alpha 5579 ;; 5580 arm*) 5581 VAR_CPU=arm 5582 VAR_CPU_ARCH=arm 5583 VAR_CPU_BITS=3264 5584 VAR_CPU_ENDIAN=big 5585 VAR_LEGACY_CPU=arm 5586 ;; 5587 mips) 5588 VAR_CPU=mips 5589 VAR_CPU_ARCH=mips 5590 VAR_CPU_BITS=woot 5591 VAR_CPU_ENDIAN=woot 5592 VAR_LEGACY_CPU=mips 5593 ;; 5594 mipsel) 5595 VAR_CPU=mipsel 5596 VAR_CPU_ARCH=mips 5597 VAR_CPU_BITS=woot 5598 VAR_CPU_ENDIAN=woot 5599 VAR_LEGACY_CPU=mipsel 5600 ;; 5601 powerpc) 5602 VAR_CPU=ppc 5603 VAR_CPU_ARCH=ppc 5604 VAR_CPU_BITS=32 5605 VAR_CPU_ENDIAN=big 5606 VAR_LEGACY_CPU=ppc 5607 ;; 5608 powerpc64) 5609 VAR_CPU=ppc64 5610 VAR_CPU_ARCH=ppc 5611 VAR_CPU_BITS=64 5612 VAR_CPU_ENDIAN=32 5613 VAR_LEGACY_CPU=ppc64 5614 ;; 5615 sparc) 5616 VAR_CPU=sparc 5617 VAR_CPU_ARCH=sparc 5618 VAR_CPU_BITS=32 5619 VAR_CPU_ENDIAN=big 5620 VAR_LEGACY_CPU=sparc 5621 ;; 5622 sparc64) 5623 VAR_CPU=sparcv9 5624 VAR_CPU_ARCH=sparc 5625 VAR_CPU_BITS=64 5626 VAR_CPU_ENDIAN=big 5627 VAR_LEGACY_CPU=sparc_sparcv9 5628 ;; 5629 s390) 5630 VAR_CPU=s390 5631 VAR_CPU_ARCH=s390 5632 VAR_CPU_BITS=32 5633 VAR_CPU_ENDIAN=woot 5634 VAR_LEGACY_CPU=s390 5635 VAR_LEGACY_CPU=s390 5636 ;; 5637 s390x) 5638 VAR_CPU=s390x 5639 VAR_CPU_ARCH=s390 5640 VAR_CPU_BITS=64 5641 VAR_CPU_ENDIAN=woot 5642 VAR_LEGACY_CPU=s390x 5643 ;; 5644 *) 5645 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 5646 ;; 5647 esac 5648 5649 # Workaround cygwin not knowing about 64 bit. 5650 if test "x$VAR_OS" = "xwindows"; then 5651 if test "x$PROCESSOR_IDENTIFIER" != "x"; then 5652 PROC_ARCH=`echo $PROCESSOR_IDENTIFIER | $CUT -f1 -d' '` 5653 case "$PROC_ARCH" in 5654 intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64) 5655 VAR_CPU=x64 5656 VAR_CPU_BITS=64 5657 VAR_LEGACY_CPU=amd64 5658 ;; 5659 esac 5660 fi 5661 fi 5662 5663 if test "x$VAR_CPU_ARCH" = "xx86"; then 5664 if test "x$with_data_model" = "x64"; then 5665 VAR_CPU=x64 5666 VAR_CPU_BITS=64 5667 VAR_LEGACY_CPU=amd64 5668 fi 5669 if test "x$with_data_model" = "x32"; then 5670 VAR_CPU=ia32 5671 VAR_CPU_BITS=32 5672 VAR_LEGACY_CPU=i586 5673 fi 5674 fi 5675 5676 HOST_CPU="$VAR_CPU" 5677 HOST_CPU_ARCH="$VAR_CPU_ARCH" 5678 HOST_CPU_BITS="$VAR_CPU_BITS" 5679 HOST_CPU_ENDIAN="$VAR_CPU_ENDIAN" 5680 5681 5682 5683 5684 5685 5686 # Also store the legacy naming of the cpu. 5687 # Ie i586 and amd64 instead of ia32 and x64 5688 LEGACY_HOST_CPU1="$VAR_LEGACY_CPU" 5689 5690 5691 # And the second legacy naming of the cpu. 5692 # Ie i386 and amd64 instead of ia32 and x64. 5693 LEGACY_HOST_CPU2="$LEGACY_HOST_CPU1" 5694 if test "x$LEGACY_HOST_CPU1" = xi586; then 5695 LEGACY_HOST_CPU2=i386 5696 fi 5697 5698 5699 # And the third legacy naming of the cpu. 5700 # Ie only amd64 or sparcv9, used for the ISA_DIR on Solaris. 5701 LEGACY_HOST_CPU3="" 5702 if test "x$HOST_CPU" = xx64; then 5703 LEGACY_HOST_CPU3=amd64 5704 fi 5705 if test "x$HOST_CPU" = xsparcv9; then 5706 LEGACY_HOST_CPU3=sparvc9 5707 fi 5708 5709 5710 5711 5712 5713 case "$build_os" in 5714 *linux*) 5715 VAR_OS=linux 5716 VAR_OS_API=posix 5717 VAR_OS_FAMILY=gnu 5718 ;; 5719 *solaris*) 5720 VAR_OS=solaris 5721 VAR_OS_API=posix 5722 VAR_OS_FAMILY=sysv 5723 ;; 5724 *darwin*) 5725 VAR_OS=macosx 5726 VAR_OS_API=posix 5727 VAR_OS_FAMILY=bsd 5728 ;; 5729 *bsd*) 5730 VAR_OS=bsd 5731 VAR_OS_API=posix 5732 VAR_OS_FAMILY=bsd 5733 ;; 5734 *cygwin*|*windows*) 5735 VAR_OS=windows 5736 VAR_OS_API=winapi 5737 VAR_OS_FAMILY=windows 5738 ;; 5739 *) 5740 as_fn_error $? "unsupported host operating system $build_os" "$LINENO" 5 5741 ;; 5742 esac 5743 5744 BUILD_OS="$VAR_OS" 5745 BUILD_OS_FAMILY="$VAR_OS_FAMILY" 5746 BUILD_OS_API="$VAR_OS_API" 5747 5748 5749 5750 5751 5752 if test "x$BUILD_OS_API" = xposix; then 5753 LEGACY_BUILD_OS_API="solaris" 5754 fi 5755 if test "x$BUILD_OS_API" = xwinapi; then 5756 LEGACY_BUILD_OS_API="windows" 5757 fi 5758 5759 5760 5761 5762 # First argument is the cpu name from the trip/quad 5763 case "$build_cpu" in 5764 x86_64) 5765 VAR_CPU=x64 5766 VAR_CPU_ARCH=x86 5767 VAR_CPU_BITS=64 5768 VAR_CPU_ENDIAN=little 5769 VAR_LEGACY_CPU=amd64 5770 ;; 5771 i?86) 5772 VAR_CPU=ia32 5773 VAR_CPU_ARCH=x86 5774 VAR_CPU_BITS=32 5775 VAR_CPU_ENDIAN=little 5776 VAR_LEGACY_CPU=i586 5777 ;; 5778 alpha*) 5779 VAR_CPU=alpha 5780 VAR_CPU_ARCH=alpha 5781 VAR_CPU_BITS=64 5782 VAR_CPU_ENDIAN=big 5783 VAR_LEGACY_CPU=alpha 5784 ;; 5785 arm*) 5786 VAR_CPU=arm 5787 VAR_CPU_ARCH=arm 5788 VAR_CPU_BITS=3264 5789 VAR_CPU_ENDIAN=big 5790 VAR_LEGACY_CPU=arm 5791 ;; 5792 mips) 5793 VAR_CPU=mips 5794 VAR_CPU_ARCH=mips 5795 VAR_CPU_BITS=woot 5796 VAR_CPU_ENDIAN=woot 5797 VAR_LEGACY_CPU=mips 5798 ;; 5799 mipsel) 5800 VAR_CPU=mipsel 5801 VAR_CPU_ARCH=mips 5802 VAR_CPU_BITS=woot 5803 VAR_CPU_ENDIAN=woot 5804 VAR_LEGACY_CPU=mipsel 5805 ;; 5806 powerpc) 5807 VAR_CPU=ppc 5808 VAR_CPU_ARCH=ppc 5809 VAR_CPU_BITS=32 5810 VAR_CPU_ENDIAN=big 5811 VAR_LEGACY_CPU=ppc 5812 ;; 5813 powerpc64) 5814 VAR_CPU=ppc64 5815 VAR_CPU_ARCH=ppc 5816 VAR_CPU_BITS=64 5817 VAR_CPU_ENDIAN=32 5818 VAR_LEGACY_CPU=ppc64 5819 ;; 5820 sparc) 5821 VAR_CPU=sparc 5822 VAR_CPU_ARCH=sparc 5823 VAR_CPU_BITS=32 5824 VAR_CPU_ENDIAN=big 5825 VAR_LEGACY_CPU=sparc 5826 ;; 5827 sparc64) 5828 VAR_CPU=sparcv9 5829 VAR_CPU_ARCH=sparc 5830 VAR_CPU_BITS=64 5831 VAR_CPU_ENDIAN=big 5832 VAR_LEGACY_CPU=sparc_sparcv9 5833 ;; 5834 s390) 5835 VAR_CPU=s390 5836 VAR_CPU_ARCH=s390 5837 VAR_CPU_BITS=32 5838 VAR_CPU_ENDIAN=woot 5839 VAR_LEGACY_CPU=s390 5840 VAR_LEGACY_CPU=s390 5841 ;; 5842 s390x) 5843 VAR_CPU=s390x 5844 VAR_CPU_ARCH=s390 5845 VAR_CPU_BITS=64 5846 VAR_CPU_ENDIAN=woot 5847 VAR_LEGACY_CPU=s390x 5848 ;; 5849 *) 5850 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 5851 ;; 5852 esac 5853 5854 # Workaround cygwin not knowing about 64 bit. 5855 if test "x$VAR_OS" = "xwindows"; then 5856 if test "x$PROCESSOR_IDENTIFIER" != "x"; then 5857 PROC_ARCH=`echo $PROCESSOR_IDENTIFIER | $CUT -f1 -d' '` 5858 case "$PROC_ARCH" in 5859 intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64) 5860 VAR_CPU=x64 5861 VAR_CPU_BITS=64 5862 VAR_LEGACY_CPU=amd64 5863 ;; 5864 esac 5865 fi 5866 fi 5867 5868 if test "x$VAR_CPU_ARCH" = "xx86"; then 5869 if test "x$with_data_model" = "x64"; then 5870 VAR_CPU=x64 5871 VAR_CPU_BITS=64 5872 VAR_LEGACY_CPU=amd64 5873 fi 5874 if test "x$with_data_model" = "x32"; then 5875 VAR_CPU=ia32 5876 VAR_CPU_BITS=32 5877 VAR_LEGACY_CPU=i586 5878 fi 5879 fi 5880 5881 BUILD_CPU="$VAR_CPU" 5882 BUILD_CPU_ARCH="$VAR_CPU_ARCH" 5883 BUILD_CPU_BITS="$VAR_CPU_BITS" 5884 BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 5885 5886 5887 5888 5889 5890 5891 # Also store the legacy naming of the cpu. 5892 # Ie i586 and amd64 instead of ia32 and x64 5893 LEGACY_BUILD_CPU1="$VAR_LEGACY_CPU" 5894 5895 5896 # And the second legacy naming of the cpu. 5897 # Ie i386 and amd64 instead of ia32 and x64. 5898 LEGACY_BUILD_CPU2="$LEGACY_BUILD_CPU1" 5899 if test "x$LEGACY_BUILD_CPU1" = xi586; then 5900 LEGACY_BUILD_CPU2=i386 5901 fi 5902 5903 5904 # And the third legacy naming of the cpu. 5905 # Ie only amd64 or sparcv9, used for the ISA_DIR on Solaris. 5906 LEGACY_BUILD_CPU3="" 5907 if test "x$BUILD_CPU" = xx64; then 5908 LEGACY_BUILD_CPU3=amd64 5909 fi 5910 if test "x$BUILD_CPU" = xsparcv9; then 5911 LEGACY_BUILD_CPU3=sparvc9 5912 fi 5913 5914 5915 5916 if test "x$HOST_OS" != xsolaris; then 5917 LEGACY_HOST_CPU3="" 5918 LEGACY_BUILD_CPU3="" 5919 fi 5920 5921 # Now the following vars are defined. 5922 # HOST_OS=aix,bsd,hpux,linux,macosx,solaris,windows 5923 # HOST_OS_FAMILY=bsd,gnu,sysv,win32,wince 5924 # HOST_OS_API=posix,winapi 5925 # 5926 # HOST_CPU=ia32,x64,sparc,sparcv9,arm,arm64,ppc,ppc64 5927 # HOST_CPU_ARCH=x86,sparc,pcc,arm 5928 # HOST_CPU_BITS=32,64 5929 # HOST_CPU_ENDIAN=big,little 5930 # 5931 # There is also a: 5932 # LEGACY_HOST_CPU1=i586,amd64,.... # used to set the old var ARCH 5933 # LEGACY_HOST_CPU2=i386,amd64,.... # used to set the old var LIBARCH 5934 # LEGACY_HOST_CPU3=only sparcv9,amd64 # used to set the ISA_DIR on Solaris 5935 # There was also a BUILDARCH that had i486,amd64,... but we do not use that 5936 # in the new build. 5937 # LEGACY_HOST_OS_API=solaris,windows # used to select source roots 5938 5939 DATE_WHEN_CONFIGURED=`LANG=C date` 5940 5941 5942 # How many cores do we have on this build system? 5943 5944 # Check whether --with-num-cores was given. 5945 if test "${with_num_cores+set}" = set; then : 5946 withval=$with_num_cores; 5947 fi 5948 5949 if test "x$with_num_cores" = x; then 5950 # The number of cores were not specified, try to probe them. 5951 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 5953 $as_echo_n "checking for number of cores... " >&6; } 5954 NUM_CORES=1 5955 FOUND_CORES=no 5956 5957 if test -f /proc/cpuinfo; then 5958 # Looks like a Linux system 5959 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 5960 FOUND_CORES=yes 5961 fi 5962 5963 if test -x /usr/sbin/psrinfo; then 5964 # Looks like a Solaris system 5965 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 5966 FOUND_CORES=yes 5967 fi 5968 5969 if test -x /usr/sbin/system_profiler; then 5970 # Looks like a MacOSX system 5971 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 5972 FOUND_CORES=yes 5973 fi 5974 5975 if test "x$build_os" = xwindows; then 5976 NUM_CORES=4 5977 fi 5978 5979 # For c/c++ code we run twice as many concurrent build 5980 # jobs than we have cores, otherwise we will stall on io. 5981 CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2` 5982 5983 if test "x$FOUND_CORES" = xyes; then 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 5985 $as_echo "$NUM_CORES" >&6; } 5986 else 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1!" >&5 5988 $as_echo "could not detect number of cores, defaulting to 1!" >&6; } 5989 fi 5990 5991 5992 else 5993 NUM_CORES=$with_num_cores 5994 CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2` 5995 fi 5996 5997 5998 5999 # How many cores do we have on this build system? 6000 6001 # Check whether --with-memory-size was given. 6002 if test "${with_memory_size+set}" = set; then : 6003 withval=$with_memory_size; 6004 fi 6005 6006 if test "x$with_memory_size" = x; then 6007 # The memory size was not specified, try to probe it. 6008 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 6010 $as_echo_n "checking for memory size... " >&6; } 6011 # Default to 1024MB 6012 MEMORY_SIZE=1024 6013 FOUND_MEM=no 6014 6015 if test -f /proc/cpuinfo; then 6016 # Looks like a Linux system 6017 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 6018 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 6019 FOUND_MEM=yes 6020 fi 6021 6022 if test -x /usr/sbin/prtconf; then 6023 # Looks like a Solaris system 6024 MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print $3 }'` 6025 FOUND_MEM=yes 6026 fi 6027 6028 if test -x /usr/sbin/system_profiler; then 6029 # Looks like a MacOSX system 6030 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 6031 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 6032 FOUND_MEM=yes 6033 fi 6034 6035 if test "x$build_os" = xwindows; then 6036 MEMORY_SIZE=`systeminfo | grep 'Total Physical Memory:' | awk '{ print $4 }' | sed 's/,//'` 6037 FOUND_MEM=yes 6038 fi 6039 6040 if test "x$FOUND_MEM" = xyes; then 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 6042 $as_echo "$MEMORY_SIZE MB" >&6; } 6043 else 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size defaulting to 1024MB!" >&5 6045 $as_echo "could not detect memory size defaulting to 1024MB!" >&6; } 6046 fi 6047 6048 else 6049 MEMORY_SIZE=$with_memory_size 6050 fi 6051 6052 6053 # Where is the source? It is located two levels above the configure script. 6054 CURDIR="$PWD" 6055 cd "$AUTOCONF_DIR/../.." 6056 SRC_ROOT="`pwd`" 6057 6058 cd "$CURDIR" 6059 6060 # For cygwin we need cygpath first, since it is used everywhere. 6061 # Extract the first word of "cygpath", so it can be a program name with args. 6062 set dummy cygpath; ac_word=$2 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6064 $as_echo_n "checking for $ac_word... " >&6; } 6065 if test "${ac_cv_path_CYGPATH+set}" = set; then : 6066 $as_echo_n "(cached) " >&6 6067 else 6068 case $CYGPATH in 6069 [\\/]* | ?:[\\/]*) 6070 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 6071 ;; 6072 *) 6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6074 for as_dir in $PATH 6075 do 6076 IFS=$as_save_IFS 6077 test -z "$as_dir" && as_dir=. 6078 for ac_exec_ext in '' $ac_executable_extensions; do 6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6080 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6082 break 2 6083 fi 6084 done 6085 done 6086 IFS=$as_save_IFS 6087 6088 ;; 6089 esac 6090 fi 6091 CYGPATH=$ac_cv_path_CYGPATH 6092 if test -n "$CYGPATH"; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 6094 $as_echo "$CYGPATH" >&6; } 6095 else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6097 $as_echo "no" >&6; } 6098 fi 6099 6100 6101 PATH_SEP=":" 6102 if test "x$BUILD_OS" = "xwindows"; then 6103 if test "x$CYGPATH" = x; then 6104 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 6105 fi 6106 PATH_SEP=";" 6107 fi 6108 6109 6110 6111 # Fail with message the path to the source root if var SRC_ROOT contains a path with no spaces in it. 6112 # Unless on Windows, where we can rewrite the path. 6113 HAS_SPACE=`echo "$SRC_ROOT" | grep " "` 6114 if test "x$HAS_SPACE" != x; then 6115 if test "x$BUILD_OS" = "xwindows"; then 6116 SRC_ROOT=`$CYGPATH -s -m -a "$SRC_ROOT"` 6117 SRC_ROOT=`$CYGPATH -u "$SRC_ROOT"` 6118 else 6119 as_fn_error $? "You cannot have spaces in the path to the source root! \"$SRC_ROOT\"" "$LINENO" 5 6120 fi 6121 fi 6122 6123 6124 # Fail with message the path to the current directory if var CURDIR contains a path with no spaces in it. 6125 # Unless on Windows, where we can rewrite the path. 6126 HAS_SPACE=`echo "$CURDIR" | grep " "` 6127 if test "x$HAS_SPACE" != x; then 6128 if test "x$BUILD_OS" = "xwindows"; then 6129 CURDIR=`$CYGPATH -s -m -a "$CURDIR"` 6130 CURDIR=`$CYGPATH -u "$CURDIR"` 6131 else 6132 as_fn_error $? "You cannot have spaces in the path to the current directory! \"$CURDIR\"" "$LINENO" 5 6133 fi 6134 fi 6135 6136 6137 if test "x$BUILD_OS" = "xsolaris"; then 6138 # Also search in /usr/ccs/bin for utilities like ar and as. 6139 PATH="/usr/ccs/bin:$PATH" 6140 fi 6141 6142 ############################################################################### 6143 # 6144 # OpenJDK or closed 6145 # 6146 # Check whether --enable-openjdk was given. 6147 if test "${enable_openjdk+set}" = set; then : 6148 enableval=$enable_openjdk; 6149 fi 6150 6151 6152 if test "x$enable_openjdk" = "xyes"; then 6153 OPENJDK=true 6154 elif test "x$enable_openjdk" = "xno"; then 6155 OPENJDK=false 6156 elif test -d "$SRC_ROOT/jdk/src/closed"; then 6157 OPENJDK=false 6158 else 6159 OPENJDK=true 6160 fi 6161 6162 if test "x$OPENJDK" = "xtrue"; then 6163 SET_OPENJDK=OPENJDK=true 6164 fi 6165 6166 6167 6168 ############################################################################### 6169 # 6170 # JIGSAW or not. The JIGSAW variable is used during the intermediate 6171 # stage when we are building both the old style JDK and the new style modularized JDK. 6172 # When the modularized JDK is finalized, this option will go away. 6173 # 6174 # Check whether --enable-jigsaw was given. 6175 if test "${enable_jigsaw+set}" = set; then : 6176 enableval=$enable_jigsaw; 6177 fi 6178 6179 6180 if test "x$enable_jigsaw" = "xyes"; then 6181 JIGSAW=true 6182 else 6183 JIGSAW=false 6184 fi 6185 6186 6187 ############################################################################### 6188 # 6189 # Check which variant of the JDK that we want to build. 6190 # Currently we have: 6191 # normal: standard edition 6192 # embedded: cut down to a smaller footprint 6193 # 6194 # Effectively the JDK variant gives a name to a specific set of 6195 # modules to compile into the JDK. In the future, these modules 6196 # might even be Jigsaw modules. 6197 # 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 6199 $as_echo_n "checking which variant of the JDK to build... " >&6; } 6200 6201 # Check whether --with-jdk-variant was given. 6202 if test "${with_jdk_variant+set}" = set; then : 6203 withval=$with_jdk_variant; 6204 fi 6205 6206 6207 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 6208 JAVASE_EMBEDDED="" 6209 MINIMIZE_RAM_USAGE="" 6210 JDK_VARIANT="normal" 6211 elif test "x$with_jdk_variant" = xembedded; then 6212 JAVASE_EMBEDDED="JAVASE_EMBEDDED:=true" 6213 MINIMIZE_RAM_USAGE="MINIMIZE_RAM_USAGE:=true" 6214 JDK_VARIANT="embedded" 6215 else 6216 as_fn_error $? "The available JDK variants are: normal, embedded" "$LINENO" 5 6217 fi 6218 6219 6220 6221 6222 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 6224 $as_echo "$JDK_VARIANT" >&6; } 6225 6226 ############################################################################### 6227 # 6228 # Should we build a JDK/JVM with head support (ie a graphical ui)? 6229 # We always build headless support. 6230 # 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 6232 $as_echo_n "checking headful support... " >&6; } 6233 # Check whether --enable-headful was given. 6234 if test "${enable_headful+set}" = set; then : 6235 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 6236 else 6237 SUPPORT_HEADFUL=yes 6238 fi 6239 6240 6241 SUPPORT_HEADLESS=yes 6242 BUILD_HEADLESS="BUILD_HEADLESS:=true" 6243 6244 if test "x$SUPPORT_HEADFUL" = xyes; then 6245 # We are building both headful and headless. 6246 BUILD_HEADLESS_ONLY="" 6247 headful_msg="inlude support for both headful and headless" 6248 fi 6249 6250 if test "x$SUPPORT_HEADFUL" = xno; then 6251 # Thus we are building headless only. 6252 BUILD_HEADLESS="BUILD_HEADLESS:=true" 6253 BUILD_HEADLESS_ONLY="BUILD_HEADLESS_ONLY:=true" 6254 headful_msg="headless only" 6255 fi 6256 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 6258 $as_echo "$headful_msg" >&6; } 6259 6260 6261 6262 6263 6264 6265 ############################################################################### 6266 # 6267 # Check which variants of the JVM that we want to build. 6268 # Currently we have: 6269 # server: normal interpreter and a tiered C1/C2 compiler 6270 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 6271 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 6272 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 6273 # zero: no machine code interpreter, no compiler 6274 # zeroshark: zero interpreter and shark/llvm compiler backend 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM that should be built" >&5 6276 $as_echo_n "checking which variants of the JVM that should be built... " >&6; } 6277 6278 # Check whether --with-jvm-variants was given. 6279 if test "${with_jvm_variants+set}" = set; then : 6280 withval=$with_jvm_variants; 6281 fi 6282 6283 6284 if test "x$with_jvm_variants" = x; then 6285 if test "x$JDK_VARIANT" = xembedded; then 6286 with_jvm_variants="kernel" 6287 elif test "x$HOST_CPU_BITS" = x64; then 6288 with_jvm_variants="server" 6289 else 6290 # Yes, on 32-bit machines, the same source (almost) is compiled twice 6291 # to generate two libjvm.so files. Fun, fun. 6292 with_jvm_variants="client,server" 6293 fi 6294 fi 6295 6296 JVM_VARIANTS=",$with_jvm_variants," 6297 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//'` 6298 6299 if test "x$TEST_VARIANTS" != "x,"; then 6300 as_fn_error $? "The available JVM variants are: server, client, kernel, zero, zeroshark" "$LINENO" 5 6301 fi 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 6303 $as_echo "$with_jvm_variants" >&6; } 6304 6305 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 6306 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 6307 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 6308 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 6309 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 6310 6311 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 6312 if test "x$HOST_CPU_BITS" = x64; then 6313 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 6314 fi 6315 fi 6316 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 6317 if test "x$HOST_CPU_BITS" = x64; then 6318 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 6319 fi 6320 fi 6321 6322 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/'` 6323 # Replace the commas with AND for use in the build directory name. 6324 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/'` 6325 if test "x$COUNT_VARIANTS" != "x,1"; then 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE! Longer build time since we are building more than one version of the libjvm! $with_jvm_variants" >&5 6327 $as_echo "$as_me: NOTE! Longer build time since we are building more than one version of the libjvm! $with_jvm_variants" >&6;} 6328 fi 6329 6330 6331 6332 6333 6334 6335 6336 6337 ############################################################################### 6338 # 6339 # Set the debug level 6340 # release: no debug information, all optimizations, no asserts. 6341 # fastdebug: debug information (-g), all optimizations, all asserts 6342 # slowdebug: debug information (-g), no optimizations, all asserts 6343 # 6344 DEBUG_LEVEL="release" 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 6346 $as_echo_n "checking which debug level to use... " >&6; } 6347 # Check whether --enable-debug was given. 6348 if test "${enable_debug+set}" = set; then : 6349 enableval=$enable_debug; 6350 ENABLE_DEBUG="${enableval}" 6351 DEBUG_LEVEL="fastdebug" 6352 6353 else 6354 ENABLE_DEBUG="no" 6355 fi 6356 6357 6358 6359 # Check whether --with-debug-level was given. 6360 if test "${with_debug_level+set}" = set; then : 6361 withval=$with_debug_level; 6362 DEBUG_LEVEL="${withval}" 6363 if test "x$ENABLE_DEBUG" = xyes; then 6364 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 6365 fi 6366 6367 fi 6368 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 6370 $as_echo "$DEBUG_LEVEL" >&6; } 6371 6372 if test "x$DEBUG_LEVEL" != xrelease && \ 6373 test "x$DEBUG_LEVEL" != xfastdebug && \ 6374 test "x$DEBUG_LEVEL" != xslowdebug; then 6375 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 6376 fi 6377 6378 case $DEBUG_LEVEL in 6379 release ) 6380 VARIANT="OPT" 6381 FASTDEBUG="false" 6382 DEBUG_CLASSFILES="false" 6383 BUILD_VARIANT_RELEASE="" 6384 ;; 6385 fastdebug ) 6386 VARIANT="DBG" 6387 FASTDEBUG="true" 6388 DEBUG_CLASSFILES="true" 6389 BUILD_VARIANT_RELEASE="-fastdebug" 6390 ;; 6391 slowdebug ) 6392 VARIANT="DBG" 6393 FASTDEBUG="false" 6394 DEBUG_CLASSFILES="true" 6395 BUILD_VARIANT_RELEASE="-debug" 6396 ;; 6397 esac 6398 6399 6400 6401 6402 6403 6404 6405 # Source the version numbers 6406 . $AUTOCONF_DIR/version.numbers 6407 if test "x$OPENJDK" = "xfalse"; then 6408 . $AUTOCONF_DIR/closed.version.numbers 6409 fi 6410 # Now set the JDK version, milestone, build number etc. 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 COPYRIGHT_YEAR=`date +'%Y'` 6424 6425 6426 RUNTIME_NAME="$PRODUCT_NAME $PRODUCT_SUFFIX" 6427 6428 6429 if test "x$JDK_UPDATE_VERSION" != x; then 6430 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 6431 else 6432 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 6433 fi 6434 6435 6436 if test "x$MILESTONE" != x; then 6437 RELEASE="${JDK_VERSION}-${MILESTONE}${BUILD_VARIANT_RELEASE}" 6438 else 6439 RELEASE="${JDK_VERSION}${BUILD_VARIANT_RELEASE}" 6440 fi 6441 6442 6443 if test "x$JDK_BUILD_NUMBER" != x; then 6444 FULL_VERSION="${RELEASE}-${JDK_BUILD_NUMBER}" 6445 else 6446 JDK_BUILD_NUMBER=b00 6447 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 6448 # Avoid [:alnum:] since it depends on the locale. 6449 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyz0123456789'` 6450 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvqxyz'` 6451 FULL_VERSION="${RELEASE}-${USER_RELEASE_SUFFIX}-${JDK_BUILD_NUMBER}" 6452 fi 6453 6454 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 6455 6456 6457 # Test from where we are running configure, in or outside of src root. 6458 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 6459 # We are running configure from the src root. 6460 # Create a default ./build/host-variant-debuglevel output root. 6461 OUTPUT_ROOT="$SRC_ROOT/build/${HOST_OS}-${HOST_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 6462 mkdir -p "$OUTPUT_ROOT" 6463 if test ! -d "$OUTPUT_ROOT"; then 6464 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 6465 fi 6466 else 6467 # We are running configure from outside of the src dir. 6468 # Then use the current directory as output dir! 6469 OUTPUT_ROOT="$CURDIR" 6470 fi 6471 6472 6473 # Fail with message the path to the output root if var OUTPUT_ROOT contains a path with no spaces in it. 6474 # Unless on Windows, where we can rewrite the path. 6475 HAS_SPACE=`echo "$OUTPUT_ROOT" | grep " "` 6476 if test "x$HAS_SPACE" != x; then 6477 if test "x$BUILD_OS" = "xwindows"; then 6478 OUTPUT_ROOT=`$CYGPATH -s -m -a "$OUTPUT_ROOT"` 6479 OUTPUT_ROOT=`$CYGPATH -u "$OUTPUT_ROOT"` 6480 else 6481 as_fn_error $? "You cannot have spaces in the path to the output root! \"$OUTPUT_ROOT\"" "$LINENO" 5 6482 fi 6483 fi 6484 6485 6486 # Save the arguments given to us 6487 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments 6488 6489 # Check if the VS env variables were setup prior to running configure. 6490 # If not, then find vcvarsall.bat and run it automatically, and integrate 6491 # the set env variables into the spec file. 6492 SETUPDEVENV="# No special vars" 6493 if test "x$BUILD_OS" = "xwindows"; then 6494 # If vcvarsall.bat has been run, then VCINSTALLDIR is set. 6495 if test "x$VCINSTALLDIR" != x; then 6496 # No further setup is needed. The build will happen from this kind 6497 # of shell. 6498 SETUPDEVENV="# This spec file expects that you are running bash from within a VS command prompt." 6499 # Make sure to remind you, if you forget to run make from a cygwin bash shell 6500 # that is spawned "bash -l" from a VS command prompt. 6501 CHECK_FOR_VCINSTALLDIR=yes 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are running from within a VS command prompt" >&5 6503 $as_echo_n "checking if you are running from within a VS command prompt... " >&6; } 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6505 $as_echo "yes" >&6; } 6506 else 6507 # Ah, we have not yet run vcvarsall.bat/vsvars32.bat/vsvars64.bat. Lets do that. First find it. 6508 if test "x$VS100COMNTOOLS" != x; then 6509 VARSBAT=`find "$VS100COMNTOOLS/../.." -name vcvarsall.bat` 6510 SEARCH_ROOT="$VS100COMNTOOLS" 6511 else 6512 VARSBAT=`find "$PROGRAMFILES" -name vcvarsall.bat` 6513 SEARCH_ROOT="$PROGRAMFILES" 6514 fi 6515 VCPATH=`dirname "$VARSBAT"` 6516 VCPATH=`cygpath -w "$VCPATH"` 6517 if test "x$VARSBAT" = x || test ! -d "$VCPATH"; then 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can find the VS installation" >&5 6519 $as_echo_n "checking if we can find the VS installation... " >&6; } 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6521 $as_echo "no" >&6; } 6522 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 6523 fi 6524 case "$LEGACY_HOST_CPU1" in 6525 i?86) 6526 VARSBAT_ARCH=x86 6527 ;; 6528 *) 6529 VARSBAT_ARCH=$LEGACY_HOST_CPU1 6530 ;; 6531 esac 6532 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 6533 cd $OUTPUT_ROOT 6534 $SRC_ROOT/common/bin/extractvcvars.sh "$VARSBAT" "$VARSBAT_ARCH" 6535 cd $CURDIR 6536 if test ! -s $OUTPUT_ROOT/localdevenv.sh || test ! -s $OUTPUT_ROOT/localdevenv.gmk; then 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can extract the needed env variables" >&5 6538 $as_echo_n "checking if we can extract the needed env variables... " >&6; } 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6540 $as_echo "no" >&6; } 6541 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 6542 fi 6543 # Now set all paths and other env variables. This will allow the rest of 6544 # the configure script to find and run the compiler in the proper way. 6545 . $OUTPUT_ROOT/localdevenv.sh 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can find the VS installation" >&5 6547 $as_echo_n "checking if we can find the VS installation... " >&6; } 6548 if test "x$VCINSTALLDIR" != x; then 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VCINSTALLDIR" >&5 6550 $as_echo "$VCINSTALLDIR" >&6; } 6551 else 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6553 $as_echo "no" >&6; } 6554 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 6555 fi 6556 CHECK_FOR_VCINSTALLDIR=no 6557 SETUPDEVENV="include $OUTPUT_ROOT/localdevenv.gmk" 6558 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 6560 $as_echo_n "checking for msvcr100.dll... " >&6; } 6561 6562 # Check whether --with-msvcr100dll was given. 6563 if test "${with_msvcr100dll+set}" = set; then : 6564 withval=$with_msvcr100dll; 6565 fi 6566 6567 if test "x$with_msvcr100dll" != x; then 6568 MSVCR100DLL="$with_msvcr100dll" 6569 else 6570 if test "x$HOST_CPU_BITS" = x64; then 6571 MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | grep x64 | head --lines 1` 6572 else 6573 MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | grep x86 | grep -v ia64 | grep -v x64 | head --lines 1` 6574 if test "x$MSVCR100DLL" = x; then 6575 MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | head --lines 1` 6576 fi 6577 fi 6578 fi 6579 if test "x$MSVCR100DLL" = x; then 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6581 $as_echo "no" >&6; } 6582 as_fn_error $? "Could not find msvcr100.dll !" "$LINENO" 5 6583 fi 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR100DLL" >&5 6585 $as_echo "$MSVCR100DLL" >&6; } 6586 6587 # Fail with message the path to msvcr100.dll if var MSVCR100DLL contains a path with no spaces in it. 6588 # Unless on Windows, where we can rewrite the path. 6589 HAS_SPACE=`echo "$MSVCR100DLL" | grep " "` 6590 if test "x$HAS_SPACE" != x; then 6591 if test "x$BUILD_OS" = "xwindows"; then 6592 MSVCR100DLL=`$CYGPATH -s -m -a "$MSVCR100DLL"` 6593 MSVCR100DLL=`$CYGPATH -u "$MSVCR100DLL"` 6594 else 6595 as_fn_error $? "You cannot have spaces in the path to msvcr100.dll! \"$MSVCR100DLL\"" "$LINENO" 5 6596 fi 6597 fi 6598 6599 fi 6600 fi 6601 6602 6603 6604 6605 # Most of the probed defines are put into config.h 6606 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 6607 6608 # The spec.gmk file contains all variables for the make system. 6609 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 6610 6611 # The generated Makefile knows where the spec.gmk is and where the source is. 6612 # You can run make from the OUTPUT_ROOT. If you have only 6613 # one configured host, then you can also run make from the SRC_ROOT, 6614 # since it will go look for a single spec.gmk file. Or perhaps it 6615 # should instead make all configured hosts it can find? 6616 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 6617 6618 6619 SPEC=$OUTPUT_ROOT/spec.gmk 6620 6621 OUTPUT_ROOT=$OUTPUT_ROOT 6622 6623 6624 # Where are the sources. Any of these can be overridden 6625 # using --with-override-corba and the likes. 6626 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 6627 CORBA_TOPDIR="$SRC_ROOT/corba" 6628 JAXP_TOPDIR="$SRC_ROOT/jaxp" 6629 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 6630 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 6631 JDK_TOPDIR="$SRC_ROOT/jdk" 6632 6633 6634 6635 6636 6637 6638 6639 # Check if pkg-config is available. 6640 6641 6642 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6643 if test -n "$ac_tool_prefix"; then 6644 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6645 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6647 $as_echo_n "checking for $ac_word... " >&6; } 6648 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6649 $as_echo_n "(cached) " >&6 6650 else 6651 case $PKG_CONFIG in 6652 [\\/]* | ?:[\\/]*) 6653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6654 ;; 6655 *) 6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6657 for as_dir in $PATH 6658 do 6659 IFS=$as_save_IFS 6660 test -z "$as_dir" && as_dir=. 6661 for ac_exec_ext in '' $ac_executable_extensions; do 6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6663 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6665 break 2 6666 fi 6667 done 6668 done 6669 IFS=$as_save_IFS 6670 6671 ;; 6672 esac 6673 fi 6674 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6675 if test -n "$PKG_CONFIG"; then 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6677 $as_echo "$PKG_CONFIG" >&6; } 6678 else 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6680 $as_echo "no" >&6; } 6681 fi 6682 6683 6684 fi 6685 if test -z "$ac_cv_path_PKG_CONFIG"; then 6686 ac_pt_PKG_CONFIG=$PKG_CONFIG 6687 # Extract the first word of "pkg-config", so it can be a program name with args. 6688 set dummy pkg-config; ac_word=$2 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6690 $as_echo_n "checking for $ac_word... " >&6; } 6691 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 6692 $as_echo_n "(cached) " >&6 6693 else 6694 case $ac_pt_PKG_CONFIG in 6695 [\\/]* | ?:[\\/]*) 6696 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6697 ;; 6698 *) 6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6700 for as_dir in $PATH 6701 do 6702 IFS=$as_save_IFS 6703 test -z "$as_dir" && as_dir=. 6704 for ac_exec_ext in '' $ac_executable_extensions; do 6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6706 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6708 break 2 6709 fi 6710 done 6711 done 6712 IFS=$as_save_IFS 6713 6714 ;; 6715 esac 6716 fi 6717 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6718 if test -n "$ac_pt_PKG_CONFIG"; then 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6720 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 6721 else 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6723 $as_echo "no" >&6; } 6724 fi 6725 6726 if test "x$ac_pt_PKG_CONFIG" = x; then 6727 PKG_CONFIG="" 6728 else 6729 case $cross_compiling:$ac_tool_warned in 6730 yes:) 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6733 ac_tool_warned=yes ;; 6734 esac 6735 PKG_CONFIG=$ac_pt_PKG_CONFIG 6736 fi 6737 else 6738 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6739 fi 6740 6741 fi 6742 if test -n "$PKG_CONFIG"; then 6743 _pkg_min_version=0.9.0 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6745 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6746 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6748 $as_echo "yes" >&6; } 6749 else 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6751 $as_echo "no" >&6; } 6752 PKG_CONFIG="" 6753 fi 6754 6755 fi 6756 6757 6758 # Check whether --with-builddeps-conf was given. 6759 if test "${with_builddeps_conf+set}" = set; then : 6760 withval=$with_builddeps_conf; 6761 fi 6762 6763 6764 6765 # Check whether --with-builddeps-server was given. 6766 if test "${with_builddeps_server+set}" = set; then : 6767 withval=$with_builddeps_server; 6768 fi 6769 6770 6771 6772 # Check whether --with-builddeps-dir was given. 6773 if test "${with_builddeps_dir+set}" = set; then : 6774 withval=$with_builddeps_dir; 6775 else 6776 with_builddeps_dir=/localhome/builddeps 6777 fi 6778 6779 6780 6781 # Check whether --with-builddeps-group was given. 6782 if test "${with_builddeps_group+set}" = set; then : 6783 withval=$with_builddeps_group; 6784 fi 6785 6786 6787 # Check whether --enable-list-builddeps was given. 6788 if test "${enable_list_builddeps+set}" = set; then : 6789 enableval=$enable_list_builddeps; LIST_BUILDDEPS="${enableval}" 6790 else 6791 LIST_BUILDDEPS='no' 6792 fi 6793 6794 6795 if test "x$LIST_BUILDDEPS" = xyes; then 6796 echo 6797 echo List of build dependencies known to the configure script, 6798 echo that can be used in builddeps.conf files: 6799 cat $SRC_ROOT/configure.ac | grep BDEPS_CHECK_MODUL | grep -v configure.ac | cut -f 2 -d ',' | tr -d ' ' | sort 6800 echo 6801 exit 1 6802 fi 6803 6804 # If builddeps server or conf file is given. Setup buildeps usage. 6805 6806 6807 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 6808 if test "x$with_builddeps_conf" != x; then 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 6810 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 6811 builddepsfile=$with_builddeps_conf 6812 if test -s $builddepsfile; then 6813 . $builddepsfile 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 6815 $as_echo "loaded!" >&6; } 6816 else 6817 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 6818 fi 6819 else 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 6821 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 6822 builddepsfile=`mktemp` 6823 touch $builddepsfile 6824 # Put all found confs into a single file. 6825 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 6826 # Source the file to acquire the variables 6827 if test -s $builddepsfile; then 6828 . $builddepsfile 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 6830 $as_echo "found at least one!" >&6; } 6831 else 6832 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 6833 fi 6834 fi 6835 # Create build and host names that use _ instead of "-" and ".". 6836 # This is necessary to use them in variable names. 6837 build_var=`echo ${build} | tr '-' '_' | tr '.' '_'` 6838 host_var=`echo ${host} | tr '-' '_' | tr '.' '_'` 6839 # Extract rewrite information for build and host 6840 eval rewritten_build=\${REWRITE_${build_var}} 6841 if test "x$rewritten_build" = x; then 6842 rewritten_build=${build} 6843 echo Build stays the same $rewritten_build 6844 else 6845 echo Rewriting build for builddeps into $rewritten_build 6846 fi 6847 eval rewritten_host=\${REWRITE_${host_var}} 6848 if test "x$rewritten_host" = x; then 6849 rewritten_host=${host} 6850 echo Host stays the same $rewritten_host 6851 else 6852 echo Rewriting host for builddeps into $rewritten_host 6853 fi 6854 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 6855 rewritten_host_var=`echo ${rewritten_host} | tr '-' '_' | tr '.' '_'` 6856 fi 6857 for ac_prog in 7z unzip 6858 do 6859 # Extract the first word of "$ac_prog", so it can be a program name with args. 6860 set dummy $ac_prog; ac_word=$2 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6862 $as_echo_n "checking for $ac_word... " >&6; } 6863 if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then : 6864 $as_echo_n "(cached) " >&6 6865 else 6866 if test -n "$BDEPS_UNZIP"; then 6867 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 6868 else 6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6870 for as_dir in $PATH 6871 do 6872 IFS=$as_save_IFS 6873 test -z "$as_dir" && as_dir=. 6874 for ac_exec_ext in '' $ac_executable_extensions; do 6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6876 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6878 break 2 6879 fi 6880 done 6881 done 6882 IFS=$as_save_IFS 6883 6884 fi 6885 fi 6886 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 6887 if test -n "$BDEPS_UNZIP"; then 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 6889 $as_echo "$BDEPS_UNZIP" >&6; } 6890 else 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6892 $as_echo "no" >&6; } 6893 fi 6894 6895 6896 test -n "$BDEPS_UNZIP" && break 6897 done 6898 6899 if test "x$BDEPS_UNZIP" = x7z; then 6900 BDEPS_UNZIP="7z x" 6901 fi 6902 6903 for ac_prog in wget lftp ftp 6904 do 6905 # Extract the first word of "$ac_prog", so it can be a program name with args. 6906 set dummy $ac_prog; ac_word=$2 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6908 $as_echo_n "checking for $ac_word... " >&6; } 6909 if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then : 6910 $as_echo_n "(cached) " >&6 6911 else 6912 if test -n "$BDEPS_FTP"; then 6913 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 6914 else 6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6916 for as_dir in $PATH 6917 do 6918 IFS=$as_save_IFS 6919 test -z "$as_dir" && as_dir=. 6920 for ac_exec_ext in '' $ac_executable_extensions; do 6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6922 ac_cv_prog_BDEPS_FTP="$ac_prog" 6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6924 break 2 6925 fi 6926 done 6927 done 6928 IFS=$as_save_IFS 6929 6930 fi 6931 fi 6932 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 6933 if test -n "$BDEPS_FTP"; then 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 6935 $as_echo "$BDEPS_FTP" >&6; } 6936 else 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6938 $as_echo "no" >&6; } 6939 fi 6940 6941 6942 test -n "$BDEPS_FTP" && break 6943 done 6944 6945 6946 6947 ############################################################################### 6948 # 6949 # Configure the development tool paths and potential sysroot. 6950 # 6951 ac_ext=cpp 6952 ac_cpp='$CXXCPP $CPPFLAGS' 6953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6956 6957 DEVKIT= 6958 SYS_ROOT=/ 6959 6960 6961 # The option used to specify the target .o,.a or .so file. 6962 # When compiling, how to specify the to be created object file. 6963 CC_OUT_OPTION='-o$(SPACE)' 6964 # When linking, how to specify the to be created executable. 6965 EXE_OUT_OPTION='-o$(SPACE)' 6966 # When linking, how to specify the to be created dynamically linkable library. 6967 LD_OUT_OPTION='-o$(SPACE)' 6968 # When archiving, how to specify the to be create static archive for object files. 6969 AR_OUT_OPTION='rcs$(SPACE)' 6970 6971 6972 6973 6974 6975 # If --build AND --host is set, then the configure script will find any 6976 # cross compilation tools in the PATH. Cross compilation tools 6977 # follows the cross compilation standard where they are prefixed with ${host}. 6978 # For example the binary i686-sun-solaris2.10-gcc 6979 # will cross compile for i686-sun-solaris2.10 6980 # If neither of build and host is not set, then build=host and the 6981 # default compiler found in the path will be used. 6982 # Setting only --host, does not seem to be really supported. 6983 # Please set both --build and --host if you want to cross compile. 6984 6985 DEFINE_CROSS_COMPILE_ARCH="" 6986 HOSTCC="" 6987 HOSTCXX="" 6988 6989 6990 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a cross compile" >&5 6992 $as_echo_n "checking if this is a cross compile... " >&6; } 6993 if test "x$build_var" != "x$host_var"; then 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, from $build_var to $host_var" >&5 6995 $as_echo "yes, from $build_var to $host_var" >&6; } 6996 # We have detected a cross compile! 6997 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$LEGACY_HOST_CPU1" 6998 # Now we to find a C/C++ compiler that can build executables for the build 6999 # platform. We can't use the AC_PROG_CC macro, since it can only be used 7000 # once. 7001 for ac_prog in cl cc gcc 7002 do 7003 # Extract the first word of "$ac_prog", so it can be a program name with args. 7004 set dummy $ac_prog; ac_word=$2 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7006 $as_echo_n "checking for $ac_word... " >&6; } 7007 if test "${ac_cv_path_HOSTCC+set}" = set; then : 7008 $as_echo_n "(cached) " >&6 7009 else 7010 case $HOSTCC in 7011 [\\/]* | ?:[\\/]*) 7012 ac_cv_path_HOSTCC="$HOSTCC" # Let the user override the test with a path. 7013 ;; 7014 *) 7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7016 for as_dir in $PATH 7017 do 7018 IFS=$as_save_IFS 7019 test -z "$as_dir" && as_dir=. 7020 for ac_exec_ext in '' $ac_executable_extensions; do 7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7022 ac_cv_path_HOSTCC="$as_dir/$ac_word$ac_exec_ext" 7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7024 break 2 7025 fi 7026 done 7027 done 7028 IFS=$as_save_IFS 7029 7030 ;; 7031 esac 7032 fi 7033 HOSTCC=$ac_cv_path_HOSTCC 7034 if test -n "$HOSTCC"; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCC" >&5 7036 $as_echo "$HOSTCC" >&6; } 7037 else 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7039 $as_echo "no" >&6; } 7040 fi 7041 7042 7043 test -n "$HOSTCC" && break 7044 done 7045 7046 7047 # Translate "gcc -E" into "`which gcc` -E" ie 7048 # extract the full path to the binary and at the 7049 # same time maintain any arguments passed to it. 7050 # The command MUST exist in the path, or else! 7051 tmp="$HOSTCC" 7052 car="${tmp%% *}" 7053 tmp="$HOSTCC EOL" 7054 cdr="${tmp#* }" 7055 # On windows we want paths without spaces. 7056 if test "x$BUILD_OS" = "xwindows"; then 7057 7058 # Translate long cygdrive or C:\sdfsf path 7059 # into a short mixed mode path that has no 7060 # spaces in it. 7061 tmp="$car" 7062 if test "x$BUILD_OS" = "xwindows"; then 7063 tmp=`$CYGPATH -u "$car"` 7064 tmp=`which "$tmp"` 7065 # If file exists with .exe appended, that's the real filename 7066 # and cygpath needs that to convert to short style path. 7067 if test -f "${tmp}.exe"; then 7068 tmp="${tmp}.exe" 7069 elif test -f "${tmp}.cmd"; then 7070 tmp="${tmp}.cmd" 7071 fi 7072 # Convert to C:/ mixed style path without spaces. 7073 tmp=`$CYGPATH -s -m "$tmp"` 7074 fi 7075 car="$tmp" 7076 7077 else 7078 # "which" is not portable, but is used here 7079 # because we know that the command exists! 7080 car=`which $car` 7081 fi 7082 if test "x$cdr" != xEOL; then 7083 HOSTCC="$car ${cdr% *}" 7084 else 7085 HOSTCC="$car" 7086 fi 7087 7088 for ac_prog in cl CC g++ 7089 do 7090 # Extract the first word of "$ac_prog", so it can be a program name with args. 7091 set dummy $ac_prog; ac_word=$2 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7093 $as_echo_n "checking for $ac_word... " >&6; } 7094 if test "${ac_cv_path_HOSTCXX+set}" = set; then : 7095 $as_echo_n "(cached) " >&6 7096 else 7097 case $HOSTCXX in 7098 [\\/]* | ?:[\\/]*) 7099 ac_cv_path_HOSTCXX="$HOSTCXX" # Let the user override the test with a path. 7100 ;; 7101 *) 7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7103 for as_dir in $PATH 7104 do 7105 IFS=$as_save_IFS 7106 test -z "$as_dir" && as_dir=. 7107 for ac_exec_ext in '' $ac_executable_extensions; do 7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7109 ac_cv_path_HOSTCXX="$as_dir/$ac_word$ac_exec_ext" 7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7111 break 2 7112 fi 7113 done 7114 done 7115 IFS=$as_save_IFS 7116 7117 ;; 7118 esac 7119 fi 7120 HOSTCXX=$ac_cv_path_HOSTCXX 7121 if test -n "$HOSTCXX"; then 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCXX" >&5 7123 $as_echo "$HOSTCXX" >&6; } 7124 else 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7126 $as_echo "no" >&6; } 7127 fi 7128 7129 7130 test -n "$HOSTCXX" && break 7131 done 7132 7133 7134 # Translate "gcc -E" into "`which gcc` -E" ie 7135 # extract the full path to the binary and at the 7136 # same time maintain any arguments passed to it. 7137 # The command MUST exist in the path, or else! 7138 tmp="$HOSTCXX" 7139 car="${tmp%% *}" 7140 tmp="$HOSTCXX EOL" 7141 cdr="${tmp#* }" 7142 # On windows we want paths without spaces. 7143 if test "x$BUILD_OS" = "xwindows"; then 7144 7145 # Translate long cygdrive or C:\sdfsf path 7146 # into a short mixed mode path that has no 7147 # spaces in it. 7148 tmp="$car" 7149 if test "x$BUILD_OS" = "xwindows"; then 7150 tmp=`$CYGPATH -u "$car"` 7151 tmp=`which "$tmp"` 7152 # If file exists with .exe appended, that's the real filename 7153 # and cygpath needs that to convert to short style path. 7154 if test -f "${tmp}.exe"; then 7155 tmp="${tmp}.exe" 7156 elif test -f "${tmp}.cmd"; then 7157 tmp="${tmp}.cmd" 7158 fi 7159 # Convert to C:/ mixed style path without spaces. 7160 tmp=`$CYGPATH -s -m "$tmp"` 7161 fi 7162 car="$tmp" 7163 7164 else 7165 # "which" is not portable, but is used here 7166 # because we know that the command exists! 7167 car=`which $car` 7168 fi 7169 if test "x$cdr" != xEOL; then 7170 HOSTCXX="$car ${cdr% *}" 7171 else 7172 HOSTCXX="$car" 7173 fi 7174 7175 # Building for the build platform should be easy. Therefore 7176 # we do not need any linkers or assemblers etc. 7177 else 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7179 $as_echo "no" >&6; } 7180 fi 7181 7182 # You can force the sys-root if the sys-root encoded into the cross compiler tools 7183 # is not correct. 7184 7185 # Check whether --with-sys-root was given. 7186 if test "${with_sys_root+set}" = set; then : 7187 withval=$with_sys_root; 7188 fi 7189 7190 7191 if test "x$with_sys_root" != x; then 7192 SYS_ROOT=$with_sys_root 7193 fi 7194 7195 # If a devkit is found on the builddeps server, then prepend its path to the 7196 # PATH variable. If there are cross compilers available in the devkit, these 7197 # will be found by AC_PROG_CC et al. 7198 7199 7200 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 7201 # Source the builddeps file again, to make sure it uses the latest variables! 7202 . $builddepsfile 7203 # Look for a host and build machine specific resource! 7204 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}} 7205 if test "x$resource" = x; then 7206 # Ok, lets instead look for a host specific resource 7207 eval resource=\${builddep_devkit_HOST_${rewritten_host_var}} 7208 fi 7209 if test "x$resource" = x; then 7210 # Ok, lets instead look for a build specific resource 7211 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}} 7212 fi 7213 if test "x$resource" = x; then 7214 # Ok, lets instead look for a generic resource 7215 # (The devkit comes from M4 and not the shell, thus no need for eval here.) 7216 resource=${builddep_devkit} 7217 fi 7218 if test "x$resource" != x; then 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5 7220 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;} 7221 # If the resource in the builddeps.conf file is an existing directory, 7222 # for example /java/linux/cups 7223 if test -d ${resource}; then 7224 depdir=${resource} 7225 else 7226 7227 # devkit is for example mymodule 7228 # $resource is for example libs/general/libmymod_1_2_3.zip 7229 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 7230 # $with_builddeps_dir is for example /localhome/builddeps 7231 # depdir is the name of the variable into which we store the depdir, eg MYMOD 7232 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 7233 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 7234 filename=`basename $resource` 7235 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 7236 filebase=${filename%%.*} 7237 extension=${filename#*.} 7238 installdir=$with_builddeps_dir/$filebase 7239 if test ! -f $installdir/$filename.unpacked; then 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5 7241 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;} 7242 if test ! -d $installdir; then 7243 mkdir -p $installdir 7244 fi 7245 if test ! -d $installdir; then 7246 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 7247 fi 7248 tmpfile=`mktemp $installdir/devkit.XXXXXXXXX` 7249 touch $tmpfile 7250 if test ! -f $tmpfile; then 7251 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 7252 fi 7253 7254 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 7255 # $tmpfile is the local file name for the downloaded file. 7256 VALID_TOOL=no 7257 if test "x$BDEPS_FTP" = xwget; then 7258 VALID_TOOL=yes 7259 wget -O $tmpfile $with_builddeps_server/$resource 7260 fi 7261 if test "x$BDEPS_FTP" = xlftp; then 7262 VALID_TOOL=yes 7263 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 7264 fi 7265 if test "x$BDEPS_FTP" = xftp; then 7266 VALID_TOOL=yes 7267 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 7268 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 7269 FTPUSERPWD=${FTPSERVER%%@*} 7270 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 7271 FTPUSER=${userpwd%%:*} 7272 FTPPWD=${userpwd#*@} 7273 FTPSERVER=${FTPSERVER#*@} 7274 else 7275 FTPUSER=ftp 7276 FTPPWD=ftp 7277 fi 7278 # the "pass" command does not work on some 7279 # ftp clients (read ftp.exe) but if it works, 7280 # passive mode is better! 7281 (\ 7282 echo "user $FTPUSER $FTPPWD" ;\ 7283 echo "pass" ;\ 7284 echo "bin" ;\ 7285 echo "get $FTPPATH $tmpfile" ;\ 7286 ) | ftp -in $FTPSERVER 7287 fi 7288 if test "x$VALID_TOOL" != xyes; then 7289 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 7290 fi 7291 7292 mv $tmpfile $installdir/$filename 7293 if test ! -s $installdir/$filename; then 7294 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 7295 fi 7296 case "$extension" in 7297 zip) echo "Unzipping $installdir/$filename..." 7298 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 7299 ;; 7300 tar.gz) echo "Untaring $installdir/$filename..." 7301 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 7302 ;; 7303 tgz) echo "Untaring $installdir/$filename..." 7304 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 7305 ;; 7306 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 7307 ;; 7308 esac 7309 fi 7310 if test -f $installdir/$filename.unpacked; then 7311 depdir=$installdir 7312 fi 7313 7314 fi 7315 # Source the builddeps file again, because in the previous command, the depdir 7316 # was updated to point at the current build dependency install directory. 7317 . $builddepsfile 7318 # Now extract variables from the builddeps.conf files. 7319 theroot=${builddep_devkit_ROOT} 7320 thecflags=${builddep_devkit_CFLAGS} 7321 thelibs=${builddep_devkit_LIBS} 7322 if test "x$depdir" = x; then 7323 as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5 7324 fi 7325 DEVKIT=$depdir 7326 if test "x$theroot" != x; then 7327 DEVKIT="$theroot" 7328 fi 7329 if test "x$thecflags" != x; then 7330 DEVKIT_CFLAGS="$thecflags" 7331 fi 7332 if test "x$thelibs" != x; then 7333 DEVKIT_LIBS="$thelibs" 7334 fi 7335 # Found devkit 7336 PATH="$DEVKIT/bin:$PATH" 7337 SYS_ROOT="$DEVKIT/${rewritten_host}/sys-root" 7338 if test "x$x_includes" = "xNONE"; then 7339 x_includes="$SYS_ROOT/usr/include/X11" 7340 fi 7341 if test "x$x_libraries" = "xNONE"; then 7342 x_libraries="$SYS_ROOT/usr/lib" 7343 fi 7344 7345 7346 fi 7347 7348 fi 7349 7350 7351 if test "x$SYS_ROOT" != "x/" ; then 7352 CFLAGS="--sysroot=$SYS_ROOT $CFLAGS" 7353 CXXFLAGS="--sysroot=$SYS_ROOT $CXXFLAGS" 7354 OBJCFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS" 7355 OBJCXXFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS" 7356 CPPFLAGS="--sysroot=$SYS_ROOT $CPPFLAGS" 7357 LDFLAGS="--sysroot=$SYS_ROOT $LDFLAGS" 7358 fi 7359 7360 # Store the CFLAGS etal passed to the configure script. 7361 ORG_CFLAGS="$CFLAGS" 7362 ORG_CXXFLAGS="$CXXFLAGS" 7363 ORG_OBJCFLAGS="$OBJCFLAGS" 7364 7365 # gcc is almost always present, but on Windows we 7366 # prefer cl.exe and on Solaris we prefer CC. 7367 # Thus test for them in this order. 7368 ac_ext=c 7369 ac_cpp='$CPP $CPPFLAGS' 7370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7372 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7373 if test -n "$ac_tool_prefix"; then 7374 for ac_prog in cl cc gcc 7375 do 7376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7379 $as_echo_n "checking for $ac_word... " >&6; } 7380 if test "${ac_cv_prog_CC+set}" = set; then : 7381 $as_echo_n "(cached) " >&6 7382 else 7383 if test -n "$CC"; then 7384 ac_cv_prog_CC="$CC" # Let the user override the test. 7385 else 7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7387 for as_dir in $PATH 7388 do 7389 IFS=$as_save_IFS 7390 test -z "$as_dir" && as_dir=. 7391 for ac_exec_ext in '' $ac_executable_extensions; do 7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7395 break 2 7396 fi 7397 done 7398 done 7399 IFS=$as_save_IFS 7400 7401 fi 7402 fi 7403 CC=$ac_cv_prog_CC 7404 if test -n "$CC"; then 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7406 $as_echo "$CC" >&6; } 7407 else 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7409 $as_echo "no" >&6; } 7410 fi 7411 7412 7413 test -n "$CC" && break 7414 done 7415 fi 7416 if test -z "$CC"; then 7417 ac_ct_CC=$CC 7418 for ac_prog in cl cc gcc 7419 do 7420 # Extract the first word of "$ac_prog", so it can be a program name with args. 7421 set dummy $ac_prog; ac_word=$2 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7423 $as_echo_n "checking for $ac_word... " >&6; } 7424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 7425 $as_echo_n "(cached) " >&6 7426 else 7427 if test -n "$ac_ct_CC"; then 7428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 7429 else 7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7431 for as_dir in $PATH 7432 do 7433 IFS=$as_save_IFS 7434 test -z "$as_dir" && as_dir=. 7435 for ac_exec_ext in '' $ac_executable_extensions; do 7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7437 ac_cv_prog_ac_ct_CC="$ac_prog" 7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7439 break 2 7440 fi 7441 done 7442 done 7443 IFS=$as_save_IFS 7444 7445 fi 7446 fi 7447 ac_ct_CC=$ac_cv_prog_ac_ct_CC 7448 if test -n "$ac_ct_CC"; then 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 7450 $as_echo "$ac_ct_CC" >&6; } 7451 else 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7453 $as_echo "no" >&6; } 7454 fi 7455 7456 7457 test -n "$ac_ct_CC" && break 7458 done 7459 7460 if test "x$ac_ct_CC" = x; then 7461 CC="" 7462 else 7463 case $cross_compiling:$ac_tool_warned in 7464 yes:) 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7467 ac_tool_warned=yes ;; 7468 esac 7469 CC=$ac_ct_CC 7470 fi 7471 fi 7472 7473 7474 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7476 as_fn_error $? "no acceptable C compiler found in \$PATH 7477 See \`config.log' for more details" "$LINENO" 5 ; } 7478 7479 # Provide some information about the compiler. 7480 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 7481 set X $ac_compile 7482 ac_compiler=$2 7483 for ac_option in --version -v -V -qversion; do 7484 { { ac_try="$ac_compiler $ac_option >&5" 7485 case "(($ac_try" in 7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7487 *) ac_try_echo=$ac_try;; 7488 esac 7489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7490 $as_echo "$ac_try_echo"; } >&5 7491 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7492 ac_status=$? 7493 if test -s conftest.err; then 7494 sed '10a\ 7495 ... rest of stderr output deleted ... 7496 10q' conftest.err >conftest.er1 7497 cat conftest.er1 >&5 7498 fi 7499 rm -f conftest.er1 conftest.err 7500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7501 test $ac_status = 0; } 7502 done 7503 7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7505 /* end confdefs.h. */ 7506 7507 int 7508 main () 7509 { 7510 7511 ; 7512 return 0; 7513 } 7514 _ACEOF 7515 ac_clean_files_save=$ac_clean_files 7516 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 7517 # Try to create an executable without -o first, disregard a.out. 7518 # It will help us diagnose broken compilers, and finding out an intuition 7519 # of exeext. 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 7521 $as_echo_n "checking whether the C compiler works... " >&6; } 7522 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 7523 7524 # The possible output files: 7525 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 7526 7527 ac_rmfiles= 7528 for ac_file in $ac_files 7529 do 7530 case $ac_file in 7531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 7532 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 7533 esac 7534 done 7535 rm -f $ac_rmfiles 7536 7537 if { { ac_try="$ac_link_default" 7538 case "(($ac_try" in 7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7540 *) ac_try_echo=$ac_try;; 7541 esac 7542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7543 $as_echo "$ac_try_echo"; } >&5 7544 (eval "$ac_link_default") 2>&5 7545 ac_status=$? 7546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7547 test $ac_status = 0; }; then : 7548 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 7549 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 7550 # in a Makefile. We should not override ac_cv_exeext if it was cached, 7551 # so that the user can short-circuit this test for compilers unknown to 7552 # Autoconf. 7553 for ac_file in $ac_files '' 7554 do 7555 test -f "$ac_file" || continue 7556 case $ac_file in 7557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 7558 ;; 7559 [ab].out ) 7560 # We found the default executable, but exeext='' is most 7561 # certainly right. 7562 break;; 7563 *.* ) 7564 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 7565 then :; else 7566 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 7567 fi 7568 # We set ac_cv_exeext here because the later test for it is not 7569 # safe: cross compilers may not add the suffix if given an `-o' 7570 # argument, so we may need to know it at that point already. 7571 # Even if this section looks crufty: it has the advantage of 7572 # actually working. 7573 break;; 7574 * ) 7575 break;; 7576 esac 7577 done 7578 test "$ac_cv_exeext" = no && ac_cv_exeext= 7579 7580 else 7581 ac_file='' 7582 fi 7583 if test -z "$ac_file"; then : 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7585 $as_echo "no" >&6; } 7586 $as_echo "$as_me: failed program was:" >&5 7587 sed 's/^/| /' conftest.$ac_ext >&5 7588 7589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7591 as_fn_error 77 "C compiler cannot create executables 7592 See \`config.log' for more details" "$LINENO" 5 ; } 7593 else 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7595 $as_echo "yes" >&6; } 7596 fi 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 7598 $as_echo_n "checking for C compiler default output file name... " >&6; } 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 7600 $as_echo "$ac_file" >&6; } 7601 ac_exeext=$ac_cv_exeext 7602 7603 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 7604 ac_clean_files=$ac_clean_files_save 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 7606 $as_echo_n "checking for suffix of executables... " >&6; } 7607 if { { ac_try="$ac_link" 7608 case "(($ac_try" in 7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7610 *) ac_try_echo=$ac_try;; 7611 esac 7612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7613 $as_echo "$ac_try_echo"; } >&5 7614 (eval "$ac_link") 2>&5 7615 ac_status=$? 7616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7617 test $ac_status = 0; }; then : 7618 # If both `conftest.exe' and `conftest' are `present' (well, observable) 7619 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 7620 # work properly (i.e., refer to `conftest.exe'), while it won't with 7621 # `rm'. 7622 for ac_file in conftest.exe conftest conftest.*; do 7623 test -f "$ac_file" || continue 7624 case $ac_file in 7625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 7626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 7627 break;; 7628 * ) break;; 7629 esac 7630 done 7631 else 7632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7634 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 7635 See \`config.log' for more details" "$LINENO" 5 ; } 7636 fi 7637 rm -f conftest conftest$ac_cv_exeext 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 7639 $as_echo "$ac_cv_exeext" >&6; } 7640 7641 rm -f conftest.$ac_ext 7642 EXEEXT=$ac_cv_exeext 7643 ac_exeext=$EXEEXT 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645 /* end confdefs.h. */ 7646 #include <stdio.h> 7647 int 7648 main () 7649 { 7650 FILE *f = fopen ("conftest.out", "w"); 7651 return ferror (f) || fclose (f) != 0; 7652 7653 ; 7654 return 0; 7655 } 7656 _ACEOF 7657 ac_clean_files="$ac_clean_files conftest.out" 7658 # Check that the compiler produces executables we can run. If not, either 7659 # the compiler is broken, or we cross compile. 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 7661 $as_echo_n "checking whether we are cross compiling... " >&6; } 7662 if test "$cross_compiling" != yes; then 7663 { { ac_try="$ac_link" 7664 case "(($ac_try" in 7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7666 *) ac_try_echo=$ac_try;; 7667 esac 7668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7669 $as_echo "$ac_try_echo"; } >&5 7670 (eval "$ac_link") 2>&5 7671 ac_status=$? 7672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7673 test $ac_status = 0; } 7674 if { ac_try='./conftest$ac_cv_exeext' 7675 { { case "(($ac_try" in 7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7677 *) ac_try_echo=$ac_try;; 7678 esac 7679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7680 $as_echo "$ac_try_echo"; } >&5 7681 (eval "$ac_try") 2>&5 7682 ac_status=$? 7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7684 test $ac_status = 0; }; }; then 7685 cross_compiling=no 7686 else 7687 if test "$cross_compiling" = maybe; then 7688 cross_compiling=yes 7689 else 7690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7692 as_fn_error $? "cannot run C compiled programs. 7693 If you meant to cross compile, use \`--host'. 7694 See \`config.log' for more details" "$LINENO" 5 ; } 7695 fi 7696 fi 7697 fi 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 7699 $as_echo "$cross_compiling" >&6; } 7700 7701 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 7702 ac_clean_files=$ac_clean_files_save 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 7704 $as_echo_n "checking for suffix of object files... " >&6; } 7705 if test "${ac_cv_objext+set}" = set; then : 7706 $as_echo_n "(cached) " >&6 7707 else 7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7709 /* end confdefs.h. */ 7710 7711 int 7712 main () 7713 { 7714 7715 ; 7716 return 0; 7717 } 7718 _ACEOF 7719 rm -f conftest.o conftest.obj 7720 if { { ac_try="$ac_compile" 7721 case "(($ac_try" in 7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7723 *) ac_try_echo=$ac_try;; 7724 esac 7725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7726 $as_echo "$ac_try_echo"; } >&5 7727 (eval "$ac_compile") 2>&5 7728 ac_status=$? 7729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7730 test $ac_status = 0; }; then : 7731 for ac_file in conftest.o conftest.obj conftest.*; do 7732 test -f "$ac_file" || continue; 7733 case $ac_file in 7734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 7735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 7736 break;; 7737 esac 7738 done 7739 else 7740 $as_echo "$as_me: failed program was:" >&5 7741 sed 's/^/| /' conftest.$ac_ext >&5 7742 7743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7745 as_fn_error $? "cannot compute suffix of object files: cannot compile 7746 See \`config.log' for more details" "$LINENO" 5 ; } 7747 fi 7748 rm -f conftest.$ac_cv_objext conftest.$ac_ext 7749 fi 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 7751 $as_echo "$ac_cv_objext" >&6; } 7752 OBJEXT=$ac_cv_objext 7753 ac_objext=$OBJEXT 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 7755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 7756 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 7757 $as_echo_n "(cached) " >&6 7758 else 7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760 /* end confdefs.h. */ 7761 7762 int 7763 main () 7764 { 7765 #ifndef __GNUC__ 7766 choke me 7767 #endif 7768 7769 ; 7770 return 0; 7771 } 7772 _ACEOF 7773 if ac_fn_c_try_compile "$LINENO"; then : 7774 ac_compiler_gnu=yes 7775 else 7776 ac_compiler_gnu=no 7777 fi 7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7779 ac_cv_c_compiler_gnu=$ac_compiler_gnu 7780 7781 fi 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 7783 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 7784 if test $ac_compiler_gnu = yes; then 7785 GCC=yes 7786 else 7787 GCC= 7788 fi 7789 ac_test_CFLAGS=${CFLAGS+set} 7790 ac_save_CFLAGS=$CFLAGS 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 7792 $as_echo_n "checking whether $CC accepts -g... " >&6; } 7793 if test "${ac_cv_prog_cc_g+set}" = set; then : 7794 $as_echo_n "(cached) " >&6 7795 else 7796 ac_save_c_werror_flag=$ac_c_werror_flag 7797 ac_c_werror_flag=yes 7798 ac_cv_prog_cc_g=no 7799 CFLAGS="-g" 7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7801 /* end confdefs.h. */ 7802 7803 int 7804 main () 7805 { 7806 7807 ; 7808 return 0; 7809 } 7810 _ACEOF 7811 if ac_fn_c_try_compile "$LINENO"; then : 7812 ac_cv_prog_cc_g=yes 7813 else 7814 CFLAGS="" 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816 /* end confdefs.h. */ 7817 7818 int 7819 main () 7820 { 7821 7822 ; 7823 return 0; 7824 } 7825 _ACEOF 7826 if ac_fn_c_try_compile "$LINENO"; then : 7827 7828 else 7829 ac_c_werror_flag=$ac_save_c_werror_flag 7830 CFLAGS="-g" 7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832 /* end confdefs.h. */ 7833 7834 int 7835 main () 7836 { 7837 7838 ; 7839 return 0; 7840 } 7841 _ACEOF 7842 if ac_fn_c_try_compile "$LINENO"; then : 7843 ac_cv_prog_cc_g=yes 7844 fi 7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7846 fi 7847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7848 fi 7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7850 ac_c_werror_flag=$ac_save_c_werror_flag 7851 fi 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 7853 $as_echo "$ac_cv_prog_cc_g" >&6; } 7854 if test "$ac_test_CFLAGS" = set; then 7855 CFLAGS=$ac_save_CFLAGS 7856 elif test $ac_cv_prog_cc_g = yes; then 7857 if test "$GCC" = yes; then 7858 CFLAGS="-g -O2" 7859 else 7860 CFLAGS="-g" 7861 fi 7862 else 7863 if test "$GCC" = yes; then 7864 CFLAGS="-O2" 7865 else 7866 CFLAGS= 7867 fi 7868 fi 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 7870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 7871 if test "${ac_cv_prog_cc_c89+set}" = set; then : 7872 $as_echo_n "(cached) " >&6 7873 else 7874 ac_cv_prog_cc_c89=no 7875 ac_save_CC=$CC 7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7877 /* end confdefs.h. */ 7878 #include <stdarg.h> 7879 #include <stdio.h> 7880 #include <sys/types.h> 7881 #include <sys/stat.h> 7882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 7883 struct buf { int x; }; 7884 FILE * (*rcsopen) (struct buf *, struct stat *, int); 7885 static char *e (p, i) 7886 char **p; 7887 int i; 7888 { 7889 return p[i]; 7890 } 7891 static char *f (char * (*g) (char **, int), char **p, ...) 7892 { 7893 char *s; 7894 va_list v; 7895 va_start (v,p); 7896 s = g (p, va_arg (v,int)); 7897 va_end (v); 7898 return s; 7899 } 7900 7901 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 7902 function prototypes and stuff, but not '\xHH' hex character constants. 7903 These don't provoke an error unfortunately, instead are silently treated 7904 as 'x'. The following induces an error, until -std is added to get 7905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 7906 array size at least. It's necessary to write '\x00'==0 to get something 7907 that's true only with -std. */ 7908 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 7909 7910 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 7911 inside strings and character constants. */ 7912 #define FOO(x) 'x' 7913 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 7914 7915 int test (int i, double x); 7916 struct s1 {int (*f) (int a);}; 7917 struct s2 {int (*f) (double a);}; 7918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 7919 int argc; 7920 char **argv; 7921 int 7922 main () 7923 { 7924 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 7925 ; 7926 return 0; 7927 } 7928 _ACEOF 7929 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 7930 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7931 do 7932 CC="$ac_save_CC $ac_arg" 7933 if ac_fn_c_try_compile "$LINENO"; then : 7934 ac_cv_prog_cc_c89=$ac_arg 7935 fi 7936 rm -f core conftest.err conftest.$ac_objext 7937 test "x$ac_cv_prog_cc_c89" != "xno" && break 7938 done 7939 rm -f conftest.$ac_ext 7940 CC=$ac_save_CC 7941 7942 fi 7943 # AC_CACHE_VAL 7944 case "x$ac_cv_prog_cc_c89" in 7945 x) 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7947 $as_echo "none needed" >&6; } ;; 7948 xno) 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7950 $as_echo "unsupported" >&6; } ;; 7951 *) 7952 CC="$CC $ac_cv_prog_cc_c89" 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 7954 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 7955 esac 7956 if test "x$ac_cv_prog_cc_c89" != xno; then : 7957 7958 fi 7959 7960 ac_ext=cpp 7961 ac_cpp='$CXXCPP $CPPFLAGS' 7962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7965 7966 if test "x$CC" = x; then 7967 help_on_build_dependency devkit 7968 as_fn_error $? "Could not find a compiler. $HELP_MSG" "$LINENO" 5 7969 fi 7970 if test "x$CC" = xcc && test "x$BUILD_OS" = xmacosx; then 7971 # Do not use cc on MacOSX use gcc instead. 7972 CC="gcc" 7973 fi 7974 7975 # Translate "gcc -E" into "`which gcc` -E" ie 7976 # extract the full path to the binary and at the 7977 # same time maintain any arguments passed to it. 7978 # The command MUST exist in the path, or else! 7979 tmp="$CC" 7980 car="${tmp%% *}" 7981 tmp="$CC EOL" 7982 cdr="${tmp#* }" 7983 # On windows we want paths without spaces. 7984 if test "x$BUILD_OS" = "xwindows"; then 7985 7986 # Translate long cygdrive or C:\sdfsf path 7987 # into a short mixed mode path that has no 7988 # spaces in it. 7989 tmp="$car" 7990 if test "x$BUILD_OS" = "xwindows"; then 7991 tmp=`$CYGPATH -u "$car"` 7992 tmp=`which "$tmp"` 7993 # If file exists with .exe appended, that's the real filename 7994 # and cygpath needs that to convert to short style path. 7995 if test -f "${tmp}.exe"; then 7996 tmp="${tmp}.exe" 7997 elif test -f "${tmp}.cmd"; then 7998 tmp="${tmp}.cmd" 7999 fi 8000 # Convert to C:/ mixed style path without spaces. 8001 tmp=`$CYGPATH -s -m "$tmp"` 8002 fi 8003 car="$tmp" 8004 8005 else 8006 # "which" is not portable, but is used here 8007 # because we know that the command exists! 8008 car=`which $car` 8009 fi 8010 if test "x$cdr" != xEOL; then 8011 CC="$car ${cdr% *}" 8012 else 8013 CC="$car" 8014 fi 8015 8016 8017 ac_ext=cpp 8018 ac_cpp='$CXXCPP $CPPFLAGS' 8019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8022 if test -z "$CXX"; then 8023 if test -n "$CCC"; then 8024 CXX=$CCC 8025 else 8026 if test -n "$ac_tool_prefix"; then 8027 for ac_prog in cl CC g++ 8028 do 8029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8032 $as_echo_n "checking for $ac_word... " >&6; } 8033 if test "${ac_cv_prog_CXX+set}" = set; then : 8034 $as_echo_n "(cached) " >&6 8035 else 8036 if test -n "$CXX"; then 8037 ac_cv_prog_CXX="$CXX" # Let the user override the test. 8038 else 8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8040 for as_dir in $PATH 8041 do 8042 IFS=$as_save_IFS 8043 test -z "$as_dir" && as_dir=. 8044 for ac_exec_ext in '' $ac_executable_extensions; do 8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8046 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8048 break 2 8049 fi 8050 done 8051 done 8052 IFS=$as_save_IFS 8053 8054 fi 8055 fi 8056 CXX=$ac_cv_prog_CXX 8057 if test -n "$CXX"; then 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 8059 $as_echo "$CXX" >&6; } 8060 else 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8062 $as_echo "no" >&6; } 8063 fi 8064 8065 8066 test -n "$CXX" && break 8067 done 8068 fi 8069 if test -z "$CXX"; then 8070 ac_ct_CXX=$CXX 8071 for ac_prog in cl CC g++ 8072 do 8073 # Extract the first word of "$ac_prog", so it can be a program name with args. 8074 set dummy $ac_prog; ac_word=$2 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8076 $as_echo_n "checking for $ac_word... " >&6; } 8077 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 8078 $as_echo_n "(cached) " >&6 8079 else 8080 if test -n "$ac_ct_CXX"; then 8081 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 8082 else 8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8084 for as_dir in $PATH 8085 do 8086 IFS=$as_save_IFS 8087 test -z "$as_dir" && as_dir=. 8088 for ac_exec_ext in '' $ac_executable_extensions; do 8089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8090 ac_cv_prog_ac_ct_CXX="$ac_prog" 8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8092 break 2 8093 fi 8094 done 8095 done 8096 IFS=$as_save_IFS 8097 8098 fi 8099 fi 8100 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 8101 if test -n "$ac_ct_CXX"; then 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 8103 $as_echo "$ac_ct_CXX" >&6; } 8104 else 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8106 $as_echo "no" >&6; } 8107 fi 8108 8109 8110 test -n "$ac_ct_CXX" && break 8111 done 8112 8113 if test "x$ac_ct_CXX" = x; then 8114 CXX="g++" 8115 else 8116 case $cross_compiling:$ac_tool_warned in 8117 yes:) 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8120 ac_tool_warned=yes ;; 8121 esac 8122 CXX=$ac_ct_CXX 8123 fi 8124 fi 8125 8126 fi 8127 fi 8128 # Provide some information about the compiler. 8129 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 8130 set X $ac_compile 8131 ac_compiler=$2 8132 for ac_option in --version -v -V -qversion; do 8133 { { ac_try="$ac_compiler $ac_option >&5" 8134 case "(($ac_try" in 8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8136 *) ac_try_echo=$ac_try;; 8137 esac 8138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8139 $as_echo "$ac_try_echo"; } >&5 8140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 8141 ac_status=$? 8142 if test -s conftest.err; then 8143 sed '10a\ 8144 ... rest of stderr output deleted ... 8145 10q' conftest.err >conftest.er1 8146 cat conftest.er1 >&5 8147 fi 8148 rm -f conftest.er1 conftest.err 8149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8150 test $ac_status = 0; } 8151 done 8152 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 8154 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 8155 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 8156 $as_echo_n "(cached) " >&6 8157 else 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159 /* end confdefs.h. */ 8160 8161 int 8162 main () 8163 { 8164 #ifndef __GNUC__ 8165 choke me 8166 #endif 8167 8168 ; 8169 return 0; 8170 } 8171 _ACEOF 8172 if ac_fn_cxx_try_compile "$LINENO"; then : 8173 ac_compiler_gnu=yes 8174 else 8175 ac_compiler_gnu=no 8176 fi 8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8178 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8179 8180 fi 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 8182 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 8183 if test $ac_compiler_gnu = yes; then 8184 GXX=yes 8185 else 8186 GXX= 8187 fi 8188 ac_test_CXXFLAGS=${CXXFLAGS+set} 8189 ac_save_CXXFLAGS=$CXXFLAGS 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 8191 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 8192 if test "${ac_cv_prog_cxx_g+set}" = set; then : 8193 $as_echo_n "(cached) " >&6 8194 else 8195 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 8196 ac_cxx_werror_flag=yes 8197 ac_cv_prog_cxx_g=no 8198 CXXFLAGS="-g" 8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8200 /* end confdefs.h. */ 8201 8202 int 8203 main () 8204 { 8205 8206 ; 8207 return 0; 8208 } 8209 _ACEOF 8210 if ac_fn_cxx_try_compile "$LINENO"; then : 8211 ac_cv_prog_cxx_g=yes 8212 else 8213 CXXFLAGS="" 8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8215 /* end confdefs.h. */ 8216 8217 int 8218 main () 8219 { 8220 8221 ; 8222 return 0; 8223 } 8224 _ACEOF 8225 if ac_fn_cxx_try_compile "$LINENO"; then : 8226 8227 else 8228 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8229 CXXFLAGS="-g" 8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8231 /* end confdefs.h. */ 8232 8233 int 8234 main () 8235 { 8236 8237 ; 8238 return 0; 8239 } 8240 _ACEOF 8241 if ac_fn_cxx_try_compile "$LINENO"; then : 8242 ac_cv_prog_cxx_g=yes 8243 fi 8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8245 fi 8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8247 fi 8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8249 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8250 fi 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 8252 $as_echo "$ac_cv_prog_cxx_g" >&6; } 8253 if test "$ac_test_CXXFLAGS" = set; then 8254 CXXFLAGS=$ac_save_CXXFLAGS 8255 elif test $ac_cv_prog_cxx_g = yes; then 8256 if test "$GXX" = yes; then 8257 CXXFLAGS="-g -O2" 8258 else 8259 CXXFLAGS="-g" 8260 fi 8261 else 8262 if test "$GXX" = yes; then 8263 CXXFLAGS="-O2" 8264 else 8265 CXXFLAGS= 8266 fi 8267 fi 8268 ac_ext=cpp 8269 ac_cpp='$CXXCPP $CPPFLAGS' 8270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8273 8274 if test "x$CXX" = xCC && test "x$BUILD_OS" = xmacosx; then 8275 # The found CC, even though it seems to be a g++ derivate, cannot compile 8276 # c++ code. Override. 8277 CXX="g++" 8278 fi 8279 8280 # Translate "gcc -E" into "`which gcc` -E" ie 8281 # extract the full path to the binary and at the 8282 # same time maintain any arguments passed to it. 8283 # The command MUST exist in the path, or else! 8284 tmp="$CXX" 8285 car="${tmp%% *}" 8286 tmp="$CXX EOL" 8287 cdr="${tmp#* }" 8288 # On windows we want paths without spaces. 8289 if test "x$BUILD_OS" = "xwindows"; then 8290 8291 # Translate long cygdrive or C:\sdfsf path 8292 # into a short mixed mode path that has no 8293 # spaces in it. 8294 tmp="$car" 8295 if test "x$BUILD_OS" = "xwindows"; then 8296 tmp=`$CYGPATH -u "$car"` 8297 tmp=`which "$tmp"` 8298 # If file exists with .exe appended, that's the real filename 8299 # and cygpath needs that to convert to short style path. 8300 if test -f "${tmp}.exe"; then 8301 tmp="${tmp}.exe" 8302 elif test -f "${tmp}.cmd"; then 8303 tmp="${tmp}.cmd" 8304 fi 8305 # Convert to C:/ mixed style path without spaces. 8306 tmp=`$CYGPATH -s -m "$tmp"` 8307 fi 8308 car="$tmp" 8309 8310 else 8311 # "which" is not portable, but is used here 8312 # because we know that the command exists! 8313 car=`which $car` 8314 fi 8315 if test "x$cdr" != xEOL; then 8316 CXX="$car ${cdr% *}" 8317 else 8318 CXX="$car" 8319 fi 8320 8321 8322 if test "x$CXX" = x || test "x$CC" = x; then 8323 help_on_build_dependency devkit 8324 as_fn_error $? "Could not find the needed compilers! $HELP_MSG " "$LINENO" 5 8325 fi 8326 8327 if test "x$BUILD_OS" != xwindows; then 8328 ac_ext=m 8329 ac_cpp='$OBJCPP $CPPFLAGS' 8330 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8331 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8332 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 8333 if test -n "$ac_tool_prefix"; then 8334 for ac_prog in gcc objcc objc cc CC 8335 do 8336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8339 $as_echo_n "checking for $ac_word... " >&6; } 8340 if test "${ac_cv_prog_OBJC+set}" = set; then : 8341 $as_echo_n "(cached) " >&6 8342 else 8343 if test -n "$OBJC"; then 8344 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 8345 else 8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8347 for as_dir in $PATH 8348 do 8349 IFS=$as_save_IFS 8350 test -z "$as_dir" && as_dir=. 8351 for ac_exec_ext in '' $ac_executable_extensions; do 8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8353 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8355 break 2 8356 fi 8357 done 8358 done 8359 IFS=$as_save_IFS 8360 8361 fi 8362 fi 8363 OBJC=$ac_cv_prog_OBJC 8364 if test -n "$OBJC"; then 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 8366 $as_echo "$OBJC" >&6; } 8367 else 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8369 $as_echo "no" >&6; } 8370 fi 8371 8372 8373 test -n "$OBJC" && break 8374 done 8375 fi 8376 if test -z "$OBJC"; then 8377 ac_ct_OBJC=$OBJC 8378 for ac_prog in gcc objcc objc cc CC 8379 do 8380 # Extract the first word of "$ac_prog", so it can be a program name with args. 8381 set dummy $ac_prog; ac_word=$2 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8383 $as_echo_n "checking for $ac_word... " >&6; } 8384 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then : 8385 $as_echo_n "(cached) " >&6 8386 else 8387 if test -n "$ac_ct_OBJC"; then 8388 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 8389 else 8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8391 for as_dir in $PATH 8392 do 8393 IFS=$as_save_IFS 8394 test -z "$as_dir" && as_dir=. 8395 for ac_exec_ext in '' $ac_executable_extensions; do 8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8397 ac_cv_prog_ac_ct_OBJC="$ac_prog" 8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8399 break 2 8400 fi 8401 done 8402 done 8403 IFS=$as_save_IFS 8404 8405 fi 8406 fi 8407 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 8408 if test -n "$ac_ct_OBJC"; then 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 8410 $as_echo "$ac_ct_OBJC" >&6; } 8411 else 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8413 $as_echo "no" >&6; } 8414 fi 8415 8416 8417 test -n "$ac_ct_OBJC" && break 8418 done 8419 8420 if test "x$ac_ct_OBJC" = x; then 8421 OBJC="gcc" 8422 else 8423 case $cross_compiling:$ac_tool_warned in 8424 yes:) 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8427 ac_tool_warned=yes ;; 8428 esac 8429 OBJC=$ac_ct_OBJC 8430 fi 8431 fi 8432 8433 # Provide some information about the compiler. 8434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 8435 set X $ac_compile 8436 ac_compiler=$2 8437 for ac_option in --version -v -V -qversion; do 8438 { { ac_try="$ac_compiler $ac_option >&5" 8439 case "(($ac_try" in 8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8441 *) ac_try_echo=$ac_try;; 8442 esac 8443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8444 $as_echo "$ac_try_echo"; } >&5 8445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 8446 ac_status=$? 8447 if test -s conftest.err; then 8448 sed '10a\ 8449 ... rest of stderr output deleted ... 8450 10q' conftest.err >conftest.er1 8451 cat conftest.er1 >&5 8452 fi 8453 rm -f conftest.er1 conftest.err 8454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8455 test $ac_status = 0; } 8456 done 8457 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 8459 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 8460 if test "${ac_cv_objc_compiler_gnu+set}" = set; then : 8461 $as_echo_n "(cached) " >&6 8462 else 8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8464 /* end confdefs.h. */ 8465 8466 int 8467 main () 8468 { 8469 #ifndef __GNUC__ 8470 choke me 8471 #endif 8472 8473 ; 8474 return 0; 8475 } 8476 _ACEOF 8477 if ac_fn_objc_try_compile "$LINENO"; then : 8478 ac_compiler_gnu=yes 8479 else 8480 ac_compiler_gnu=no 8481 fi 8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8483 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 8484 8485 fi 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 8487 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 8488 if test $ac_compiler_gnu = yes; then 8489 GOBJC=yes 8490 else 8491 GOBJC= 8492 fi 8493 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 8494 ac_save_OBJCFLAGS=$OBJCFLAGS 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 8496 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 8497 if test "${ac_cv_prog_objc_g+set}" = set; then : 8498 $as_echo_n "(cached) " >&6 8499 else 8500 ac_save_objc_werror_flag=$ac_objc_werror_flag 8501 ac_objc_werror_flag=yes 8502 ac_cv_prog_objc_g=no 8503 OBJCFLAGS="-g" 8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8505 /* end confdefs.h. */ 8506 8507 int 8508 main () 8509 { 8510 8511 ; 8512 return 0; 8513 } 8514 _ACEOF 8515 if ac_fn_objc_try_compile "$LINENO"; then : 8516 ac_cv_prog_objc_g=yes 8517 else 8518 OBJCFLAGS="" 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520 /* end confdefs.h. */ 8521 8522 int 8523 main () 8524 { 8525 8526 ; 8527 return 0; 8528 } 8529 _ACEOF 8530 if ac_fn_objc_try_compile "$LINENO"; then : 8531 8532 else 8533 ac_objc_werror_flag=$ac_save_objc_werror_flag 8534 OBJCFLAGS="-g" 8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8536 /* end confdefs.h. */ 8537 8538 int 8539 main () 8540 { 8541 8542 ; 8543 return 0; 8544 } 8545 _ACEOF 8546 if ac_fn_objc_try_compile "$LINENO"; then : 8547 ac_cv_prog_objc_g=yes 8548 fi 8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8550 fi 8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8552 fi 8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8554 ac_objc_werror_flag=$ac_save_objc_werror_flag 8555 fi 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 8557 $as_echo "$ac_cv_prog_objc_g" >&6; } 8558 if test "$ac_test_OBJCFLAGS" = set; then 8559 OBJCFLAGS=$ac_save_OBJCFLAGS 8560 elif test $ac_cv_prog_objc_g = yes; then 8561 if test "$GOBJC" = yes; then 8562 OBJCFLAGS="-g -O2" 8563 else 8564 OBJCFLAGS="-g" 8565 fi 8566 else 8567 if test "$GOBJC" = yes; then 8568 OBJCFLAGS="-O2" 8569 else 8570 OBJCFLAGS= 8571 fi 8572 fi 8573 ac_ext=cpp 8574 ac_cpp='$CXXCPP $CPPFLAGS' 8575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8578 8579 8580 # Translate "gcc -E" into "`which gcc` -E" ie 8581 # extract the full path to the binary and at the 8582 # same time maintain any arguments passed to it. 8583 # The command MUST exist in the path, or else! 8584 tmp="$OBJC" 8585 car="${tmp%% *}" 8586 tmp="$OBJC EOL" 8587 cdr="${tmp#* }" 8588 # On windows we want paths without spaces. 8589 if test "x$BUILD_OS" = "xwindows"; then 8590 8591 # Translate long cygdrive or C:\sdfsf path 8592 # into a short mixed mode path that has no 8593 # spaces in it. 8594 tmp="$car" 8595 if test "x$BUILD_OS" = "xwindows"; then 8596 tmp=`$CYGPATH -u "$car"` 8597 tmp=`which "$tmp"` 8598 # If file exists with .exe appended, that's the real filename 8599 # and cygpath needs that to convert to short style path. 8600 if test -f "${tmp}.exe"; then 8601 tmp="${tmp}.exe" 8602 elif test -f "${tmp}.cmd"; then 8603 tmp="${tmp}.cmd" 8604 fi 8605 # Convert to C:/ mixed style path without spaces. 8606 tmp=`$CYGPATH -s -m "$tmp"` 8607 fi 8608 car="$tmp" 8609 8610 else 8611 # "which" is not portable, but is used here 8612 # because we know that the command exists! 8613 car=`which $car` 8614 fi 8615 if test "x$cdr" != xEOL; then 8616 OBJC="$car ${cdr% *}" 8617 else 8618 OBJC="$car" 8619 fi 8620 8621 else 8622 OBJC= 8623 fi 8624 8625 # Restore the flags to the user specified values. 8626 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 8627 CFLAGS="$ORG_CFLAGS" 8628 CXXFLAGS="$ORG_CXXFLAGS" 8629 OBJCFLAGS="$ORG_OBJCFLAGS" 8630 8631 # If we are not cross compiling, use the same compilers for 8632 # building the build platform executables. 8633 if test "x$DEFINE_CROSS_COMPILE_ARCH" = x; then 8634 HOSTCC="$CC" 8635 HOSTCXX="$CXX" 8636 fi 8637 8638 if test -n "$ac_tool_prefix"; then 8639 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 8640 set dummy ${ac_tool_prefix}ld; ac_word=$2 8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8642 $as_echo_n "checking for $ac_word... " >&6; } 8643 if test "${ac_cv_prog_LD+set}" = set; then : 8644 $as_echo_n "(cached) " >&6 8645 else 8646 if test -n "$LD"; then 8647 ac_cv_prog_LD="$LD" # Let the user override the test. 8648 else 8649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8650 for as_dir in $PATH 8651 do 8652 IFS=$as_save_IFS 8653 test -z "$as_dir" && as_dir=. 8654 for ac_exec_ext in '' $ac_executable_extensions; do 8655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8656 ac_cv_prog_LD="${ac_tool_prefix}ld" 8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8658 break 2 8659 fi 8660 done 8661 done 8662 IFS=$as_save_IFS 8663 8664 fi 8665 fi 8666 LD=$ac_cv_prog_LD 8667 if test -n "$LD"; then 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8669 $as_echo "$LD" >&6; } 8670 else 8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8672 $as_echo "no" >&6; } 8673 fi 8674 8675 8676 fi 8677 if test -z "$ac_cv_prog_LD"; then 8678 ac_ct_LD=$LD 8679 # Extract the first word of "ld", so it can be a program name with args. 8680 set dummy ld; ac_word=$2 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8682 $as_echo_n "checking for $ac_word... " >&6; } 8683 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then : 8684 $as_echo_n "(cached) " >&6 8685 else 8686 if test -n "$ac_ct_LD"; then 8687 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 8688 else 8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8690 for as_dir in $PATH 8691 do 8692 IFS=$as_save_IFS 8693 test -z "$as_dir" && as_dir=. 8694 for ac_exec_ext in '' $ac_executable_extensions; do 8695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8696 ac_cv_prog_ac_ct_LD="ld" 8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8698 break 2 8699 fi 8700 done 8701 done 8702 IFS=$as_save_IFS 8703 8704 fi 8705 fi 8706 ac_ct_LD=$ac_cv_prog_ac_ct_LD 8707 if test -n "$ac_ct_LD"; then 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 8709 $as_echo "$ac_ct_LD" >&6; } 8710 else 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8712 $as_echo "no" >&6; } 8713 fi 8714 8715 if test "x$ac_ct_LD" = x; then 8716 LD="" 8717 else 8718 case $cross_compiling:$ac_tool_warned in 8719 yes:) 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8722 ac_tool_warned=yes ;; 8723 esac 8724 LD=$ac_ct_LD 8725 fi 8726 else 8727 LD="$ac_cv_prog_LD" 8728 fi 8729 8730 8731 # Translate "gcc -E" into "`which gcc` -E" ie 8732 # extract the full path to the binary and at the 8733 # same time maintain any arguments passed to it. 8734 # The command MUST exist in the path, or else! 8735 tmp="$LD" 8736 car="${tmp%% *}" 8737 tmp="$LD EOL" 8738 cdr="${tmp#* }" 8739 # On windows we want paths without spaces. 8740 if test "x$BUILD_OS" = "xwindows"; then 8741 8742 # Translate long cygdrive or C:\sdfsf path 8743 # into a short mixed mode path that has no 8744 # spaces in it. 8745 tmp="$car" 8746 if test "x$BUILD_OS" = "xwindows"; then 8747 tmp=`$CYGPATH -u "$car"` 8748 tmp=`which "$tmp"` 8749 # If file exists with .exe appended, that's the real filename 8750 # and cygpath needs that to convert to short style path. 8751 if test -f "${tmp}.exe"; then 8752 tmp="${tmp}.exe" 8753 elif test -f "${tmp}.cmd"; then 8754 tmp="${tmp}.cmd" 8755 fi 8756 # Convert to C:/ mixed style path without spaces. 8757 tmp=`$CYGPATH -s -m "$tmp"` 8758 fi 8759 car="$tmp" 8760 8761 else 8762 # "which" is not portable, but is used here 8763 # because we know that the command exists! 8764 car=`which $car` 8765 fi 8766 if test "x$cdr" != xEOL; then 8767 LD="$car ${cdr% *}" 8768 else 8769 LD="$car" 8770 fi 8771 8772 LDEXE="$LD" 8773 LDCXX="$LD" 8774 LDEXECXX="$LD" 8775 # LDEXE is the linker to use, when creating executables. 8776 8777 # Linking C++ libraries. 8778 8779 # Linking C++ executables. 8780 8781 8782 if test -n "$ac_tool_prefix"; then 8783 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8784 set dummy ${ac_tool_prefix}ar; ac_word=$2 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8786 $as_echo_n "checking for $ac_word... " >&6; } 8787 if test "${ac_cv_prog_AR+set}" = set; then : 8788 $as_echo_n "(cached) " >&6 8789 else 8790 if test -n "$AR"; then 8791 ac_cv_prog_AR="$AR" # Let the user override the test. 8792 else 8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8794 for as_dir in $PATH 8795 do 8796 IFS=$as_save_IFS 8797 test -z "$as_dir" && as_dir=. 8798 for ac_exec_ext in '' $ac_executable_extensions; do 8799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8800 ac_cv_prog_AR="${ac_tool_prefix}ar" 8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8802 break 2 8803 fi 8804 done 8805 done 8806 IFS=$as_save_IFS 8807 8808 fi 8809 fi 8810 AR=$ac_cv_prog_AR 8811 if test -n "$AR"; then 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8813 $as_echo "$AR" >&6; } 8814 else 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8816 $as_echo "no" >&6; } 8817 fi 8818 8819 8820 fi 8821 if test -z "$ac_cv_prog_AR"; then 8822 ac_ct_AR=$AR 8823 # Extract the first word of "ar", so it can be a program name with args. 8824 set dummy ar; ac_word=$2 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8826 $as_echo_n "checking for $ac_word... " >&6; } 8827 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 8828 $as_echo_n "(cached) " >&6 8829 else 8830 if test -n "$ac_ct_AR"; then 8831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8832 else 8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8834 for as_dir in $PATH 8835 do 8836 IFS=$as_save_IFS 8837 test -z "$as_dir" && as_dir=. 8838 for ac_exec_ext in '' $ac_executable_extensions; do 8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8840 ac_cv_prog_ac_ct_AR="ar" 8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8842 break 2 8843 fi 8844 done 8845 done 8846 IFS=$as_save_IFS 8847 8848 fi 8849 fi 8850 ac_ct_AR=$ac_cv_prog_ac_ct_AR 8851 if test -n "$ac_ct_AR"; then 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8853 $as_echo "$ac_ct_AR" >&6; } 8854 else 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8856 $as_echo "no" >&6; } 8857 fi 8858 8859 if test "x$ac_ct_AR" = x; then 8860 AR="" 8861 else 8862 case $cross_compiling:$ac_tool_warned in 8863 yes:) 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8866 ac_tool_warned=yes ;; 8867 esac 8868 AR=$ac_ct_AR 8869 fi 8870 else 8871 AR="$ac_cv_prog_AR" 8872 fi 8873 8874 8875 # Translate "gcc -E" into "`which gcc` -E" ie 8876 # extract the full path to the binary and at the 8877 # same time maintain any arguments passed to it. 8878 # The command MUST exist in the path, or else! 8879 tmp="$AR" 8880 car="${tmp%% *}" 8881 tmp="$AR EOL" 8882 cdr="${tmp#* }" 8883 # On windows we want paths without spaces. 8884 if test "x$BUILD_OS" = "xwindows"; then 8885 8886 # Translate long cygdrive or C:\sdfsf path 8887 # into a short mixed mode path that has no 8888 # spaces in it. 8889 tmp="$car" 8890 if test "x$BUILD_OS" = "xwindows"; then 8891 tmp=`$CYGPATH -u "$car"` 8892 tmp=`which "$tmp"` 8893 # If file exists with .exe appended, that's the real filename 8894 # and cygpath needs that to convert to short style path. 8895 if test -f "${tmp}.exe"; then 8896 tmp="${tmp}.exe" 8897 elif test -f "${tmp}.cmd"; then 8898 tmp="${tmp}.cmd" 8899 fi 8900 # Convert to C:/ mixed style path without spaces. 8901 tmp=`$CYGPATH -s -m "$tmp"` 8902 fi 8903 car="$tmp" 8904 8905 else 8906 # "which" is not portable, but is used here 8907 # because we know that the command exists! 8908 car=`which $car` 8909 fi 8910 if test "x$cdr" != xEOL; then 8911 AR="$car ${cdr% *}" 8912 else 8913 AR="$car" 8914 fi 8915 8916 if test "x$BUILD_OS" = xmacosx; then 8917 ARFLAGS="-r" 8918 else 8919 ARFLAGS="" 8920 fi 8921 8922 8923 COMPILER_NAME=gcc 8924 COMPILER_TYPE=CC 8925 if test "x$BUILD_OS" = xwindows; then : 8926 8927 # For now, assume that we are always compiling using cl.exe. 8928 CC_OUT_OPTION=-Fo 8929 EXE_OUT_OPTION=-Fe 8930 LD_OUT_OPTION=-out: 8931 AR_OUT_OPTION=-out: 8932 # On Windows, reject /usr/bin/link, which is a cygwin 8933 # program for something completely different. 8934 # Extract the first word of "link", so it can be a program name with args. 8935 set dummy link; ac_word=$2 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8937 $as_echo_n "checking for $ac_word... " >&6; } 8938 if test "${ac_cv_prog_WINLD+set}" = set; then : 8939 $as_echo_n "(cached) " >&6 8940 else 8941 if test -n "$WINLD"; then 8942 ac_cv_prog_WINLD="$WINLD" # Let the user override the test. 8943 else 8944 ac_prog_rejected=no 8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8946 for as_dir in $PATH 8947 do 8948 IFS=$as_save_IFS 8949 test -z "$as_dir" && as_dir=. 8950 for ac_exec_ext in '' $ac_executable_extensions; do 8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/link"; then 8953 ac_prog_rejected=yes 8954 continue 8955 fi 8956 ac_cv_prog_WINLD="link" 8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8958 break 2 8959 fi 8960 done 8961 done 8962 IFS=$as_save_IFS 8963 8964 if test $ac_prog_rejected = yes; then 8965 # We found a bogon in the path, so make sure we never use it. 8966 set dummy $ac_cv_prog_WINLD 8967 shift 8968 if test $# != 0; then 8969 # We chose a different compiler from the bogus one. 8970 # However, it has the same basename, so the bogon will be chosen 8971 # first if we set WINLD to just the basename; use the full file name. 8972 shift 8973 ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@" 8974 fi 8975 fi 8976 fi 8977 fi 8978 WINLD=$ac_cv_prog_WINLD 8979 if test -n "$WINLD"; then 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5 8981 $as_echo "$WINLD" >&6; } 8982 else 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8984 $as_echo "no" >&6; } 8985 fi 8986 8987 8988 # Since we must ignore the first found link, WINLD will contain 8989 # the full path to the link.exe program. 8990 8991 # Translate long cygdrive or C:\sdfsf path 8992 # into a short mixed mode path that has no 8993 # spaces in it. 8994 tmp="$WINLD" 8995 if test "x$BUILD_OS" = "xwindows"; then 8996 tmp=`$CYGPATH -u "$WINLD"` 8997 tmp=`which "$tmp"` 8998 # If file exists with .exe appended, that's the real filename 8999 # and cygpath needs that to convert to short style path. 9000 if test -f "${tmp}.exe"; then 9001 tmp="${tmp}.exe" 9002 elif test -f "${tmp}.cmd"; then 9003 tmp="${tmp}.cmd" 9004 fi 9005 # Convert to C:/ mixed style path without spaces. 9006 tmp=`$CYGPATH -s -m "$tmp"` 9007 fi 9008 WINLD="$tmp" 9009 9010 LD="$WINLD" 9011 # However creating executables can only be done with cl.exe. 9012 LDEXE="$CC" 9013 LDCXX="$WINLD" 9014 LDEXECXX="$CC" 9015 9016 # Extract the first word of "mt", so it can be a program name with args. 9017 set dummy mt; ac_word=$2 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9019 $as_echo_n "checking for $ac_word... " >&6; } 9020 if test "${ac_cv_prog_MT+set}" = set; then : 9021 $as_echo_n "(cached) " >&6 9022 else 9023 if test -n "$MT"; then 9024 ac_cv_prog_MT="$MT" # Let the user override the test. 9025 else 9026 ac_prog_rejected=no 9027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9028 for as_dir in $PATH 9029 do 9030 IFS=$as_save_IFS 9031 test -z "$as_dir" && as_dir=. 9032 for ac_exec_ext in '' $ac_executable_extensions; do 9033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 9035 ac_prog_rejected=yes 9036 continue 9037 fi 9038 ac_cv_prog_MT="mt" 9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9040 break 2 9041 fi 9042 done 9043 done 9044 IFS=$as_save_IFS 9045 9046 if test $ac_prog_rejected = yes; then 9047 # We found a bogon in the path, so make sure we never use it. 9048 set dummy $ac_cv_prog_MT 9049 shift 9050 if test $# != 0; then 9051 # We chose a different compiler from the bogus one. 9052 # However, it has the same basename, so the bogon will be chosen 9053 # first if we set MT to just the basename; use the full file name. 9054 shift 9055 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 9056 fi 9057 fi 9058 fi 9059 fi 9060 MT=$ac_cv_prog_MT 9061 if test -n "$MT"; then 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 9063 $as_echo "$MT" >&6; } 9064 else 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9066 $as_echo "no" >&6; } 9067 fi 9068 9069 9070 9071 # Translate long cygdrive or C:\sdfsf path 9072 # into a short mixed mode path that has no 9073 # spaces in it. 9074 tmp="$MT" 9075 if test "x$BUILD_OS" = "xwindows"; then 9076 tmp=`$CYGPATH -u "$MT"` 9077 tmp=`which "$tmp"` 9078 # If file exists with .exe appended, that's the real filename 9079 # and cygpath needs that to convert to short style path. 9080 if test -f "${tmp}.exe"; then 9081 tmp="${tmp}.exe" 9082 elif test -f "${tmp}.cmd"; then 9083 tmp="${tmp}.cmd" 9084 fi 9085 # Convert to C:/ mixed style path without spaces. 9086 tmp=`$CYGPATH -s -m "$tmp"` 9087 fi 9088 MT="$tmp" 9089 9090 # The resource compiler 9091 # Extract the first word of "rc", so it can be a program name with args. 9092 set dummy rc; ac_word=$2 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9094 $as_echo_n "checking for $ac_word... " >&6; } 9095 if test "${ac_cv_prog_RC+set}" = set; then : 9096 $as_echo_n "(cached) " >&6 9097 else 9098 if test -n "$RC"; then 9099 ac_cv_prog_RC="$RC" # Let the user override the test. 9100 else 9101 ac_prog_rejected=no 9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9103 for as_dir in $PATH 9104 do 9105 IFS=$as_save_IFS 9106 test -z "$as_dir" && as_dir=. 9107 for ac_exec_ext in '' $ac_executable_extensions; do 9108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 9110 ac_prog_rejected=yes 9111 continue 9112 fi 9113 ac_cv_prog_RC="rc" 9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9115 break 2 9116 fi 9117 done 9118 done 9119 IFS=$as_save_IFS 9120 9121 if test $ac_prog_rejected = yes; then 9122 # We found a bogon in the path, so make sure we never use it. 9123 set dummy $ac_cv_prog_RC 9124 shift 9125 if test $# != 0; then 9126 # We chose a different compiler from the bogus one. 9127 # However, it has the same basename, so the bogon will be chosen 9128 # first if we set RC to just the basename; use the full file name. 9129 shift 9130 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 9131 fi 9132 fi 9133 fi 9134 fi 9135 RC=$ac_cv_prog_RC 9136 if test -n "$RC"; then 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 9138 $as_echo "$RC" >&6; } 9139 else 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9141 $as_echo "no" >&6; } 9142 fi 9143 9144 9145 9146 # Translate long cygdrive or C:\sdfsf path 9147 # into a short mixed mode path that has no 9148 # spaces in it. 9149 tmp="$RC" 9150 if test "x$BUILD_OS" = "xwindows"; then 9151 tmp=`$CYGPATH -u "$RC"` 9152 tmp=`which "$tmp"` 9153 # If file exists with .exe appended, that's the real filename 9154 # and cygpath needs that to convert to short style path. 9155 if test -f "${tmp}.exe"; then 9156 tmp="${tmp}.exe" 9157 elif test -f "${tmp}.cmd"; then 9158 tmp="${tmp}.cmd" 9159 fi 9160 # Convert to C:/ mixed style path without spaces. 9161 tmp=`$CYGPATH -s -m "$tmp"` 9162 fi 9163 RC="$tmp" 9164 9165 9166 RC_FLAGS="/l 0x409 /r" 9167 if test "x$VARIANT" = xOPT; then : 9168 9169 RC_FLAGS="$RC_FLAGS -d NDEBUG" 9170 9171 fi 9172 JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION 9173 if test "x$JDK_UPDATE_VERSION" = x; then : 9174 9175 JDK_UPDATE_VERSION_NOTNULL=0 9176 9177 fi 9178 RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\"" 9179 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\"" 9180 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\"" 9181 RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\"" 9182 RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\"" 9183 RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\"" 9184 RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\"" 9185 9186 # lib.exe is used to create static libraries. 9187 # Extract the first word of "lib", so it can be a program name with args. 9188 set dummy lib; ac_word=$2 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9190 $as_echo_n "checking for $ac_word... " >&6; } 9191 if test "${ac_cv_prog_WINAR+set}" = set; then : 9192 $as_echo_n "(cached) " >&6 9193 else 9194 if test -n "$WINAR"; then 9195 ac_cv_prog_WINAR="$WINAR" # Let the user override the test. 9196 else 9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9198 for as_dir in $PATH 9199 do 9200 IFS=$as_save_IFS 9201 test -z "$as_dir" && as_dir=. 9202 for ac_exec_ext in '' $ac_executable_extensions; do 9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9204 ac_cv_prog_WINAR="lib" 9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9206 break 2 9207 fi 9208 done 9209 done 9210 IFS=$as_save_IFS 9211 9212 fi 9213 fi 9214 WINAR=$ac_cv_prog_WINAR 9215 if test -n "$WINAR"; then 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5 9217 $as_echo "$WINAR" >&6; } 9218 else 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9220 $as_echo "no" >&6; } 9221 fi 9222 9223 9224 9225 # Translate long cygdrive or C:\sdfsf path 9226 # into a short mixed mode path that has no 9227 # spaces in it. 9228 tmp="$WINAR" 9229 if test "x$BUILD_OS" = "xwindows"; then 9230 tmp=`$CYGPATH -u "$WINAR"` 9231 tmp=`which "$tmp"` 9232 # If file exists with .exe appended, that's the real filename 9233 # and cygpath needs that to convert to short style path. 9234 if test -f "${tmp}.exe"; then 9235 tmp="${tmp}.exe" 9236 elif test -f "${tmp}.cmd"; then 9237 tmp="${tmp}.cmd" 9238 fi 9239 # Convert to C:/ mixed style path without spaces. 9240 tmp=`$CYGPATH -s -m "$tmp"` 9241 fi 9242 WINAR="$tmp" 9243 9244 AR="$WINAR" 9245 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 9246 9247 # Extract the first word of "dumpbin", so it can be a program name with args. 9248 set dummy dumpbin; ac_word=$2 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9250 $as_echo_n "checking for $ac_word... " >&6; } 9251 if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 9252 $as_echo_n "(cached) " >&6 9253 else 9254 if test -n "$DUMPBIN"; then 9255 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9256 else 9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9258 for as_dir in $PATH 9259 do 9260 IFS=$as_save_IFS 9261 test -z "$as_dir" && as_dir=. 9262 for ac_exec_ext in '' $ac_executable_extensions; do 9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9264 ac_cv_prog_DUMPBIN="dumpbin" 9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9266 break 2 9267 fi 9268 done 9269 done 9270 IFS=$as_save_IFS 9271 9272 fi 9273 fi 9274 DUMPBIN=$ac_cv_prog_DUMPBIN 9275 if test -n "$DUMPBIN"; then 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 9277 $as_echo "$DUMPBIN" >&6; } 9278 else 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9280 $as_echo "no" >&6; } 9281 fi 9282 9283 9284 9285 # Translate long cygdrive or C:\sdfsf path 9286 # into a short mixed mode path that has no 9287 # spaces in it. 9288 tmp="$DUMPBIN" 9289 if test "x$BUILD_OS" = "xwindows"; then 9290 tmp=`$CYGPATH -u "$DUMPBIN"` 9291 tmp=`which "$tmp"` 9292 # If file exists with .exe appended, that's the real filename 9293 # and cygpath needs that to convert to short style path. 9294 if test -f "${tmp}.exe"; then 9295 tmp="${tmp}.exe" 9296 elif test -f "${tmp}.cmd"; then 9297 tmp="${tmp}.cmd" 9298 fi 9299 # Convert to C:/ mixed style path without spaces. 9300 tmp=`$CYGPATH -s -m "$tmp"` 9301 fi 9302 DUMPBIN="$tmp" 9303 9304 9305 COMPILER_TYPE=CL 9306 CFLAGS="$CFLAGS -nologo" 9307 LDFLAGS="$LDFLAGS -nologo -dll -opt:ref -incremental:no " 9308 if test "x$LEGACY_HOST_CPU1" = xi586; then 9309 LDFLAGS="$LDFLAGS -safeseh" 9310 fi 9311 if test "x$DEBUG_LEVEL" != xrelease; then 9312 LDFLAGS="$LDFLAGS -debug" 9313 fi 9314 9315 fi 9316 9317 9318 9319 ac_ext=c 9320 ac_cpp='$CPP $CPPFLAGS' 9321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9323 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 9325 $as_echo_n "checking how to run the C preprocessor... " >&6; } 9326 # On Suns, sometimes $CPP names a directory. 9327 if test -n "$CPP" && test -d "$CPP"; then 9328 CPP= 9329 fi 9330 if test -z "$CPP"; then 9331 if test "${ac_cv_prog_CPP+set}" = set; then : 9332 $as_echo_n "(cached) " >&6 9333 else 9334 # Double quotes because CPP needs to be expanded 9335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 9336 do 9337 ac_preproc_ok=false 9338 for ac_c_preproc_warn_flag in '' yes 9339 do 9340 # Use a header file that comes with gcc, so configuring glibc 9341 # with a fresh cross-compiler works. 9342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9343 # <limits.h> exists even on freestanding compilers. 9344 # On the NeXT, cc -E runs the code through the compiler's parser, 9345 # not just through cpp. "Syntax error" is here to catch this case. 9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347 /* end confdefs.h. */ 9348 #ifdef __STDC__ 9349 # include <limits.h> 9350 #else 9351 # include <assert.h> 9352 #endif 9353 Syntax error 9354 _ACEOF 9355 if ac_fn_c_try_cpp "$LINENO"; then : 9356 9357 else 9358 # Broken: fails on valid input. 9359 continue 9360 fi 9361 rm -f conftest.err conftest.i conftest.$ac_ext 9362 9363 # OK, works on sane cases. Now check whether nonexistent headers 9364 # can be detected and how. 9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9366 /* end confdefs.h. */ 9367 #include <ac_nonexistent.h> 9368 _ACEOF 9369 if ac_fn_c_try_cpp "$LINENO"; then : 9370 # Broken: success on invalid input. 9371 continue 9372 else 9373 # Passes both tests. 9374 ac_preproc_ok=: 9375 break 9376 fi 9377 rm -f conftest.err conftest.i conftest.$ac_ext 9378 9379 done 9380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9381 rm -f conftest.i conftest.err conftest.$ac_ext 9382 if $ac_preproc_ok; then : 9383 break 9384 fi 9385 9386 done 9387 ac_cv_prog_CPP=$CPP 9388 9389 fi 9390 CPP=$ac_cv_prog_CPP 9391 else 9392 ac_cv_prog_CPP=$CPP 9393 fi 9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 9395 $as_echo "$CPP" >&6; } 9396 ac_preproc_ok=false 9397 for ac_c_preproc_warn_flag in '' yes 9398 do 9399 # Use a header file that comes with gcc, so configuring glibc 9400 # with a fresh cross-compiler works. 9401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9402 # <limits.h> exists even on freestanding compilers. 9403 # On the NeXT, cc -E runs the code through the compiler's parser, 9404 # not just through cpp. "Syntax error" is here to catch this case. 9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9406 /* end confdefs.h. */ 9407 #ifdef __STDC__ 9408 # include <limits.h> 9409 #else 9410 # include <assert.h> 9411 #endif 9412 Syntax error 9413 _ACEOF 9414 if ac_fn_c_try_cpp "$LINENO"; then : 9415 9416 else 9417 # Broken: fails on valid input. 9418 continue 9419 fi 9420 rm -f conftest.err conftest.i conftest.$ac_ext 9421 9422 # OK, works on sane cases. Now check whether nonexistent headers 9423 # can be detected and how. 9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9425 /* end confdefs.h. */ 9426 #include <ac_nonexistent.h> 9427 _ACEOF 9428 if ac_fn_c_try_cpp "$LINENO"; then : 9429 # Broken: success on invalid input. 9430 continue 9431 else 9432 # Passes both tests. 9433 ac_preproc_ok=: 9434 break 9435 fi 9436 rm -f conftest.err conftest.i conftest.$ac_ext 9437 9438 done 9439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9440 rm -f conftest.i conftest.err conftest.$ac_ext 9441 if $ac_preproc_ok; then : 9442 9443 else 9444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9446 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 9447 See \`config.log' for more details" "$LINENO" 5 ; } 9448 fi 9449 9450 ac_ext=cpp 9451 ac_cpp='$CXXCPP $CPPFLAGS' 9452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9455 9456 9457 # Translate "gcc -E" into "`which gcc` -E" ie 9458 # extract the full path to the binary and at the 9459 # same time maintain any arguments passed to it. 9460 # The command MUST exist in the path, or else! 9461 tmp="$CPP" 9462 car="${tmp%% *}" 9463 tmp="$CPP EOL" 9464 cdr="${tmp#* }" 9465 # On windows we want paths without spaces. 9466 if test "x$BUILD_OS" = "xwindows"; then 9467 9468 # Translate long cygdrive or C:\sdfsf path 9469 # into a short mixed mode path that has no 9470 # spaces in it. 9471 tmp="$car" 9472 if test "x$BUILD_OS" = "xwindows"; then 9473 tmp=`$CYGPATH -u "$car"` 9474 tmp=`which "$tmp"` 9475 # If file exists with .exe appended, that's the real filename 9476 # and cygpath needs that to convert to short style path. 9477 if test -f "${tmp}.exe"; then 9478 tmp="${tmp}.exe" 9479 elif test -f "${tmp}.cmd"; then 9480 tmp="${tmp}.cmd" 9481 fi 9482 # Convert to C:/ mixed style path without spaces. 9483 tmp=`$CYGPATH -s -m "$tmp"` 9484 fi 9485 car="$tmp" 9486 9487 else 9488 # "which" is not portable, but is used here 9489 # because we know that the command exists! 9490 car=`which $car` 9491 fi 9492 if test "x$cdr" != xEOL; then 9493 CPP="$car ${cdr% *}" 9494 else 9495 CPP="$car" 9496 fi 9497 9498 9499 ac_ext=cpp 9500 ac_cpp='$CXXCPP $CPPFLAGS' 9501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 9505 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 9506 if test -z "$CXXCPP"; then 9507 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 9508 $as_echo_n "(cached) " >&6 9509 else 9510 # Double quotes because CXXCPP needs to be expanded 9511 for CXXCPP in "$CXX -E" "/lib/cpp" 9512 do 9513 ac_preproc_ok=false 9514 for ac_cxx_preproc_warn_flag in '' yes 9515 do 9516 # Use a header file that comes with gcc, so configuring glibc 9517 # with a fresh cross-compiler works. 9518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9519 # <limits.h> exists even on freestanding compilers. 9520 # On the NeXT, cc -E runs the code through the compiler's parser, 9521 # not just through cpp. "Syntax error" is here to catch this case. 9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523 /* end confdefs.h. */ 9524 #ifdef __STDC__ 9525 # include <limits.h> 9526 #else 9527 # include <assert.h> 9528 #endif 9529 Syntax error 9530 _ACEOF 9531 if ac_fn_cxx_try_cpp "$LINENO"; then : 9532 9533 else 9534 # Broken: fails on valid input. 9535 continue 9536 fi 9537 rm -f conftest.err conftest.i conftest.$ac_ext 9538 9539 # OK, works on sane cases. Now check whether nonexistent headers 9540 # can be detected and how. 9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9542 /* end confdefs.h. */ 9543 #include <ac_nonexistent.h> 9544 _ACEOF 9545 if ac_fn_cxx_try_cpp "$LINENO"; then : 9546 # Broken: success on invalid input. 9547 continue 9548 else 9549 # Passes both tests. 9550 ac_preproc_ok=: 9551 break 9552 fi 9553 rm -f conftest.err conftest.i conftest.$ac_ext 9554 9555 done 9556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9557 rm -f conftest.i conftest.err conftest.$ac_ext 9558 if $ac_preproc_ok; then : 9559 break 9560 fi 9561 9562 done 9563 ac_cv_prog_CXXCPP=$CXXCPP 9564 9565 fi 9566 CXXCPP=$ac_cv_prog_CXXCPP 9567 else 9568 ac_cv_prog_CXXCPP=$CXXCPP 9569 fi 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 9571 $as_echo "$CXXCPP" >&6; } 9572 ac_preproc_ok=false 9573 for ac_cxx_preproc_warn_flag in '' yes 9574 do 9575 # Use a header file that comes with gcc, so configuring glibc 9576 # with a fresh cross-compiler works. 9577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9578 # <limits.h> exists even on freestanding compilers. 9579 # On the NeXT, cc -E runs the code through the compiler's parser, 9580 # not just through cpp. "Syntax error" is here to catch this case. 9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9582 /* end confdefs.h. */ 9583 #ifdef __STDC__ 9584 # include <limits.h> 9585 #else 9586 # include <assert.h> 9587 #endif 9588 Syntax error 9589 _ACEOF 9590 if ac_fn_cxx_try_cpp "$LINENO"; then : 9591 9592 else 9593 # Broken: fails on valid input. 9594 continue 9595 fi 9596 rm -f conftest.err conftest.i conftest.$ac_ext 9597 9598 # OK, works on sane cases. Now check whether nonexistent headers 9599 # can be detected and how. 9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9601 /* end confdefs.h. */ 9602 #include <ac_nonexistent.h> 9603 _ACEOF 9604 if ac_fn_cxx_try_cpp "$LINENO"; then : 9605 # Broken: success on invalid input. 9606 continue 9607 else 9608 # Passes both tests. 9609 ac_preproc_ok=: 9610 break 9611 fi 9612 rm -f conftest.err conftest.i conftest.$ac_ext 9613 9614 done 9615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9616 rm -f conftest.i conftest.err conftest.$ac_ext 9617 if $ac_preproc_ok; then : 9618 9619 else 9620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9622 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 9623 See \`config.log' for more details" "$LINENO" 5 ; } 9624 fi 9625 9626 ac_ext=cpp 9627 ac_cpp='$CXXCPP $CPPFLAGS' 9628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9631 9632 9633 # Translate "gcc -E" into "`which gcc` -E" ie 9634 # extract the full path to the binary and at the 9635 # same time maintain any arguments passed to it. 9636 # The command MUST exist in the path, or else! 9637 tmp="$CXXCPP" 9638 car="${tmp%% *}" 9639 tmp="$CXXCPP EOL" 9640 cdr="${tmp#* }" 9641 # On windows we want paths without spaces. 9642 if test "x$BUILD_OS" = "xwindows"; then 9643 9644 # Translate long cygdrive or C:\sdfsf path 9645 # into a short mixed mode path that has no 9646 # spaces in it. 9647 tmp="$car" 9648 if test "x$BUILD_OS" = "xwindows"; then 9649 tmp=`$CYGPATH -u "$car"` 9650 tmp=`which "$tmp"` 9651 # If file exists with .exe appended, that's the real filename 9652 # and cygpath needs that to convert to short style path. 9653 if test -f "${tmp}.exe"; then 9654 tmp="${tmp}.exe" 9655 elif test -f "${tmp}.cmd"; then 9656 tmp="${tmp}.cmd" 9657 fi 9658 # Convert to C:/ mixed style path without spaces. 9659 tmp=`$CYGPATH -s -m "$tmp"` 9660 fi 9661 car="$tmp" 9662 9663 else 9664 # "which" is not portable, but is used here 9665 # because we know that the command exists! 9666 car=`which $car` 9667 fi 9668 if test "x$cdr" != xEOL; then 9669 CXXCPP="$car ${cdr% *}" 9670 else 9671 CXXCPP="$car" 9672 fi 9673 9674 9675 # Find the right assembler. 9676 if test "x$BUILD_OS" = xsolaris; then 9677 # Extract the first word of "as", so it can be a program name with args. 9678 set dummy as; ac_word=$2 9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9680 $as_echo_n "checking for $ac_word... " >&6; } 9681 if test "${ac_cv_path_AS+set}" = set; then : 9682 $as_echo_n "(cached) " >&6 9683 else 9684 case $AS in 9685 [\\/]* | ?:[\\/]*) 9686 ac_cv_path_AS="$AS" # Let the user override the test with a path. 9687 ;; 9688 *) 9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9690 for as_dir in $PATH 9691 do 9692 IFS=$as_save_IFS 9693 test -z "$as_dir" && as_dir=. 9694 for ac_exec_ext in '' $ac_executable_extensions; do 9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9696 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9698 break 2 9699 fi 9700 done 9701 done 9702 IFS=$as_save_IFS 9703 9704 ;; 9705 esac 9706 fi 9707 AS=$ac_cv_path_AS 9708 if test -n "$AS"; then 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9710 $as_echo "$AS" >&6; } 9711 else 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9713 $as_echo "no" >&6; } 9714 fi 9715 9716 9717 9718 # Translate "gcc -E" into "`which gcc` -E" ie 9719 # extract the full path to the binary and at the 9720 # same time maintain any arguments passed to it. 9721 # The command MUST exist in the path, or else! 9722 tmp="$AS" 9723 car="${tmp%% *}" 9724 tmp="$AS EOL" 9725 cdr="${tmp#* }" 9726 # On windows we want paths without spaces. 9727 if test "x$BUILD_OS" = "xwindows"; then 9728 9729 # Translate long cygdrive or C:\sdfsf path 9730 # into a short mixed mode path that has no 9731 # spaces in it. 9732 tmp="$car" 9733 if test "x$BUILD_OS" = "xwindows"; then 9734 tmp=`$CYGPATH -u "$car"` 9735 tmp=`which "$tmp"` 9736 # If file exists with .exe appended, that's the real filename 9737 # and cygpath needs that to convert to short style path. 9738 if test -f "${tmp}.exe"; then 9739 tmp="${tmp}.exe" 9740 elif test -f "${tmp}.cmd"; then 9741 tmp="${tmp}.cmd" 9742 fi 9743 # Convert to C:/ mixed style path without spaces. 9744 tmp=`$CYGPATH -s -m "$tmp"` 9745 fi 9746 car="$tmp" 9747 9748 else 9749 # "which" is not portable, but is used here 9750 # because we know that the command exists! 9751 car=`which $car` 9752 fi 9753 if test "x$cdr" != xEOL; then 9754 AS="$car ${cdr% *}" 9755 else 9756 AS="$car" 9757 fi 9758 9759 ASFLAGS=" " 9760 else 9761 AS="$CC -c" 9762 ASFLAGS=" " 9763 fi 9764 9765 9766 9767 if test "x$HOST_CPU_BITS" = x32 && test "x$HOST_OS" = macosx; then 9768 # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned. 9769 # While waiting for a better solution, the current workaround is to use -mstackrealign. 9770 CFLAGS="$CFLAGS -mstackrealign" 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5 9772 $as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; } 9773 9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775 /* end confdefs.h. */ 9776 int main() { return 0; } 9777 _ACEOF 9778 if ac_fn_cxx_try_link "$LINENO"; then : 9779 9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9781 $as_echo "yes" >&6; } 9782 9783 else 9784 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9786 $as_echo "no" >&6; } 9787 as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5 9788 9789 fi 9790 rm -f core conftest.err conftest.$ac_objext \ 9791 conftest$ac_exeext conftest.$ac_ext 9792 fi 9793 9794 if test "x$BUILD_OS" = xsolaris; then 9795 # Extract the first word of "nm", so it can be a program name with args. 9796 set dummy nm; ac_word=$2 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9798 $as_echo_n "checking for $ac_word... " >&6; } 9799 if test "${ac_cv_path_NM+set}" = set; then : 9800 $as_echo_n "(cached) " >&6 9801 else 9802 case $NM in 9803 [\\/]* | ?:[\\/]*) 9804 ac_cv_path_NM="$NM" # Let the user override the test with a path. 9805 ;; 9806 *) 9807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9808 for as_dir in $PATH 9809 do 9810 IFS=$as_save_IFS 9811 test -z "$as_dir" && as_dir=. 9812 for ac_exec_ext in '' $ac_executable_extensions; do 9813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9814 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 9815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9816 break 2 9817 fi 9818 done 9819 done 9820 IFS=$as_save_IFS 9821 9822 ;; 9823 esac 9824 fi 9825 NM=$ac_cv_path_NM 9826 if test -n "$NM"; then 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 9828 $as_echo "$NM" >&6; } 9829 else 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9831 $as_echo "no" >&6; } 9832 fi 9833 9834 9835 9836 # Translate "gcc -E" into "`which gcc` -E" ie 9837 # extract the full path to the binary and at the 9838 # same time maintain any arguments passed to it. 9839 # The command MUST exist in the path, or else! 9840 tmp="$NM" 9841 car="${tmp%% *}" 9842 tmp="$NM EOL" 9843 cdr="${tmp#* }" 9844 # On windows we want paths without spaces. 9845 if test "x$BUILD_OS" = "xwindows"; then 9846 9847 # Translate long cygdrive or C:\sdfsf path 9848 # into a short mixed mode path that has no 9849 # spaces in it. 9850 tmp="$car" 9851 if test "x$BUILD_OS" = "xwindows"; then 9852 tmp=`$CYGPATH -u "$car"` 9853 tmp=`which "$tmp"` 9854 # If file exists with .exe appended, that's the real filename 9855 # and cygpath needs that to convert to short style path. 9856 if test -f "${tmp}.exe"; then 9857 tmp="${tmp}.exe" 9858 elif test -f "${tmp}.cmd"; then 9859 tmp="${tmp}.cmd" 9860 fi 9861 # Convert to C:/ mixed style path without spaces. 9862 tmp=`$CYGPATH -s -m "$tmp"` 9863 fi 9864 car="$tmp" 9865 9866 else 9867 # "which" is not portable, but is used here 9868 # because we know that the command exists! 9869 car=`which $car` 9870 fi 9871 if test "x$cdr" != xEOL; then 9872 NM="$car ${cdr% *}" 9873 else 9874 NM="$car" 9875 fi 9876 9877 # Extract the first word of "strip", so it can be a program name with args. 9878 set dummy strip; ac_word=$2 9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9880 $as_echo_n "checking for $ac_word... " >&6; } 9881 if test "${ac_cv_path_STRIP+set}" = set; then : 9882 $as_echo_n "(cached) " >&6 9883 else 9884 case $STRIP in 9885 [\\/]* | ?:[\\/]*) 9886 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 9887 ;; 9888 *) 9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9890 for as_dir in $PATH 9891 do 9892 IFS=$as_save_IFS 9893 test -z "$as_dir" && as_dir=. 9894 for ac_exec_ext in '' $ac_executable_extensions; do 9895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9896 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9898 break 2 9899 fi 9900 done 9901 done 9902 IFS=$as_save_IFS 9903 9904 ;; 9905 esac 9906 fi 9907 STRIP=$ac_cv_path_STRIP 9908 if test -n "$STRIP"; then 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9910 $as_echo "$STRIP" >&6; } 9911 else 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9913 $as_echo "no" >&6; } 9914 fi 9915 9916 9917 9918 # Translate "gcc -E" into "`which gcc` -E" ie 9919 # extract the full path to the binary and at the 9920 # same time maintain any arguments passed to it. 9921 # The command MUST exist in the path, or else! 9922 tmp="$STRIP" 9923 car="${tmp%% *}" 9924 tmp="$STRIP EOL" 9925 cdr="${tmp#* }" 9926 # On windows we want paths without spaces. 9927 if test "x$BUILD_OS" = "xwindows"; then 9928 9929 # Translate long cygdrive or C:\sdfsf path 9930 # into a short mixed mode path that has no 9931 # spaces in it. 9932 tmp="$car" 9933 if test "x$BUILD_OS" = "xwindows"; then 9934 tmp=`$CYGPATH -u "$car"` 9935 tmp=`which "$tmp"` 9936 # If file exists with .exe appended, that's the real filename 9937 # and cygpath needs that to convert to short style path. 9938 if test -f "${tmp}.exe"; then 9939 tmp="${tmp}.exe" 9940 elif test -f "${tmp}.cmd"; then 9941 tmp="${tmp}.cmd" 9942 fi 9943 # Convert to C:/ mixed style path without spaces. 9944 tmp=`$CYGPATH -s -m "$tmp"` 9945 fi 9946 car="$tmp" 9947 9948 else 9949 # "which" is not portable, but is used here 9950 # because we know that the command exists! 9951 car=`which $car` 9952 fi 9953 if test "x$cdr" != xEOL; then 9954 STRIP="$car ${cdr% *}" 9955 else 9956 STRIP="$car" 9957 fi 9958 9959 # Extract the first word of "mcs", so it can be a program name with args. 9960 set dummy mcs; ac_word=$2 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9962 $as_echo_n "checking for $ac_word... " >&6; } 9963 if test "${ac_cv_path_MCS+set}" = set; then : 9964 $as_echo_n "(cached) " >&6 9965 else 9966 case $MCS in 9967 [\\/]* | ?:[\\/]*) 9968 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 9969 ;; 9970 *) 9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9972 for as_dir in $PATH 9973 do 9974 IFS=$as_save_IFS 9975 test -z "$as_dir" && as_dir=. 9976 for ac_exec_ext in '' $ac_executable_extensions; do 9977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9978 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9980 break 2 9981 fi 9982 done 9983 done 9984 IFS=$as_save_IFS 9985 9986 ;; 9987 esac 9988 fi 9989 MCS=$ac_cv_path_MCS 9990 if test -n "$MCS"; then 9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 9992 $as_echo "$MCS" >&6; } 9993 else 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9995 $as_echo "no" >&6; } 9996 fi 9997 9998 9999 10000 # Translate "gcc -E" into "`which gcc` -E" ie 10001 # extract the full path to the binary and at the 10002 # same time maintain any arguments passed to it. 10003 # The command MUST exist in the path, or else! 10004 tmp="$MCS" 10005 car="${tmp%% *}" 10006 tmp="$MCS EOL" 10007 cdr="${tmp#* }" 10008 # On windows we want paths without spaces. 10009 if test "x$BUILD_OS" = "xwindows"; then 10010 10011 # Translate long cygdrive or C:\sdfsf path 10012 # into a short mixed mode path that has no 10013 # spaces in it. 10014 tmp="$car" 10015 if test "x$BUILD_OS" = "xwindows"; then 10016 tmp=`$CYGPATH -u "$car"` 10017 tmp=`which "$tmp"` 10018 # If file exists with .exe appended, that's the real filename 10019 # and cygpath needs that to convert to short style path. 10020 if test -f "${tmp}.exe"; then 10021 tmp="${tmp}.exe" 10022 elif test -f "${tmp}.cmd"; then 10023 tmp="${tmp}.cmd" 10024 fi 10025 # Convert to C:/ mixed style path without spaces. 10026 tmp=`$CYGPATH -s -m "$tmp"` 10027 fi 10028 car="$tmp" 10029 10030 else 10031 # "which" is not portable, but is used here 10032 # because we know that the command exists! 10033 car=`which $car` 10034 fi 10035 if test "x$cdr" != xEOL; then 10036 MCS="$car ${cdr% *}" 10037 else 10038 MCS="$car" 10039 fi 10040 10041 else 10042 if test -n "$ac_tool_prefix"; then 10043 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 10044 set dummy ${ac_tool_prefix}nm; ac_word=$2 10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10046 $as_echo_n "checking for $ac_word... " >&6; } 10047 if test "${ac_cv_prog_NM+set}" = set; then : 10048 $as_echo_n "(cached) " >&6 10049 else 10050 if test -n "$NM"; then 10051 ac_cv_prog_NM="$NM" # Let the user override the test. 10052 else 10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10054 for as_dir in $PATH 10055 do 10056 IFS=$as_save_IFS 10057 test -z "$as_dir" && as_dir=. 10058 for ac_exec_ext in '' $ac_executable_extensions; do 10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10060 ac_cv_prog_NM="${ac_tool_prefix}nm" 10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10062 break 2 10063 fi 10064 done 10065 done 10066 IFS=$as_save_IFS 10067 10068 fi 10069 fi 10070 NM=$ac_cv_prog_NM 10071 if test -n "$NM"; then 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 10073 $as_echo "$NM" >&6; } 10074 else 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10076 $as_echo "no" >&6; } 10077 fi 10078 10079 10080 fi 10081 if test -z "$ac_cv_prog_NM"; then 10082 ac_ct_NM=$NM 10083 # Extract the first word of "nm", so it can be a program name with args. 10084 set dummy nm; ac_word=$2 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10086 $as_echo_n "checking for $ac_word... " >&6; } 10087 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : 10088 $as_echo_n "(cached) " >&6 10089 else 10090 if test -n "$ac_ct_NM"; then 10091 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 10092 else 10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10094 for as_dir in $PATH 10095 do 10096 IFS=$as_save_IFS 10097 test -z "$as_dir" && as_dir=. 10098 for ac_exec_ext in '' $ac_executable_extensions; do 10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10100 ac_cv_prog_ac_ct_NM="nm" 10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10102 break 2 10103 fi 10104 done 10105 done 10106 IFS=$as_save_IFS 10107 10108 fi 10109 fi 10110 ac_ct_NM=$ac_cv_prog_ac_ct_NM 10111 if test -n "$ac_ct_NM"; then 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 10113 $as_echo "$ac_ct_NM" >&6; } 10114 else 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10116 $as_echo "no" >&6; } 10117 fi 10118 10119 if test "x$ac_ct_NM" = x; then 10120 NM="" 10121 else 10122 case $cross_compiling:$ac_tool_warned in 10123 yes:) 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10126 ac_tool_warned=yes ;; 10127 esac 10128 NM=$ac_ct_NM 10129 fi 10130 else 10131 NM="$ac_cv_prog_NM" 10132 fi 10133 10134 10135 # Translate "gcc -E" into "`which gcc` -E" ie 10136 # extract the full path to the binary and at the 10137 # same time maintain any arguments passed to it. 10138 # The command MUST exist in the path, or else! 10139 tmp="$NM" 10140 car="${tmp%% *}" 10141 tmp="$NM EOL" 10142 cdr="${tmp#* }" 10143 # On windows we want paths without spaces. 10144 if test "x$BUILD_OS" = "xwindows"; then 10145 10146 # Translate long cygdrive or C:\sdfsf path 10147 # into a short mixed mode path that has no 10148 # spaces in it. 10149 tmp="$car" 10150 if test "x$BUILD_OS" = "xwindows"; then 10151 tmp=`$CYGPATH -u "$car"` 10152 tmp=`which "$tmp"` 10153 # If file exists with .exe appended, that's the real filename 10154 # and cygpath needs that to convert to short style path. 10155 if test -f "${tmp}.exe"; then 10156 tmp="${tmp}.exe" 10157 elif test -f "${tmp}.cmd"; then 10158 tmp="${tmp}.cmd" 10159 fi 10160 # Convert to C:/ mixed style path without spaces. 10161 tmp=`$CYGPATH -s -m "$tmp"` 10162 fi 10163 car="$tmp" 10164 10165 else 10166 # "which" is not portable, but is used here 10167 # because we know that the command exists! 10168 car=`which $car` 10169 fi 10170 if test "x$cdr" != xEOL; then 10171 NM="$car ${cdr% *}" 10172 else 10173 NM="$car" 10174 fi 10175 10176 if test -n "$ac_tool_prefix"; then 10177 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10178 set dummy ${ac_tool_prefix}strip; ac_word=$2 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10180 $as_echo_n "checking for $ac_word... " >&6; } 10181 if test "${ac_cv_prog_STRIP+set}" = set; then : 10182 $as_echo_n "(cached) " >&6 10183 else 10184 if test -n "$STRIP"; then 10185 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10186 else 10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10188 for as_dir in $PATH 10189 do 10190 IFS=$as_save_IFS 10191 test -z "$as_dir" && as_dir=. 10192 for ac_exec_ext in '' $ac_executable_extensions; do 10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10194 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10196 break 2 10197 fi 10198 done 10199 done 10200 IFS=$as_save_IFS 10201 10202 fi 10203 fi 10204 STRIP=$ac_cv_prog_STRIP 10205 if test -n "$STRIP"; then 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10207 $as_echo "$STRIP" >&6; } 10208 else 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10210 $as_echo "no" >&6; } 10211 fi 10212 10213 10214 fi 10215 if test -z "$ac_cv_prog_STRIP"; then 10216 ac_ct_STRIP=$STRIP 10217 # Extract the first word of "strip", so it can be a program name with args. 10218 set dummy strip; ac_word=$2 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10220 $as_echo_n "checking for $ac_word... " >&6; } 10221 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 10222 $as_echo_n "(cached) " >&6 10223 else 10224 if test -n "$ac_ct_STRIP"; then 10225 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10226 else 10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10228 for as_dir in $PATH 10229 do 10230 IFS=$as_save_IFS 10231 test -z "$as_dir" && as_dir=. 10232 for ac_exec_ext in '' $ac_executable_extensions; do 10233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10234 ac_cv_prog_ac_ct_STRIP="strip" 10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10236 break 2 10237 fi 10238 done 10239 done 10240 IFS=$as_save_IFS 10241 10242 fi 10243 fi 10244 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10245 if test -n "$ac_ct_STRIP"; then 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10247 $as_echo "$ac_ct_STRIP" >&6; } 10248 else 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10250 $as_echo "no" >&6; } 10251 fi 10252 10253 if test "x$ac_ct_STRIP" = x; then 10254 STRIP="" 10255 else 10256 case $cross_compiling:$ac_tool_warned in 10257 yes:) 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10260 ac_tool_warned=yes ;; 10261 esac 10262 STRIP=$ac_ct_STRIP 10263 fi 10264 else 10265 STRIP="$ac_cv_prog_STRIP" 10266 fi 10267 10268 10269 # Translate "gcc -E" into "`which gcc` -E" ie 10270 # extract the full path to the binary and at the 10271 # same time maintain any arguments passed to it. 10272 # The command MUST exist in the path, or else! 10273 tmp="$STRIP" 10274 car="${tmp%% *}" 10275 tmp="$STRIP EOL" 10276 cdr="${tmp#* }" 10277 # On windows we want paths without spaces. 10278 if test "x$BUILD_OS" = "xwindows"; then 10279 10280 # Translate long cygdrive or C:\sdfsf path 10281 # into a short mixed mode path that has no 10282 # spaces in it. 10283 tmp="$car" 10284 if test "x$BUILD_OS" = "xwindows"; then 10285 tmp=`$CYGPATH -u "$car"` 10286 tmp=`which "$tmp"` 10287 # If file exists with .exe appended, that's the real filename 10288 # and cygpath needs that to convert to short style path. 10289 if test -f "${tmp}.exe"; then 10290 tmp="${tmp}.exe" 10291 elif test -f "${tmp}.cmd"; then 10292 tmp="${tmp}.cmd" 10293 fi 10294 # Convert to C:/ mixed style path without spaces. 10295 tmp=`$CYGPATH -s -m "$tmp"` 10296 fi 10297 car="$tmp" 10298 10299 else 10300 # "which" is not portable, but is used here 10301 # because we know that the command exists! 10302 car=`which $car` 10303 fi 10304 if test "x$cdr" != xEOL; then 10305 STRIP="$car ${cdr% *}" 10306 else 10307 STRIP="$car" 10308 fi 10309 10310 fi 10311 10312 # When using cygwin, we need a wrapper binary that renames 10313 # /cygdrive/c/ arguments into c:/ arguments and peeks into 10314 # @files and rewrites these too! This wrapper binary is 10315 # called uncygdrive.exe. 10316 UNCYGDRIVE= 10317 if test "x$BUILD_OS" = xwindows; then 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uncygdrive can be created" >&5 10319 $as_echo_n "checking if uncygdrive can be created... " >&6; } 10320 UNCYGDRIVE_SRC=`$CYGPATH -m $SRC_ROOT/common/src/uncygdrive.c` 10321 rm -f $OUTPUT_ROOT/uncygdrive* 10322 UNCYGDRIVE=`$CYGPATH -m $OUTPUT_ROOT/uncygdrive.exe` 10323 cd $OUTPUT_ROOT 10324 $CC $UNCYGDRIVE_SRC /Fe$UNCYGDRIVE > $OUTPUT_ROOT/uncygdrive1.log 2>&1 10325 cd $CURDIR 10326 10327 if test ! -x $OUTPUT_ROOT/uncygdrive.exe; then 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10329 $as_echo "no" >&6; } 10330 cat $OUTPUT_ROOT/uncygdrive1.log 10331 as_fn_error $? "Could not create $OUTPUT_ROOT/uncygdrive.exe" "$LINENO" 5 10332 fi 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCYGDRIVE" >&5 10334 $as_echo "$UNCYGDRIVE" >&6; } 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uncygdrive.exe works" >&5 10336 $as_echo_n "checking if uncygdrive.exe works... " >&6; } 10337 cd $OUTPUT_ROOT 10338 $UNCYGDRIVE $CC $SRC_ROOT/common/src/uncygdrive.c /Fe$OUTPUT_ROOT/uncygdrive2.exe > $OUTPUT_ROOT/uncygdrive2.log 2>&1 10339 cd $CURDIR 10340 if test ! -x $OUTPUT_ROOT/uncygdrive2.exe; then 10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10342 $as_echo "no" >&6; } 10343 cat $OUTPUT_ROOT/uncygdrive2.log 10344 as_fn_error $? "Uncygdrive did not work!" "$LINENO" 5 10345 fi 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10347 $as_echo "yes" >&6; } 10348 rm -f $OUTPUT_ROOT/uncygdrive?.??? $OUTPUT_ROOT/uncygdrive.obj 10349 fi 10350 10351 10352 10353 10354 # Check whether --enable-ccache was given. 10355 if test "${enable_ccache+set}" = set; then : 10356 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache} 10357 else 10358 ENABLE_CCACHE=yes 10359 fi 10360 10361 if test "x$ENABLE_CCACHE" = xyes; then 10362 # Extract the first word of "ccache", so it can be a program name with args. 10363 set dummy ccache; ac_word=$2 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10365 $as_echo_n "checking for $ac_word... " >&6; } 10366 if test "${ac_cv_path_CCACHE+set}" = set; then : 10367 $as_echo_n "(cached) " >&6 10368 else 10369 case $CCACHE in 10370 [\\/]* | ?:[\\/]*) 10371 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 10372 ;; 10373 *) 10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10375 for as_dir in $PATH 10376 do 10377 IFS=$as_save_IFS 10378 test -z "$as_dir" && as_dir=. 10379 for ac_exec_ext in '' $ac_executable_extensions; do 10380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10381 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10383 break 2 10384 fi 10385 done 10386 done 10387 IFS=$as_save_IFS 10388 10389 ;; 10390 esac 10391 fi 10392 CCACHE=$ac_cv_path_CCACHE 10393 if test -n "$CCACHE"; then 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 10395 $as_echo "$CCACHE" >&6; } 10396 else 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10398 $as_echo "no" >&6; } 10399 fi 10400 10401 10402 else 10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache" >&5 10404 $as_echo_n "checking for ccache... " >&6; } 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: explicitly disabled" >&5 10406 $as_echo "explicitly disabled" >&6; } 10407 CCACHE= 10408 fi 10409 10410 10411 10412 # Check whether --with-ccache-dir was given. 10413 if test "${with_ccache_dir+set}" = set; then : 10414 withval=$with_ccache_dir; 10415 fi 10416 10417 10418 if test "x$with_ccache_dir" != x; then 10419 # When using a non home ccache directory, assume the use is to share ccache files 10420 # with other users. Thus change the umask. 10421 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 10422 fi 10423 CCACHE_FOUND="" 10424 if test "x$CCACHE" != x; then 10425 10426 if test "x$CCACHE" != x; then 10427 CCACHE_FOUND="true" 10428 # Only use ccache if it is 3.1.4 or later, which supports 10429 # precompiled headers. 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 10431 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 10432 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 10433 if test "x$HAS_GOOD_CCACHE" = x; then 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 10435 $as_echo "no, disabling ccache" >&6; } 10436 CCACHE= 10437 else 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10439 $as_echo "yes" >&6; } 10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 10441 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 10442 PUSHED_FLAGS="$CXXFLAGS" 10443 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445 /* end confdefs.h. */ 10446 10447 int 10448 main () 10449 { 10450 10451 ; 10452 return 0; 10453 } 10454 _ACEOF 10455 if ac_fn_cxx_try_compile "$LINENO"; then : 10456 CC_KNOWS_CCACHE_TRICK=yes 10457 else 10458 CC_KNOWS_CCACHE_TRICK=no 10459 fi 10460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10461 CXXFLAGS="$PUSHED_FLAGS" 10462 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10464 $as_echo "yes" >&6; } 10465 else 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 10467 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 10468 CCACHE= 10469 fi 10470 fi 10471 fi 10472 10473 if test "x$CCACHE" != x; then 10474 CCACHE_SLOPPINESS=time_macros 10475 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 10476 CCACHE_FLAGS=-fpch-preprocess 10477 10478 if test "x$SET_CCACHE_DIR" != x; then 10479 mkdir -p $CCACHE_DIR > /dev/null 2>&1 10480 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 10481 fi 10482 fi 10483 10484 fi 10485 10486 10487 # Used on GNU/Linux systems, can be empty... 10488 #AC_PATH_PROG(ELFDUMP, elfdump) 10489 10490 # Setup default logging of stdout and stderr to build.log in the output root. 10491 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 10492 if test -x $SRC_ROOT/common/bin/logger.sh ; then 10493 BUILD_LOG_WRAPPER='$(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 10494 else 10495 BUILD_LOG_WRAPPER='$(SH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 10496 fi 10497 10498 10499 10500 ############################################################################### 10501 # 10502 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 10503 # (The JVM can use 32 or 64 bit Java pointers but that decision 10504 # is made at runtime.) 10505 # 10506 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10508 $as_echo_n "checking for ANSI C header files... " >&6; } 10509 if test "${ac_cv_header_stdc+set}" = set; then : 10510 $as_echo_n "(cached) " >&6 10511 else 10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10513 /* end confdefs.h. */ 10514 #include <stdlib.h> 10515 #include <stdarg.h> 10516 #include <string.h> 10517 #include <float.h> 10518 10519 int 10520 main () 10521 { 10522 10523 ; 10524 return 0; 10525 } 10526 _ACEOF 10527 if ac_fn_cxx_try_compile "$LINENO"; then : 10528 ac_cv_header_stdc=yes 10529 else 10530 ac_cv_header_stdc=no 10531 fi 10532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10533 10534 if test $ac_cv_header_stdc = yes; then 10535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10537 /* end confdefs.h. */ 10538 #include <string.h> 10539 10540 _ACEOF 10541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10542 $EGREP "memchr" >/dev/null 2>&1; then : 10543 10544 else 10545 ac_cv_header_stdc=no 10546 fi 10547 rm -f conftest* 10548 10549 fi 10550 10551 if test $ac_cv_header_stdc = yes; then 10552 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10554 /* end confdefs.h. */ 10555 #include <stdlib.h> 10556 10557 _ACEOF 10558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10559 $EGREP "free" >/dev/null 2>&1; then : 10560 10561 else 10562 ac_cv_header_stdc=no 10563 fi 10564 rm -f conftest* 10565 10566 fi 10567 10568 if test $ac_cv_header_stdc = yes; then 10569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10570 if test "$cross_compiling" = yes; then : 10571 : 10572 else 10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10574 /* end confdefs.h. */ 10575 #include <ctype.h> 10576 #include <stdlib.h> 10577 #if ((' ' & 0x0FF) == 0x020) 10578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10580 #else 10581 # define ISLOWER(c) \ 10582 (('a' <= (c) && (c) <= 'i') \ 10583 || ('j' <= (c) && (c) <= 'r') \ 10584 || ('s' <= (c) && (c) <= 'z')) 10585 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10586 #endif 10587 10588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10589 int 10590 main () 10591 { 10592 int i; 10593 for (i = 0; i < 256; i++) 10594 if (XOR (islower (i), ISLOWER (i)) 10595 || toupper (i) != TOUPPER (i)) 10596 return 2; 10597 return 0; 10598 } 10599 _ACEOF 10600 if ac_fn_cxx_try_run "$LINENO"; then : 10601 10602 else 10603 ac_cv_header_stdc=no 10604 fi 10605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10606 conftest.$ac_objext conftest.beam conftest.$ac_ext 10607 fi 10608 10609 fi 10610 fi 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10612 $as_echo "$ac_cv_header_stdc" >&6; } 10613 if test $ac_cv_header_stdc = yes; then 10614 10615 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 10616 10617 fi 10618 10619 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 10620 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10621 inttypes.h stdint.h unistd.h 10622 do : 10623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10624 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10625 " 10626 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10627 cat >>confdefs.h <<_ACEOF 10628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10629 _ACEOF 10630 10631 fi 10632 10633 done 10634 10635 10636 # The cast to long int works around a bug in the HP C Compiler 10637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10639 # This bug is HP SR number 8606223364. 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 10641 $as_echo_n "checking size of int *... " >&6; } 10642 if test "${ac_cv_sizeof_int_p+set}" = set; then : 10643 $as_echo_n "(cached) " >&6 10644 else 10645 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 10646 10647 else 10648 if test "$ac_cv_type_int_p" = yes; then 10649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10651 as_fn_error 77 "cannot compute sizeof (int *) 10652 See \`config.log' for more details" "$LINENO" 5 ; } 10653 else 10654 ac_cv_sizeof_int_p=0 10655 fi 10656 fi 10657 10658 fi 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 10660 $as_echo "$ac_cv_sizeof_int_p" >&6; } 10661 10662 10663 10664 cat >>confdefs.h <<_ACEOF 10665 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 10666 _ACEOF 10667 10668 10669 if test "x$ac_cv_sizeof_int_p" = x0; then 10670 # The test failed, lets pick the assumed value. 10671 ARCH_DATA_MODEL=$HOST_CPU_BITS 10672 else 10673 ARCH_DATA_MODEL=`expr 8 \* $ac_cv_sizeof_int_p` 10674 fi 10675 10676 if test "x$ARCH_DATA_MODEL" = x64; then 10677 A_LP64="LP64:=" 10678 ADD_LP64="-D_LP64=1" 10679 fi 10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host address size" >&5 10681 $as_echo_n "checking for host address size... " >&6; } 10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH_DATA_MODEL bits" >&5 10683 $as_echo "$ARCH_DATA_MODEL bits" >&6; } 10684 LP64=$A_LP64 10685 10686 10687 10688 if test "x$ARCH_DATA_MODEL" != "x$HOST_CPU_BITS"; then 10689 as_fn_error $? "The tested number of bits in the host ($ARCH_DATA_MODEL) differs from the number of bits expected to be found in the host ($HOST_CPU_BITS)" "$LINENO" 5 10690 fi 10691 10692 ############################################################################### 10693 # 10694 # Can the C/C++ compiler use precompiled headers? 10695 # 10696 # Check whether --enable-precompiled-headers was given. 10697 if test "${enable_precompiled_headers+set}" = set; then : 10698 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled-headers} 10699 else 10700 ENABLE_PRECOMPH=yes 10701 fi 10702 10703 10704 USE_PRECOMPILED_HEADER=1 10705 if test "x$ENABLE_PRECOMPH" = xno; then 10706 USE_PRECOMPILED_HEADER=0 10707 fi 10708 10709 if test "x$ENABLE_PRECOMPH" = xyes; then 10710 # Check that the compiler actually supports precomp headers. 10711 if test "x$GCC" = xyes; then 10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 10713 $as_echo_n "checking that precompiled headers work... " >&6; } 10714 echo "int alfa();" > conftest.h 10715 $CXX -x c++-header conftest.h -o conftest.hpp.gch 10716 if test ! -f conftest.hpp.gch; then 10717 echo Precompiled header is not working! 10718 USE_PRECOMPILED_HEADER=0 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10720 $as_echo "no" >&6; } 10721 else 10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10723 $as_echo "yes" >&6; } 10724 fi 10725 rm -f conftest.h 10726 fi 10727 fi 10728 10729 10730 10731 ############################################################################### 10732 # 10733 # How to compile shared libraries. 10734 # 10735 10736 if test "x$GCC" = xyes; then 10737 COMPILER_NAME=gcc 10738 PICFLAG="-fPIC" 10739 LIBRARY_PREFIX=lib 10740 SHARED_LIBRARY='lib$1.so' 10741 STATIC_LIBRARY='lib$1.a' 10742 SHARED_LIBRARY_FLAGS="-shared" 10743 SHARED_LIBRARY_SUFFIX='.so' 10744 STATIC_LIBRARY_SUFFIX='.a' 10745 OBJ_SUFFIX='.o' 10746 EXE_SUFFIX='' 10747 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 10748 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$(JDK_TOPDIR)/$1' 10749 SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN/$1' 10750 LD="$CC" 10751 LDEXE="$CC" 10752 LDCXX="$CXX" 10753 LDEXECXX="$CXX" 10754 10755 # Linking is different on MacOSX 10756 if test "x$BUILD_OS" = xmacosx; then 10757 # Might change in the future to clang. 10758 COMPILER_NAME=gcc 10759 SHARED_LIBRARY='lib$1.dylib' 10760 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 10761 SHARED_LIBRARY_SUFFIX='.dylib' 10762 EXE_SUFFIX='' 10763 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 10764 SET_SHARED_LIBRARY_MAPFILE='' 10765 SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 10766 fi 10767 else 10768 if test "x$BUILD_OS" = xsolaris; then 10769 # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler 10770 COMPILER_NAME=ossc 10771 PICFLAG="-KPIC" 10772 LIBRARY_PREFIX=lib 10773 SHARED_LIBRARY='lib$1.so' 10774 STATIC_LIBRARY='lib$1.a' 10775 SHARED_LIBRARY_FLAGS="-G" 10776 SHARED_LIBRARY_SUFFIX='.so' 10777 STATIC_LIBRARY_SUFFIX='.a' 10778 OBJ_SUFFIX='.o' 10779 EXE_SUFFIX='' 10780 SET_SHARED_LIBRARY_NAME='' 10781 SET_SHARED_LIBRARY_MAPFILE='-M $(JDK_TOPDIR)/$1' 10782 SET_SHARED_LIBRARY_ORIGIN='-R \$$$$ORIGIN/$1' 10783 CFLAGS_JDKLIB_EXTRA='-xstrconst -D__solaris__' 10784 fi 10785 if test "x$BUILD_OS" = xwindows; then 10786 # If it is not gcc, then assume it is the MS Visual Studio compiler 10787 COMPILER_NAME=cl 10788 PICFLAG="" 10789 LIBRARY_PREFIX= 10790 SHARED_LIBRARY='$1.dll' 10791 STATIC_LIBRARY='$1.lib' 10792 SHARED_LIBRARY_FLAGS="-LD" 10793 SHARED_LIBRARY_SUFFIX='.dll' 10794 STATIC_LIBRARY_SUFFIX='.lib' 10795 OBJ_SUFFIX='.obj' 10796 EXE_SUFFIX='.exe' 10797 SET_SHARED_LIBRARY_NAME='' 10798 SET_SHARED_LIBRARY_MAPFILE='' 10799 SET_SHARED_LIBRARY_ORIGIN='' 10800 fi 10801 fi 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 # The (cross) compiler is now configured, we can now test capabilities 10816 # of the host platform. 10817 10818 ############################################################################### 10819 # 10820 # Is the host little of big endian? 10821 # 10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10823 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10824 if test "${ac_cv_c_bigendian+set}" = set; then : 10825 $as_echo_n "(cached) " >&6 10826 else 10827 ac_cv_c_bigendian=unknown 10828 # See if we're dealing with a universal compiler. 10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10830 /* end confdefs.h. */ 10831 #ifndef __APPLE_CC__ 10832 not a universal capable compiler 10833 #endif 10834 typedef int dummy; 10835 10836 _ACEOF 10837 if ac_fn_cxx_try_compile "$LINENO"; then : 10838 10839 # Check for potential -arch flags. It is not universal unless 10840 # there are at least two -arch flags with different values. 10841 ac_arch= 10842 ac_prev= 10843 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 10844 if test -n "$ac_prev"; then 10845 case $ac_word in 10846 i?86 | x86_64 | ppc | ppc64) 10847 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 10848 ac_arch=$ac_word 10849 else 10850 ac_cv_c_bigendian=universal 10851 break 10852 fi 10853 ;; 10854 esac 10855 ac_prev= 10856 elif test "x$ac_word" = "x-arch"; then 10857 ac_prev=arch 10858 fi 10859 done 10860 fi 10861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10862 if test $ac_cv_c_bigendian = unknown; then 10863 # See if sys/param.h defines the BYTE_ORDER macro. 10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10865 /* end confdefs.h. */ 10866 #include <sys/types.h> 10867 #include <sys/param.h> 10868 10869 int 10870 main () 10871 { 10872 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 10873 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 10874 && LITTLE_ENDIAN) 10875 bogus endian macros 10876 #endif 10877 10878 ; 10879 return 0; 10880 } 10881 _ACEOF 10882 if ac_fn_cxx_try_compile "$LINENO"; then : 10883 # It does; now see whether it defined to BIG_ENDIAN or not. 10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10885 /* end confdefs.h. */ 10886 #include <sys/types.h> 10887 #include <sys/param.h> 10888 10889 int 10890 main () 10891 { 10892 #if BYTE_ORDER != BIG_ENDIAN 10893 not big endian 10894 #endif 10895 10896 ; 10897 return 0; 10898 } 10899 _ACEOF 10900 if ac_fn_cxx_try_compile "$LINENO"; then : 10901 ac_cv_c_bigendian=yes 10902 else 10903 ac_cv_c_bigendian=no 10904 fi 10905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10906 fi 10907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10908 fi 10909 if test $ac_cv_c_bigendian = unknown; then 10910 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10912 /* end confdefs.h. */ 10913 #include <limits.h> 10914 10915 int 10916 main () 10917 { 10918 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 10919 bogus endian macros 10920 #endif 10921 10922 ; 10923 return 0; 10924 } 10925 _ACEOF 10926 if ac_fn_cxx_try_compile "$LINENO"; then : 10927 # It does; now see whether it defined to _BIG_ENDIAN or not. 10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10929 /* end confdefs.h. */ 10930 #include <limits.h> 10931 10932 int 10933 main () 10934 { 10935 #ifndef _BIG_ENDIAN 10936 not big endian 10937 #endif 10938 10939 ; 10940 return 0; 10941 } 10942 _ACEOF 10943 if ac_fn_cxx_try_compile "$LINENO"; then : 10944 ac_cv_c_bigendian=yes 10945 else 10946 ac_cv_c_bigendian=no 10947 fi 10948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10949 fi 10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10951 fi 10952 if test $ac_cv_c_bigendian = unknown; then 10953 # Compile a test program. 10954 if test "$cross_compiling" = yes; then : 10955 # Try to guess by grepping values from an object file. 10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10957 /* end confdefs.h. */ 10958 short int ascii_mm[] = 10959 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 10960 short int ascii_ii[] = 10961 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 10962 int use_ascii (int i) { 10963 return ascii_mm[i] + ascii_ii[i]; 10964 } 10965 short int ebcdic_ii[] = 10966 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 10967 short int ebcdic_mm[] = 10968 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 10969 int use_ebcdic (int i) { 10970 return ebcdic_mm[i] + ebcdic_ii[i]; 10971 } 10972 extern int foo; 10973 10974 int 10975 main () 10976 { 10977 return use_ascii (foo) == use_ebcdic (foo); 10978 ; 10979 return 0; 10980 } 10981 _ACEOF 10982 if ac_fn_cxx_try_compile "$LINENO"; then : 10983 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 10984 ac_cv_c_bigendian=yes 10985 fi 10986 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 10987 if test "$ac_cv_c_bigendian" = unknown; then 10988 ac_cv_c_bigendian=no 10989 else 10990 # finding both strings is unlikely to happen, but who knows? 10991 ac_cv_c_bigendian=unknown 10992 fi 10993 fi 10994 fi 10995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10996 else 10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10998 /* end confdefs.h. */ 10999 $ac_includes_default 11000 int 11001 main () 11002 { 11003 11004 /* Are we little or big endian? From Harbison&Steele. */ 11005 union 11006 { 11007 long int l; 11008 char c[sizeof (long int)]; 11009 } u; 11010 u.l = 1; 11011 return u.c[sizeof (long int) - 1] == 1; 11012 11013 ; 11014 return 0; 11015 } 11016 _ACEOF 11017 if ac_fn_cxx_try_run "$LINENO"; then : 11018 ac_cv_c_bigendian=no 11019 else 11020 ac_cv_c_bigendian=yes 11021 fi 11022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11023 conftest.$ac_objext conftest.beam conftest.$ac_ext 11024 fi 11025 11026 fi 11027 fi 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11029 $as_echo "$ac_cv_c_bigendian" >&6; } 11030 case $ac_cv_c_bigendian in #( 11031 yes) 11032 ENDIAN="big";; #( 11033 no) 11034 ENDIAN="little" ;; #( 11035 universal) 11036 ENDIAN="universal" 11037 ;; #( 11038 *) 11039 ENDIAN="unknown" ;; 11040 esac 11041 11042 11043 if test "x$ENDIAN" = xuniversal; then 11044 as_fn_error $? "It seems like someone needs to decide how we are to deal with universal binaries on the MacOSX?" "$LINENO" 5 11045 fi 11046 if test "x$ENDIAN" = xunknown; then 11047 ENDIAN="$HOST_CPU_ENDIAN" 11048 fi 11049 if test "x$ENDIAN" != "x$HOST_CPU_ENDIAN"; then 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The tested endian in the host ($ENDIAN) differs from the endian expected to be found in the host ($HOST_CPU_ENDIAN)" >&5 11051 $as_echo "$as_me: WARNING: The tested endian in the host ($ENDIAN) differs from the endian expected to be found in the host ($HOST_CPU_ENDIAN)" >&2;} 11052 ENDIAN="$HOST_CPU_ENDIAN" 11053 fi 11054 11055 11056 ############################################################################### 11057 # 11058 # We need a Boot JDK to bootstrap the build. 11059 # 11060 BOOT_JDK_FOUND=no 11061 11062 # Check whether --with-boot-jdk was given. 11063 if test "${with_boot_jdk+set}" = set; then : 11064 withval=$with_boot_jdk; 11065 fi 11066 11067 11068 if test "x$with_boot_jdk" != x; then 11069 BOOT_JDK=$with_boot_jdk 11070 BOOT_JDK_FOUND=yes 11071 fi 11072 if test "x$BOOT_JDK_FOUND" = xno; then 11073 11074 11075 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 11076 # Source the builddeps file again, to make sure it uses the latest variables! 11077 . $builddepsfile 11078 # Look for a host and build machine specific resource! 11079 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}} 11080 if test "x$resource" = x; then 11081 # Ok, lets instead look for a host specific resource 11082 eval resource=\${builddep_bootjdk_HOST_${rewritten_host_var}} 11083 fi 11084 if test "x$resource" = x; then 11085 # Ok, lets instead look for a build specific resource 11086 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 11087 fi 11088 if test "x$resource" = x; then 11089 # Ok, lets instead look for a generic resource 11090 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 11091 resource=${builddep_bootjdk} 11092 fi 11093 if test "x$resource" != x; then 11094 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 11095 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 11096 # If the resource in the builddeps.conf file is an existing directory, 11097 # for example /java/linux/cups 11098 if test -d ${resource}; then 11099 depdir=${resource} 11100 else 11101 11102 # bootjdk is for example mymodule 11103 # $resource is for example libs/general/libmymod_1_2_3.zip 11104 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 11105 # $with_builddeps_dir is for example /localhome/builddeps 11106 # depdir is the name of the variable into which we store the depdir, eg MYMOD 11107 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 11108 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 11109 filename=`basename $resource` 11110 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 11111 filebase=${filename%%.*} 11112 extension=${filename#*.} 11113 installdir=$with_builddeps_dir/$filebase 11114 if test ! -f $installdir/$filename.unpacked; then 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 11116 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 11117 if test ! -d $installdir; then 11118 mkdir -p $installdir 11119 fi 11120 if test ! -d $installdir; then 11121 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 11122 fi 11123 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 11124 touch $tmpfile 11125 if test ! -f $tmpfile; then 11126 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 11127 fi 11128 11129 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 11130 # $tmpfile is the local file name for the downloaded file. 11131 VALID_TOOL=no 11132 if test "x$BDEPS_FTP" = xwget; then 11133 VALID_TOOL=yes 11134 wget -O $tmpfile $with_builddeps_server/$resource 11135 fi 11136 if test "x$BDEPS_FTP" = xlftp; then 11137 VALID_TOOL=yes 11138 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 11139 fi 11140 if test "x$BDEPS_FTP" = xftp; then 11141 VALID_TOOL=yes 11142 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 11143 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 11144 FTPUSERPWD=${FTPSERVER%%@*} 11145 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 11146 FTPUSER=${userpwd%%:*} 11147 FTPPWD=${userpwd#*@} 11148 FTPSERVER=${FTPSERVER#*@} 11149 else 11150 FTPUSER=ftp 11151 FTPPWD=ftp 11152 fi 11153 # the "pass" command does not work on some 11154 # ftp clients (read ftp.exe) but if it works, 11155 # passive mode is better! 11156 (\ 11157 echo "user $FTPUSER $FTPPWD" ;\ 11158 echo "pass" ;\ 11159 echo "bin" ;\ 11160 echo "get $FTPPATH $tmpfile" ;\ 11161 ) | ftp -in $FTPSERVER 11162 fi 11163 if test "x$VALID_TOOL" != xyes; then 11164 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 11165 fi 11166 11167 mv $tmpfile $installdir/$filename 11168 if test ! -s $installdir/$filename; then 11169 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 11170 fi 11171 case "$extension" in 11172 zip) echo "Unzipping $installdir/$filename..." 11173 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 11174 ;; 11175 tar.gz) echo "Untaring $installdir/$filename..." 11176 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 11177 ;; 11178 tgz) echo "Untaring $installdir/$filename..." 11179 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 11180 ;; 11181 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 11182 ;; 11183 esac 11184 fi 11185 if test -f $installdir/$filename.unpacked; then 11186 depdir=$installdir 11187 fi 11188 11189 fi 11190 # Source the builddeps file again, because in the previous command, the depdir 11191 # was updated to point at the current build dependency install directory. 11192 . $builddepsfile 11193 # Now extract variables from the builddeps.conf files. 11194 theroot=${builddep_bootjdk_ROOT} 11195 thecflags=${builddep_bootjdk_CFLAGS} 11196 thelibs=${builddep_bootjdk_LIBS} 11197 if test "x$depdir" = x; then 11198 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 11199 fi 11200 BOOT_JDK=$depdir 11201 if test "x$theroot" != x; then 11202 BOOT_JDK="$theroot" 11203 fi 11204 if test "x$thecflags" != x; then 11205 BOOT_JDK_CFLAGS="$thecflags" 11206 fi 11207 if test "x$thelibs" != x; then 11208 BOOT_JDK_LIBS="$thelibs" 11209 fi 11210 BOOT_JDK_FOUND=yes 11211 else BOOT_JDK_FOUND=no 11212 11213 fi 11214 else BOOT_JDK_FOUND=no 11215 11216 fi 11217 11218 fi 11219 11220 if test "x$BOOT_JDK_FOUND" = xno; then 11221 if test "x$JAVA_HOME" != x; then 11222 if test ! -d "$JAVA_HOME"; then 11223 as_fn_error $? "Your JAVA_HOME points to a non-existing directory!" "$LINENO" 5 11224 fi 11225 # Aha, the user has set a JAVA_HOME 11226 # let us use that as the Boot JDK. 11227 BOOT_JDK=$JAVA_HOME 11228 BOOT_JDK_FOUND=yes 11229 # To be on the safe side, lets check that it is a JDK. 11230 if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then 11231 JAVAC=$BOOT_JDK/bin/javac 11232 JAVA=$BOOT_JDK/bin/java 11233 BOOT_JDK_FOUND=yes 11234 else 11235 as_fn_error $? "Your JAVA_HOME points to a JRE! The build needs a JDK! Please point JAVA_HOME to a JDK." "$LINENO" 5 11236 fi 11237 fi 11238 fi 11239 11240 if test "x$BOOT_JDK_FOUND" = xno; then 11241 # Extract the first word of "javac", so it can be a program name with args. 11242 set dummy javac; ac_word=$2 11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11244 $as_echo_n "checking for $ac_word... " >&6; } 11245 if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then : 11246 $as_echo_n "(cached) " >&6 11247 else 11248 case $JAVAC_CHECK in 11249 [\\/]* | ?:[\\/]*) 11250 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 11251 ;; 11252 *) 11253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11254 for as_dir in $PATH 11255 do 11256 IFS=$as_save_IFS 11257 test -z "$as_dir" && as_dir=. 11258 for ac_exec_ext in '' $ac_executable_extensions; do 11259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11260 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 11261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11262 break 2 11263 fi 11264 done 11265 done 11266 IFS=$as_save_IFS 11267 11268 ;; 11269 esac 11270 fi 11271 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 11272 if test -n "$JAVAC_CHECK"; then 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 11274 $as_echo "$JAVAC_CHECK" >&6; } 11275 else 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11277 $as_echo "no" >&6; } 11278 fi 11279 11280 11281 # Extract the first word of "java", so it can be a program name with args. 11282 set dummy java; ac_word=$2 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11284 $as_echo_n "checking for $ac_word... " >&6; } 11285 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then : 11286 $as_echo_n "(cached) " >&6 11287 else 11288 case $JAVA_CHECK in 11289 [\\/]* | ?:[\\/]*) 11290 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 11291 ;; 11292 *) 11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11294 for as_dir in $PATH 11295 do 11296 IFS=$as_save_IFS 11297 test -z "$as_dir" && as_dir=. 11298 for ac_exec_ext in '' $ac_executable_extensions; do 11299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11300 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11302 break 2 11303 fi 11304 done 11305 done 11306 IFS=$as_save_IFS 11307 11308 ;; 11309 esac 11310 fi 11311 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 11312 if test -n "$JAVA_CHECK"; then 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 11314 $as_echo "$JAVA_CHECK" >&6; } 11315 else 11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11317 $as_echo "no" >&6; } 11318 fi 11319 11320 11321 BINARY="$JAVAC_CHECK" 11322 if test "x$JAVAC_CHECK" = x; then 11323 BINARY="$JAVA_CHECK" 11324 fi 11325 if test "x$BINARY" != x; then 11326 # So there is a java(c) binary, it might be part of a JDK. 11327 # Lets find the JDK/JRE directory by following symbolic links. 11328 # Linux/GNU systems often have links from /usr/bin/java to 11329 # /etc/alternatives/java to the real JDK binary. 11330 11331 # Translate long cygdrive or C:\sdfsf path 11332 # into a short mixed mode path that has no 11333 # spaces in it. 11334 tmp="$BINARY" 11335 if test "x$BUILD_OS" = "xwindows"; then 11336 tmp=`$CYGPATH -u "$BINARY"` 11337 tmp=`which "$tmp"` 11338 # If file exists with .exe appended, that's the real filename 11339 # and cygpath needs that to convert to short style path. 11340 if test -f "${tmp}.exe"; then 11341 tmp="${tmp}.exe" 11342 elif test -f "${tmp}.cmd"; then 11343 tmp="${tmp}.cmd" 11344 fi 11345 # Convert to C:/ mixed style path without spaces. 11346 tmp=`$CYGPATH -s -m "$tmp"` 11347 fi 11348 BINARY="$tmp" 11349 11350 11351 if test "x$BUILD_OS" != xwindows; then 11352 # Follow a chain of symbolic links. Use readlink 11353 # where it exists, else fall back to horribly 11354 # complicated shell code. 11355 # Extract the first word of "readlink", so it can be a program name with args. 11356 set dummy readlink; ac_word=$2 11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11358 $as_echo_n "checking for $ac_word... " >&6; } 11359 if test "${ac_cv_path_READLINK+set}" = set; then : 11360 $as_echo_n "(cached) " >&6 11361 else 11362 case $READLINK in 11363 [\\/]* | ?:[\\/]*) 11364 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 11365 ;; 11366 *) 11367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11368 for as_dir in $PATH 11369 do 11370 IFS=$as_save_IFS 11371 test -z "$as_dir" && as_dir=. 11372 for ac_exec_ext in '' $ac_executable_extensions; do 11373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11374 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 11375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11376 break 2 11377 fi 11378 done 11379 done 11380 IFS=$as_save_IFS 11381 11382 ;; 11383 esac 11384 fi 11385 READLINK=$ac_cv_path_READLINK 11386 if test -n "$READLINK"; then 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 11388 $as_echo "$READLINK" >&6; } 11389 else 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11391 $as_echo "no" >&6; } 11392 fi 11393 11394 11395 if test "x$READLINK_TESTED" != yes; then 11396 # On MacOSX there is a readlink tool with a different 11397 # purpose than the GNU readlink tool. Check the found readlink. 11398 ISGNU=`$READLINK --help 2>&1 | grep GNU` 11399 if test "x$ISGNU" = x; then 11400 # A readlink that we do not know how to use. 11401 # Are there other non-GNU readlinks out there? 11402 READLINK_TESTED=yes 11403 READLINK= 11404 fi 11405 fi 11406 11407 if test "x$READLINK" != x; then 11408 BINARY=`$READLINK -f $BINARY` 11409 else 11410 STARTDIR=$PWD 11411 COUNTER=0 11412 DIR=`dirname $BINARY` 11413 FIL=`basename $BINARY` 11414 while test $COUNTER -lt 20; do 11415 ISLINK=`ls -l $DIR/$FIL | grep '\->' | sed -e 's/.*-> \(.*\)/\1/'` 11416 if test "x$ISLINK" == x; then 11417 # This is not a symbolic link! We are done! 11418 break 11419 fi 11420 # The link might be relative! We have to use cd to travel safely. 11421 cd $DIR 11422 cd `dirname $ISLINK` 11423 DIR=`pwd` 11424 FIL=`basename $ISLINK` 11425 let COUNTER=COUNTER+1 11426 done 11427 cd $STARTDIR 11428 BINARY=$DIR/$FIL 11429 fi 11430 fi 11431 11432 BOOT_JDK=`dirname $BINARY` 11433 BOOT_JDK=`cd $BOOT_JDK/..; pwd` 11434 if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then 11435 JAVAC=$BOOT_JDK/bin/javac 11436 JAVA=$BOOT_JDK/bin/java 11437 BOOT_JDK_FOUND=yes 11438 fi 11439 fi 11440 fi 11441 11442 if test "x$BOOT_JDK_FOUND" = xno; then 11443 # Try the MacOSX way. 11444 if test -x /usr/libexec/java_home; then 11445 BOOT_JDK=`/usr/libexec/java_home` 11446 if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then 11447 JAVAC=$BOOT_JDK/bin/javac 11448 JAVA=$BOOT_JDK/bin/java 11449 BOOT_JDK_FOUND=yes 11450 fi 11451 fi 11452 fi 11453 11454 if test "x$BOOT_JDK_FOUND" = xno; then 11455 # Extract the first word of "java", so it can be a program name with args. 11456 set dummy java; ac_word=$2 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11458 $as_echo_n "checking for $ac_word... " >&6; } 11459 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then : 11460 $as_echo_n "(cached) " >&6 11461 else 11462 case $JAVA_CHECK in 11463 [\\/]* | ?:[\\/]*) 11464 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 11465 ;; 11466 *) 11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11468 for as_dir in $PATH 11469 do 11470 IFS=$as_save_IFS 11471 test -z "$as_dir" && as_dir=. 11472 for ac_exec_ext in '' $ac_executable_extensions; do 11473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11474 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 11475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11476 break 2 11477 fi 11478 done 11479 done 11480 IFS=$as_save_IFS 11481 11482 ;; 11483 esac 11484 fi 11485 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 11486 if test -n "$JAVA_CHECK"; then 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 11488 $as_echo "$JAVA_CHECK" >&6; } 11489 else 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11491 $as_echo "no" >&6; } 11492 fi 11493 11494 11495 if test "x$JAVA_CHECK" != x; then 11496 # There is a java in the path. But apparently we have not found a javac 11497 # in the path, since that would have been tested earlier. 11498 if test "x$HOST_OS" = xwindows; then 11499 # Now if this is a windows platform. The default installation of a JDK 11500 # actually puts the JRE in the path and keeps the JDK out of the path! 11501 # Go look in the default installation location. 11502 BOOT_JDK=/cygdrive/c/Program\ Files/Java/`ls /cygdrive/c/Program\ Files/Java | grep jdk | sort -r | head --lines 1` 11503 if test -d "$BOOT_JDK"; then 11504 BOOT_JDK_FOUND=yes 11505 fi 11506 fi 11507 if test "x$BOOT_JDK_FOUND" = xno; then 11508 help_on_build_dependency openjdk 11509 as_fn_error $? "Found a JRE, not not a JDK! Please remove the JRE from your path and put a JDK there instead. $HELP_MSG" "$LINENO" 5 11510 fi 11511 else 11512 help_on_build_dependency openjdk 11513 as_fn_error $? "Could not find a JDK. $HELP_MSG" "$LINENO" 5 11514 fi 11515 fi 11516 11517 11518 if test "x$BUILD_OS" = "xwindows"; then 11519 # Extract the first word of "cygpath", so it can be a program name with args. 11520 set dummy cygpath; ac_word=$2 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11522 $as_echo_n "checking for $ac_word... " >&6; } 11523 if test "${ac_cv_path_CYGPATH+set}" = set; then : 11524 $as_echo_n "(cached) " >&6 11525 else 11526 case $CYGPATH in 11527 [\\/]* | ?:[\\/]*) 11528 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 11529 ;; 11530 *) 11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11532 for as_dir in $PATH 11533 do 11534 IFS=$as_save_IFS 11535 test -z "$as_dir" && as_dir=. 11536 for ac_exec_ext in '' $ac_executable_extensions; do 11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11538 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11540 break 2 11541 fi 11542 done 11543 done 11544 IFS=$as_save_IFS 11545 11546 ;; 11547 esac 11548 fi 11549 CYGPATH=$ac_cv_path_CYGPATH 11550 if test -n "$CYGPATH"; then 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 11552 $as_echo "$CYGPATH" >&6; } 11553 else 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11555 $as_echo "no" >&6; } 11556 fi 11557 11558 11559 tmp="$BOOT_JDK" 11560 # Convert to C:/ mixed style path without spaces. 11561 tmp=`$CYGPATH -s -m "$tmp"` 11562 BOOT_JDK="$tmp" 11563 fi 11564 11565 11566 # Now see if we can find the rt.jar, or its nearest equivalent. 11567 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 11568 11569 # 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. 11570 # Unless on Windows, where we can rewrite the path. 11571 HAS_SPACE=`echo "$BOOT_RTJAR" | grep " "` 11572 if test "x$HAS_SPACE" != x; then 11573 if test "x$BUILD_OS" = "xwindows"; then 11574 BOOT_RTJAR=`$CYGPATH -s -m -a "$BOOT_RTJAR"` 11575 BOOT_RTJAR=`$CYGPATH -u "$BOOT_RTJAR"` 11576 else 11577 as_fn_error $? "You cannot have spaces in the path to the Boot JDK rt.jar (or nearest equivalent)! \"$BOOT_RTJAR\"" "$LINENO" 5 11578 fi 11579 fi 11580 11581 11582 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 11583 11584 # 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. 11585 # Unless on Windows, where we can rewrite the path. 11586 HAS_SPACE=`echo "$BOOT_TOOLSJAR" | grep " "` 11587 if test "x$HAS_SPACE" != x; then 11588 if test "x$BUILD_OS" = "xwindows"; then 11589 BOOT_TOOLSJAR=`$CYGPATH -s -m -a "$BOOT_TOOLSJAR"` 11590 BOOT_TOOLSJAR=`$CYGPATH -u "$BOOT_TOOLSJAR"` 11591 else 11592 as_fn_error $? "You cannot have spaces in the path to the Boot JDK tools.jar (or nearest equivalent)! \"$BOOT_TOOLSJAR\"" "$LINENO" 5 11593 fi 11594 fi 11595 11596 11597 if test ! -f $BOOT_RTJAR; then 11598 # On MacOSX it is called classes.jar 11599 BOOT_RTJAR=$BOOT_JDK/../Classes/classes.jar 11600 if test ! -f $BOOT_RTJAR; then 11601 as_fn_error $? "Cannot find the rt.jar or its equivalent!" "$LINENO" 5 11602 fi 11603 # Remove the .. 11604 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 11605 # The tools.jar is part of classes.jar 11606 BOOT_TOOLSJAR="$BOOT_RTJAR" 11607 fi 11608 11609 11610 11611 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 11613 $as_echo_n "checking for Boot JDK... " >&6; } 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 11615 $as_echo "$BOOT_JDK" >&6; } 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot rt.jar" >&5 11617 $as_echo_n "checking for Boot rt.jar... " >&6; } 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_RTJAR" >&5 11619 $as_echo "$BOOT_RTJAR" >&6; } 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot tools.jar" >&5 11621 $as_echo_n "checking for Boot tools.jar... " >&6; } 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_TOOLSJAR" >&5 11623 $as_echo "$BOOT_TOOLSJAR" >&6; } 11624 11625 # Use the java tool from the Boot JDK. 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 11627 $as_echo_n "checking for java in Boot JDK... " >&6; } 11628 JAVA=$BOOT_JDK/bin/java 11629 if test ! -x $JAVA; then 11630 as_fn_error $? "Could not find a working java" "$LINENO" 5 11631 fi 11632 BOOT_JDK_VERSION=`$JAVA -version 2>&1 | head -n 1` 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes $BOOT_JDK_VERSION" >&5 11634 $as_echo "yes $BOOT_JDK_VERSION" >&6; } 11635 11636 11637 # Extra M4 quote needed to protect [] in grep expression. 11638 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 11639 if test "x$FOUND_VERSION_78" = x; then 11640 help_on_build_dependency openjdk 11641 as_fn_error $? "Your bootjdk must be version 7 or 8. $HELP_MSG" "$LINENO" 5 11642 fi 11643 11644 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 11645 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 11646 11647 11648 # Use the javac tool from the Boot JDK. 11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 11650 $as_echo_n "checking for javac in Boot JDK... " >&6; } 11651 JAVAC=$BOOT_JDK/bin/javac 11652 if test ! -x $JAVAC; then 11653 as_fn_error $? "Could not find a working javac" "$LINENO" 5 11654 fi 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11656 $as_echo "yes" >&6; } 11657 11658 11659 11660 # Use the javac tool from the Boot JDK. 11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 11662 $as_echo_n "checking for javah in Boot JDK... " >&6; } 11663 JAVAH=$BOOT_JDK/bin/javah 11664 if test ! -x $JAVAH; then 11665 as_fn_error $? "Could not find a working javah" "$LINENO" 5 11666 fi 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11668 $as_echo "yes" >&6; } 11669 11670 11671 # Use the jar tool from the Boot JDK. 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 11673 $as_echo_n "checking for jar in Boot JDK... " >&6; } 11674 JAR=$BOOT_JDK/bin/jar 11675 if test ! -x $JAR; then 11676 as_fn_error $? "Could not find a working jar" "$LINENO" 5 11677 fi 11678 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11680 $as_echo "yes" >&6; } 11681 11682 # Use the rmic tool from the Boot JDK. 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5 11684 $as_echo_n "checking for rmic in Boot JDK... " >&6; } 11685 RMIC=$BOOT_JDK/bin/rmic 11686 if test ! -x $RMIC; then 11687 as_fn_error $? "Could not find a working rmic" "$LINENO" 5 11688 fi 11689 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11691 $as_echo "yes" >&6; } 11692 11693 ############################################################################### 11694 # 11695 # Pickup additional source for a component from outside of the source root 11696 # or override source for a component. 11697 # 11698 11699 # Check whether --with-add-source-root was given. 11700 if test "${with_add_source_root+set}" = set; then : 11701 withval=$with_add_source_root; 11702 fi 11703 11704 11705 11706 # Check whether --with-override-source-root was given. 11707 if test "${with_override_source_root+set}" = set; then : 11708 withval=$with_override_source_root; 11709 fi 11710 11711 11712 11713 # Check whether --with-adds-and-overrides was given. 11714 if test "${with_adds_and_overrides+set}" = set; then : 11715 withval=$with_adds_and_overrides; 11716 fi 11717 11718 11719 if test "x$with_adds_and_overrides" != x; then 11720 with_add_source_root="$with_adds_and_overrides/adds" 11721 with_override_source_root="$with_adds_and_overrides/overrides" 11722 fi 11723 11724 if test "x$with_add_source_root" != x; then 11725 if ! test -d $with_add_source_root; then 11726 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 11727 fi 11728 CURDIR="$PWD" 11729 cd "$with_add_source_root" 11730 ADD_SRC_ROOT="`pwd`" 11731 cd "$CURDIR" 11732 # Verify that the addon source root does not have any root makefiles. 11733 # If it does, then it is usually an error, prevent this. 11734 if test -f $with_add_source_root/langtools/makefiles/Makefile || \ 11735 test -f $with_add_source_root/langtools/make/Makefile; then 11736 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 11737 fi 11738 if test -f $with_add_source_root/corba/makefiles/Makefile || \ 11739 test -f $with_add_source_root/corba/make/Makefile; then 11740 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 11741 fi 11742 if test -f $with_add_source_root/jaxp/makefiles/Makefile || \ 11743 test -f $with_add_source_root/jaxp/make/Makefile; then 11744 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 11745 fi 11746 if test -f $with_add_source_root/jaxws/makefiles/Makefile || \ 11747 test -f $with_add_source_root/jaxws/make/Makefile; then 11748 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 11749 fi 11750 if test -f $with_add_source_root/hotspot/makefiles/Makefile || \ 11751 test -f $with_add_source_root/hotspot/make/Makefile; then 11752 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 11753 fi 11754 if test -f $with_add_source_root/jdk/makefiles/Makefile || \ 11755 test -f $with_add_source_root/jdk/make/Makefile; then 11756 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 11757 fi 11758 fi 11759 11760 11761 if test "x$with_override_source_root" != x; then 11762 if ! test -d $with_override_source_root; then 11763 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 11764 fi 11765 CURDIR="$PWD" 11766 cd "$with_override_source_root" 11767 OVERRIDE_SRC_ROOT="`pwd`" 11768 cd "$CURDIR" 11769 if test -f $with_override_source_root/langtools/makefiles/Makefile || \ 11770 test -f $with_override_source_root/langtools/make/Makefile; then 11771 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 11772 fi 11773 if test -f $with_override_source_root/corba/makefiles/Makefile || \ 11774 test -f $with_override_source_root/corba/make/Makefile; then 11775 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 11776 fi 11777 if test -f $with_override_source_root/jaxp/makefiles/Makefile || \ 11778 test -f $with_override_source_root/jaxp/make/Makefile; then 11779 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 11780 fi 11781 if test -f $with_override_source_root/jaxws/makefiles/Makefile || \ 11782 test -f $with_override_source_root/jaxws/make/Makefile; then 11783 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 11784 fi 11785 if test -f $with_override_source_root/hotspot/makefiles/Makefile || \ 11786 test -f $with_override_source_root/hotspot/make/Makefile; then 11787 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 11788 fi 11789 if test -f $with_override_source_root/jdk/makefiles/Makefile || \ 11790 test -f $with_override_source_root/jdk/make/Makefile; then 11791 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 11792 fi 11793 fi 11794 11795 11796 ############################################################################### 11797 # 11798 # Override a repo completely, this is used for example when you have 3 small 11799 # development sandboxes of the langtools sources and want to avoid having 3 full 11800 # OpenJDK sources checked out on disk. 11801 # 11802 # Assuming that the 3 langtools sandboxes are located here: 11803 # /home/fredrik/sandbox1/langtools 11804 # /home/fredrik/sandbox2/langtools 11805 # /home/fredrik/sandbox3/langtools 11806 # 11807 # From the source root you create build subdirs manually: 11808 # mkdir -p build1 build2 build3 11809 # in each build directory run: 11810 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 11811 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 11812 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 11813 # 11814 11815 11816 # Check whether --with-override-langtools was given. 11817 if test "${with_override_langtools+set}" = set; then : 11818 withval=$with_override_langtools; 11819 fi 11820 11821 11822 11823 # Check whether --with-override-corba was given. 11824 if test "${with_override_corba+set}" = set; then : 11825 withval=$with_override_corba; 11826 fi 11827 11828 11829 11830 # Check whether --with-override-jaxp was given. 11831 if test "${with_override_jaxp+set}" = set; then : 11832 withval=$with_override_jaxp; 11833 fi 11834 11835 11836 11837 # Check whether --with-override-jaxws was given. 11838 if test "${with_override_jaxws+set}" = set; then : 11839 withval=$with_override_jaxws; 11840 fi 11841 11842 11843 11844 # Check whether --with-override-hotspot was given. 11845 if test "${with_override_hotspot+set}" = set; then : 11846 withval=$with_override_hotspot; 11847 fi 11848 11849 11850 11851 # Check whether --with-override-jdk was given. 11852 if test "${with_override_jdk+set}" = set; then : 11853 withval=$with_override_jdk; 11854 fi 11855 11856 11857 if test "x$with_override_langtools" != x; then 11858 CURDIR="$PWD" 11859 cd "$with_override_langtools" 11860 LANGTOOLS_TOPDIR="`pwd`" 11861 cd "$CURDIR" 11862 if ! test -f $LANGTOOLS_TOPDIR/makefiles/Makefile; then 11863 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 11864 fi 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 11866 $as_echo_n "checking if langtools should be overridden... " >&6; } 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 11868 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 11869 fi 11870 if test "x$with_override_corba" != x; then 11871 CURDIR="$PWD" 11872 cd "$with_override_corba" 11873 CORBA_TOPDIR="`pwd`" 11874 cd "$CURDIR" 11875 if ! test -f $CORBA_TOPDIR/makefiles/Makefile; then 11876 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 11877 fi 11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 11879 $as_echo_n "checking if corba should be overridden... " >&6; } 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 11881 $as_echo "yes with $CORBA_TOPDIR" >&6; } 11882 fi 11883 if test "x$with_override_jaxp" != x; then 11884 CURDIR="$PWD" 11885 cd "$with_override_jaxp" 11886 JAXP_TOPDIR="`pwd`" 11887 cd "$CURDIR" 11888 if ! test -f $JAXP_TOPDIR/makefiles/Makefile; then 11889 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 11890 fi 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 11892 $as_echo_n "checking if jaxp should be overridden... " >&6; } 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 11894 $as_echo "yes with $JAXP_TOPDIR" >&6; } 11895 fi 11896 if test "x$with_override_jaxws" != x; then 11897 CURDIR="$PWD" 11898 cd "$with_override_jaxws" 11899 JAXWS_TOPDIR="`pwd`" 11900 cd "$CURDIR" 11901 if ! test -f $JAXWS_TOPDIR/makefiles/Makefile; then 11902 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 11903 fi 11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 11905 $as_echo_n "checking if jaxws should be overridden... " >&6; } 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 11907 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 11908 fi 11909 if test "x$with_override_hotspot" != x; then 11910 CURDIR="$PWD" 11911 cd "$with_override_hotspot" 11912 HOTSPOT_TOPDIR="`pwd`" 11913 cd "$CURDIR" 11914 if ! test -f $HOTSPOT_TOPDIR/make/Makefile && \ 11915 ! test -f $HOTSPOT_TOPDIR/makefiles/Makefile; then 11916 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 11917 fi 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 11919 $as_echo_n "checking if hotspot should be overridden... " >&6; } 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 11921 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 11922 fi 11923 if test "x$with_override_jdk" != x; then 11924 CURDIR="$PWD" 11925 cd "$with_override_jdk" 11926 JDK_TOPDIR="`pwd`" 11927 cd "$CURDIR" 11928 if ! test -f $JDK_TOPDIR/makefiles/Makefile; then 11929 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 11930 fi 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 11932 $as_echo_n "checking if JDK should be overridden... " >&6; } 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 11934 $as_echo "yes with $JDK_TOPDIR" >&6; } 11935 fi 11936 11937 ############################################################################### 11938 # 11939 # Specify options for anything that is run with the Boot JDK. 11940 # 11941 11942 # Check whether --with-boot-jdk-jvmargs was given. 11943 if test "${with_boot_jdk_jvmargs+set}" = set; then : 11944 withval=$with_boot_jdk_jvmargs; 11945 fi 11946 11947 11948 if test "x$with_boot_jdk_jvmargs" = x; then 11949 # Not all JVM:s accept the same arguments on the command line. 11950 # OpenJDK specific increase in thread stack for JDK build, 11951 # well more specifically, when running javac. 11952 if test "x$BUILD_NUM_BITS" = x32; then 11953 STACK_SIZE=768 11954 else 11955 # Running Javac on a JVM on a 64-bit machine, the stack takes more space 11956 # since 64-bit pointers are pushed on the stach. Apparently, we need 11957 # to increase the stack space when javacing the JDK.... 11958 STACK_SIZE=1536 11959 fi 11960 11961 # Minimum amount of heap memory. 11962 11963 # Test if -Xms64M is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 11964 # If so, then append -Xms64M to boot_jdk_jvmargs 11965 FOUND_WARN=`$JAVA -Xms64M -version 2>&1 | grep -i warn` 11966 FOUND_VERSION=`$JAVA -Xms64M -version 2>&1 | grep " version \""` 11967 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 11968 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xms64M" 11969 fi 11970 11971 if test "x$HOST_OS" = "xmacosx"; then 11972 # Why does macosx need more heap? Its the huge JDK batch. 11973 11974 # Test if -Xmx1600M is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 11975 # If so, then append -Xmx1600M to boot_jdk_jvmargs 11976 FOUND_WARN=`$JAVA -Xmx1600M -version 2>&1 | grep -i warn` 11977 FOUND_VERSION=`$JAVA -Xmx1600M -version 2>&1 | grep " version \""` 11978 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 11979 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1600M" 11980 fi 11981 11982 else 11983 11984 # Test if -Xmx1100M is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 11985 # If so, then append -Xmx1100M to boot_jdk_jvmargs 11986 FOUND_WARN=`$JAVA -Xmx1100M -version 2>&1 | grep -i warn` 11987 FOUND_VERSION=`$JAVA -Xmx1100M -version 2>&1 | grep " version \""` 11988 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 11989 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1100M" 11990 fi 11991 11992 fi 11993 # When is adding -client something that speeds up the JVM? 11994 # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA]) 11995 11996 # Test if -XX:PermSize=32m is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 11997 # If so, then append -XX:PermSize=32m to boot_jdk_jvmargs 11998 FOUND_WARN=`$JAVA -XX:PermSize=32m -version 2>&1 | grep -i warn` 11999 FOUND_VERSION=`$JAVA -XX:PermSize=32m -version 2>&1 | grep " version \""` 12000 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12001 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:PermSize=32m" 12002 fi 12003 12004 12005 # Test if -XX:MaxPermSize=160m is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 12006 # If so, then append -XX:MaxPermSize=160m to boot_jdk_jvmargs 12007 FOUND_WARN=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep -i warn` 12008 FOUND_VERSION=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep " version \""` 12009 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12010 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:MaxPermSize=160m" 12011 fi 12012 12013 12014 # Test if -XX:ThreadStackSize=$STACK_SIZE is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 12015 # If so, then append -XX:ThreadStackSize=$STACK_SIZE to boot_jdk_jvmargs 12016 FOUND_WARN=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep -i warn` 12017 FOUND_VERSION=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep " version \""` 12018 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12019 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:ThreadStackSize=$STACK_SIZE" 12020 fi 12021 12022 # Disable special log output when a debug build is used as Boot JDK... 12023 12024 # Test if -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 12025 # If so, then append -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput to boot_jdk_jvmargs 12026 FOUND_WARN=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep -i warn` 12027 FOUND_VERSION=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep " version \""` 12028 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12029 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 12030 fi 12031 12032 fi 12033 12034 BOOT_JDK_JVMARGS=$boot_jdk_jvmargs 12035 12036 12037 12038 # Check whether --with-server-java was given. 12039 if test "${with_server_java+set}" = set; then : 12040 withval=$with_server_java; 12041 fi 12042 12043 12044 if test "x$with_server_java" != x; then 12045 SERVER_JAVA="$with_server_java" 12046 FOUND_VERSION=`$SERVER_JAVA -version 2>&1 | grep " version \""` 12047 if test "x$FOUND_VERSION" = x; then 12048 as_fn_error $? "Could not execute server java: $SERVER_JAVA" "$LINENO" 5 12049 fi 12050 else 12051 SERVER_JAVA="" 12052 # Hotspot specific options. 12053 12054 # Test if -XX:+UseParallelOldGC is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 12055 # If so, then append -XX:+UseParallelOldGC to SERVER_JAVA 12056 FOUND_WARN=`$JAVA -XX:+UseParallelOldGC -version 2>&1 | grep -i warn` 12057 FOUND_VERSION=`$JAVA -XX:+UseParallelOldGC -version 2>&1 | grep " version \""` 12058 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12059 SERVER_JAVA="$SERVER_JAVA -XX:+UseParallelOldGC" 12060 fi 12061 12062 12063 # Test if -verbosegc is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 12064 # If so, then append -verbosegc to SERVER_JAVA 12065 FOUND_WARN=`$JAVA -verbosegc -version 2>&1 | grep -i warn` 12066 FOUND_VERSION=`$JAVA -verbosegc -version 2>&1 | grep " version \""` 12067 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12068 SERVER_JAVA="$SERVER_JAVA -verbosegc" 12069 fi 12070 12071 # JRockit specific options. 12072 12073 # Test if -Xverbose:gc is a valid argument to $JAVA (often is $JAVA passed as $JAVA) 12074 # If so, then append -Xverbose:gc to SERVER_JAVA 12075 FOUND_WARN=`$JAVA -Xverbose:gc -version 2>&1 | grep -i warn` 12076 FOUND_VERSION=`$JAVA -Xverbose:gc -version 2>&1 | grep " version \""` 12077 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12078 SERVER_JAVA="$SERVER_JAVA -Xverbose:gc" 12079 fi 12080 12081 SERVER_JAVA="$JAVA $SERVER_JAVA" 12082 fi 12083 12084 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shared server for javac" >&5 12086 $as_echo_n "checking whether to use shared server for javac... " >&6; } 12087 # Check whether --enable-javac-server was given. 12088 if test "${enable_javac_server+set}" = set; then : 12089 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 12090 else 12091 ENABLE_JAVAC_SERVER='no' 12092 fi 12093 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 12095 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 12096 if test "x$ENABLE_JAVAC_SERVER" = xyes; then 12097 JAVAC_USE_REMOTE=true 12098 JAVAC_SERVERS="$OUTPUT_ROOT/javacservers" 12099 else 12100 JAVAC_USE_REMOTE=false 12101 JAVAC_SERVERS= 12102 fi 12103 12104 12105 12106 12107 # Check whether --with-javac-server-cores was given. 12108 if test "${with_javac_server_cores+set}" = set; then : 12109 withval=$with_javac_server_cores; 12110 fi 12111 12112 if test "x$with_javac_server_cores" != x; then 12113 JAVAC_SERVER_CORES="$with_javac_server_cores" 12114 else 12115 if test "$NUM_CORES" -gt 16; then 12116 # We set this arbitrary limit because we want to limit the heap 12117 # size of the javac server. 12118 # In the future we will make the javac compilers in the server 12119 # share more and more state, thus enabling us to use more and 12120 # more concurrent threads in the server. 12121 JAVAC_SERVER_CORES="16" 12122 else 12123 JAVAC_SERVER_CORES="$NUM_CORES" 12124 fi 12125 12126 if test "$MEMORY_SIZE" -gt "17000"; then 12127 MAX_HEAP_MEM=10000 12128 12129 # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12130 # If so, then append -d64 to SERVER_JAVA 12131 FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn` 12132 FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""` 12133 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12134 SERVER_JAVA="$SERVER_JAVA -d64" 12135 fi 12136 12137 12138 # Test if -Xms10G -Xmx10G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12139 # If so, then append -Xms10G -Xmx10G to SERVER_JAVA 12140 FOUND_WARN=`$SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep -i warn` 12141 FOUND_VERSION=`$SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep " version \""` 12142 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12143 SERVER_JAVA="$SERVER_JAVA -Xms10G -Xmx10G" 12144 fi 12145 12146 12147 # Test if -Xmn2G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12148 # If so, then append -Xmn2G to SERVER_JAVA 12149 FOUND_WARN=`$SERVER_JAVA -Xmn2G -version 2>&1 | grep -i warn` 12150 FOUND_VERSION=`$SERVER_JAVA -Xmn2G -version 2>&1 | grep " version \""` 12151 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12152 SERVER_JAVA="$SERVER_JAVA -Xmn2G" 12153 fi 12154 12155 elif test "$MEMORY_SIZE" -gt "10000"; then 12156 MAX_HEAP_MEM=6000 12157 12158 # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12159 # If so, then append -d64 to SERVER_JAVA 12160 FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn` 12161 FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""` 12162 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12163 SERVER_JAVA="$SERVER_JAVA -d64" 12164 fi 12165 12166 12167 # Test if -Xms6G -Xmx6G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12168 # If so, then append -Xms6G -Xmx6G to SERVER_JAVA 12169 FOUND_WARN=`$SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep -i warn` 12170 FOUND_VERSION=`$SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep " version \""` 12171 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12172 SERVER_JAVA="$SERVER_JAVA -Xms6G -Xmx6G" 12173 fi 12174 12175 12176 # Test if -Xmn1G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12177 # If so, then append -Xmn1G to SERVER_JAVA 12178 FOUND_WARN=`$SERVER_JAVA -Xmn1G -version 2>&1 | grep -i warn` 12179 FOUND_VERSION=`$SERVER_JAVA -Xmn1G -version 2>&1 | grep " version \""` 12180 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12181 SERVER_JAVA="$SERVER_JAVA -Xmn1G" 12182 fi 12183 12184 elif test "$MEMORY_SIZE" -gt "5000"; then 12185 MAX_HEAP_MEM=3000 12186 12187 # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12188 # If so, then append -d64 to SERVER_JAVA 12189 FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn` 12190 FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""` 12191 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12192 SERVER_JAVA="$SERVER_JAVA -d64" 12193 fi 12194 12195 12196 # Test if -Xms1G -Xmx3G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12197 # If so, then append -Xms1G -Xmx3G to SERVER_JAVA 12198 FOUND_WARN=`$SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep -i warn` 12199 FOUND_VERSION=`$SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep " version \""` 12200 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12201 SERVER_JAVA="$SERVER_JAVA -Xms1G -Xmx3G" 12202 fi 12203 12204 12205 # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12206 # If so, then append -Xmn256M to SERVER_JAVA 12207 FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn` 12208 FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""` 12209 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12210 SERVER_JAVA="$SERVER_JAVA -Xmn256M" 12211 fi 12212 12213 elif test "$MEMORY_SIZE" -gt "3800"; then 12214 MAX_HEAP_MEM=2500 12215 12216 # Test if -Xms1G -Xmx2500M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12217 # If so, then append -Xms1G -Xmx2500M to SERVER_JAVA 12218 FOUND_WARN=`$SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep -i warn` 12219 FOUND_VERSION=`$SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep " version \""` 12220 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12221 SERVER_JAVA="$SERVER_JAVA -Xms1G -Xmx2500M" 12222 fi 12223 12224 12225 # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12226 # If so, then append -Xmn256M to SERVER_JAVA 12227 FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn` 12228 FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""` 12229 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12230 SERVER_JAVA="$SERVER_JAVA -Xmn256M" 12231 fi 12232 12233 elif test "$MEMORY_SIZE" -gt "1900"; then 12234 MAX_HEAP_MEM=1200 12235 12236 # Test if -Xms700M -Xmx1200M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12237 # If so, then append -Xms700M -Xmx1200M to SERVER_JAVA 12238 FOUND_WARN=`$SERVER_JAVA -Xms700M -Xmx1200M -version 2>&1 | grep -i warn` 12239 FOUND_VERSION=`$SERVER_JAVA -Xms700M -Xmx1200M -version 2>&1 | grep " version \""` 12240 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12241 SERVER_JAVA="$SERVER_JAVA -Xms700M -Xmx1200M" 12242 fi 12243 12244 12245 # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12246 # If so, then append -Xmn256M to SERVER_JAVA 12247 FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn` 12248 FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""` 12249 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12250 SERVER_JAVA="$SERVER_JAVA -Xmn256M" 12251 fi 12252 12253 elif test "$MEMORY_SIZE" -gt "1000"; then 12254 MAX_HEAP_MEM=900 12255 12256 # Test if -Xms400M -Xmx900M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12257 # If so, then append -Xms400M -Xmx900M to SERVER_JAVA 12258 FOUND_WARN=`$SERVER_JAVA -Xms400M -Xmx900M -version 2>&1 | grep -i warn` 12259 FOUND_VERSION=`$SERVER_JAVA -Xms400M -Xmx900M -version 2>&1 | grep " version \""` 12260 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12261 SERVER_JAVA="$SERVER_JAVA -Xms400M -Xmx900M" 12262 fi 12263 12264 12265 # Test if -Xmn128M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12266 # If so, then append -Xmn128M to SERVER_JAVA 12267 FOUND_WARN=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep -i warn` 12268 FOUND_VERSION=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep " version \""` 12269 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12270 SERVER_JAVA="$SERVER_JAVA -Xmn128M" 12271 fi 12272 12273 else 12274 MAX_HEAP_MEM=512 12275 12276 # Test if -Xms256M -Xmx512M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12277 # If so, then append -Xms256M -Xmx512M to SERVER_JAVA 12278 FOUND_WARN=`$SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep -i warn` 12279 FOUND_VERSION=`$SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep " version \""` 12280 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12281 SERVER_JAVA="$SERVER_JAVA -Xms256M -Xmx512M" 12282 fi 12283 12284 12285 # Test if -Xmn128M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA) 12286 # If so, then append -Xmn128M to SERVER_JAVA 12287 FOUND_WARN=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep -i warn` 12288 FOUND_VERSION=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep " version \""` 12289 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 12290 SERVER_JAVA="$SERVER_JAVA -Xmn128M" 12291 fi 12292 12293 fi 12294 12295 MAX_COMPILERS_IN_HEAP=`expr $MAX_HEAP_MEM / 501` 12296 if test "$JAVAC_SERVER_CORES" -gt "$MAX_COMPILERS_IN_HEAP"; then 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if number of server cores must be reduced" >&5 12298 $as_echo_n "checking if number of server cores must be reduced... " >&6; } 12299 JAVAC_SERVER_CORES="$MAX_COMPILERS_IN_HEAP" 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, to $JAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&5 12301 $as_echo "yes, to $JAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&6; } 12302 fi 12303 fi 12304 12305 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track dependencies between Java packages" >&5 12307 $as_echo_n "checking whether to track dependencies between Java packages... " >&6; } 12308 # Check whether --enable-javac-deps was given. 12309 if test "${enable_javac_deps+set}" = set; then : 12310 enableval=$enable_javac_deps; ENABLE_JAVAC_DEPS="${enableval}" 12311 else 12312 ENABLE_JAVAC_DEPS='no' 12313 fi 12314 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_DEPS" >&5 12316 $as_echo "$ENABLE_JAVAC_DEPS" >&6; } 12317 if test "x$ENABLE_JAVAC_DEPS" = xyes; then 12318 JAVAC_USE_DEPS=true 12319 else 12320 JAVAC_USE_DEPS=false 12321 fi 12322 12323 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use multiple cores for javac compilation" >&5 12325 $as_echo_n "checking whether to use multiple cores for javac compilation... " >&6; } 12326 # Check whether --enable-javac-multi-core was given. 12327 if test "${enable_javac_multi_core+set}" = set; then : 12328 enableval=$enable_javac_multi_core; ENABLE_JAVAC_MULTICORE="${enableval}" 12329 else 12330 ENABLE_JAVAC_MULTICORE='no' 12331 fi 12332 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_MULTICORE" >&5 12334 $as_echo "$ENABLE_JAVAC_MULTICORE" >&6; } 12335 if test "x$ENABLE_JAVAC_MULTICORE" = xyes; then 12336 JAVAC_USE_MODE=MULTI_CORE_CONCURRENT 12337 else 12338 JAVAC_USE_MODE=SINGLE_THREADED_BATCH 12339 if test "x$ENABLE_JAVAC_DEPS" = xyes; then 12340 { $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 12341 $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;} 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling dependency tracking for you now." >&5 12343 $as_echo "$as_me: WARNING: Disabling dependency tracking for you now." >&2;} 12344 JAVAC_USE_DEPS=false 12345 fi 12346 if test "x$ENABLE_JAVAC_SERVER" = xyes; then 12347 { $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 12348 $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;} 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling javac server for you now." >&5 12350 $as_echo "$as_me: WARNING: Disabling javac server for you now." >&2;} 12351 JAVAC_USE_REMOTE=false 12352 fi 12353 fi 12354 12355 12356 ############################################################################### 12357 # 12358 # OS specific settings that we never will need to probe. 12359 # 12360 if test "x$HOST_OS" = xlinux; then 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 12362 $as_echo_n "checking what is not needed on Linux?... " >&6; } 12363 PULSE_NOT_NEEDED=yes 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 12365 $as_echo "pulse" >&6; } 12366 fi 12367 12368 if test "x$HOST_OS" = xsolaris; then 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 12370 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 12371 ALSA_NOT_NEEDED=yes 12372 PULSE_NOT_NEEDED=yes 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 12374 $as_echo "alsa pulse" >&6; } 12375 fi 12376 12377 if test "x$HOST_OS" = xwindows; then 12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 12379 $as_echo_n "checking what is not needed on Windows?... " >&6; } 12380 CUPS_NOT_NEEDED=yes 12381 ALSA_NOT_NEEDED=yes 12382 PULSE_NOT_NEEDED=yes 12383 X11_NOT_NEEDED=yes 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 12385 $as_echo "alsa cups pulse x11" >&6; } 12386 fi 12387 12388 if test "x$HOST_OS" = xmacosx; then 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 12390 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 12391 ALSA_NOT_NEEDED=yes 12392 PULSE_NOT_NEEDED=yes 12393 X11_NOT_NEEDED=yes 12394 FREETYPE2_NOT_NEEDED=yes 12395 # If the java runtime framework is disabled, then we need X11. 12396 # This will be adjusted below. 12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 12398 $as_echo "alsa pulse x11" >&6; } 12399 fi 12400 12401 if test "x$HOST_OS" = xbsd; then 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 12403 $as_echo_n "checking what is not needed on bsd?... " >&6; } 12404 ALSA_NOT_NEEDED=yes 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 12406 $as_echo "alsa" >&6; } 12407 fi 12408 12409 ############################################################################### 12410 # 12411 # Check for MacOSX support for OpenJDK. If this exists, try to build a JVM 12412 # that uses this API. 12413 # 12414 # Check whether --enable-macosx-runtime-support was given. 12415 if test "${enable_macosx_runtime_support+set}" = set; then : 12416 enableval=$enable_macosx_runtime_support; MACOSX_RUNTIME_SUPPORT="${enableval}" 12417 else 12418 MACOSX_RUNTIME_SUPPORT="no" 12419 fi 12420 12421 12422 USE_MACOSX_RUNTIME_SUPPORT=no 12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit Java runtime support in the OS" >&5 12424 $as_echo_n "checking for explicit Java runtime support in the OS... " >&6; } 12425 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then 12426 if test "x$MACOSX_RUNTIME_SUPPORT" != xno; then 12427 MACOSX_RUNTIME_SUPPORT=yes 12428 USE_MACOSX_RUNTIME_SUPPORT=yes 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, does not need alsa freetype2 pulse and X11" >&5 12430 $as_echo "yes, does not need alsa freetype2 pulse and X11" >&6; } 12431 else 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but explicitly disabled." >&5 12433 $as_echo "yes, but explicitly disabled." >&6; } 12434 fi 12435 else 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12437 $as_echo "no" >&6; } 12438 fi 12439 12440 if test "x$HOST_OS" = xmacosx && test "x$USE_MACOSX_RUNTIME_SUPPORT" = xno; then 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on an X11 build on MacOSX?" >&5 12442 $as_echo_n "checking what is not needed on an X11 build on MacOSX?... " >&6; } 12443 X11_NOT_NEEDED= 12444 FREETYPE2_NOT_NEEDED= 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 12446 $as_echo "alsa pulse" >&6; } 12447 fi 12448 12449 ############################################################################### 12450 # 12451 # Check for X Windows 12452 # 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 12454 $as_echo_n "checking for X... " >&6; } 12455 12456 12457 # Check whether --with-x was given. 12458 if test "${with_x+set}" = set; then : 12459 withval=$with_x; 12460 fi 12461 12462 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 12463 if test "x$with_x" = xno; then 12464 # The user explicitly disabled X. 12465 have_x=disabled 12466 else 12467 case $x_includes,$x_libraries in #( 12468 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( 12469 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 12470 $as_echo_n "(cached) " >&6 12471 else 12472 # One or both of the vars are not set, and there is no cached value. 12473 ac_x_includes=no ac_x_libraries=no 12474 rm -f -r conftest.dir 12475 if mkdir conftest.dir; then 12476 cd conftest.dir 12477 cat >Imakefile <<'_ACEOF' 12478 incroot: 12479 @echo incroot='${INCROOT}' 12480 usrlibdir: 12481 @echo usrlibdir='${USRLIBDIR}' 12482 libdir: 12483 @echo libdir='${LIBDIR}' 12484 _ACEOF 12485 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 12486 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12487 for ac_var in incroot usrlibdir libdir; do 12488 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 12489 done 12490 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 12491 for ac_extension in a so sl dylib la dll; do 12492 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 12493 test -f "$ac_im_libdir/libX11.$ac_extension"; then 12494 ac_im_usrlibdir=$ac_im_libdir; break 12495 fi 12496 done 12497 # Screen out bogus values from the imake configuration. They are 12498 # bogus both because they are the default anyway, and because 12499 # using them would break gcc on systems where it needs fixed includes. 12500 case $ac_im_incroot in 12501 /usr/include) ac_x_includes= ;; 12502 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 12503 esac 12504 case $ac_im_usrlibdir in 12505 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 12506 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 12507 esac 12508 fi 12509 cd .. 12510 rm -f -r conftest.dir 12511 fi 12512 12513 # Standard set of common directories for X headers. 12514 # Check X11 before X11Rn because it is often a symlink to the current release. 12515 ac_x_header_dirs=' 12516 /usr/X11/include 12517 /usr/X11R7/include 12518 /usr/X11R6/include 12519 /usr/X11R5/include 12520 /usr/X11R4/include 12521 12522 /usr/include/X11 12523 /usr/include/X11R7 12524 /usr/include/X11R6 12525 /usr/include/X11R5 12526 /usr/include/X11R4 12527 12528 /usr/local/X11/include 12529 /usr/local/X11R7/include 12530 /usr/local/X11R6/include 12531 /usr/local/X11R5/include 12532 /usr/local/X11R4/include 12533 12534 /usr/local/include/X11 12535 /usr/local/include/X11R7 12536 /usr/local/include/X11R6 12537 /usr/local/include/X11R5 12538 /usr/local/include/X11R4 12539 12540 /usr/X386/include 12541 /usr/x386/include 12542 /usr/XFree86/include/X11 12543 12544 /usr/include 12545 /usr/local/include 12546 /usr/unsupported/include 12547 /usr/athena/include 12548 /usr/local/x11r5/include 12549 /usr/lpp/Xamples/include 12550 12551 /usr/openwin/include 12552 /usr/openwin/share/include' 12553 12554 if test "$ac_x_includes" = no; then 12555 # Guess where to find include files, by looking for Xlib.h. 12556 # First, try using that file with no special directory specified. 12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12558 /* end confdefs.h. */ 12559 #include <X11/Xlib.h> 12560 _ACEOF 12561 if ac_fn_cxx_try_cpp "$LINENO"; then : 12562 # We can compile using X headers with no special include directory. 12563 ac_x_includes= 12564 else 12565 for ac_dir in $ac_x_header_dirs; do 12566 if test -r "$ac_dir/X11/Xlib.h"; then 12567 ac_x_includes=$ac_dir 12568 break 12569 fi 12570 done 12571 fi 12572 rm -f conftest.err conftest.i conftest.$ac_ext 12573 fi # $ac_x_includes = no 12574 12575 if test "$ac_x_libraries" = no; then 12576 # Check for the libraries. 12577 # See if we find them without any special options. 12578 # Don't add to $LIBS permanently. 12579 ac_save_LIBS=$LIBS 12580 LIBS="-lX11 $LIBS" 12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12582 /* end confdefs.h. */ 12583 #include <X11/Xlib.h> 12584 int 12585 main () 12586 { 12587 XrmInitialize () 12588 ; 12589 return 0; 12590 } 12591 _ACEOF 12592 if ac_fn_cxx_try_link "$LINENO"; then : 12593 LIBS=$ac_save_LIBS 12594 # We can link X programs with no special library path. 12595 ac_x_libraries= 12596 else 12597 LIBS=$ac_save_LIBS 12598 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 12599 do 12600 # Don't even attempt the hair of trying to link an X program! 12601 for ac_extension in a so sl dylib la dll; do 12602 if test -r "$ac_dir/libX11.$ac_extension"; then 12603 ac_x_libraries=$ac_dir 12604 break 2 12605 fi 12606 done 12607 done 12608 fi 12609 rm -f core conftest.err conftest.$ac_objext \ 12610 conftest$ac_exeext conftest.$ac_ext 12611 fi # $ac_x_libraries = no 12612 12613 case $ac_x_includes,$ac_x_libraries in #( 12614 no,* | *,no | *\'*) 12615 # Didn't find X, or a directory has "'" in its name. 12616 ac_cv_have_x="have_x=no";; #( 12617 *) 12618 # Record where we found X for the cache. 12619 ac_cv_have_x="have_x=yes\ 12620 ac_x_includes='$ac_x_includes'\ 12621 ac_x_libraries='$ac_x_libraries'" 12622 esac 12623 fi 12624 ;; #( 12625 *) have_x=yes;; 12626 esac 12627 eval "$ac_cv_have_x" 12628 fi # $with_x != no 12629 12630 if test "$have_x" != yes; then 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 12632 $as_echo "$have_x" >&6; } 12633 no_x=yes 12634 else 12635 # If each of the values was on the command line, it overrides each guess. 12636 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 12637 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 12638 # Update the cache value to reflect the command line values. 12639 ac_cv_have_x="have_x=yes\ 12640 ac_x_includes='$x_includes'\ 12641 ac_x_libraries='$x_libraries'" 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 12643 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 12644 fi 12645 12646 if test "$no_x" = yes; then 12647 # Not all programs may use this symbol, but it does not hurt to define it. 12648 12649 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 12650 12651 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 12652 else 12653 if test -n "$x_includes"; then 12654 X_CFLAGS="$X_CFLAGS -I$x_includes" 12655 fi 12656 12657 # It would also be nice to do this for all -L options, not just this one. 12658 if test -n "$x_libraries"; then 12659 X_LIBS="$X_LIBS -L$x_libraries" 12660 # For Solaris; some versions of Sun CC require a space after -R and 12661 # others require no space. Words are not sufficient . . . . 12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 12663 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 12664 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 12665 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 12666 ac_cxx_werror_flag=yes 12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12668 /* end confdefs.h. */ 12669 12670 int 12671 main () 12672 { 12673 12674 ; 12675 return 0; 12676 } 12677 _ACEOF 12678 if ac_fn_cxx_try_link "$LINENO"; then : 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12680 $as_echo "no" >&6; } 12681 X_LIBS="$X_LIBS -R$x_libraries" 12682 else 12683 LIBS="$ac_xsave_LIBS -R $x_libraries" 12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12685 /* end confdefs.h. */ 12686 12687 int 12688 main () 12689 { 12690 12691 ; 12692 return 0; 12693 } 12694 _ACEOF 12695 if ac_fn_cxx_try_link "$LINENO"; then : 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12697 $as_echo "yes" >&6; } 12698 X_LIBS="$X_LIBS -R $x_libraries" 12699 else 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 12701 $as_echo "neither works" >&6; } 12702 fi 12703 rm -f core conftest.err conftest.$ac_objext \ 12704 conftest$ac_exeext conftest.$ac_ext 12705 fi 12706 rm -f core conftest.err conftest.$ac_objext \ 12707 conftest$ac_exeext conftest.$ac_ext 12708 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 12709 LIBS=$ac_xsave_LIBS 12710 fi 12711 12712 # Check for system-dependent libraries X programs must link with. 12713 # Do this before checking for the system-independent R6 libraries 12714 # (-lICE), since we may need -lsocket or whatever for X linking. 12715 12716 if test "$ISC" = yes; then 12717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 12718 else 12719 # Martyn Johnson says this is needed for Ultrix, if the X 12720 # libraries were built with DECnet support. And Karl Berry says 12721 # the Alpha needs dnet_stub (dnet does not exist). 12722 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12724 /* end confdefs.h. */ 12725 12726 /* Override any GCC internal prototype to avoid an error. 12727 Use char because int might match the return type of a GCC 12728 builtin and then its argument prototype would still apply. */ 12729 #ifdef __cplusplus 12730 extern "C" 12731 #endif 12732 char XOpenDisplay (); 12733 int 12734 main () 12735 { 12736 return XOpenDisplay (); 12737 ; 12738 return 0; 12739 } 12740 _ACEOF 12741 if ac_fn_cxx_try_link "$LINENO"; then : 12742 12743 else 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 12745 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 12746 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 12747 $as_echo_n "(cached) " >&6 12748 else 12749 ac_check_lib_save_LIBS=$LIBS 12750 LIBS="-ldnet $LIBS" 12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12752 /* end confdefs.h. */ 12753 12754 /* Override any GCC internal prototype to avoid an error. 12755 Use char because int might match the return type of a GCC 12756 builtin and then its argument prototype would still apply. */ 12757 #ifdef __cplusplus 12758 extern "C" 12759 #endif 12760 char dnet_ntoa (); 12761 int 12762 main () 12763 { 12764 return dnet_ntoa (); 12765 ; 12766 return 0; 12767 } 12768 _ACEOF 12769 if ac_fn_cxx_try_link "$LINENO"; then : 12770 ac_cv_lib_dnet_dnet_ntoa=yes 12771 else 12772 ac_cv_lib_dnet_dnet_ntoa=no 12773 fi 12774 rm -f core conftest.err conftest.$ac_objext \ 12775 conftest$ac_exeext conftest.$ac_ext 12776 LIBS=$ac_check_lib_save_LIBS 12777 fi 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 12779 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 12780 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 12781 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 12782 fi 12783 12784 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 12786 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 12787 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 12788 $as_echo_n "(cached) " >&6 12789 else 12790 ac_check_lib_save_LIBS=$LIBS 12791 LIBS="-ldnet_stub $LIBS" 12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12793 /* end confdefs.h. */ 12794 12795 /* Override any GCC internal prototype to avoid an error. 12796 Use char because int might match the return type of a GCC 12797 builtin and then its argument prototype would still apply. */ 12798 #ifdef __cplusplus 12799 extern "C" 12800 #endif 12801 char dnet_ntoa (); 12802 int 12803 main () 12804 { 12805 return dnet_ntoa (); 12806 ; 12807 return 0; 12808 } 12809 _ACEOF 12810 if ac_fn_cxx_try_link "$LINENO"; then : 12811 ac_cv_lib_dnet_stub_dnet_ntoa=yes 12812 else 12813 ac_cv_lib_dnet_stub_dnet_ntoa=no 12814 fi 12815 rm -f core conftest.err conftest.$ac_objext \ 12816 conftest$ac_exeext conftest.$ac_ext 12817 LIBS=$ac_check_lib_save_LIBS 12818 fi 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 12820 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 12821 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 12822 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 12823 fi 12824 12825 fi 12826 fi 12827 rm -f core conftest.err conftest.$ac_objext \ 12828 conftest$ac_exeext conftest.$ac_ext 12829 LIBS="$ac_xsave_LIBS" 12830 12831 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 12832 # to get the SysV transport functions. 12833 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 12834 # needs -lnsl. 12835 # The nsl library prevents programs from opening the X display 12836 # on Irix 5.2, according to T.E. Dickey. 12837 # The functions gethostbyname, getservbyname, and inet_addr are 12838 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 12839 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 12840 if test "x$ac_cv_func_gethostbyname" = x""yes; then : 12841 12842 fi 12843 12844 if test $ac_cv_func_gethostbyname = no; then 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 12846 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 12847 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 12848 $as_echo_n "(cached) " >&6 12849 else 12850 ac_check_lib_save_LIBS=$LIBS 12851 LIBS="-lnsl $LIBS" 12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12853 /* end confdefs.h. */ 12854 12855 /* Override any GCC internal prototype to avoid an error. 12856 Use char because int might match the return type of a GCC 12857 builtin and then its argument prototype would still apply. */ 12858 #ifdef __cplusplus 12859 extern "C" 12860 #endif 12861 char gethostbyname (); 12862 int 12863 main () 12864 { 12865 return gethostbyname (); 12866 ; 12867 return 0; 12868 } 12869 _ACEOF 12870 if ac_fn_cxx_try_link "$LINENO"; then : 12871 ac_cv_lib_nsl_gethostbyname=yes 12872 else 12873 ac_cv_lib_nsl_gethostbyname=no 12874 fi 12875 rm -f core conftest.err conftest.$ac_objext \ 12876 conftest$ac_exeext conftest.$ac_ext 12877 LIBS=$ac_check_lib_save_LIBS 12878 fi 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 12880 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 12881 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 12882 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 12883 fi 12884 12885 if test $ac_cv_lib_nsl_gethostbyname = no; then 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 12887 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 12888 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 12889 $as_echo_n "(cached) " >&6 12890 else 12891 ac_check_lib_save_LIBS=$LIBS 12892 LIBS="-lbsd $LIBS" 12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12894 /* end confdefs.h. */ 12895 12896 /* Override any GCC internal prototype to avoid an error. 12897 Use char because int might match the return type of a GCC 12898 builtin and then its argument prototype would still apply. */ 12899 #ifdef __cplusplus 12900 extern "C" 12901 #endif 12902 char gethostbyname (); 12903 int 12904 main () 12905 { 12906 return gethostbyname (); 12907 ; 12908 return 0; 12909 } 12910 _ACEOF 12911 if ac_fn_cxx_try_link "$LINENO"; then : 12912 ac_cv_lib_bsd_gethostbyname=yes 12913 else 12914 ac_cv_lib_bsd_gethostbyname=no 12915 fi 12916 rm -f core conftest.err conftest.$ac_objext \ 12917 conftest$ac_exeext conftest.$ac_ext 12918 LIBS=$ac_check_lib_save_LIBS 12919 fi 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 12921 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 12922 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 12923 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 12924 fi 12925 12926 fi 12927 fi 12928 12929 # lieder@skyler.mavd.honeywell.com says without -lsocket, 12930 # socket/setsockopt and other routines are undefined under SCO ODT 12931 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 12932 # on later versions), says Simon Leinen: it contains gethostby* 12933 # variants that don't use the name server (or something). -lsocket 12934 # must be given before -lnsl if both are needed. We assume that 12935 # if connect needs -lnsl, so does gethostbyname. 12936 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 12937 if test "x$ac_cv_func_connect" = x""yes; then : 12938 12939 fi 12940 12941 if test $ac_cv_func_connect = no; then 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 12943 $as_echo_n "checking for connect in -lsocket... " >&6; } 12944 if test "${ac_cv_lib_socket_connect+set}" = set; then : 12945 $as_echo_n "(cached) " >&6 12946 else 12947 ac_check_lib_save_LIBS=$LIBS 12948 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12950 /* end confdefs.h. */ 12951 12952 /* Override any GCC internal prototype to avoid an error. 12953 Use char because int might match the return type of a GCC 12954 builtin and then its argument prototype would still apply. */ 12955 #ifdef __cplusplus 12956 extern "C" 12957 #endif 12958 char connect (); 12959 int 12960 main () 12961 { 12962 return connect (); 12963 ; 12964 return 0; 12965 } 12966 _ACEOF 12967 if ac_fn_cxx_try_link "$LINENO"; then : 12968 ac_cv_lib_socket_connect=yes 12969 else 12970 ac_cv_lib_socket_connect=no 12971 fi 12972 rm -f core conftest.err conftest.$ac_objext \ 12973 conftest$ac_exeext conftest.$ac_ext 12974 LIBS=$ac_check_lib_save_LIBS 12975 fi 12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 12977 $as_echo "$ac_cv_lib_socket_connect" >&6; } 12978 if test "x$ac_cv_lib_socket_connect" = x""yes; then : 12979 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 12980 fi 12981 12982 fi 12983 12984 # Guillermo Gomez says -lposix is necessary on A/UX. 12985 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 12986 if test "x$ac_cv_func_remove" = x""yes; then : 12987 12988 fi 12989 12990 if test $ac_cv_func_remove = no; then 12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 12992 $as_echo_n "checking for remove in -lposix... " >&6; } 12993 if test "${ac_cv_lib_posix_remove+set}" = set; then : 12994 $as_echo_n "(cached) " >&6 12995 else 12996 ac_check_lib_save_LIBS=$LIBS 12997 LIBS="-lposix $LIBS" 12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12999 /* end confdefs.h. */ 13000 13001 /* Override any GCC internal prototype to avoid an error. 13002 Use char because int might match the return type of a GCC 13003 builtin and then its argument prototype would still apply. */ 13004 #ifdef __cplusplus 13005 extern "C" 13006 #endif 13007 char remove (); 13008 int 13009 main () 13010 { 13011 return remove (); 13012 ; 13013 return 0; 13014 } 13015 _ACEOF 13016 if ac_fn_cxx_try_link "$LINENO"; then : 13017 ac_cv_lib_posix_remove=yes 13018 else 13019 ac_cv_lib_posix_remove=no 13020 fi 13021 rm -f core conftest.err conftest.$ac_objext \ 13022 conftest$ac_exeext conftest.$ac_ext 13023 LIBS=$ac_check_lib_save_LIBS 13024 fi 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 13026 $as_echo "$ac_cv_lib_posix_remove" >&6; } 13027 if test "x$ac_cv_lib_posix_remove" = x""yes; then : 13028 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 13029 fi 13030 13031 fi 13032 13033 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 13034 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 13035 if test "x$ac_cv_func_shmat" = x""yes; then : 13036 13037 fi 13038 13039 if test $ac_cv_func_shmat = no; then 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 13041 $as_echo_n "checking for shmat in -lipc... " >&6; } 13042 if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 13043 $as_echo_n "(cached) " >&6 13044 else 13045 ac_check_lib_save_LIBS=$LIBS 13046 LIBS="-lipc $LIBS" 13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13048 /* end confdefs.h. */ 13049 13050 /* Override any GCC internal prototype to avoid an error. 13051 Use char because int might match the return type of a GCC 13052 builtin and then its argument prototype would still apply. */ 13053 #ifdef __cplusplus 13054 extern "C" 13055 #endif 13056 char shmat (); 13057 int 13058 main () 13059 { 13060 return shmat (); 13061 ; 13062 return 0; 13063 } 13064 _ACEOF 13065 if ac_fn_cxx_try_link "$LINENO"; then : 13066 ac_cv_lib_ipc_shmat=yes 13067 else 13068 ac_cv_lib_ipc_shmat=no 13069 fi 13070 rm -f core conftest.err conftest.$ac_objext \ 13071 conftest$ac_exeext conftest.$ac_ext 13072 LIBS=$ac_check_lib_save_LIBS 13073 fi 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 13075 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 13076 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 13077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 13078 fi 13079 13080 fi 13081 fi 13082 13083 # Check for libraries that X11R6 Xt/Xaw programs need. 13084 ac_save_LDFLAGS=$LDFLAGS 13085 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 13086 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 13087 # check for ICE first), but we must link in the order -lSM -lICE or 13088 # we get undefined symbols. So assume we have SM if we have ICE. 13089 # These have to be linked with before -lX11, unlike the other 13090 # libraries we check for below, so use a different variable. 13091 # John Interrante, Karl Berry 13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 13093 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 13094 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 13095 $as_echo_n "(cached) " >&6 13096 else 13097 ac_check_lib_save_LIBS=$LIBS 13098 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13100 /* end confdefs.h. */ 13101 13102 /* Override any GCC internal prototype to avoid an error. 13103 Use char because int might match the return type of a GCC 13104 builtin and then its argument prototype would still apply. */ 13105 #ifdef __cplusplus 13106 extern "C" 13107 #endif 13108 char IceConnectionNumber (); 13109 int 13110 main () 13111 { 13112 return IceConnectionNumber (); 13113 ; 13114 return 0; 13115 } 13116 _ACEOF 13117 if ac_fn_cxx_try_link "$LINENO"; then : 13118 ac_cv_lib_ICE_IceConnectionNumber=yes 13119 else 13120 ac_cv_lib_ICE_IceConnectionNumber=no 13121 fi 13122 rm -f core conftest.err conftest.$ac_objext \ 13123 conftest$ac_exeext conftest.$ac_ext 13124 LIBS=$ac_check_lib_save_LIBS 13125 fi 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 13127 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 13128 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 13129 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 13130 fi 13131 13132 LDFLAGS=$ac_save_LDFLAGS 13133 13134 fi 13135 13136 13137 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 13138 help_on_build_dependency x11 13139 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 13140 fi 13141 13142 13143 13144 13145 # Some of the old makefiles require a setting of OPENWIN_HOME 13146 # Since the X11R6 directory has disappeared on later Linuxes, 13147 # we need to probe for it. 13148 if test "x$HOST_OS" = xlinux; then 13149 if test -d "$SYS_ROOT/usr/X11R6"; then 13150 OPENWIN_HOME="$SYS_ROOT/usr/X11R6" 13151 fi 13152 if test -d "$SYS_ROOT/usr/include/X11"; then 13153 OPENWIN_HOME="$SYS_ROOT/usr" 13154 fi 13155 fi 13156 if test "x$HOST_OS" = xsolaris; then 13157 OPENWIN_HOME="/usr/openwin" 13158 fi 13159 13160 13161 ac_ext=c 13162 ac_cpp='$CPP $CPPFLAGS' 13163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13165 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13166 13167 OLD_CFLAGS="$CFLAGS" 13168 CFLAGS="$CFLAGS $X_CFLAGS" 13169 13170 13171 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h 13172 do : 13173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13174 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13175 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13176 cat >>confdefs.h <<_ACEOF 13177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13178 _ACEOF 13179 X11_A_OK=yes 13180 else 13181 X11_A_OK=no 13182 fi 13183 13184 done 13185 13186 CFLAGS="$OLD_CFLAGS" 13187 ac_ext=cpp 13188 ac_cpp='$CXXCPP $CPPFLAGS' 13189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13192 13193 13194 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 13195 help_on_build_dependency x11 13196 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h). $HELP_MSG" "$LINENO" 5 13197 fi 13198 13199 ############################################################################### 13200 # 13201 # The common unix printing system cups is used to print from java. 13202 # 13203 13204 # Check whether --with-cups was given. 13205 if test "${with_cups+set}" = set; then : 13206 withval=$with_cups; 13207 fi 13208 13209 13210 # Check whether --with-cups-include was given. 13211 if test "${with_cups_include+set}" = set; then : 13212 withval=$with_cups_include; 13213 fi 13214 13215 13216 # Check whether --with-cups-lib was given. 13217 if test "${with_cups_lib+set}" = set; then : 13218 withval=$with_cups_lib; 13219 fi 13220 13221 13222 if test "x$CUPS_NOT_NEEDED" = xyes; then 13223 if test "x$with_cups" != x || test "x$with_cups-include" != x || test "x$with_cups-lib" != x; then 13224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 13225 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 13226 fi 13227 CUPS_CFLAGS= 13228 CUPS_LIBS= 13229 else 13230 CUPS_FOUND=no 13231 13232 if test "x$with_cups" = xno || test "x$with_cups-include" = xno || test "x$with_cups-lib" = xno; then 13233 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 13234 fi 13235 13236 if test "x$with_cups" != x; then 13237 CUPS_LIBS="-L$with_cups/lib -lcups" 13238 CUPS_CFLAGS="-I$with_cups/include" 13239 CUPS_FOUND=yes 13240 fi 13241 if test "x$with_cups-include" != x; then 13242 CUPS_CFLAGS="-I$with_cups-include" 13243 CUPS_FOUND=yes 13244 fi 13245 if test "x$with_cups-lib" != x; then 13246 CUPS_LIBS="-L$with_cups-lib -lcups" 13247 CUPS_FOUND=yes 13248 fi 13249 if test "x$CUPS_FOUND" = xno; then 13250 13251 13252 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 13253 # Source the builddeps file again, to make sure it uses the latest variables! 13254 . $builddepsfile 13255 # Look for a host and build machine specific resource! 13256 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}} 13257 if test "x$resource" = x; then 13258 # Ok, lets instead look for a host specific resource 13259 eval resource=\${builddep_cups_HOST_${rewritten_host_var}} 13260 fi 13261 if test "x$resource" = x; then 13262 # Ok, lets instead look for a build specific resource 13263 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 13264 fi 13265 if test "x$resource" = x; then 13266 # Ok, lets instead look for a generic resource 13267 # (The cups comes from M4 and not the shell, thus no need for eval here.) 13268 resource=${builddep_cups} 13269 fi 13270 if test "x$resource" != x; then 13271 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 13272 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 13273 # If the resource in the builddeps.conf file is an existing directory, 13274 # for example /java/linux/cups 13275 if test -d ${resource}; then 13276 depdir=${resource} 13277 else 13278 13279 # cups is for example mymodule 13280 # $resource is for example libs/general/libmymod_1_2_3.zip 13281 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 13282 # $with_builddeps_dir is for example /localhome/builddeps 13283 # depdir is the name of the variable into which we store the depdir, eg MYMOD 13284 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 13285 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 13286 filename=`basename $resource` 13287 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 13288 filebase=${filename%%.*} 13289 extension=${filename#*.} 13290 installdir=$with_builddeps_dir/$filebase 13291 if test ! -f $installdir/$filename.unpacked; then 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 13293 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 13294 if test ! -d $installdir; then 13295 mkdir -p $installdir 13296 fi 13297 if test ! -d $installdir; then 13298 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 13299 fi 13300 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 13301 touch $tmpfile 13302 if test ! -f $tmpfile; then 13303 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 13304 fi 13305 13306 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 13307 # $tmpfile is the local file name for the downloaded file. 13308 VALID_TOOL=no 13309 if test "x$BDEPS_FTP" = xwget; then 13310 VALID_TOOL=yes 13311 wget -O $tmpfile $with_builddeps_server/$resource 13312 fi 13313 if test "x$BDEPS_FTP" = xlftp; then 13314 VALID_TOOL=yes 13315 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 13316 fi 13317 if test "x$BDEPS_FTP" = xftp; then 13318 VALID_TOOL=yes 13319 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 13320 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 13321 FTPUSERPWD=${FTPSERVER%%@*} 13322 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 13323 FTPUSER=${userpwd%%:*} 13324 FTPPWD=${userpwd#*@} 13325 FTPSERVER=${FTPSERVER#*@} 13326 else 13327 FTPUSER=ftp 13328 FTPPWD=ftp 13329 fi 13330 # the "pass" command does not work on some 13331 # ftp clients (read ftp.exe) but if it works, 13332 # passive mode is better! 13333 (\ 13334 echo "user $FTPUSER $FTPPWD" ;\ 13335 echo "pass" ;\ 13336 echo "bin" ;\ 13337 echo "get $FTPPATH $tmpfile" ;\ 13338 ) | ftp -in $FTPSERVER 13339 fi 13340 if test "x$VALID_TOOL" != xyes; then 13341 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 13342 fi 13343 13344 mv $tmpfile $installdir/$filename 13345 if test ! -s $installdir/$filename; then 13346 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 13347 fi 13348 case "$extension" in 13349 zip) echo "Unzipping $installdir/$filename..." 13350 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 13351 ;; 13352 tar.gz) echo "Untaring $installdir/$filename..." 13353 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 13354 ;; 13355 tgz) echo "Untaring $installdir/$filename..." 13356 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 13357 ;; 13358 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 13359 ;; 13360 esac 13361 fi 13362 if test -f $installdir/$filename.unpacked; then 13363 depdir=$installdir 13364 fi 13365 13366 fi 13367 # Source the builddeps file again, because in the previous command, the depdir 13368 # was updated to point at the current build dependency install directory. 13369 . $builddepsfile 13370 # Now extract variables from the builddeps.conf files. 13371 theroot=${builddep_cups_ROOT} 13372 thecflags=${builddep_cups_CFLAGS} 13373 thelibs=${builddep_cups_LIBS} 13374 if test "x$depdir" = x; then 13375 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 13376 fi 13377 CUPS=$depdir 13378 if test "x$theroot" != x; then 13379 CUPS="$theroot" 13380 fi 13381 if test "x$thecflags" != x; then 13382 CUPS_CFLAGS="$thecflags" 13383 fi 13384 if test "x$thelibs" != x; then 13385 CUPS_LIBS="$thelibs" 13386 fi 13387 CUPS_FOUND=yes 13388 13389 fi 13390 13391 fi 13392 13393 fi 13394 if test "x$CUPS_FOUND" = xno; then 13395 # Are the cups headers installed in the default /usr/include location? 13396 for ac_header in cups/cups.h cups/ppd.h 13397 do : 13398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13399 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13401 cat >>confdefs.h <<_ACEOF 13402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13403 _ACEOF 13404 CUPS_FOUND=yes 13405 CUPS_CFLAGS= 13406 CUPS_LIBS="-lcups" 13407 DEFAULT_CUPS=yes 13408 fi 13409 13410 done 13411 13412 fi 13413 if test "x$CUPS_FOUND" = xno; then 13414 # Getting nervous now? Lets poke around for standard Solaris third-party 13415 # package installation locations. 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers and libs" >&5 13417 $as_echo_n "checking for cups headers and libs... " >&6; } 13418 if test -s /opt/sfw/cups/include/cups/cups.h; then 13419 # An SFW package seems to be installed! 13420 CUPS_FOUND=yes 13421 CUPS_CFLAGS="-I/opt/sfw/cups/include" 13422 CUPS_LIBS="-L/opt/sfw/cups/lib -lcups" 13423 elif test -s /opt/csw/include/cups/cups.h; then 13424 # A CSW package seems to be installed! 13425 CUPS_FOUND=yes 13426 CUPS_CFLAGS="-I/opt/csw/include" 13427 CUPS_LIBS="-L/opt/csw/lib -lcups" 13428 fi 13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 13430 $as_echo "$CUPS_FOUND" >&6; } 13431 fi 13432 if test "x$CUPS_FOUND" = xno; then 13433 help_on_build_dependency cups 13434 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 13435 fi 13436 fi 13437 13438 13439 13440 13441 ############################################################################### 13442 # 13443 # The ubiquitous freetype2 library is used to render fonts. 13444 # 13445 13446 # Check whether --with-freetype was given. 13447 if test "${with_freetype+set}" = set; then : 13448 withval=$with_freetype; 13449 fi 13450 13451 13452 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree 13453 USING_SYSTEM_FT_LIB=false 13454 13455 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then 13456 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 13458 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 13459 fi 13460 FREETYPE2_CFLAGS= 13461 FREETYPE2_LIBS= 13462 FREETYPE2_LIB_PATH= 13463 else 13464 FREETYPE2_FOUND=no 13465 13466 if test "x$with_freetype" != x; then 13467 13468 # Fail with message the path to freetype if var with_freetype contains a path with no spaces in it. 13469 # Unless on Windows, where we can rewrite the path. 13470 HAS_SPACE=`echo "$with_freetype" | grep " "` 13471 if test "x$HAS_SPACE" != x; then 13472 if test "x$BUILD_OS" = "xwindows"; then 13473 with_freetype=`$CYGPATH -s -m -a "$with_freetype"` 13474 with_freetype=`$CYGPATH -u "$with_freetype"` 13475 else 13476 as_fn_error $? "You cannot have spaces in the path to freetype! \"$with_freetype\"" "$LINENO" 5 13477 fi 13478 fi 13479 13480 FREETYPE2_LIBS="-L$with_freetype/lib -lfreetype" 13481 if test "x$HOST_OS" = xwindows; then 13482 FREETYPE2_LIBS="$with_freetype/lib/freetype.lib" 13483 fi 13484 FREETYPE2_LIB_PATH="$with_freetype/lib" 13485 FREETYPE2_CFLAGS="-I$with_freetype/include" 13486 if test -s $with_freetype/include/ft2build.h && test -d $with_freetype/include/freetype2/freetype; then 13487 FREETYPE2_CFLAGS="-I$with_freetype/include/freetype2 -I$with_freetype/include" 13488 fi 13489 FREETYPE2_FOUND=yes 13490 if test "x$FREETYPE2_FOUND" = xyes; then 13491 # Verify that the directories exist 13492 if ! test -d "$with_freetype/lib" || ! test -d "$with_freetype/include"; then 13493 as_fn_error $? "Could not find the expected directories $with_freetype/lib and $with_freetype/include" "$LINENO" 5 13494 fi 13495 # List the contents of the lib. 13496 FREETYPELIB=`ls $with_freetype/lib/libfreetype.so $with_freetype/lib/freetype.dll 2> /dev/null` 13497 if test "x$FREETYPELIB" = x; then 13498 as_fn_error $? "Could not find libfreetype.se nor freetype.dll in $with_freetype/lib" "$LINENO" 5 13499 fi 13500 # Check one h-file 13501 if ! test -s "$with_freetype/include/ft2build.h"; then 13502 as_fn_error $? "Could not find $with_freetype/include/ft2build.h" "$LINENO" 5 13503 fi 13504 fi 13505 fi 13506 if test "x$FREETYPE2_FOUND" = xno; then 13507 13508 13509 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 13510 # Source the builddeps file again, to make sure it uses the latest variables! 13511 . $builddepsfile 13512 # Look for a host and build machine specific resource! 13513 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}} 13514 if test "x$resource" = x; then 13515 # Ok, lets instead look for a host specific resource 13516 eval resource=\${builddep_freetype2_HOST_${rewritten_host_var}} 13517 fi 13518 if test "x$resource" = x; then 13519 # Ok, lets instead look for a build specific resource 13520 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 13521 fi 13522 if test "x$resource" = x; then 13523 # Ok, lets instead look for a generic resource 13524 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 13525 resource=${builddep_freetype2} 13526 fi 13527 if test "x$resource" != x; then 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 13529 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 13530 # If the resource in the builddeps.conf file is an existing directory, 13531 # for example /java/linux/cups 13532 if test -d ${resource}; then 13533 depdir=${resource} 13534 else 13535 13536 # freetype2 is for example mymodule 13537 # $resource is for example libs/general/libmymod_1_2_3.zip 13538 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 13539 # $with_builddeps_dir is for example /localhome/builddeps 13540 # depdir is the name of the variable into which we store the depdir, eg MYMOD 13541 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 13542 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 13543 filename=`basename $resource` 13544 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 13545 filebase=${filename%%.*} 13546 extension=${filename#*.} 13547 installdir=$with_builddeps_dir/$filebase 13548 if test ! -f $installdir/$filename.unpacked; then 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 13550 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 13551 if test ! -d $installdir; then 13552 mkdir -p $installdir 13553 fi 13554 if test ! -d $installdir; then 13555 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 13556 fi 13557 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 13558 touch $tmpfile 13559 if test ! -f $tmpfile; then 13560 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 13561 fi 13562 13563 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 13564 # $tmpfile is the local file name for the downloaded file. 13565 VALID_TOOL=no 13566 if test "x$BDEPS_FTP" = xwget; then 13567 VALID_TOOL=yes 13568 wget -O $tmpfile $with_builddeps_server/$resource 13569 fi 13570 if test "x$BDEPS_FTP" = xlftp; then 13571 VALID_TOOL=yes 13572 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 13573 fi 13574 if test "x$BDEPS_FTP" = xftp; then 13575 VALID_TOOL=yes 13576 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 13577 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 13578 FTPUSERPWD=${FTPSERVER%%@*} 13579 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 13580 FTPUSER=${userpwd%%:*} 13581 FTPPWD=${userpwd#*@} 13582 FTPSERVER=${FTPSERVER#*@} 13583 else 13584 FTPUSER=ftp 13585 FTPPWD=ftp 13586 fi 13587 # the "pass" command does not work on some 13588 # ftp clients (read ftp.exe) but if it works, 13589 # passive mode is better! 13590 (\ 13591 echo "user $FTPUSER $FTPPWD" ;\ 13592 echo "pass" ;\ 13593 echo "bin" ;\ 13594 echo "get $FTPPATH $tmpfile" ;\ 13595 ) | ftp -in $FTPSERVER 13596 fi 13597 if test "x$VALID_TOOL" != xyes; then 13598 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 13599 fi 13600 13601 mv $tmpfile $installdir/$filename 13602 if test ! -s $installdir/$filename; then 13603 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 13604 fi 13605 case "$extension" in 13606 zip) echo "Unzipping $installdir/$filename..." 13607 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 13608 ;; 13609 tar.gz) echo "Untaring $installdir/$filename..." 13610 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 13611 ;; 13612 tgz) echo "Untaring $installdir/$filename..." 13613 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 13614 ;; 13615 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 13616 ;; 13617 esac 13618 fi 13619 if test -f $installdir/$filename.unpacked; then 13620 depdir=$installdir 13621 fi 13622 13623 fi 13624 # Source the builddeps file again, because in the previous command, the depdir 13625 # was updated to point at the current build dependency install directory. 13626 . $builddepsfile 13627 # Now extract variables from the builddeps.conf files. 13628 theroot=${builddep_freetype2_ROOT} 13629 thecflags=${builddep_freetype2_CFLAGS} 13630 thelibs=${builddep_freetype2_LIBS} 13631 if test "x$depdir" = x; then 13632 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 13633 fi 13634 FREETYPE2=$depdir 13635 if test "x$theroot" != x; then 13636 FREETYPE2="$theroot" 13637 fi 13638 if test "x$thecflags" != x; then 13639 FREETYPE2_CFLAGS="$thecflags" 13640 fi 13641 if test "x$thelibs" != x; then 13642 FREETYPE2_LIBS="$thelibs" 13643 fi 13644 FREETYPE2_FOUND=yes 13645 else FREETYPE2_FOUND=no 13646 13647 fi 13648 else FREETYPE2_FOUND=no 13649 13650 fi 13651 13652 USING_SYSTEM_FT_LIB=true 13653 fi 13654 if test "x$FREETYPE2_FOUND" = xno; then 13655 13656 pkg_failed=no 13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5 13658 $as_echo_n "checking for FREETYPE2... " >&6; } 13659 13660 if test -n "$FREETYPE2_CFLAGS"; then 13661 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS" 13662 elif test -n "$PKG_CONFIG"; then 13663 if test -n "$PKG_CONFIG" && \ 13664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 13665 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 13666 ac_status=$? 13667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13668 test $ac_status = 0; }; then 13669 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 13670 else 13671 pkg_failed=yes 13672 fi 13673 else 13674 pkg_failed=untried 13675 fi 13676 if test -n "$FREETYPE2_LIBS"; then 13677 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS" 13678 elif test -n "$PKG_CONFIG"; then 13679 if test -n "$PKG_CONFIG" && \ 13680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 13681 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 13682 ac_status=$? 13683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13684 test $ac_status = 0; }; then 13685 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 13686 else 13687 pkg_failed=yes 13688 fi 13689 else 13690 pkg_failed=untried 13691 fi 13692 13693 13694 13695 if test $pkg_failed = yes; then 13696 13697 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13698 _pkg_short_errors_supported=yes 13699 else 13700 _pkg_short_errors_supported=no 13701 fi 13702 if test $_pkg_short_errors_supported = yes; then 13703 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 13704 else 13705 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 13706 fi 13707 # Put the nasty error message in config.log where it belongs 13708 echo "$FREETYPE2_PKG_ERRORS" >&5 13709 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13711 $as_echo "no" >&6; } 13712 FREETYPE2_FOUND=no 13713 elif test $pkg_failed = untried; then 13714 FREETYPE2_FOUND=no 13715 else 13716 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS 13717 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS 13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13719 $as_echo "yes" >&6; } 13720 FREETYPE2_FOUND=yes 13721 fi 13722 USING_SYSTEM_FT_LIB=true 13723 fi 13724 if test "x$FREETYPE2_FOUND" = xno; then 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in some standard locations" >&5 13726 $as_echo_n "checking for freetype in some standard locations... " >&6; } 13727 13728 if test -s /usr/X11/include/ft2build.h && test -d /usr/X11/include/freetype2/freetype; then 13729 DEFAULT_FREETYPE_CFLAGS="-I/usr/X11/include/freetype2 -I/usr/X11/include" 13730 DEFAULT_FREETYPE_LIBS="-L/usr/X11/lib -lfreetype" 13731 fi 13732 if test -s /usr/include/ft2build.h && test -d /usr/include/freetype2/freetype; then 13733 DEFAULT_FREETYPE_CFLAGS="-I/usr/include/freetype2" 13734 DEFAULT_FREETYPE_LIBS="-lfreetype" 13735 fi 13736 13737 PREV_CXXCFLAGS="$CXXFLAGS" 13738 PREV_LDFLAGS="$LDFLAGS" 13739 CXXFLAGS="$CXXFLAGS $DEFAULT_FREETYPE_CFLAGS" 13740 LDFLAGS="$LDFLAGS $DEFAULT_FREETYPE_LIBS" 13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13742 /* end confdefs.h. */ 13743 #include<ft2build.h> 13744 #include FT_FREETYPE_H 13745 int main() { return 0; } 13746 13747 _ACEOF 13748 if ac_fn_cxx_try_link "$LINENO"; then : 13749 13750 # Yes, the default cflags and libs did the trick. 13751 FREETYPE2_FOUND=yes 13752 FREETYPE2_CFLAGS="$DEFAULT_FREETYPE_CFLAGS" 13753 FREETYPE2_LIBS="$DEFAULT_FREETYPE_LIBS" 13754 13755 else 13756 13757 FREETYPE2_FOUND=no 13758 13759 fi 13760 rm -f core conftest.err conftest.$ac_objext \ 13761 conftest$ac_exeext conftest.$ac_ext 13762 CXXCFLAGS="$PREV_CXXFLAGS" 13763 LDFLAGS="$PREV_LDFLAGS" 13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_FOUND" >&5 13765 $as_echo "$FREETYPE2_FOUND" >&6; } 13766 USING_SYSTEM_FT_LIB=true 13767 fi 13768 if test "x$FREETYPE2_FOUND" = xno; then 13769 help_on_build_dependency freetype2 13770 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5 13771 fi 13772 fi 13773 13774 13775 13776 13777 13778 13779 ############################################################################### 13780 # 13781 # Check for alsa headers and libraries. Used on Linux/GNU systems. 13782 # 13783 13784 # Check whether --with-alsa was given. 13785 if test "${with_alsa+set}" = set; then : 13786 withval=$with_alsa; 13787 fi 13788 13789 13790 # Check whether --with-alsa-include was given. 13791 if test "${with_alsa_include+set}" = set; then : 13792 withval=$with_alsa_include; 13793 fi 13794 13795 13796 # Check whether --with-alsa-lib was given. 13797 if test "${with_alsa_lib+set}" = set; then : 13798 withval=$with_alsa_lib; 13799 fi 13800 13801 13802 if test "x$ALSA_NOT_NEEDED" = xyes; then 13803 if test "x$with_alsa" != x || test "x$with_alsa-include" != x || test "x$with_alsa-lib" != x; then 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 13805 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 13806 fi 13807 ALSA_CFLAGS= 13808 ALSA_LIBS= 13809 else 13810 ALSA_FOUND=no 13811 13812 if test "x$with_alsa" = xno || test "x$with_alsa-include" = xno || test "x$with_alsa-lib" = xno; then 13813 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 13814 fi 13815 13816 if test "x$with_alsa" != x; then 13817 ALSA_LIBS="-L$with_alsa/lib -lalsa" 13818 ALSA_CFLAGS="-I$with_alsa/include" 13819 ALSA_FOUND=yes 13820 fi 13821 if test "x$with_alsa-include" != x; then 13822 ALSA_CFLAGS="-I$with_alsa/include" 13823 ALSA_FOUND=yes 13824 fi 13825 if test "x$with_alsa-lib" != x; then 13826 ALSA_LIBS="-L$with_alsa/lib -lalsa" 13827 ALSA_FOUND=yes 13828 fi 13829 if test "x$ALSA_FOUND" = xno; then 13830 13831 13832 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 13833 # Source the builddeps file again, to make sure it uses the latest variables! 13834 . $builddepsfile 13835 # Look for a host and build machine specific resource! 13836 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}} 13837 if test "x$resource" = x; then 13838 # Ok, lets instead look for a host specific resource 13839 eval resource=\${builddep_alsa_HOST_${rewritten_host_var}} 13840 fi 13841 if test "x$resource" = x; then 13842 # Ok, lets instead look for a build specific resource 13843 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 13844 fi 13845 if test "x$resource" = x; then 13846 # Ok, lets instead look for a generic resource 13847 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 13848 resource=${builddep_alsa} 13849 fi 13850 if test "x$resource" != x; then 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 13852 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 13853 # If the resource in the builddeps.conf file is an existing directory, 13854 # for example /java/linux/cups 13855 if test -d ${resource}; then 13856 depdir=${resource} 13857 else 13858 13859 # alsa is for example mymodule 13860 # $resource is for example libs/general/libmymod_1_2_3.zip 13861 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 13862 # $with_builddeps_dir is for example /localhome/builddeps 13863 # depdir is the name of the variable into which we store the depdir, eg MYMOD 13864 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 13865 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 13866 filename=`basename $resource` 13867 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 13868 filebase=${filename%%.*} 13869 extension=${filename#*.} 13870 installdir=$with_builddeps_dir/$filebase 13871 if test ! -f $installdir/$filename.unpacked; then 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 13873 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 13874 if test ! -d $installdir; then 13875 mkdir -p $installdir 13876 fi 13877 if test ! -d $installdir; then 13878 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 13879 fi 13880 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 13881 touch $tmpfile 13882 if test ! -f $tmpfile; then 13883 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 13884 fi 13885 13886 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 13887 # $tmpfile is the local file name for the downloaded file. 13888 VALID_TOOL=no 13889 if test "x$BDEPS_FTP" = xwget; then 13890 VALID_TOOL=yes 13891 wget -O $tmpfile $with_builddeps_server/$resource 13892 fi 13893 if test "x$BDEPS_FTP" = xlftp; then 13894 VALID_TOOL=yes 13895 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 13896 fi 13897 if test "x$BDEPS_FTP" = xftp; then 13898 VALID_TOOL=yes 13899 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 13900 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 13901 FTPUSERPWD=${FTPSERVER%%@*} 13902 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 13903 FTPUSER=${userpwd%%:*} 13904 FTPPWD=${userpwd#*@} 13905 FTPSERVER=${FTPSERVER#*@} 13906 else 13907 FTPUSER=ftp 13908 FTPPWD=ftp 13909 fi 13910 # the "pass" command does not work on some 13911 # ftp clients (read ftp.exe) but if it works, 13912 # passive mode is better! 13913 (\ 13914 echo "user $FTPUSER $FTPPWD" ;\ 13915 echo "pass" ;\ 13916 echo "bin" ;\ 13917 echo "get $FTPPATH $tmpfile" ;\ 13918 ) | ftp -in $FTPSERVER 13919 fi 13920 if test "x$VALID_TOOL" != xyes; then 13921 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 13922 fi 13923 13924 mv $tmpfile $installdir/$filename 13925 if test ! -s $installdir/$filename; then 13926 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 13927 fi 13928 case "$extension" in 13929 zip) echo "Unzipping $installdir/$filename..." 13930 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 13931 ;; 13932 tar.gz) echo "Untaring $installdir/$filename..." 13933 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 13934 ;; 13935 tgz) echo "Untaring $installdir/$filename..." 13936 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 13937 ;; 13938 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 13939 ;; 13940 esac 13941 fi 13942 if test -f $installdir/$filename.unpacked; then 13943 depdir=$installdir 13944 fi 13945 13946 fi 13947 # Source the builddeps file again, because in the previous command, the depdir 13948 # was updated to point at the current build dependency install directory. 13949 . $builddepsfile 13950 # Now extract variables from the builddeps.conf files. 13951 theroot=${builddep_alsa_ROOT} 13952 thecflags=${builddep_alsa_CFLAGS} 13953 thelibs=${builddep_alsa_LIBS} 13954 if test "x$depdir" = x; then 13955 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 13956 fi 13957 ALSA=$depdir 13958 if test "x$theroot" != x; then 13959 ALSA="$theroot" 13960 fi 13961 if test "x$thecflags" != x; then 13962 ALSA_CFLAGS="$thecflags" 13963 fi 13964 if test "x$thelibs" != x; then 13965 ALSA_LIBS="$thelibs" 13966 fi 13967 ALSA_FOUND=yes 13968 else ALSA_FOUND=no 13969 13970 fi 13971 else ALSA_FOUND=no 13972 13973 fi 13974 13975 fi 13976 if test "x$ALSA_FOUND" = xno; then 13977 13978 pkg_failed=no 13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 13980 $as_echo_n "checking for ALSA... " >&6; } 13981 13982 if test -n "$ALSA_CFLAGS"; then 13983 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 13984 elif test -n "$PKG_CONFIG"; then 13985 if test -n "$PKG_CONFIG" && \ 13986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 13987 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 13988 ac_status=$? 13989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13990 test $ac_status = 0; }; then 13991 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 13992 else 13993 pkg_failed=yes 13994 fi 13995 else 13996 pkg_failed=untried 13997 fi 13998 if test -n "$ALSA_LIBS"; then 13999 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 14000 elif test -n "$PKG_CONFIG"; then 14001 if test -n "$PKG_CONFIG" && \ 14002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 14003 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 14004 ac_status=$? 14005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14006 test $ac_status = 0; }; then 14007 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 14008 else 14009 pkg_failed=yes 14010 fi 14011 else 14012 pkg_failed=untried 14013 fi 14014 14015 14016 14017 if test $pkg_failed = yes; then 14018 14019 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14020 _pkg_short_errors_supported=yes 14021 else 14022 _pkg_short_errors_supported=no 14023 fi 14024 if test $_pkg_short_errors_supported = yes; then 14025 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 14026 else 14027 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 14028 fi 14029 # Put the nasty error message in config.log where it belongs 14030 echo "$ALSA_PKG_ERRORS" >&5 14031 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14033 $as_echo "no" >&6; } 14034 ALSA_FOUND=no 14035 elif test $pkg_failed = untried; then 14036 ALSA_FOUND=no 14037 else 14038 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 14039 ALSA_LIBS=$pkg_cv_ALSA_LIBS 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14041 $as_echo "yes" >&6; } 14042 ALSA_FOUND=yes 14043 fi 14044 fi 14045 if test "x$ALSA_FOUND" = xno; then 14046 for ac_header in alsa/asoundlib.h 14047 do : 14048 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 14049 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then : 14050 cat >>confdefs.h <<_ACEOF 14051 #define HAVE_ALSA_ASOUNDLIB_H 1 14052 _ACEOF 14053 ALSA_FOUND=yes 14054 ALSA_CFLAGS=-Iignoreme 14055 ALSA_LIBS=-lasound 14056 DEFAULT_ALSA=yes 14057 else 14058 ALSA_FOUND=no 14059 fi 14060 14061 done 14062 14063 fi 14064 if test "x$ALSA_FOUND" = xno; then 14065 help_on_build_dependency alsa 14066 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 14067 fi 14068 fi 14069 14070 14071 14072 14073 ############################################################################### 14074 # 14075 # Check for pulse audio headers and libraries. 14076 # 14077 PULSE_FOUND=no 14078 14079 # Check whether --with-pulse was given. 14080 if test "${with_pulse+set}" = set; then : 14081 withval=$with_pulse; 14082 fi 14083 14084 14085 # Check whether --with-pulse-include was given. 14086 if test "${with_pulse_include+set}" = set; then : 14087 withval=$with_pulse_include; 14088 fi 14089 14090 14091 # Check whether --with-pulse-lib was given. 14092 if test "${with_pulse_lib+set}" = set; then : 14093 withval=$with_pulse_lib; 14094 fi 14095 14096 14097 if test "x$with_pulse" != x; then 14098 PULSE_LIBS="-L$with_pulse/lib -lfreetype" 14099 PULSE_CFLAGS="-I$with_pulse/include" 14100 PULSE_FOUND=yes 14101 fi 14102 if test "x$with_pulse-include" != x; then 14103 PULSE_CFLAGS="-I$with_pulse/include" 14104 PULSE_FOUND=yes 14105 fi 14106 if test "x$with_pulse-lib" != x; then 14107 PULSE_LIBS="-L$with_pulse/lib -lfreetype" 14108 PULSE_FOUND=yes 14109 fi 14110 if test "x$PULSE_FOUND" = xno; then 14111 14112 14113 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 14114 # Source the builddeps file again, to make sure it uses the latest variables! 14115 . $builddepsfile 14116 # Look for a host and build machine specific resource! 14117 eval resource=\${builddep_pulse_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}} 14118 if test "x$resource" = x; then 14119 # Ok, lets instead look for a host specific resource 14120 eval resource=\${builddep_pulse_HOST_${rewritten_host_var}} 14121 fi 14122 if test "x$resource" = x; then 14123 # Ok, lets instead look for a build specific resource 14124 eval resource=\${builddep_pulse_BUILD_${rewritten_build_var}} 14125 fi 14126 if test "x$resource" = x; then 14127 # Ok, lets instead look for a generic resource 14128 # (The pulse comes from M4 and not the shell, thus no need for eval here.) 14129 resource=${builddep_pulse} 14130 fi 14131 if test "x$resource" != x; then 14132 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for pulse" >&5 14133 $as_echo "$as_me: Using builddeps $resource for pulse" >&6;} 14134 # If the resource in the builddeps.conf file is an existing directory, 14135 # for example /java/linux/cups 14136 if test -d ${resource}; then 14137 depdir=${resource} 14138 else 14139 14140 # pulse is for example mymodule 14141 # $resource is for example libs/general/libmymod_1_2_3.zip 14142 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 14143 # $with_builddeps_dir is for example /localhome/builddeps 14144 # depdir is the name of the variable into which we store the depdir, eg MYMOD 14145 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 14146 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 14147 filename=`basename $resource` 14148 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 14149 filebase=${filename%%.*} 14150 extension=${filename#*.} 14151 installdir=$with_builddeps_dir/$filebase 14152 if test ! -f $installdir/$filename.unpacked; then 14153 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency pulse from $with_builddeps_server/$resource and installing into $installdir" >&5 14154 $as_echo "$as_me: Downloading build dependency pulse from $with_builddeps_server/$resource and installing into $installdir" >&6;} 14155 if test ! -d $installdir; then 14156 mkdir -p $installdir 14157 fi 14158 if test ! -d $installdir; then 14159 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 14160 fi 14161 tmpfile=`mktemp $installdir/pulse.XXXXXXXXX` 14162 touch $tmpfile 14163 if test ! -f $tmpfile; then 14164 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 14165 fi 14166 14167 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 14168 # $tmpfile is the local file name for the downloaded file. 14169 VALID_TOOL=no 14170 if test "x$BDEPS_FTP" = xwget; then 14171 VALID_TOOL=yes 14172 wget -O $tmpfile $with_builddeps_server/$resource 14173 fi 14174 if test "x$BDEPS_FTP" = xlftp; then 14175 VALID_TOOL=yes 14176 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 14177 fi 14178 if test "x$BDEPS_FTP" = xftp; then 14179 VALID_TOOL=yes 14180 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 14181 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 14182 FTPUSERPWD=${FTPSERVER%%@*} 14183 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 14184 FTPUSER=${userpwd%%:*} 14185 FTPPWD=${userpwd#*@} 14186 FTPSERVER=${FTPSERVER#*@} 14187 else 14188 FTPUSER=ftp 14189 FTPPWD=ftp 14190 fi 14191 # the "pass" command does not work on some 14192 # ftp clients (read ftp.exe) but if it works, 14193 # passive mode is better! 14194 (\ 14195 echo "user $FTPUSER $FTPPWD" ;\ 14196 echo "pass" ;\ 14197 echo "bin" ;\ 14198 echo "get $FTPPATH $tmpfile" ;\ 14199 ) | ftp -in $FTPSERVER 14200 fi 14201 if test "x$VALID_TOOL" != xyes; then 14202 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 14203 fi 14204 14205 mv $tmpfile $installdir/$filename 14206 if test ! -s $installdir/$filename; then 14207 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 14208 fi 14209 case "$extension" in 14210 zip) echo "Unzipping $installdir/$filename..." 14211 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 14212 ;; 14213 tar.gz) echo "Untaring $installdir/$filename..." 14214 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 14215 ;; 14216 tgz) echo "Untaring $installdir/$filename..." 14217 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 14218 ;; 14219 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 14220 ;; 14221 esac 14222 fi 14223 if test -f $installdir/$filename.unpacked; then 14224 depdir=$installdir 14225 fi 14226 14227 fi 14228 # Source the builddeps file again, because in the previous command, the depdir 14229 # was updated to point at the current build dependency install directory. 14230 . $builddepsfile 14231 # Now extract variables from the builddeps.conf files. 14232 theroot=${builddep_pulse_ROOT} 14233 thecflags=${builddep_pulse_CFLAGS} 14234 thelibs=${builddep_pulse_LIBS} 14235 if test "x$depdir" = x; then 14236 as_fn_error $? "Could not download build dependency pulse" "$LINENO" 5 14237 fi 14238 PULSE=$depdir 14239 if test "x$theroot" != x; then 14240 PULSE="$theroot" 14241 fi 14242 if test "x$thecflags" != x; then 14243 PULSE_CFLAGS="$thecflags" 14244 fi 14245 if test "x$thelibs" != x; then 14246 PULSE_LIBS="$thelibs" 14247 fi 14248 PULSE_FOUND=yes 14249 else PULSE_FOUND=no 14250 14251 fi 14252 else PULSE_FOUND=no 14253 14254 fi 14255 14256 fi 14257 if test "x$PULSE_FOUND" = xno; then 14258 14259 pkg_failed=no 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPULSE" >&5 14261 $as_echo_n "checking for LIBPULSE... " >&6; } 14262 14263 if test -n "$LIBPULSE_CFLAGS"; then 14264 pkg_cv_LIBPULSE_CFLAGS="$LIBPULSE_CFLAGS" 14265 elif test -n "$PKG_CONFIG"; then 14266 if test -n "$PKG_CONFIG" && \ 14267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.11\""; } >&5 14268 ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11") 2>&5 14269 ac_status=$? 14270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14271 test $ac_status = 0; }; then 14272 pkg_cv_LIBPULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.11" 2>/dev/null` 14273 else 14274 pkg_failed=yes 14275 fi 14276 else 14277 pkg_failed=untried 14278 fi 14279 if test -n "$LIBPULSE_LIBS"; then 14280 pkg_cv_LIBPULSE_LIBS="$LIBPULSE_LIBS" 14281 elif test -n "$PKG_CONFIG"; then 14282 if test -n "$PKG_CONFIG" && \ 14283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.11\""; } >&5 14284 ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11") 2>&5 14285 ac_status=$? 14286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14287 test $ac_status = 0; }; then 14288 pkg_cv_LIBPULSE_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.11" 2>/dev/null` 14289 else 14290 pkg_failed=yes 14291 fi 14292 else 14293 pkg_failed=untried 14294 fi 14295 14296 14297 14298 if test $pkg_failed = yes; then 14299 14300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14301 _pkg_short_errors_supported=yes 14302 else 14303 _pkg_short_errors_supported=no 14304 fi 14305 if test $_pkg_short_errors_supported = yes; then 14306 LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse >= 0.9.11" 2>&1` 14307 else 14308 LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse >= 0.9.11" 2>&1` 14309 fi 14310 # Put the nasty error message in config.log where it belongs 14311 echo "$LIBPULSE_PKG_ERRORS" >&5 14312 14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14314 $as_echo "no" >&6; } 14315 PULSE_FOUND=no 14316 elif test $pkg_failed = untried; then 14317 PULSE_FOUND=no 14318 else 14319 LIBPULSE_CFLAGS=$pkg_cv_LIBPULSE_CFLAGS 14320 LIBPULSE_LIBS=$pkg_cv_LIBPULSE_LIBS 14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14322 $as_echo "yes" >&6; } 14323 PULSE_FOUND=yes 14324 fi 14325 fi 14326 if test "x$PULSE_FOUND" = xno; then 14327 for ac_header in pulse/pulseaudio.h 14328 do : 14329 ac_fn_cxx_check_header_mongrel "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default" 14330 if test "x$ac_cv_header_pulse_pulseaudio_h" = x""yes; then : 14331 cat >>confdefs.h <<_ACEOF 14332 #define HAVE_PULSE_PULSEAUDIO_H 1 14333 _ACEOF 14334 PULSE_FOUND=yes 14335 PULSE_CFLAGS=-Iignoreme 14336 PULSE_LIBS= 14337 DEFAULT_PULSE=yes 14338 else 14339 PULSE_FOUND=no 14340 fi 14341 14342 done 14343 14344 fi 14345 14346 if test "x$PULSE_FOUND" = xno && test "x$PULSE_NOT_NEEDED" != xyes; then 14347 help_on_build_dependency pulse 14348 as_fn_error $? "Could not find pulse audio libraries. $HELP_MSG " "$LINENO" 5 14349 fi 14350 14351 14352 14353 14354 ############################################################################### 14355 # 14356 # Check for the jpeg library 14357 # 14358 14359 USE_EXTERNAL_LIBJPEG=true 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 14361 $as_echo_n "checking for main in -ljpeg... " >&6; } 14362 if test "${ac_cv_lib_jpeg_main+set}" = set; then : 14363 $as_echo_n "(cached) " >&6 14364 else 14365 ac_check_lib_save_LIBS=$LIBS 14366 LIBS="-ljpeg $LIBS" 14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14368 /* end confdefs.h. */ 14369 14370 14371 int 14372 main () 14373 { 14374 return main (); 14375 ; 14376 return 0; 14377 } 14378 _ACEOF 14379 if ac_fn_cxx_try_link "$LINENO"; then : 14380 ac_cv_lib_jpeg_main=yes 14381 else 14382 ac_cv_lib_jpeg_main=no 14383 fi 14384 rm -f core conftest.err conftest.$ac_objext \ 14385 conftest$ac_exeext conftest.$ac_ext 14386 LIBS=$ac_check_lib_save_LIBS 14387 fi 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 14389 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 14390 if test "x$ac_cv_lib_jpeg_main" = x""yes; then : 14391 cat >>confdefs.h <<_ACEOF 14392 #define HAVE_LIBJPEG 1 14393 _ACEOF 14394 14395 LIBS="-ljpeg $LIBS" 14396 14397 else 14398 USE_EXTERNAL_LIBJPEG=false 14399 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 14400 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 14401 14402 fi 14403 14404 14405 14406 ############################################################################### 14407 # 14408 # Check for the gif library 14409 # 14410 14411 USE_EXTERNAL_LIBJPEG=true 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgif" >&5 14413 $as_echo_n "checking for main in -lgif... " >&6; } 14414 if test "${ac_cv_lib_gif_main+set}" = set; then : 14415 $as_echo_n "(cached) " >&6 14416 else 14417 ac_check_lib_save_LIBS=$LIBS 14418 LIBS="-lgif $LIBS" 14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14420 /* end confdefs.h. */ 14421 14422 14423 int 14424 main () 14425 { 14426 return main (); 14427 ; 14428 return 0; 14429 } 14430 _ACEOF 14431 if ac_fn_cxx_try_link "$LINENO"; then : 14432 ac_cv_lib_gif_main=yes 14433 else 14434 ac_cv_lib_gif_main=no 14435 fi 14436 rm -f core conftest.err conftest.$ac_objext \ 14437 conftest$ac_exeext conftest.$ac_ext 14438 LIBS=$ac_check_lib_save_LIBS 14439 fi 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5 14441 $as_echo "$ac_cv_lib_gif_main" >&6; } 14442 if test "x$ac_cv_lib_gif_main" = x""yes; then : 14443 cat >>confdefs.h <<_ACEOF 14444 #define HAVE_LIBGIF 1 14445 _ACEOF 14446 14447 LIBS="-lgif $LIBS" 14448 14449 else 14450 USE_EXTERNAL_LIBGIF=false 14451 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use gif decoder bundled with the OpenJDK source" >&5 14452 $as_echo "$as_me: Will use gif decoder bundled with the OpenJDK source" >&6;} 14453 14454 fi 14455 14456 14457 14458 ############################################################################### 14459 # 14460 # Check for the zlib library 14461 # 14462 14463 USE_EXTERNAL_LIBZ=true 14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5 14465 $as_echo_n "checking for main in -lz... " >&6; } 14466 if test "${ac_cv_lib_z_main+set}" = set; then : 14467 $as_echo_n "(cached) " >&6 14468 else 14469 ac_check_lib_save_LIBS=$LIBS 14470 LIBS="-lz $LIBS" 14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14472 /* end confdefs.h. */ 14473 14474 14475 int 14476 main () 14477 { 14478 return main (); 14479 ; 14480 return 0; 14481 } 14482 _ACEOF 14483 if ac_fn_cxx_try_link "$LINENO"; then : 14484 ac_cv_lib_z_main=yes 14485 else 14486 ac_cv_lib_z_main=no 14487 fi 14488 rm -f core conftest.err conftest.$ac_objext \ 14489 conftest$ac_exeext conftest.$ac_ext 14490 LIBS=$ac_check_lib_save_LIBS 14491 fi 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5 14493 $as_echo "$ac_cv_lib_z_main" >&6; } 14494 if test "x$ac_cv_lib_z_main" = x""yes; then : 14495 cat >>confdefs.h <<_ACEOF 14496 #define HAVE_LIBZ 1 14497 _ACEOF 14498 14499 LIBS="-lz $LIBS" 14500 14501 else 14502 USE_EXTERNAL_LIBZ=false 14503 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use zlib bundled with the OpenJDK source" >&5 14504 $as_echo "$as_me: Will use zlib bundled with the OpenJDK source" >&6;} 14505 14506 fi 14507 14508 14509 14510 ############################################################################### 14511 # 14512 # Check if altzone exists in time.h 14513 # 14514 14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14516 /* end confdefs.h. */ 14517 #include <time.h> 14518 int 14519 main () 14520 { 14521 return (int)altzone; 14522 ; 14523 return 0; 14524 } 14525 _ACEOF 14526 if ac_fn_cxx_try_link "$LINENO"; then : 14527 has_altzone=yes 14528 else 14529 has_altzone=no 14530 fi 14531 rm -f core conftest.err conftest.$ac_objext \ 14532 conftest$ac_exeext conftest.$ac_ext 14533 if test "x$has_altzone" = xyes; then 14534 14535 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 14536 14537 fi 14538 14539 ############################################################################### 14540 # 14541 # Check the maths library 14542 # 14543 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 14545 $as_echo_n "checking for main in -lm... " >&6; } 14546 if test "${ac_cv_lib_m_main+set}" = set; then : 14547 $as_echo_n "(cached) " >&6 14548 else 14549 ac_check_lib_save_LIBS=$LIBS 14550 LIBS="-lm $LIBS" 14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14552 /* end confdefs.h. */ 14553 14554 14555 int 14556 main () 14557 { 14558 return main (); 14559 ; 14560 return 0; 14561 } 14562 _ACEOF 14563 if ac_fn_cxx_try_link "$LINENO"; then : 14564 ac_cv_lib_m_main=yes 14565 else 14566 ac_cv_lib_m_main=no 14567 fi 14568 rm -f core conftest.err conftest.$ac_objext \ 14569 conftest$ac_exeext conftest.$ac_ext 14570 LIBS=$ac_check_lib_save_LIBS 14571 fi 14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 14573 $as_echo "$ac_cv_lib_m_main" >&6; } 14574 if test "x$ac_cv_lib_m_main" = x""yes; then : 14575 cat >>confdefs.h <<_ACEOF 14576 #define HAVE_LIBM 1 14577 _ACEOF 14578 14579 LIBS="-lm $LIBS" 14580 14581 else 14582 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 14584 $as_echo "$as_me: Maths library was not found" >&6;} 14585 14586 fi 14587 14588 14589 14590 ############################################################################### 14591 # 14592 # Should we run the painfully slow javadoc tool? 14593 # 14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 14595 $as_echo_n "checking whether to build documentation... " >&6; } 14596 # Check whether --enable-docs was given. 14597 if test "${enable_docs+set}" = set; then : 14598 enableval=$enable_docs; ENABLE_DOCS="${enableval}" 14599 else 14600 ENABLE_DOCS='no' 14601 fi 14602 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DOCS" >&5 14604 $as_echo "$ENABLE_DOCS" >&6; } 14605 14606 GENERATE_DOCS=false 14607 if test "x$ENABLE_DOCS" = xyes; then 14608 GENERATE_DOCS=true 14609 fi 14610 14611 14612 ############################################################################### 14613 # 14614 # Should we compile nimbus swing L&F? We can probably remove this option 14615 # since nimbus is officially part of javax now. 14616 # 14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build nimbus L&F" >&5 14618 $as_echo_n "checking whether to build nimbus L&F... " >&6; } 14619 # Check whether --enable-nimbus was given. 14620 if test "${enable_nimbus+set}" = set; then : 14621 enableval=$enable_nimbus; ENABLE_NIMBUS="${enableval}" 14622 else 14623 ENABLE_NIMBUS='yes' 14624 fi 14625 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_NIMBUS" >&5 14627 $as_echo "$ENABLE_NIMBUS" >&6; } 14628 DISABLE_NIMBUS= 14629 if test "x$ENABLE_NIMBUS" = xno; then 14630 DISABLE_NIMBUS=true 14631 fi 14632 14633 14634 ############################################################################### 14635 # 14636 # Setup the opt flags for different compilers 14637 # and different operating systems. 14638 # 14639 case $COMPILER_TYPE in 14640 CC ) 14641 D_FLAG="-g" 14642 case $COMPILER_NAME in 14643 gcc ) 14644 case $PLATFORM in 14645 macosx ) 14646 # On MacOSX we optimize for size, something 14647 # we should do for all platforms? 14648 C_O_FLAG_HI="-O3" 14649 C_O_FLAG_NORM="-Os" 14650 C_O_FLAG_NONE="-O0" 14651 ;; 14652 *) 14653 C_O_FLAG_HI="-O3" 14654 C_O_FLAG_NORM="-O2" 14655 C_O_FLAG_NONE="-O0" 14656 ;; 14657 esac 14658 CXX_O_FLAG_HI="$C_O_FLAG_HI" 14659 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 14660 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 14661 ;; 14662 ossc ) 14663 case $LEGACY_HOST_CPU1 in 14664 i586) 14665 C_O_FLAG_HI="-xO4 -Wu,-O4~yz" 14666 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz" 14667 C_O_FLAG_NONE="" 14668 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz" 14669 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz" 14670 CXX_O_FLAG_NONE="" 14671 ;; 14672 sparc) 14673 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 14674 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 14675 C_O_FLAG_NONE="" 14676 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 14677 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 14678 CXX_O_FLAG_NONE="" 14679 ;; 14680 esac 14681 esac 14682 ;; 14683 CL ) 14684 D_FLAG= 14685 C_O_FLAG_HI="-O2" 14686 C_O_FLAG_NORM="-O1" 14687 C_O_FLAG_NONE="-Od" 14688 CXX_O_FLAG_HI="$C_O_FLAG_HI" 14689 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 14690 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 14691 ;; 14692 esac 14693 14694 14695 14696 14697 14698 14699 14700 14701 ############################################################################### 14702 # 14703 # Setup legacy vars/targets and new vars to deal with different debug levels. 14704 # 14705 case $DEBUG_LEVEL in 14706 release ) 14707 HOTSPOT_DEBUG_LEVEL="product" 14708 HOTSPOT_EXPORT="product" 14709 ;; 14710 fastdebug ) 14711 HOTSPOT_DEBUG_LEVEL="fastdebug" 14712 HOTSPOT_EXPORT="fastdebug" 14713 CFLAGS="$CFLAGS $D_FLAG" 14714 JAVAC_FLAGS="$JAVAC_FLAGS -g" 14715 ;; 14716 slowdebug ) 14717 HOTSPOT_DEBUG_LEVEL="jvmg" 14718 HOTSPOT_EXPORT="debug" 14719 CFLAGS="$CFLAGS $D_FLAG" 14720 C_O_FLAG_HI="$C_O_FLAG_NONE" 14721 C_O_FLAG_NORM="$C_O_FLAG_NONE" 14722 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 14723 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 14724 JAVAC_FLAGS="$JAVAC_FLAGS -g" 14725 ;; 14726 esac 14727 14728 ############################################################################### 14729 # 14730 # Generate the legacy makefile targets for hotspot. 14731 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14732 # 14733 HOTSPOT_TARGET="" 14734 14735 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14736 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14737 fi 14738 14739 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14740 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14741 fi 14742 14743 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14744 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14745 fi 14746 14747 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14748 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14749 fi 14750 14751 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14752 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14753 fi 14754 14755 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14756 14757 ############################################################################### 14758 # 14759 # Setup all directories for the subrepoes and the arguments to the sub makes. 14760 # 14761 LANGTOOLS_OUTPUTDIR="$OUTPUT_ROOT/langtools" 14762 LANGTOOLS_DIST="$OUTPUT_ROOT/langtools/dist" 14763 LANGTOOLS_MAKE_ARGS="" 14764 14765 14766 14767 14768 CORBA_OUTPUTDIR="$OUTPUT_ROOT/corba" 14769 CORBA_DIST="$OUTPUT_ROOT/corba/dist" 14770 CORBA_MAKE_ARGS="" 14771 14772 14773 14774 14775 JAXP_OUTPUTDIR="$OUTPUT_ROOT/jaxp" 14776 JAXP_DIST="$OUTPUT_ROOT/jaxp/dist" 14777 JAXP_MAKE_ARGS="" 14778 14779 14780 14781 14782 JAXWS_OUTPUTDIR="$OUTPUT_ROOT/jaxws" 14783 JAXWS_DIST="$OUTPUT_ROOT/jaxws/dist" 14784 JAXWS_MAKE_ARGS="" 14785 14786 14787 14788 14789 HOTSPOT_OUTPUTDIR="$OUTPUT_ROOT/hotspot" 14790 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 14791 HOTSPOT_MAKE_ARGS="ALT_OUTPUTDIR=$HOTSPOT_OUTPUTDIR ALT_EXPORT_PATH=$HOTSPOT_DIST $HOTSPOT_TARGET" 14792 14793 14794 14795 14796 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 14797 JDK_MAKE_ARGS="ALT_OUTPUTDIR=\"$OUTPUT_ROOT/jdk\"" 14798 14799 14800 14801 IMAGES_OUTPUTDIR=$OUTPUT_ROOT/images 14802 IMAGES_MAKE_ARGS="ALT_OUTPUTDIR=$OUTPUT_ROOT/jdk \ 14803 SHARE_SRC=$JDK_TOPDIR/src/share \ 14804 PLATFORM_SRC=$JDK_TOPDIR/src/$LEGACY_HOST_OS_API \ 14805 TEMPDIR=$IMAGES_OUTPUTDIR/tmp \ 14806 ABS_TEMPDIR=$IMAGES_OUTPUTDIR/tmp " 14807 14808 14809 14810 ############################################################################### 14811 # 14812 # Now setup the CFLAGS and LDFLAGS for the JDK build. 14813 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 14814 # 14815 case $COMPILER_NAME in 14816 gcc ) 14817 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses -pipe -fno-omit-frame-pointer \ 14818 -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 14819 CFLAGS_JDK="$CFLAGS_JDK -fno-strict-aliasing" 14820 ;; 14821 ossc ) 14822 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa REQUIRED -v -mt -norunpath -xnolib" 14823 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt REQUIRED -features=no%except -DCC_NOEX" 14824 ;; 14825 cl ) 14826 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 14827 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 14828 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 14829 -DWIN32 -DIAL" 14830 case $LEGACY_HOST_CPU1 in 14831 i?86 ) 14832 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 14833 ;; 14834 amd64 ) 14835 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 14836 ;; 14837 esac 14838 ;; 14839 esac 14840 14841 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 14842 14843 # The package path is used only on macosx? 14844 PACKAGE_PATH=/opt/local 14845 14846 14847 # Sometimes we use a cpu dir (.../lib/amd64/server) 14848 # Sometimes not (.../lib/server) 14849 LIBARCHDIR="$LEGACY_HOST_CPU2/" 14850 if test "x$ENDIAN" = xlittle; then 14851 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 14852 else 14853 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 14854 fi 14855 if test "x$HOST_OS" = xlinux; then 14856 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX" 14857 fi 14858 if test "x$HOST_OS" = xwindows; then 14859 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS" 14860 fi 14861 if test "x$HOST_OS" = xsolaris; then 14862 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS" 14863 fi 14864 if test "x$HOST_OS" = xmacosx; then 14865 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE" 14866 LIBARCHDIR="" 14867 fi 14868 if test "x$HOST_OS" = xbsd; then 14869 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE" 14870 fi 14871 if test "x$DEBUG_LEVEL" = xrelease; then 14872 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 14873 else 14874 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 14875 fi 14876 14877 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$LEGACY_HOST_CPU1\"' -D$LEGACY_HOST_CPU1" 14878 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"$RELEASE\"'" 14879 14880 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 14881 -I${JDK_OUTPUTDIR}/include \ 14882 -I${JDK_OUTPUTDIR}/include/$PLATFORM \ 14883 -I${JDK_TOPDIR}/src/share/javavm/export \ 14884 -I${JDK_TOPDIR}/src/$LEGACY_HOST_OS_API/javavm/export \ 14885 -I${JDK_TOPDIR}/src/share/native/common \ 14886 -I${JDK_TOPDIR}/src/$LEGACY_HOST_OS_API/native/common" 14887 14888 # The shared libraries are compiled using the picflag. 14889 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 14890 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG" 14891 14892 # Executable flags 14893 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 14894 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 14895 14896 # Now this is odd. The JDK native libraries have to link against libjvm.so 14897 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 14898 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 14899 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 14900 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 14901 # libraries will link to whatever is in memory. Yuck. 14902 # 14903 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 14904 if test "x$COMPILER_TYPE" = xCL; then 14905 LDFLAGS_JDKLIB="$LDFLAGS -libpath:${JDK_OUTPUTDIR}/lib jvm.lib java.lib" 14906 LDFLAGS_JDKLIB_SUFFIX="" 14907 if test "x$HOST_CPU_BITS" = "x64"; then 14908 LDFLAGS_JDKEXE="$CFLAGS ${JDK_OUTPUTDIR}/tmp/java/jli/obj64/jli.lib" 14909 else 14910 LDFLAGS_JDKEXE="$CFLAGS ${JDK_OUTPUTDIR}/tmp/java/jli/obj/jli.lib" 14911 fi 14912 LDFLAGS_JDKEXE_SUFFIX="" 14913 else 14914 # If this is a --hash-style=gnu system, use --hash-style=both, why? 14915 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 14916 if test -n "$HAS_GNU_HASH"; then 14917 # And since we now know that the linker is gnu, then add -z defs, to forbid 14918 # undefined symbols in object files. 14919 LDFLAGS="$LDFLAGS -Xlinker --hash-style=both -Xlinker -z -Xlinker defs" 14920 if test "x$DEBUG_LEVEL" == "xrelease"; then 14921 # When building release libraries, tell the linker optimize them. 14922 # Should this be supplied to the OSS linker as well? 14923 LDFLAGS="$LDFLAGS -Xlinker -O1" 14924 fi 14925 fi 14926 14927 LDFLAGS_JDKLIB="$LDFLAGS $SHARED_LIBRARY_FLAGS -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}server \ 14928 -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}client \ 14929 -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}" 14930 LDFLAGS_JDKLIB_SUFFIX="-ljvm -ljava" 14931 if test "x$COMPILER_NAME" = xossc; then 14932 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 14933 fi 14934 14935 # Only the jli library is explicitly linked when the launchers are built. 14936 # The libjvm is then dynamically loaded/linked by the launcher. 14937 LDFLAGS_JDKEXE="$LDFLAGS -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}jli" 14938 LDFLAGS_JDKEXE_SUFFIX="-ljli" 14939 fi 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 ############################################################################### 14955 # 14956 # statically link libstdc++ before C++ ABI is stablized on Linux unless 14957 # dynamic build is configured on command line. 14958 # 14959 # Check whether --enable-static-link-stdc++ was given. 14960 if test "${enable_static_link_stdc__+set}" = set; then : 14961 enableval=$enable_static_link_stdc__; 14962 else 14963 14964 enable_static_link_stdc__=yes 14965 14966 fi 14967 14968 14969 if test "x$HOST_OS" = xlinux; then 14970 # Test if -lstdc++ works. 14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 14972 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 14973 ac_ext=cpp 14974 ac_cpp='$CXXCPP $CPPFLAGS' 14975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14978 14979 OLD_CXXFLAGS="$CXXFLAGS" 14980 CXXFLAGS="$CXXFLAGS -lstdc++" 14981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14982 /* end confdefs.h. */ 14983 14984 int 14985 main () 14986 { 14987 return 0; 14988 ; 14989 return 0; 14990 } 14991 _ACEOF 14992 if ac_fn_cxx_try_link "$LINENO"; then : 14993 has_dynamic_libstdcxx=yes 14994 else 14995 has_dynamic_libstdcxx=no 14996 fi 14997 rm -f core conftest.err conftest.$ac_objext \ 14998 conftest$ac_exeext conftest.$ac_ext 14999 CXXFLAGS="$OLD_CXXFLAGS" 15000 ac_ext=cpp 15001 ac_cpp='$CXXCPP $CPPFLAGS' 15002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15005 15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 15007 $as_echo "$has_dynamic_libstdcxx" >&6; } 15008 15009 # Test if stdc++ can be linked statically. 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 15011 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 15012 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 15013 ac_ext=cpp 15014 ac_cpp='$CXXCPP $CPPFLAGS' 15015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15018 15019 OLD_LIBS="$LIBS" 15020 OLD_CXX="$CXX" 15021 LIBS="$STATIC_STDCXX_FLAGS" 15022 CXX="$CC" 15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15024 /* end confdefs.h. */ 15025 15026 int 15027 main () 15028 { 15029 return 0; 15030 ; 15031 return 0; 15032 } 15033 _ACEOF 15034 if ac_fn_cxx_try_link "$LINENO"; then : 15035 has_static_libstdcxx=yes 15036 else 15037 has_static_libstdcxx=no 15038 fi 15039 rm -f core conftest.err conftest.$ac_objext \ 15040 conftest$ac_exeext conftest.$ac_ext 15041 LIBS="$OLD_LIBS" 15042 CXX="$OLD_CXX" 15043 ac_ext=cpp 15044 ac_cpp='$CXXCPP $CPPFLAGS' 15045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15048 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 15050 $as_echo "$has_static_libstdcxx" >&6; } 15051 15052 if test "x$has_static_libcxx" = xno && test "x$has_dynamic_libcxx" = xno; then 15053 as_fn_error $? "I cannot link to stdc++! Neither dynamically nor statically." "$LINENO" 5 15054 fi 15055 15056 if test "x$enable_static_link_stdc__" = xyes && test "x$has_static_libstdcxx" = xno; then 15057 { $as_echo "$as_me:${as_lineno-$LINENO}: Static linking of libstdc++ was not possible reverting to dynamic linking." >&5 15058 $as_echo "$as_me: Static linking of libstdc++ was not possible reverting to dynamic linking." >&6;} 15059 enable_static_link_stdc__=no 15060 fi 15061 15062 if test "x$enable_static_link_stdc__" = xno && test "x$has_dynamic_libstdcxx" = xno; then 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic linking of libstdc++ was not possible reverting to static linking." >&5 15064 $as_echo "$as_me: Dynamic linking of libstdc++ was not possible reverting to static linking." >&6;} 15065 enable_static_link_stdc__=yes 15066 fi 15067 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 15069 $as_echo_n "checking how to link with libstdc++... " >&6; } 15070 if test "x$enable_static_link_stdc__" = xyes; then 15071 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 15072 LDCXX="$CC" 15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 15074 $as_echo "static" >&6; } 15075 else 15076 LIBCXX="$LIBCXX -lstdc++" 15077 LDCXX="$CXX" 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 15079 $as_echo "dynamic" >&6; } 15080 fi 15081 fi 15082 15083 ############################################################################### 15084 # 15085 # Could someone enlighten this configure script with a comment about libCrun? 15086 # The LEGACY_HOST_CPU3 is the setting for ISA_DIR. 15087 # 15088 if test "x$HOST_OS" = xsolaris; then 15089 LIBCXX="$LIBCXX /usr/lib${LEGACY_HOST_CPU3}/libCrun.so.1" 15090 fi 15091 15092 15093 15094 ############################################################################### 15095 # 15096 # Misc 15097 # 15098 15099 # Control wether Hotspot runs Queens test after build. 15100 # Check whether --enable-hotspot-test-in-build was given. 15101 if test "${enable_hotspot_test_in_build+set}" = set; then : 15102 enableval=$enable_hotspot_test_in_build; 15103 else 15104 enable_hotspot_test_in_build=no 15105 fi 15106 15107 if test "x$enable_hotspot_test_in_build" = "xyes"; then 15108 TEST_IN_BUILD=true 15109 else 15110 TEST_IN_BUILD=false 15111 fi 15112 15113 15114 ############################################################################### 15115 # 15116 # A helpful message at the end of the configure run. 15117 # 15118 if test "x$CCACHE_FOUND" = x && test "x$GCC" = xyes; then 15119 help_on_build_dependency ccache 15120 15121 printf "\nTip of the day:\nYou should really install ccache version 3.1.4 or newer.\n" 15122 printf "It gives a tremendous speedup for C++ recompilations with precompiled headers!\n" 15123 fi 15124 15125 if test "x$CCACHE_FOUND" != x && test "x$HAS_GOOD_CCACHE" = x; then 15126 printf "You have a ccache installed, but it is a version prior to 3.1.4. Try upgrading.\n" 15127 fi 15128 15129 cat >confcache <<\_ACEOF 15130 # This file is a shell script that caches the results of configure 15131 # tests run on this system so they can be shared between configure 15132 # scripts and configure runs, see configure's option --config-cache. 15133 # It is not useful on other systems. If it contains results you don't 15134 # want to keep, you may remove or edit it. 15135 # 15136 # config.status only pays attention to the cache file if you give it 15137 # the --recheck option to rerun configure. 15138 # 15139 # `ac_cv_env_foo' variables (set or unset) will be overridden when 15140 # loading this file, other *unset* `ac_cv_foo' will be assigned the 15141 # following values. 15142 15143 _ACEOF 15144 15145 # The following way of writing the cache mishandles newlines in values, 15146 # but we know of no workaround that is simple, portable, and efficient. 15147 # So, we kill variables containing newlines. 15148 # Ultrix sh set writes to stderr and can't be redirected directly, 15149 # and sets the high bit in the cache file unless we assign to the vars. 15150 ( 15151 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15152 eval ac_val=\$$ac_var 15153 case $ac_val in #( 15154 *${as_nl}*) 15155 case $ac_var in #( 15156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15157 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15158 esac 15159 case $ac_var in #( 15160 _ | IFS | as_nl) ;; #( 15161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15162 *) { eval $ac_var=; unset $ac_var;} ;; 15163 esac ;; 15164 esac 15165 done 15166 15167 (set) 2>&1 | 15168 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15169 *${as_nl}ac_space=\ *) 15170 # `set' does not quote correctly, so add quotes: double-quote 15171 # substitution turns \\\\ into \\, and sed turns \\ into \. 15172 sed -n \ 15173 "s/'/'\\\\''/g; 15174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15175 ;; #( 15176 *) 15177 # `set' quotes correctly as required by POSIX, so do not add quotes. 15178 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15179 ;; 15180 esac | 15181 sort 15182 ) | 15183 sed ' 15184 /^ac_cv_env_/b end 15185 t clear 15186 :clear 15187 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15188 t end 15189 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15190 :end' >>confcache 15191 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15192 if test -w "$cache_file"; then 15193 test "x$cache_file" != "x/dev/null" && 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15195 $as_echo "$as_me: updating cache $cache_file" >&6;} 15196 cat confcache >$cache_file 15197 else 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15199 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15200 fi 15201 fi 15202 rm -f confcache 15203 15204 test "x$prefix" = xNONE && prefix=$ac_default_prefix 15205 # Let make expand exec_prefix. 15206 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15207 15208 DEFS=-DHAVE_CONFIG_H 15209 15210 ac_libobjs= 15211 ac_ltlibobjs= 15212 U= 15213 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15214 # 1. Remove the extension, and $U if already installed. 15215 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15216 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15217 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15218 # will be set to the directory where LIBOBJS objects are built. 15219 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15220 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15221 done 15222 LIBOBJS=$ac_libobjs 15223 15224 LTLIBOBJS=$ac_ltlibobjs 15225 15226 15227 15228 : ${CONFIG_STATUS=./config.status} 15229 ac_write_fail=0 15230 ac_clean_files_save=$ac_clean_files 15231 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15233 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15234 as_write_fail=0 15235 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15236 #! $SHELL 15237 # Generated by $as_me. 15238 # Run this file to recreate the current configuration. 15239 # Compiler output produced by configure, useful for debugging 15240 # configure, is in config.log if it exists. 15241 15242 debug=false 15243 ac_cs_recheck=false 15244 ac_cs_silent=false 15245 15246 SHELL=\${CONFIG_SHELL-$SHELL} 15247 export SHELL 15248 _ASEOF 15249 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15250 ## -------------------- ## 15251 ## M4sh Initialization. ## 15252 ## -------------------- ## 15253 15254 # Be more Bourne compatible 15255 DUALCASE=1; export DUALCASE # for MKS sh 15256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15257 emulate sh 15258 NULLCMD=: 15259 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15260 # is contrary to our usage. Disable this feature. 15261 alias -g '${1+"$@"}'='"$@"' 15262 setopt NO_GLOB_SUBST 15263 else 15264 case `(set -o) 2>/dev/null` in #( 15265 *posix*) : 15266 set -o posix ;; #( 15267 *) : 15268 ;; 15269 esac 15270 fi 15271 15272 15273 as_nl=' 15274 ' 15275 export as_nl 15276 # Printing a long string crashes Solaris 7 /usr/bin/printf. 15277 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15280 # Prefer a ksh shell builtin over an external printf program on Solaris, 15281 # but without wasting forks for bash or zsh. 15282 if test -z "$BASH_VERSION$ZSH_VERSION" \ 15283 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15284 as_echo='print -r --' 15285 as_echo_n='print -rn --' 15286 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15287 as_echo='printf %s\n' 15288 as_echo_n='printf %s' 15289 else 15290 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15291 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15292 as_echo_n='/usr/ucb/echo -n' 15293 else 15294 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15295 as_echo_n_body='eval 15296 arg=$1; 15297 case $arg in #( 15298 *"$as_nl"*) 15299 expr "X$arg" : "X\\(.*\\)$as_nl"; 15300 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15301 esac; 15302 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15303 ' 15304 export as_echo_n_body 15305 as_echo_n='sh -c $as_echo_n_body as_echo' 15306 fi 15307 export as_echo_body 15308 as_echo='sh -c $as_echo_body as_echo' 15309 fi 15310 15311 # The user is always right. 15312 if test "${PATH_SEPARATOR+set}" != set; then 15313 PATH_SEPARATOR=: 15314 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15315 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15316 PATH_SEPARATOR=';' 15317 } 15318 fi 15319 15320 15321 # IFS 15322 # We need space, tab and new line, in precisely that order. Quoting is 15323 # there to prevent editors from complaining about space-tab. 15324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 15325 # splitting by setting IFS to empty value.) 15326 IFS=" "" $as_nl" 15327 15328 # Find who we are. Look in the path if we contain no directory separator. 15329 case $0 in #(( 15330 *[\\/]* ) as_myself=$0 ;; 15331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15332 for as_dir in $PATH 15333 do 15334 IFS=$as_save_IFS 15335 test -z "$as_dir" && as_dir=. 15336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15337 done 15338 IFS=$as_save_IFS 15339 15340 ;; 15341 esac 15342 # We did not find ourselves, most probably we were run as `sh COMMAND' 15343 # in which case we are not to be found in the path. 15344 if test "x$as_myself" = x; then 15345 as_myself=$0 15346 fi 15347 if test ! -f "$as_myself"; then 15348 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15349 exit 1 15350 fi 15351 15352 # Unset variables that we do not need and which cause bugs (e.g. in 15353 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15354 # suppresses any "Segmentation fault" message there. '((' could 15355 # trigger a bug in pdksh 5.2.14. 15356 for as_var in BASH_ENV ENV MAIL MAILPATH 15357 do eval test x\${$as_var+set} = xset \ 15358 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15359 done 15360 PS1='$ ' 15361 PS2='> ' 15362 PS4='+ ' 15363 15364 # NLS nuisances. 15365 LC_ALL=C 15366 export LC_ALL 15367 LANGUAGE=C 15368 export LANGUAGE 15369 15370 # CDPATH. 15371 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15372 15373 15374 # as_fn_error STATUS ERROR [LINENO LOG_FD] 15375 # ---------------------------------------- 15376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15378 # script with STATUS, using 1 if that was 0. 15379 as_fn_error () 15380 { 15381 as_status=$1; test $as_status -eq 0 && as_status=1 15382 if test "$4"; then 15383 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15385 fi 15386 $as_echo "$as_me: error: $2" >&2 15387 as_fn_exit $as_status 15388 } # as_fn_error 15389 15390 15391 # as_fn_set_status STATUS 15392 # ----------------------- 15393 # Set $? to STATUS, without forking. 15394 as_fn_set_status () 15395 { 15396 return $1 15397 } # as_fn_set_status 15398 15399 # as_fn_exit STATUS 15400 # ----------------- 15401 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15402 as_fn_exit () 15403 { 15404 set +e 15405 as_fn_set_status $1 15406 exit $1 15407 } # as_fn_exit 15408 15409 # as_fn_unset VAR 15410 # --------------- 15411 # Portably unset VAR. 15412 as_fn_unset () 15413 { 15414 { eval $1=; unset $1;} 15415 } 15416 as_unset=as_fn_unset 15417 # as_fn_append VAR VALUE 15418 # ---------------------- 15419 # Append the text in VALUE to the end of the definition contained in VAR. Take 15420 # advantage of any shell optimizations that allow amortized linear growth over 15421 # repeated appends, instead of the typical quadratic growth present in naive 15422 # implementations. 15423 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15424 eval 'as_fn_append () 15425 { 15426 eval $1+=\$2 15427 }' 15428 else 15429 as_fn_append () 15430 { 15431 eval $1=\$$1\$2 15432 } 15433 fi # as_fn_append 15434 15435 # as_fn_arith ARG... 15436 # ------------------ 15437 # Perform arithmetic evaluation on the ARGs, and store the result in the 15438 # global $as_val. Take advantage of shells that can avoid forks. The arguments 15439 # must be portable across $(()) and expr. 15440 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15441 eval 'as_fn_arith () 15442 { 15443 as_val=$(( $* )) 15444 }' 15445 else 15446 as_fn_arith () 15447 { 15448 as_val=`expr "$@" || test $? -eq 1` 15449 } 15450 fi # as_fn_arith 15451 15452 15453 if expr a : '\(a\)' >/dev/null 2>&1 && 15454 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15455 as_expr=expr 15456 else 15457 as_expr=false 15458 fi 15459 15460 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15461 as_basename=basename 15462 else 15463 as_basename=false 15464 fi 15465 15466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15467 as_dirname=dirname 15468 else 15469 as_dirname=false 15470 fi 15471 15472 as_me=`$as_basename -- "$0" || 15473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15474 X"$0" : 'X\(//\)$' \| \ 15475 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15476 $as_echo X/"$0" | 15477 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15478 s//\1/ 15479 q 15480 } 15481 /^X\/\(\/\/\)$/{ 15482 s//\1/ 15483 q 15484 } 15485 /^X\/\(\/\).*/{ 15486 s//\1/ 15487 q 15488 } 15489 s/.*/./; q'` 15490 15491 # Avoid depending upon Character Ranges. 15492 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15493 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15494 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15495 as_cr_digits='0123456789' 15496 as_cr_alnum=$as_cr_Letters$as_cr_digits 15497 15498 ECHO_C= ECHO_N= ECHO_T= 15499 case `echo -n x` in #((((( 15500 -n*) 15501 case `echo 'xy\c'` in 15502 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15503 xy) ECHO_C='\c';; 15504 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15505 ECHO_T=' ';; 15506 esac;; 15507 *) 15508 ECHO_N='-n';; 15509 esac 15510 15511 rm -f conf$$ conf$$.exe conf$$.file 15512 if test -d conf$$.dir; then 15513 rm -f conf$$.dir/conf$$.file 15514 else 15515 rm -f conf$$.dir 15516 mkdir conf$$.dir 2>/dev/null 15517 fi 15518 if (echo >conf$$.file) 2>/dev/null; then 15519 if ln -s conf$$.file conf$$ 2>/dev/null; then 15520 as_ln_s='ln -s' 15521 # ... but there are two gotchas: 15522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15524 # In both cases, we have to default to `cp -p'. 15525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15526 as_ln_s='cp -p' 15527 elif ln conf$$.file conf$$ 2>/dev/null; then 15528 as_ln_s=ln 15529 else 15530 as_ln_s='cp -p' 15531 fi 15532 else 15533 as_ln_s='cp -p' 15534 fi 15535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15536 rmdir conf$$.dir 2>/dev/null 15537 15538 15539 # as_fn_mkdir_p 15540 # ------------- 15541 # Create "$as_dir" as a directory, including parents if necessary. 15542 as_fn_mkdir_p () 15543 { 15544 15545 case $as_dir in #( 15546 -*) as_dir=./$as_dir;; 15547 esac 15548 test -d "$as_dir" || eval $as_mkdir_p || { 15549 as_dirs= 15550 while :; do 15551 case $as_dir in #( 15552 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15553 *) as_qdir=$as_dir;; 15554 esac 15555 as_dirs="'$as_qdir' $as_dirs" 15556 as_dir=`$as_dirname -- "$as_dir" || 15557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15558 X"$as_dir" : 'X\(//\)[^/]' \| \ 15559 X"$as_dir" : 'X\(//\)$' \| \ 15560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15561 $as_echo X"$as_dir" | 15562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15563 s//\1/ 15564 q 15565 } 15566 /^X\(\/\/\)[^/].*/{ 15567 s//\1/ 15568 q 15569 } 15570 /^X\(\/\/\)$/{ 15571 s//\1/ 15572 q 15573 } 15574 /^X\(\/\).*/{ 15575 s//\1/ 15576 q 15577 } 15578 s/.*/./; q'` 15579 test -d "$as_dir" && break 15580 done 15581 test -z "$as_dirs" || eval "mkdir $as_dirs" 15582 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15583 15584 15585 } # as_fn_mkdir_p 15586 if mkdir -p . 2>/dev/null; then 15587 as_mkdir_p='mkdir -p "$as_dir"' 15588 else 15589 test -d ./-p && rmdir ./-p 15590 as_mkdir_p=false 15591 fi 15592 15593 if test -x / >/dev/null 2>&1; then 15594 as_test_x='test -x' 15595 else 15596 if ls -dL / >/dev/null 2>&1; then 15597 as_ls_L_option=L 15598 else 15599 as_ls_L_option= 15600 fi 15601 as_test_x=' 15602 eval sh -c '\'' 15603 if test -d "$1"; then 15604 test -d "$1/."; 15605 else 15606 case $1 in #( 15607 -*)set "./$1";; 15608 esac; 15609 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15610 ???[sx]*):;;*)false;;esac;fi 15611 '\'' sh 15612 ' 15613 fi 15614 as_executable_p=$as_test_x 15615 15616 # Sed expression to map a string onto a valid CPP name. 15617 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15618 15619 # Sed expression to map a string onto a valid variable name. 15620 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15621 15622 15623 exec 6>&1 15624 ## ----------------------------------- ## 15625 ## Main body of $CONFIG_STATUS script. ## 15626 ## ----------------------------------- ## 15627 _ASEOF 15628 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15629 15630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15631 # Save the log message, to keep $0 and so on meaningful, and to 15632 # report actual input values of CONFIG_FILES etc. instead of their 15633 # values after options handling. 15634 ac_log=" 15635 This file was extended by openjdk $as_me version-0.1, which was 15636 generated by GNU Autoconf 2.67. Invocation command line was 15637 15638 CONFIG_FILES = $CONFIG_FILES 15639 CONFIG_HEADERS = $CONFIG_HEADERS 15640 CONFIG_LINKS = $CONFIG_LINKS 15641 CONFIG_COMMANDS = $CONFIG_COMMANDS 15642 $ $0 $@ 15643 15644 on `(hostname || uname -n) 2>/dev/null | sed 1q` 15645 " 15646 15647 _ACEOF 15648 15649 case $ac_config_files in *" 15650 "*) set x $ac_config_files; shift; ac_config_files=$*;; 15651 esac 15652 15653 case $ac_config_headers in *" 15654 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15655 esac 15656 15657 15658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15659 # Files that config.status was made for. 15660 config_files="$ac_config_files" 15661 config_headers="$ac_config_headers" 15662 15663 _ACEOF 15664 15665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15666 ac_cs_usage="\ 15667 \`$as_me' instantiates files and other configuration actions 15668 from templates according to the current configuration. Unless the files 15669 and actions are specified as TAGs, all are instantiated by default. 15670 15671 Usage: $0 [OPTION]... [TAG]... 15672 15673 -h, --help print this help, then exit 15674 -V, --version print version number and configuration settings, then exit 15675 --config print configuration, then exit 15676 -q, --quiet, --silent 15677 do not print progress messages 15678 -d, --debug don't remove temporary files 15679 --recheck update $as_me by reconfiguring in the same conditions 15680 --file=FILE[:TEMPLATE] 15681 instantiate the configuration file FILE 15682 --header=FILE[:TEMPLATE] 15683 instantiate the configuration header FILE 15684 15685 Configuration files: 15686 $config_files 15687 15688 Configuration headers: 15689 $config_headers 15690 15691 Report bugs to <build-infra-dev@openjdk.java.net>." 15692 15693 _ACEOF 15694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15695 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15696 ac_cs_version="\\ 15697 openjdk config.status version-0.1 15698 configured by $0, generated by GNU Autoconf 2.67, 15699 with options \\"\$ac_cs_config\\" 15700 15701 Copyright (C) 2010 Free Software Foundation, Inc. 15702 This config.status script is free software; the Free Software Foundation 15703 gives unlimited permission to copy, distribute and modify it." 15704 15705 ac_pwd='$ac_pwd' 15706 srcdir='$srcdir' 15707 AWK='$AWK' 15708 test -n "\$AWK" || AWK=awk 15709 _ACEOF 15710 15711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15712 # The default lists apply if the user does not specify any file. 15713 ac_need_defaults=: 15714 while test $# != 0 15715 do 15716 case $1 in 15717 --*=?*) 15718 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15719 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15720 ac_shift=: 15721 ;; 15722 --*=) 15723 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15724 ac_optarg= 15725 ac_shift=: 15726 ;; 15727 *) 15728 ac_option=$1 15729 ac_optarg=$2 15730 ac_shift=shift 15731 ;; 15732 esac 15733 15734 case $ac_option in 15735 # Handling of the options. 15736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15737 ac_cs_recheck=: ;; 15738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15739 $as_echo "$ac_cs_version"; exit ;; 15740 --config | --confi | --conf | --con | --co | --c ) 15741 $as_echo "$ac_cs_config"; exit ;; 15742 --debug | --debu | --deb | --de | --d | -d ) 15743 debug=: ;; 15744 --file | --fil | --fi | --f ) 15745 $ac_shift 15746 case $ac_optarg in 15747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15748 '') as_fn_error $? "missing file argument" ;; 15749 esac 15750 as_fn_append CONFIG_FILES " '$ac_optarg'" 15751 ac_need_defaults=false;; 15752 --header | --heade | --head | --hea ) 15753 $ac_shift 15754 case $ac_optarg in 15755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15756 esac 15757 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15758 ac_need_defaults=false;; 15759 --he | --h) 15760 # Conflict between --help and --header 15761 as_fn_error $? "ambiguous option: \`$1' 15762 Try \`$0 --help' for more information.";; 15763 --help | --hel | -h ) 15764 $as_echo "$ac_cs_usage"; exit ;; 15765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15766 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15767 ac_cs_silent=: ;; 15768 15769 # This is an error. 15770 -*) as_fn_error $? "unrecognized option: \`$1' 15771 Try \`$0 --help' for more information." ;; 15772 15773 *) as_fn_append ac_config_targets " $1" 15774 ac_need_defaults=false ;; 15775 15776 esac 15777 shift 15778 done 15779 15780 ac_configure_extra_args= 15781 15782 if $ac_cs_silent; then 15783 exec 6>/dev/null 15784 ac_configure_extra_args="$ac_configure_extra_args --silent" 15785 fi 15786 15787 _ACEOF 15788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15789 if \$ac_cs_recheck; then 15790 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15791 shift 15792 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15793 CONFIG_SHELL='$SHELL' 15794 export CONFIG_SHELL 15795 exec "\$@" 15796 fi 15797 15798 _ACEOF 15799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15800 exec 5>>config.log 15801 { 15802 echo 15803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15804 ## Running $as_me. ## 15805 _ASBOX 15806 $as_echo "$ac_log" 15807 } >&5 15808 15809 _ACEOF 15810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15811 _ACEOF 15812 15813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15814 15815 # Handling of arguments. 15816 for ac_config_target in $ac_config_targets 15817 do 15818 case $ac_config_target in 15819 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 15820 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 15821 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 15822 15823 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 15824 esac 15825 done 15826 15827 15828 # If the user did not use the arguments to specify the items to instantiate, 15829 # then the envvar interface is used. Set only those that are not. 15830 # We use the long form for the default assignment because of an extremely 15831 # bizarre bug on SunOS 4.1.3. 15832 if $ac_need_defaults; then 15833 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15834 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15835 fi 15836 15837 # Have a temporary directory for convenience. Make it in the build tree 15838 # simply because there is no reason against having it here, and in addition, 15839 # creating and moving files from /tmp can sometimes cause problems. 15840 # Hook for its removal unless debugging. 15841 # Note that there is a small window in which the directory will not be cleaned: 15842 # after its creation but before its name has been assigned to `$tmp'. 15843 $debug || 15844 { 15845 tmp= 15846 trap 'exit_status=$? 15847 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15848 ' 0 15849 trap 'as_fn_exit 1' 1 2 13 15 15850 } 15851 # Create a (secure) tmp directory for tmp files. 15852 15853 { 15854 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15855 test -n "$tmp" && test -d "$tmp" 15856 } || 15857 { 15858 tmp=./conf$$-$RANDOM 15859 (umask 077 && mkdir "$tmp") 15860 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15861 15862 # Set up the scripts for CONFIG_FILES section. 15863 # No need to generate them if there are no CONFIG_FILES. 15864 # This happens for instance with `./config.status config.h'. 15865 if test -n "$CONFIG_FILES"; then 15866 15867 15868 ac_cr=`echo X | tr X '\015'` 15869 # On cygwin, bash can eat \r inside `` if the user requested igncr. 15870 # But we know of no other shell where ac_cr would be empty at this 15871 # point, so we can use a bashism as a fallback. 15872 if test "x$ac_cr" = x; then 15873 eval ac_cr=\$\'\\r\' 15874 fi 15875 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15876 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15877 ac_cs_awk_cr='\\r' 15878 else 15879 ac_cs_awk_cr=$ac_cr 15880 fi 15881 15882 echo 'BEGIN {' >"$tmp/subs1.awk" && 15883 _ACEOF 15884 15885 15886 { 15887 echo "cat >conf$$subs.awk <<_ACEOF" && 15888 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15889 echo "_ACEOF" 15890 } >conf$$subs.sh || 15891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15892 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15893 ac_delim='%!_!# ' 15894 for ac_last_try in false false false false false :; do 15895 . ./conf$$subs.sh || 15896 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15897 15898 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15899 if test $ac_delim_n = $ac_delim_num; then 15900 break 15901 elif $ac_last_try; then 15902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15903 else 15904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15905 fi 15906 done 15907 rm -f conf$$subs.sh 15908 15909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15910 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15911 _ACEOF 15912 sed -n ' 15913 h 15914 s/^/S["/; s/!.*/"]=/ 15915 p 15916 g 15917 s/^[^!]*!// 15918 :repl 15919 t repl 15920 s/'"$ac_delim"'$// 15921 t delim 15922 :nl 15923 h 15924 s/\(.\{148\}\)..*/\1/ 15925 t more1 15926 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15927 p 15928 n 15929 b repl 15930 :more1 15931 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15932 p 15933 g 15934 s/.\{148\}// 15935 t nl 15936 :delim 15937 h 15938 s/\(.\{148\}\)..*/\1/ 15939 t more2 15940 s/["\\]/\\&/g; s/^/"/; s/$/"/ 15941 p 15942 b 15943 :more2 15944 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15945 p 15946 g 15947 s/.\{148\}// 15948 t delim 15949 ' <conf$$subs.awk | sed ' 15950 /^[^""]/{ 15951 N 15952 s/\n// 15953 } 15954 ' >>$CONFIG_STATUS || ac_write_fail=1 15955 rm -f conf$$subs.awk 15956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15957 _ACAWK 15958 cat >>"\$tmp/subs1.awk" <<_ACAWK && 15959 for (key in S) S_is_set[key] = 1 15960 FS = "" 15961 15962 } 15963 { 15964 line = $ 0 15965 nfields = split(line, field, "@") 15966 substed = 0 15967 len = length(field[1]) 15968 for (i = 2; i < nfields; i++) { 15969 key = field[i] 15970 keylen = length(key) 15971 if (S_is_set[key]) { 15972 value = S[key] 15973 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15974 len += length(value) + length(field[++i]) 15975 substed = 1 15976 } else 15977 len += 1 + keylen 15978 } 15979 15980 print line 15981 } 15982 15983 _ACAWK 15984 _ACEOF 15985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15986 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15987 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15988 else 15989 cat 15990 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15991 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15992 _ACEOF 15993 15994 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15995 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15996 # trailing colons and then remove the whole line if VPATH becomes empty 15997 # (actually we leave an empty line to preserve line numbers). 15998 if test "x$srcdir" = x.; then 15999 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16000 h 16001 s/// 16002 s/^/:/ 16003 s/[ ]*$/:/ 16004 s/:\$(srcdir):/:/g 16005 s/:\${srcdir}:/:/g 16006 s/:@srcdir@:/:/g 16007 s/^:*// 16008 s/:*$// 16009 x 16010 s/\(=[ ]*\).*/\1/ 16011 G 16012 s/\n// 16013 s/^[^=]*=[ ]*$// 16014 }' 16015 fi 16016 16017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16018 fi # test -n "$CONFIG_FILES" 16019 16020 # Set up the scripts for CONFIG_HEADERS section. 16021 # No need to generate them if there are no CONFIG_HEADERS. 16022 # This happens for instance with `./config.status Makefile'. 16023 if test -n "$CONFIG_HEADERS"; then 16024 cat >"$tmp/defines.awk" <<\_ACAWK || 16025 BEGIN { 16026 _ACEOF 16027 16028 # Transform confdefs.h into an awk script `defines.awk', embedded as 16029 # here-document in config.status, that substitutes the proper values into 16030 # config.h.in to produce config.h. 16031 16032 # Create a delimiter string that does not exist in confdefs.h, to ease 16033 # handling of long lines. 16034 ac_delim='%!_!# ' 16035 for ac_last_try in false false :; do 16036 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16037 if test -z "$ac_t"; then 16038 break 16039 elif $ac_last_try; then 16040 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16041 else 16042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16043 fi 16044 done 16045 16046 # For the awk script, D is an array of macro values keyed by name, 16047 # likewise P contains macro parameters if any. Preserve backslash 16048 # newline sequences. 16049 16050 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16051 sed -n ' 16052 s/.\{148\}/&'"$ac_delim"'/g 16053 t rset 16054 :rset 16055 s/^[ ]*#[ ]*define[ ][ ]*/ / 16056 t def 16057 d 16058 :def 16059 s/\\$// 16060 t bsnl 16061 s/["\\]/\\&/g 16062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16063 D["\1"]=" \3"/p 16064 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16065 d 16066 :bsnl 16067 s/["\\]/\\&/g 16068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16069 D["\1"]=" \3\\\\\\n"\\/p 16070 t cont 16071 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16072 t cont 16073 d 16074 :cont 16075 n 16076 s/.\{148\}/&'"$ac_delim"'/g 16077 t clear 16078 :clear 16079 s/\\$// 16080 t bsnlc 16081 s/["\\]/\\&/g; s/^/"/; s/$/"/p 16082 d 16083 :bsnlc 16084 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16085 b cont 16086 ' <confdefs.h | sed ' 16087 s/'"$ac_delim"'/"\\\ 16088 "/g' >>$CONFIG_STATUS || ac_write_fail=1 16089 16090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16091 for (key in D) D_is_set[key] = 1 16092 FS = "" 16093 } 16094 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16095 line = \$ 0 16096 split(line, arg, " ") 16097 if (arg[1] == "#") { 16098 defundef = arg[2] 16099 mac1 = arg[3] 16100 } else { 16101 defundef = substr(arg[1], 2) 16102 mac1 = arg[2] 16103 } 16104 split(mac1, mac2, "(") #) 16105 macro = mac2[1] 16106 prefix = substr(line, 1, index(line, defundef) - 1) 16107 if (D_is_set[macro]) { 16108 # Preserve the white space surrounding the "#". 16109 print prefix "define", macro P[macro] D[macro] 16110 next 16111 } else { 16112 # Replace #undef with comments. This is necessary, for example, 16113 # in the case of _POSIX_SOURCE, which is predefined and required 16114 # on some systems where configure will not decide to define it. 16115 if (defundef == "undef") { 16116 print "/*", prefix defundef, macro, "*/" 16117 next 16118 } 16119 } 16120 } 16121 { print } 16122 _ACAWK 16123 _ACEOF 16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16125 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16126 fi # test -n "$CONFIG_HEADERS" 16127 16128 16129 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 16130 shift 16131 for ac_tag 16132 do 16133 case $ac_tag in 16134 :[FHLC]) ac_mode=$ac_tag; continue;; 16135 esac 16136 case $ac_mode$ac_tag in 16137 :[FHL]*:*);; 16138 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 16139 :[FH]-) ac_tag=-:-;; 16140 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16141 esac 16142 ac_save_IFS=$IFS 16143 IFS=: 16144 set x $ac_tag 16145 IFS=$ac_save_IFS 16146 shift 16147 ac_file=$1 16148 shift 16149 16150 case $ac_mode in 16151 :L) ac_source=$1;; 16152 :[FH]) 16153 ac_file_inputs= 16154 for ac_f 16155 do 16156 case $ac_f in 16157 -) ac_f="$tmp/stdin";; 16158 *) # Look for the file first in the build tree, then in the source tree 16159 # (if the path is not absolute). The absolute path cannot be DOS-style, 16160 # because $ac_f cannot contain `:'. 16161 test -f "$ac_f" || 16162 case $ac_f in 16163 [\\/$]*) false;; 16164 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16165 esac || 16166 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 16167 esac 16168 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16169 as_fn_append ac_file_inputs " '$ac_f'" 16170 done 16171 16172 # Let's still pretend it is `configure' which instantiates (i.e., don't 16173 # use $as_me), people would be surprised to read: 16174 # /* config.h. Generated by config.status. */ 16175 configure_input='Generated from '` 16176 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16177 `' by configure.' 16178 if test x"$ac_file" != x-; then 16179 configure_input="$ac_file. $configure_input" 16180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16181 $as_echo "$as_me: creating $ac_file" >&6;} 16182 fi 16183 # Neutralize special characters interpreted by sed in replacement strings. 16184 case $configure_input in #( 16185 *\&* | *\|* | *\\* ) 16186 ac_sed_conf_input=`$as_echo "$configure_input" | 16187 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16188 *) ac_sed_conf_input=$configure_input;; 16189 esac 16190 16191 case $ac_tag in 16192 *:-:* | *:-) cat >"$tmp/stdin" \ 16193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16194 esac 16195 ;; 16196 esac 16197 16198 ac_dir=`$as_dirname -- "$ac_file" || 16199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16200 X"$ac_file" : 'X\(//\)[^/]' \| \ 16201 X"$ac_file" : 'X\(//\)$' \| \ 16202 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16203 $as_echo X"$ac_file" | 16204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16205 s//\1/ 16206 q 16207 } 16208 /^X\(\/\/\)[^/].*/{ 16209 s//\1/ 16210 q 16211 } 16212 /^X\(\/\/\)$/{ 16213 s//\1/ 16214 q 16215 } 16216 /^X\(\/\).*/{ 16217 s//\1/ 16218 q 16219 } 16220 s/.*/./; q'` 16221 as_dir="$ac_dir"; as_fn_mkdir_p 16222 ac_builddir=. 16223 16224 case "$ac_dir" in 16225 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16226 *) 16227 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16228 # A ".." for each directory in $ac_dir_suffix. 16229 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16230 case $ac_top_builddir_sub in 16231 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16232 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16233 esac ;; 16234 esac 16235 ac_abs_top_builddir=$ac_pwd 16236 ac_abs_builddir=$ac_pwd$ac_dir_suffix 16237 # for backward compatibility: 16238 ac_top_builddir=$ac_top_build_prefix 16239 16240 case $srcdir in 16241 .) # We are building in place. 16242 ac_srcdir=. 16243 ac_top_srcdir=$ac_top_builddir_sub 16244 ac_abs_top_srcdir=$ac_pwd ;; 16245 [\\/]* | ?:[\\/]* ) # Absolute name. 16246 ac_srcdir=$srcdir$ac_dir_suffix; 16247 ac_top_srcdir=$srcdir 16248 ac_abs_top_srcdir=$srcdir ;; 16249 *) # Relative name. 16250 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16251 ac_top_srcdir=$ac_top_build_prefix$srcdir 16252 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16253 esac 16254 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16255 16256 16257 case $ac_mode in 16258 :F) 16259 # 16260 # CONFIG_FILE 16261 # 16262 16263 _ACEOF 16264 16265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16266 # If the template does not know about datarootdir, expand it. 16267 # FIXME: This hack should be removed a few years after 2.60. 16268 ac_datarootdir_hack=; ac_datarootdir_seen= 16269 ac_sed_dataroot=' 16270 /datarootdir/ { 16271 p 16272 q 16273 } 16274 /@datadir@/p 16275 /@docdir@/p 16276 /@infodir@/p 16277 /@localedir@/p 16278 /@mandir@/p' 16279 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16280 *datarootdir*) ac_datarootdir_seen=yes;; 16281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16283 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16284 _ACEOF 16285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16286 ac_datarootdir_hack=' 16287 s&@datadir@&$datadir&g 16288 s&@docdir@&$docdir&g 16289 s&@infodir@&$infodir&g 16290 s&@localedir@&$localedir&g 16291 s&@mandir@&$mandir&g 16292 s&\\\${datarootdir}&$datarootdir&g' ;; 16293 esac 16294 _ACEOF 16295 16296 # Neutralize VPATH when `$srcdir' = `.'. 16297 # Shell code in configure.ac might set extrasub. 16298 # FIXME: do we really want to maintain this feature? 16299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16300 ac_sed_extra="$ac_vpsub 16301 $extrasub 16302 _ACEOF 16303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16304 :t 16305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16306 s|@configure_input@|$ac_sed_conf_input|;t t 16307 s&@top_builddir@&$ac_top_builddir_sub&;t t 16308 s&@top_build_prefix@&$ac_top_build_prefix&;t t 16309 s&@srcdir@&$ac_srcdir&;t t 16310 s&@abs_srcdir@&$ac_abs_srcdir&;t t 16311 s&@top_srcdir@&$ac_top_srcdir&;t t 16312 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16313 s&@builddir@&$ac_builddir&;t t 16314 s&@abs_builddir@&$ac_abs_builddir&;t t 16315 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16316 $ac_datarootdir_hack 16317 " 16318 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16320 16321 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16322 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16323 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16325 which seems to be undefined. Please make sure it is defined" >&5 16326 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16327 which seems to be undefined. Please make sure it is defined" >&2;} 16328 16329 rm -f "$tmp/stdin" 16330 case $ac_file in 16331 -) cat "$tmp/out" && rm -f "$tmp/out";; 16332 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16333 esac \ 16334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16335 ;; 16336 :H) 16337 # 16338 # CONFIG_HEADER 16339 # 16340 if test x"$ac_file" != x-; then 16341 { 16342 $as_echo "/* $configure_input */" \ 16343 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16344 } >"$tmp/config.h" \ 16345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16346 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16347 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16348 $as_echo "$as_me: $ac_file is unchanged" >&6;} 16349 else 16350 rm -f "$ac_file" 16351 mv "$tmp/config.h" "$ac_file" \ 16352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16353 fi 16354 else 16355 $as_echo "/* $configure_input */" \ 16356 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16357 || as_fn_error $? "could not create -" "$LINENO" 5 16358 fi 16359 ;; 16360 16361 16362 esac 16363 16364 done # for ac_tag 16365 16366 16367 as_fn_exit 0 16368 _ACEOF 16369 ac_clean_files=$ac_clean_files_save 16370 16371 test $ac_write_fail = 0 || 16372 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16373 16374 16375 # configure is writing to config.log, and then calls config.status. 16376 # config.status does its own redirection, appending to config.log. 16377 # Unfortunately, on DOS this fails, as config.log is still kept open 16378 # by configure, so config.status won't be able to write to it; its 16379 # output is simply discarded. So we exec the FD to /dev/null, 16380 # effectively closing config.log, so it can be properly (re)opened and 16381 # appended to by config.status. When coming back to configure, we 16382 # need to make the FD available again. 16383 if test "$no_create" != yes; then 16384 ac_cs_success=: 16385 ac_config_status_args= 16386 test "$silent" = yes && 16387 ac_config_status_args="$ac_config_status_args --quiet" 16388 exec 5>/dev/null 16389 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16390 exec 5>>config.log 16391 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16392 # would make configure fail if this is the last instruction. 16393 $ac_cs_success || as_fn_exit 1 16394 fi 16395 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16397 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16398 fi 16399