1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="pr/include/nspr.h" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624MT 625NEXT_ROOT 626SYMBIAN_SDK_DIR 627MACOS_SDK_DIR 628WRAP_SYSTEM_INCLUDES 629VISIBILITY_FLAGS 630CYGWIN_WRAPPER 631OS_DLLFLAGS 632EXEFLAGS 633DLLFLAGS 634RCFLAGS 635RC 636OPTIMIZER 637NSINSTALL 638RELEASE_OBJDIR_NAME 639OBJDIR_NAME 640OBJDIR 641ULTRASPARC_LIBRARY 642MOZ_OBJFORMAT 643NOSUCHFILE 644AIX_LINK_OPTS 645RESOLVE_LINK_SYMBOLS 646OS_LIBS 647PROFILE_USE_LDFLAGS 648PROFILE_USE_CFLAGS 649PROFILE_GEN_LDFLAGS 650PROFILE_GEN_CFLAGS 651IMPLIB 652FILTER 653ASFLAGS 654AR_FLAGS 655DEFINES 656MACOSX_DEPLOYMENT_TARGET 657OS_TEST 658OS_RELEASE 659OS_ARCH 660OS_TARGET 661DSO_LDOPTS 662DSO_CFLAGS 663MKSHLIB 664WRAP_LDFLAGS 665ASM_SUFFIX 666DLL_SUFFIX 667LIB_SUFFIX 668OBJ_SUFFIX 669CPU_ARCH 670PR_MD_ARCH_DIR 671PR_MD_ASFILES 672PR_MD_CSRCS 673MDCPUCFG_H 674NSPR_MODNAME 675MOD_PATCH_VERSION 676MOD_MINOR_VERSION 677MOD_MAJOR_VERSION 678LIBPLC 679LIBNSPR 680USE_NSPR_THREADS 681USE_USER_PTHREADS 682USE_BTHREADS 683USE_PTHREADS 684ENABLE_STRIP 685OBJECT_MODE 686USE_64 687USE_X32 688USE_N32 689USE_IPV6 690USE_CPLUS 691MOZ_DEBUG_SYMBOLS 692MOZ_DEBUG 693MOZ_OPTIMIZE 694CROSS_COMPILE 695MSC_VER 696GCC_USE_GNU_LD 697GNU_CC 698HOST_LDFLAGS 699HOST_CFLAGS 700MOZILLA_CLIENT 701SHELL_OVERRIDE 702CCACHE 703EGREP 704GREP 705PERL 706CPP 707HOST_CC 708WINDRES 709STRIP 710LD 711AS 712AR 713RANLIB 714ac_ct_CXX 715CXXFLAGS 716CXX 717OBJEXT 718EXEEXT 719ac_ct_CC 720CPPFLAGS 721LDFLAGS 722CFLAGS 723WHOAMI 724dist_libdir 725dist_includedir 726dist_bindir 727dist_prefix 728CC 729target_os 730target_vendor 731target_cpu 732target 733host_os 734host_vendor 735host_cpu 736host 737build_os 738build_vendor 739build_cpu 740build 741target_alias 742host_alias 743build_alias 744LIBS 745ECHO_T 746ECHO_N 747ECHO_C 748DEFS 749mandir 750localedir 751libdir 752psdir 753pdfdir 754dvidir 755htmldir 756infodir 757docdir 758oldincludedir 759includedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL' 779ac_subst_files='' 780ac_user_opts=' 781enable_option_checking 782with_android_ndk 783with_android_toolchain 784with_android_version 785with_android_platform 786with_gonk 787with_dist_prefix 788with_dist_bindir 789with_dist_includedir 790with_dist_libdir 791with_mozilla 792enable_optimize 793enable_debug 794enable_debug_symbols 795enable_win32_target 796enable_symbian_target 797enable_debug_rtl 798enable_static_rtl 799enable_n32 800enable_x32 801enable_64bit 802enable_mdupdate 803enable_cplus 804with_arm_kuser 805with_macos_sdk 806enable_macos_target 807enable_os2_high_mem 808enable_thumb2 809with_thumb 810with_thumb_interwork 811with_arch 812with_fpu 813with_float_abi 814with_soft_float 815with_symbian_sdk 816with_ccache 817enable_strip 818with_pthreads 819enable_user_pthreads 820enable_nspr_threads 821with_bthreads 822enable_ipv6 823enable_wrap_malloc 824with_wrap_malloc 825' 826 ac_precious_vars='build_alias 827host_alias 828target_alias 829CC 830CFLAGS 831LDFLAGS 832LIBS 833CPPFLAGS 834CXX 835CXXFLAGS 836CCC 837CPP' 838 839 840# Initialize some variables set by options. 841ac_init_help= 842ac_init_version=false 843ac_unrecognized_opts= 844ac_unrecognized_sep= 845# The variables have the same names as the options, with 846# dashes changed to underlines. 847cache_file=/dev/null 848exec_prefix=NONE 849no_create= 850no_recursion= 851prefix=NONE 852program_prefix=NONE 853program_suffix=NONE 854program_transform_name=s,x,x, 855silent= 856site= 857srcdir= 858verbose= 859x_includes=NONE 860x_libraries=NONE 861 862# Installation directory options. 863# These are left unexpanded so users can "make install exec_prefix=/foo" 864# and all the variables that are supposed to be based on exec_prefix 865# by default will actually change. 866# Use braces instead of parens because sh, perl, etc. also accept them. 867# (The list follows the same order as the GNU Coding Standards.) 868bindir='${exec_prefix}/bin' 869sbindir='${exec_prefix}/sbin' 870libexecdir='${exec_prefix}/libexec' 871datarootdir='${prefix}/share' 872datadir='${datarootdir}' 873sysconfdir='${prefix}/etc' 874sharedstatedir='${prefix}/com' 875localstatedir='${prefix}/var' 876includedir='${prefix}/include' 877oldincludedir='/usr/include' 878docdir='${datarootdir}/doc/${PACKAGE}' 879infodir='${datarootdir}/info' 880htmldir='${docdir}' 881dvidir='${docdir}' 882pdfdir='${docdir}' 883psdir='${docdir}' 884libdir='${exec_prefix}/lib' 885localedir='${datarootdir}/locale' 886mandir='${datarootdir}/man' 887 888ac_prev= 889ac_dashdash= 890for ac_option 891do 892 # If the previous option needs an argument, assign it. 893 if test -n "$ac_prev"; then 894 eval $ac_prev=\$ac_option 895 ac_prev= 896 continue 897 fi 898 899 case $ac_option in 900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 901 *=) ac_optarg= ;; 902 *) ac_optarg=yes ;; 903 esac 904 905 # Accept the important Cygnus configure options, so we can diagnose typos. 906 907 case $ac_dashdash$ac_option in 908 --) 909 ac_dashdash=yes ;; 910 911 -bindir | --bindir | --bindi | --bind | --bin | --bi) 912 ac_prev=bindir ;; 913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 914 bindir=$ac_optarg ;; 915 916 -build | --build | --buil | --bui | --bu) 917 ac_prev=build_alias ;; 918 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 919 build_alias=$ac_optarg ;; 920 921 -cache-file | --cache-file | --cache-fil | --cache-fi \ 922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 923 ac_prev=cache_file ;; 924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 926 cache_file=$ac_optarg ;; 927 928 --config-cache | -C) 929 cache_file=config.cache ;; 930 931 -datadir | --datadir | --datadi | --datad) 932 ac_prev=datadir ;; 933 -datadir=* | --datadir=* | --datadi=* | --datad=*) 934 datadir=$ac_optarg ;; 935 936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 937 | --dataroo | --dataro | --datar) 938 ac_prev=datarootdir ;; 939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 941 datarootdir=$ac_optarg ;; 942 943 -disable-* | --disable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: $ac_useropt" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952"enable_$ac_useropt" 953"*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=no ;; 958 959 -docdir | --docdir | --docdi | --doc | --do) 960 ac_prev=docdir ;; 961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 962 docdir=$ac_optarg ;; 963 964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 965 ac_prev=dvidir ;; 966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 967 dvidir=$ac_optarg ;; 968 969 -enable-* | --enable-*) 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 971 # Reject names that are not valid shell variable names. 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 as_fn_error $? "invalid feature name: $ac_useropt" 974 ac_useropt_orig=$ac_useropt 975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 976 case $ac_user_opts in 977 *" 978"enable_$ac_useropt" 979"*) ;; 980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 981 ac_unrecognized_sep=', ';; 982 esac 983 eval enable_$ac_useropt=\$ac_optarg ;; 984 985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 987 | --exec | --exe | --ex) 988 ac_prev=exec_prefix ;; 989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 991 | --exec=* | --exe=* | --ex=*) 992 exec_prefix=$ac_optarg ;; 993 994 -gas | --gas | --ga | --g) 995 # Obsolete; use --with-gas. 996 with_gas=yes ;; 997 998 -help | --help | --hel | --he | -h) 999 ac_init_help=long ;; 1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1001 ac_init_help=recursive ;; 1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1003 ac_init_help=short ;; 1004 1005 -host | --host | --hos | --ho) 1006 ac_prev=host_alias ;; 1007 -host=* | --host=* | --hos=* | --ho=*) 1008 host_alias=$ac_optarg ;; 1009 1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1011 ac_prev=htmldir ;; 1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1013 | --ht=*) 1014 htmldir=$ac_optarg ;; 1015 1016 -includedir | --includedir | --includedi | --included | --include \ 1017 | --includ | --inclu | --incl | --inc) 1018 ac_prev=includedir ;; 1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1020 | --includ=* | --inclu=* | --incl=* | --inc=*) 1021 includedir=$ac_optarg ;; 1022 1023 -infodir | --infodir | --infodi | --infod | --info | --inf) 1024 ac_prev=infodir ;; 1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1026 infodir=$ac_optarg ;; 1027 1028 -libdir | --libdir | --libdi | --libd) 1029 ac_prev=libdir ;; 1030 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1031 libdir=$ac_optarg ;; 1032 1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1034 | --libexe | --libex | --libe) 1035 ac_prev=libexecdir ;; 1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1037 | --libexe=* | --libex=* | --libe=*) 1038 libexecdir=$ac_optarg ;; 1039 1040 -localedir | --localedir | --localedi | --localed | --locale) 1041 ac_prev=localedir ;; 1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1043 localedir=$ac_optarg ;; 1044 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1046 | --localstate | --localstat | --localsta | --localst | --locals) 1047 ac_prev=localstatedir ;; 1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1050 localstatedir=$ac_optarg ;; 1051 1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1053 ac_prev=mandir ;; 1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1055 mandir=$ac_optarg ;; 1056 1057 -nfp | --nfp | --nf) 1058 # Obsolete; use --without-fp. 1059 with_fp=no ;; 1060 1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1062 | --no-cr | --no-c | -n) 1063 no_create=yes ;; 1064 1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1067 no_recursion=yes ;; 1068 1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1071 | --oldin | --oldi | --old | --ol | --o) 1072 ac_prev=oldincludedir ;; 1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1076 oldincludedir=$ac_optarg ;; 1077 1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1079 ac_prev=prefix ;; 1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1081 prefix=$ac_optarg ;; 1082 1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1084 | --program-pre | --program-pr | --program-p) 1085 ac_prev=program_prefix ;; 1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1088 program_prefix=$ac_optarg ;; 1089 1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1091 | --program-suf | --program-su | --program-s) 1092 ac_prev=program_suffix ;; 1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1095 program_suffix=$ac_optarg ;; 1096 1097 -program-transform-name | --program-transform-name \ 1098 | --program-transform-nam | --program-transform-na \ 1099 | --program-transform-n | --program-transform- \ 1100 | --program-transform | --program-transfor \ 1101 | --program-transfo | --program-transf \ 1102 | --program-trans | --program-tran \ 1103 | --progr-tra | --program-tr | --program-t) 1104 ac_prev=program_transform_name ;; 1105 -program-transform-name=* | --program-transform-name=* \ 1106 | --program-transform-nam=* | --program-transform-na=* \ 1107 | --program-transform-n=* | --program-transform-=* \ 1108 | --program-transform=* | --program-transfor=* \ 1109 | --program-transfo=* | --program-transf=* \ 1110 | --program-trans=* | --program-tran=* \ 1111 | --progr-tra=* | --program-tr=* | --program-t=*) 1112 program_transform_name=$ac_optarg ;; 1113 1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1115 ac_prev=pdfdir ;; 1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1117 pdfdir=$ac_optarg ;; 1118 1119 -psdir | --psdir | --psdi | --psd | --ps) 1120 ac_prev=psdir ;; 1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1122 psdir=$ac_optarg ;; 1123 1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1125 | -silent | --silent | --silen | --sile | --sil) 1126 silent=yes ;; 1127 1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1129 ac_prev=sbindir ;; 1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1131 | --sbi=* | --sb=*) 1132 sbindir=$ac_optarg ;; 1133 1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1136 | --sharedst | --shareds | --shared | --share | --shar \ 1137 | --sha | --sh) 1138 ac_prev=sharedstatedir ;; 1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1142 | --sha=* | --sh=*) 1143 sharedstatedir=$ac_optarg ;; 1144 1145 -site | --site | --sit) 1146 ac_prev=site ;; 1147 -site=* | --site=* | --sit=*) 1148 site=$ac_optarg ;; 1149 1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1151 ac_prev=srcdir ;; 1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1153 srcdir=$ac_optarg ;; 1154 1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1156 | --syscon | --sysco | --sysc | --sys | --sy) 1157 ac_prev=sysconfdir ;; 1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1160 sysconfdir=$ac_optarg ;; 1161 1162 -target | --target | --targe | --targ | --tar | --ta | --t) 1163 ac_prev=target_alias ;; 1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1165 target_alias=$ac_optarg ;; 1166 1167 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1168 verbose=yes ;; 1169 1170 -version | --version | --versio | --versi | --vers | -V) 1171 ac_init_version=: ;; 1172 1173 -with-* | --with-*) 1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1175 # Reject names that are not valid shell variable names. 1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1177 as_fn_error $? "invalid package name: $ac_useropt" 1178 ac_useropt_orig=$ac_useropt 1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1180 case $ac_user_opts in 1181 *" 1182"with_$ac_useropt" 1183"*) ;; 1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1185 ac_unrecognized_sep=', ';; 1186 esac 1187 eval with_$ac_useropt=\$ac_optarg ;; 1188 1189 -without-* | --without-*) 1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1191 # Reject names that are not valid shell variable names. 1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1193 as_fn_error $? "invalid package name: $ac_useropt" 1194 ac_useropt_orig=$ac_useropt 1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1196 case $ac_user_opts in 1197 *" 1198"with_$ac_useropt" 1199"*) ;; 1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1201 ac_unrecognized_sep=', ';; 1202 esac 1203 eval with_$ac_useropt=no ;; 1204 1205 --x) 1206 # Obsolete; use --with-x. 1207 with_x=yes ;; 1208 1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1210 | --x-incl | --x-inc | --x-in | --x-i) 1211 ac_prev=x_includes ;; 1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1214 x_includes=$ac_optarg ;; 1215 1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1218 ac_prev=x_libraries ;; 1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1221 x_libraries=$ac_optarg ;; 1222 1223 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1224Try \`$0 --help' for more information" 1225 ;; 1226 1227 *=*) 1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1229 # Reject names that are not valid shell variable names. 1230 case $ac_envvar in #( 1231 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1233 esac 1234 eval $ac_envvar=\$ac_optarg 1235 export $ac_envvar ;; 1236 1237 *) 1238 # FIXME: should be removed in autoconf 3.0. 1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1243 ;; 1244 1245 esac 1246done 1247 1248if test -n "$ac_prev"; then 1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1250 as_fn_error $? "missing argument to $ac_option" 1251fi 1252 1253if test -n "$ac_unrecognized_opts"; then 1254 case $enable_option_checking in 1255 no) ;; 1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1258 esac 1259fi 1260 1261# Check all directory arguments for consistency. 1262for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1263 datadir sysconfdir sharedstatedir localstatedir includedir \ 1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1265 libdir localedir mandir 1266do 1267 eval ac_val=\$$ac_var 1268 # Remove trailing slashes. 1269 case $ac_val in 1270 */ ) 1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1272 eval $ac_var=\$ac_val;; 1273 esac 1274 # Be sure to have absolute directory names. 1275 case $ac_val in 1276 [\\/$]* | ?:[\\/]* ) continue;; 1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1278 esac 1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1280done 1281 1282# There might be people who depend on the old broken behavior: `$host' 1283# used to hold the argument of --host etc. 1284# FIXME: To remove some day. 1285build=$build_alias 1286host=$host_alias 1287target=$target_alias 1288 1289# FIXME: To remove some day. 1290if test "x$host_alias" != x; then 1291 if test "x$build_alias" = x; then 1292 cross_compiling=maybe 1293 elif test "x$build_alias" != "x$host_alias"; then 1294 cross_compiling=yes 1295 fi 1296fi 1297 1298ac_tool_prefix= 1299test -n "$host_alias" && ac_tool_prefix=$host_alias- 1300 1301test "$silent" = yes && exec 6>/dev/null 1302 1303 1304ac_pwd=`pwd` && test -n "$ac_pwd" && 1305ac_ls_di=`ls -di .` && 1306ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1307 as_fn_error $? "working directory cannot be determined" 1308test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1309 as_fn_error $? "pwd does not report name of working directory" 1310 1311 1312# Find the source files, if location was not specified. 1313if test -z "$srcdir"; then 1314 ac_srcdir_defaulted=yes 1315 # Try the directory containing this script, then the parent directory. 1316 ac_confdir=`$as_dirname -- "$as_myself" || 1317$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1318 X"$as_myself" : 'X\(//\)[^/]' \| \ 1319 X"$as_myself" : 'X\(//\)$' \| \ 1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1321$as_echo X"$as_myself" | 1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)[^/].*/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\/\)$/{ 1331 s//\1/ 1332 q 1333 } 1334 /^X\(\/\).*/{ 1335 s//\1/ 1336 q 1337 } 1338 s/.*/./; q'` 1339 srcdir=$ac_confdir 1340 if test ! -r "$srcdir/$ac_unique_file"; then 1341 srcdir=.. 1342 fi 1343else 1344 ac_srcdir_defaulted=no 1345fi 1346if test ! -r "$srcdir/$ac_unique_file"; then 1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1349fi 1350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1351ac_abs_confdir=`( 1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1353 pwd)` 1354# When building in place, set srcdir=. 1355if test "$ac_abs_confdir" = "$ac_pwd"; then 1356 srcdir=. 1357fi 1358# Remove unnecessary trailing slashes from srcdir. 1359# Double slashes in file names in object file debugging info 1360# mess up M-x gdb in Emacs. 1361case $srcdir in 1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1363esac 1364for ac_var in $ac_precious_vars; do 1365 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1366 eval ac_env_${ac_var}_value=\$${ac_var} 1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1368 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1369done 1370 1371# 1372# Report the --help message. 1373# 1374if test "$ac_init_help" = "long"; then 1375 # Omit some internal or obsolete options to make the list less imposing. 1376 # This message is too long to be a string in the A/UX 3.1 sh. 1377 cat <<_ACEOF 1378\`configure' configures this package to adapt to many kinds of systems. 1379 1380Usage: $0 [OPTION]... [VAR=VALUE]... 1381 1382To assign environment variables (e.g., CC, CFLAGS...), specify them as 1383VAR=VALUE. See below for descriptions of some of the useful variables. 1384 1385Defaults for the options are specified in brackets. 1386 1387Configuration: 1388 -h, --help display this help and exit 1389 --help=short display options specific to this package 1390 --help=recursive display the short help of all the included packages 1391 -V, --version display version information and exit 1392 -q, --quiet, --silent do not print \`checking ...' messages 1393 --cache-file=FILE cache test results in FILE [disabled] 1394 -C, --config-cache alias for \`--cache-file=config.cache' 1395 -n, --no-create do not create output files 1396 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1397 1398Installation directories: 1399 --prefix=PREFIX install architecture-independent files in PREFIX 1400 [$ac_default_prefix] 1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1402 [PREFIX] 1403 1404By default, \`make install' will install all the files in 1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1406an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1407for instance \`--prefix=\$HOME'. 1408 1409For better control, use the options below. 1410 1411Fine tuning of the installation directories: 1412 --bindir=DIR user executables [EPREFIX/bin] 1413 --sbindir=DIR system admin executables [EPREFIX/sbin] 1414 --libexecdir=DIR program executables [EPREFIX/libexec] 1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1418 --libdir=DIR object code libraries [EPREFIX/lib] 1419 --includedir=DIR C header files [PREFIX/include] 1420 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1423 --infodir=DIR info documentation [DATAROOTDIR/info] 1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1425 --mandir=DIR man documentation [DATAROOTDIR/man] 1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1427 --htmldir=DIR html documentation [DOCDIR] 1428 --dvidir=DIR dvi documentation [DOCDIR] 1429 --pdfdir=DIR pdf documentation [DOCDIR] 1430 --psdir=DIR ps documentation [DOCDIR] 1431_ACEOF 1432 1433 cat <<\_ACEOF 1434 1435System types: 1436 --build=BUILD configure for building on BUILD [guessed] 1437 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1438 --target=TARGET configure for building compilers for TARGET [HOST] 1439_ACEOF 1440fi 1441 1442if test -n "$ac_init_help"; then 1443 1444 cat <<\_ACEOF 1445 1446Optional Features: 1447 --disable-option-checking ignore unrecognized --enable/--with options 1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1450 --enable-optimize=OPT Enable code optimizations (ie. -O2) 1451 --enable-debug=DBG Enable debugging (using compiler flags DBG) 1452 --enable-debug-symbols=DBG Enable debugging symbols 1453 (using compiler flags DBG) 1454 --enable-win32-target=\$t 1455 Specify win32 flavor. (WIN95 or WINNT) 1456 --enable-symbian-target=\$t 1457 Specify symbian flavor. (WINSCW or GCCE) 1458 --enable-debug-rtl Use the MSVC debug runtime library 1459 --enable-static-rtl Use the MSVC static runtime library 1460 --enable-n32 Enable n32 ABI support (IRIX only) 1461 --enable-x32 Enable x32 ABI support (x86_64 only) 1462 --enable-64bit Enable 64-bit support (on certain platforms) 1463 --enable-mdupdate Enable use of certain compilers' mdupdate feature 1464 --enable-cplus Enable some c++ api routines 1465 --enable-macos-target=VER 1466 Set the minimum MacOS version needed at runtime 1467 10.2 for ppc, 10.4 for x86 1468 --disable-os2-high-mem Disable high-memory support on OS/2 1469 1470 --enable-strip Enable stripping of shared libs and programs 1471 --enable-user-pthreads Build using userland pthreads 1472 --enable-nspr-threads Build using classic nspr threads 1473 --enable-ipv6 Compile ipv6 support 1474 --enable-wrap-malloc Wrap malloc calls (gnu linker only) 1475 1476Optional Packages: 1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1479 --with-android-ndk=DIR 1480 location where the Android NDK can be found 1481 --with-android-toolchain=DIR 1482 location of the Android toolchain 1483 --with-android-version=VER 1484 Android platform version, default 5 for arm, 9 for x86/mips 1485 --with-android-platform=DIR 1486 location of platform dir 1487 --with-gonk=DIR location of gonk dir 1488 --with-dist-prefix=DIST_PREFIX 1489 place build files in DIST_PREFIX dist 1490 --with-dist-bindir=DIR build execuatables in DIR DIST_PREFIX/bin 1491 --with-dist-includedir=DIR 1492 build include files in DIR DIST_PREFIX/include/nspr 1493 --with-dist-libdir=DIR build library files in DIR DIST_PREFIX/lib 1494 --with-mozilla Compile NSPR with Mozilla support 1495 --with-arm-kuser Use kuser helpers (Linux/ARM only) 1496 (Requires kernel 2.6.13 or later) 1497 --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only) 1498 --with-thumb[=yes|no|toolchain-default] 1499 Use Thumb instruction set (-mthumb) 1500 --with-thumb-interwork[=yes|no|toolchain-default] 1501 Use Thumb/ARM instuctions interwork (-mthumb-interwork) 1502 --with-arch=[type|toolchain-default] 1503 Use specific CPU features (-march=type) 1504 --with-fpu=[type|toolchain-default] 1505 Use specific FPU type (-mfpu=type) 1506 --with-float-abi=[type|toolchain-default] 1507 Use specific arm float ABI (-mfloat-abi=type) 1508 --with-soft-float[=yes|no|toolchain-default] 1509 Use soft float library (-msoft-float) 1510 --with-symbian-sdk=SYMBIAN_SDK_DIR 1511 The path to the Symbian SDK 1512 --with-ccache=path/to/ccache 1513 Enable compiling with ccache 1514 --with-pthreads Use system pthreads library as thread subsystem 1515 --with-bthreads Use system bthreads library as thread subsystem 1516 (BeOS only) 1517 --with-wrap-malloc=SHAREDLIB Location of malloc wrapper library 1518 1519Some influential environment variables: 1520 CC C compiler command 1521 CFLAGS C compiler flags 1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1523 nonstandard directory <lib dir> 1524 LIBS libraries to pass to the linker, e.g. -l<library> 1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1526 you have headers in a nonstandard directory <include dir> 1527 CXX C++ compiler command 1528 CXXFLAGS C++ compiler flags 1529 CPP C preprocessor 1530 1531Use these variables to override the choices made by `configure' or to help 1532it to find libraries and programs with nonstandard names/locations. 1533 1534Report bugs to the package provider. 1535_ACEOF 1536ac_status=$? 1537fi 1538 1539if test "$ac_init_help" = "recursive"; then 1540 # If there are subdirs, report their specific --help. 1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1542 test -d "$ac_dir" || 1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1544 continue 1545 ac_builddir=. 1546 1547case "$ac_dir" in 1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1549*) 1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1551 # A ".." for each directory in $ac_dir_suffix. 1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1553 case $ac_top_builddir_sub in 1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1556 esac ;; 1557esac 1558ac_abs_top_builddir=$ac_pwd 1559ac_abs_builddir=$ac_pwd$ac_dir_suffix 1560# for backward compatibility: 1561ac_top_builddir=$ac_top_build_prefix 1562 1563case $srcdir in 1564 .) # We are building in place. 1565 ac_srcdir=. 1566 ac_top_srcdir=$ac_top_builddir_sub 1567 ac_abs_top_srcdir=$ac_pwd ;; 1568 [\\/]* | ?:[\\/]* ) # Absolute name. 1569 ac_srcdir=$srcdir$ac_dir_suffix; 1570 ac_top_srcdir=$srcdir 1571 ac_abs_top_srcdir=$srcdir ;; 1572 *) # Relative name. 1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1574 ac_top_srcdir=$ac_top_build_prefix$srcdir 1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1576esac 1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1578 1579 cd "$ac_dir" || { ac_status=$?; continue; } 1580 # Check for guested configure. 1581 if test -f "$ac_srcdir/configure.gnu"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1584 elif test -f "$ac_srcdir/configure"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure" --help=recursive 1587 else 1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1589 fi || ac_status=$? 1590 cd "$ac_pwd" || { ac_status=$?; break; } 1591 done 1592fi 1593 1594test -n "$ac_init_help" && exit $ac_status 1595if $ac_init_version; then 1596 cat <<\_ACEOF 1597configure 1598generated by GNU Autoconf 2.69 1599 1600Copyright (C) 2012 Free Software Foundation, Inc. 1601This configure script is free software; the Free Software Foundation 1602gives unlimited permission to copy, distribute and modify it. 1603_ACEOF 1604 exit 1605fi 1606 1607## ------------------------ ## 1608## Autoconf initialization. ## 1609## ------------------------ ## 1610 1611# ac_fn_c_try_compile LINENO 1612# -------------------------- 1613# Try to compile conftest.$ac_ext, and return whether this succeeded. 1614ac_fn_c_try_compile () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 rm -f conftest.$ac_objext 1618 if { { ac_try="$ac_compile" 1619case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622esac 1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624$as_echo "$ac_try_echo"; } >&5 1625 (eval "$ac_compile") 2>conftest.err 1626 ac_status=$? 1627 if test -s conftest.err; then 1628 grep -v '^ *+' conftest.err >conftest.er1 1629 cat conftest.er1 >&5 1630 mv -f conftest.er1 conftest.err 1631 fi 1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { 1634 test -z "$ac_c_werror_flag" || 1635 test ! -s conftest.err 1636 } && test -s conftest.$ac_objext; then : 1637 ac_retval=0 1638else 1639 $as_echo "$as_me: failed program was:" >&5 1640sed 's/^/| /' conftest.$ac_ext >&5 1641 1642 ac_retval=1 1643fi 1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1645 as_fn_set_status $ac_retval 1646 1647} # ac_fn_c_try_compile 1648 1649# ac_fn_cxx_try_compile LINENO 1650# ---------------------------- 1651# Try to compile conftest.$ac_ext, and return whether this succeeded. 1652ac_fn_cxx_try_compile () 1653{ 1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1655 rm -f conftest.$ac_objext 1656 if { { ac_try="$ac_compile" 1657case "(($ac_try" in 1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1659 *) ac_try_echo=$ac_try;; 1660esac 1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1662$as_echo "$ac_try_echo"; } >&5 1663 (eval "$ac_compile") 2>conftest.err 1664 ac_status=$? 1665 if test -s conftest.err; then 1666 grep -v '^ *+' conftest.err >conftest.er1 1667 cat conftest.er1 >&5 1668 mv -f conftest.er1 conftest.err 1669 fi 1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1671 test $ac_status = 0; } && { 1672 test -z "$ac_cxx_werror_flag" || 1673 test ! -s conftest.err 1674 } && test -s conftest.$ac_objext; then : 1675 ac_retval=0 1676else 1677 $as_echo "$as_me: failed program was:" >&5 1678sed 's/^/| /' conftest.$ac_ext >&5 1679 1680 ac_retval=1 1681fi 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 as_fn_set_status $ac_retval 1684 1685} # ac_fn_cxx_try_compile 1686 1687# ac_fn_c_try_cpp LINENO 1688# ---------------------- 1689# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1690ac_fn_c_try_cpp () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 if { { ac_try="$ac_cpp conftest.$ac_ext" 1694case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1701 ac_status=$? 1702 if test -s conftest.err; then 1703 grep -v '^ *+' conftest.err >conftest.er1 1704 cat conftest.er1 >&5 1705 mv -f conftest.er1 conftest.err 1706 fi 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; } > conftest.i && { 1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1710 test ! -s conftest.err 1711 }; then : 1712 ac_retval=0 1713else 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=1 1718fi 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 as_fn_set_status $ac_retval 1721 1722} # ac_fn_c_try_cpp 1723 1724# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1725# ------------------------------------------------------- 1726# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1727# the include files in INCLUDES and setting the cache variable VAR 1728# accordingly. 1729ac_fn_c_check_header_mongrel () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 if eval \${$3+:} false; then : 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1734$as_echo_n "checking for $2... " >&6; } 1735if eval \${$3+:} false; then : 1736 $as_echo_n "(cached) " >&6 1737fi 1738eval ac_res=\$$3 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1740$as_echo "$ac_res" >&6; } 1741else 1742 # Is the header compilable? 1743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1744$as_echo_n "checking $2 usability... " >&6; } 1745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1746/* end confdefs.h. */ 1747$4 1748#include <$2> 1749_ACEOF 1750if ac_fn_c_try_compile "$LINENO"; then : 1751 ac_header_compiler=yes 1752else 1753 ac_header_compiler=no 1754fi 1755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1757$as_echo "$ac_header_compiler" >&6; } 1758 1759# Is the header present? 1760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1761$as_echo_n "checking $2 presence... " >&6; } 1762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1763/* end confdefs.h. */ 1764#include <$2> 1765_ACEOF 1766if ac_fn_c_try_cpp "$LINENO"; then : 1767 ac_header_preproc=yes 1768else 1769 ac_header_preproc=no 1770fi 1771rm -f conftest.err conftest.i conftest.$ac_ext 1772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1773$as_echo "$ac_header_preproc" >&6; } 1774 1775# So? What about this header? 1776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1777 yes:no: ) 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1779$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1781$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1782 ;; 1783 no:yes:* ) 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1785$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1787$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1789$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1791$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1793$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1794 ;; 1795esac 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1797$as_echo_n "checking for $2... " >&6; } 1798if eval \${$3+:} false; then : 1799 $as_echo_n "(cached) " >&6 1800else 1801 eval "$3=\$ac_header_compiler" 1802fi 1803eval ac_res=\$$3 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1805$as_echo "$ac_res" >&6; } 1806fi 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 1809} # ac_fn_c_check_header_mongrel 1810 1811# ac_fn_c_try_run LINENO 1812# ---------------------- 1813# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1814# that executables *can* be run. 1815ac_fn_c_try_run () 1816{ 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 if { { ac_try="$ac_link" 1819case "(($ac_try" in 1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1821 *) ac_try_echo=$ac_try;; 1822esac 1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1824$as_echo "$ac_try_echo"; } >&5 1825 (eval "$ac_link") 2>&5 1826 ac_status=$? 1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1828 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1829 { { case "(($ac_try" in 1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1831 *) ac_try_echo=$ac_try;; 1832esac 1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1834$as_echo "$ac_try_echo"; } >&5 1835 (eval "$ac_try") 2>&5 1836 ac_status=$? 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; }; }; then : 1839 ac_retval=0 1840else 1841 $as_echo "$as_me: program exited with status $ac_status" >&5 1842 $as_echo "$as_me: failed program was:" >&5 1843sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=$ac_status 1846fi 1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 as_fn_set_status $ac_retval 1850 1851} # ac_fn_c_try_run 1852 1853# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1854# ------------------------------------------------------- 1855# Tests whether HEADER exists and can be compiled using the include files in 1856# INCLUDES, setting the cache variable VAR accordingly. 1857ac_fn_c_check_header_compile () 1858{ 1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1861$as_echo_n "checking for $2... " >&6; } 1862if eval \${$3+:} false; then : 1863 $as_echo_n "(cached) " >&6 1864else 1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1866/* end confdefs.h. */ 1867$4 1868#include <$2> 1869_ACEOF 1870if ac_fn_c_try_compile "$LINENO"; then : 1871 eval "$3=yes" 1872else 1873 eval "$3=no" 1874fi 1875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1876fi 1877eval ac_res=\$$3 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879$as_echo "$ac_res" >&6; } 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 1882} # ac_fn_c_check_header_compile 1883 1884# ac_fn_c_try_link LINENO 1885# ----------------------- 1886# Try to link conftest.$ac_ext, and return whether this succeeded. 1887ac_fn_c_try_link () 1888{ 1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1890 rm -f conftest.$ac_objext conftest$ac_exeext 1891 if { { ac_try="$ac_link" 1892case "(($ac_try" in 1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1894 *) ac_try_echo=$ac_try;; 1895esac 1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1897$as_echo "$ac_try_echo"; } >&5 1898 (eval "$ac_link") 2>conftest.err 1899 ac_status=$? 1900 if test -s conftest.err; then 1901 grep -v '^ *+' conftest.err >conftest.er1 1902 cat conftest.er1 >&5 1903 mv -f conftest.er1 conftest.err 1904 fi 1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1906 test $ac_status = 0; } && { 1907 test -z "$ac_c_werror_flag" || 1908 test ! -s conftest.err 1909 } && test -s conftest$ac_exeext && { 1910 test "$cross_compiling" = yes || 1911 test -x conftest$ac_exeext 1912 }; then : 1913 ac_retval=0 1914else 1915 $as_echo "$as_me: failed program was:" >&5 1916sed 's/^/| /' conftest.$ac_ext >&5 1917 1918 ac_retval=1 1919fi 1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1922 # interfere with the next link command; also delete a directory that is 1923 # left behind by Apple's compiler. We do this before executing the actions. 1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 as_fn_set_status $ac_retval 1927 1928} # ac_fn_c_try_link 1929 1930# ac_fn_c_check_func LINENO FUNC VAR 1931# ---------------------------------- 1932# Tests whether FUNC exists, setting the cache variable VAR accordingly 1933ac_fn_c_check_func () 1934{ 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1937$as_echo_n "checking for $2... " >&6; } 1938if eval \${$3+:} false; then : 1939 $as_echo_n "(cached) " >&6 1940else 1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1942/* end confdefs.h. */ 1943/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1945#define $2 innocuous_$2 1946 1947/* System header to define __stub macros and hopefully few prototypes, 1948 which can conflict with char $2 (); below. 1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1950 <limits.h> exists even on freestanding compilers. */ 1951 1952#ifdef __STDC__ 1953# include <limits.h> 1954#else 1955# include <assert.h> 1956#endif 1957 1958#undef $2 1959 1960/* Override any GCC internal prototype to avoid an error. 1961 Use char because int might match the return type of a GCC 1962 builtin and then its argument prototype would still apply. */ 1963#ifdef __cplusplus 1964extern "C" 1965#endif 1966char $2 (); 1967/* The GNU C library defines this for functions which it implements 1968 to always fail with ENOSYS. Some functions are actually named 1969 something starting with __ and the normal name is an alias. */ 1970#if defined __stub_$2 || defined __stub___$2 1971choke me 1972#endif 1973 1974int 1975main () 1976{ 1977return $2 (); 1978 ; 1979 return 0; 1980} 1981_ACEOF 1982if ac_fn_c_try_link "$LINENO"; then : 1983 eval "$3=yes" 1984else 1985 eval "$3=no" 1986fi 1987rm -f core conftest.err conftest.$ac_objext \ 1988 conftest$ac_exeext conftest.$ac_ext 1989fi 1990eval ac_res=\$$3 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1992$as_echo "$ac_res" >&6; } 1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1994 1995} # ac_fn_c_check_func 1996cat >config.log <<_ACEOF 1997This file contains any messages produced by compilers while 1998running configure, to aid debugging if configure makes a mistake. 1999 2000It was created by $as_me, which was 2001generated by GNU Autoconf 2.69. Invocation command line was 2002 2003 $ $0 $@ 2004 2005_ACEOF 2006exec 5>>config.log 2007{ 2008cat <<_ASUNAME 2009## --------- ## 2010## Platform. ## 2011## --------- ## 2012 2013hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2014uname -m = `(uname -m) 2>/dev/null || echo unknown` 2015uname -r = `(uname -r) 2>/dev/null || echo unknown` 2016uname -s = `(uname -s) 2>/dev/null || echo unknown` 2017uname -v = `(uname -v) 2>/dev/null || echo unknown` 2018 2019/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2020/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2021 2022/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2023/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2024/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2025/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2026/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2027/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2028/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2029 2030_ASUNAME 2031 2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2033for as_dir in $PATH 2034do 2035 IFS=$as_save_IFS 2036 test -z "$as_dir" && as_dir=. 2037 $as_echo "PATH: $as_dir" 2038 done 2039IFS=$as_save_IFS 2040 2041} >&5 2042 2043cat >&5 <<_ACEOF 2044 2045 2046## ----------- ## 2047## Core tests. ## 2048## ----------- ## 2049 2050_ACEOF 2051 2052 2053# Keep a trace of the command line. 2054# Strip out --no-create and --no-recursion so they do not pile up. 2055# Strip out --silent because we don't want to record it for future runs. 2056# Also quote any args containing shell meta-characters. 2057# Make two passes to allow for proper duplicate-argument suppression. 2058ac_configure_args= 2059ac_configure_args0= 2060ac_configure_args1= 2061ac_must_keep_next=false 2062for ac_pass in 1 2 2063do 2064 for ac_arg 2065 do 2066 case $ac_arg in 2067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2069 | -silent | --silent | --silen | --sile | --sil) 2070 continue ;; 2071 *\'*) 2072 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2073 esac 2074 case $ac_pass in 2075 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2076 2) 2077 as_fn_append ac_configure_args1 " '$ac_arg'" 2078 if test $ac_must_keep_next = true; then 2079 ac_must_keep_next=false # Got value, back to normal. 2080 else 2081 case $ac_arg in 2082 *=* | --config-cache | -C | -disable-* | --disable-* \ 2083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2085 | -with-* | --with-* | -without-* | --without-* | --x) 2086 case "$ac_configure_args0 " in 2087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2088 esac 2089 ;; 2090 -* ) ac_must_keep_next=true ;; 2091 esac 2092 fi 2093 as_fn_append ac_configure_args " '$ac_arg'" 2094 ;; 2095 esac 2096 done 2097done 2098{ ac_configure_args0=; unset ac_configure_args0;} 2099{ ac_configure_args1=; unset ac_configure_args1;} 2100 2101# When interrupted or exit'd, cleanup temporary files, and complete 2102# config.log. We remove comments because anyway the quotes in there 2103# would cause problems or look ugly. 2104# WARNING: Use '\'' to represent an apostrophe within the trap. 2105# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2106trap 'exit_status=$? 2107 # Save into config.log some information that might help in debugging. 2108 { 2109 echo 2110 2111 $as_echo "## ---------------- ## 2112## Cache variables. ## 2113## ---------------- ##" 2114 echo 2115 # The following way of writing the cache mishandles newlines in values, 2116( 2117 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2118 eval ac_val=\$$ac_var 2119 case $ac_val in #( 2120 *${as_nl}*) 2121 case $ac_var in #( 2122 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2123$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2124 esac 2125 case $ac_var in #( 2126 _ | IFS | as_nl) ;; #( 2127 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2128 *) { eval $ac_var=; unset $ac_var;} ;; 2129 esac ;; 2130 esac 2131 done 2132 (set) 2>&1 | 2133 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2134 *${as_nl}ac_space=\ *) 2135 sed -n \ 2136 "s/'\''/'\''\\\\'\'''\''/g; 2137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2138 ;; #( 2139 *) 2140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2141 ;; 2142 esac | 2143 sort 2144) 2145 echo 2146 2147 $as_echo "## ----------------- ## 2148## Output variables. ## 2149## ----------------- ##" 2150 echo 2151 for ac_var in $ac_subst_vars 2152 do 2153 eval ac_val=\$$ac_var 2154 case $ac_val in 2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2156 esac 2157 $as_echo "$ac_var='\''$ac_val'\''" 2158 done | sort 2159 echo 2160 2161 if test -n "$ac_subst_files"; then 2162 $as_echo "## ------------------- ## 2163## File substitutions. ## 2164## ------------------- ##" 2165 echo 2166 for ac_var in $ac_subst_files 2167 do 2168 eval ac_val=\$$ac_var 2169 case $ac_val in 2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2171 esac 2172 $as_echo "$ac_var='\''$ac_val'\''" 2173 done | sort 2174 echo 2175 fi 2176 2177 if test -s confdefs.h; then 2178 $as_echo "## ----------- ## 2179## confdefs.h. ## 2180## ----------- ##" 2181 echo 2182 cat confdefs.h 2183 echo 2184 fi 2185 test "$ac_signal" != 0 && 2186 $as_echo "$as_me: caught signal $ac_signal" 2187 $as_echo "$as_me: exit $exit_status" 2188 } >&5 2189 rm -f core *.core core.conftest.* && 2190 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2191 exit $exit_status 2192' 0 2193for ac_signal in 1 2 13 15; do 2194 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2195done 2196ac_signal=0 2197 2198# confdefs.h avoids OS command line length limits that DEFS can exceed. 2199rm -f -r conftest* confdefs.h 2200 2201$as_echo "/* confdefs.h */" > confdefs.h 2202 2203# Predefined preprocessor variables. 2204 2205cat >>confdefs.h <<_ACEOF 2206#define PACKAGE_NAME "$PACKAGE_NAME" 2207_ACEOF 2208 2209cat >>confdefs.h <<_ACEOF 2210#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2211_ACEOF 2212 2213cat >>confdefs.h <<_ACEOF 2214#define PACKAGE_VERSION "$PACKAGE_VERSION" 2215_ACEOF 2216 2217cat >>confdefs.h <<_ACEOF 2218#define PACKAGE_STRING "$PACKAGE_STRING" 2219_ACEOF 2220 2221cat >>confdefs.h <<_ACEOF 2222#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2223_ACEOF 2224 2225cat >>confdefs.h <<_ACEOF 2226#define PACKAGE_URL "$PACKAGE_URL" 2227_ACEOF 2228 2229 2230# Let the site file select an alternate cache file if it wants to. 2231# Prefer an explicitly selected file to automatically selected ones. 2232ac_site_file1=NONE 2233ac_site_file2=NONE 2234if test -n "$CONFIG_SITE"; then 2235 # We do not want a PATH search for config.site. 2236 case $CONFIG_SITE in #(( 2237 -*) ac_site_file1=./$CONFIG_SITE;; 2238 */*) ac_site_file1=$CONFIG_SITE;; 2239 *) ac_site_file1=./$CONFIG_SITE;; 2240 esac 2241elif test "x$prefix" != xNONE; then 2242 ac_site_file1=$prefix/share/config.site 2243 ac_site_file2=$prefix/etc/config.site 2244else 2245 ac_site_file1=$ac_default_prefix/share/config.site 2246 ac_site_file2=$ac_default_prefix/etc/config.site 2247fi 2248for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2249do 2250 test "x$ac_site_file" = xNONE && continue 2251 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2253$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2254 sed 's/^/| /' "$ac_site_file" >&5 2255 . "$ac_site_file" \ 2256 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2258as_fn_error $? "failed to load site script $ac_site_file 2259See \`config.log' for more details" "$LINENO" 5; } 2260 fi 2261done 2262 2263if test -r "$cache_file"; then 2264 # Some versions of bash will fail to source /dev/null (special files 2265 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2266 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2268$as_echo "$as_me: loading cache $cache_file" >&6;} 2269 case $cache_file in 2270 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2271 *) . "./$cache_file";; 2272 esac 2273 fi 2274else 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2276$as_echo "$as_me: creating cache $cache_file" >&6;} 2277 >$cache_file 2278fi 2279 2280# Check that the precious variables saved in the cache have kept the same 2281# value. 2282ac_cache_corrupted=false 2283for ac_var in $ac_precious_vars; do 2284 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2285 eval ac_new_set=\$ac_env_${ac_var}_set 2286 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2287 eval ac_new_val=\$ac_env_${ac_var}_value 2288 case $ac_old_set,$ac_new_set in 2289 set,) 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2291$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2292 ac_cache_corrupted=: ;; 2293 ,set) 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2295$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2296 ac_cache_corrupted=: ;; 2297 ,);; 2298 *) 2299 if test "x$ac_old_val" != "x$ac_new_val"; then 2300 # differences in whitespace do not lead to failure. 2301 ac_old_val_w=`echo x $ac_old_val` 2302 ac_new_val_w=`echo x $ac_new_val` 2303 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2305$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2306 ac_cache_corrupted=: 2307 else 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2309$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2310 eval $ac_var=\$ac_old_val 2311 fi 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2313$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2315$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2316 fi;; 2317 esac 2318 # Pass precious variables to config.status. 2319 if test "$ac_new_set" = set; then 2320 case $ac_new_val in 2321 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2322 *) ac_arg=$ac_var=$ac_new_val ;; 2323 esac 2324 case " $ac_configure_args " in 2325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2326 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2327 esac 2328 fi 2329done 2330if $ac_cache_corrupted; then 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2334$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2335 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2336fi 2337## -------------------- ## 2338## Main body of script. ## 2339## -------------------- ## 2340 2341ac_ext=c 2342ac_cpp='$CPP $CPPFLAGS' 2343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2345ac_compiler_gnu=$ac_cv_c_compiler_gnu 2346 2347 2348 2349 2350ac_aux_dir= 2351for ac_dir in ${srcdir}/build/autoconf "$srcdir"/${srcdir}/build/autoconf; do 2352 if test -f "$ac_dir/install-sh"; then 2353 ac_aux_dir=$ac_dir 2354 ac_install_sh="$ac_aux_dir/install-sh -c" 2355 break 2356 elif test -f "$ac_dir/install.sh"; then 2357 ac_aux_dir=$ac_dir 2358 ac_install_sh="$ac_aux_dir/install.sh -c" 2359 break 2360 elif test -f "$ac_dir/shtool"; then 2361 ac_aux_dir=$ac_dir 2362 ac_install_sh="$ac_aux_dir/shtool install -c" 2363 break 2364 fi 2365done 2366if test -z "$ac_aux_dir"; then 2367 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${srcdir}/build/autoconf \"$srcdir\"/${srcdir}/build/autoconf" "$LINENO" 5 2368fi 2369 2370# These three variables are undocumented and unsupported, 2371# and are intended to be withdrawn in a future Autoconf release. 2372# They can cause serious problems if a builder's source tree is in a directory 2373# whose full name contains unusual characters. 2374ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2375ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2376ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2377 2378 2379# Make sure we can run config.sub. 2380$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2381 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2382 2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2384$as_echo_n "checking build system type... " >&6; } 2385if ${ac_cv_build+:} false; then : 2386 $as_echo_n "(cached) " >&6 2387else 2388 ac_build_alias=$build_alias 2389test "x$ac_build_alias" = x && 2390 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2391test "x$ac_build_alias" = x && 2392 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2393ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2394 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2395 2396fi 2397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2398$as_echo "$ac_cv_build" >&6; } 2399case $ac_cv_build in 2400*-*-*) ;; 2401*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2402esac 2403build=$ac_cv_build 2404ac_save_IFS=$IFS; IFS='-' 2405set x $ac_cv_build 2406shift 2407build_cpu=$1 2408build_vendor=$2 2409shift; shift 2410# Remember, the first character of IFS is used to create $*, 2411# except with old shells: 2412build_os=$* 2413IFS=$ac_save_IFS 2414case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2415 2416 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2418$as_echo_n "checking host system type... " >&6; } 2419if ${ac_cv_host+:} false; then : 2420 $as_echo_n "(cached) " >&6 2421else 2422 if test "x$host_alias" = x; then 2423 ac_cv_host=$ac_cv_build 2424else 2425 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2427fi 2428 2429fi 2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2431$as_echo "$ac_cv_host" >&6; } 2432case $ac_cv_host in 2433*-*-*) ;; 2434*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2435esac 2436host=$ac_cv_host 2437ac_save_IFS=$IFS; IFS='-' 2438set x $ac_cv_host 2439shift 2440host_cpu=$1 2441host_vendor=$2 2442shift; shift 2443# Remember, the first character of IFS is used to create $*, 2444# except with old shells: 2445host_os=$* 2446IFS=$ac_save_IFS 2447case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2448 2449 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2451$as_echo_n "checking target system type... " >&6; } 2452if ${ac_cv_target+:} false; then : 2453 $as_echo_n "(cached) " >&6 2454else 2455 if test "x$target_alias" = x; then 2456 ac_cv_target=$ac_cv_host 2457else 2458 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2460fi 2461 2462fi 2463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2464$as_echo "$ac_cv_target" >&6; } 2465case $ac_cv_target in 2466*-*-*) ;; 2467*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2468esac 2469target=$ac_cv_target 2470ac_save_IFS=$IFS; IFS='-' 2471set x $ac_cv_target 2472shift 2473target_cpu=$1 2474target_vendor=$2 2475shift; shift 2476# Remember, the first character of IFS is used to create $*, 2477# except with old shells: 2478target_os=$* 2479IFS=$ac_save_IFS 2480case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2481 2482 2483# The aliases save the names the user supplied, while $host etc. 2484# will get canonicalized. 2485test -n "$target_alias" && 2486 test "$program_prefix$program_suffix$program_transform_name" = \ 2487 NONENONEs,x,x, && 2488 program_prefix=${target_alias}- 2489 2490MOD_MAJOR_VERSION=4 2491MOD_MINOR_VERSION=19 2492MOD_PATCH_VERSION=0 2493NSPR_MODNAME=nspr20 2494_HAVE_PTHREADS= 2495USE_PTHREADS= 2496USE_USER_PTHREADS= 2497USE_NSPR_THREADS= 2498USE_N32= 2499USE_X32= 2500USE_64= 2501USE_CPLUS= 2502USE_IPV6= 2503USE_MDUPDATE= 2504_MACOSX_DEPLOYMENT_TARGET= 2505_OPTIMIZE_FLAGS=-O 2506_DEBUG_FLAGS=-g 2507MOZ_DEBUG=1 2508MOZ_OPTIMIZE= 2509OBJDIR='$(OBJDIR_NAME)' 2510OBJDIR_NAME=. 2511OBJDIR_SUFFIX=OBJ 2512NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall' 2513NOSUCHFILE=/no-such-file 2514LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)' 2515LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)' 2516CYGWIN_WRAPPER= 2517MACOS_SDK_DIR= 2518NEXT_ROOT= 2519MT= 2520MOZ_OS2_HIGH_MEMORY=1 2521PROFILE_GEN_CFLAGS= 2522PROFILE_GEN_LDFLAGS= 2523PROFILE_USE_CFLAGS= 2524PROFILE_USE_LDFLAGS= 2525 2526RESOLVE_LINK_SYMBOLS= 2527 2528CFLAGS="${CFLAGS=}" 2529CXXFLAGS="${CXXFLAGS=}" 2530LDFLAGS="${LDFLAGS=}" 2531DLLFLAGS="${DLLFLAGS=}" 2532HOST_CFLAGS="${HOST_CFLAGS=}" 2533HOST_LDFLAGS="${HOST_LDFLAGS=}" 2534 2535case "$target" in 2536*-cygwin*|*-mingw*|*-msys*) 2537 # Check to see if we are really running in a msvc environemnt 2538 _WIN32_MSVC= 2539 for ac_prog in cl 2540do 2541 # Extract the first word of "$ac_prog", so it can be a program name with args. 2542set dummy $ac_prog; ac_word=$2 2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2544$as_echo_n "checking for $ac_word... " >&6; } 2545if ${ac_cv_prog_CC+:} false; then : 2546 $as_echo_n "(cached) " >&6 2547else 2548 if test -n "$CC"; then 2549 ac_cv_prog_CC="$CC" # Let the user override the test. 2550else 2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2552for as_dir in $PATH 2553do 2554 IFS=$as_save_IFS 2555 test -z "$as_dir" && as_dir=. 2556 for ac_exec_ext in '' $ac_executable_extensions; do 2557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2558 ac_cv_prog_CC="$ac_prog" 2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2560 break 2 2561 fi 2562done 2563 done 2564IFS=$as_save_IFS 2565 2566fi 2567fi 2568CC=$ac_cv_prog_CC 2569if test -n "$CC"; then 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2571$as_echo "$CC" >&6; } 2572else 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2574$as_echo "no" >&6; } 2575fi 2576 2577 2578 test -n "$CC" && break 2579done 2580 2581 cat > conftest.c <<EOF 2582#ifdef _MSC_VER 2583COMPILER IS MSVC 2584#endif 2585EOF 2586 read dummy <<EOF 2587$($CC -E conftest.c 2>/dev/null | grep COMPILER) 2588EOF 2589 if test -n "$dummy"; then 2590 _WIN32_MSVC=1 2591 CXX=$CC 2592 fi 2593 rm -f conftest.c 2594 ;; 2595*-mks*) 2596 _WIN32_MSVC=1 2597 ;; 2598esac 2599 2600if test -n "$_WIN32_MSVC"; then 2601 SKIP_PATH_CHECKS=1 2602 SKIP_COMPILER_CHECKS=1 2603 SKIP_LIBRARY_CHECKS=1 2604fi 2605 2606 2607 2608# Check whether --with-android-ndk was given. 2609if test "${with_android_ndk+set}" = set; then : 2610 withval=$with_android_ndk; android_ndk=$withval 2611fi 2612 2613 2614 2615# Check whether --with-android-toolchain was given. 2616if test "${with_android_toolchain+set}" = set; then : 2617 withval=$with_android_toolchain; android_toolchain=$withval 2618fi 2619 2620 2621case "$target_cpu" in 2622arm) 2623 android_version=5 2624 ;; 2625i?86|mipsel) 2626 android_version=9 2627 ;; 2628esac 2629 2630 2631# Check whether --with-android-version was given. 2632if test "${with_android_version+set}" = set; then : 2633 withval=$with_android_version; android_version=$withval 2634fi 2635 2636 2637 2638# Check whether --with-android-platform was given. 2639if test "${with_android_platform+set}" = set; then : 2640 withval=$with_android_platform; android_platform=$withval 2641fi 2642 2643 2644case "$target" in 2645arm-linux*-android*|*-linuxandroid*) 2646 android_tool_prefix="arm-linux-androideabi" 2647 ;; 2648i?86-*android*) 2649 android_tool_prefix="i686-linux-android" 2650 ;; 2651mipsel-*android*) 2652 android_tool_prefix="mipsel-linux-android" 2653 ;; 2654*) 2655 android_tool_prefix="$target_os" 2656 ;; 2657esac 2658 2659 2660 2661# Check whether --with-gonk was given. 2662if test "${with_gonk+set}" = set; then : 2663 withval=$with_gonk; gonkdir=$withval 2664fi 2665 2666 2667if test -n "$gonkdir" ; then 2668 2669 $as_echo "#define ANDROID 1" >>confdefs.h 2670 2671else 2672case "$target" in 2673*-android*|*-linuxandroid*) 2674 if test -z "$android_ndk" ; then 2675 as_fn_error $? "You must specify --with-android-ndk=/path/to/ndk when targeting Android." "$LINENO" 5 2676 fi 2677 2678 if test -z "$android_toolchain" ; then 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android toolchain directory" >&5 2680$as_echo_n "checking for android toolchain directory... " >&6; } 2681 2682 kernel_name=`uname -s | tr "[:upper:]" "[:lower:]"` 2683 2684 case "$target_cpu" in 2685 arm) 2686 target_name=arm-linux-androideabi-4.4.3 2687 ;; 2688 i?86) 2689 target_name=x86-4.4.3 2690 ;; 2691 mipsel) 2692 target_name=mipsel-linux-android-4.4.3 2693 ;; 2694 esac 2695 android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86 2696 2697 if test -d "$android_toolchain" ; then 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_toolchain" >&5 2699$as_echo "$android_toolchain" >&6; } 2700 else 2701 as_fn_error $? "not found. You have to specify --with-android-toolchain=/path/to/ndk/toolchain." "$LINENO" 5 2702 fi 2703 fi 2704 2705 if test -z "$android_platform" ; then 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android platform directory" >&5 2707$as_echo_n "checking for android platform directory... " >&6; } 2708 2709 case "$target_cpu" in 2710 arm) 2711 target_name=arm 2712 ;; 2713 i?86) 2714 target_name=x86 2715 ;; 2716 mipsel) 2717 target_name=mips 2718 ;; 2719 esac 2720 2721 android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name" 2722 2723 if test -d "$android_platform" ; then 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_platform" >&5 2725$as_echo "$android_platform" >&6; } 2726 else 2727 as_fn_error $? "not found. You have to specify --with-android-platform=/path/to/ndk/platform." "$LINENO" 5 2728 fi 2729 fi 2730 2731 case "$target_cpu" in 2732 i?86) 2733 if ! test -e "$android_toolchain"/bin/"$android_tool_prefix"-gcc; then 2734 android_tool_prefix="i686-android-linux" 2735 fi 2736 ;; 2737 esac 2738 2739 AS="$android_toolchain"/bin/"$android_tool_prefix"-as 2740 CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc 2741 CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++ 2742 CPP="$android_toolchain"/bin/"$android_tool_prefix"-cpp 2743 LD="$android_toolchain"/bin/"$android_tool_prefix"-ld 2744 AR="$android_toolchain"/bin/"$android_tool_prefix"-ar 2745 RANLIB="$android_toolchain"/bin/"$android_tool_prefix"-ranlib 2746 STRIP="$android_toolchain"/bin/"$android_tool_prefix"-strip 2747 2748 CPPFLAGS="-I$android_platform/usr/include $CPPFLAGS" 2749 CFLAGS="-mandroid -I$android_platform/usr/include -fno-short-enums -fno-exceptions $CFLAGS" 2750 CXXFLAGS="-mandroid -I$android_platform/usr/include -fpic -fno-short-enums -fno-exceptions $CXXFLAGS" 2751 LDFLAGS="-mandroid -L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS" 2752 2753 $as_echo "#define ANDROID 1" >>confdefs.h 2754 2755 ;; 2756esac 2757fi 2758 2759dist_prefix='${MOD_DEPTH}/dist' 2760dist_bindir='${dist_prefix}/bin' 2761dist_includedir='${dist_prefix}/include/nspr' 2762dist_libdir='${dist_prefix}/lib' 2763if test "${includedir}" = '${prefix}/include'; then 2764 includedir='${prefix}/include/nspr' 2765fi 2766 2767 2768# Check whether --with-dist-prefix was given. 2769if test "${with_dist_prefix+set}" = set; then : 2770 withval=$with_dist_prefix; dist_prefix=$withval 2771fi 2772 2773 2774 2775# Check whether --with-dist-bindir was given. 2776if test "${with_dist_bindir+set}" = set; then : 2777 withval=$with_dist_bindir; dist_bindir=$withval 2778fi 2779 2780 2781 2782# Check whether --with-dist-includedir was given. 2783if test "${with_dist_includedir+set}" = set; then : 2784 withval=$with_dist_includedir; dist_includedir=$withval 2785fi 2786 2787 2788 2789# Check whether --with-dist-libdir was given. 2790if test "${with_dist_libdir+set}" = set; then : 2791 withval=$with_dist_libdir; dist_libdir=$withval 2792fi 2793 2794 2795 2796 2797 2798 2799 2800 2801# Check whether --with-mozilla was given. 2802if test "${with_mozilla+set}" = set; then : 2803 withval=$with_mozilla; if test "$withval" = "yes"; then 2804 $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h 2805 2806 MOZILLA_CLIENT=1 2807 else 2808 MOZILLA_CLIENT= 2809 fi 2810else 2811 if test -n "$MOZILLA_CLIENT"; then 2812 $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h 2813 2814 fi 2815fi 2816 2817 2818# Check whether --enable-optimize was given. 2819if test "${enable_optimize+set}" = set; then : 2820 enableval=$enable_optimize; if test "$enableval" != "no"; then 2821 MOZ_OPTIMIZE=1 2822 if test -n "$enableval" -a "$enableval" != "yes"; then 2823 _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` 2824 _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS 2825 fi 2826 else 2827 MOZ_OPTIMIZE= 2828 fi 2829fi 2830 2831 2832# Check whether --enable-debug was given. 2833if test "${enable_debug+set}" = set; then : 2834 enableval=$enable_debug; if test "$enableval" != "no"; then 2835 MOZ_DEBUG=1 2836 MOZ_DEBUG_SYMBOLS=1 2837 if test -n "$enableval" -a "$enableval" != "yes"; then 2838 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` 2839 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS 2840 fi 2841 else 2842 MOZ_DEBUG= 2843 fi 2844else 2845 MOZ_DEBUG_SYMBOLS=1 2846fi 2847 2848 2849# Check whether --enable-debug-symbols was given. 2850if test "${enable_debug_symbols+set}" = set; then : 2851 enableval=$enable_debug_symbols; if test "$enableval" != "no"; then 2852 MOZ_DEBUG_SYMBOLS=1 2853 if test -n "$enableval" -a "$enableval" != "yes"; then 2854 if test -z "$_SAVE_DEBUG_FLAGS"; then 2855 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` 2856 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS 2857 else 2858 as_fn_error $? "--enable-debug-symbols flags cannot be used with --enable-debug flags" "$LINENO" 5 2859 fi 2860 fi 2861 else 2862 MOZ_DEBUG_SYMBOLS= 2863 fi 2864fi 2865 2866 2867# Check whether --enable-win32-target was given. 2868if test "${enable_win32_target+set}" = set; then : 2869 enableval=$enable_win32_target; OS_TARGET=`echo $enableval | tr a-z A-Z` 2870fi 2871 2872 2873# Check whether --enable-symbian-target was given. 2874if test "${enable_symbian_target+set}" = set; then : 2875 enableval=$enable_symbian_target; OS_TARGET=`echo $enableval | tr a-z A-Z` 2876fi 2877 2878 2879# Check whether --enable-debug-rtl was given. 2880if test "${enable_debug_rtl+set}" = set; then : 2881 enableval=$enable_debug_rtl; if test "$enableval" = "yes"; then 2882 USE_DEBUG_RTL=1 2883 else 2884 USE_DEBUG_RTL=0 2885 fi 2886fi 2887 2888 2889# Check whether --enable-static-rtl was given. 2890if test "${enable_static_rtl+set}" = set; then : 2891 enableval=$enable_static_rtl; if test "$enableval" = "yes"; then 2892 USE_STATIC_RTL=1 2893 fi 2894fi 2895 2896 2897# Check whether --enable-n32 was given. 2898if test "${enable_n32+set}" = set; then : 2899 enableval=$enable_n32; if test "$enableval" = "yes"; then 2900 USE_N32=1 2901 else if test "$enableval" = "no"; then 2902 USE_N32= 2903 fi 2904 fi 2905fi 2906 2907 2908# Check whether --enable-x32 was given. 2909if test "${enable_x32+set}" = set; then : 2910 enableval=$enable_x32; if test "$enableval" = "yes"; then 2911 USE_X32=1 2912 else if test "$enableval" = "no"; then 2913 USE_X32= 2914 fi 2915 fi 2916fi 2917 2918 2919# Check whether --enable-64bit was given. 2920if test "${enable_64bit+set}" = set; then : 2921 enableval=$enable_64bit; if test "$enableval" = "yes"; then 2922 USE_64=1 2923 fi 2924fi 2925 2926 2927# Check whether --enable-mdupdate was given. 2928if test "${enable_mdupdate+set}" = set; then : 2929 enableval=$enable_mdupdate; if test "$enableval" = "yes"; then 2930 USE_MDUPDATE=1 2931 fi 2932fi 2933 2934 2935# Check whether --enable-cplus was given. 2936if test "${enable_cplus+set}" = set; then : 2937 enableval=$enable_cplus; if test "$enableval" = "yes"; then 2938 USE_CPLUS=1 2939 fi 2940fi 2941 2942 2943 2944# Check whether --with-arm-kuser was given. 2945if test "${with_arm_kuser+set}" = set; then : 2946 withval=$with_arm_kuser; if test "$withval" = "yes"; then 2947 $as_echo "#define _PR_ARM_KUSER 1" >>confdefs.h 2948 2949 fi 2950fi 2951 2952 2953 2954# Check whether --with-macos-sdk was given. 2955if test "${with_macos_sdk+set}" = set; then : 2956 withval=$with_macos_sdk; MACOS_SDK_DIR=$withval 2957fi 2958 2959 2960# Check whether --enable-macos-target was given. 2961if test "${enable_macos_target+set}" = set; then : 2962 enableval=$enable_macos_target; _MACOSX_DEPLOYMENT_TARGET=$enableval 2963fi 2964 2965 2966case "$target" in 2967 2968*-aix*) 2969 case "${target_os}" in 2970 aix3.2*) 2971 USE_NSPR_THREADS=1 2972 ;; 2973 *) 2974 USE_PTHREADS=1 2975 ;; 2976 esac 2977 ;; 2978 2979esac 2980 2981if test -z "$CC"; then 2982 case "$target" in 2983 2984 *-aix*) 2985 if test -z "$USE_NSPR_THREADS"; then 2986 CC=xlc_r 2987 else 2988 CC=xlc 2989 fi 2990 ;; 2991 2992 *-hpux*) 2993 CC=cc 2994 ;; 2995 2996 *-irix*) 2997 CC=cc 2998 ;; 2999 3000 *-osf*) 3001 CC=cc 3002 ;; 3003 3004 *-solaris*) 3005 CC=cc 3006 ;; 3007 3008 esac 3009fi 3010 3011if test -z "$CXX"; then 3012 case "$target" in 3013 3014 *-aix*) 3015 if test -z "$USE_NSPR_THREADS"; then 3016 CXX=xlC_r 3017 else 3018 CXX=xlC 3019 fi 3020 ;; 3021 3022 *-hpux*) 3023 case "${target_os}" in 3024 hpux10.30) 3025 CXX=aCC 3026 ;; 3027 hpux11.*) 3028 CXX=aCC 3029 ;; 3030 *) 3031 CXX=CC 3032 ;; 3033 esac 3034 ;; 3035 3036 *-irix*) 3037 CXX=CC 3038 ;; 3039 3040 *-osf*) 3041 CXX=cxx 3042 ;; 3043 3044 *-solaris*) 3045 CXX=CC 3046 ;; 3047 3048 esac 3049fi 3050 3051if test -z "$SKIP_PATH_CHECKS"; then 3052 # Extract the first word of "$WHOAMI whoami", so it can be a program name with args. 3053set dummy $WHOAMI whoami; ac_word=$2 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055$as_echo_n "checking for $ac_word... " >&6; } 3056if ${ac_cv_path_WHOAMI+:} false; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 case $WHOAMI in 3060 [\\/]* | ?:[\\/]*) 3061 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path. 3062 ;; 3063 *) 3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065for as_dir in $PATH 3066do 3067 IFS=$as_save_IFS 3068 test -z "$as_dir" && as_dir=. 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3071 ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext" 3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3073 break 2 3074 fi 3075done 3076 done 3077IFS=$as_save_IFS 3078 3079 test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami" 3080 ;; 3081esac 3082fi 3083WHOAMI=$ac_cv_path_WHOAMI 3084if test -n "$WHOAMI"; then 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5 3086$as_echo "$WHOAMI" >&6; } 3087else 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3089$as_echo "no" >&6; } 3090fi 3091 3092 3093fi 3094 3095if test -n "$MOZ_DEBUG"; then 3096 $as_echo "#define DEBUG 1" >>confdefs.h 3097 3098 DEFINES="$DEFINES -UNDEBUG" 3099 3100 case "${target_os}" in 3101 beos*) 3102 DEFINES="$DEFINES -DDEBUG_${USER}" 3103 ;; 3104 mks*|cygwin*|mingw*|msys*|os2*) 3105 DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`" 3106 ;; 3107 *) 3108 DEFINES="$DEFINES -DDEBUG_`$WHOAMI`" 3109 ;; 3110 esac 3111else 3112 $as_echo "#define NDEBUG 1" >>confdefs.h 3113 3114 DEFINES="$DEFINES -UDEBUG" 3115fi 3116 3117if test -z "$SKIP_COMPILER_CHECKS"; then 3118if test "$target" != "$host"; then 3119 echo "cross compiling from $host to $target" 3120 cross_compiling=yes 3121 3122 case "$build:$target" in 3123 powerpc-apple-darwin8*:i?86-apple-darwin*) 3124 _SAVE_CFLAGS=$CFLAGS 3125 _SAVE_CXXFLAGS=$CXXFLAGS 3126 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS" 3127 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS" 3128 ;; 3129 esac 3130 3131 for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc" 3132do 3133 # Extract the first word of "$ac_prog", so it can be a program name with args. 3134set dummy $ac_prog; ac_word=$2 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3136$as_echo_n "checking for $ac_word... " >&6; } 3137if ${ac_cv_prog_CC+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139else 3140 if test -n "$CC"; then 3141 ac_cv_prog_CC="$CC" # Let the user override the test. 3142else 3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3144for as_dir in $PATH 3145do 3146 IFS=$as_save_IFS 3147 test -z "$as_dir" && as_dir=. 3148 for ac_exec_ext in '' $ac_executable_extensions; do 3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3150 ac_cv_prog_CC="$ac_prog" 3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3152 break 2 3153 fi 3154done 3155 done 3156IFS=$as_save_IFS 3157 3158fi 3159fi 3160CC=$ac_cv_prog_CC 3161if test -n "$CC"; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3163$as_echo "$CC" >&6; } 3164else 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3166$as_echo "no" >&6; } 3167fi 3168 3169 3170 test -n "$CC" && break 3171done 3172test -n "$CC" || CC="echo" 3173 3174 unset ac_cv_prog_CC 3175 fi 3176 3177ac_ext=c 3178ac_cpp='$CPP $CPPFLAGS' 3179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3181ac_compiler_gnu=$ac_cv_c_compiler_gnu 3182if test -n "$ac_tool_prefix"; then 3183 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3184set dummy ${ac_tool_prefix}gcc; ac_word=$2 3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3186$as_echo_n "checking for $ac_word... " >&6; } 3187if ${ac_cv_prog_CC+:} false; then : 3188 $as_echo_n "(cached) " >&6 3189else 3190 if test -n "$CC"; then 3191 ac_cv_prog_CC="$CC" # Let the user override the test. 3192else 3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3194for as_dir in $PATH 3195do 3196 IFS=$as_save_IFS 3197 test -z "$as_dir" && as_dir=. 3198 for ac_exec_ext in '' $ac_executable_extensions; do 3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3200 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3202 break 2 3203 fi 3204done 3205 done 3206IFS=$as_save_IFS 3207 3208fi 3209fi 3210CC=$ac_cv_prog_CC 3211if test -n "$CC"; then 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3213$as_echo "$CC" >&6; } 3214else 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3216$as_echo "no" >&6; } 3217fi 3218 3219 3220fi 3221if test -z "$ac_cv_prog_CC"; then 3222 ac_ct_CC=$CC 3223 # Extract the first word of "gcc", so it can be a program name with args. 3224set dummy gcc; ac_word=$2 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3226$as_echo_n "checking for $ac_word... " >&6; } 3227if ${ac_cv_prog_ac_ct_CC+:} false; then : 3228 $as_echo_n "(cached) " >&6 3229else 3230 if test -n "$ac_ct_CC"; then 3231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3232else 3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3234for as_dir in $PATH 3235do 3236 IFS=$as_save_IFS 3237 test -z "$as_dir" && as_dir=. 3238 for ac_exec_ext in '' $ac_executable_extensions; do 3239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3240 ac_cv_prog_ac_ct_CC="gcc" 3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3242 break 2 3243 fi 3244done 3245 done 3246IFS=$as_save_IFS 3247 3248fi 3249fi 3250ac_ct_CC=$ac_cv_prog_ac_ct_CC 3251if test -n "$ac_ct_CC"; then 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3253$as_echo "$ac_ct_CC" >&6; } 3254else 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3256$as_echo "no" >&6; } 3257fi 3258 3259 if test "x$ac_ct_CC" = x; then 3260 CC="" 3261 else 3262 case $cross_compiling:$ac_tool_warned in 3263yes:) 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3266ac_tool_warned=yes ;; 3267esac 3268 CC=$ac_ct_CC 3269 fi 3270else 3271 CC="$ac_cv_prog_CC" 3272fi 3273 3274if test -z "$CC"; then 3275 if test -n "$ac_tool_prefix"; then 3276 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3277set dummy ${ac_tool_prefix}cc; ac_word=$2 3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3279$as_echo_n "checking for $ac_word... " >&6; } 3280if ${ac_cv_prog_CC+:} false; then : 3281 $as_echo_n "(cached) " >&6 3282else 3283 if test -n "$CC"; then 3284 ac_cv_prog_CC="$CC" # Let the user override the test. 3285else 3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3287for as_dir in $PATH 3288do 3289 IFS=$as_save_IFS 3290 test -z "$as_dir" && as_dir=. 3291 for ac_exec_ext in '' $ac_executable_extensions; do 3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3293 ac_cv_prog_CC="${ac_tool_prefix}cc" 3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3295 break 2 3296 fi 3297done 3298 done 3299IFS=$as_save_IFS 3300 3301fi 3302fi 3303CC=$ac_cv_prog_CC 3304if test -n "$CC"; then 3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3306$as_echo "$CC" >&6; } 3307else 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3309$as_echo "no" >&6; } 3310fi 3311 3312 3313 fi 3314fi 3315if test -z "$CC"; then 3316 # Extract the first word of "cc", so it can be a program name with args. 3317set dummy cc; ac_word=$2 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3319$as_echo_n "checking for $ac_word... " >&6; } 3320if ${ac_cv_prog_CC+:} false; then : 3321 $as_echo_n "(cached) " >&6 3322else 3323 if test -n "$CC"; then 3324 ac_cv_prog_CC="$CC" # Let the user override the test. 3325else 3326 ac_prog_rejected=no 3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3328for as_dir in $PATH 3329do 3330 IFS=$as_save_IFS 3331 test -z "$as_dir" && as_dir=. 3332 for ac_exec_ext in '' $ac_executable_extensions; do 3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3334 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3335 ac_prog_rejected=yes 3336 continue 3337 fi 3338 ac_cv_prog_CC="cc" 3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3340 break 2 3341 fi 3342done 3343 done 3344IFS=$as_save_IFS 3345 3346if test $ac_prog_rejected = yes; then 3347 # We found a bogon in the path, so make sure we never use it. 3348 set dummy $ac_cv_prog_CC 3349 shift 3350 if test $# != 0; then 3351 # We chose a different compiler from the bogus one. 3352 # However, it has the same basename, so the bogon will be chosen 3353 # first if we set CC to just the basename; use the full file name. 3354 shift 3355 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3356 fi 3357fi 3358fi 3359fi 3360CC=$ac_cv_prog_CC 3361if test -n "$CC"; then 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3363$as_echo "$CC" >&6; } 3364else 3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3366$as_echo "no" >&6; } 3367fi 3368 3369 3370fi 3371if test -z "$CC"; then 3372 if test -n "$ac_tool_prefix"; then 3373 for ac_prog in cl.exe 3374 do 3375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3376set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3378$as_echo_n "checking for $ac_word... " >&6; } 3379if ${ac_cv_prog_CC+:} false; then : 3380 $as_echo_n "(cached) " >&6 3381else 3382 if test -n "$CC"; then 3383 ac_cv_prog_CC="$CC" # Let the user override the test. 3384else 3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3386for as_dir in $PATH 3387do 3388 IFS=$as_save_IFS 3389 test -z "$as_dir" && as_dir=. 3390 for ac_exec_ext in '' $ac_executable_extensions; do 3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3392 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3394 break 2 3395 fi 3396done 3397 done 3398IFS=$as_save_IFS 3399 3400fi 3401fi 3402CC=$ac_cv_prog_CC 3403if test -n "$CC"; then 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3405$as_echo "$CC" >&6; } 3406else 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3408$as_echo "no" >&6; } 3409fi 3410 3411 3412 test -n "$CC" && break 3413 done 3414fi 3415if test -z "$CC"; then 3416 ac_ct_CC=$CC 3417 for ac_prog in cl.exe 3418do 3419 # Extract the first word of "$ac_prog", so it can be a program name with args. 3420set dummy $ac_prog; ac_word=$2 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3422$as_echo_n "checking for $ac_word... " >&6; } 3423if ${ac_cv_prog_ac_ct_CC+:} false; then : 3424 $as_echo_n "(cached) " >&6 3425else 3426 if test -n "$ac_ct_CC"; then 3427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3428else 3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3430for as_dir in $PATH 3431do 3432 IFS=$as_save_IFS 3433 test -z "$as_dir" && as_dir=. 3434 for ac_exec_ext in '' $ac_executable_extensions; do 3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3436 ac_cv_prog_ac_ct_CC="$ac_prog" 3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3438 break 2 3439 fi 3440done 3441 done 3442IFS=$as_save_IFS 3443 3444fi 3445fi 3446ac_ct_CC=$ac_cv_prog_ac_ct_CC 3447if test -n "$ac_ct_CC"; then 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3449$as_echo "$ac_ct_CC" >&6; } 3450else 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3452$as_echo "no" >&6; } 3453fi 3454 3455 3456 test -n "$ac_ct_CC" && break 3457done 3458 3459 if test "x$ac_ct_CC" = x; then 3460 CC="" 3461 else 3462 case $cross_compiling:$ac_tool_warned in 3463yes:) 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3466ac_tool_warned=yes ;; 3467esac 3468 CC=$ac_ct_CC 3469 fi 3470fi 3471 3472fi 3473 3474 3475test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3477as_fn_error $? "no acceptable C compiler found in \$PATH 3478See \`config.log' for more details" "$LINENO" 5; } 3479 3480# Provide some information about the compiler. 3481$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3482set X $ac_compile 3483ac_compiler=$2 3484for ac_option in --version -v -V -qversion; do 3485 { { ac_try="$ac_compiler $ac_option >&5" 3486case "(($ac_try" in 3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3488 *) ac_try_echo=$ac_try;; 3489esac 3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3491$as_echo "$ac_try_echo"; } >&5 3492 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3493 ac_status=$? 3494 if test -s conftest.err; then 3495 sed '10a\ 3496... rest of stderr output deleted ... 3497 10q' conftest.err >conftest.er1 3498 cat conftest.er1 >&5 3499 fi 3500 rm -f conftest.er1 conftest.err 3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3502 test $ac_status = 0; } 3503done 3504 3505cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3506/* end confdefs.h. */ 3507 3508int 3509main () 3510{ 3511 3512 ; 3513 return 0; 3514} 3515_ACEOF 3516ac_clean_files_save=$ac_clean_files 3517ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3518# Try to create an executable without -o first, disregard a.out. 3519# It will help us diagnose broken compilers, and finding out an intuition 3520# of exeext. 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3522$as_echo_n "checking whether the C compiler works... " >&6; } 3523ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3524 3525# The possible output files: 3526ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3527 3528ac_rmfiles= 3529for ac_file in $ac_files 3530do 3531 case $ac_file in 3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3533 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3534 esac 3535done 3536rm -f $ac_rmfiles 3537 3538if { { ac_try="$ac_link_default" 3539case "(($ac_try" in 3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3541 *) ac_try_echo=$ac_try;; 3542esac 3543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3544$as_echo "$ac_try_echo"; } >&5 3545 (eval "$ac_link_default") 2>&5 3546 ac_status=$? 3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3548 test $ac_status = 0; }; then : 3549 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3550# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3551# in a Makefile. We should not override ac_cv_exeext if it was cached, 3552# so that the user can short-circuit this test for compilers unknown to 3553# Autoconf. 3554for ac_file in $ac_files '' 3555do 3556 test -f "$ac_file" || continue 3557 case $ac_file in 3558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3559 ;; 3560 [ab].out ) 3561 # We found the default executable, but exeext='' is most 3562 # certainly right. 3563 break;; 3564 *.* ) 3565 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3566 then :; else 3567 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3568 fi 3569 # We set ac_cv_exeext here because the later test for it is not 3570 # safe: cross compilers may not add the suffix if given an `-o' 3571 # argument, so we may need to know it at that point already. 3572 # Even if this section looks crufty: it has the advantage of 3573 # actually working. 3574 break;; 3575 * ) 3576 break;; 3577 esac 3578done 3579test "$ac_cv_exeext" = no && ac_cv_exeext= 3580 3581else 3582 ac_file='' 3583fi 3584if test -z "$ac_file"; then : 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3586$as_echo "no" >&6; } 3587$as_echo "$as_me: failed program was:" >&5 3588sed 's/^/| /' conftest.$ac_ext >&5 3589 3590{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3592as_fn_error 77 "C compiler cannot create executables 3593See \`config.log' for more details" "$LINENO" 5; } 3594else 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3596$as_echo "yes" >&6; } 3597fi 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3599$as_echo_n "checking for C compiler default output file name... " >&6; } 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3601$as_echo "$ac_file" >&6; } 3602ac_exeext=$ac_cv_exeext 3603 3604rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3605ac_clean_files=$ac_clean_files_save 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3607$as_echo_n "checking for suffix of executables... " >&6; } 3608if { { ac_try="$ac_link" 3609case "(($ac_try" in 3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3611 *) ac_try_echo=$ac_try;; 3612esac 3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3614$as_echo "$ac_try_echo"; } >&5 3615 (eval "$ac_link") 2>&5 3616 ac_status=$? 3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3618 test $ac_status = 0; }; then : 3619 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3620# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3621# work properly (i.e., refer to `conftest.exe'), while it won't with 3622# `rm'. 3623for ac_file in conftest.exe conftest conftest.*; do 3624 test -f "$ac_file" || continue 3625 case $ac_file in 3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3628 break;; 3629 * ) break;; 3630 esac 3631done 3632else 3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3635as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3636See \`config.log' for more details" "$LINENO" 5; } 3637fi 3638rm -f conftest conftest$ac_cv_exeext 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3640$as_echo "$ac_cv_exeext" >&6; } 3641 3642rm -f conftest.$ac_ext 3643EXEEXT=$ac_cv_exeext 3644ac_exeext=$EXEEXT 3645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3646/* end confdefs.h. */ 3647#include <stdio.h> 3648int 3649main () 3650{ 3651FILE *f = fopen ("conftest.out", "w"); 3652 return ferror (f) || fclose (f) != 0; 3653 3654 ; 3655 return 0; 3656} 3657_ACEOF 3658ac_clean_files="$ac_clean_files conftest.out" 3659# Check that the compiler produces executables we can run. If not, either 3660# the compiler is broken, or we cross compile. 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3662$as_echo_n "checking whether we are cross compiling... " >&6; } 3663if test "$cross_compiling" != yes; then 3664 { { ac_try="$ac_link" 3665case "(($ac_try" in 3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3667 *) ac_try_echo=$ac_try;; 3668esac 3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3670$as_echo "$ac_try_echo"; } >&5 3671 (eval "$ac_link") 2>&5 3672 ac_status=$? 3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3674 test $ac_status = 0; } 3675 if { ac_try='./conftest$ac_cv_exeext' 3676 { { case "(($ac_try" in 3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3678 *) ac_try_echo=$ac_try;; 3679esac 3680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3681$as_echo "$ac_try_echo"; } >&5 3682 (eval "$ac_try") 2>&5 3683 ac_status=$? 3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3685 test $ac_status = 0; }; }; then 3686 cross_compiling=no 3687 else 3688 if test "$cross_compiling" = maybe; then 3689 cross_compiling=yes 3690 else 3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3693as_fn_error $? "cannot run C compiled programs. 3694If you meant to cross compile, use \`--host'. 3695See \`config.log' for more details" "$LINENO" 5; } 3696 fi 3697 fi 3698fi 3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3700$as_echo "$cross_compiling" >&6; } 3701 3702rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3703ac_clean_files=$ac_clean_files_save 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3705$as_echo_n "checking for suffix of object files... " >&6; } 3706if ${ac_cv_objext+:} false; then : 3707 $as_echo_n "(cached) " >&6 3708else 3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3710/* end confdefs.h. */ 3711 3712int 3713main () 3714{ 3715 3716 ; 3717 return 0; 3718} 3719_ACEOF 3720rm -f conftest.o conftest.obj 3721if { { ac_try="$ac_compile" 3722case "(($ac_try" in 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3724 *) ac_try_echo=$ac_try;; 3725esac 3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3727$as_echo "$ac_try_echo"; } >&5 3728 (eval "$ac_compile") 2>&5 3729 ac_status=$? 3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3731 test $ac_status = 0; }; then : 3732 for ac_file in conftest.o conftest.obj conftest.*; do 3733 test -f "$ac_file" || continue; 3734 case $ac_file in 3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3736 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3737 break;; 3738 esac 3739done 3740else 3741 $as_echo "$as_me: failed program was:" >&5 3742sed 's/^/| /' conftest.$ac_ext >&5 3743 3744{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3746as_fn_error $? "cannot compute suffix of object files: cannot compile 3747See \`config.log' for more details" "$LINENO" 5; } 3748fi 3749rm -f conftest.$ac_cv_objext conftest.$ac_ext 3750fi 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3752$as_echo "$ac_cv_objext" >&6; } 3753OBJEXT=$ac_cv_objext 3754ac_objext=$OBJEXT 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3756$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3757if ${ac_cv_c_compiler_gnu+:} false; then : 3758 $as_echo_n "(cached) " >&6 3759else 3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3761/* end confdefs.h. */ 3762 3763int 3764main () 3765{ 3766#ifndef __GNUC__ 3767 choke me 3768#endif 3769 3770 ; 3771 return 0; 3772} 3773_ACEOF 3774if ac_fn_c_try_compile "$LINENO"; then : 3775 ac_compiler_gnu=yes 3776else 3777 ac_compiler_gnu=no 3778fi 3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3780ac_cv_c_compiler_gnu=$ac_compiler_gnu 3781 3782fi 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3784$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3785if test $ac_compiler_gnu = yes; then 3786 GCC=yes 3787else 3788 GCC= 3789fi 3790ac_test_CFLAGS=${CFLAGS+set} 3791ac_save_CFLAGS=$CFLAGS 3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3793$as_echo_n "checking whether $CC accepts -g... " >&6; } 3794if ${ac_cv_prog_cc_g+:} false; then : 3795 $as_echo_n "(cached) " >&6 3796else 3797 ac_save_c_werror_flag=$ac_c_werror_flag 3798 ac_c_werror_flag=yes 3799 ac_cv_prog_cc_g=no 3800 CFLAGS="-g" 3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3802/* end confdefs.h. */ 3803 3804int 3805main () 3806{ 3807 3808 ; 3809 return 0; 3810} 3811_ACEOF 3812if ac_fn_c_try_compile "$LINENO"; then : 3813 ac_cv_prog_cc_g=yes 3814else 3815 CFLAGS="" 3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3817/* end confdefs.h. */ 3818 3819int 3820main () 3821{ 3822 3823 ; 3824 return 0; 3825} 3826_ACEOF 3827if ac_fn_c_try_compile "$LINENO"; then : 3828 3829else 3830 ac_c_werror_flag=$ac_save_c_werror_flag 3831 CFLAGS="-g" 3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3833/* end confdefs.h. */ 3834 3835int 3836main () 3837{ 3838 3839 ; 3840 return 0; 3841} 3842_ACEOF 3843if ac_fn_c_try_compile "$LINENO"; then : 3844 ac_cv_prog_cc_g=yes 3845fi 3846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3847fi 3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3849fi 3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3851 ac_c_werror_flag=$ac_save_c_werror_flag 3852fi 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3854$as_echo "$ac_cv_prog_cc_g" >&6; } 3855if test "$ac_test_CFLAGS" = set; then 3856 CFLAGS=$ac_save_CFLAGS 3857elif test $ac_cv_prog_cc_g = yes; then 3858 if test "$GCC" = yes; then 3859 CFLAGS="-g -O2" 3860 else 3861 CFLAGS="-g" 3862 fi 3863else 3864 if test "$GCC" = yes; then 3865 CFLAGS="-O2" 3866 else 3867 CFLAGS= 3868 fi 3869fi 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3871$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3872if ${ac_cv_prog_cc_c89+:} false; then : 3873 $as_echo_n "(cached) " >&6 3874else 3875 ac_cv_prog_cc_c89=no 3876ac_save_CC=$CC 3877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3878/* end confdefs.h. */ 3879#include <stdarg.h> 3880#include <stdio.h> 3881struct stat; 3882/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3883struct buf { int x; }; 3884FILE * (*rcsopen) (struct buf *, struct stat *, int); 3885static char *e (p, i) 3886 char **p; 3887 int i; 3888{ 3889 return p[i]; 3890} 3891static char *f (char * (*g) (char **, int), char **p, ...) 3892{ 3893 char *s; 3894 va_list v; 3895 va_start (v,p); 3896 s = g (p, va_arg (v,int)); 3897 va_end (v); 3898 return s; 3899} 3900 3901/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3902 function prototypes and stuff, but not '\xHH' hex character constants. 3903 These don't provoke an error unfortunately, instead are silently treated 3904 as 'x'. The following induces an error, until -std is added to get 3905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3906 array size at least. It's necessary to write '\x00'==0 to get something 3907 that's true only with -std. */ 3908int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3909 3910/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3911 inside strings and character constants. */ 3912#define FOO(x) 'x' 3913int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3914 3915int test (int i, double x); 3916struct s1 {int (*f) (int a);}; 3917struct s2 {int (*f) (double a);}; 3918int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3919int argc; 3920char **argv; 3921int 3922main () 3923{ 3924return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3925 ; 3926 return 0; 3927} 3928_ACEOF 3929for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3930 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3931do 3932 CC="$ac_save_CC $ac_arg" 3933 if ac_fn_c_try_compile "$LINENO"; then : 3934 ac_cv_prog_cc_c89=$ac_arg 3935fi 3936rm -f core conftest.err conftest.$ac_objext 3937 test "x$ac_cv_prog_cc_c89" != "xno" && break 3938done 3939rm -f conftest.$ac_ext 3940CC=$ac_save_CC 3941 3942fi 3943# AC_CACHE_VAL 3944case "x$ac_cv_prog_cc_c89" in 3945 x) 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3947$as_echo "none needed" >&6; } ;; 3948 xno) 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3950$as_echo "unsupported" >&6; } ;; 3951 *) 3952 CC="$CC $ac_cv_prog_cc_c89" 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3954$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3955esac 3956if test "x$ac_cv_prog_cc_c89" != xno; then : 3957 3958fi 3959 3960ac_ext=c 3961ac_cpp='$CPP $CPPFLAGS' 3962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3964ac_compiler_gnu=$ac_cv_c_compiler_gnu 3965 3966 3967if test "$target" != "$host"; then 3968 if test -n "$USE_CPLUS"; then 3969 for ac_prog in $CXX "${target_alias}-g++" "${target}-g++" 3970do 3971 # Extract the first word of "$ac_prog", so it can be a program name with args. 3972set dummy $ac_prog; ac_word=$2 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3974$as_echo_n "checking for $ac_word... " >&6; } 3975if ${ac_cv_prog_CXX+:} false; then : 3976 $as_echo_n "(cached) " >&6 3977else 3978 if test -n "$CXX"; then 3979 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3980else 3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3982for as_dir in $PATH 3983do 3984 IFS=$as_save_IFS 3985 test -z "$as_dir" && as_dir=. 3986 for ac_exec_ext in '' $ac_executable_extensions; do 3987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3988 ac_cv_prog_CXX="$ac_prog" 3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3990 break 2 3991 fi 3992done 3993 done 3994IFS=$as_save_IFS 3995 3996fi 3997fi 3998CXX=$ac_cv_prog_CXX 3999if test -n "$CXX"; then 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4001$as_echo "$CXX" >&6; } 4002else 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4004$as_echo "no" >&6; } 4005fi 4006 4007 4008 test -n "$CXX" && break 4009done 4010test -n "$CXX" || CXX="echo" 4011 4012 unset ac_cv_prog_CXX 4013 ac_ext=cpp 4014ac_cpp='$CXXCPP $CPPFLAGS' 4015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4018if test -z "$CXX"; then 4019 if test -n "$CCC"; then 4020 CXX=$CCC 4021 else 4022 if test -n "$ac_tool_prefix"; then 4023 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4024 do 4025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4026set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4028$as_echo_n "checking for $ac_word... " >&6; } 4029if ${ac_cv_prog_CXX+:} false; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 if test -n "$CXX"; then 4033 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4034else 4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4036for as_dir in $PATH 4037do 4038 IFS=$as_save_IFS 4039 test -z "$as_dir" && as_dir=. 4040 for ac_exec_ext in '' $ac_executable_extensions; do 4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4042 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4044 break 2 4045 fi 4046done 4047 done 4048IFS=$as_save_IFS 4049 4050fi 4051fi 4052CXX=$ac_cv_prog_CXX 4053if test -n "$CXX"; then 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4055$as_echo "$CXX" >&6; } 4056else 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4058$as_echo "no" >&6; } 4059fi 4060 4061 4062 test -n "$CXX" && break 4063 done 4064fi 4065if test -z "$CXX"; then 4066 ac_ct_CXX=$CXX 4067 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4068do 4069 # Extract the first word of "$ac_prog", so it can be a program name with args. 4070set dummy $ac_prog; ac_word=$2 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4072$as_echo_n "checking for $ac_word... " >&6; } 4073if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4074 $as_echo_n "(cached) " >&6 4075else 4076 if test -n "$ac_ct_CXX"; then 4077 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4078else 4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4080for as_dir in $PATH 4081do 4082 IFS=$as_save_IFS 4083 test -z "$as_dir" && as_dir=. 4084 for ac_exec_ext in '' $ac_executable_extensions; do 4085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4086 ac_cv_prog_ac_ct_CXX="$ac_prog" 4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4088 break 2 4089 fi 4090done 4091 done 4092IFS=$as_save_IFS 4093 4094fi 4095fi 4096ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4097if test -n "$ac_ct_CXX"; then 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4099$as_echo "$ac_ct_CXX" >&6; } 4100else 4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4102$as_echo "no" >&6; } 4103fi 4104 4105 4106 test -n "$ac_ct_CXX" && break 4107done 4108 4109 if test "x$ac_ct_CXX" = x; then 4110 CXX="g++" 4111 else 4112 case $cross_compiling:$ac_tool_warned in 4113yes:) 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4116ac_tool_warned=yes ;; 4117esac 4118 CXX=$ac_ct_CXX 4119 fi 4120fi 4121 4122 fi 4123fi 4124# Provide some information about the compiler. 4125$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4126set X $ac_compile 4127ac_compiler=$2 4128for ac_option in --version -v -V -qversion; do 4129 { { ac_try="$ac_compiler $ac_option >&5" 4130case "(($ac_try" in 4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4132 *) ac_try_echo=$ac_try;; 4133esac 4134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4135$as_echo "$ac_try_echo"; } >&5 4136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4137 ac_status=$? 4138 if test -s conftest.err; then 4139 sed '10a\ 4140... rest of stderr output deleted ... 4141 10q' conftest.err >conftest.er1 4142 cat conftest.er1 >&5 4143 fi 4144 rm -f conftest.er1 conftest.err 4145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4146 test $ac_status = 0; } 4147done 4148 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4150$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4151if ${ac_cv_cxx_compiler_gnu+:} false; then : 4152 $as_echo_n "(cached) " >&6 4153else 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156 4157int 4158main () 4159{ 4160#ifndef __GNUC__ 4161 choke me 4162#endif 4163 4164 ; 4165 return 0; 4166} 4167_ACEOF 4168if ac_fn_cxx_try_compile "$LINENO"; then : 4169 ac_compiler_gnu=yes 4170else 4171 ac_compiler_gnu=no 4172fi 4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4174ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4175 4176fi 4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4178$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4179if test $ac_compiler_gnu = yes; then 4180 GXX=yes 4181else 4182 GXX= 4183fi 4184ac_test_CXXFLAGS=${CXXFLAGS+set} 4185ac_save_CXXFLAGS=$CXXFLAGS 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4187$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4188if ${ac_cv_prog_cxx_g+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4192 ac_cxx_werror_flag=yes 4193 ac_cv_prog_cxx_g=no 4194 CXXFLAGS="-g" 4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196/* end confdefs.h. */ 4197 4198int 4199main () 4200{ 4201 4202 ; 4203 return 0; 4204} 4205_ACEOF 4206if ac_fn_cxx_try_compile "$LINENO"; then : 4207 ac_cv_prog_cxx_g=yes 4208else 4209 CXXFLAGS="" 4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4211/* end confdefs.h. */ 4212 4213int 4214main () 4215{ 4216 4217 ; 4218 return 0; 4219} 4220_ACEOF 4221if ac_fn_cxx_try_compile "$LINENO"; then : 4222 4223else 4224 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4225 CXXFLAGS="-g" 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227/* end confdefs.h. */ 4228 4229int 4230main () 4231{ 4232 4233 ; 4234 return 0; 4235} 4236_ACEOF 4237if ac_fn_cxx_try_compile "$LINENO"; then : 4238 ac_cv_prog_cxx_g=yes 4239fi 4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4241fi 4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4243fi 4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4245 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4248$as_echo "$ac_cv_prog_cxx_g" >&6; } 4249if test "$ac_test_CXXFLAGS" = set; then 4250 CXXFLAGS=$ac_save_CXXFLAGS 4251elif test $ac_cv_prog_cxx_g = yes; then 4252 if test "$GXX" = yes; then 4253 CXXFLAGS="-g -O2" 4254 else 4255 CXXFLAGS="-g" 4256 fi 4257else 4258 if test "$GXX" = yes; then 4259 CXXFLAGS="-O2" 4260 else 4261 CXXFLAGS= 4262 fi 4263fi 4264ac_ext=c 4265ac_cpp='$CPP $CPPFLAGS' 4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4268ac_compiler_gnu=$ac_cv_c_compiler_gnu 4269 4270 fi 4271 4272 case "$build:$target" in 4273 powerpc-apple-darwin8*:i?86-apple-darwin*|*:arm*-apple-darwin*) 4274 CFLAGS=$_SAVE_CFLAGS 4275 CXXFLAGS=$_SAVE_CXXFLAGS 4276 ;; 4277 esac 4278 4279 for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib" 4280do 4281 # Extract the first word of "$ac_prog", so it can be a program name with args. 4282set dummy $ac_prog; ac_word=$2 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4284$as_echo_n "checking for $ac_word... " >&6; } 4285if ${ac_cv_prog_RANLIB+:} false; then : 4286 $as_echo_n "(cached) " >&6 4287else 4288 if test -n "$RANLIB"; then 4289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4290else 4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4292for as_dir in $PATH 4293do 4294 IFS=$as_save_IFS 4295 test -z "$as_dir" && as_dir=. 4296 for ac_exec_ext in '' $ac_executable_extensions; do 4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4298 ac_cv_prog_RANLIB="$ac_prog" 4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4300 break 2 4301 fi 4302done 4303 done 4304IFS=$as_save_IFS 4305 4306fi 4307fi 4308RANLIB=$ac_cv_prog_RANLIB 4309if test -n "$RANLIB"; then 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4311$as_echo "$RANLIB" >&6; } 4312else 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4314$as_echo "no" >&6; } 4315fi 4316 4317 4318 test -n "$RANLIB" && break 4319done 4320test -n "$RANLIB" || RANLIB="echo" 4321 4322 for ac_prog in $AR "${target_alias}-ar" "${target}-ar" 4323do 4324 # Extract the first word of "$ac_prog", so it can be a program name with args. 4325set dummy $ac_prog; ac_word=$2 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4327$as_echo_n "checking for $ac_word... " >&6; } 4328if ${ac_cv_prog_AR+:} false; then : 4329 $as_echo_n "(cached) " >&6 4330else 4331 if test -n "$AR"; then 4332 ac_cv_prog_AR="$AR" # Let the user override the test. 4333else 4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4335for as_dir in $PATH 4336do 4337 IFS=$as_save_IFS 4338 test -z "$as_dir" && as_dir=. 4339 for ac_exec_ext in '' $ac_executable_extensions; do 4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4341 ac_cv_prog_AR="$ac_prog" 4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4343 break 2 4344 fi 4345done 4346 done 4347IFS=$as_save_IFS 4348 4349fi 4350fi 4351AR=$ac_cv_prog_AR 4352if test -n "$AR"; then 4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4354$as_echo "$AR" >&6; } 4355else 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4357$as_echo "no" >&6; } 4358fi 4359 4360 4361 test -n "$AR" && break 4362done 4363test -n "$AR" || AR="echo" 4364 4365 for ac_prog in $AS "${target_alias}-as" "${target}-as" 4366do 4367 # Extract the first word of "$ac_prog", so it can be a program name with args. 4368set dummy $ac_prog; ac_word=$2 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4370$as_echo_n "checking for $ac_word... " >&6; } 4371if ${ac_cv_prog_AS+:} false; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 if test -n "$AS"; then 4375 ac_cv_prog_AS="$AS" # Let the user override the test. 4376else 4377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4378for as_dir in $PATH 4379do 4380 IFS=$as_save_IFS 4381 test -z "$as_dir" && as_dir=. 4382 for ac_exec_ext in '' $ac_executable_extensions; do 4383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4384 ac_cv_prog_AS="$ac_prog" 4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4386 break 2 4387 fi 4388done 4389 done 4390IFS=$as_save_IFS 4391 4392fi 4393fi 4394AS=$ac_cv_prog_AS 4395if test -n "$AS"; then 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4397$as_echo "$AS" >&6; } 4398else 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4400$as_echo "no" >&6; } 4401fi 4402 4403 4404 test -n "$AS" && break 4405done 4406test -n "$AS" || AS="echo" 4407 4408 for ac_prog in $LD "${target_alias}-ld" "${target}-ld" 4409do 4410 # Extract the first word of "$ac_prog", so it can be a program name with args. 4411set dummy $ac_prog; ac_word=$2 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4413$as_echo_n "checking for $ac_word... " >&6; } 4414if ${ac_cv_prog_LD+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416else 4417 if test -n "$LD"; then 4418 ac_cv_prog_LD="$LD" # Let the user override the test. 4419else 4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421for as_dir in $PATH 4422do 4423 IFS=$as_save_IFS 4424 test -z "$as_dir" && as_dir=. 4425 for ac_exec_ext in '' $ac_executable_extensions; do 4426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4427 ac_cv_prog_LD="$ac_prog" 4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4429 break 2 4430 fi 4431done 4432 done 4433IFS=$as_save_IFS 4434 4435fi 4436fi 4437LD=$ac_cv_prog_LD 4438if test -n "$LD"; then 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4440$as_echo "$LD" >&6; } 4441else 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4443$as_echo "no" >&6; } 4444fi 4445 4446 4447 test -n "$LD" && break 4448done 4449test -n "$LD" || LD="echo" 4450 4451 for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip" 4452do 4453 # Extract the first word of "$ac_prog", so it can be a program name with args. 4454set dummy $ac_prog; ac_word=$2 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4456$as_echo_n "checking for $ac_word... " >&6; } 4457if ${ac_cv_prog_STRIP+:} false; then : 4458 $as_echo_n "(cached) " >&6 4459else 4460 if test -n "$STRIP"; then 4461 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4462else 4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4464for as_dir in $PATH 4465do 4466 IFS=$as_save_IFS 4467 test -z "$as_dir" && as_dir=. 4468 for ac_exec_ext in '' $ac_executable_extensions; do 4469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4470 ac_cv_prog_STRIP="$ac_prog" 4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4472 break 2 4473 fi 4474done 4475 done 4476IFS=$as_save_IFS 4477 4478fi 4479fi 4480STRIP=$ac_cv_prog_STRIP 4481if test -n "$STRIP"; then 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4483$as_echo "$STRIP" >&6; } 4484else 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4486$as_echo "no" >&6; } 4487fi 4488 4489 4490 test -n "$STRIP" && break 4491done 4492test -n "$STRIP" || STRIP="echo" 4493 4494 for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres" 4495do 4496 # Extract the first word of "$ac_prog", so it can be a program name with args. 4497set dummy $ac_prog; ac_word=$2 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4499$as_echo_n "checking for $ac_word... " >&6; } 4500if ${ac_cv_prog_WINDRES+:} false; then : 4501 $as_echo_n "(cached) " >&6 4502else 4503 if test -n "$WINDRES"; then 4504 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 4505else 4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4507for as_dir in $PATH 4508do 4509 IFS=$as_save_IFS 4510 test -z "$as_dir" && as_dir=. 4511 for ac_exec_ext in '' $ac_executable_extensions; do 4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4513 ac_cv_prog_WINDRES="$ac_prog" 4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4515 break 2 4516 fi 4517done 4518 done 4519IFS=$as_save_IFS 4520 4521fi 4522fi 4523WINDRES=$ac_cv_prog_WINDRES 4524if test -n "$WINDRES"; then 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 4526$as_echo "$WINDRES" >&6; } 4527else 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4529$as_echo "no" >&6; } 4530fi 4531 4532 4533 test -n "$WINDRES" && break 4534done 4535test -n "$WINDRES" || WINDRES="echo" 4536 4537 4538 _SAVE_CC="$CC" 4539 _SAVE_CFLAGS="$CFLAGS" 4540 _SAVE_LDFLAGS="$LDFLAGS" 4541 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $host compiler" >&5 4543$as_echo_n "checking for $host compiler... " >&6; } 4544 for ac_prog in $HOST_CC gcc cc /usr/ucb/cc 4545do 4546 # Extract the first word of "$ac_prog", so it can be a program name with args. 4547set dummy $ac_prog; ac_word=$2 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4549$as_echo_n "checking for $ac_word... " >&6; } 4550if ${ac_cv_prog_HOST_CC+:} false; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 if test -n "$HOST_CC"; then 4554 ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test. 4555else 4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4557for as_dir in $PATH 4558do 4559 IFS=$as_save_IFS 4560 test -z "$as_dir" && as_dir=. 4561 for ac_exec_ext in '' $ac_executable_extensions; do 4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4563 ac_cv_prog_HOST_CC="$ac_prog" 4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4565 break 2 4566 fi 4567done 4568 done 4569IFS=$as_save_IFS 4570 4571fi 4572fi 4573HOST_CC=$ac_cv_prog_HOST_CC 4574if test -n "$HOST_CC"; then 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5 4576$as_echo "$HOST_CC" >&6; } 4577else 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4579$as_echo "no" >&6; } 4580fi 4581 4582 4583 test -n "$HOST_CC" && break 4584done 4585test -n "$HOST_CC" || HOST_CC="""" 4586 4587 if test -z "$HOST_CC"; then 4588 as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5 4589 fi 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5 4591$as_echo "$HOST_CC" >&6; } 4592 4593 CC="$HOST_CC" 4594 CFLAGS="$HOST_CFLAGS" 4595 LDFLAGS="$HOST_LDFLAGS" 4596 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5 4598$as_echo_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works... " >&6; } 4599 4600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4601/* end confdefs.h. */ 4602 4603int 4604main () 4605{ 4606return 0; 4607 ; 4608 return 0; 4609} 4610_ACEOF 4611if ac_fn_c_try_compile "$LINENO"; then : 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4613$as_echo "yes" >&6; } 4614else 4615 as_fn_error $? "installation or configuration problem: $host compiler $HOST_CC cannot create executables." "$LINENO" 5 4616fi 4617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4618 4619 CC=$_SAVE_CC 4620 CFLAGS=$_SAVE_CFLAGS 4621 LDFLAGS=$_SAVE_LDFLAGS 4622else 4623 if test -n "$USE_CPLUS"; then 4624 if test "$CC" = "cl" -a -z "$CXX"; then 4625 CXX=$CC 4626 else 4627 ac_ext=cpp 4628ac_cpp='$CXXCPP $CPPFLAGS' 4629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4632if test -z "$CXX"; then 4633 if test -n "$CCC"; then 4634 CXX=$CCC 4635 else 4636 if test -n "$ac_tool_prefix"; then 4637 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4638 do 4639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4640set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4642$as_echo_n "checking for $ac_word... " >&6; } 4643if ${ac_cv_prog_CXX+:} false; then : 4644 $as_echo_n "(cached) " >&6 4645else 4646 if test -n "$CXX"; then 4647 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4648else 4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4650for as_dir in $PATH 4651do 4652 IFS=$as_save_IFS 4653 test -z "$as_dir" && as_dir=. 4654 for ac_exec_ext in '' $ac_executable_extensions; do 4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4656 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4658 break 2 4659 fi 4660done 4661 done 4662IFS=$as_save_IFS 4663 4664fi 4665fi 4666CXX=$ac_cv_prog_CXX 4667if test -n "$CXX"; then 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4669$as_echo "$CXX" >&6; } 4670else 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4672$as_echo "no" >&6; } 4673fi 4674 4675 4676 test -n "$CXX" && break 4677 done 4678fi 4679if test -z "$CXX"; then 4680 ac_ct_CXX=$CXX 4681 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4682do 4683 # Extract the first word of "$ac_prog", so it can be a program name with args. 4684set dummy $ac_prog; ac_word=$2 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4686$as_echo_n "checking for $ac_word... " >&6; } 4687if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4688 $as_echo_n "(cached) " >&6 4689else 4690 if test -n "$ac_ct_CXX"; then 4691 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4692else 4693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4694for as_dir in $PATH 4695do 4696 IFS=$as_save_IFS 4697 test -z "$as_dir" && as_dir=. 4698 for ac_exec_ext in '' $ac_executable_extensions; do 4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4700 ac_cv_prog_ac_ct_CXX="$ac_prog" 4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4702 break 2 4703 fi 4704done 4705 done 4706IFS=$as_save_IFS 4707 4708fi 4709fi 4710ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4711if test -n "$ac_ct_CXX"; then 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4713$as_echo "$ac_ct_CXX" >&6; } 4714else 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4716$as_echo "no" >&6; } 4717fi 4718 4719 4720 test -n "$ac_ct_CXX" && break 4721done 4722 4723 if test "x$ac_ct_CXX" = x; then 4724 CXX="g++" 4725 else 4726 case $cross_compiling:$ac_tool_warned in 4727yes:) 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4730ac_tool_warned=yes ;; 4731esac 4732 CXX=$ac_ct_CXX 4733 fi 4734fi 4735 4736 fi 4737fi 4738# Provide some information about the compiler. 4739$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4740set X $ac_compile 4741ac_compiler=$2 4742for ac_option in --version -v -V -qversion; do 4743 { { ac_try="$ac_compiler $ac_option >&5" 4744case "(($ac_try" in 4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4746 *) ac_try_echo=$ac_try;; 4747esac 4748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4749$as_echo "$ac_try_echo"; } >&5 4750 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4751 ac_status=$? 4752 if test -s conftest.err; then 4753 sed '10a\ 4754... rest of stderr output deleted ... 4755 10q' conftest.err >conftest.er1 4756 cat conftest.er1 >&5 4757 fi 4758 rm -f conftest.er1 conftest.err 4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4760 test $ac_status = 0; } 4761done 4762 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4764$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4765if ${ac_cv_cxx_compiler_gnu+:} false; then : 4766 $as_echo_n "(cached) " >&6 4767else 4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4769/* end confdefs.h. */ 4770 4771int 4772main () 4773{ 4774#ifndef __GNUC__ 4775 choke me 4776#endif 4777 4778 ; 4779 return 0; 4780} 4781_ACEOF 4782if ac_fn_cxx_try_compile "$LINENO"; then : 4783 ac_compiler_gnu=yes 4784else 4785 ac_compiler_gnu=no 4786fi 4787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4788ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4789 4790fi 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4792$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4793if test $ac_compiler_gnu = yes; then 4794 GXX=yes 4795else 4796 GXX= 4797fi 4798ac_test_CXXFLAGS=${CXXFLAGS+set} 4799ac_save_CXXFLAGS=$CXXFLAGS 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4801$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4802if ${ac_cv_prog_cxx_g+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4806 ac_cxx_werror_flag=yes 4807 ac_cv_prog_cxx_g=no 4808 CXXFLAGS="-g" 4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4810/* end confdefs.h. */ 4811 4812int 4813main () 4814{ 4815 4816 ; 4817 return 0; 4818} 4819_ACEOF 4820if ac_fn_cxx_try_compile "$LINENO"; then : 4821 ac_cv_prog_cxx_g=yes 4822else 4823 CXXFLAGS="" 4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4825/* end confdefs.h. */ 4826 4827int 4828main () 4829{ 4830 4831 ; 4832 return 0; 4833} 4834_ACEOF 4835if ac_fn_cxx_try_compile "$LINENO"; then : 4836 4837else 4838 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4839 CXXFLAGS="-g" 4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4841/* end confdefs.h. */ 4842 4843int 4844main () 4845{ 4846 4847 ; 4848 return 0; 4849} 4850_ACEOF 4851if ac_fn_cxx_try_compile "$LINENO"; then : 4852 ac_cv_prog_cxx_g=yes 4853fi 4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4855fi 4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4857fi 4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4859 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4860fi 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4862$as_echo "$ac_cv_prog_cxx_g" >&6; } 4863if test "$ac_test_CXXFLAGS" = set; then 4864 CXXFLAGS=$ac_save_CXXFLAGS 4865elif test $ac_cv_prog_cxx_g = yes; then 4866 if test "$GXX" = yes; then 4867 CXXFLAGS="-g -O2" 4868 else 4869 CXXFLAGS="-g" 4870 fi 4871else 4872 if test "$GXX" = yes; then 4873 CXXFLAGS="-O2" 4874 else 4875 CXXFLAGS= 4876 fi 4877fi 4878ac_ext=c 4879ac_cpp='$CPP $CPPFLAGS' 4880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4882ac_compiler_gnu=$ac_cv_c_compiler_gnu 4883 4884 fi 4885 fi 4886 if test -n "$ac_tool_prefix"; then 4887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4888set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4890$as_echo_n "checking for $ac_word... " >&6; } 4891if ${ac_cv_prog_RANLIB+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 if test -n "$RANLIB"; then 4895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4896else 4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4898for as_dir in $PATH 4899do 4900 IFS=$as_save_IFS 4901 test -z "$as_dir" && as_dir=. 4902 for ac_exec_ext in '' $ac_executable_extensions; do 4903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4906 break 2 4907 fi 4908done 4909 done 4910IFS=$as_save_IFS 4911 4912fi 4913fi 4914RANLIB=$ac_cv_prog_RANLIB 4915if test -n "$RANLIB"; then 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4917$as_echo "$RANLIB" >&6; } 4918else 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4920$as_echo "no" >&6; } 4921fi 4922 4923 4924fi 4925if test -z "$ac_cv_prog_RANLIB"; then 4926 ac_ct_RANLIB=$RANLIB 4927 # Extract the first word of "ranlib", so it can be a program name with args. 4928set dummy ranlib; ac_word=$2 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4930$as_echo_n "checking for $ac_word... " >&6; } 4931if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4932 $as_echo_n "(cached) " >&6 4933else 4934 if test -n "$ac_ct_RANLIB"; then 4935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4936else 4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4938for as_dir in $PATH 4939do 4940 IFS=$as_save_IFS 4941 test -z "$as_dir" && as_dir=. 4942 for ac_exec_ext in '' $ac_executable_extensions; do 4943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4944 ac_cv_prog_ac_ct_RANLIB="ranlib" 4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4946 break 2 4947 fi 4948done 4949 done 4950IFS=$as_save_IFS 4951 4952fi 4953fi 4954ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4955if test -n "$ac_ct_RANLIB"; then 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4957$as_echo "$ac_ct_RANLIB" >&6; } 4958else 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4960$as_echo "no" >&6; } 4961fi 4962 4963 if test "x$ac_ct_RANLIB" = x; then 4964 RANLIB=":" 4965 else 4966 case $cross_compiling:$ac_tool_warned in 4967yes:) 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4970ac_tool_warned=yes ;; 4971esac 4972 RANLIB=$ac_ct_RANLIB 4973 fi 4974else 4975 RANLIB="$ac_cv_prog_RANLIB" 4976fi 4977 4978 for ac_prog in as 4979do 4980 # Extract the first word of "$ac_prog", so it can be a program name with args. 4981set dummy $ac_prog; ac_word=$2 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4983$as_echo_n "checking for $ac_word... " >&6; } 4984if ${ac_cv_path_AS+:} false; then : 4985 $as_echo_n "(cached) " >&6 4986else 4987 case $AS in 4988 [\\/]* | ?:[\\/]*) 4989 ac_cv_path_AS="$AS" # Let the user override the test with a path. 4990 ;; 4991 *) 4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4993for as_dir in $PATH 4994do 4995 IFS=$as_save_IFS 4996 test -z "$as_dir" && as_dir=. 4997 for ac_exec_ext in '' $ac_executable_extensions; do 4998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4999 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5001 break 2 5002 fi 5003done 5004 done 5005IFS=$as_save_IFS 5006 5007 ;; 5008esac 5009fi 5010AS=$ac_cv_path_AS 5011if test -n "$AS"; then 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5013$as_echo "$AS" >&6; } 5014else 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5016$as_echo "no" >&6; } 5017fi 5018 5019 5020 test -n "$AS" && break 5021done 5022test -n "$AS" || AS="$CC" 5023 5024 for ac_prog in ar 5025do 5026 # Extract the first word of "$ac_prog", so it can be a program name with args. 5027set dummy $ac_prog; ac_word=$2 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5029$as_echo_n "checking for $ac_word... " >&6; } 5030if ${ac_cv_path_AR+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032else 5033 case $AR in 5034 [\\/]* | ?:[\\/]*) 5035 ac_cv_path_AR="$AR" # Let the user override the test with a path. 5036 ;; 5037 *) 5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5039for as_dir in $PATH 5040do 5041 IFS=$as_save_IFS 5042 test -z "$as_dir" && as_dir=. 5043 for ac_exec_ext in '' $ac_executable_extensions; do 5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5045 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5047 break 2 5048 fi 5049done 5050 done 5051IFS=$as_save_IFS 5052 5053 ;; 5054esac 5055fi 5056AR=$ac_cv_path_AR 5057if test -n "$AR"; then 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5059$as_echo "$AR" >&6; } 5060else 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5062$as_echo "no" >&6; } 5063fi 5064 5065 5066 test -n "$AR" && break 5067done 5068test -n "$AR" || AR="echo not_ar" 5069 5070 for ac_prog in ld link 5071do 5072 # Extract the first word of "$ac_prog", so it can be a program name with args. 5073set dummy $ac_prog; ac_word=$2 5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5075$as_echo_n "checking for $ac_word... " >&6; } 5076if ${ac_cv_path_LD+:} false; then : 5077 $as_echo_n "(cached) " >&6 5078else 5079 case $LD in 5080 [\\/]* | ?:[\\/]*) 5081 ac_cv_path_LD="$LD" # Let the user override the test with a path. 5082 ;; 5083 *) 5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5085for as_dir in $PATH 5086do 5087 IFS=$as_save_IFS 5088 test -z "$as_dir" && as_dir=. 5089 for ac_exec_ext in '' $ac_executable_extensions; do 5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5091 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" 5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5093 break 2 5094 fi 5095done 5096 done 5097IFS=$as_save_IFS 5098 5099 ;; 5100esac 5101fi 5102LD=$ac_cv_path_LD 5103if test -n "$LD"; then 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5105$as_echo "$LD" >&6; } 5106else 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5108$as_echo "no" >&6; } 5109fi 5110 5111 5112 test -n "$LD" && break 5113done 5114test -n "$LD" || LD="echo not_ld" 5115 5116 for ac_prog in strip 5117do 5118 # Extract the first word of "$ac_prog", so it can be a program name with args. 5119set dummy $ac_prog; ac_word=$2 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5121$as_echo_n "checking for $ac_word... " >&6; } 5122if ${ac_cv_path_STRIP+:} false; then : 5123 $as_echo_n "(cached) " >&6 5124else 5125 case $STRIP in 5126 [\\/]* | ?:[\\/]*) 5127 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 5128 ;; 5129 *) 5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5131for as_dir in $PATH 5132do 5133 IFS=$as_save_IFS 5134 test -z "$as_dir" && as_dir=. 5135 for ac_exec_ext in '' $ac_executable_extensions; do 5136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5137 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5139 break 2 5140 fi 5141done 5142 done 5143IFS=$as_save_IFS 5144 5145 ;; 5146esac 5147fi 5148STRIP=$ac_cv_path_STRIP 5149if test -n "$STRIP"; then 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5151$as_echo "$STRIP" >&6; } 5152else 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5154$as_echo "no" >&6; } 5155fi 5156 5157 5158 test -n "$STRIP" && break 5159done 5160test -n "$STRIP" || STRIP="echo not_strip" 5161 5162 for ac_prog in windres 5163do 5164 # Extract the first word of "$ac_prog", so it can be a program name with args. 5165set dummy $ac_prog; ac_word=$2 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5167$as_echo_n "checking for $ac_word... " >&6; } 5168if ${ac_cv_path_WINDRES+:} false; then : 5169 $as_echo_n "(cached) " >&6 5170else 5171 case $WINDRES in 5172 [\\/]* | ?:[\\/]*) 5173 ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path. 5174 ;; 5175 *) 5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5177for as_dir in $PATH 5178do 5179 IFS=$as_save_IFS 5180 test -z "$as_dir" && as_dir=. 5181 for ac_exec_ext in '' $ac_executable_extensions; do 5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5183 ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext" 5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5185 break 2 5186 fi 5187done 5188 done 5189IFS=$as_save_IFS 5190 5191 ;; 5192esac 5193fi 5194WINDRES=$ac_cv_path_WINDRES 5195if test -n "$WINDRES"; then 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 5197$as_echo "$WINDRES" >&6; } 5198else 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5200$as_echo "no" >&6; } 5201fi 5202 5203 5204 test -n "$WINDRES" && break 5205done 5206test -n "$WINDRES" || WINDRES="echo not_windres" 5207 5208 if test -z "$HOST_CC"; then 5209 HOST_CC="$CC" 5210 fi 5211 if test -z "$HOST_CFLAGS"; then 5212 HOST_CFLAGS="$CFLAGS" 5213 fi 5214fi 5215 5216ac_ext=c 5217ac_cpp='$CPP $CPPFLAGS' 5218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5220ac_compiler_gnu=$ac_cv_c_compiler_gnu 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5222$as_echo_n "checking how to run the C preprocessor... " >&6; } 5223# On Suns, sometimes $CPP names a directory. 5224if test -n "$CPP" && test -d "$CPP"; then 5225 CPP= 5226fi 5227if test -z "$CPP"; then 5228 if ${ac_cv_prog_CPP+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 # Double quotes because CPP needs to be expanded 5232 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5233 do 5234 ac_preproc_ok=false 5235for ac_c_preproc_warn_flag in '' yes 5236do 5237 # Use a header file that comes with gcc, so configuring glibc 5238 # with a fresh cross-compiler works. 5239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5240 # <limits.h> exists even on freestanding compilers. 5241 # On the NeXT, cc -E runs the code through the compiler's parser, 5242 # not just through cpp. "Syntax error" is here to catch this case. 5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244/* end confdefs.h. */ 5245#ifdef __STDC__ 5246# include <limits.h> 5247#else 5248# include <assert.h> 5249#endif 5250 Syntax error 5251_ACEOF 5252if ac_fn_c_try_cpp "$LINENO"; then : 5253 5254else 5255 # Broken: fails on valid input. 5256continue 5257fi 5258rm -f conftest.err conftest.i conftest.$ac_ext 5259 5260 # OK, works on sane cases. Now check whether nonexistent headers 5261 # can be detected and how. 5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5263/* end confdefs.h. */ 5264#include <ac_nonexistent.h> 5265_ACEOF 5266if ac_fn_c_try_cpp "$LINENO"; then : 5267 # Broken: success on invalid input. 5268continue 5269else 5270 # Passes both tests. 5271ac_preproc_ok=: 5272break 5273fi 5274rm -f conftest.err conftest.i conftest.$ac_ext 5275 5276done 5277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5278rm -f conftest.i conftest.err conftest.$ac_ext 5279if $ac_preproc_ok; then : 5280 break 5281fi 5282 5283 done 5284 ac_cv_prog_CPP=$CPP 5285 5286fi 5287 CPP=$ac_cv_prog_CPP 5288else 5289 ac_cv_prog_CPP=$CPP 5290fi 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5292$as_echo "$CPP" >&6; } 5293ac_preproc_ok=false 5294for ac_c_preproc_warn_flag in '' yes 5295do 5296 # Use a header file that comes with gcc, so configuring glibc 5297 # with a fresh cross-compiler works. 5298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5299 # <limits.h> exists even on freestanding compilers. 5300 # On the NeXT, cc -E runs the code through the compiler's parser, 5301 # not just through cpp. "Syntax error" is here to catch this case. 5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5303/* end confdefs.h. */ 5304#ifdef __STDC__ 5305# include <limits.h> 5306#else 5307# include <assert.h> 5308#endif 5309 Syntax error 5310_ACEOF 5311if ac_fn_c_try_cpp "$LINENO"; then : 5312 5313else 5314 # Broken: fails on valid input. 5315continue 5316fi 5317rm -f conftest.err conftest.i conftest.$ac_ext 5318 5319 # OK, works on sane cases. Now check whether nonexistent headers 5320 # can be detected and how. 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5322/* end confdefs.h. */ 5323#include <ac_nonexistent.h> 5324_ACEOF 5325if ac_fn_c_try_cpp "$LINENO"; then : 5326 # Broken: success on invalid input. 5327continue 5328else 5329 # Passes both tests. 5330ac_preproc_ok=: 5331break 5332fi 5333rm -f conftest.err conftest.i conftest.$ac_ext 5334 5335done 5336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5337rm -f conftest.i conftest.err conftest.$ac_ext 5338if $ac_preproc_ok; then : 5339 5340else 5341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5343as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5344See \`config.log' for more details" "$LINENO" 5; } 5345fi 5346 5347ac_ext=c 5348ac_cpp='$CPP $CPPFLAGS' 5349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5351ac_compiler_gnu=$ac_cv_c_compiler_gnu 5352 5353 5354if test "$GCC" = "yes"; then 5355 GNU_CC=1 5356fi 5357if test "$GXX" = "yes"; then 5358 GNU_CXX=1 5359fi 5360if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then 5361 GNU_AS=1 5362fi 5363rm -f a.out 5364 5365case "$build:$target" in 5366 i?86-apple-darwin*:powerpc-apple-darwin*) 5367 cross_compiling=yes 5368 ;; 5369esac 5370 5371if test "$cross_compiling" = "yes"; then 5372 CROSS_COMPILE=1 5373else 5374 CROSS_COMPILE= 5375fi 5376 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pipe support" >&5 5378$as_echo_n "checking for gcc -pipe support... " >&6; } 5379if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then 5380 echo '#include <stdio.h>' > dummy-hello.c 5381 echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c 5382 ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5 5383 cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5 5384 if test $? = 0; then 5385 _res_as_stdin="yes" 5386 else 5387 _res_as_stdin="no" 5388 fi 5389 if test "$_res_as_stdin" = "yes"; then 5390 _SAVE_CFLAGS=$CFLAGS 5391 CFLAGS="$CFLAGS -pipe" 5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5393/* end confdefs.h. */ 5394 #include <stdio.h> 5395int 5396main () 5397{ 5398printf("Hello World\n"); 5399 ; 5400 return 0; 5401} 5402_ACEOF 5403if ac_fn_c_try_compile "$LINENO"; then : 5404 _res_gcc_pipe="yes" 5405else 5406 _res_gcc_pipe="no" 5407fi 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5409 CFLAGS=$_SAVE_CFLAGS 5410 fi 5411 if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then 5412 _res="yes"; 5413 CFLAGS="$CFLAGS -pipe" 5414 CXXFLAGS="$CXXFLAGS -pipe" 5415 else 5416 _res="no" 5417 fi 5418 rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5 5420$as_echo "$_res" >&6; } 5421else 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423$as_echo "no" >&6; } 5424fi 5425 5426 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pragma diagnostic" >&5 5428$as_echo_n "checking for pragma diagnostic... " >&6; } 5429if test "$GNU_CC" = "1"; then 5430 cat >dummy-hello.c <<EOF 5431#ifdef _PR_HAS_PRAGMA_DIAGNOSTIC 5432#pragma GCC diagnostic push 5433#pragma GCC diagnostic ignored "-Wunused-but-set-variable" 5434#endif 5435int main() { 5436 char *dummy = ""; 5437 return 0; 5438} 5439EOF 5440 ${CC} -Werror=unused-but-set-variable -S dummy-hello.c -o dummy-hello.s 2>&5 5441 if test $? != 0; then 5442 ${CC} -Werror=unused-but-set-variable -D_PR_HAS_PRAGMA_DIAGNOSTIC -S dummy-hello.c -o dummy-hello.s 2>&5 5443 if test $? = 0; then 5444 CFLAGS="$CFLAGS -D_PR_HAS_PRAGMA_DIAGNOSTIC=1" 5445 _res=yes 5446 else 5447 _res=no 5448 fi 5449 else 5450 _res=no 5451 fi 5452 rm -f dummy-hello.c dummy-hello.s 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5 5454$as_echo "$_res" >&6; } 5455else 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5457$as_echo "no" >&6; } 5458fi 5459 5460 5461_SAVE_CFLAGS="$CFLAGS" 5462CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction" 5463 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fprofile-generate" >&5 5465$as_echo_n "checking whether C compiler supports -fprofile-generate... " >&6; } 5466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467/* end confdefs.h. */ 5468 5469int 5470main () 5471{ 5472return 0; 5473 ; 5474 return 0; 5475} 5476_ACEOF 5477if ac_fn_c_try_compile "$LINENO"; then : 5478 PROFILE_GEN_CFLAGS="-fprofile-generate" 5479 result="yes" 5480else 5481 result="no" 5482fi 5483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 5485$as_echo "$result" >&6; } 5486 5487if test $result = "yes"; then 5488 PROFILE_GEN_LDFLAGS="-fprofile-generate" 5489 PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch" 5490 PROFILE_USE_LDFLAGS="-fprofile-use" 5491fi 5492 5493CFLAGS="$_SAVE_CFLAGS" 5494 5495if test "$GNU_CC"; then 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility(hidden) attribute" >&5 5497$as_echo_n "checking for visibility(hidden) attribute... " >&6; } 5498if ${ac_cv_visibility_hidden+:} false; then : 5499 $as_echo_n "(cached) " >&6 5500else 5501 cat > conftest.c <<EOF 5502 int foo __attribute__ ((visibility ("hidden"))) = 1; 5503EOF 5504 ac_cv_visibility_hidden=no 5505 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then 5506 if grep '\.hidden.*foo' conftest.s >/dev/null; then 5507 ac_cv_visibility_hidden=yes 5508 fi 5509 fi 5510 rm -f conftest.cs 5511 5512fi 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_hidden" >&5 5514$as_echo "$ac_cv_visibility_hidden" >&6; } 5515 if test "$ac_cv_visibility_hidden" = "yes"; then 5516 $as_echo "#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1" >>confdefs.h 5517 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility pragma support" >&5 5519$as_echo_n "checking for visibility pragma support... " >&6; } 5520if ${ac_cv_visibility_pragma+:} false; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 cat > conftest.c <<EOF 5524#pragma GCC visibility push(hidden) 5525 int foo_hidden = 1; 5526#pragma GCC visibility push(default) 5527 int foo_default = 1; 5528EOF 5529 ac_cv_visibility_pragma=no 5530 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then 5531 if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then 5532 if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then 5533 ac_cv_visibility_pragma=yes 5534 fi 5535 fi 5536 fi 5537 rm -f conftest.cs 5538 5539fi 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_pragma" >&5 5541$as_echo "$ac_cv_visibility_pragma" >&6; } 5542 if test "$ac_cv_visibility_pragma" = "yes"; then 5543 $as_echo "#define HAVE_VISIBILITY_PRAGMA 1" >>confdefs.h 5544 5545 # To work around a build problem on Linux x86-64 (Bugzilla bug 5546 # 293438), we use the -fvisibility=hidden flag. This flag is less 5547 # optimal than #pragma GCC visibility push(hidden) because the flag 5548 # assumes that symbols defined outside the current source file have 5549 # the default visibility. This has the advantage that we don't need 5550 # to wrap system header files, but has the disadvantage that calls 5551 # to hidden symbols defined in other source files cannot be 5552 # optimized by the compiler. The -fvisibility=hidden flag does 5553 # hide and export symbols correctly. 5554 #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h' 5555 #WRAP_SYSTEM_INCLUDES=1 5556 VISIBILITY_FLAGS="-fvisibility=hidden" 5557 WRAP_SYSTEM_INCLUDES= 5558 fi 5559 fi 5560fi # GNU_CC 5561 5562fi # SKIP_COMPILER_CHECKS 5563 5564if test -z "$SKIP_PATH_CHECKS"; then 5565 for ac_prog in perl5 perl 5566do 5567 # Extract the first word of "$ac_prog", so it can be a program name with args. 5568set dummy $ac_prog; ac_word=$2 5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5570$as_echo_n "checking for $ac_word... " >&6; } 5571if ${ac_cv_path_PERL+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 case $PERL in 5575 [\\/]* | ?:[\\/]*) 5576 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 5577 ;; 5578 *) 5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5580for as_dir in $PATH 5581do 5582 IFS=$as_save_IFS 5583 test -z "$as_dir" && as_dir=. 5584 for ac_exec_ext in '' $ac_executable_extensions; do 5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5586 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5588 break 2 5589 fi 5590done 5591 done 5592IFS=$as_save_IFS 5593 5594 ;; 5595esac 5596fi 5597PERL=$ac_cv_path_PERL 5598if test -n "$PERL"; then 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 5600$as_echo "$PERL" >&6; } 5601else 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5603$as_echo "no" >&6; } 5604fi 5605 5606 5607 test -n "$PERL" && break 5608done 5609test -n "$PERL" || PERL="echo not_perl" 5610 5611elif test -z "$PERL"; then 5612 PERL=perl 5613fi 5614 5615OBJ_SUFFIX=o 5616LIB_SUFFIX=a 5617DLL_SUFFIX=so 5618ASM_SUFFIX=s 5619MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@' 5620PR_MD_ASFILES= 5621PR_MD_CSRCS= 5622PR_MD_ARCH_DIR=unix 5623AR_FLAGS='cr $@' 5624AS='$(CC)' 5625ASFLAGS='$(CFLAGS)' 5626 5627if test -n "$CROSS_COMPILE"; then 5628 OS_ARCH=`echo $target_os | sed -e 's|/|_|g'` 5629 OS_RELEASE= 5630 OS_TEST="${target_cpu}" 5631 case "${target_os}" in 5632 linux*) OS_ARCH=Linux ;; 5633 solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;; 5634 mingw*) OS_ARCH=WINNT CPU_ARCH=x86 ;; 5635 darwin*) OS_ARCH=Darwin ;; 5636 riscos*) OS_ARCH=RISCOS ;; 5637 esac 5638else 5639 OS_ARCH=`uname -s | sed -e 's|/|_|g'` 5640 OS_RELEASE=`uname -r` 5641 OS_TEST=`uname -m` 5642fi 5643 5644if test "$OS_ARCH" = "IRIX64"; then 5645 OS_ARCH=IRIX 5646fi 5647 5648if test "$OS_ARCH" = "AIX"; then 5649 OS_RELEASE=`uname -v`.`uname -r` 5650fi 5651 5652if test "$OS_ARCH" = "FreeBSD"; then 5653 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` 5654fi 5655 5656if test "$OS_ARCH" = "Linux"; then 5657 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` 5658 OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 "." $2 }'` 5659fi 5660 5661####################################################################### 5662# Master "Core Components" macros for getting the OS target # 5663####################################################################### 5664 5665# 5666# Note: OS_TARGET should be specified on the command line for gmake. 5667# When OS_TARGET=WIN95 is specified, then a Windows 95 target is built. 5668# The difference between the Win95 target and the WinNT target is that 5669# the WinNT target uses Windows NT specific features not available 5670# in Windows 95. The Win95 target will run on Windows NT, but (supposedly) 5671# at lesser performance (the Win95 target uses threads; the WinNT target 5672# uses fibers). 5673# 5674# If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no 5675# cross-compilation. 5676# 5677 5678# 5679# The following hack allows one to build on a WIN95 machine (as if 5680# s/he were cross-compiling on a WINNT host for a WIN95 target). 5681# It also accomodates for MKS's uname.exe. If you never intend 5682# to do development on a WIN95 machine, you don't need this hack. 5683# 5684case "$OS_ARCH" in 5685Windows_95) 5686 OS_ARCH=Windows_NT 5687 OS_TARGET=WIN95 5688 ;; 5689Windows_98) 5690 OS_ARCH=Windows_NT 5691 OS_TARGET=WIN95 5692 ;; 5693CYGWIN_9*|CYGWIN_ME*) 5694 OS_ARCH='CYGWIN_NT-4.0' 5695 OS_TARGET=WIN95 5696 ;; 5697OS_2) 5698 OS_ARCH=OS2 5699 OS_TARGET=OS2 5700 ;; 5701esac 5702 5703# 5704# On WIN32, we also define the variable CPU_ARCH. 5705# 5706 5707case "$OS_ARCH" in 5708Windows_NT) 5709# 5710# If uname -s returns "Windows_NT", we assume that we are using 5711# the uname.exe in MKS toolkit. 5712# 5713# The -r option of MKS uname only returns the major version number. 5714# So we need to use its -v option to get the minor version number. 5715# Moreover, it doesn't have the -p option, so we need to use uname -m. 5716# 5717 OS_ARCH=WINNT 5718 OS_MINOR_RELEASE=`uname -v` 5719 if test "$OS_MINOR_RELEASE" = "00"; then 5720 OS_MINOR_RELEASE=0 5721 fi 5722 OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}" 5723 CPU_ARCH=`uname -m` 5724 # 5725 # MKS's uname -m returns "586" on a Pentium machine. 5726 # 5727 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then 5728 CPU_ARCH=x86 5729 fi 5730 ;; 5731CYGWIN_NT*|MINGW*_NT*|MSYS_NT*) 5732# 5733# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using 5734# the uname.exe in the Cygwin tools. 5735# If uname -s returns "MINGW32_NT-5.1", we assume that we are using 5736# the uname.exe in the MSYS tools. 5737# If uname -s returns "MSYS_NT-6.3", we assume that we are using 5738# the uname.exe in the MSYS2 tools. 5739# 5740 OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'` 5741 OS_ARCH=WINNT 5742 CPU_ARCH=`uname -m` 5743 # 5744 # Cygwin's uname -m returns "i686" on a Pentium Pro machine. 5745 # 5746 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then 5747 CPU_ARCH=x86 5748 fi 5749 ;; 5750esac 5751 5752if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then 5753 OS_TARGET=WIN95 5754 if test -n "$MOZ_DEBUG" -a -z "$USE_DEBUG_RTL"; then 5755 USE_DEBUG_RTL=1 5756 fi 5757fi 5758if test -z "$OS_TARGET"; then 5759 OS_TARGET=$OS_ARCH 5760fi 5761if test "$OS_TARGET" = "WIN95"; then 5762 OS_RELEASE="4.0" 5763fi 5764OS_CONFIG="${OS_TARGET}${OS_RELEASE}" 5765 5766# Check whether --enable-os2-high-mem was given. 5767if test "${enable_os2_high_mem+set}" = set; then : 5768 enableval=$enable_os2_high_mem; if test "$enableval" = "no"; then 5769 MOZ_OS2_HIGH_MEMORY= 5770 else 5771 MOZ_OS2_HIGH_MEMORY=1 5772 fi 5773fi 5774 5775 5776 5777MOZ_ALIGN=toolchain-default 5778 5779case "$target" in 5780arm*-android*|arm*-linuxandroid*) 5781 MOZ_THUMB=yes 5782 MOZ_ARCH=armv7-a 5783 MOZ_FPU=vfp 5784 MOZ_FLOAT_ABI=softfp 5785 MOZ_SOFT_FLOAT=yes 5786 MOZ_ALIGN=no 5787 ;; 5788arm*-*) 5789 if test -n "$MOZ_PLATFORM_MAEMO"; then 5790 MOZ_THUMB=no 5791 MOZ_ARCH=armv7-a 5792 MOZ_FLOAT_ABI=softfp 5793 fi 5794 if test "$MOZ_PLATFORM_MAEMO" = 6; then 5795 MOZ_THUMB=yes 5796 fi 5797 ;; 5798esac 5799 5800# Check whether --enable-thumb2 was given. 5801if test "${enable_thumb2+set}" = set; then : 5802 enableval=$enable_thumb2; MOZ_THUMB=$enableval 5803fi 5804 5805 5806 5807# Check whether --with-thumb was given. 5808if test "${with_thumb+set}" = set; then : 5809 withval=$with_thumb; if test -z "$GNU_CC"; then 5810 as_fn_error $? "--with-thumb is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5811 fi 5812 MOZ_THUMB=$withval 5813fi 5814 5815 5816 5817# Check whether --with-thumb-interwork was given. 5818if test "${with_thumb_interwork+set}" = set; then : 5819 withval=$with_thumb_interwork; if test -z "$GNU_CC"; then 5820 as_fn_error $? "--with-thumb-interwork is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5821 fi 5822 MOZ_THUMB_INTERWORK=$withval 5823fi 5824 5825 5826 5827# Check whether --with-arch was given. 5828if test "${with_arch+set}" = set; then : 5829 withval=$with_arch; if test -z "$GNU_CC"; then 5830 as_fn_error $? "--with-arch is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5831 fi 5832 MOZ_ARCH=$withval 5833fi 5834 5835 5836 5837# Check whether --with-fpu was given. 5838if test "${with_fpu+set}" = set; then : 5839 withval=$with_fpu; if test -z "$GNU_CC"; then 5840 as_fn_error $? "--with-fpu is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5841 fi 5842 MOZ_FPU=$withval 5843fi 5844 5845 5846 5847# Check whether --with-float-abi was given. 5848if test "${with_float_abi+set}" = set; then : 5849 withval=$with_float_abi; if test -z "$GNU_CC"; then 5850 as_fn_error $? "--with-float-abi is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5851 fi 5852 MOZ_FLOAT_ABI=$withval 5853fi 5854 5855 5856 5857# Check whether --with-soft-float was given. 5858if test "${with_soft_float+set}" = set; then : 5859 withval=$with_soft_float; if test -z "$GNU_CC"; then 5860 as_fn_error $? "--with-soft-float is not supported on non-GNU toolchain-defaults" "$LINENO" 5 5861 fi 5862 MOZ_SOFT_FLOAT=$withval 5863fi 5864 5865 5866case "$MOZ_ARCH" in 5867toolchain-default|"") 5868 arch_flag="" 5869 ;; 5870*) 5871 arch_flag="-march=$MOZ_ARCH" 5872 ;; 5873esac 5874 5875case "$MOZ_THUMB" in 5876yes) 5877 MOZ_THUMB2=1 5878 thumb_flag="-mthumb" 5879 ;; 5880no) 5881 MOZ_THUMB2= 5882 thumb_flag="-marm" 5883 ;; 5884*) 5885 _SAVE_CFLAGS="$CFLAGS" 5886 CFLAGS="$arch_flag" 5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5888/* end confdefs.h. */ 5889 5890int 5891main () 5892{ 5893return sizeof(__thumb2__); 5894 ; 5895 return 0; 5896} 5897_ACEOF 5898if ac_fn_c_try_compile "$LINENO"; then : 5899 MOZ_THUMB2=1 5900else 5901 MOZ_THUMB2= 5902fi 5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5904 CFLAGS="$_SAVE_CFLAGS" 5905 thumb_flag="" 5906 ;; 5907esac 5908 5909case "$MOZ_THUMB_INTERWORK" in 5910yes) 5911 thumb_interwork_flag="-mthumb-interwork" 5912 ;; 5913no) 5914 thumb_interwork_flag="-mno-thumb-interwork" 5915 ;; 5916*) # toolchain-default 5917 thumb_interwork_flag="" 5918 ;; 5919esac 5920 5921case "$MOZ_FPU" in 5922toolchain-default|"") 5923 fpu_flag="" 5924 ;; 5925*) 5926 fpu_flag="-mfpu=$MOZ_FPU" 5927 ;; 5928esac 5929 5930case "$MOZ_FLOAT_ABI" in 5931toolchain-default|"") 5932 float_abi_flag="" 5933 ;; 5934*) 5935 float_abi_flag="-mfloat-abi=$MOZ_FLOAT_ABI" 5936 ;; 5937esac 5938 5939case "$MOZ_SOFT_FLOAT" in 5940yes) 5941 soft_float_flag="-msoft-float" 5942 ;; 5943no) 5944 soft_float_flag="-mno-soft-float" 5945 ;; 5946*) # toolchain-default 5947 soft_float_flag="" 5948 ;; 5949esac 5950 5951case "$MOZ_ALIGN" in 5952toolchain-default|"") 5953 align_flag="" 5954 ;; 5955no) 5956 align_flag="-mno-unaligned-access" 5957 ;; 5958yes) 5959 align_flag="-munaligned-access" 5960 ;; 5961*) 5962 align_flag="" 5963 ;; 5964esac 5965 5966if test -n "$align_flag"; then 5967 _SAVE_CFLAGS="$CFLAGS" 5968 CFLAGS="$CFLAGS $align_flag" 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alignment flag ($align_flag) is supported" >&5 5970$as_echo_n "checking whether alignment flag ($align_flag) is supported... " >&6; } 5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5972/* end confdefs.h. */ 5973 5974int 5975main () 5976{ 5977 5978 ; 5979 return 0; 5980} 5981_ACEOF 5982if ac_fn_c_try_compile "$LINENO"; then : 5983 5984else 5985 align_flag="" 5986fi 5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5988 CFLAGS="$_SAVE_CFLAGS" 5989fi 5990 5991all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag` 5992if test -n "$all_flags"; then 5993 _SAVE_CFLAGS="$CFLAGS" 5994 CFLAGS="$all_flags" 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the chosen combination of compiler flags ($all_flags) works" >&5 5996$as_echo_n "checking whether the chosen combination of compiler flags ($all_flags) works... " >&6; } 5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999 6000int 6001main () 6002{ 6003return 0; 6004 ; 6005 return 0; 6006} 6007_ACEOF 6008if ac_fn_c_try_compile "$LINENO"; then : 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6010$as_echo "yes" >&6; } 6011else 6012 as_fn_error $? "no" "$LINENO" 5 6013fi 6014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6015 6016 CFLAGS="$_SAVE_CFLAGS $all_flags" 6017 CXXFLAGS="$CXXFLAGS $all_flags" 6018 ASFLAGS="$ASFLAGS $all_flags" 6019 if test -n "$thumb_flag"; then 6020 LDFLAGS="$LDFLAGS $thumb_flag" 6021 fi 6022fi 6023 6024case "$host" in 6025*-mingw*|*-msys*) 6026 NSINSTALL=nsinstall 6027 ;; 6028*-cygwin*|*-mks*) 6029 NSINSTALL='$(CYGWIN_WRAPPER) nsinstall' 6030 if test `echo "${PATH}" | grep -c \;` = 0; then 6031 CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper' 6032 fi 6033 ;; 6034*-beos*) 6035 HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE" 6036 ;; 6037*os2*) 6038 ;; 6039*) 6040 HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" 6041 ;; 6042esac 6043 6044case "$target" in 6045 6046*-aix*) 6047 $as_echo "#define XP_UNIX 1" >>confdefs.h 6048 6049 $as_echo "#define AIX 1" >>confdefs.h 6050 6051 $as_echo "#define SYSV 1" >>confdefs.h 6052 6053 DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib' 6054 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6056$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6057if ${ac_cv_path_GREP+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 if test -z "$GREP"; then 6061 ac_path_GREP_found=false 6062 # Loop through the user's path and test for each of PROGNAME-LIST 6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6064for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6065do 6066 IFS=$as_save_IFS 6067 test -z "$as_dir" && as_dir=. 6068 for ac_prog in grep ggrep; do 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6071 as_fn_executable_p "$ac_path_GREP" || continue 6072# Check for GNU ac_path_GREP and select it if it is found. 6073 # Check for GNU $ac_path_GREP 6074case `"$ac_path_GREP" --version 2>&1` in 6075*GNU*) 6076 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6077*) 6078 ac_count=0 6079 $as_echo_n 0123456789 >"conftest.in" 6080 while : 6081 do 6082 cat "conftest.in" "conftest.in" >"conftest.tmp" 6083 mv "conftest.tmp" "conftest.in" 6084 cp "conftest.in" "conftest.nl" 6085 $as_echo 'GREP' >> "conftest.nl" 6086 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6088 as_fn_arith $ac_count + 1 && ac_count=$as_val 6089 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6090 # Best one so far, save it but keep looking for a better one 6091 ac_cv_path_GREP="$ac_path_GREP" 6092 ac_path_GREP_max=$ac_count 6093 fi 6094 # 10*(2^10) chars as input seems more than enough 6095 test $ac_count -gt 10 && break 6096 done 6097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6098esac 6099 6100 $ac_path_GREP_found && break 3 6101 done 6102 done 6103 done 6104IFS=$as_save_IFS 6105 if test -z "$ac_cv_path_GREP"; then 6106 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6107 fi 6108else 6109 ac_cv_path_GREP=$GREP 6110fi 6111 6112fi 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6114$as_echo "$ac_cv_path_GREP" >&6; } 6115 GREP="$ac_cv_path_GREP" 6116 6117 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6119$as_echo_n "checking for egrep... " >&6; } 6120if ${ac_cv_path_EGREP+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6124 then ac_cv_path_EGREP="$GREP -E" 6125 else 6126 if test -z "$EGREP"; then 6127 ac_path_EGREP_found=false 6128 # Loop through the user's path and test for each of PROGNAME-LIST 6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6130for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6131do 6132 IFS=$as_save_IFS 6133 test -z "$as_dir" && as_dir=. 6134 for ac_prog in egrep; do 6135 for ac_exec_ext in '' $ac_executable_extensions; do 6136 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6137 as_fn_executable_p "$ac_path_EGREP" || continue 6138# Check for GNU ac_path_EGREP and select it if it is found. 6139 # Check for GNU $ac_path_EGREP 6140case `"$ac_path_EGREP" --version 2>&1` in 6141*GNU*) 6142 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6143*) 6144 ac_count=0 6145 $as_echo_n 0123456789 >"conftest.in" 6146 while : 6147 do 6148 cat "conftest.in" "conftest.in" >"conftest.tmp" 6149 mv "conftest.tmp" "conftest.in" 6150 cp "conftest.in" "conftest.nl" 6151 $as_echo 'EGREP' >> "conftest.nl" 6152 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6154 as_fn_arith $ac_count + 1 && ac_count=$as_val 6155 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6156 # Best one so far, save it but keep looking for a better one 6157 ac_cv_path_EGREP="$ac_path_EGREP" 6158 ac_path_EGREP_max=$ac_count 6159 fi 6160 # 10*(2^10) chars as input seems more than enough 6161 test $ac_count -gt 10 && break 6162 done 6163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6164esac 6165 6166 $ac_path_EGREP_found && break 3 6167 done 6168 done 6169 done 6170IFS=$as_save_IFS 6171 if test -z "$ac_cv_path_EGREP"; then 6172 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6173 fi 6174else 6175 ac_cv_path_EGREP=$EGREP 6176fi 6177 6178 fi 6179fi 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6181$as_echo "$ac_cv_path_EGREP" >&6; } 6182 EGREP="$ac_cv_path_EGREP" 6183 6184 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6186$as_echo_n "checking for ANSI C header files... " >&6; } 6187if ${ac_cv_header_stdc+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6191/* end confdefs.h. */ 6192#include <stdlib.h> 6193#include <stdarg.h> 6194#include <string.h> 6195#include <float.h> 6196 6197int 6198main () 6199{ 6200 6201 ; 6202 return 0; 6203} 6204_ACEOF 6205if ac_fn_c_try_compile "$LINENO"; then : 6206 ac_cv_header_stdc=yes 6207else 6208 ac_cv_header_stdc=no 6209fi 6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6211 6212if test $ac_cv_header_stdc = yes; then 6213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216#include <string.h> 6217 6218_ACEOF 6219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6220 $EGREP "memchr" >/dev/null 2>&1; then : 6221 6222else 6223 ac_cv_header_stdc=no 6224fi 6225rm -f conftest* 6226 6227fi 6228 6229if test $ac_cv_header_stdc = yes; then 6230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6232/* end confdefs.h. */ 6233#include <stdlib.h> 6234 6235_ACEOF 6236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6237 $EGREP "free" >/dev/null 2>&1; then : 6238 6239else 6240 ac_cv_header_stdc=no 6241fi 6242rm -f conftest* 6243 6244fi 6245 6246if test $ac_cv_header_stdc = yes; then 6247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6248 if test "$cross_compiling" = yes; then : 6249 : 6250else 6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252/* end confdefs.h. */ 6253#include <ctype.h> 6254#include <stdlib.h> 6255#if ((' ' & 0x0FF) == 0x020) 6256# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6257# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6258#else 6259# define ISLOWER(c) \ 6260 (('a' <= (c) && (c) <= 'i') \ 6261 || ('j' <= (c) && (c) <= 'r') \ 6262 || ('s' <= (c) && (c) <= 'z')) 6263# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6264#endif 6265 6266#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6267int 6268main () 6269{ 6270 int i; 6271 for (i = 0; i < 256; i++) 6272 if (XOR (islower (i), ISLOWER (i)) 6273 || toupper (i) != TOUPPER (i)) 6274 return 2; 6275 return 0; 6276} 6277_ACEOF 6278if ac_fn_c_try_run "$LINENO"; then : 6279 6280else 6281 ac_cv_header_stdc=no 6282fi 6283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6284 conftest.$ac_objext conftest.beam conftest.$ac_ext 6285fi 6286 6287fi 6288fi 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6290$as_echo "$ac_cv_header_stdc" >&6; } 6291if test $ac_cv_header_stdc = yes; then 6292 6293$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6294 6295fi 6296 6297# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6298for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6299 inttypes.h stdint.h unistd.h 6300do : 6301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6302ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6303" 6304if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6305 cat >>confdefs.h <<_ACEOF 6306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6307_ACEOF 6308 6309fi 6310 6311done 6312 6313 6314ac_fn_c_check_header_mongrel "$LINENO" "sys/atomic_op.h" "ac_cv_header_sys_atomic_op_h" "$ac_includes_default" 6315if test "x$ac_cv_header_sys_atomic_op_h" = xyes; then : 6316 $as_echo "#define AIX_HAVE_ATOMIC_OP_H 1" >>confdefs.h 6317 6318fi 6319 6320 6321 case "${target_os}" in 6322 aix3.2*) 6323 $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h 6324 6325 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 6326 6327 AIX_LINK_OPTS='-bnso -berok' 6328 PR_MD_ASFILES=os_AIX.s 6329 ;; 6330 aix4.1*) 6331 $as_echo "#define AIX_TIMERS 1" >>confdefs.h 6332 6333 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 6334 6335 $as_echo "#define AIX4_1 1" >>confdefs.h 6336 6337 MKSHLIB= 6338 DSO_LDOPTS= 6339 AIX_LINK_OPTS='-bnso -berok' 6340 LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr' 6341 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr' 6342 ;; 6343 aix4.2*) 6344 $as_echo "#define AIX_TIMERS 1" >>confdefs.h 6345 6346 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 6347 6348 AIX_LINK_OPTS='-brtl -bnso -berok' 6349 ;; 6350 aix4.3*) 6351 $as_echo "#define AIX_TIMERS 1" >>confdefs.h 6352 6353 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 6354 6355 $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h 6356 6357 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 6358 6359 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 6360 6361 USE_IPV6=1 6362 AIX_LINK_OPTS='-brtl -bnso -berok' 6363 ;; 6364 *) 6365 $as_echo "#define AIX_TIMERS 1" >>confdefs.h 6366 6367 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 6368 6369 $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h 6370 6371 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 6372 6373 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 6374 6375 USE_IPV6=1 6376 AIX_LINK_OPTS='-brtl -bnso -berok' 6377 ;; 6378 esac 6379 CFLAGS="$CFLAGS -qro -qroconst" 6380 AIX_WRAP='$(DIST)/lib/aixwrap.o' 6381 AIX_TMP='./_aix_tmp.o' 6382 if test -n "$USE_64"; then 6383 MDCPUCFG_H=_aix64.cfg 6384 OBJECT_MODE=64 6385 else 6386 MDCPUCFG_H=_aix32.cfg 6387 fi 6388 PR_MD_CSRCS=aix.c 6389 RESOLVE_LINK_SYMBOLS=1 6390 ;; 6391 6392*-beos*) 6393 $as_echo "#define XP_BEOS 1" >>confdefs.h 6394 6395 $as_echo "#define BeOS 1" >>confdefs.h 6396 6397 $as_echo "#define BEOS 1" >>confdefs.h 6398 6399 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 6400 6401 DSO_LDOPTS=-nostart 6402 MDCPUCFG_H=_beos.cfg 6403 USE_BTHREADS=1 6404 PR_MD_ARCH_DIR=beos 6405 RESOLVE_LINK_SYMBOLS=1 6406 case "${target_cpu}" in 6407 i*86) 6408 _OPTIMIZE_FLAGS=-O2 6409 _DEBUG_FLAGS='-gdwarf-2 -O0' 6410 MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@' 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5 6412$as_echo_n "checking for gethostbyaddr in -lbind... " >&6; } 6413if ${ac_cv_lib_bind_gethostbyaddr+:} false; then : 6414 $as_echo_n "(cached) " >&6 6415else 6416 ac_check_lib_save_LIBS=$LIBS 6417LIBS="-lbind $LIBS" 6418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6419/* end confdefs.h. */ 6420 6421/* Override any GCC internal prototype to avoid an error. 6422 Use char because int might match the return type of a GCC 6423 builtin and then its argument prototype would still apply. */ 6424#ifdef __cplusplus 6425extern "C" 6426#endif 6427char gethostbyaddr (); 6428int 6429main () 6430{ 6431return gethostbyaddr (); 6432 ; 6433 return 0; 6434} 6435_ACEOF 6436if ac_fn_c_try_link "$LINENO"; then : 6437 ac_cv_lib_bind_gethostbyaddr=yes 6438else 6439 ac_cv_lib_bind_gethostbyaddr=no 6440fi 6441rm -f core conftest.err conftest.$ac_objext \ 6442 conftest$ac_exeext conftest.$ac_ext 6443LIBS=$ac_check_lib_save_LIBS 6444fi 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5 6446$as_echo "$ac_cv_lib_bind_gethostbyaddr" >&6; } 6447if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes; then : 6448 OS_LIBS="$OS_LIBS -lbind -lsocket" 6449fi 6450 6451 ;; 6452 powerpc) 6453 CC=mwcc 6454 CCC=mwcc 6455 LD=mwld 6456 DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o' 6457 _OPTIMIZE_FLAGS=-O2 6458 _DEBUG_FLAGS='-g -O0' 6459 ;; 6460 esac 6461 ;; 6462 6463*-bsdi*) 6464 $as_echo "#define XP_UNIX 1" >>confdefs.h 6465 6466 $as_echo "#define BSDI 1" >>confdefs.h 6467 6468 $as_echo "#define NEED_BSDREGEX 1" >>confdefs.h 6469 6470 6471 CFLAGS="$CFLAGS -Wall -Wno-format" 6472 CXXFLAGS="$CXXFLAGS -Wall -Wno-format" 6473 6474 if echo "$OS_TEST" | grep -c 86 >/dev/null; then 6475 CPU_ARCH=x86 6476 elif echo "$OS_TEST" | grep -c sparc >/dev/null; then 6477 CPU_ARCH=sparc 6478 fi 6479 6480 MDCPUCFG_H=_bsdi.cfg 6481 PR_MD_CSRCS=bsdi.c 6482 6483 DSO_LDOPTS=-r 6484 6485 case "$target_os" in 6486 bsdi1.1*) 6487 $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h 6488 6489 $as_echo "#define _PR_STAT_HAS_ONLY_ST_ATIME 1" >>confdefs.h 6490 6491 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 6492 6493 MKSHLIB= 6494 DSO_CFLAGS= 6495 DSO_LDOPTS= 6496 ;; 6497 6498 bsdi2.1*) 6499 $as_echo "#define _PR_TIMESPEC_HAS_TS_SEC 1" >>confdefs.h 6500 6501 $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h 6502 6503 $as_echo "#define HAVE_DLL 1" >>confdefs.h 6504 6505 $as_echo "#define USE_DLFCN 1" >>confdefs.h 6506 6507 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h 6508 6509 PR_MD_ASFILES=os_BSD_OS_386_2.s 6510 ;; 6511 6512 bsdi4.* | bsdi5.*) 6513 $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h 6514 6515 $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h 6516 6517 $as_echo "#define HAVE_DLL 1" >>confdefs.h 6518 6519 $as_echo "#define USE_DLFCN 1" >>confdefs.h 6520 6521 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h 6522 6523 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' 6524 DSO_CFLAGS=-fPIC 6525 DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)' 6526 STRIP="$STRIP -d" 6527 case "$target_os" in 6528 bsdi4.2* | bsdi4.3* | bsdi5.*) 6529 $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h 6530 6531 $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h 6532 6533 ;; 6534 esac 6535 ;; 6536 *) 6537 $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h 6538 6539 $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h 6540 6541 $as_echo "#define HAVE_DLL 1" >>confdefs.h 6542 6543 $as_echo "#define USE_DLFCN 1" >>confdefs.h 6544 6545 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h 6546 6547 ;; 6548 esac 6549 6550 ;; 6551 6552*-darwin*) 6553 $as_echo "#define XP_UNIX 1" >>confdefs.h 6554 6555 $as_echo "#define DARWIN 1" >>confdefs.h 6556 6557 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h 6558 6559 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 6560 6561 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 6562 6563 6564 HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'` 6565 6566 if test "$HOST_DARWIN_MAJOR" -ge 15 ; then 6567 $as_echo "#define HAS_CONNECTX 1" >>confdefs.h 6568 6569 fi 6570 AS='$(CC) -x assembler-with-cpp' 6571 CFLAGS="$CFLAGS -Wall -fno-common" 6572 case "${target_cpu}" in 6573 arm*) 6574 CPU_ARCH=arm 6575 ;; 6576 i*86*|x86_64) 6577 if test -n "$USE_64"; then 6578 CPU_ARCH=x86_64 6579 else 6580 CPU_ARCH=i386 6581 fi 6582 ;; 6583 *) 6584 CPU_ARCH=ppc 6585 ;; 6586 esac 6587 if test "`echo $CC | grep -c '\-arch '`" = "0"; then 6588 CC="$CC -arch $CPU_ARCH" 6589 fi 6590 ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default" 6591if test "x$ac_cv_header_crt_externs_h" = xyes; then : 6592 $as_echo "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h 6593 6594fi 6595 6596 6597 DSO_CFLAGS=-fPIC 6598 DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names' 6599 _OPTIMIZE_FLAGS=-O2 6600 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 6601 STRIP="$STRIP -x -S" 6602 DLL_SUFFIX=dylib 6603 USE_PTHREADS=1 6604 MDCPUCFG_H=_darwin.cfg 6605 PR_MD_CSRCS=darwin.c 6606 PR_MD_ASFILES=os_Darwin.s 6607 6608 # Add Mac OS X support for loading CFM & CFBundle plugins 6609 if test -f "${MACOS_SDK_DIR}/System/Library/Frameworks/Carbon.framework/Carbon"; then 6610 $as_echo "#define XP_MACOSX 1" >>confdefs.h 6611 6612 OS_TARGET=MacOSX 6613 6614 if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then 6615 export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET 6616 elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then 6617 case "${target_cpu}" in 6618 powerpc*) 6619 export MACOSX_DEPLOYMENT_TARGET=10.2 6620 ;; 6621 i*86*) 6622 export MACOSX_DEPLOYMENT_TARGET=10.4 6623 ;; 6624 esac 6625 fi 6626 6627 6628 if test "$MACOS_SDK_DIR"; then 6629 6630 if test ! -d "$MACOS_SDK_DIR"; then 6631 as_fn_error $? "SDK not found. When using --with-macos-sdk, you must 6632specify a valid SDK. SDKs are installed when the optional cross-development 6633tools are selected during the Xcode/Developer Tools installation." "$LINENO" 5 6634 fi 6635 6636 6637 CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'` 6638 GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'` 6639 GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'` 6640 6641 GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'` 6642 if test "$GCC_VERSION_MAJOR" -lt "4" ; then 6643 SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System/Library/Frameworks" 6644 if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then 6645 SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks" 6646 fi 6647 6648 SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}" 6649 6650 CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}" 6651 6652 CPP="$CPP -nostdinc ${SDK_C_INCLUDE}" 6653 6654 6655 HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'` 6656 6657 if test "$HOST_DARWIN_MAJOR" -lt 9 ; then 6658 MACOS_SDK_LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib ${SDK_C_FRAMEWORK}" 6659 else 6660 MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}" 6661 fi 6662 6663 LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS" 6664 export NEXT_ROOT=$MACOS_SDK_DIR 6665 6666 if test -n "$CROSS_COMPILE" ; then 6667 HOST_CC="NEXT_ROOT= $HOST_CC" 6668 HOST_CXX="NEXT_ROOT= $HOST_CXX" 6669 fi 6670 else 6671 CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}" 6672 6673 CPP="$CPP -isysroot ${MACOS_SDK_DIR}" 6674 6675 if test "$GCC_VERSION_FULL" != "4.0.0" ; then 6676 LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}" 6677 else 6678 LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}" 6679 fi 6680 fi 6681 fi 6682 fi 6683 ;; 6684 6685*-dgux*) 6686 $as_echo "#define XP_UNIX 1" >>confdefs.h 6687 6688 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 6689 6690 $as_echo "#define SVR4 1" >>confdefs.h 6691 6692 $as_echo "#define SYSV 1" >>confdefs.h 6693 6694 $as_echo "#define DGUX 1" >>confdefs.h 6695 6696 $as_echo "#define _DGUX_SOURCE 1" >>confdefs.h 6697 6698 $as_echo "#define _POSIX4A_DRAFT6_SOURCE 1" >>confdefs.h 6699 6700 DSO_LDOPTS=-G 6701 _OPTIMIZE_FLAGS=-O2 6702 _DEBUG_FLAGS= 6703 MDCPUCFG_H=_dgux.cfg 6704 PR_MD_CSRCS=dgux.c 6705 ;; 6706 6707*-freebsd*) 6708 if test -z "$USE_NSPR_THREADS"; then 6709 USE_PTHREADS=1 6710 fi 6711 $as_echo "#define XP_UNIX 1" >>confdefs.h 6712 6713 $as_echo "#define FREEBSD 1" >>confdefs.h 6714 6715 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h 6716 6717 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 6718 6719 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 6720 6721 CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall" 6722 MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` 6723 if test "$MOZ_OBJFORMAT" = "elf"; then 6724 DLL_SUFFIX=so 6725 else 6726 DLL_SUFFIX=so.1.0 6727 fi 6728 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 6729 DSO_CFLAGS=-fPIC 6730 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' 6731 MDCPUCFG_H=_freebsd.cfg 6732 PR_MD_CSRCS=freebsd.c 6733 ;; 6734 6735*-hpux*) 6736 $as_echo "#define XP_UNIX 1" >>confdefs.h 6737 6738 $as_echo "#define HPUX 1" >>confdefs.h 6739 6740 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h 6741 6742 # OSF1 and HPUX report the POLLHUP event for a socket when the 6743 # shutdown(SHUT_WR) operation is called for the remote end, even though 6744 # the socket is still writeable. Use select(), instead of poll(), to 6745 # workaround this problem. 6746 $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h 6747 6748 $as_echo "#define _USE_BIG_FDS 1" >>confdefs.h 6749 6750 DSO_LDOPTS='-b +h $(notdir $@)' 6751 PR_MD_CSRCS=hpux.c 6752 if test "$OS_TEST" = "ia64"; then 6753 DLL_SUFFIX=so 6754 DSO_LDOPTS="$DSO_LDOPTS +b '\$\$ORIGIN'" 6755 CPU_ARCH_TAG=_$OS_TEST 6756 if test -z "$USE_64"; then 6757 COMPILER_TAG=_32 6758 fi 6759 PR_MD_ASFILES=os_HPUX_ia64.s 6760 else 6761 $as_echo "#define hppa 1" >>confdefs.h 6762 6763 DLL_SUFFIX=sl 6764 PR_MD_ASFILES=os_HPUX.s 6765 fi 6766 if test -n "$USE_64"; then 6767 MDCPUCFG_H=_hpux64.cfg 6768 else 6769 MDCPUCFG_H=_hpux32.cfg 6770 fi 6771 if test -z "$GNU_CC"; then 6772 CC="$CC -Ae" 6773 CXX="$CXX -ext" 6774 DSO_CFLAGS=+Z 6775 else 6776 DSO_CFLAGS=-fPIC 6777 ASFLAGS="$ASFLAGS -x assembler-with-cpp" 6778 fi 6779 6780 if test -n "$MOZILLA_CLIENT"; then 6781 DEFAULT_IMPL_STRATEGY=_EMU 6782 fi 6783 6784 if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then 6785 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 6786 6787 $as_echo "#define HPUX9 1" >>confdefs.h 6788 6789 DEFAULT_IMPL_STRATEGY=_EMU 6790 USE_NSPR_THREADS=1 6791 fi 6792 6793 if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then 6794 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 6795 6796 fi 6797 6798 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then 6799 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 6800 6801 fi 6802 6803 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then 6804 $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h 6805 6806 fi 6807 6808 if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then 6809 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 6810 6811 fi 6812 6813 # HP-UX 11i v2 (B.11.23) or higher 6814 6815 case "$OS_RELEASE" in 6816 [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*) 6817 USE_IPV6=1 6818 ;; 6819 esac 6820 6821 6822 if test "$OS_RELEASE" = "B.10.01"; then 6823 $as_echo "#define HPUX10 1" >>confdefs.h 6824 6825 DEFAULT_IMPL_STRATEGY=_EMU 6826 fi 6827 6828 if test "$OS_RELEASE" = "B.10.10"; then 6829 $as_echo "#define HPUX10 1" >>confdefs.h 6830 6831 $as_echo "#define HPUX10_10 1" >>confdefs.h 6832 6833 DEFAULT_IMPL_STRATEGY=_PTH 6834 fi 6835 6836 if test "$OS_RELEASE" = "B.10.20"; then 6837 $as_echo "#define HPUX10 1" >>confdefs.h 6838 6839 $as_echo "#define HPUX10_20 1" >>confdefs.h 6840 6841 if test -z "$GNU_CC"; then 6842 CFLAGS="$CFLAGS +DAportable +DS1.1" 6843 CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" 6844 fi 6845 DEFAULT_IMPL_STRATEGY=_PTH 6846 fi 6847 6848 if test "$OS_RELEASE" = "B.10.30"; then 6849 $as_echo "#define HPUX10 1" >>confdefs.h 6850 6851 $as_echo "#define HPUX10_30 1" >>confdefs.h 6852 6853 if test -z "$GNU_CC"; then 6854 CFLAGS="$CFLAGS +DAportable +DS1.1" 6855 CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" 6856 fi 6857 DEFAULT_IMPL_STRATEGY=_PTH 6858 fi 6859 6860 if echo "$OS_RELEASE" | grep ^B.11 >/dev/null; then 6861 $as_echo "#define HPUX10 1" >>confdefs.h 6862 6863 $as_echo "#define HPUX11 1" >>confdefs.h 6864 6865 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 6866 6867 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 6868 6869 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 6870 6871 if test -z "$GNU_CC"; then 6872 if test -z "$USE_64"; then 6873 if test "$OS_TEST" = "ia64"; then 6874 CFLAGS="$CFLAGS +DD32" 6875 CXXFLAGS="$CXXFLAGS +DD32" 6876 else 6877 CFLAGS="$CFLAGS +DAportable +DS2.0" 6878 CXXFLAGS="$CXXFLAGS +DAportable +DS2.0" 6879 fi 6880 else 6881 if test "$OS_TEST" = "ia64"; then 6882 CFLAGS="$CFLAGS +DD64" 6883 CXXFLAGS="$CXXFLAGS +DD64" 6884 else 6885 CFLAGS="$CFLAGS +DA2.0W +DS2.0" 6886 CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0" 6887 fi 6888 fi 6889 fi 6890 DEFAULT_IMPL_STRATEGY=_PTH 6891 fi 6892 6893 if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then 6894 USE_NSPR_THREADS=1 6895 USE_PTHREADS= 6896 USE_USER_PTHREADS= 6897 elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then 6898 USE_PTHREADS=1 6899 if test "$USE_NSPR_THREADS"; then 6900 USE_PTHREADS= 6901 fi 6902 if test "$USE_USER_PTHREADS"; then 6903 USE_PTHREADS= 6904 fi 6905 fi 6906 ;; 6907 6908*-irix*) 6909 $as_echo "#define XP_UNIX 1" >>confdefs.h 6910 6911 $as_echo "#define IRIX 1" >>confdefs.h 6912 6913 $as_echo "#define SVR4 1" >>confdefs.h 6914 6915 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h 6916 6917 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 6918 6919 PR_MD_CSRCS=irix.c 6920 PR_MD_ASFILES=os_Irix.s 6921 MKSHLIB='$(LD) $(DSO_LDOPTS) -rdata_shared -shared -soname $(notdir $@) -o $@' 6922 STRIP="$STRIP -f" 6923 RESOLVE_LINK_SYMBOLS=1 6924 if test -n "$USE_64"; then 6925 MDCPUCFG_H=_irix64.cfg 6926 else 6927 MDCPUCFG_H=_irix32.cfg 6928 fi 6929 case "${target_os}" in 6930 irix6*) 6931 $as_echo "#define IRIX6 1" >>confdefs.h 6932 6933 USE_PTHREADS=1 6934 USE_N32=1 6935 COMPILER_TAG=_n32 6936 IMPL_STRATEGY=_PTH 6937 ;; 6938 irix5*) 6939 $as_echo "#define IRIX5 1" >>confdefs.h 6940 6941 USE_NSPR_THREADS=1 6942 ;; 6943 *) 6944 USE_PTHREADS=1 6945 USE_N32=1 6946 ;; 6947 esac 6948 if test "$GNU_CC"; then 6949 AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)' 6950 CFLAGS="$CFLAGS -Wall -Wno-format" 6951 _OPTIMIZE_FLAGS="-O6" 6952 else 6953 if test -n "$USE_N32"; then 6954 AS='as -D_ASM $(INCLUDES) -n32' 6955 else 6956 AS='as -D_ASM $(INCLUDES)' 6957 fi 6958 CFLAGS="$CFLAGS -fullwarn -xansi" 6959 if test "$USE_N32"; then 6960 _OPTIMIZE_FLAGS="-O -OPT:Olimit=4000" 6961 else 6962 _OPTIMIZE_FLAGS="-O -Olimit 4000" 6963 fi 6964 if test "$USE_MDUPDATE"; then 6965 CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" 6966 fi 6967 case "${target}" in 6968 *-irix6.*) 6969 CFLAGS="$CFLAGS -multigot" 6970 DSO_LDOPTS="-no_unresolved" 6971 if test "$USE_N32"; then 6972 CFLAGS="$CFLAGS -n32 -woff 1209" 6973 DSO_LDOPTS="$DSO_LDOPTS -n32" 6974 else 6975 if test "$USE_64"; then 6976 CFLAGS="$CFLAGS -64" 6977 else 6978 CFLAGS="$CFLAGS -32" 6979 fi 6980 fi 6981 ;; 6982 *) 6983 CFLAGS="$CFLAGS -xgot" 6984 ;; 6985 esac 6986 fi 6987 if test "${target_os}" = "irix5.3"; then 6988 $as_echo "#define IRIX5_3 1" >>confdefs.h 6989 6990 fi 6991 case "${target_os}" in 6992 irix6.5) 6993 if test -z "$GNU_CC"; then 6994 CFLAGS="$CFLAGS -mips3" 6995 fi 6996 $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h 6997 6998 $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h 6999 7000 $as_echo "#define _PR_HAVE_SGI_PRDA_PROCMASK 1" >>confdefs.h 7001 7002 ;; 7003 irix5*) 7004 ;; 7005 *) 7006 $as_echo "#define _PR_HAVE_SGI_PRDA_PROCMASK 1" >>confdefs.h 7007 7008 ;; 7009 esac 7010 ;; 7011 7012*-linux*|*-gnu*|*-k*bsd*-gnu|*-android*|*-linuxandroid*) 7013 if test -z "$USE_NSPR_THREADS"; then 7014 USE_PTHREADS=1 7015 IMPL_STRATEGY=_PTH 7016 fi 7017 $as_echo "#define XP_UNIX 1" >>confdefs.h 7018 7019 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 7020 7021 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 7022 7023 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 7024 7025 case "${target}" in 7026 *-android*|*-linuxandroid*) 7027 OS_TARGET=Android 7028 $as_echo "#define LINUX 1" >>confdefs.h 7029 7030 ;; 7031 *-linux*) 7032 $as_echo "#define LINUX 1" >>confdefs.h 7033 7034 ;; 7035 esac 7036 CFLAGS="$CFLAGS -Wall" 7037 CXXFLAGS="$CXXFLAGS -Wall" 7038 MDCPUCFG_H=_linux.cfg 7039 PR_MD_CSRCS=linux.c 7040 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 7041 DSO_CFLAGS=-fPIC 7042 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' 7043 _OPTIMIZE_FLAGS=-O2 7044 _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that 7045 # combo is not yet good at debugging inlined 7046 # functions (even when using DWARF2 as the 7047 # debugging format) 7048 COMPILER_TAG=_glibc 7049 if echo "$OS_TEST" | grep -c 86 >/dev/null; then 7050 CPU_ARCH=x86 7051 else 7052 CPU_ARCH=$OS_TEST 7053 fi 7054 CPU_ARCH_TAG=_${CPU_ARCH} 7055 case "${target_cpu}" in 7056 alpha) 7057 $as_echo "#define _ALPHA_ 1" >>confdefs.h 7058 7059 $as_echo "#define __alpha 1" >>confdefs.h 7060 7061 CFLAGS="$CFLAGS -mieee" 7062 CXXFLAGS="$CXXFLAGS -mieee" 7063 ;; 7064 i*86) 7065 $as_echo "#define i386 1" >>confdefs.h 7066 7067 PR_MD_ASFILES=os_Linux_x86.s 7068 ;; 7069 ia64) 7070 PR_MD_ASFILES=os_Linux_ia64.s 7071 ;; 7072 x86_64) 7073 if test -n "$USE_64"; then 7074 PR_MD_ASFILES=os_Linux_x86_64.s 7075 elif test -n "$USE_X32"; then 7076 PR_MD_ASFILES=os_Linux_x86_64.s 7077 CC="$CC -mx32" 7078 CXX="$CXX -mx32" 7079 else 7080 $as_echo "#define i386 1" >>confdefs.h 7081 7082 PR_MD_ASFILES=os_Linux_x86.s 7083 CC="$CC -m32" 7084 CXX="$CXX -m32" 7085 fi 7086 ;; 7087 ppc|powerpc) 7088 PR_MD_ASFILES=os_Linux_ppc.s 7089 ;; 7090 powerpc64) 7091 if test -n "$USE_64"; then 7092 CC="$CC -m64" 7093 CXX="$CXX -m64" 7094 else 7095 PR_MD_ASFILES=os_Linux_ppc.s 7096 fi 7097 ;; 7098 esac 7099 ;; 7100 7101*-mingw*|*-msys*|*-cygwin*|*-mks*) 7102 $as_echo "#define XP_PC 1" >>confdefs.h 7103 7104 $as_echo "#define WIN32 1" >>confdefs.h 7105 7106 PR_MD_ARCH_DIR=windows 7107 RESOLVE_LINK_SYMBOLS=1 7108 7109 if test -n "$GNU_CC"; then 7110 CC="$CC -mwindows" 7111 CXX="$CXX -mwindows" 7112 DLL_SUFFIX=dll 7113 MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))' 7114 RC=$WINDRES 7115 # Use temp file for windres (bug 213281) 7116 RCFLAGS='-O coff --use-temp-file' 7117 else 7118 LD=link 7119 AR='lib -NOLOGO -OUT:"$@"' 7120 AR_FLAGS= 7121 RANLIB='echo not_ranlib' 7122 STRIP='echo not_strip' 7123 RC=rc.exe 7124 GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb' 7125 OBJ_SUFFIX=obj 7126 LIB_SUFFIX=lib 7127 DLL_SUFFIX=dll 7128 7129 # Determine compiler version 7130 7131 _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p' 7132 7133 CC_VERSION=`${CC} -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"` 7134 if test -z "$CC_VERSION"; then 7135 as_fn_error $? "Could not determine MSC version." "$LINENO" 5 7136 fi 7137 7138 _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'` 7139 _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'` 7140 _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'` 7141 _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'` 7142 MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION} 7143 7144 if test "$_CC_MAJOR_VERSION" -eq "14"; then 7145 if test $_CC_RELEASE -gt 50727; then 7146 _USE_DYNAMICBASE=1 7147 elif test $_CC_BUILD -ge 762; then 7148 _USE_DYNAMICBASE=1 7149 fi 7150 $as_echo "#define _CRT_SECURE_NO_DEPRECATE 1" >>confdefs.h 7151 7152 $as_echo "#define _CRT_NONSTDC_NO_DEPRECATE 1" >>confdefs.h 7153 7154 elif test $_CC_MAJOR_VERSION -ge 15; then 7155 _USE_DYNAMICBASE=1 7156 $as_echo "#define _CRT_SECURE_NO_WARNINGS 1" >>confdefs.h 7157 7158 $as_echo "#define _CRT_NONSTDC_NO_WARNINGS 1" >>confdefs.h 7159 7160 fi 7161 7162 if test -n "$_USE_DYNAMICBASE"; then 7163 DLLFLAGS="$DLLFLAGS -DYNAMICBASE" 7164 fi 7165 7166 # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic 7167 # tape manipulation utility (or something else) 7168 if test "$MSC_VER" -ge "1400"; then 7169 7170 _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p' 7171 7172 7173 MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'` 7174 if test -n "$MSMT_TOOL"; then 7175 MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"` 7176 if test -z "$MSMANIFEST_TOOL_VERSION"; then 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&5 7178$as_echo "$as_me: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&2;} 7179 fi 7180 MT=mt 7181 unset MSMT_TOOL 7182 else 7183 as_fn_error $? "Microsoft (R) Manifest Tool must be in your \$PATH." "$LINENO" 5 7184 fi 7185 fi 7186 7187 CFLAGS="$CFLAGS -W3 -nologo -GF -Gy" 7188 DLLFLAGS="$DLLFLAGS -OUT:\"\$@\"" 7189 _DEBUG_FLAGS=-Zi 7190 _OPTIMIZE_FLAGS=-O2 7191 7192 PROFILE_GEN_CFLAGS="-GL" 7193 PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT" 7194 PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952" 7195 PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE" 7196 7197 if test "$MSC_VER" -ge "1800"; then 7198 CFLAGS="$CFLAGS -FS" 7199 PROFILE_GEN_CFLAGS="$PROFILE_GEN_CFLAGS -Gw" 7200 PROFILE_USE_CFLAGS="$PROFILE_USE_CFLAGS -Gw" 7201 fi 7202 7203 if test -z "$MOZ_OPTIMIZE"; then 7204 CFLAGS="$CFLAGS -Od" 7205 fi 7206 7207 if test "$USE_DEBUG_RTL" = 1; then 7208 if test -n "$USE_STATIC_RTL"; then 7209 CFLAGS="$CFLAGS -MTd" 7210 else 7211 CFLAGS="$CFLAGS -MDd" 7212 fi 7213 else 7214 if test -n "$USE_STATIC_RTL"; then 7215 CFLAGS="$CFLAGS -MT" 7216 else 7217 CFLAGS="$CFLAGS -MD" 7218 fi 7219 fi 7220 7221 if test -n "$MOZ_DEBUG"; then 7222 $as_echo "#define _DEBUG 1" >>confdefs.h 7223 7224 else 7225 DEFINES="$DEFINES -U_DEBUG" 7226 fi 7227 7228 if test -n "$MOZ_DEBUG_SYMBOLS"; then 7229 if test -n "$MOZ_OPTIMIZE"; then 7230 DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF" 7231 LDFLAGS="$LDFLAGS -DEBUG -OPT:REF" 7232 else 7233 DLLFLAGS="$DLLFLAGS -DEBUG" 7234 LDFLAGS="$LDFLAGS -DEBUG" 7235 fi 7236 fi 7237 7238 OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS" 7239 if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then 7240 OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE" 7241 fi 7242 7243 if test "$OS_TARGET" = "WINNT"; then 7244 CFLAGS="$CFLAGS -GT" 7245 LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' 7246 LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' 7247 else 7248 LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' 7249 LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' 7250 fi 7251 fi # GNU_CC 7252 7253 if test -n "$USE_STATIC_TLS"; then 7254 $as_echo "#define _PR_USE_STATIC_TLS 1" >>confdefs.h 7255 7256 fi 7257 7258 if test "$OS_TARGET" = "WINNT"; then 7259 $as_echo "#define WINNT 1" >>confdefs.h 7260 7261 else 7262 $as_echo "#define WIN95 1" >>confdefs.h 7263 7264 # undefine WINNT as some versions of mingw gcc define it by default 7265 DEFINES="$DEFINES -UWINNT" 7266 $as_echo "#define _PR_GLOBAL_THREADS_ONLY 1" >>confdefs.h 7267 7268 fi 7269 7270 if test "$CPU_ARCH" = "x86"; then 7271 CPU_ARCH_TAG= 7272 else 7273 CPU_ARCH_TAG=$CPU_ARCH 7274 fi 7275 7276 if test "$USE_DEBUG_RTL" = 1; then 7277 OBJDIR_SUFFIX=OBJD 7278 fi 7279 7280 case "$OS_TARGET" in 7281 WINNT) 7282 MDCPUCFG_H=_winnt.cfg 7283 ;; 7284 WIN95) 7285 MDCPUCFG_H=_win95.cfg 7286 ;; 7287 *) 7288 as_fn_error $? "Missing OS_TARGET for ${target}. Use --enable-win32-target to set." "$LINENO" 5 7289 ;; 7290 esac 7291 7292 case "$target_cpu" in 7293 i*86) 7294 if test -n "$USE_64"; then 7295 $as_echo "#define _AMD64_ 1" >>confdefs.h 7296 7297 else 7298 $as_echo "#define _X86_ 1" >>confdefs.h 7299 7300 if test -z "$GNU_CC" -a "$MSC_VER" -ge "1700"; then 7301 CFLAGS="$CFLAGS -arch:IA32" 7302 fi 7303 fi 7304 ;; 7305 x86_64) 7306 $as_echo "#define _AMD64_ 1" >>confdefs.h 7307 7308 USE_64=1 7309 ;; 7310 ia64) 7311 $as_echo "#define _IA64_ 1" >>confdefs.h 7312 7313 USE_64=1 7314 ;; 7315 *) 7316 $as_echo "#define _CPU_ARCH_NOT_DEFINED 1" >>confdefs.h 7317 7318 ;; 7319 esac 7320 ;; 7321 7322*-netbsd*) 7323 $as_echo "#define XP_UNIX 1" >>confdefs.h 7324 7325 $as_echo "#define NETBSD 1" >>confdefs.h 7326 7327 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h 7328 7329 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 7330 7331 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 7332 7333 if test -z "$USE_NSPR_THREADS"; then 7334 USE_PTHREADS=1 7335 fi 7336 MDCPUCFG_H=_netbsd.cfg 7337 PR_MD_CSRCS=netbsd.c 7338 7339 DSO_CFLAGS='-fPIC -DPIC' 7340 CFLAGS="$CFLAGS -ansi -Wall" 7341 CXXFLAGS="$CXXFLAGS -ansi -Wall" 7342 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' 7343 7344 if test -z "$OBJECT_FMT"; then 7345 if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then 7346 OBJECT_FMT=a.out 7347 DLL_SUFFIX=so.1.0 7348 DSO_LDOPTS='-shared' 7349 else 7350 OBJECT_FMT=ELF 7351 DLL_SUFFIX=so 7352 DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' 7353 fi 7354 fi 7355 7356 if test "$LIBRUNPATH"; then 7357 DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH" 7358 fi 7359 ;; 7360 7361*-nto*) 7362 $as_echo "#define XP_UNIX 1" >>confdefs.h 7363 7364 $as_echo "#define NTO 1" >>confdefs.h 7365 7366 $as_echo "#define _QNX_SOURCE 1" >>confdefs.h 7367 7368 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 7369 7370 MDCPUCFG_H=_nto.cfg 7371 PR_MD_CSRCS=nto.c 7372 MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@' 7373 DSO_CFLAGS=-fPIC 7374 DSO_LDOPTS=-shared 7375 OS_LIBS="$OS_LIBS -lsocket" 7376 _OPTIMIZE_FLAGS="-O1" 7377 _DEBUG_FLAGS="-gstabs" 7378 ;; 7379 7380*-openbsd*) 7381 $as_echo "#define XP_UNIX 1" >>confdefs.h 7382 7383 $as_echo "#define OPENBSD 1" >>confdefs.h 7384 7385 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h 7386 7387 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 7388 7389 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 7390 7391 CFLAGS="$CFLAGS -ansi -Wall" 7392 CXXFLAGS="$CXXFLAGS -ansi -Wall" 7393 DLL_SUFFIX=so.1.0 7394 DSO_CFLAGS=-fPIC 7395 MDCPUCFG_H=_openbsd.cfg 7396 PR_MD_CSRCS=openbsd.c 7397 OS_LIBS="-lc" 7398 if test -z "$USE_NSPR_THREADS"; then 7399 USE_PTHREADS=1 7400 fi 7401 DSO_LDOPTS='-shared -fPIC -Wl,-soname,$(notdir $@)' 7402 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 7403 ;; 7404 7405*-osf*) 7406 SHELL_OVERRIDE="SHELL = /usr/bin/ksh" 7407 $as_echo "#define XP_UNIX 1" >>confdefs.h 7408 7409 $as_echo "#define OSF1 1" >>confdefs.h 7410 7411 $as_echo "#define _REENTRANT 1" >>confdefs.h 7412 7413 # OSF1 and HPUX report the POLLHUP event for a socket when the 7414 # shutdown(SHUT_WR) operation is called for the remote end, even though 7415 # the socket is still writeable. Use select(), instead of poll(), to 7416 # workaround this problem. 7417 $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h 7418 7419 7420 if echo "$OS_RELEASE" | egrep -c '(V2.0|V3.2)' 2>/dev/null ; then 7421 USE_NSPR_THREADS=1 7422 fi 7423 7424 if test -z "$GNU_CC"; then 7425 CC="$CC -std1 -ieee_with_inexact" 7426 if test "$OS_RELEASE" != "V2.0"; then 7427 CC="$CC -readonly_strings" 7428 fi 7429 _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000" 7430 ac_fn_c_check_header_mongrel "$LINENO" "machine/builtins.h" "ac_cv_header_machine_builtins_h" "$ac_includes_default" 7431if test "x$ac_cv_header_machine_builtins_h" = xyes; then : 7432 $as_echo "#define OSF1_HAVE_MACHINE_BUILTINS_H 1" >>confdefs.h 7433 7434fi 7435 7436 7437 else 7438 CFLAGS="$CFLAGS -mieee" 7439 CXXFLAGS="$CXXFLAGS -mieee" 7440 fi 7441 7442 if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then 7443 $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h 7444 7445 else 7446 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 7447 7448 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 7449 7450 fi 7451 if echo $OS_RELEASE | grep -c V4.0 >/dev/null; then 7452 $as_echo "#define OSF1V4_MAP_PRIVATE_BUG 1" >>confdefs.h 7453 7454 fi 7455 DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)' 7456 MDCPUCFG_H=_osf1.cfg 7457 PR_MD_CSRCS=osf1.c 7458 ;; 7459 7460*-qnx*) 7461 $as_echo "#define XP_UNIX 1" >>confdefs.h 7462 7463 $as_echo "#define QNX 1" >>confdefs.h 7464 7465 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 7466 7467 USE_NSPR_THREADS=1 7468 MDCPUCFG_H=_qnx.cfg 7469 PR_MD_CSRCS=qnx.c 7470 ;; 7471 7472*-riscos*) 7473 $as_echo "#define XP_UNIX 1" >>confdefs.h 7474 7475 $as_echo "#define RISCOS 1" >>confdefs.h 7476 7477 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 7478 7479 USE_PTHREADS=1 7480 MDCPUCFG_H=_riscos.cfg 7481 PR_MD_CSRCS=riscos.c 7482 DSO_CFLAGS=-fPIC 7483 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' 7484 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 7485 ;; 7486 7487*-*-sco*) 7488 $as_echo "#define XP_UNIX 1" >>confdefs.h 7489 7490 $as_echo "#define SCO 1" >>confdefs.h 7491 7492 $as_echo "#define sco 1" >>confdefs.h 7493 7494 $as_echo "#define SYSV 1" >>confdefs.h 7495 7496 $as_echo "#define _SVID3 1" >>confdefs.h 7497 7498 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h 7499 7500 CC='cc -b elf -KPIC' 7501 CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w' 7502 USE_NSPR_THREADS=1 7503 CPU_ARCH=x86 7504 DSO_LDOPTS='-b elf -G' 7505 MDCPUCFG_H=_scoos.cfg 7506 PR_MD_SRCS=scoos.c 7507 ;; 7508 7509*-solaris*) 7510 if test -z "$USE_NSPR_THREADS"; then 7511 USE_PTHREADS=1 7512 fi 7513 $as_echo "#define XP_UNIX 1" >>confdefs.h 7514 7515 $as_echo "#define SVR4 1" >>confdefs.h 7516 7517 $as_echo "#define SYSV 1" >>confdefs.h 7518 7519 $as_echo "#define __svr4 1" >>confdefs.h 7520 7521 $as_echo "#define __svr4__ 1" >>confdefs.h 7522 7523 $as_echo "#define SOLARIS 1" >>confdefs.h 7524 7525 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 7526 7527 CPU_ARCH=`uname -p` 7528 MDCPUCFG_H=_solaris.cfg 7529 PR_MD_CSRCS=solaris.c 7530 LD=/usr/ccs/bin/ld 7531 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 7532 RESOLVE_LINK_SYMBOLS=1 7533 case "${OS_RELEASE}" in 7534 5.8|5.9) 7535 ;; 7536 *) 7537 # It is safe to use the -Bdirect linker flag on Solaris 10 or later. 7538 USE_B_DIRECT=1 7539 ;; 7540 esac 7541 if test -n "$GNU_CC"; then 7542 DSO_CFLAGS=-fPIC 7543 if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then 7544 GCC_USE_GNU_LD=1 7545 fi 7546 DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore' 7547 if test -n "$USE_B_DIRECT"; then 7548 DSO_LDOPTS="$DSO_LDOPTS,-Bdirect" 7549 fi 7550 else 7551 DSO_CFLAGS=-KPIC 7552 DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs -z ignore' 7553 if test -n "$USE_B_DIRECT"; then 7554 DSO_LDOPTS="$DSO_LDOPTS -Bdirect" 7555 fi 7556 fi 7557 if test -n "$GNU_CC"; then 7558 CFLAGS="$CFLAGS -Wall" 7559 CXXFLAGS="$CXXFLAGS -Wall" 7560 if test -n "$USE_MDUPDATE"; then 7561 CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" 7562 CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)" 7563 fi 7564 GCC_AS=`$CC -print-prog-name=as` 7565 if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then 7566 GNU_AS=1 7567 fi 7568 else 7569 CFLAGS="$CFLAGS -xstrconst" 7570 CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife" 7571 if test -z "$MOZ_OPTIMIZE"; then 7572 CFLAGS="$CFLAGS -xs" 7573 CXXFLAGS="$CXXFLAGS -xs" 7574 fi 7575 _OPTIMIZE_FLAGS=-xO4 7576 fi 7577 if test -z "$GNU_AS"; then 7578 ASFLAGS="$ASFLAGS -Wa,-P" 7579 fi 7580 if test -n "$USE_64"; then 7581 if test -n "$GNU_CC"; then 7582 CC="$CC -m64" 7583 CXX="$CXX -m64" 7584 else 7585 if test "$OS_TEST" = "i86pc"; then 7586 CC="$CC -xarch=amd64" 7587 CXX="$CXX -xarch=amd64" 7588 else 7589 CC="$CC -xarch=v9" 7590 CXX="$CXX -xarch=v9" 7591 fi 7592 fi 7593 fi 7594 if test "$OS_TEST" = "i86pc"; then 7595 if test -z "$USE_64"; then 7596 $as_echo "#define i386 1" >>confdefs.h 7597 7598 fi 7599 CPU_ARCH_TAG=_$OS_TEST 7600 # The default debug format, DWARF (-g), is not supported by gcc 7601 # on i386-ANY-sysv4/solaris, but the stabs format is. It is 7602 # assumed that the Solaris assembler /usr/ccs/bin/as is used. 7603 # If your gcc uses GNU as, you do not need the -Wa,-s option. 7604 if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then 7605 _DEBUG_FLAGS=-gstabs 7606 if test -z "$GNU_AS"; then 7607 _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s" 7608 fi 7609 fi 7610 fi 7611 case "${target_os}" in 7612 solaris2.3*) 7613 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 7614 7615 ;; 7616 solaris2.4*) 7617 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 7618 7619 ;; 7620 solaris2.5*) 7621 $as_echo "#define SOLARIS2_5 1" >>confdefs.h 7622 7623 ;; 7624 *) 7625 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 7626 7627 # The lfcompile64(5) man page on Solaris 2.6 says: 7628 # For applications that do not wish to conform to the POSIX or 7629 # X/Open specifications, the 64-bit transitional interfaces 7630 # are available by default. No compile-time flags need to be 7631 # set. 7632 # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default. 7633 # The native compiler, gcc 2.8.x, and egcs don't have this problem. 7634 if test -n "$GNU_CC"; then 7635 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 7636 7637 fi 7638 ;; 7639 esac 7640 case "${target_os}" in 7641 solaris2.3*) 7642 ;; 7643 solaris2.4*) 7644 ;; 7645 solaris2.5*) 7646 ;; 7647 solaris2.6*) 7648 ;; 7649 solaris2.7*) 7650 ;; 7651 *) 7652 # Solaris 8 or higher has IPv6. 7653 $as_echo "#define _PR_INET6 1" >>confdefs.h 7654 7655 ;; 7656 esac 7657 if test "$CPU_ARCH" = "sparc"; then 7658 # 64-bit Solaris SPARC requires V9 architecture, so the following 7659 # is not needed. 7660 if test -z "$USE_64"; then 7661 ULTRASPARC_LIBRARY=nspr_flt 7662 fi 7663 fi 7664 # Purify requires that binaries linked against nspr also 7665 # be linked against -lrt (or -lposix4) so add it to OS_LIBS 7666 _rev=`uname -r` 7667 _librt=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'` 7668 OS_LIBS="$OS_LIBS $_librt" 7669 ;; 7670 7671*-sco-sysv5*) 7672 $as_echo "#define XP_UNIX 1" >>confdefs.h 7673 7674 $as_echo "#define UNIXWARE 1" >>confdefs.h 7675 7676 $as_echo "#define SVR4 1" >>confdefs.h 7677 7678 $as_echo "#define SYSV 1" >>confdefs.h 7679 7680 USE_NSPR_THREADS=1 7681 if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then 7682 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h 7683 7684 CC='$(NSDEPTH)/build/hcc cc' 7685 CXX='$(NSDEPTH)/build/hcpp CC' 7686 MDCPUCFG_H=_unixware.cfg 7687 else 7688 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 7689 7690 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h 7691 7692 $as_echo "#define _PR_HAVE_SOCKADDR_LEN 1" >>confdefs.h 7693 7694 MDCPUCFG_H=_unixware7.cfg 7695 fi 7696 PR_MD_CSRCS=unixware.c 7697 DSO_LDOPTS=-G 7698 CPU_ARCH=x86 7699 ;; 7700 7701*-symbian*) 7702 7703# Check whether --with-symbian-sdk was given. 7704if test "${with_symbian_sdk+set}" = set; then : 7705 withval=$with_symbian_sdk; SYMBIAN_SDK_DIR=$withval 7706fi 7707 7708 7709 echo ----------------------------------------------------------------------------- 7710 echo Building with Symbian SDK in: $SYMBIAN_SDK_DIR 7711 echo ----------------------------------------------------------------------------- 7712 7713 $as_echo "#define XP_UNIX 1" >>confdefs.h 7714 7715 $as_echo "#define SYMBIAN 1" >>confdefs.h 7716 7717 $as_echo "#define __arm__ 1" >>confdefs.h 7718 7719 $as_echo "#define __SYMBIAN32__ 1" >>confdefs.h 7720 7721 $as_echo "#define _UNICODE 1" >>confdefs.h 7722 7723 $as_echo "#define NDEBUG 1" >>confdefs.h 7724 7725 $as_echo "#define __SUPPORT_CPP_EXCEPTIONS__ 1" >>confdefs.h 7726 7727 $as_echo "#define MOZ_STDERR_TO_STDOUT 1" >>confdefs.h 7728 7729 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h 7730 7731 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 7732 7733 USE_PTHREADS=1 7734 LIB_SUFFIX=lib 7735 DLL_SUFFIX=dll 7736 MKSHLIB= 7737 DSO_LDOPTS= 7738 DSO_CFLAGS= 7739 VISIBILITY_FLAGS= 7740 MDCPUCFG_H=_symbian.cfg 7741 PR_MD_CSRCS=symbian.c 7742 NSINSTALL=nsinstall 7743 RANLIB='echo no ranlib ' 7744 CPU_ARCH=ARM 7745 OS_ARCH=SYMBIAN 7746 OS_EXE_CFLAGS="$OS_EXE_CFLAGS -D__EXE__" 7747 CFLAGS="$CFLAGS -MD -nostdinc" 7748 SYMBIAN_SYS_INCLUDE="-I$SYMBIAN_SDK_DIR/Epoc32/include/variant -I$SYMBIAN_SDK_DIR/Epoc32/include -I$SYMBIAN_SDK_DIR/Epoc32/include/stdapis" 7749 echo ------------------------------------------------------- 7750 echo SYMBIAN_SYS_INCLUDE is: $SYMBIAN_SYS_INCLUDE 7751 echo ------------------------------------------------------- 7752 case "$OS_TARGET" in 7753 WINSCW) 7754 CC=mwccsym2.exe 7755 CXX=mwccsym2.exe 7756 LD=mwldsym2.exe 7757 AR=mwldsym2.exe 7758 WINSCW_LD_DIR="\$(SYMBIAN_SDK_DIR)/EPOC32/RELEASE/WINSCW/UDEB" 7759 CFLAGS="$CFLAGS -O0 -inline off -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -nostderr -gccdep -cwd source -i- -I\$(VPATH)" 7760 SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include Symbian_OS_v9.2.hrh" 7761 AR_FLAGS="-library -msgstyle gcc -stdlib -subsystem windows -noimplib -o \$@" 7762 $as_echo "#define _DEBUG 1" >>confdefs.h 7763 7764 $as_echo "#define __CW32__ 1" >>confdefs.h 7765 7766 $as_echo "#define __WINS__ 1" >>confdefs.h 7767 7768 $as_echo "#define __WINSCW__ 1" >>confdefs.h 7769 7770 DEFINES="$DEFINES -U_WIN32" 7771 ;; 7772 GCCE) 7773 CFLAGS="$CFLAGS -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -x c -msoft-float" 7774 CXXFLAGS="$CXXFLAGS $CFLAGS -Wno-ctor-dtor-privacy" 7775 SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include $SYMBIAN_SDK_DIR/EPOC32/INCLUDE/GCCE/GCCE.h" 7776 $as_echo "#define __GCCE__ 1" >>confdefs.h 7777 7778 $as_echo "#define __EABI__ 1" >>confdefs.h 7779 7780 DEFINES="$DEFINES -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32/include/variant/Symbian_OS_v9.2.hrh" 7781 ;; 7782 *) 7783 as_fn_error $? "Missing OS_TARGET for ${target}. Set --enable-symbian-target to with 'WINSCW' or 'GCCE'." "$LINENO" 5 7784 ;; 7785 esac 7786 CFLAGS="$CFLAGS ${SYMBIAN_SYS_INCLUDE}" 7787 ;; 7788 7789*-os2*) 7790 $as_echo "#define XP_OS2 1" >>confdefs.h 7791 7792 $as_echo "#define XP_PC 1" >>confdefs.h 7793 7794 $as_echo "#define BSD_SELECT 1" >>confdefs.h 7795 7796 $as_echo "#define TCPV40HDRS 1" >>confdefs.h 7797 7798 LIB_SUFFIX=lib 7799 DLL_SUFFIX=dll 7800 RC=rc.exe 7801 PR_MD_ARCH_DIR=os2 7802 PROG_SUFFIX=.exe 7803 NSINSTALL=nsinstall 7804 MDCPUCFG_H=_os2.cfg 7805 RESOLVE_LINK_SYMBOLS=1 7806 7807 $as_echo "#define OS2 1" >>confdefs.h 7808 7809 AR=emxomfar 7810 AR_FLAGS='r $@' 7811 CFLAGS="$CFLAGS -Wall -Zomf" 7812 CXXFLAGS="$CFLAGS -Wall -Zomf" 7813 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' 7814 DSO_CFLAGS= 7815 DSO_LDOPTS='-Zomf -Zdll' 7816 LDFLAGS='-Zmap' 7817 _OPTIMIZE_FLAGS="-O2 -s" 7818 _DEBUG_FLAGS="-g -fno-inline" 7819 if test -n "$MOZ_OPTIMIZE"; then 7820 DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA" 7821 fi 7822 IMPLIB='emximp -o' 7823 FILTER='emxexp -o' 7824 if test -n "$MOZ_OS2_HIGH_MEMORY"; then 7825 LDFLAGS="$LDFLAGS -Zhigh-mem" 7826 $as_echo "#define MOZ_OS2_HIGH_MEMORY 1" >>confdefs.h 7827 7828 fi 7829 7830 # GCC for OS/2 currently predefines these, but we don't want them 7831 DEFINES="$DEFINES -Uunix -U__unix -U__unix__" 7832 ;; 7833 7834*) 7835 $as_echo "#define XP_UNIX 1" >>confdefs.h 7836 7837 ;; 7838 7839esac 7840 7841if test -z "$SKIP_LIBRARY_CHECKS"; then 7842 7843 7844 7845case $target in 7846*-darwin*|*-beos*|*-os2*) 7847 ;; 7848*) 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 7850$as_echo_n "checking for dlopen in -ldl... " >&6; } 7851if ${ac_cv_lib_dl_dlopen+:} false; then : 7852 $as_echo_n "(cached) " >&6 7853else 7854 ac_check_lib_save_LIBS=$LIBS 7855LIBS="-ldl $LIBS" 7856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858 7859/* Override any GCC internal prototype to avoid an error. 7860 Use char because int might match the return type of a GCC 7861 builtin and then its argument prototype would still apply. */ 7862#ifdef __cplusplus 7863extern "C" 7864#endif 7865char dlopen (); 7866int 7867main () 7868{ 7869return dlopen (); 7870 ; 7871 return 0; 7872} 7873_ACEOF 7874if ac_fn_c_try_link "$LINENO"; then : 7875 ac_cv_lib_dl_dlopen=yes 7876else 7877 ac_cv_lib_dl_dlopen=no 7878fi 7879rm -f core conftest.err conftest.$ac_objext \ 7880 conftest$ac_exeext conftest.$ac_ext 7881LIBS=$ac_check_lib_save_LIBS 7882fi 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 7884$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 7885if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 7886 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 7887if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7888 OS_LIBS="-ldl $OS_LIBS" 7889fi 7890 7891 7892fi 7893 7894 ;; 7895esac 7896 7897 7898 7899 7900if test $ac_cv_c_compiler_gnu = yes; then 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 7902$as_echo_n "checking whether $CC needs -traditional... " >&6; } 7903if ${ac_cv_prog_gcc_traditional+:} false; then : 7904 $as_echo_n "(cached) " >&6 7905else 7906 ac_pattern="Autoconf.*'x'" 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909#include <sgtty.h> 7910Autoconf TIOCGETP 7911_ACEOF 7912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7913 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 7914 ac_cv_prog_gcc_traditional=yes 7915else 7916 ac_cv_prog_gcc_traditional=no 7917fi 7918rm -f conftest* 7919 7920 7921 if test $ac_cv_prog_gcc_traditional = no; then 7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7923/* end confdefs.h. */ 7924#include <termio.h> 7925Autoconf TCGETA 7926_ACEOF 7927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7928 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 7929 ac_cv_prog_gcc_traditional=yes 7930fi 7931rm -f conftest* 7932 7933 fi 7934fi 7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 7936$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 7937 if test $ac_cv_prog_gcc_traditional = yes; then 7938 CC="$CC -traditional" 7939 fi 7940fi 7941 7942_SAVE_LIBS="$LIBS" 7943LIBS="$LIBS $OS_LIBS" 7944for ac_func in dladdr gettid lchown setpriority strerror syscall secure_getenv __secure_getenv 7945do : 7946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7947ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7948if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7949 cat >>confdefs.h <<_ACEOF 7950#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7951_ACEOF 7952 7953fi 7954done 7955 7956LIBS="$_SAVE_LIBS" 7957 7958 7959 7960# Check whether --with-ccache was given. 7961if test "${with_ccache+set}" = set; then : 7962 withval=$with_ccache; CCACHE=$withval 7963else 7964 CCACHE="no" 7965fi 7966 7967 7968if test "$CCACHE" != "no"; then 7969 if test -n "$CCACHE"; then 7970 if test "$CCACHE" = "yes"; then 7971 CCACHE= 7972 else 7973 if test ! -e "$CCACHE"; then 7974 as_fn_error $? "$CCACHE not found" "$LINENO" 5 7975 fi 7976 fi 7977 fi 7978 for ac_prog in $CCACHE ccache 7979do 7980 # Extract the first word of "$ac_prog", so it can be a program name with args. 7981set dummy $ac_prog; ac_word=$2 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7983$as_echo_n "checking for $ac_word... " >&6; } 7984if ${ac_cv_path_CCACHE+:} false; then : 7985 $as_echo_n "(cached) " >&6 7986else 7987 case $CCACHE in 7988 [\\/]* | ?:[\\/]*) 7989 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 7990 ;; 7991 *) 7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7993for as_dir in $PATH 7994do 7995 IFS=$as_save_IFS 7996 test -z "$as_dir" && as_dir=. 7997 for ac_exec_ext in '' $ac_executable_extensions; do 7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7999 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8001 break 2 8002 fi 8003done 8004 done 8005IFS=$as_save_IFS 8006 8007 ;; 8008esac 8009fi 8010CCACHE=$ac_cv_path_CCACHE 8011if test -n "$CCACHE"; then 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 8013$as_echo "$CCACHE" >&6; } 8014else 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8016$as_echo "no" >&6; } 8017fi 8018 8019 8020 test -n "$CCACHE" && break 8021done 8022 8023 if test -z "$CCACHE" -o "$CCACHE" = ":"; then 8024 as_fn_error $? "ccache not found" "$LINENO" 5 8025 elif test -x "$CCACHE"; then 8026 CC="$CCACHE $CC" 8027 CXX="$CCACHE $CXX" 8028 else 8029 as_fn_error $? "$CCACHE is not executable" "$LINENO" 5 8030 fi 8031fi 8032 8033# Check whether --enable-strip was given. 8034if test "${enable_strip+set}" = set; then : 8035 enableval=$enable_strip; if test "$enableval" = "yes"; then 8036 ENABLE_STRIP=1 8037 fi 8038fi 8039 8040 8041case "${target_os}" in 8042hpux*) 8043if test -z "$GNU_CC"; then 8044 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for +Olit support" >&5 8046$as_echo_n "checking for +Olit support... " >&6; } 8047if ${ac_cv_hpux_usable_olit_option+:} false; then : 8048 $as_echo_n "(cached) " >&6 8049else 8050 ac_cv_hpux_usable_olit_option=no 8051 rm -f conftest* 8052 echo 'int main() { return 0; }' | cat > conftest.c 8053 ${CC-cc} ${CFLAGS} +Olit=all -o conftest conftest.c > conftest.out 2>&1 8054 if test $? -eq 0; then 8055 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then 8056 ac_cv_hpux_usable_olit_option=yes 8057 fi 8058 fi 8059 rm -f conftest* 8060 8061fi 8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_usable_olit_option" >&5 8063$as_echo "$ac_cv_hpux_usable_olit_option" >&6; } 8064 8065 if test "$ac_cv_hpux_usable_olit_option" = "yes"; then 8066 CFLAGS="$CFLAGS +Olit=all" 8067 CXXFLAGS="$CXXFLAGS +Olit=all" 8068 else 8069 CFLAGS="$CFLAGS +ESlit" 8070 CXXFLAGS="$CXXFLAGS +ESlit" 8071 fi 8072fi 8073;; 8074esac 8075 8076case "$target_os" in 8077darwin*) 8078 _HAVE_PTHREADS=1 8079 ;; 8080*) 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 8082$as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 8083if ${ac_cv_lib_pthreads_pthread_create+:} false; then : 8084 $as_echo_n "(cached) " >&6 8085else 8086 ac_check_lib_save_LIBS=$LIBS 8087LIBS="-lpthreads $LIBS" 8088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8089/* end confdefs.h. */ 8090 8091/* Override any GCC internal prototype to avoid an error. 8092 Use char because int might match the return type of a GCC 8093 builtin and then its argument prototype would still apply. */ 8094#ifdef __cplusplus 8095extern "C" 8096#endif 8097char pthread_create (); 8098int 8099main () 8100{ 8101return pthread_create (); 8102 ; 8103 return 0; 8104} 8105_ACEOF 8106if ac_fn_c_try_link "$LINENO"; then : 8107 ac_cv_lib_pthreads_pthread_create=yes 8108else 8109 ac_cv_lib_pthreads_pthread_create=no 8110fi 8111rm -f core conftest.err conftest.$ac_objext \ 8112 conftest$ac_exeext conftest.$ac_ext 8113LIBS=$ac_check_lib_save_LIBS 8114fi 8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 8116$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 8117if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : 8118 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads" 8119else 8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 8121$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 8122if ${ac_cv_lib_pthread_pthread_create+:} false; then : 8123 $as_echo_n "(cached) " >&6 8124else 8125 ac_check_lib_save_LIBS=$LIBS 8126LIBS="-lpthread $LIBS" 8127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8128/* end confdefs.h. */ 8129 8130/* Override any GCC internal prototype to avoid an error. 8131 Use char because int might match the return type of a GCC 8132 builtin and then its argument prototype would still apply. */ 8133#ifdef __cplusplus 8134extern "C" 8135#endif 8136char pthread_create (); 8137int 8138main () 8139{ 8140return pthread_create (); 8141 ; 8142 return 0; 8143} 8144_ACEOF 8145if ac_fn_c_try_link "$LINENO"; then : 8146 ac_cv_lib_pthread_pthread_create=yes 8147else 8148 ac_cv_lib_pthread_pthread_create=no 8149fi 8150rm -f core conftest.err conftest.$ac_objext \ 8151 conftest$ac_exeext conftest.$ac_ext 8152LIBS=$ac_check_lib_save_LIBS 8153fi 8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 8155$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 8156if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 8157 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread" 8158else 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 8160$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 8161if ${ac_cv_lib_c_r_pthread_create+:} false; then : 8162 $as_echo_n "(cached) " >&6 8163else 8164 ac_check_lib_save_LIBS=$LIBS 8165LIBS="-lc_r $LIBS" 8166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8167/* end confdefs.h. */ 8168 8169/* Override any GCC internal prototype to avoid an error. 8170 Use char because int might match the return type of a GCC 8171 builtin and then its argument prototype would still apply. */ 8172#ifdef __cplusplus 8173extern "C" 8174#endif 8175char pthread_create (); 8176int 8177main () 8178{ 8179return pthread_create (); 8180 ; 8181 return 0; 8182} 8183_ACEOF 8184if ac_fn_c_try_link "$LINENO"; then : 8185 ac_cv_lib_c_r_pthread_create=yes 8186else 8187 ac_cv_lib_c_r_pthread_create=no 8188fi 8189rm -f core conftest.err conftest.$ac_objext \ 8190 conftest$ac_exeext conftest.$ac_ext 8191LIBS=$ac_check_lib_save_LIBS 8192fi 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 8194$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 8195if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 8196 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r" 8197else 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 8199$as_echo_n "checking for pthread_create in -lc... " >&6; } 8200if ${ac_cv_lib_c_pthread_create+:} false; then : 8201 $as_echo_n "(cached) " >&6 8202else 8203 ac_check_lib_save_LIBS=$LIBS 8204LIBS="-lc $LIBS" 8205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8206/* end confdefs.h. */ 8207 8208/* Override any GCC internal prototype to avoid an error. 8209 Use char because int might match the return type of a GCC 8210 builtin and then its argument prototype would still apply. */ 8211#ifdef __cplusplus 8212extern "C" 8213#endif 8214char pthread_create (); 8215int 8216main () 8217{ 8218return pthread_create (); 8219 ; 8220 return 0; 8221} 8222_ACEOF 8223if ac_fn_c_try_link "$LINENO"; then : 8224 ac_cv_lib_c_pthread_create=yes 8225else 8226 ac_cv_lib_c_pthread_create=no 8227fi 8228rm -f core conftest.err conftest.$ac_objext \ 8229 conftest$ac_exeext conftest.$ac_ext 8230LIBS=$ac_check_lib_save_LIBS 8231fi 8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5 8233$as_echo "$ac_cv_lib_c_pthread_create" >&6; } 8234if test "x$ac_cv_lib_c_pthread_create" = xyes; then : 8235 _HAVE_PTHREADS=1 8236 8237fi 8238 8239 8240fi 8241 8242 8243fi 8244 8245 8246fi 8247 8248 ;; 8249esac 8250 8251 8252# Check whether --with-pthreads was given. 8253if test "${with_pthreads+set}" = set; then : 8254 withval=$with_pthreads; if test "$withval" = "yes"; then 8255 if test -n "$_HAVE_PTHREADS"; then 8256 USE_PTHREADS=1 8257 USE_USER_PTHREADS= 8258 USE_NSPR_THREADS= 8259 else 8260 as_fn_error $? " --with-pthreads specified for a system without pthread support " "$LINENO" 5; 8261 fi 8262 else 8263 USE_PTHREADS= 8264 _PTHREAD_LDFLAGS= 8265 fi 8266else 8267 if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then 8268 USE_PTHREADS=1 8269 USE_USER_PTHREADS= 8270 USE_NSPR_THREADS= 8271 fi 8272fi 8273 8274 8275# Check whether --enable-user-pthreads was given. 8276if test "${enable_user_pthreads+set}" = set; then : 8277 enableval=$enable_user_pthreads; if test "$enableval" = "yes"; then 8278 if test -n "$_HAVE_PTHREADS"; then 8279 USE_PTHREADS= 8280 USE_USER_PTHREADS=1 8281 USE_NSPR_THREADS= 8282 else 8283 as_fn_error $? " --enable-user-pthreads specified for a system without pthread support " "$LINENO" 5; 8284 fi 8285 fi 8286fi 8287 8288 8289# Check whether --enable-nspr-threads was given. 8290if test "${enable_nspr_threads+set}" = set; then : 8291 enableval=$enable_nspr_threads; if test "$enableval" = "yes"; then 8292 USE_PTHREADS= 8293 USE_USER_PTHREADS= 8294 USE_NSPR_THREADS=1 8295 fi 8296fi 8297 8298 8299case "$target" in 8300*-beos*) 8301 8302# Check whether --with-bthreads was given. 8303if test "${with_bthreads+set}" = set; then : 8304 withval=$with_bthreads; if test "$withval" = "yes"; then 8305 USE_BTHREADS=1 8306 USE_USER_PTHREADS= 8307 USE_PTHREADS= 8308 fi 8309fi 8310 8311 ;; 8312esac 8313 8314fi # SKIP_LIBRARY_CHECKS 8315 8316# Check whether --enable-ipv6 was given. 8317if test "${enable_ipv6+set}" = set; then : 8318 enableval=$enable_ipv6; if test "$enableval" = "yes"; then 8319 USE_IPV6=1 8320 else 8321 USE_IPV6= 8322 fi 8323fi 8324 8325 8326if test -n "$USE_PTHREADS"; then 8327 rm -f conftest* 8328 ac_cv_have_dash_pthread=no 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthread" >&5 8330$as_echo_n "checking whether ${CC-cc} accepts -pthread... " >&6; } 8331 echo 'int main() { return 0; }' | cat > conftest.c 8332 ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 8333 if test $? -eq 0; then 8334 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then 8335 ac_cv_have_dash_pthread=yes 8336 case "$target_os" in 8337 freebsd*) 8338# Freebsd doesn't use -pthread for compiles, it uses them for linking 8339 ;; 8340 *) 8341 CFLAGS="$CFLAGS -pthread" 8342 CXXFLAGS="$CXXFLAGS -pthread" 8343 ;; 8344 esac 8345 fi 8346 fi 8347 rm -f conftest* 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthread" >&5 8349$as_echo "$ac_cv_have_dash_pthread" >&6; } 8350 8351 ac_cv_have_dash_pthreads=no 8352 if test "$ac_cv_have_dash_pthread" = "no"; then 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthreads" >&5 8354$as_echo_n "checking whether ${CC-cc} accepts -pthreads... " >&6; } 8355 echo 'int main() { return 0; }' | cat > conftest.c 8356 ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 8357 if test $? -eq 0; then 8358 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then 8359 ac_cv_have_dash_pthreads=yes 8360 CFLAGS="$CFLAGS -pthreads" 8361 CXXFLAGS="$CXXFLAGS -pthreads" 8362 fi 8363 fi 8364 rm -f conftest* 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthreads" >&5 8366$as_echo "$ac_cv_have_dash_pthreads" >&6; } 8367 fi 8368 8369 case "$target" in 8370 *-solaris*) 8371 if test "$ac_cv_have_dash_pthreads" = "yes"; then 8372 _PTHREAD_LDFLAGS= 8373 fi 8374 ;; 8375 *-freebsd*) 8376 $as_echo "#define _REENTRANT 1" >>confdefs.h 8377 8378 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h 8379 8380 if test "$ac_cv_have_dash_pthread" = "yes"; then 8381 _PTHREAD_LDFLAGS="-pthread" 8382 else 8383 _PTHREAD_LDFLAGS="-lc_r" 8384 fi 8385 ;; 8386 *-netbsd*) 8387 if test "$ac_cv_have_dash_pthread" = "yes"; then 8388 _PTHREAD_LDFLAGS="-pthread" 8389 fi 8390 ;; 8391 *-bsdi*) 8392 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h 8393 8394 if test "$ac_cv_have_dash_pthread" = "yes"; then 8395 _PTHREAD_LDFLAGS= 8396 fi 8397 ;; 8398 *-openbsd*) 8399 if test "$ac_cv_have_dash_pthread" = "yes"; then 8400 _PTHREAD_LDFLAGS=-pthread 8401 fi 8402 ;; 8403 *-linux*|*-gnu*|*-k*bsd*-gnu) 8404 $as_echo "#define _REENTRANT 1" >>confdefs.h 8405 8406 ;; 8407 esac 8408 8409else 8410 if test -n "$USE_USER_PTHREADS"; then 8411 USE_PTHREADS= 8412 USE_NSPR_THREADS= 8413 else 8414 _PTHREAD_LDFLAGS= 8415 fi 8416fi 8417 8418case "$target" in 8419*-aix*) 8420 if test -n "$USE_NSPR_THREADS"; then 8421 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8422 8423 fi 8424 case "$target_os" in 8425 aix4.1*) 8426 if test -z "$USE_PTHREADS"; then 8427 $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h 8428 8429 fi 8430 ;; 8431 aix4.2*) 8432 if test -z "$USE_NSPR_THREADS"; then 8433 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 8434 8435 fi 8436 ;; 8437 aix4.3*) 8438 if test -z "$USE_NSPR_THREADS"; then 8439 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 8440 8441 fi 8442 if test -n "$USE_PTHREADS"; then 8443 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h 8444 8445 fi 8446 ;; 8447 *) 8448 if test -z "$USE_NSPR_THREADS"; then 8449 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 8450 8451 fi 8452 if test -n "$USE_PTHREADS"; then 8453 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h 8454 8455 fi 8456 ;; 8457 esac 8458 ;; 8459*-bsdi*) 8460 if test -n "$USE_PTHREADS"; then 8461 $as_echo "#define _PR_NEED_PTHREAD_INIT 1" >>confdefs.h 8462 8463 fi 8464 ;; 8465*-freebsd*) 8466 if test -n "$USE_NSPR_THREADS"; then 8467 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8468 8469 fi 8470 ;; 8471*-hpux*) 8472 if test -n "$USE_NSPR_THREADS"; then 8473 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8474 8475 fi 8476 if test "$USE_PTHREADS"; then 8477 cat >>confdefs.h <<_ACEOF 8478#define _POSIX_C_SOURCE 199506L 8479_ACEOF 8480 8481 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h 8482 8483 fi 8484 if test "$USE_USER_PTHREADS"; then 8485 cat >>confdefs.h <<_ACEOF 8486#define _POSIX_C_SOURCE 199506L 8487_ACEOF 8488 8489 fi 8490 ;; 8491*-irix*) 8492 if test "${target_os}" = "irix6.5"; then 8493 if test -n "$USE_PTHREADS"; then 8494 $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h 8495 8496 $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h 8497 8498 fi 8499 fi 8500 ;; 8501*-linux*|*-gnu*|*-k*bsd*-gnu) 8502 if test -n "$USE_NSPR_THREADS"; then 8503 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8504 8505 fi 8506 ;; 8507*-mingw*|*-msys*|*-cygwin*|*-mks*|*-os2*|*-beos*) 8508 USE_PTHREADS= 8509 _PTHREAD_LDFLAGS= 8510 USE_USER_PTHREADS= 8511 ;; 8512*-netbsd*|*-openbsd*) 8513 if test -n "$USE_NSPR_THREADS"; then 8514 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8515 8516 fi 8517 ;; 8518*-osf*) 8519 if test -n "$USE_NSPR_THREADS"; then 8520 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8521 8522 fi 8523 if test -n "$USE_PTHREADS"; then 8524 if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then 8525 : 8526 else 8527 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h 8528 8529 fi 8530 fi 8531 ;; 8532*-solaris*) 8533 if test -n "$USE_NSPR_THREADS"; then 8534 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h 8535 8536 fi 8537 if test -n "$USE_PTHREADS"; then 8538 $as_echo "#define _REENTRANT 1" >>confdefs.h 8539 8540 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h 8541 8542 if test "$OS_TEST" = "i86pc"; then 8543 if test -n "$USE_64"; then 8544 PR_MD_ASFILES=os_SunOS_x86_64.s 8545 else 8546 PR_MD_ASFILES=os_SunOS_x86.s 8547 fi 8548 else 8549 if test -n "$USE_64"; then 8550 PR_MD_ASFILES=os_SunOS_sparcv9.s 8551 fi 8552 fi 8553 fi 8554 ;; 8555*-nto*) 8556 if test -n "$USE_PTHREADS"; then 8557 $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h 8558 8559 $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h 8560 8561 fi 8562 ;; 8563esac 8564 8565OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS" 8566 8567if test -n "$_SAVE_OPTIMIZE_FLAGS"; then 8568 _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS" 8569fi 8570 8571if test -n "$_SAVE_DEBUG_FLAGS"; then 8572 _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS" 8573fi 8574 8575if test -n "$MOZ_OPTIMIZE"; then 8576 CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS" 8577 CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS" 8578fi 8579 8580if test -n "$MOZ_DEBUG_SYMBOLS"; then 8581 CFLAGS="$CFLAGS $_DEBUG_FLAGS" 8582 CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS" 8583fi 8584 8585if test -n "$MOZ_OPTIMIZE"; then 8586 OBJDIR_TAG=_OPT 8587else 8588 OBJDIR_TAG=_DBG 8589fi 8590 8591if test -n "$USE_64"; then 8592 COMPILER_TAG=_64 8593fi 8594 8595RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}" 8596 8597case "$target_os" in 8598cygwin*|mks*) 8599 CC="\$(CYGWIN_WRAPPER) $CC" 8600 CXX="\$(CYGWIN_WRAPPER) $CXX" 8601 RC="\$(CYGWIN_WRAPPER) $RC" 8602 ;; 8603esac 8604 8605# Check whether --enable-wrap-malloc was given. 8606if test "${enable_wrap_malloc+set}" = set; then : 8607 enableval=$enable_wrap_malloc; if test "$enableval" = "yes"; then 8608 _WRAP_MALLOC=1 8609 fi 8610fi 8611 8612 8613if test -n "$_WRAP_MALLOC"; then 8614 if test -n "$GNU_CC"; then 8615 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=malloc,--wrap=calloc,--wrap=valloc,--wrap=free,--wrap=realloc,--wrap=memalign" 8616 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=__builtin_new,--wrap=__builtin_vec_new,--wrap=__builtin_delete,--wrap=__builtin_vec_delete" 8617 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=strdup,--wrap=strndup" 8618 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=posix_memalign,--wrap=malloc_usable_size" 8619 else 8620 as_fn_error $? "--enable-wrap-malloc is not supported for non-GNU toolchains" "$LINENO" 5 8621 fi 8622fi 8623 8624 8625# Check whether --with-wrap-malloc was given. 8626if test "${with_wrap_malloc+set}" = set; then : 8627 withval=$with_wrap_malloc; WRAP_LDFLAGS="${WRAP_LDFLAGS} $withval" 8628fi 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736MAKEFILES=" 8737 Makefile 8738 config/Makefile 8739 config/autoconf.mk 8740 config/nsprincl.mk 8741 config/nsprincl.sh 8742 config/nspr-config 8743 config/nspr.pc 8744 lib/Makefile 8745 lib/ds/Makefile 8746 lib/libc/Makefile 8747 lib/libc/include/Makefile 8748 lib/libc/src/Makefile 8749 lib/tests/Makefile 8750 pkg/Makefile 8751 pr/Makefile 8752 pr/include/Makefile 8753 pr/include/md/Makefile 8754 pr/include/obsolete/Makefile 8755 pr/include/private/Makefile 8756 pr/src/Makefile 8757 pr/src/io/Makefile 8758 pr/src/linking/Makefile 8759 pr/src/malloc/Makefile 8760 pr/src/md/Makefile 8761 pr/src/md/${PR_MD_ARCH_DIR}/Makefile 8762 pr/src/memory/Makefile 8763 pr/src/misc/Makefile 8764 pr/src/threads/Makefile 8765 pr/tests/Makefile 8766 pr/tests/dll/Makefile 8767" 8768 8769if test "$OS_TARGET" = "Linux"; then 8770 MAKEFILES="$MAKEFILES 8771 pkg/linux/Makefile 8772 " 8773elif test "$OS_TARGET" = "SunOS"; then 8774 MAKEFILES="$MAKEFILES 8775 pkg/solaris/Makefile 8776 pkg/solaris/SUNWpr/Makefile 8777 pkg/solaris/SUNWprd/Makefile 8778 " 8779fi 8780 8781if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then 8782 MAKEFILES="$MAKEFILES 8783 pr/src/threads/combined/Makefile 8784 " 8785elif test -n "$USE_PTHREADS"; then 8786 MAKEFILES="$MAKEFILES 8787 pr/src/pthreads/Makefile 8788 " 8789elif test -n "$USE_BTHREADS"; then 8790 MAKEFILES="$MAKEFILES 8791 pr/src/bthreads/Makefile 8792 " 8793fi 8794 8795if test -n "$USE_CPLUS"; then 8796 MAKEFILES="$MAKEFILES 8797 pr/src/cplus/Makefile 8798 pr/src/cplus/tests/Makefile 8799 " 8800fi 8801 8802echo $MAKEFILES > unallmakefiles 8803 8804ac_config_files="$ac_config_files $MAKEFILES" 8805 8806ac_config_commands="$ac_config_commands default" 8807 8808cat >confcache <<\_ACEOF 8809# This file is a shell script that caches the results of configure 8810# tests run on this system so they can be shared between configure 8811# scripts and configure runs, see configure's option --config-cache. 8812# It is not useful on other systems. If it contains results you don't 8813# want to keep, you may remove or edit it. 8814# 8815# config.status only pays attention to the cache file if you give it 8816# the --recheck option to rerun configure. 8817# 8818# `ac_cv_env_foo' variables (set or unset) will be overridden when 8819# loading this file, other *unset* `ac_cv_foo' will be assigned the 8820# following values. 8821 8822_ACEOF 8823 8824# The following way of writing the cache mishandles newlines in values, 8825# but we know of no workaround that is simple, portable, and efficient. 8826# So, we kill variables containing newlines. 8827# Ultrix sh set writes to stderr and can't be redirected directly, 8828# and sets the high bit in the cache file unless we assign to the vars. 8829( 8830 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8831 eval ac_val=\$$ac_var 8832 case $ac_val in #( 8833 *${as_nl}*) 8834 case $ac_var in #( 8835 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8836$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8837 esac 8838 case $ac_var in #( 8839 _ | IFS | as_nl) ;; #( 8840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8841 *) { eval $ac_var=; unset $ac_var;} ;; 8842 esac ;; 8843 esac 8844 done 8845 8846 (set) 2>&1 | 8847 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8848 *${as_nl}ac_space=\ *) 8849 # `set' does not quote correctly, so add quotes: double-quote 8850 # substitution turns \\\\ into \\, and sed turns \\ into \. 8851 sed -n \ 8852 "s/'/'\\\\''/g; 8853 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8854 ;; #( 8855 *) 8856 # `set' quotes correctly as required by POSIX, so do not add quotes. 8857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8858 ;; 8859 esac | 8860 sort 8861) | 8862 sed ' 8863 /^ac_cv_env_/b end 8864 t clear 8865 :clear 8866 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8867 t end 8868 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8869 :end' >>confcache 8870if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8871 if test -w "$cache_file"; then 8872 if test "x$cache_file" != "x/dev/null"; then 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8874$as_echo "$as_me: updating cache $cache_file" >&6;} 8875 if test ! -f "$cache_file" || test -h "$cache_file"; then 8876 cat confcache >"$cache_file" 8877 else 8878 case $cache_file in #( 8879 */* | ?:*) 8880 mv -f confcache "$cache_file"$$ && 8881 mv -f "$cache_file"$$ "$cache_file" ;; #( 8882 *) 8883 mv -f confcache "$cache_file" ;; 8884 esac 8885 fi 8886 fi 8887 else 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8889$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8890 fi 8891fi 8892rm -f confcache 8893 8894test "x$prefix" = xNONE && prefix=$ac_default_prefix 8895# Let make expand exec_prefix. 8896test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8897 8898# Transform confdefs.h into DEFS. 8899# Protect against shell expansion while executing Makefile rules. 8900# Protect against Makefile macro expansion. 8901# 8902# If the first sed substitution is executed (which looks for macros that 8903# take arguments), then branch to the quote section. Otherwise, 8904# look for a macro that doesn't take arguments. 8905ac_script=' 8906:mline 8907/\\$/{ 8908 N 8909 s,\\\n,, 8910 b mline 8911} 8912t clear 8913:clear 8914s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 8915t quote 8916s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 8917t quote 8918b any 8919:quote 8920s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 8921s/\[/\\&/g 8922s/\]/\\&/g 8923s/\$/$$/g 8924H 8925:any 8926${ 8927 g 8928 s/^\n// 8929 s/\n/ /g 8930 p 8931} 8932' 8933DEFS=`sed -n "$ac_script" confdefs.h` 8934 8935 8936ac_libobjs= 8937ac_ltlibobjs= 8938U= 8939for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8940 # 1. Remove the extension, and $U if already installed. 8941 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8942 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8943 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8944 # will be set to the directory where LIBOBJS objects are built. 8945 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8946 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8947done 8948LIBOBJS=$ac_libobjs 8949 8950LTLIBOBJS=$ac_ltlibobjs 8951 8952 8953 8954: "${CONFIG_STATUS=./config.status}" 8955ac_write_fail=0 8956ac_clean_files_save=$ac_clean_files 8957ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8958{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8959$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8960as_write_fail=0 8961cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8962#! $SHELL 8963# Generated by $as_me. 8964# Run this file to recreate the current configuration. 8965# Compiler output produced by configure, useful for debugging 8966# configure, is in config.log if it exists. 8967 8968debug=false 8969ac_cs_recheck=false 8970ac_cs_silent=false 8971 8972SHELL=\${CONFIG_SHELL-$SHELL} 8973export SHELL 8974_ASEOF 8975cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8976## -------------------- ## 8977## M4sh Initialization. ## 8978## -------------------- ## 8979 8980# Be more Bourne compatible 8981DUALCASE=1; export DUALCASE # for MKS sh 8982if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8983 emulate sh 8984 NULLCMD=: 8985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8986 # is contrary to our usage. Disable this feature. 8987 alias -g '${1+"$@"}'='"$@"' 8988 setopt NO_GLOB_SUBST 8989else 8990 case `(set -o) 2>/dev/null` in #( 8991 *posix*) : 8992 set -o posix ;; #( 8993 *) : 8994 ;; 8995esac 8996fi 8997 8998 8999as_nl=' 9000' 9001export as_nl 9002# Printing a long string crashes Solaris 7 /usr/bin/printf. 9003as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9004as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9005as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9006# Prefer a ksh shell builtin over an external printf program on Solaris, 9007# but without wasting forks for bash or zsh. 9008if test -z "$BASH_VERSION$ZSH_VERSION" \ 9009 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9010 as_echo='print -r --' 9011 as_echo_n='print -rn --' 9012elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9013 as_echo='printf %s\n' 9014 as_echo_n='printf %s' 9015else 9016 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9017 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9018 as_echo_n='/usr/ucb/echo -n' 9019 else 9020 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9021 as_echo_n_body='eval 9022 arg=$1; 9023 case $arg in #( 9024 *"$as_nl"*) 9025 expr "X$arg" : "X\\(.*\\)$as_nl"; 9026 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9027 esac; 9028 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 9029 ' 9030 export as_echo_n_body 9031 as_echo_n='sh -c $as_echo_n_body as_echo' 9032 fi 9033 export as_echo_body 9034 as_echo='sh -c $as_echo_body as_echo' 9035fi 9036 9037# The user is always right. 9038if test "${PATH_SEPARATOR+set}" != set; then 9039 PATH_SEPARATOR=: 9040 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9041 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9042 PATH_SEPARATOR=';' 9043 } 9044fi 9045 9046 9047# IFS 9048# We need space, tab and new line, in precisely that order. Quoting is 9049# there to prevent editors from complaining about space-tab. 9050# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9051# splitting by setting IFS to empty value.) 9052IFS=" "" $as_nl" 9053 9054# Find who we are. Look in the path if we contain no directory separator. 9055as_myself= 9056case $0 in #(( 9057 *[\\/]* ) as_myself=$0 ;; 9058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9059for as_dir in $PATH 9060do 9061 IFS=$as_save_IFS 9062 test -z "$as_dir" && as_dir=. 9063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9064 done 9065IFS=$as_save_IFS 9066 9067 ;; 9068esac 9069# We did not find ourselves, most probably we were run as `sh COMMAND' 9070# in which case we are not to be found in the path. 9071if test "x$as_myself" = x; then 9072 as_myself=$0 9073fi 9074if test ! -f "$as_myself"; then 9075 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9076 exit 1 9077fi 9078 9079# Unset variables that we do not need and which cause bugs (e.g. in 9080# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9081# suppresses any "Segmentation fault" message there. '((' could 9082# trigger a bug in pdksh 5.2.14. 9083for as_var in BASH_ENV ENV MAIL MAILPATH 9084do eval test x\${$as_var+set} = xset \ 9085 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9086done 9087PS1='$ ' 9088PS2='> ' 9089PS4='+ ' 9090 9091# NLS nuisances. 9092LC_ALL=C 9093export LC_ALL 9094LANGUAGE=C 9095export LANGUAGE 9096 9097# CDPATH. 9098(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9099 9100 9101# as_fn_error STATUS ERROR [LINENO LOG_FD] 9102# ---------------------------------------- 9103# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9104# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9105# script with STATUS, using 1 if that was 0. 9106as_fn_error () 9107{ 9108 as_status=$1; test $as_status -eq 0 && as_status=1 9109 if test "$4"; then 9110 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9111 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9112 fi 9113 $as_echo "$as_me: error: $2" >&2 9114 as_fn_exit $as_status 9115} # as_fn_error 9116 9117 9118# as_fn_set_status STATUS 9119# ----------------------- 9120# Set $? to STATUS, without forking. 9121as_fn_set_status () 9122{ 9123 return $1 9124} # as_fn_set_status 9125 9126# as_fn_exit STATUS 9127# ----------------- 9128# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9129as_fn_exit () 9130{ 9131 set +e 9132 as_fn_set_status $1 9133 exit $1 9134} # as_fn_exit 9135 9136# as_fn_unset VAR 9137# --------------- 9138# Portably unset VAR. 9139as_fn_unset () 9140{ 9141 { eval $1=; unset $1;} 9142} 9143as_unset=as_fn_unset 9144# as_fn_append VAR VALUE 9145# ---------------------- 9146# Append the text in VALUE to the end of the definition contained in VAR. Take 9147# advantage of any shell optimizations that allow amortized linear growth over 9148# repeated appends, instead of the typical quadratic growth present in naive 9149# implementations. 9150if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9151 eval 'as_fn_append () 9152 { 9153 eval $1+=\$2 9154 }' 9155else 9156 as_fn_append () 9157 { 9158 eval $1=\$$1\$2 9159 } 9160fi # as_fn_append 9161 9162# as_fn_arith ARG... 9163# ------------------ 9164# Perform arithmetic evaluation on the ARGs, and store the result in the 9165# global $as_val. Take advantage of shells that can avoid forks. The arguments 9166# must be portable across $(()) and expr. 9167if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9168 eval 'as_fn_arith () 9169 { 9170 as_val=$(( $* )) 9171 }' 9172else 9173 as_fn_arith () 9174 { 9175 as_val=`expr "$@" || test $? -eq 1` 9176 } 9177fi # as_fn_arith 9178 9179 9180if expr a : '\(a\)' >/dev/null 2>&1 && 9181 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9182 as_expr=expr 9183else 9184 as_expr=false 9185fi 9186 9187if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9188 as_basename=basename 9189else 9190 as_basename=false 9191fi 9192 9193if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9194 as_dirname=dirname 9195else 9196 as_dirname=false 9197fi 9198 9199as_me=`$as_basename -- "$0" || 9200$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9201 X"$0" : 'X\(//\)$' \| \ 9202 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9203$as_echo X/"$0" | 9204 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9205 s//\1/ 9206 q 9207 } 9208 /^X\/\(\/\/\)$/{ 9209 s//\1/ 9210 q 9211 } 9212 /^X\/\(\/\).*/{ 9213 s//\1/ 9214 q 9215 } 9216 s/.*/./; q'` 9217 9218# Avoid depending upon Character Ranges. 9219as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9220as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9221as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9222as_cr_digits='0123456789' 9223as_cr_alnum=$as_cr_Letters$as_cr_digits 9224 9225ECHO_C= ECHO_N= ECHO_T= 9226case `echo -n x` in #((((( 9227-n*) 9228 case `echo 'xy\c'` in 9229 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9230 xy) ECHO_C='\c';; 9231 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9232 ECHO_T=' ';; 9233 esac;; 9234*) 9235 ECHO_N='-n';; 9236esac 9237 9238rm -f conf$$ conf$$.exe conf$$.file 9239if test -d conf$$.dir; then 9240 rm -f conf$$.dir/conf$$.file 9241else 9242 rm -f conf$$.dir 9243 mkdir conf$$.dir 2>/dev/null 9244fi 9245if (echo >conf$$.file) 2>/dev/null; then 9246 if ln -s conf$$.file conf$$ 2>/dev/null; then 9247 as_ln_s='ln -s' 9248 # ... but there are two gotchas: 9249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9251 # In both cases, we have to default to `cp -pR'. 9252 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9253 as_ln_s='cp -pR' 9254 elif ln conf$$.file conf$$ 2>/dev/null; then 9255 as_ln_s=ln 9256 else 9257 as_ln_s='cp -pR' 9258 fi 9259else 9260 as_ln_s='cp -pR' 9261fi 9262rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9263rmdir conf$$.dir 2>/dev/null 9264 9265 9266# as_fn_mkdir_p 9267# ------------- 9268# Create "$as_dir" as a directory, including parents if necessary. 9269as_fn_mkdir_p () 9270{ 9271 9272 case $as_dir in #( 9273 -*) as_dir=./$as_dir;; 9274 esac 9275 test -d "$as_dir" || eval $as_mkdir_p || { 9276 as_dirs= 9277 while :; do 9278 case $as_dir in #( 9279 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9280 *) as_qdir=$as_dir;; 9281 esac 9282 as_dirs="'$as_qdir' $as_dirs" 9283 as_dir=`$as_dirname -- "$as_dir" || 9284$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9285 X"$as_dir" : 'X\(//\)[^/]' \| \ 9286 X"$as_dir" : 'X\(//\)$' \| \ 9287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9288$as_echo X"$as_dir" | 9289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9290 s//\1/ 9291 q 9292 } 9293 /^X\(\/\/\)[^/].*/{ 9294 s//\1/ 9295 q 9296 } 9297 /^X\(\/\/\)$/{ 9298 s//\1/ 9299 q 9300 } 9301 /^X\(\/\).*/{ 9302 s//\1/ 9303 q 9304 } 9305 s/.*/./; q'` 9306 test -d "$as_dir" && break 9307 done 9308 test -z "$as_dirs" || eval "mkdir $as_dirs" 9309 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 9310 9311 9312} # as_fn_mkdir_p 9313if mkdir -p . 2>/dev/null; then 9314 as_mkdir_p='mkdir -p "$as_dir"' 9315else 9316 test -d ./-p && rmdir ./-p 9317 as_mkdir_p=false 9318fi 9319 9320 9321# as_fn_executable_p FILE 9322# ----------------------- 9323# Test if FILE is an executable regular file. 9324as_fn_executable_p () 9325{ 9326 test -f "$1" && test -x "$1" 9327} # as_fn_executable_p 9328as_test_x='test -x' 9329as_executable_p=as_fn_executable_p 9330 9331# Sed expression to map a string onto a valid CPP name. 9332as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9333 9334# Sed expression to map a string onto a valid variable name. 9335as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9336 9337 9338exec 6>&1 9339## ----------------------------------- ## 9340## Main body of $CONFIG_STATUS script. ## 9341## ----------------------------------- ## 9342_ASEOF 9343test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 9344 9345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9346# Save the log message, to keep $0 and so on meaningful, and to 9347# report actual input values of CONFIG_FILES etc. instead of their 9348# values after options handling. 9349ac_log=" 9350This file was extended by $as_me, which was 9351generated by GNU Autoconf 2.69. Invocation command line was 9352 9353 CONFIG_FILES = $CONFIG_FILES 9354 CONFIG_HEADERS = $CONFIG_HEADERS 9355 CONFIG_LINKS = $CONFIG_LINKS 9356 CONFIG_COMMANDS = $CONFIG_COMMANDS 9357 $ $0 $@ 9358 9359on `(hostname || uname -n) 2>/dev/null | sed 1q` 9360" 9361 9362_ACEOF 9363 9364case $ac_config_files in *" 9365"*) set x $ac_config_files; shift; ac_config_files=$*;; 9366esac 9367 9368 9369 9370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9371# Files that config.status was made for. 9372config_files="$ac_config_files" 9373config_commands="$ac_config_commands" 9374 9375_ACEOF 9376 9377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9378ac_cs_usage="\ 9379\`$as_me' instantiates files and other configuration actions 9380from templates according to the current configuration. Unless the files 9381and actions are specified as TAGs, all are instantiated by default. 9382 9383Usage: $0 [OPTION]... [TAG]... 9384 9385 -h, --help print this help, then exit 9386 -V, --version print version number and configuration settings, then exit 9387 --config print configuration, then exit 9388 -q, --quiet, --silent 9389 do not print progress messages 9390 -d, --debug don't remove temporary files 9391 --recheck update $as_me by reconfiguring in the same conditions 9392 --file=FILE[:TEMPLATE] 9393 instantiate the configuration file FILE 9394 9395Configuration files: 9396$config_files 9397 9398Configuration commands: 9399$config_commands 9400 9401Report bugs to the package provider." 9402 9403_ACEOF 9404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9405ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9406ac_cs_version="\\ 9407config.status 9408configured by $0, generated by GNU Autoconf 2.69, 9409 with options \\"\$ac_cs_config\\" 9410 9411Copyright (C) 2012 Free Software Foundation, Inc. 9412This config.status script is free software; the Free Software Foundation 9413gives unlimited permission to copy, distribute and modify it." 9414 9415ac_pwd='$ac_pwd' 9416srcdir='$srcdir' 9417test -n "\$AWK" || AWK=awk 9418_ACEOF 9419 9420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9421# The default lists apply if the user does not specify any file. 9422ac_need_defaults=: 9423while test $# != 0 9424do 9425 case $1 in 9426 --*=?*) 9427 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9428 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9429 ac_shift=: 9430 ;; 9431 --*=) 9432 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9433 ac_optarg= 9434 ac_shift=: 9435 ;; 9436 *) 9437 ac_option=$1 9438 ac_optarg=$2 9439 ac_shift=shift 9440 ;; 9441 esac 9442 9443 case $ac_option in 9444 # Handling of the options. 9445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9446 ac_cs_recheck=: ;; 9447 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9448 $as_echo "$ac_cs_version"; exit ;; 9449 --config | --confi | --conf | --con | --co | --c ) 9450 $as_echo "$ac_cs_config"; exit ;; 9451 --debug | --debu | --deb | --de | --d | -d ) 9452 debug=: ;; 9453 --file | --fil | --fi | --f ) 9454 $ac_shift 9455 case $ac_optarg in 9456 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9457 '') as_fn_error $? "missing file argument" ;; 9458 esac 9459 as_fn_append CONFIG_FILES " '$ac_optarg'" 9460 ac_need_defaults=false;; 9461 --he | --h | --help | --hel | -h ) 9462 $as_echo "$ac_cs_usage"; exit ;; 9463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9464 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9465 ac_cs_silent=: ;; 9466 9467 # This is an error. 9468 -*) as_fn_error $? "unrecognized option: \`$1' 9469Try \`$0 --help' for more information." ;; 9470 9471 *) as_fn_append ac_config_targets " $1" 9472 ac_need_defaults=false ;; 9473 9474 esac 9475 shift 9476done 9477 9478ac_configure_extra_args= 9479 9480if $ac_cs_silent; then 9481 exec 6>/dev/null 9482 ac_configure_extra_args="$ac_configure_extra_args --silent" 9483fi 9484 9485_ACEOF 9486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9487if \$ac_cs_recheck; then 9488 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9489 shift 9490 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9491 CONFIG_SHELL='$SHELL' 9492 export CONFIG_SHELL 9493 exec "\$@" 9494fi 9495 9496_ACEOF 9497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9498exec 5>>config.log 9499{ 9500 echo 9501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9502## Running $as_me. ## 9503_ASBOX 9504 $as_echo "$ac_log" 9505} >&5 9506 9507_ACEOF 9508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9509_ACEOF 9510 9511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9512 9513# Handling of arguments. 9514for ac_config_target in $ac_config_targets 9515do 9516 case $ac_config_target in 9517 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;; 9518 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 9519 9520 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9521 esac 9522done 9523 9524 9525# If the user did not use the arguments to specify the items to instantiate, 9526# then the envvar interface is used. Set only those that are not. 9527# We use the long form for the default assignment because of an extremely 9528# bizarre bug on SunOS 4.1.3. 9529if $ac_need_defaults; then 9530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9531 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9532fi 9533 9534# Have a temporary directory for convenience. Make it in the build tree 9535# simply because there is no reason against having it here, and in addition, 9536# creating and moving files from /tmp can sometimes cause problems. 9537# Hook for its removal unless debugging. 9538# Note that there is a small window in which the directory will not be cleaned: 9539# after its creation but before its name has been assigned to `$tmp'. 9540$debug || 9541{ 9542 tmp= ac_tmp= 9543 trap 'exit_status=$? 9544 : "${ac_tmp:=$tmp}" 9545 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 9546' 0 9547 trap 'as_fn_exit 1' 1 2 13 15 9548} 9549# Create a (secure) tmp directory for tmp files. 9550 9551{ 9552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9553 test -d "$tmp" 9554} || 9555{ 9556 tmp=./conf$$-$RANDOM 9557 (umask 077 && mkdir "$tmp") 9558} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9559ac_tmp=$tmp 9560 9561# Set up the scripts for CONFIG_FILES section. 9562# No need to generate them if there are no CONFIG_FILES. 9563# This happens for instance with `./config.status config.h'. 9564if test -n "$CONFIG_FILES"; then 9565 9566 9567ac_cr=`echo X | tr X '\015'` 9568# On cygwin, bash can eat \r inside `` if the user requested igncr. 9569# But we know of no other shell where ac_cr would be empty at this 9570# point, so we can use a bashism as a fallback. 9571if test "x$ac_cr" = x; then 9572 eval ac_cr=\$\'\\r\' 9573fi 9574ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9575if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9576 ac_cs_awk_cr='\\r' 9577else 9578 ac_cs_awk_cr=$ac_cr 9579fi 9580 9581echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 9582_ACEOF 9583 9584 9585{ 9586 echo "cat >conf$$subs.awk <<_ACEOF" && 9587 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9588 echo "_ACEOF" 9589} >conf$$subs.sh || 9590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9591ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9592ac_delim='%!_!# ' 9593for ac_last_try in false false false false false :; do 9594 . ./conf$$subs.sh || 9595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9596 9597 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9598 if test $ac_delim_n = $ac_delim_num; then 9599 break 9600 elif $ac_last_try; then 9601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9602 else 9603 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9604 fi 9605done 9606rm -f conf$$subs.sh 9607 9608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9609cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9610_ACEOF 9611sed -n ' 9612h 9613s/^/S["/; s/!.*/"]=/ 9614p 9615g 9616s/^[^!]*!// 9617:repl 9618t repl 9619s/'"$ac_delim"'$// 9620t delim 9621:nl 9622h 9623s/\(.\{148\}\)..*/\1/ 9624t more1 9625s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9626p 9627n 9628b repl 9629:more1 9630s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9631p 9632g 9633s/.\{148\}// 9634t nl 9635:delim 9636h 9637s/\(.\{148\}\)..*/\1/ 9638t more2 9639s/["\\]/\\&/g; s/^/"/; s/$/"/ 9640p 9641b 9642:more2 9643s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9644p 9645g 9646s/.\{148\}// 9647t delim 9648' <conf$$subs.awk | sed ' 9649/^[^""]/{ 9650 N 9651 s/\n// 9652} 9653' >>$CONFIG_STATUS || ac_write_fail=1 9654rm -f conf$$subs.awk 9655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9656_ACAWK 9657cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9658 for (key in S) S_is_set[key] = 1 9659 FS = "" 9660 9661} 9662{ 9663 line = $ 0 9664 nfields = split(line, field, "@") 9665 substed = 0 9666 len = length(field[1]) 9667 for (i = 2; i < nfields; i++) { 9668 key = field[i] 9669 keylen = length(key) 9670 if (S_is_set[key]) { 9671 value = S[key] 9672 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9673 len += length(value) + length(field[++i]) 9674 substed = 1 9675 } else 9676 len += 1 + keylen 9677 } 9678 9679 print line 9680} 9681 9682_ACAWK 9683_ACEOF 9684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9685if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9686 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9687else 9688 cat 9689fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9690 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9691_ACEOF 9692 9693# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9694# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9695# trailing colons and then remove the whole line if VPATH becomes empty 9696# (actually we leave an empty line to preserve line numbers). 9697if test "x$srcdir" = x.; then 9698 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9699h 9700s/// 9701s/^/:/ 9702s/[ ]*$/:/ 9703s/:\$(srcdir):/:/g 9704s/:\${srcdir}:/:/g 9705s/:@srcdir@:/:/g 9706s/^:*// 9707s/:*$// 9708x 9709s/\(=[ ]*\).*/\1/ 9710G 9711s/\n// 9712s/^[^=]*=[ ]*$// 9713}' 9714fi 9715 9716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9717fi # test -n "$CONFIG_FILES" 9718 9719 9720eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 9721shift 9722for ac_tag 9723do 9724 case $ac_tag in 9725 :[FHLC]) ac_mode=$ac_tag; continue;; 9726 esac 9727 case $ac_mode$ac_tag in 9728 :[FHL]*:*);; 9729 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9730 :[FH]-) ac_tag=-:-;; 9731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9732 esac 9733 ac_save_IFS=$IFS 9734 IFS=: 9735 set x $ac_tag 9736 IFS=$ac_save_IFS 9737 shift 9738 ac_file=$1 9739 shift 9740 9741 case $ac_mode in 9742 :L) ac_source=$1;; 9743 :[FH]) 9744 ac_file_inputs= 9745 for ac_f 9746 do 9747 case $ac_f in 9748 -) ac_f="$ac_tmp/stdin";; 9749 *) # Look for the file first in the build tree, then in the source tree 9750 # (if the path is not absolute). The absolute path cannot be DOS-style, 9751 # because $ac_f cannot contain `:'. 9752 test -f "$ac_f" || 9753 case $ac_f in 9754 [\\/$]*) false;; 9755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9756 esac || 9757 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9758 esac 9759 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9760 as_fn_append ac_file_inputs " '$ac_f'" 9761 done 9762 9763 # Let's still pretend it is `configure' which instantiates (i.e., don't 9764 # use $as_me), people would be surprised to read: 9765 # /* config.h. Generated by config.status. */ 9766 configure_input='Generated from '` 9767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9768 `' by configure.' 9769 if test x"$ac_file" != x-; then 9770 configure_input="$ac_file. $configure_input" 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9772$as_echo "$as_me: creating $ac_file" >&6;} 9773 fi 9774 # Neutralize special characters interpreted by sed in replacement strings. 9775 case $configure_input in #( 9776 *\&* | *\|* | *\\* ) 9777 ac_sed_conf_input=`$as_echo "$configure_input" | 9778 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9779 *) ac_sed_conf_input=$configure_input;; 9780 esac 9781 9782 case $ac_tag in 9783 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9785 esac 9786 ;; 9787 esac 9788 9789 ac_dir=`$as_dirname -- "$ac_file" || 9790$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9791 X"$ac_file" : 'X\(//\)[^/]' \| \ 9792 X"$ac_file" : 'X\(//\)$' \| \ 9793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9794$as_echo X"$ac_file" | 9795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9796 s//\1/ 9797 q 9798 } 9799 /^X\(\/\/\)[^/].*/{ 9800 s//\1/ 9801 q 9802 } 9803 /^X\(\/\/\)$/{ 9804 s//\1/ 9805 q 9806 } 9807 /^X\(\/\).*/{ 9808 s//\1/ 9809 q 9810 } 9811 s/.*/./; q'` 9812 as_dir="$ac_dir"; as_fn_mkdir_p 9813 ac_builddir=. 9814 9815case "$ac_dir" in 9816.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9817*) 9818 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9819 # A ".." for each directory in $ac_dir_suffix. 9820 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9821 case $ac_top_builddir_sub in 9822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9824 esac ;; 9825esac 9826ac_abs_top_builddir=$ac_pwd 9827ac_abs_builddir=$ac_pwd$ac_dir_suffix 9828# for backward compatibility: 9829ac_top_builddir=$ac_top_build_prefix 9830 9831case $srcdir in 9832 .) # We are building in place. 9833 ac_srcdir=. 9834 ac_top_srcdir=$ac_top_builddir_sub 9835 ac_abs_top_srcdir=$ac_pwd ;; 9836 [\\/]* | ?:[\\/]* ) # Absolute name. 9837 ac_srcdir=$srcdir$ac_dir_suffix; 9838 ac_top_srcdir=$srcdir 9839 ac_abs_top_srcdir=$srcdir ;; 9840 *) # Relative name. 9841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9842 ac_top_srcdir=$ac_top_build_prefix$srcdir 9843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9844esac 9845ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9846 9847 9848 case $ac_mode in 9849 :F) 9850 # 9851 # CONFIG_FILE 9852 # 9853 9854_ACEOF 9855 9856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9857# If the template does not know about datarootdir, expand it. 9858# FIXME: This hack should be removed a few years after 2.60. 9859ac_datarootdir_hack=; ac_datarootdir_seen= 9860ac_sed_dataroot=' 9861/datarootdir/ { 9862 p 9863 q 9864} 9865/@datadir@/p 9866/@docdir@/p 9867/@infodir@/p 9868/@localedir@/p 9869/@mandir@/p' 9870case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9871*datarootdir*) ac_datarootdir_seen=yes;; 9872*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9874$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9875_ACEOF 9876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9877 ac_datarootdir_hack=' 9878 s&@datadir@&$datadir&g 9879 s&@docdir@&$docdir&g 9880 s&@infodir@&$infodir&g 9881 s&@localedir@&$localedir&g 9882 s&@mandir@&$mandir&g 9883 s&\\\${datarootdir}&$datarootdir&g' ;; 9884esac 9885_ACEOF 9886 9887# Neutralize VPATH when `$srcdir' = `.'. 9888# Shell code in configure.ac might set extrasub. 9889# FIXME: do we really want to maintain this feature? 9890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9891ac_sed_extra="$ac_vpsub 9892$extrasub 9893_ACEOF 9894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9895:t 9896/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9897s|@configure_input@|$ac_sed_conf_input|;t t 9898s&@top_builddir@&$ac_top_builddir_sub&;t t 9899s&@top_build_prefix@&$ac_top_build_prefix&;t t 9900s&@srcdir@&$ac_srcdir&;t t 9901s&@abs_srcdir@&$ac_abs_srcdir&;t t 9902s&@top_srcdir@&$ac_top_srcdir&;t t 9903s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9904s&@builddir@&$ac_builddir&;t t 9905s&@abs_builddir@&$ac_abs_builddir&;t t 9906s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9907$ac_datarootdir_hack 9908" 9909eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9910 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9911 9912test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9913 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9914 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9915 "$ac_tmp/out"`; test -z "$ac_out"; } && 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9917which seems to be undefined. Please make sure it is defined" >&5 9918$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9919which seems to be undefined. Please make sure it is defined" >&2;} 9920 9921 rm -f "$ac_tmp/stdin" 9922 case $ac_file in 9923 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9924 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9925 esac \ 9926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9927 ;; 9928 9929 9930 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 9931$as_echo "$as_me: executing $ac_file commands" >&6;} 9932 ;; 9933 esac 9934 9935 9936 case $ac_file$ac_mode in 9937 "default":C) chmod +x config/nspr-config ;; 9938 9939 esac 9940done # for ac_tag 9941 9942 9943as_fn_exit 0 9944_ACEOF 9945ac_clean_files=$ac_clean_files_save 9946 9947test $ac_write_fail = 0 || 9948 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 9949 9950 9951# configure is writing to config.log, and then calls config.status. 9952# config.status does its own redirection, appending to config.log. 9953# Unfortunately, on DOS this fails, as config.log is still kept open 9954# by configure, so config.status won't be able to write to it; its 9955# output is simply discarded. So we exec the FD to /dev/null, 9956# effectively closing config.log, so it can be properly (re)opened and 9957# appended to by config.status. When coming back to configure, we 9958# need to make the FD available again. 9959if test "$no_create" != yes; then 9960 ac_cs_success=: 9961 ac_config_status_args= 9962 test "$silent" = yes && 9963 ac_config_status_args="$ac_config_status_args --quiet" 9964 exec 5>/dev/null 9965 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9966 exec 5>>config.log 9967 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9968 # would make configure fail if this is the last instruction. 9969 $ac_cs_success || as_fn_exit 1 9970fi 9971if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9973$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9974fi 9975 9976