Bug 1652470 [wpt PR 24579] - Update mozrunner to 8.0.0, a=testonly
[gecko.git] / nsprpub / configure
blob98b3f0475cdb2ff28340df7c5573df180d96dfd7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if 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=';'
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
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
100 IFS=$as_save_IFS
103 esac
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.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
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.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $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
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if 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
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -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
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
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
227 done;;
228 esac
229 as_found=false
230 done
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
234 fi; }
235 IFS=$as_save_IFS
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.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $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
257 exit 255
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."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
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/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
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"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
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.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
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.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
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.
408 as_fn_error ()
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
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_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/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
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 '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
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; }
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
500 ECHO_C= ECHO_N= ECHO_T=
501 case `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;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (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'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
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.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="pr/include/nspr.h"
586 # Factoring default headers for most tests.
587 ac_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"
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
625 NEXT_ROOT
626 MACOS_SDK_DIR
627 WRAP_SYSTEM_INCLUDES
628 VISIBILITY_FLAGS
629 CYGWIN_WRAPPER
630 OS_DLLFLAGS
631 EXEFLAGS
632 DLLFLAGS
633 RCFLAGS
635 OPTIMIZER
636 NSINSTALL
637 RELEASE_OBJDIR_NAME
638 OBJDIR_NAME
639 OBJDIR
640 ULTRASPARC_LIBRARY
641 MOZ_OBJFORMAT
642 NOSUCHFILE
643 AIX_LINK_OPTS
644 RESOLVE_LINK_SYMBOLS
645 OS_LIBS
646 PROFILE_USE_LDFLAGS
647 PROFILE_USE_CFLAGS
648 PROFILE_GEN_LDFLAGS
649 PROFILE_GEN_CFLAGS
650 IMPLIB
651 FILTER
652 ASFLAGS
653 AR_FLAGS
654 DEFINES
655 MACOSX_DEPLOYMENT_TARGET
656 OS_TEST
657 OS_RELEASE
658 OS_ARCH
659 OS_TARGET
660 DSO_LDOPTS
661 DSO_CFLAGS
662 MKSHLIB
663 WRAP_LDFLAGS
664 ASM_SUFFIX
665 DLL_SUFFIX
666 LIB_SUFFIX
667 OBJ_SUFFIX
668 CPU_ARCH
669 PR_MD_ARCH_DIR
670 PR_MD_ASFILES
671 PR_MD_CSRCS
672 MDCPUCFG_H
673 NSPR_MODNAME
674 MOD_PATCH_VERSION
675 MOD_MINOR_VERSION
676 MOD_MAJOR_VERSION
677 LIBPLC
678 LIBNSPR
679 USE_NSPR_THREADS
680 USE_USER_PTHREADS
681 USE_BTHREADS
682 USE_PTHREADS
683 ENABLE_STRIP
684 OBJECT_MODE
685 USE_64
686 USE_X32
687 USE_N32
688 USE_IPV6
689 USE_CPLUS
690 MOZ_DEBUG_SYMBOLS
691 MOZ_DEBUG
692 MOZ_OPTIMIZE
693 CROSS_COMPILE
694 MSC_VER
695 GCC_USE_GNU_LD
696 GNU_CC
697 HOST_LDFLAGS
698 HOST_CFLAGS
699 MOZILLA_CLIENT
700 SHELL_OVERRIDE
701 CCACHE
702 EGREP
703 GREP
704 PERL
706 HOST_CC
707 WINDRES
708 STRIP
712 RANLIB
713 ac_ct_CXX
714 CXXFLAGS
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 WHOAMI
723 dist_libdir
724 dist_includedir
725 dist_bindir
726 dist_prefix
728 target_os
729 target_vendor
730 target_cpu
731 target
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 runstatedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 with_android_ndk
783 with_android_toolchain
784 with_android_version
785 with_android_platform
786 with_dist_prefix
787 with_dist_bindir
788 with_dist_includedir
789 with_dist_libdir
790 with_mozilla
791 enable_optimize
792 enable_debug
793 enable_debug_symbols
794 enable_win32_target
795 enable_debug_rtl
796 enable_static_rtl
797 enable_x32
798 enable_64bit
799 enable_mdupdate
800 enable_cplus
801 with_arm_kuser
802 with_macos_sdk
803 enable_macos_target
804 enable_os2_high_mem
805 enable_thumb2
806 with_thumb
807 with_thumb_interwork
808 with_arch
809 with_fpu
810 with_float_abi
811 with_soft_float
812 with_ccache
813 enable_strip
814 with_pthreads
815 enable_user_pthreads
816 enable_nspr_threads
817 enable_ipv6
818 enable_wrap_malloc
819 with_wrap_malloc
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
830 CXXFLAGS
832 CPP'
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 runstatedir='${localstatedir}/run'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
884 ac_prev=
885 ac_dashdash=
886 for ac_option
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
895 case $ac_option in
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
899 esac
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
905 ac_dashdash=yes ;;
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
924 --config-cache | -C)
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1124 -runstatedir | --runstatedir | --runstatedi | --runstated \
1125 | --runstate | --runstat | --runsta | --runst | --runs \
1126 | --run | --ru | --r)
1127 ac_prev=runstatedir ;;
1128 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1129 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1130 | --run=* | --ru=* | --r=*)
1131 runstatedir=$ac_optarg ;;
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 esac
1251 done
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $? "missing argument to $ac_option"
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir runstatedir
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437 _ACEOF
1439 cat <<\_ACEOF
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445 _ACEOF
1448 if test -n "$ac_init_help"; then
1450 cat <<\_ACEOF
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-optimize=OPT Enable code optimizations (ie. -O2)
1457 --enable-debug=DBG Enable debugging (using compiler flags DBG)
1458 --enable-debug-symbols=DBG Enable debugging symbols
1459 (using compiler flags DBG)
1460 --enable-win32-target=\$t
1461 Specify win32 flavor. (WIN95 or WINNT)
1462 --enable-debug-rtl Use the MSVC debug runtime library
1463 --enable-static-rtl Use the MSVC static runtime library
1464 --enable-x32 Enable x32 ABI support (x86_64 only)
1465 --enable-64bit Enable 64-bit support (on certain platforms)
1466 --enable-mdupdate Enable use of certain compilers' mdupdate feature
1467 --enable-cplus Enable some c++ api routines
1468 --enable-macos-target=VER
1469 Set the minimum MacOS version needed at runtime
1470 10.2 for ppc, 10.4 for x86
1471 --disable-os2-high-mem Disable high-memory support on OS/2
1473 --enable-strip Enable stripping of shared libs and programs
1474 --enable-user-pthreads Build using userland pthreads
1475 --enable-nspr-threads Build using classic nspr threads
1476 --enable-ipv6 Compile ipv6 support
1477 --enable-wrap-malloc Wrap malloc calls (gnu linker only)
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-android-ndk=DIR
1483 location where the Android NDK can be found
1484 --with-android-toolchain=DIR
1485 location of the Android toolchain
1486 --with-android-version=VER
1487 Android platform version, default 5 for arm, 9 for x86/mips
1488 --with-android-platform=DIR
1489 location of platform dir
1490 --with-dist-prefix=DIST_PREFIX
1491 place build files in DIST_PREFIX dist
1492 --with-dist-bindir=DIR build execuatables in DIR DIST_PREFIX/bin
1493 --with-dist-includedir=DIR
1494 build include files in DIR DIST_PREFIX/include/nspr
1495 --with-dist-libdir=DIR build library files in DIR DIST_PREFIX/lib
1496 --with-mozilla Compile NSPR with Mozilla support
1497 --with-arm-kuser Use kuser helpers (Linux/ARM only)
1498 (Requires kernel 2.6.13 or later)
1499 --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)
1500 --with-thumb[=yes|no|toolchain-default]
1501 Use Thumb instruction set (-mthumb)
1502 --with-thumb-interwork[=yes|no|toolchain-default]
1503 Use Thumb/ARM instuctions interwork (-mthumb-interwork)
1504 --with-arch=[type|toolchain-default]
1505 Use specific CPU features (-march=type)
1506 --with-fpu=[type|toolchain-default]
1507 Use specific FPU type (-mfpu=type)
1508 --with-float-abi=[type|toolchain-default]
1509 Use specific arm float ABI (-mfloat-abi=type)
1510 --with-soft-float[=yes|no|toolchain-default]
1511 Use soft float library (-msoft-float)
1512 --with-ccache=path/to/ccache
1513 Enable compiling with ccache
1514 --with-pthreads Use system pthreads library as thread subsystem
1515 --with-wrap-malloc=SHAREDLIB Location of malloc wrapper library
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CXX C++ compiler command
1526 CXXFLAGS C++ compiler flags
1527 CPP C preprocessor
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1532 Report bugs to the package provider.
1533 _ACEOF
1534 ac_status=$?
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1561 case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1585 else
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 fi || ac_status=$?
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1589 done
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594 cat <<\_ACEOF
1595 configure
1596 generated by GNU Autoconf 2.69
1598 Copyright (C) 2012 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602 exit
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=1
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_compile
1647 # ac_fn_cxx_try_compile LINENO
1648 # ----------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_cxx_try_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_cxx_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 ac_retval=1
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1683 } # ac_fn_cxx_try_compile
1685 # ac_fn_c_try_cpp LINENO
1686 # ----------------------
1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_cpp ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } > conftest.i && {
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1715 ac_retval=1
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1720 } # ac_fn_c_try_cpp
1722 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723 # -------------------------------------------------------
1724 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725 # the include files in INCLUDES and setting the cache variable VAR
1726 # accordingly.
1727 ac_fn_c_check_header_mongrel ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if eval \${$3+:} false; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 else
1740 # Is the header compilable?
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742 $as_echo_n "checking $2 usability... " >&6; }
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1750 else
1751 ac_header_compiler=no
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755 $as_echo "$ac_header_compiler" >&6; }
1757 # Is the header present?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759 $as_echo_n "checking $2 presence... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1766 else
1767 ac_header_preproc=no
1769 rm -f conftest.err conftest.i conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771 $as_echo "$ac_header_preproc" >&6; }
1773 # So? What about this header?
1774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 yes:no: )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 no:yes:* )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793 esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 eval "$3=\$ac_header_compiler"
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 } # ac_fn_c_check_header_mongrel
1809 # ac_fn_c_try_run LINENO
1810 # ----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812 # that executables *can* be run.
1813 ac_fn_c_try_run ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=$ac_status
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1849 } # ac_fn_c_try_run
1851 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852 # -------------------------------------------------------
1853 # Tests whether HEADER exists and can be compiled using the include files in
1854 # INCLUDES, setting the cache variable VAR accordingly.
1855 ac_fn_c_check_header_compile ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1866 #include <$2>
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_header_compile
1882 # ac_fn_c_try_link LINENO
1883 # -----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_c_try_link ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext conftest$ac_exeext
1889 if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest$ac_exeext && {
1908 test "$cross_compiling" = yes ||
1909 test -x conftest$ac_exeext
1910 }; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=1
1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920 # interfere with the next link command; also delete a directory that is
1921 # left behind by Apple's compiler. We do this before executing the actions.
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1926 } # ac_fn_c_try_link
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943 #define $2 innocuous_$2
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1950 #ifdef __STDC__
1951 # include <limits.h>
1952 #else
1953 # include <assert.h>
1954 #endif
1956 #undef $2
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 ();
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1973 main ()
1975 return $2 ();
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982 else
1983 eval "$3=no"
1985 rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 } # ac_fn_c_check_func
1994 cat >config.log <<_ACEOF
1995 This file contains any messages produced by compilers while
1996 running configure, to aid debugging if configure makes a mistake.
1998 It was created by $as_me, which was
1999 generated by GNU Autoconf 2.69. Invocation command line was
2001 $ $0 $@
2003 _ACEOF
2004 exec 5>>config.log
2006 cat <<_ASUNAME
2007 ## --------- ##
2008 ## Platform. ##
2009 ## --------- ##
2011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2023 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2028 _ASUNAME
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 $as_echo "PATH: $as_dir"
2036 done
2037 IFS=$as_save_IFS
2039 } >&5
2041 cat >&5 <<_ACEOF
2044 ## ----------- ##
2045 ## Core tests. ##
2046 ## ----------- ##
2048 _ACEOF
2051 # Keep a trace of the command line.
2052 # Strip out --no-create and --no-recursion so they do not pile up.
2053 # Strip out --silent because we don't want to record it for future runs.
2054 # Also quote any args containing shell meta-characters.
2055 # Make two passes to allow for proper duplicate-argument suppression.
2056 ac_configure_args=
2057 ac_configure_args0=
2058 ac_configure_args1=
2059 ac_must_keep_next=false
2060 for ac_pass in 1 2
2062 for ac_arg
2064 case $ac_arg in
2065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2067 | -silent | --silent | --silen | --sile | --sil)
2068 continue ;;
2069 *\'*)
2070 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2071 esac
2072 case $ac_pass in
2073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2075 as_fn_append ac_configure_args1 " '$ac_arg'"
2076 if test $ac_must_keep_next = true; then
2077 ac_must_keep_next=false # Got value, back to normal.
2078 else
2079 case $ac_arg in
2080 *=* | --config-cache | -C | -disable-* | --disable-* \
2081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2083 | -with-* | --with-* | -without-* | --without-* | --x)
2084 case "$ac_configure_args0 " in
2085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2086 esac
2088 -* ) ac_must_keep_next=true ;;
2089 esac
2091 as_fn_append ac_configure_args " '$ac_arg'"
2093 esac
2094 done
2095 done
2096 { ac_configure_args0=; unset ac_configure_args0;}
2097 { ac_configure_args1=; unset ac_configure_args1;}
2099 # When interrupted or exit'd, cleanup temporary files, and complete
2100 # config.log. We remove comments because anyway the quotes in there
2101 # would cause problems or look ugly.
2102 # WARNING: Use '\'' to represent an apostrophe within the trap.
2103 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2104 trap 'exit_status=$?
2105 # Save into config.log some information that might help in debugging.
2107 echo
2109 $as_echo "## ---------------- ##
2110 ## Cache variables. ##
2111 ## ---------------- ##"
2112 echo
2113 # The following way of writing the cache mishandles newlines in values,
2115 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2116 eval ac_val=\$$ac_var
2117 case $ac_val in #(
2118 *${as_nl}*)
2119 case $ac_var in #(
2120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2122 esac
2123 case $ac_var in #(
2124 _ | IFS | as_nl) ;; #(
2125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2126 *) { eval $ac_var=; unset $ac_var;} ;;
2127 esac ;;
2128 esac
2129 done
2130 (set) 2>&1 |
2131 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2132 *${as_nl}ac_space=\ *)
2133 sed -n \
2134 "s/'\''/'\''\\\\'\'''\''/g;
2135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2136 ;; #(
2138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2140 esac |
2141 sort
2143 echo
2145 $as_echo "## ----------------- ##
2146 ## Output variables. ##
2147 ## ----------------- ##"
2148 echo
2149 for ac_var in $ac_subst_vars
2151 eval ac_val=\$$ac_var
2152 case $ac_val in
2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2154 esac
2155 $as_echo "$ac_var='\''$ac_val'\''"
2156 done | sort
2157 echo
2159 if test -n "$ac_subst_files"; then
2160 $as_echo "## ------------------- ##
2161 ## File substitutions. ##
2162 ## ------------------- ##"
2163 echo
2164 for ac_var in $ac_subst_files
2166 eval ac_val=\$$ac_var
2167 case $ac_val in
2168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2169 esac
2170 $as_echo "$ac_var='\''$ac_val'\''"
2171 done | sort
2172 echo
2175 if test -s confdefs.h; then
2176 $as_echo "## ----------- ##
2177 ## confdefs.h. ##
2178 ## ----------- ##"
2179 echo
2180 cat confdefs.h
2181 echo
2183 test "$ac_signal" != 0 &&
2184 $as_echo "$as_me: caught signal $ac_signal"
2185 $as_echo "$as_me: exit $exit_status"
2186 } >&5
2187 rm -f core *.core core.conftest.* &&
2188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2189 exit $exit_status
2191 for ac_signal in 1 2 13 15; do
2192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2193 done
2194 ac_signal=0
2196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2197 rm -f -r conftest* confdefs.h
2199 $as_echo "/* confdefs.h */" > confdefs.h
2201 # Predefined preprocessor variables.
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_NAME "$PACKAGE_NAME"
2205 _ACEOF
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2209 _ACEOF
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2213 _ACEOF
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_STRING "$PACKAGE_STRING"
2217 _ACEOF
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2221 _ACEOF
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_URL "$PACKAGE_URL"
2225 _ACEOF
2228 # Let the site file select an alternate cache file if it wants to.
2229 # Prefer an explicitly selected file to automatically selected ones.
2230 ac_site_file1=NONE
2231 ac_site_file2=NONE
2232 if test -n "$CONFIG_SITE"; then
2233 # We do not want a PATH search for config.site.
2234 case $CONFIG_SITE in #((
2235 -*) ac_site_file1=./$CONFIG_SITE;;
2236 */*) ac_site_file1=$CONFIG_SITE;;
2237 *) ac_site_file1=./$CONFIG_SITE;;
2238 esac
2239 elif test "x$prefix" != xNONE; then
2240 ac_site_file1=$prefix/share/config.site
2241 ac_site_file2=$prefix/etc/config.site
2242 else
2243 ac_site_file1=$ac_default_prefix/share/config.site
2244 ac_site_file2=$ac_default_prefix/etc/config.site
2246 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2248 test "x$ac_site_file" = xNONE && continue
2249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2251 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2252 sed 's/^/| /' "$ac_site_file" >&5
2253 . "$ac_site_file" \
2254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256 as_fn_error $? "failed to load site script $ac_site_file
2257 See \`config.log' for more details" "$LINENO" 5; }
2259 done
2261 if test -r "$cache_file"; then
2262 # Some versions of bash will fail to source /dev/null (special files
2263 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2266 $as_echo "$as_me: loading cache $cache_file" >&6;}
2267 case $cache_file in
2268 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2269 *) . "./$cache_file";;
2270 esac
2272 else
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2274 $as_echo "$as_me: creating cache $cache_file" >&6;}
2275 >$cache_file
2278 # Check that the precious variables saved in the cache have kept the same
2279 # value.
2280 ac_cache_corrupted=false
2281 for ac_var in $ac_precious_vars; do
2282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2283 eval ac_new_set=\$ac_env_${ac_var}_set
2284 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2285 eval ac_new_val=\$ac_env_${ac_var}_value
2286 case $ac_old_set,$ac_new_set in
2287 set,)
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2289 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2290 ac_cache_corrupted=: ;;
2291 ,set)
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2293 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2294 ac_cache_corrupted=: ;;
2295 ,);;
2297 if test "x$ac_old_val" != "x$ac_new_val"; then
2298 # differences in whitespace do not lead to failure.
2299 ac_old_val_w=`echo x $ac_old_val`
2300 ac_new_val_w=`echo x $ac_new_val`
2301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2303 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2304 ac_cache_corrupted=:
2305 else
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2307 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2308 eval $ac_var=\$ac_old_val
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2311 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2313 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2314 fi;;
2315 esac
2316 # Pass precious variables to config.status.
2317 if test "$ac_new_set" = set; then
2318 case $ac_new_val in
2319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2320 *) ac_arg=$ac_var=$ac_new_val ;;
2321 esac
2322 case " $ac_configure_args " in
2323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2324 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2325 esac
2327 done
2328 if $ac_cache_corrupted; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2332 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2333 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2335 ## -------------------- ##
2336 ## Main body of script. ##
2337 ## -------------------- ##
2339 ac_ext=c
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348 ac_aux_dir=
2349 for ac_dir in ${srcdir}/build/autoconf "$srcdir"/${srcdir}/build/autoconf; do
2350 if test -f "$ac_dir/install-sh"; then
2351 ac_aux_dir=$ac_dir
2352 ac_install_sh="$ac_aux_dir/install-sh -c"
2353 break
2354 elif test -f "$ac_dir/install.sh"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/install.sh -c"
2357 break
2358 elif test -f "$ac_dir/shtool"; then
2359 ac_aux_dir=$ac_dir
2360 ac_install_sh="$ac_aux_dir/shtool install -c"
2361 break
2363 done
2364 if test -z "$ac_aux_dir"; then
2365 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${srcdir}/build/autoconf \"$srcdir\"/${srcdir}/build/autoconf" "$LINENO" 5
2368 # These three variables are undocumented and unsupported,
2369 # and are intended to be withdrawn in a future Autoconf release.
2370 # They can cause serious problems if a builder's source tree is in a directory
2371 # whose full name contains unusual characters.
2372 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2373 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2374 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2377 # Make sure we can run config.sub.
2378 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2379 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2382 $as_echo_n "checking build system type... " >&6; }
2383 if ${ac_cv_build+:} false; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 ac_build_alias=$build_alias
2387 test "x$ac_build_alias" = x &&
2388 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2389 test "x$ac_build_alias" = x &&
2390 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2391 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2396 $as_echo "$ac_cv_build" >&6; }
2397 case $ac_cv_build in
2398 *-*-*) ;;
2399 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2400 esac
2401 build=$ac_cv_build
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_build
2404 shift
2405 build_cpu=$1
2406 build_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 build_os=$*
2411 IFS=$ac_save_IFS
2412 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2416 $as_echo_n "checking host system type... " >&6; }
2417 if ${ac_cv_host+:} false; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test "x$host_alias" = x; then
2421 ac_cv_host=$ac_cv_build
2422 else
2423 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2424 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2429 $as_echo "$ac_cv_host" >&6; }
2430 case $ac_cv_host in
2431 *-*-*) ;;
2432 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2433 esac
2434 host=$ac_cv_host
2435 ac_save_IFS=$IFS; IFS='-'
2436 set x $ac_cv_host
2437 shift
2438 host_cpu=$1
2439 host_vendor=$2
2440 shift; shift
2441 # Remember, the first character of IFS is used to create $*,
2442 # except with old shells:
2443 host_os=$*
2444 IFS=$ac_save_IFS
2445 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2449 $as_echo_n "checking target system type... " >&6; }
2450 if ${ac_cv_target+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 if test "x$target_alias" = x; then
2454 ac_cv_target=$ac_cv_host
2455 else
2456 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2462 $as_echo "$ac_cv_target" >&6; }
2463 case $ac_cv_target in
2464 *-*-*) ;;
2465 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2466 esac
2467 target=$ac_cv_target
2468 ac_save_IFS=$IFS; IFS='-'
2469 set x $ac_cv_target
2470 shift
2471 target_cpu=$1
2472 target_vendor=$2
2473 shift; shift
2474 # Remember, the first character of IFS is used to create $*,
2475 # except with old shells:
2476 target_os=$*
2477 IFS=$ac_save_IFS
2478 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2481 # The aliases save the names the user supplied, while $host etc.
2482 # will get canonicalized.
2483 test -n "$target_alias" &&
2484 test "$program_prefix$program_suffix$program_transform_name" = \
2485 NONENONEs,x,x, &&
2486 program_prefix=${target_alias}-
2488 MOD_MAJOR_VERSION=4
2489 MOD_MINOR_VERSION=27
2490 MOD_PATCH_VERSION=0
2491 NSPR_MODNAME=nspr20
2492 _HAVE_PTHREADS=
2493 USE_PTHREADS=
2494 USE_USER_PTHREADS=
2495 USE_NSPR_THREADS=
2496 USE_N32=
2497 USE_X32=
2498 USE_64=
2499 USE_CPLUS=
2500 USE_IPV6=
2501 USE_MDUPDATE=
2502 _MACOSX_DEPLOYMENT_TARGET=
2503 _OPTIMIZE_FLAGS=-O
2504 _DEBUG_FLAGS=-g
2505 MOZ_DEBUG=1
2506 MOZ_OPTIMIZE=
2507 OBJDIR='$(OBJDIR_NAME)'
2508 OBJDIR_NAME=.
2509 OBJDIR_SUFFIX=OBJ
2510 NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
2511 NOSUCHFILE=/no-such-file
2512 LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
2513 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
2514 CYGWIN_WRAPPER=
2515 MACOS_SDK_DIR=
2516 NEXT_ROOT=
2518 MOZ_OS2_HIGH_MEMORY=1
2519 PROFILE_GEN_CFLAGS=
2520 PROFILE_GEN_LDFLAGS=
2521 PROFILE_USE_CFLAGS=
2522 PROFILE_USE_LDFLAGS=
2524 RESOLVE_LINK_SYMBOLS=
2526 CFLAGS="${CFLAGS=}"
2527 CXXFLAGS="${CXXFLAGS=}"
2528 LDFLAGS="${LDFLAGS=}"
2529 DLLFLAGS="${DLLFLAGS=}"
2530 HOST_CFLAGS="${HOST_CFLAGS=}"
2531 HOST_LDFLAGS="${HOST_LDFLAGS=}"
2533 case "$target" in
2534 *-cygwin*|*-mingw*|*-msys*)
2535 # Check to see if we are really running in a msvc environemnt
2536 _WIN32_MSVC=
2537 for ac_prog in cl
2539 # Extract the first word of "$ac_prog", so it can be a program name with args.
2540 set dummy $ac_prog; ac_word=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if ${ac_cv_prog_CC+:} false; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556 ac_cv_prog_CC="$ac_prog"
2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2560 done
2561 done
2562 IFS=$as_save_IFS
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2569 $as_echo "$CC" >&6; }
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2576 test -n "$CC" && break
2577 done
2579 cat > conftest.c <<EOF
2580 #ifdef _MSC_VER
2581 COMPILER IS MSVC
2582 #endif
2584 read dummy <<EOF
2585 $($CC -E conftest.c 2>/dev/null | grep COMPILER)
2587 if test -n "$dummy"; then
2588 _WIN32_MSVC=1
2589 CXX=$CC
2591 rm -f conftest.c
2593 *-mks*)
2594 _WIN32_MSVC=1
2596 esac
2598 if test -n "$_WIN32_MSVC"; then
2599 SKIP_PATH_CHECKS=1
2600 SKIP_COMPILER_CHECKS=1
2601 SKIP_LIBRARY_CHECKS=1
2606 # Check whether --with-android-ndk was given.
2607 if test "${with_android_ndk+set}" = set; then :
2608 withval=$with_android_ndk; android_ndk=$withval
2613 # Check whether --with-android-toolchain was given.
2614 if test "${with_android_toolchain+set}" = set; then :
2615 withval=$with_android_toolchain; android_toolchain=$withval
2619 case "$target_cpu" in
2620 arm)
2621 android_version=5
2623 i?86|mipsel)
2624 android_version=9
2626 esac
2629 # Check whether --with-android-version was given.
2630 if test "${with_android_version+set}" = set; then :
2631 withval=$with_android_version; android_version=$withval
2636 # Check whether --with-android-platform was given.
2637 if test "${with_android_platform+set}" = set; then :
2638 withval=$with_android_platform; android_platform=$withval
2642 case "$target" in
2643 x86_64-linux*-android*)
2644 android_tool_prefix="x86_64-linux-android"
2646 aarch64-linux*-android*)
2647 android_tool_prefix="aarch64-linux-android"
2649 arm-linux*-android*|*-linuxandroid*)
2650 android_tool_prefix="arm-linux-androideabi"
2652 i?86-*android*)
2653 android_tool_prefix="i686-linux-android"
2655 mipsel-*android*)
2656 android_tool_prefix="mipsel-linux-android"
2659 android_tool_prefix="$target_os"
2661 esac
2663 case "$target" in
2664 *-android*|*-linuxandroid*)
2665 if test -z "$android_ndk" ; then
2666 as_fn_error $? "You must specify --with-android-ndk=/path/to/ndk when targeting Android." "$LINENO" 5
2669 if test -z "$android_toolchain" ; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android toolchain directory" >&5
2671 $as_echo_n "checking for android toolchain directory... " >&6; }
2673 kernel_name=`uname -s | tr "[:upper:]" "[:lower:]"`
2675 case "$target_cpu" in
2676 arm)
2677 target_name=arm-linux-androideabi-4.4.3
2679 i?86)
2680 target_name=x86-4.4.3
2682 mipsel)
2683 target_name=mipsel-linux-android-4.4.3
2685 esac
2686 android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86
2688 if test -d "$android_toolchain" ; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_toolchain" >&5
2690 $as_echo "$android_toolchain" >&6; }
2691 else
2692 as_fn_error $? "not found. You have to specify --with-android-toolchain=/path/to/ndk/toolchain." "$LINENO" 5
2696 if test -z "$android_platform" ; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android platform directory" >&5
2698 $as_echo_n "checking for android platform directory... " >&6; }
2700 case "$target_cpu" in
2701 arm)
2702 target_name=arm
2704 i?86)
2705 target_name=x86
2707 mipsel)
2708 target_name=mips
2710 esac
2712 android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name"
2714 if test -d "$android_platform" ; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_platform" >&5
2716 $as_echo "$android_platform" >&6; }
2717 else
2718 as_fn_error $? "not found. You have to specify --with-android-platform=/path/to/ndk/platform." "$LINENO" 5
2722 case "$target_cpu" in
2723 i?86)
2724 if ! test -e "$android_toolchain"/bin/"$android_tool_prefix"-gcc; then
2725 android_tool_prefix="i686-android-linux"
2728 esac
2730 AS="$android_toolchain"/bin/"$android_tool_prefix"-as
2731 CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc
2732 CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++
2733 CPP="$android_toolchain"/bin/"$android_tool_prefix"-cpp
2734 LD="$android_toolchain"/bin/"$android_tool_prefix"-ld
2735 AR="$android_toolchain"/bin/"$android_tool_prefix"-ar
2736 RANLIB="$android_toolchain"/bin/"$android_tool_prefix"-ranlib
2737 STRIP="$android_toolchain"/bin/"$android_tool_prefix"-strip
2739 CPPFLAGS="-I$android_platform/usr/include $CPPFLAGS"
2740 CFLAGS="-mandroid -I$android_platform/usr/include -fno-short-enums -fno-exceptions $CFLAGS"
2741 CXXFLAGS="-mandroid -I$android_platform/usr/include -fpic -fno-short-enums -fno-exceptions $CXXFLAGS"
2742 LDFLAGS="-mandroid -L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS"
2744 $as_echo "#define ANDROID 1" >>confdefs.h
2747 esac
2749 dist_prefix='${MOD_DEPTH}/dist'
2750 dist_bindir='${dist_prefix}/bin'
2751 dist_includedir='${dist_prefix}/include/nspr'
2752 dist_libdir='${dist_prefix}/lib'
2753 if test "${includedir}" = '${prefix}/include'; then
2754 includedir='${prefix}/include/nspr'
2758 # Check whether --with-dist-prefix was given.
2759 if test "${with_dist_prefix+set}" = set; then :
2760 withval=$with_dist_prefix; dist_prefix=$withval
2765 # Check whether --with-dist-bindir was given.
2766 if test "${with_dist_bindir+set}" = set; then :
2767 withval=$with_dist_bindir; dist_bindir=$withval
2772 # Check whether --with-dist-includedir was given.
2773 if test "${with_dist_includedir+set}" = set; then :
2774 withval=$with_dist_includedir; dist_includedir=$withval
2779 # Check whether --with-dist-libdir was given.
2780 if test "${with_dist_libdir+set}" = set; then :
2781 withval=$with_dist_libdir; dist_libdir=$withval
2791 # Check whether --with-mozilla was given.
2792 if test "${with_mozilla+set}" = set; then :
2793 withval=$with_mozilla; if test "$withval" = "yes"; then
2794 $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h
2796 MOZILLA_CLIENT=1
2797 else
2798 MOZILLA_CLIENT=
2800 else
2801 if test -n "$MOZILLA_CLIENT"; then
2802 $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h
2808 # Check whether --enable-optimize was given.
2809 if test "${enable_optimize+set}" = set; then :
2810 enableval=$enable_optimize; if test "$enableval" != "no"; then
2811 MOZ_OPTIMIZE=1
2812 if test -n "$enableval" -a "$enableval" != "yes"; then
2813 _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
2814 _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS
2816 else
2817 MOZ_OPTIMIZE=
2822 # Check whether --enable-debug was given.
2823 if test "${enable_debug+set}" = set; then :
2824 enableval=$enable_debug; if test "$enableval" != "no"; then
2825 MOZ_DEBUG=1
2826 MOZ_DEBUG_SYMBOLS=1
2827 if test -n "$enableval" -a "$enableval" != "yes"; then
2828 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
2829 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS
2831 else
2832 MOZ_DEBUG=
2834 else
2835 MOZ_DEBUG_SYMBOLS=1
2839 # Check whether --enable-debug-symbols was given.
2840 if test "${enable_debug_symbols+set}" = set; then :
2841 enableval=$enable_debug_symbols; if test "$enableval" != "no"; then
2842 MOZ_DEBUG_SYMBOLS=1
2843 if test -n "$enableval" -a "$enableval" != "yes"; then
2844 if test -z "$_SAVE_DEBUG_FLAGS"; then
2845 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
2846 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS
2847 else
2848 as_fn_error $? "--enable-debug-symbols flags cannot be used with --enable-debug flags" "$LINENO" 5
2851 else
2852 MOZ_DEBUG_SYMBOLS=
2857 # Check whether --enable-win32-target was given.
2858 if test "${enable_win32_target+set}" = set; then :
2859 enableval=$enable_win32_target; OS_TARGET=`echo $enableval | tr a-z A-Z`
2864 # Check whether --enable-debug-rtl was given.
2865 if test "${enable_debug_rtl+set}" = set; then :
2866 enableval=$enable_debug_rtl; if test "$enableval" = "yes"; then
2867 USE_DEBUG_RTL=1
2868 else
2869 USE_DEBUG_RTL=0
2874 # Check whether --enable-static-rtl was given.
2875 if test "${enable_static_rtl+set}" = set; then :
2876 enableval=$enable_static_rtl; if test "$enableval" = "yes"; then
2877 USE_STATIC_RTL=1
2882 # Check whether --enable-x32 was given.
2883 if test "${enable_x32+set}" = set; then :
2884 enableval=$enable_x32; if test "$enableval" = "yes"; then
2885 USE_X32=1
2886 else if test "$enableval" = "no"; then
2887 USE_X32=
2893 # Check whether --enable-64bit was given.
2894 if test "${enable_64bit+set}" = set; then :
2895 enableval=$enable_64bit; if test "$enableval" = "yes"; then
2896 USE_64=1
2901 # Check whether --enable-mdupdate was given.
2902 if test "${enable_mdupdate+set}" = set; then :
2903 enableval=$enable_mdupdate; if test "$enableval" = "yes"; then
2904 USE_MDUPDATE=1
2909 # Check whether --enable-cplus was given.
2910 if test "${enable_cplus+set}" = set; then :
2911 enableval=$enable_cplus; if test "$enableval" = "yes"; then
2912 USE_CPLUS=1
2918 # Check whether --with-arm-kuser was given.
2919 if test "${with_arm_kuser+set}" = set; then :
2920 withval=$with_arm_kuser; if test "$withval" = "yes"; then
2921 $as_echo "#define _PR_ARM_KUSER 1" >>confdefs.h
2928 # Check whether --with-macos-sdk was given.
2929 if test "${with_macos_sdk+set}" = set; then :
2930 withval=$with_macos_sdk; MACOS_SDK_DIR=$withval
2934 # Check whether --enable-macos-target was given.
2935 if test "${enable_macos_target+set}" = set; then :
2936 enableval=$enable_macos_target; _MACOSX_DEPLOYMENT_TARGET=$enableval
2940 case "$target" in
2942 *-aix*)
2943 case "${target_os}" in
2944 aix3.2*)
2945 USE_NSPR_THREADS=1
2948 USE_PTHREADS=1
2950 esac
2953 esac
2955 if test -z "$CC"; then
2956 case "$target" in
2958 *-aix*)
2959 if test -z "$USE_NSPR_THREADS"; then
2960 CC=xlc_r
2961 else
2962 CC=xlc
2966 *-hpux*)
2967 CC=cc
2970 *-solaris*)
2971 CC=cc
2974 esac
2977 if test -z "$CXX"; then
2978 case "$target" in
2980 *-aix*)
2981 if test -z "$USE_NSPR_THREADS"; then
2982 CXX=xlC_r
2983 else
2984 CXX=xlC
2988 *-hpux*)
2989 case "${target_os}" in
2990 hpux10.30)
2991 CXX=aCC
2993 hpux11.*)
2994 CXX=aCC
2997 CXX=CC
2999 esac
3002 *-solaris*)
3003 CXX=CC
3006 esac
3009 if test -z "$SKIP_PATH_CHECKS"; then
3010 # Extract the first word of "$WHOAMI whoami", so it can be a program name with args.
3011 set dummy $WHOAMI whoami; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if ${ac_cv_path_WHOAMI+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 case $WHOAMI in
3018 [\\/]* | ?:[\\/]*)
3019 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3029 ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3033 done
3034 done
3035 IFS=$as_save_IFS
3037 test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami"
3039 esac
3041 WHOAMI=$ac_cv_path_WHOAMI
3042 if test -n "$WHOAMI"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5
3044 $as_echo "$WHOAMI" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3053 if test -n "$MOZ_DEBUG"; then
3054 $as_echo "#define DEBUG 1" >>confdefs.h
3056 DEFINES="$DEFINES -UNDEBUG"
3058 case "${target_os}" in
3059 mks*|cygwin*|mingw*|msys*|os2*)
3060 DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`"
3063 DEFINES="$DEFINES -DDEBUG_`$WHOAMI`"
3065 esac
3066 else
3067 $as_echo "#define NDEBUG 1" >>confdefs.h
3069 DEFINES="$DEFINES -UDEBUG"
3072 if test -z "$SKIP_COMPILER_CHECKS"; then
3073 if test "$target" != "$host"; then
3074 echo "cross compiling from $host to $target"
3075 cross_compiling=yes
3077 case "$build:$target" in
3078 powerpc-apple-darwin8*:i?86-apple-darwin*)
3079 _SAVE_CFLAGS=$CFLAGS
3080 _SAVE_CXXFLAGS=$CXXFLAGS
3081 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS"
3082 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS"
3084 esac
3086 for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc"
3088 # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy $ac_prog; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_CC="$ac_prog"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3109 done
3110 done
3111 IFS=$as_save_IFS
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3125 test -n "$CC" && break
3126 done
3127 test -n "$CC" || CC="echo"
3129 unset ac_cv_prog_CC
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3161 IFS=$as_save_IFS
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3176 if test -z "$ac_cv_prog_CC"; then
3177 ac_ct_CC=$CC
3178 # Extract the first word of "gcc", so it can be a program name with args.
3179 set dummy gcc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$ac_ct_CC"; then
3186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_ac_ct_CC="gcc"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3199 done
3200 done
3201 IFS=$as_save_IFS
3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3214 if test "x$ac_ct_CC" = x; then
3215 CC=""
3216 else
3217 case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3222 esac
3223 CC=$ac_ct_CC
3225 else
3226 CC="$ac_cv_prog_CC"
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}cc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_CC+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 if test -n "$CC"; then
3239 ac_cv_prog_CC="$CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_CC="${ac_tool_prefix}cc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3252 done
3253 done
3254 IFS=$as_save_IFS
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3270 if test -z "$CC"; then
3271 # Extract the first word of "cc", so it can be a program name with args.
3272 set dummy cc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 ac_prog_rejected=no
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290 ac_prog_rejected=yes
3291 continue
3293 ac_cv_prog_CC="cc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3299 IFS=$as_save_IFS
3301 if test $ac_prog_rejected = yes; then
3302 # We found a bogon in the path, so make sure we never use it.
3303 set dummy $ac_cv_prog_CC
3304 shift
3305 if test $# != 0; then
3306 # We chose a different compiler from the bogus one.
3307 # However, it has the same basename, so the bogon will be chosen
3308 # first if we set CC to just the basename; use the full file name.
3309 shift
3310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3326 if test -z "$CC"; then
3327 if test -n "$ac_tool_prefix"; then
3328 for ac_prog in cl.exe
3330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3351 done
3352 done
3353 IFS=$as_save_IFS
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3367 test -n "$CC" && break
3368 done
3370 if test -z "$CC"; then
3371 ac_ct_CC=$CC
3372 for ac_prog in cl.exe
3374 # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy $ac_prog; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$ac_ct_CC"; then
3382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_ac_ct_CC="$ac_prog"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3395 done
3396 done
3397 IFS=$as_save_IFS
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3411 test -n "$ac_ct_CC" && break
3412 done
3414 if test "x$ac_ct_CC" = x; then
3415 CC=""
3416 else
3417 case $cross_compiling:$ac_tool_warned in
3418 yes:)
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3422 esac
3423 CC=$ac_ct_CC
3430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "no acceptable C compiler found in \$PATH
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 # Provide some information about the compiler.
3436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3437 set X $ac_compile
3438 ac_compiler=$2
3439 for ac_option in --version -v -V -qversion; do
3440 { { ac_try="$ac_compiler $ac_option >&5"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448 ac_status=$?
3449 if test -s conftest.err; then
3450 sed '10a\
3451 ... rest of stderr output deleted ...
3452 10q' conftest.err >conftest.er1
3453 cat conftest.er1 >&5
3455 rm -f conftest.er1 conftest.err
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3458 done
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3464 main ()
3468 return 0;
3470 _ACEOF
3471 ac_clean_files_save=$ac_clean_files
3472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3473 # Try to create an executable without -o first, disregard a.out.
3474 # It will help us diagnose broken compilers, and finding out an intuition
3475 # of exeext.
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3477 $as_echo_n "checking whether the C compiler works... " >&6; }
3478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3480 # The possible output files:
3481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3483 ac_rmfiles=
3484 for ac_file in $ac_files
3486 case $ac_file in
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3489 esac
3490 done
3491 rm -f $ac_rmfiles
3493 if { { ac_try="$ac_link_default"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_link_default") 2>&5
3501 ac_status=$?
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3506 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3507 # so that the user can short-circuit this test for compilers unknown to
3508 # Autoconf.
3509 for ac_file in $ac_files ''
3511 test -f "$ac_file" || continue
3512 case $ac_file in
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3515 [ab].out )
3516 # We found the default executable, but exeext='' is most
3517 # certainly right.
3518 break;;
3519 *.* )
3520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3521 then :; else
3522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 # We set ac_cv_exeext here because the later test for it is not
3525 # safe: cross compilers may not add the suffix if given an `-o'
3526 # argument, so we may need to know it at that point already.
3527 # Even if this section looks crufty: it has the advantage of
3528 # actually working.
3529 break;;
3531 break;;
3532 esac
3533 done
3534 test "$ac_cv_exeext" = no && ac_cv_exeext=
3536 else
3537 ac_file=''
3539 if test -z "$ac_file"; then :
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error 77 "C compiler cannot create executables
3548 See \`config.log' for more details" "$LINENO" 5; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 $as_echo_n "checking for C compiler default output file name... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 ac_exeext=$ac_cv_exeext
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3560 ac_clean_files=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 $as_echo_n "checking for suffix of executables... " >&6; }
3563 if { { ac_try="$ac_link"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3571 ac_status=$?
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; then :
3574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3576 # work properly (i.e., refer to `conftest.exe'), while it won't with
3577 # `rm'.
3578 for ac_file in conftest.exe conftest conftest.*; do
3579 test -f "$ac_file" || continue
3580 case $ac_file in
3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583 break;;
3584 * ) break;;
3585 esac
3586 done
3587 else
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 rm -f conftest conftest$ac_cv_exeext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595 $as_echo "$ac_cv_exeext" >&6; }
3597 rm -f conftest.$ac_ext
3598 EXEEXT=$ac_cv_exeext
3599 ac_exeext=$EXEEXT
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602 #include <stdio.h>
3604 main ()
3606 FILE *f = fopen ("conftest.out", "w");
3607 return ferror (f) || fclose (f) != 0;
3610 return 0;
3612 _ACEOF
3613 ac_clean_files="$ac_clean_files conftest.out"
3614 # Check that the compiler produces executables we can run. If not, either
3615 # the compiler is broken, or we cross compile.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617 $as_echo_n "checking whether we are cross compiling... " >&6; }
3618 if test "$cross_compiling" != yes; then
3619 { { ac_try="$ac_link"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_link") 2>&5
3627 ac_status=$?
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }
3630 if { ac_try='./conftest$ac_cv_exeext'
3631 { { case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_try") 2>&5
3638 ac_status=$?
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; }; then
3641 cross_compiling=no
3642 else
3643 if test "$cross_compiling" = maybe; then
3644 cross_compiling=yes
3645 else
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot run C compiled programs.
3649 If you meant to cross compile, use \`--host'.
3650 See \`config.log' for more details" "$LINENO" 5; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655 $as_echo "$cross_compiling" >&6; }
3657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if ${ac_cv_objext+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3668 main ()
3672 return 0;
3674 _ACEOF
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compile") 2>&5
3684 ac_status=$?
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 for ac_file in conftest.o conftest.obj conftest.*; do
3688 test -f "$ac_file" || continue;
3689 case $ac_file in
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3692 break;;
3693 esac
3694 done
3695 else
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $? "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details" "$LINENO" 5; }
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3709 ac_objext=$OBJEXT
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if ${ac_cv_c_compiler_gnu+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3719 main ()
3721 #ifndef __GNUC__
3722 choke me
3723 #endif
3726 return 0;
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_compiler_gnu=yes
3731 else
3732 ac_compiler_gnu=no
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3741 GCC=yes
3742 else
3743 GCC=
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if ${ac_cv_prog_cc_g+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3754 ac_cv_prog_cc_g=no
3755 CFLAGS="-g"
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3760 main ()
3764 return 0;
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_prog_cc_g=yes
3769 else
3770 CFLAGS=""
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3775 main ()
3779 return 0;
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3784 else
3785 ac_c_werror_flag=$ac_save_c_werror_flag
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3791 main ()
3795 return 0;
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3814 CFLAGS="-g -O2"
3815 else
3816 CFLAGS="-g"
3818 else
3819 if test "$GCC" = yes; then
3820 CFLAGS="-O2"
3821 else
3822 CFLAGS=
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if ${ac_cv_prog_cc_c89+:} false; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 ac_cv_prog_cc_c89=no
3831 ac_save_CC=$CC
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #include <stdarg.h>
3835 #include <stdio.h>
3836 struct stat;
3837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3838 struct buf { int x; };
3839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3840 static char *e (p, i)
3841 char **p;
3842 int i;
3844 return p[i];
3846 static char *f (char * (*g) (char **, int), char **p, ...)
3848 char *s;
3849 va_list v;
3850 va_start (v,p);
3851 s = g (p, va_arg (v,int));
3852 va_end (v);
3853 return s;
3856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3857 function prototypes and stuff, but not '\xHH' hex character constants.
3858 These don't provoke an error unfortunately, instead are silently treated
3859 as 'x'. The following induces an error, until -std is added to get
3860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3861 array size at least. It's necessary to write '\x00'==0 to get something
3862 that's true only with -std. */
3863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3866 inside strings and character constants. */
3867 #define FOO(x) 'x'
3868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3870 int test (int i, double x);
3871 struct s1 {int (*f) (int a);};
3872 struct s2 {int (*f) (double a);};
3873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3874 int argc;
3875 char **argv;
3877 main ()
3879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3881 return 0;
3883 _ACEOF
3884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887 CC="$ac_save_CC $ac_arg"
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889 ac_cv_prog_cc_c89=$ac_arg
3891 rm -f core conftest.err conftest.$ac_objext
3892 test "x$ac_cv_prog_cc_c89" != "xno" && break
3893 done
3894 rm -f conftest.$ac_ext
3895 CC=$ac_save_CC
3898 # AC_CACHE_VAL
3899 case "x$ac_cv_prog_cc_c89" in
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3903 xno)
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3907 CC="$CC $ac_cv_prog_cc_c89"
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3910 esac
3911 if test "x$ac_cv_prog_cc_c89" != xno; then :
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 if test "$target" != "$host"; then
3923 if test -n "$USE_CPLUS"; then
3924 for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if ${ac_cv_prog_CXX+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 if test -n "$CXX"; then
3934 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_CXX="$ac_prog"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3947 done
3948 done
3949 IFS=$as_save_IFS
3953 CXX=$ac_cv_prog_CXX
3954 if test -n "$CXX"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3956 $as_echo "$CXX" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3963 test -n "$CXX" && break
3964 done
3965 test -n "$CXX" || CXX="echo"
3967 unset ac_cv_prog_CXX
3968 ac_ext=cpp
3969 ac_cpp='$CXXCPP $CPPFLAGS'
3970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3973 if test -z "$CXX"; then
3974 if test -n "$CCC"; then
3975 CXX=$CCC
3976 else
3977 if test -n "$ac_tool_prefix"; then
3978 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if ${ac_cv_prog_CXX+:} false; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 if test -n "$CXX"; then
3988 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4007 CXX=$ac_cv_prog_CXX
4008 if test -n "$CXX"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4010 $as_echo "$CXX" >&6; }
4011 else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4017 test -n "$CXX" && break
4018 done
4020 if test -z "$CXX"; then
4021 ac_ct_CXX=$CXX
4022 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -n "$ac_ct_CXX"; then
4032 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_ac_ct_CXX="$ac_prog"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4047 IFS=$as_save_IFS
4051 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4052 if test -n "$ac_ct_CXX"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4054 $as_echo "$ac_ct_CXX" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4061 test -n "$ac_ct_CXX" && break
4062 done
4064 if test "x$ac_ct_CXX" = x; then
4065 CXX="g++"
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068 yes:)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned=yes ;;
4072 esac
4073 CXX=$ac_ct_CXX
4079 # Provide some information about the compiler.
4080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4081 set X $ac_compile
4082 ac_compiler=$2
4083 for ac_option in --version -v -V -qversion; do
4084 { { ac_try="$ac_compiler $ac_option >&5"
4085 case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4092 ac_status=$?
4093 if test -s conftest.err; then
4094 sed '10a\
4095 ... rest of stderr output deleted ...
4096 10q' conftest.err >conftest.er1
4097 cat conftest.er1 >&5
4099 rm -f conftest.er1 conftest.err
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }
4102 done
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4105 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4106 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4113 main ()
4115 #ifndef __GNUC__
4116 choke me
4117 #endif
4120 return 0;
4122 _ACEOF
4123 if ac_fn_cxx_try_compile "$LINENO"; then :
4124 ac_compiler_gnu=yes
4125 else
4126 ac_compiler_gnu=no
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4133 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4134 if test $ac_compiler_gnu = yes; then
4135 GXX=yes
4136 else
4137 GXX=
4139 ac_test_CXXFLAGS=${CXXFLAGS+set}
4140 ac_save_CXXFLAGS=$CXXFLAGS
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4142 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4143 if ${ac_cv_prog_cxx_g+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4147 ac_cxx_werror_flag=yes
4148 ac_cv_prog_cxx_g=no
4149 CXXFLAGS="-g"
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4154 main ()
4158 return 0;
4160 _ACEOF
4161 if ac_fn_cxx_try_compile "$LINENO"; then :
4162 ac_cv_prog_cxx_g=yes
4163 else
4164 CXXFLAGS=""
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4169 main ()
4173 return 0;
4175 _ACEOF
4176 if ac_fn_cxx_try_compile "$LINENO"; then :
4178 else
4179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4180 CXXFLAGS="-g"
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4185 main ()
4189 return 0;
4191 _ACEOF
4192 if ac_fn_cxx_try_compile "$LINENO"; then :
4193 ac_cv_prog_cxx_g=yes
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4203 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4204 if test "$ac_test_CXXFLAGS" = set; then
4205 CXXFLAGS=$ac_save_CXXFLAGS
4206 elif test $ac_cv_prog_cxx_g = yes; then
4207 if test "$GXX" = yes; then
4208 CXXFLAGS="-g -O2"
4209 else
4210 CXXFLAGS="-g"
4212 else
4213 if test "$GXX" = yes; then
4214 CXXFLAGS="-O2"
4215 else
4216 CXXFLAGS=
4219 ac_ext=c
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227 case "$build:$target" in
4228 powerpc-apple-darwin8*:i?86-apple-darwin*|*:arm*-apple-darwin*)
4229 CFLAGS=$_SAVE_CFLAGS
4230 CXXFLAGS=$_SAVE_CXXFLAGS
4232 esac
4234 for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib"
4236 # Extract the first word of "$ac_prog", so it can be a program name with args.
4237 set dummy $ac_prog; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if ${ac_cv_prog_RANLIB+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -n "$RANLIB"; then
4244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_RANLIB="$ac_prog"
4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4257 done
4258 done
4259 IFS=$as_save_IFS
4263 RANLIB=$ac_cv_prog_RANLIB
4264 if test -n "$RANLIB"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4266 $as_echo "$RANLIB" >&6; }
4267 else
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4273 test -n "$RANLIB" && break
4274 done
4275 test -n "$RANLIB" || RANLIB="echo"
4277 for ac_prog in $AR "${target_alias}-ar" "${target}-ar"
4279 # Extract the first word of "$ac_prog", so it can be a program name with args.
4280 set dummy $ac_prog; ac_word=$2
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282 $as_echo_n "checking for $ac_word... " >&6; }
4283 if ${ac_cv_prog_AR+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 if test -n "$AR"; then
4287 ac_cv_prog_AR="$AR" # Let the user override the test.
4288 else
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4296 ac_cv_prog_AR="$ac_prog"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4300 done
4301 done
4302 IFS=$as_save_IFS
4306 AR=$ac_cv_prog_AR
4307 if test -n "$AR"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4309 $as_echo "$AR" >&6; }
4310 else
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4316 test -n "$AR" && break
4317 done
4318 test -n "$AR" || AR="echo"
4320 for ac_prog in $AS "${target_alias}-as" "${target}-as"
4322 # Extract the first word of "$ac_prog", so it can be a program name with args.
4323 set dummy $ac_prog; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_prog_AS+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -n "$AS"; then
4330 ac_cv_prog_AS="$AS" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339 ac_cv_prog_AS="$ac_prog"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4345 IFS=$as_save_IFS
4349 AS=$ac_cv_prog_AS
4350 if test -n "$AS"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4352 $as_echo "$AS" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4359 test -n "$AS" && break
4360 done
4361 test -n "$AS" || AS="echo"
4363 for ac_prog in $LD "${target_alias}-ld" "${target}-ld"
4365 # Extract the first word of "$ac_prog", so it can be a program name with args.
4366 set dummy $ac_prog; ac_word=$2
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 $as_echo_n "checking for $ac_word... " >&6; }
4369 if ${ac_cv_prog_LD+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if test -n "$LD"; then
4373 ac_cv_prog_LD="$LD" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 ac_cv_prog_LD="$ac_prog"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
4386 done
4387 done
4388 IFS=$as_save_IFS
4392 LD=$ac_cv_prog_LD
4393 if test -n "$LD"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4395 $as_echo "$LD" >&6; }
4396 else
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4402 test -n "$LD" && break
4403 done
4404 test -n "$LD" || LD="echo"
4406 for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip"
4408 # Extract the first word of "$ac_prog", so it can be a program name with args.
4409 set dummy $ac_prog; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if ${ac_cv_prog_STRIP+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if test -n "$STRIP"; then
4416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_STRIP="$ac_prog"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4429 done
4430 done
4431 IFS=$as_save_IFS
4435 STRIP=$ac_cv_prog_STRIP
4436 if test -n "$STRIP"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4438 $as_echo "$STRIP" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4445 test -n "$STRIP" && break
4446 done
4447 test -n "$STRIP" || STRIP="echo"
4449 for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres"
4451 # Extract the first word of "$ac_prog", so it can be a program name with args.
4452 set dummy $ac_prog; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_WINDRES+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 if test -n "$WINDRES"; then
4459 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_WINDRES="$ac_prog"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4472 done
4473 done
4474 IFS=$as_save_IFS
4478 WINDRES=$ac_cv_prog_WINDRES
4479 if test -n "$WINDRES"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4481 $as_echo "$WINDRES" >&6; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4488 test -n "$WINDRES" && break
4489 done
4490 test -n "$WINDRES" || WINDRES="echo"
4493 _SAVE_CC="$CC"
4494 _SAVE_CFLAGS="$CFLAGS"
4495 _SAVE_LDFLAGS="$LDFLAGS"
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $host compiler" >&5
4498 $as_echo_n "checking for $host compiler... " >&6; }
4499 for ac_prog in $HOST_CC gcc cc /usr/ucb/cc
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_HOST_CC+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -n "$HOST_CC"; then
4509 ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_HOST_CC="$ac_prog"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4522 done
4523 done
4524 IFS=$as_save_IFS
4528 HOST_CC=$ac_cv_prog_HOST_CC
4529 if test -n "$HOST_CC"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5
4531 $as_echo "$HOST_CC" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4538 test -n "$HOST_CC" && break
4539 done
4540 test -n "$HOST_CC" || HOST_CC=""""
4542 if test -z "$HOST_CC"; then
4543 as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5
4546 $as_echo "$HOST_CC" >&6; }
4548 CC="$HOST_CC"
4549 CFLAGS="$HOST_CFLAGS"
4550 LDFLAGS="$HOST_LDFLAGS"
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
4553 $as_echo_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works... " >&6; }
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4559 main ()
4561 return 0;
4563 return 0;
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4568 $as_echo "yes" >&6; }
4569 else
4570 as_fn_error $? "installation or configuration problem: $host compiler $HOST_CC cannot create executables." "$LINENO" 5
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 CC=$_SAVE_CC
4575 CFLAGS=$_SAVE_CFLAGS
4576 LDFLAGS=$_SAVE_LDFLAGS
4577 else
4578 if test -n "$USE_CPLUS"; then
4579 if test "$CC" = "cl" -a -z "$CXX"; then
4580 CXX=$CC
4581 else
4582 ac_ext=cpp
4583 ac_cpp='$CXXCPP $CPPFLAGS'
4584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4587 if test -z "$CXX"; then
4588 if test -n "$CCC"; then
4589 CXX=$CCC
4590 else
4591 if test -n "$ac_tool_prefix"; then
4592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_CXX+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$CXX"; then
4602 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4617 IFS=$as_save_IFS
4621 CXX=$ac_cv_prog_CXX
4622 if test -n "$CXX"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4624 $as_echo "$CXX" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4631 test -n "$CXX" && break
4632 done
4634 if test -z "$CXX"; then
4635 ac_ct_CXX=$CXX
4636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$ac_ct_CXX"; then
4646 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_ac_ct_CXX="$ac_prog"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4661 IFS=$as_save_IFS
4665 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4666 if test -n "$ac_ct_CXX"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4668 $as_echo "$ac_ct_CXX" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4675 test -n "$ac_ct_CXX" && break
4676 done
4678 if test "x$ac_ct_CXX" = x; then
4679 CXX="g++"
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682 yes:)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4686 esac
4687 CXX=$ac_ct_CXX
4693 # Provide some information about the compiler.
4694 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4695 set X $ac_compile
4696 ac_compiler=$2
4697 for ac_option in --version -v -V -qversion; do
4698 { { ac_try="$ac_compiler $ac_option >&5"
4699 case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702 esac
4703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4704 $as_echo "$ac_try_echo"; } >&5
4705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4706 ac_status=$?
4707 if test -s conftest.err; then
4708 sed '10a\
4709 ... rest of stderr output deleted ...
4710 10q' conftest.err >conftest.er1
4711 cat conftest.er1 >&5
4713 rm -f conftest.er1 conftest.err
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }
4716 done
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4719 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4720 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4727 main ()
4729 #ifndef __GNUC__
4730 choke me
4731 #endif
4734 return 0;
4736 _ACEOF
4737 if ac_fn_cxx_try_compile "$LINENO"; then :
4738 ac_compiler_gnu=yes
4739 else
4740 ac_compiler_gnu=no
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4747 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4748 if test $ac_compiler_gnu = yes; then
4749 GXX=yes
4750 else
4751 GXX=
4753 ac_test_CXXFLAGS=${CXXFLAGS+set}
4754 ac_save_CXXFLAGS=$CXXFLAGS
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4756 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4757 if ${ac_cv_prog_cxx_g+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4761 ac_cxx_werror_flag=yes
4762 ac_cv_prog_cxx_g=no
4763 CXXFLAGS="-g"
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4768 main ()
4772 return 0;
4774 _ACEOF
4775 if ac_fn_cxx_try_compile "$LINENO"; then :
4776 ac_cv_prog_cxx_g=yes
4777 else
4778 CXXFLAGS=""
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4783 main ()
4787 return 0;
4789 _ACEOF
4790 if ac_fn_cxx_try_compile "$LINENO"; then :
4792 else
4793 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4794 CXXFLAGS="-g"
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4799 main ()
4803 return 0;
4805 _ACEOF
4806 if ac_fn_cxx_try_compile "$LINENO"; then :
4807 ac_cv_prog_cxx_g=yes
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4817 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4818 if test "$ac_test_CXXFLAGS" = set; then
4819 CXXFLAGS=$ac_save_CXXFLAGS
4820 elif test $ac_cv_prog_cxx_g = yes; then
4821 if test "$GXX" = yes; then
4822 CXXFLAGS="-g -O2"
4823 else
4824 CXXFLAGS="-g"
4826 else
4827 if test "$GXX" = yes; then
4828 CXXFLAGS="-O2"
4829 else
4830 CXXFLAGS=
4833 ac_ext=c
4834 ac_cpp='$CPP $CPPFLAGS'
4835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841 if test -n "$ac_tool_prefix"; then
4842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_RANLIB+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$RANLIB"; then
4850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4863 done
4864 done
4865 IFS=$as_save_IFS
4869 RANLIB=$ac_cv_prog_RANLIB
4870 if test -n "$RANLIB"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4872 $as_echo "$RANLIB" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4880 if test -z "$ac_cv_prog_RANLIB"; then
4881 ac_ct_RANLIB=$RANLIB
4882 # Extract the first word of "ranlib", so it can be a program name with args.
4883 set dummy ranlib; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$ac_ct_RANLIB"; then
4890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_ac_ct_RANLIB="ranlib"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4910 if test -n "$ac_ct_RANLIB"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4912 $as_echo "$ac_ct_RANLIB" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4918 if test "x$ac_ct_RANLIB" = x; then
4919 RANLIB=":"
4920 else
4921 case $cross_compiling:$ac_tool_warned in
4922 yes:)
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4925 ac_tool_warned=yes ;;
4926 esac
4927 RANLIB=$ac_ct_RANLIB
4929 else
4930 RANLIB="$ac_cv_prog_RANLIB"
4933 for ac_prog in as
4935 # Extract the first word of "$ac_prog", so it can be a program name with args.
4936 set dummy $ac_prog; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_path_AS+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 case $AS in
4943 [\\/]* | ?:[\\/]*)
4944 ac_cv_path_AS="$AS" # Let the user override the test with a path.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4963 esac
4965 AS=$ac_cv_path_AS
4966 if test -n "$AS"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4968 $as_echo "$AS" >&6; }
4969 else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4975 test -n "$AS" && break
4976 done
4977 test -n "$AS" || AS="$CC"
4979 for ac_prog in ar
4981 # Extract the first word of "$ac_prog", so it can be a program name with args.
4982 set dummy $ac_prog; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_path_AR+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 case $AR in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5009 esac
5011 AR=$ac_cv_path_AR
5012 if test -n "$AR"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5014 $as_echo "$AR" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 test -n "$AR" && break
5022 done
5023 test -n "$AR" || AR="echo not_ar"
5025 for ac_prog in ld link
5027 # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_path_LD+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 case $LD in
5035 [\\/]* | ?:[\\/]*)
5036 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5050 done
5051 done
5052 IFS=$as_save_IFS
5055 esac
5057 LD=$ac_cv_path_LD
5058 if test -n "$LD"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5060 $as_echo "$LD" >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5067 test -n "$LD" && break
5068 done
5069 test -n "$LD" || LD="echo not_ld"
5071 for ac_prog in strip
5073 # Extract the first word of "$ac_prog", so it can be a program name with args.
5074 set dummy $ac_prog; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if ${ac_cv_path_STRIP+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 case $STRIP in
5081 [\\/]* | ?:[\\/]*)
5082 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 break 2
5096 done
5097 done
5098 IFS=$as_save_IFS
5101 esac
5103 STRIP=$ac_cv_path_STRIP
5104 if test -n "$STRIP"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5106 $as_echo "$STRIP" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5113 test -n "$STRIP" && break
5114 done
5115 test -n "$STRIP" || STRIP="echo not_strip"
5117 for ac_prog in windres
5119 # Extract the first word of "$ac_prog", so it can be a program name with args.
5120 set dummy $ac_prog; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_path_WINDRES+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 case $WINDRES in
5127 [\\/]* | ?:[\\/]*)
5128 ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5138 ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5142 done
5143 done
5144 IFS=$as_save_IFS
5147 esac
5149 WINDRES=$ac_cv_path_WINDRES
5150 if test -n "$WINDRES"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
5152 $as_echo "$WINDRES" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5159 test -n "$WINDRES" && break
5160 done
5161 test -n "$WINDRES" || WINDRES="echo not_windres"
5163 if test -z "$HOST_CC"; then
5164 HOST_CC="$CC"
5166 if test -z "$HOST_CFLAGS"; then
5167 HOST_CFLAGS="$CFLAGS"
5171 ac_ext=c
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5177 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5178 # On Suns, sometimes $CPP names a directory.
5179 if test -n "$CPP" && test -d "$CPP"; then
5180 CPP=
5182 if test -z "$CPP"; then
5183 if ${ac_cv_prog_CPP+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 # Double quotes because CPP needs to be expanded
5187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5189 ac_preproc_ok=false
5190 for ac_c_preproc_warn_flag in '' yes
5192 # Use a header file that comes with gcc, so configuring glibc
5193 # with a fresh cross-compiler works.
5194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 # <limits.h> exists even on freestanding compilers.
5196 # On the NeXT, cc -E runs the code through the compiler's parser,
5197 # not just through cpp. "Syntax error" is here to catch this case.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #ifdef __STDC__
5201 # include <limits.h>
5202 #else
5203 # include <assert.h>
5204 #endif
5205 Syntax error
5206 _ACEOF
5207 if ac_fn_c_try_cpp "$LINENO"; then :
5209 else
5210 # Broken: fails on valid input.
5211 continue
5213 rm -f conftest.err conftest.i conftest.$ac_ext
5215 # OK, works on sane cases. Now check whether nonexistent headers
5216 # can be detected and how.
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #include <ac_nonexistent.h>
5220 _ACEOF
5221 if ac_fn_c_try_cpp "$LINENO"; then :
5222 # Broken: success on invalid input.
5223 continue
5224 else
5225 # Passes both tests.
5226 ac_preproc_ok=:
5227 break
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5231 done
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.i conftest.err conftest.$ac_ext
5234 if $ac_preproc_ok; then :
5235 break
5238 done
5239 ac_cv_prog_CPP=$CPP
5242 CPP=$ac_cv_prog_CPP
5243 else
5244 ac_cv_prog_CPP=$CPP
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5247 $as_echo "$CPP" >&6; }
5248 ac_preproc_ok=false
5249 for ac_c_preproc_warn_flag in '' yes
5251 # Use a header file that comes with gcc, so configuring glibc
5252 # with a fresh cross-compiler works.
5253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254 # <limits.h> exists even on freestanding compilers.
5255 # On the NeXT, cc -E runs the code through the compiler's parser,
5256 # not just through cpp. "Syntax error" is here to catch this case.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #ifdef __STDC__
5260 # include <limits.h>
5261 #else
5262 # include <assert.h>
5263 #endif
5264 Syntax error
5265 _ACEOF
5266 if ac_fn_c_try_cpp "$LINENO"; then :
5268 else
5269 # Broken: fails on valid input.
5270 continue
5272 rm -f conftest.err conftest.i conftest.$ac_ext
5274 # OK, works on sane cases. Now check whether nonexistent headers
5275 # can be detected and how.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <ac_nonexistent.h>
5279 _ACEOF
5280 if ac_fn_c_try_cpp "$LINENO"; then :
5281 # Broken: success on invalid input.
5282 continue
5283 else
5284 # Passes both tests.
5285 ac_preproc_ok=:
5286 break
5288 rm -f conftest.err conftest.i conftest.$ac_ext
5290 done
5291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5292 rm -f conftest.i conftest.err conftest.$ac_ext
5293 if $ac_preproc_ok; then :
5295 else
5296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5298 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5299 See \`config.log' for more details" "$LINENO" 5; }
5302 ac_ext=c
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 if test "$GCC" = "yes"; then
5310 GNU_CC=1
5312 if test "$GXX" = "yes"; then
5313 GNU_CXX=1
5315 if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then
5316 GNU_AS=1
5318 rm -f a.out
5320 case "$build:$target" in
5321 i?86-apple-darwin*:powerpc-apple-darwin*)
5322 cross_compiling=yes
5324 esac
5326 if test "$cross_compiling" = "yes"; then
5327 CROSS_COMPILE=1
5328 else
5329 CROSS_COMPILE=
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pipe support" >&5
5333 $as_echo_n "checking for gcc -pipe support... " >&6; }
5334 if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
5335 echo '#include <stdio.h>' > dummy-hello.c
5336 echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c
5337 ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5
5338 cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5
5339 if test $? = 0; then
5340 _res_as_stdin="yes"
5341 else
5342 _res_as_stdin="no"
5344 if test "$_res_as_stdin" = "yes"; then
5345 _SAVE_CFLAGS=$CFLAGS
5346 CFLAGS="$CFLAGS -pipe"
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 #include <stdio.h>
5351 main ()
5353 printf("Hello World\n");
5355 return 0;
5357 _ACEOF
5358 if ac_fn_c_try_compile "$LINENO"; then :
5359 _res_gcc_pipe="yes"
5360 else
5361 _res_gcc_pipe="no"
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 CFLAGS=$_SAVE_CFLAGS
5366 if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then
5367 _res="yes";
5368 CFLAGS="$CFLAGS -pipe"
5369 CXXFLAGS="$CXXFLAGS -pipe"
5370 else
5371 _res="no"
5373 rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5
5375 $as_echo "$_res" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pragma diagnostic" >&5
5383 $as_echo_n "checking for pragma diagnostic... " >&6; }
5384 if test "$GNU_CC" = "1"; then
5385 cat >dummy-hello.c <<EOF
5386 #ifdef _PR_HAS_PRAGMA_DIAGNOSTIC
5387 #pragma GCC diagnostic push
5388 #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
5389 #endif
5390 int main() {
5391 char *dummy = "";
5392 return 0;
5395 ${CC} -Werror=unused-but-set-variable -S dummy-hello.c -o dummy-hello.s 2>&5
5396 if test $? != 0; then
5397 ${CC} -Werror=unused-but-set-variable -D_PR_HAS_PRAGMA_DIAGNOSTIC -S dummy-hello.c -o dummy-hello.s 2>&5
5398 if test $? = 0; then
5399 CFLAGS="$CFLAGS -D_PR_HAS_PRAGMA_DIAGNOSTIC=1"
5400 _res=yes
5401 else
5402 _res=no
5404 else
5405 _res=no
5407 rm -f dummy-hello.c dummy-hello.s
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5
5409 $as_echo "$_res" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5416 _SAVE_CFLAGS="$CFLAGS"
5417 CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction"
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fprofile-generate" >&5
5420 $as_echo_n "checking whether C compiler supports -fprofile-generate... " >&6; }
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5425 main ()
5427 return 0;
5429 return 0;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 PROFILE_GEN_CFLAGS="-fprofile-generate"
5434 result="yes"
5435 else
5436 result="no"
5438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
5440 $as_echo "$result" >&6; }
5442 if test $result = "yes"; then
5443 PROFILE_GEN_LDFLAGS="-fprofile-generate"
5444 PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch"
5445 PROFILE_USE_LDFLAGS="-fprofile-use"
5448 CFLAGS="$_SAVE_CFLAGS"
5450 if test "$GNU_CC"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility(hidden) attribute" >&5
5452 $as_echo_n "checking for visibility(hidden) attribute... " >&6; }
5453 if ${ac_cv_visibility_hidden+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 cat > conftest.c <<EOF
5457 int foo __attribute__ ((visibility ("hidden"))) = 1;
5459 ac_cv_visibility_hidden=no
5460 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
5461 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5462 ac_cv_visibility_hidden=yes
5465 rm -f conftest.cs
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_hidden" >&5
5469 $as_echo "$ac_cv_visibility_hidden" >&6; }
5470 if test "$ac_cv_visibility_hidden" = "yes"; then
5471 $as_echo "#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1" >>confdefs.h
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility pragma support" >&5
5474 $as_echo_n "checking for visibility pragma support... " >&6; }
5475 if ${ac_cv_visibility_pragma+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 cat > conftest.c <<EOF
5479 #pragma GCC visibility push(hidden)
5480 int foo_hidden = 1;
5481 #pragma GCC visibility push(default)
5482 int foo_default = 1;
5484 ac_cv_visibility_pragma=no
5485 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
5486 if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then
5487 if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then
5488 ac_cv_visibility_pragma=yes
5492 rm -f conftest.cs
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_pragma" >&5
5496 $as_echo "$ac_cv_visibility_pragma" >&6; }
5497 if test "$ac_cv_visibility_pragma" = "yes"; then
5498 $as_echo "#define HAVE_VISIBILITY_PRAGMA 1" >>confdefs.h
5500 # To work around a build problem on Linux x86-64 (Bugzilla bug
5501 # 293438), we use the -fvisibility=hidden flag. This flag is less
5502 # optimal than #pragma GCC visibility push(hidden) because the flag
5503 # assumes that symbols defined outside the current source file have
5504 # the default visibility. This has the advantage that we don't need
5505 # to wrap system header files, but has the disadvantage that calls
5506 # to hidden symbols defined in other source files cannot be
5507 # optimized by the compiler. The -fvisibility=hidden flag does
5508 # hide and export symbols correctly.
5509 #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
5510 #WRAP_SYSTEM_INCLUDES=1
5511 VISIBILITY_FLAGS="-fvisibility=hidden"
5512 WRAP_SYSTEM_INCLUDES=
5515 fi # GNU_CC
5517 fi # SKIP_COMPILER_CHECKS
5519 if test -z "$SKIP_PATH_CHECKS"; then
5520 for ac_prog in perl5 perl
5522 # Extract the first word of "$ac_prog", so it can be a program name with args.
5523 set dummy $ac_prog; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_path_PERL+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 case $PERL in
5530 [\\/]* | ?:[\\/]*)
5531 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5545 done
5546 done
5547 IFS=$as_save_IFS
5550 esac
5552 PERL=$ac_cv_path_PERL
5553 if test -n "$PERL"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5555 $as_echo "$PERL" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5562 test -n "$PERL" && break
5563 done
5564 test -n "$PERL" || PERL="echo not_perl"
5566 elif test -z "$PERL"; then
5567 PERL=perl
5570 OBJ_SUFFIX=o
5571 LIB_SUFFIX=a
5572 DLL_SUFFIX=so
5573 ASM_SUFFIX=s
5574 MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
5575 PR_MD_ASFILES=
5576 PR_MD_CSRCS=
5577 PR_MD_ARCH_DIR=unix
5578 AR_FLAGS='cr $@'
5579 AS='$(CC)'
5580 ASFLAGS='$(CFLAGS)'
5582 if test -n "$CROSS_COMPILE"; then
5583 OS_ARCH=`echo $target_os | sed -e 's|/|_|g'`
5584 OS_RELEASE=
5585 OS_TEST="${target_cpu}"
5586 case "${target_os}" in
5587 linux*) OS_ARCH=Linux ;;
5588 solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;;
5589 mingw*) OS_ARCH=WINNT CPU_ARCH=x86 ;;
5590 darwin*) OS_ARCH=Darwin ;;
5591 riscos*) OS_ARCH=RISCOS ;;
5592 esac
5593 else
5594 OS_ARCH=`uname -s | sed -e 's|/|_|g'`
5595 OS_RELEASE=`uname -r`
5596 OS_TEST=`uname -m`
5599 if test "$OS_ARCH" = "AIX"; then
5600 OS_RELEASE=`uname -v`.`uname -r`
5603 if test "$OS_ARCH" = "FreeBSD"; then
5604 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
5607 if test "$OS_ARCH" = "Linux"; then
5608 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
5609 OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 "." $2 }'`
5612 #######################################################################
5613 # Master "Core Components" macros for getting the OS target #
5614 #######################################################################
5617 # Note: OS_TARGET should be specified on the command line for gmake.
5618 # When OS_TARGET=WIN95 is specified, then a Windows 95 target is built.
5619 # The difference between the Win95 target and the WinNT target is that
5620 # the WinNT target uses Windows NT specific features not available
5621 # in Windows 95. The Win95 target will run on Windows NT, but (supposedly)
5622 # at lesser performance (the Win95 target uses threads; the WinNT target
5623 # uses fibers).
5625 # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
5626 # cross-compilation.
5630 # The following hack allows one to build on a WIN95 machine (as if
5631 # s/he were cross-compiling on a WINNT host for a WIN95 target).
5632 # It also accomodates for MKS's uname.exe. If you never intend
5633 # to do development on a WIN95 machine, you don't need this hack.
5635 case "$OS_ARCH" in
5636 Windows_95)
5637 OS_ARCH=Windows_NT
5638 OS_TARGET=WIN95
5640 Windows_98)
5641 OS_ARCH=Windows_NT
5642 OS_TARGET=WIN95
5644 CYGWIN_9*|CYGWIN_ME*)
5645 OS_ARCH='CYGWIN_NT-4.0'
5646 OS_TARGET=WIN95
5648 OS_2)
5649 OS_ARCH=OS2
5650 OS_TARGET=OS2
5652 esac
5655 # On WIN32, we also define the variable CPU_ARCH.
5658 case "$OS_ARCH" in
5659 Windows_NT)
5661 # If uname -s returns "Windows_NT", we assume that we are using
5662 # the uname.exe in MKS toolkit.
5664 # The -r option of MKS uname only returns the major version number.
5665 # So we need to use its -v option to get the minor version number.
5666 # Moreover, it doesn't have the -p option, so we need to use uname -m.
5668 OS_ARCH=WINNT
5669 OS_MINOR_RELEASE=`uname -v`
5670 if test "$OS_MINOR_RELEASE" = "00"; then
5671 OS_MINOR_RELEASE=0
5673 OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}"
5674 CPU_ARCH=`uname -m`
5676 # MKS's uname -m returns "586" on a Pentium machine.
5678 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
5679 CPU_ARCH=x86
5682 CYGWIN_NT*|MINGW*_NT*|MSYS_NT*)
5684 # If uname -s returns "CYGWIN_NT-4.0", we assume that we are using
5685 # the uname.exe in the Cygwin tools.
5686 # If uname -s returns "MINGW32_NT-5.1", we assume that we are using
5687 # the uname.exe in the MSYS tools.
5688 # If uname -s returns "MSYS_NT-6.3", we assume that we are using
5689 # the uname.exe in the MSYS2 tools.
5691 OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'`
5692 OS_ARCH=WINNT
5693 CPU_ARCH=`uname -m`
5695 # Cygwin's uname -m returns "i686" on a Pentium Pro machine.
5697 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
5698 CPU_ARCH=x86
5701 esac
5703 if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then
5704 OS_TARGET=WIN95
5705 if test -n "$MOZ_DEBUG" -a -z "$USE_DEBUG_RTL"; then
5706 USE_DEBUG_RTL=1
5709 if test -z "$OS_TARGET"; then
5710 OS_TARGET=$OS_ARCH
5712 if test "$OS_TARGET" = "WIN95"; then
5713 OS_RELEASE="4.0"
5715 OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
5717 # Check whether --enable-os2-high-mem was given.
5718 if test "${enable_os2_high_mem+set}" = set; then :
5719 enableval=$enable_os2_high_mem; if test "$enableval" = "no"; then
5720 MOZ_OS2_HIGH_MEMORY=
5721 else
5722 MOZ_OS2_HIGH_MEMORY=1
5728 MOZ_ALIGN=toolchain-default
5730 case "$target" in
5731 arm*-android*|arm*-linuxandroid*)
5732 MOZ_THUMB=yes
5733 MOZ_ARCH=armv7-a
5734 MOZ_FPU=vfp
5735 MOZ_FLOAT_ABI=softfp
5736 MOZ_SOFT_FLOAT=yes
5737 MOZ_ALIGN=no
5739 arm*-*)
5740 if test -n "$MOZ_PLATFORM_MAEMO"; then
5741 MOZ_THUMB=no
5742 MOZ_ARCH=armv7-a
5743 MOZ_FLOAT_ABI=softfp
5745 if test "$MOZ_PLATFORM_MAEMO" = 6; then
5746 MOZ_THUMB=yes
5749 esac
5751 # Check whether --enable-thumb2 was given.
5752 if test "${enable_thumb2+set}" = set; then :
5753 enableval=$enable_thumb2; MOZ_THUMB=$enableval
5758 # Check whether --with-thumb was given.
5759 if test "${with_thumb+set}" = set; then :
5760 withval=$with_thumb; if test -z "$GNU_CC"; then
5761 as_fn_error $? "--with-thumb is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5763 MOZ_THUMB=$withval
5768 # Check whether --with-thumb-interwork was given.
5769 if test "${with_thumb_interwork+set}" = set; then :
5770 withval=$with_thumb_interwork; if test -z "$GNU_CC"; then
5771 as_fn_error $? "--with-thumb-interwork is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5773 MOZ_THUMB_INTERWORK=$withval
5778 # Check whether --with-arch was given.
5779 if test "${with_arch+set}" = set; then :
5780 withval=$with_arch; if test -z "$GNU_CC"; then
5781 as_fn_error $? "--with-arch is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5783 MOZ_ARCH=$withval
5788 # Check whether --with-fpu was given.
5789 if test "${with_fpu+set}" = set; then :
5790 withval=$with_fpu; if test -z "$GNU_CC"; then
5791 as_fn_error $? "--with-fpu is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5793 MOZ_FPU=$withval
5798 # Check whether --with-float-abi was given.
5799 if test "${with_float_abi+set}" = set; then :
5800 withval=$with_float_abi; if test -z "$GNU_CC"; then
5801 as_fn_error $? "--with-float-abi is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5803 MOZ_FLOAT_ABI=$withval
5808 # Check whether --with-soft-float was given.
5809 if test "${with_soft_float+set}" = set; then :
5810 withval=$with_soft_float; if test -z "$GNU_CC"; then
5811 as_fn_error $? "--with-soft-float is not supported on non-GNU toolchain-defaults" "$LINENO" 5
5813 MOZ_SOFT_FLOAT=$withval
5817 case "$MOZ_ARCH" in
5818 toolchain-default|"")
5819 arch_flag=""
5822 arch_flag="-march=$MOZ_ARCH"
5824 esac
5826 case "$MOZ_THUMB" in
5827 yes)
5828 MOZ_THUMB2=1
5829 thumb_flag="-mthumb"
5832 MOZ_THUMB2=
5833 thumb_flag="-marm"
5836 _SAVE_CFLAGS="$CFLAGS"
5837 CFLAGS="$arch_flag"
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5842 main ()
5844 return sizeof(__thumb2__);
5846 return 0;
5848 _ACEOF
5849 if ac_fn_c_try_compile "$LINENO"; then :
5850 MOZ_THUMB2=1
5851 else
5852 MOZ_THUMB2=
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 CFLAGS="$_SAVE_CFLAGS"
5856 thumb_flag=""
5858 esac
5860 case "$MOZ_THUMB_INTERWORK" in
5861 yes)
5862 thumb_interwork_flag="-mthumb-interwork"
5865 thumb_interwork_flag="-mno-thumb-interwork"
5867 *) # toolchain-default
5868 thumb_interwork_flag=""
5870 esac
5872 case "$MOZ_FPU" in
5873 toolchain-default|"")
5874 fpu_flag=""
5877 fpu_flag="-mfpu=$MOZ_FPU"
5879 esac
5881 case "$MOZ_FLOAT_ABI" in
5882 toolchain-default|"")
5883 float_abi_flag=""
5886 float_abi_flag="-mfloat-abi=$MOZ_FLOAT_ABI"
5888 esac
5890 case "$MOZ_SOFT_FLOAT" in
5891 yes)
5892 soft_float_flag="-msoft-float"
5895 soft_float_flag="-mno-soft-float"
5897 *) # toolchain-default
5898 soft_float_flag=""
5900 esac
5902 case "$MOZ_ALIGN" in
5903 toolchain-default|"")
5904 align_flag=""
5907 align_flag="-mno-unaligned-access"
5909 yes)
5910 align_flag="-munaligned-access"
5913 align_flag=""
5915 esac
5917 if test -n "$align_flag"; then
5918 _SAVE_CFLAGS="$CFLAGS"
5919 CFLAGS="$CFLAGS $align_flag"
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alignment flag ($align_flag) is supported" >&5
5921 $as_echo_n "checking whether alignment flag ($align_flag) is supported... " >&6; }
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5926 main ()
5930 return 0;
5932 _ACEOF
5933 if ac_fn_c_try_compile "$LINENO"; then :
5935 else
5936 align_flag=""
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 CFLAGS="$_SAVE_CFLAGS"
5942 all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag`
5943 if test -n "$all_flags"; then
5944 _SAVE_CFLAGS="$CFLAGS"
5945 CFLAGS="$all_flags"
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the chosen combination of compiler flags ($all_flags) works" >&5
5947 $as_echo_n "checking whether the chosen combination of compiler flags ($all_flags) works... " >&6; }
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5952 main ()
5954 return 0;
5956 return 0;
5958 _ACEOF
5959 if ac_fn_c_try_compile "$LINENO"; then :
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5961 $as_echo "yes" >&6; }
5962 else
5963 as_fn_error $? "no" "$LINENO" 5
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 CFLAGS="$_SAVE_CFLAGS $all_flags"
5968 CXXFLAGS="$CXXFLAGS $all_flags"
5969 ASFLAGS="$ASFLAGS $all_flags"
5970 if test -n "$thumb_flag"; then
5971 LDFLAGS="$LDFLAGS $thumb_flag"
5975 case "$host" in
5976 *-mingw*|*-msys*)
5977 NSINSTALL=nsinstall
5979 *-cygwin*|*-mks*)
5980 NSINSTALL='$(CYGWIN_WRAPPER) nsinstall'
5981 if test `echo "${PATH}" | grep -c \;` = 0; then
5982 CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
5985 *os2*)
5988 HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
5990 esac
5992 case "$target" in
5994 *-aix*)
5995 $as_echo "#define XP_UNIX 1" >>confdefs.h
5997 $as_echo "#define AIX 1" >>confdefs.h
5999 $as_echo "#define SYSV 1" >>confdefs.h
6001 DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6004 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6005 if ${ac_cv_path_GREP+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if test -z "$GREP"; then
6009 ac_path_GREP_found=false
6010 # Loop through the user's path and test for each of PROGNAME-LIST
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 for ac_prog in grep ggrep; do
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6019 as_fn_executable_p "$ac_path_GREP" || continue
6020 # Check for GNU ac_path_GREP and select it if it is found.
6021 # Check for GNU $ac_path_GREP
6022 case `"$ac_path_GREP" --version 2>&1` in
6023 *GNU*)
6024 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6026 ac_count=0
6027 $as_echo_n 0123456789 >"conftest.in"
6028 while :
6030 cat "conftest.in" "conftest.in" >"conftest.tmp"
6031 mv "conftest.tmp" "conftest.in"
6032 cp "conftest.in" "conftest.nl"
6033 $as_echo 'GREP' >> "conftest.nl"
6034 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6036 as_fn_arith $ac_count + 1 && ac_count=$as_val
6037 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6038 # Best one so far, save it but keep looking for a better one
6039 ac_cv_path_GREP="$ac_path_GREP"
6040 ac_path_GREP_max=$ac_count
6042 # 10*(2^10) chars as input seems more than enough
6043 test $ac_count -gt 10 && break
6044 done
6045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6046 esac
6048 $ac_path_GREP_found && break 3
6049 done
6050 done
6051 done
6052 IFS=$as_save_IFS
6053 if test -z "$ac_cv_path_GREP"; then
6054 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6056 else
6057 ac_cv_path_GREP=$GREP
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6062 $as_echo "$ac_cv_path_GREP" >&6; }
6063 GREP="$ac_cv_path_GREP"
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6067 $as_echo_n "checking for egrep... " >&6; }
6068 if ${ac_cv_path_EGREP+:} false; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6072 then ac_cv_path_EGREP="$GREP -E"
6073 else
6074 if test -z "$EGREP"; then
6075 ac_path_EGREP_found=false
6076 # Loop through the user's path and test for each of PROGNAME-LIST
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_prog in egrep; do
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6085 as_fn_executable_p "$ac_path_EGREP" || continue
6086 # Check for GNU ac_path_EGREP and select it if it is found.
6087 # Check for GNU $ac_path_EGREP
6088 case `"$ac_path_EGREP" --version 2>&1` in
6089 *GNU*)
6090 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6092 ac_count=0
6093 $as_echo_n 0123456789 >"conftest.in"
6094 while :
6096 cat "conftest.in" "conftest.in" >"conftest.tmp"
6097 mv "conftest.tmp" "conftest.in"
6098 cp "conftest.in" "conftest.nl"
6099 $as_echo 'EGREP' >> "conftest.nl"
6100 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6102 as_fn_arith $ac_count + 1 && ac_count=$as_val
6103 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6104 # Best one so far, save it but keep looking for a better one
6105 ac_cv_path_EGREP="$ac_path_EGREP"
6106 ac_path_EGREP_max=$ac_count
6108 # 10*(2^10) chars as input seems more than enough
6109 test $ac_count -gt 10 && break
6110 done
6111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6112 esac
6114 $ac_path_EGREP_found && break 3
6115 done
6116 done
6117 done
6118 IFS=$as_save_IFS
6119 if test -z "$ac_cv_path_EGREP"; then
6120 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6122 else
6123 ac_cv_path_EGREP=$EGREP
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6129 $as_echo "$ac_cv_path_EGREP" >&6; }
6130 EGREP="$ac_cv_path_EGREP"
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6134 $as_echo_n "checking for ANSI C header files... " >&6; }
6135 if ${ac_cv_header_stdc+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <stdlib.h>
6141 #include <stdarg.h>
6142 #include <string.h>
6143 #include <float.h>
6146 main ()
6150 return 0;
6152 _ACEOF
6153 if ac_fn_c_try_compile "$LINENO"; then :
6154 ac_cv_header_stdc=yes
6155 else
6156 ac_cv_header_stdc=no
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 if test $ac_cv_header_stdc = yes; then
6161 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <string.h>
6166 _ACEOF
6167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6168 $EGREP "memchr" >/dev/null 2>&1; then :
6170 else
6171 ac_cv_header_stdc=no
6173 rm -f conftest*
6177 if test $ac_cv_header_stdc = yes; then
6178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 #include <stdlib.h>
6183 _ACEOF
6184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6185 $EGREP "free" >/dev/null 2>&1; then :
6187 else
6188 ac_cv_header_stdc=no
6190 rm -f conftest*
6194 if test $ac_cv_header_stdc = yes; then
6195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6196 if test "$cross_compiling" = yes; then :
6198 else
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 #include <ctype.h>
6202 #include <stdlib.h>
6203 #if ((' ' & 0x0FF) == 0x020)
6204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6206 #else
6207 # define ISLOWER(c) \
6208 (('a' <= (c) && (c) <= 'i') \
6209 || ('j' <= (c) && (c) <= 'r') \
6210 || ('s' <= (c) && (c) <= 'z'))
6211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6212 #endif
6214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6216 main ()
6218 int i;
6219 for (i = 0; i < 256; i++)
6220 if (XOR (islower (i), ISLOWER (i))
6221 || toupper (i) != TOUPPER (i))
6222 return 2;
6223 return 0;
6225 _ACEOF
6226 if ac_fn_c_try_run "$LINENO"; then :
6228 else
6229 ac_cv_header_stdc=no
6231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6232 conftest.$ac_objext conftest.beam conftest.$ac_ext
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6238 $as_echo "$ac_cv_header_stdc" >&6; }
6239 if test $ac_cv_header_stdc = yes; then
6241 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6246 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6247 inttypes.h stdint.h unistd.h
6248 do :
6249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6250 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6253 cat >>confdefs.h <<_ACEOF
6254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6255 _ACEOF
6259 done
6262 ac_fn_c_check_header_mongrel "$LINENO" "sys/atomic_op.h" "ac_cv_header_sys_atomic_op_h" "$ac_includes_default"
6263 if test "x$ac_cv_header_sys_atomic_op_h" = xyes; then :
6264 $as_echo "#define AIX_HAVE_ATOMIC_OP_H 1" >>confdefs.h
6269 case "${target_os}" in
6270 aix3.2*)
6271 $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h
6273 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
6275 AIX_LINK_OPTS='-bnso -berok'
6276 PR_MD_ASFILES=os_AIX.s
6278 aix4.1*)
6279 $as_echo "#define AIX_TIMERS 1" >>confdefs.h
6281 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
6283 $as_echo "#define AIX4_1 1" >>confdefs.h
6285 MKSHLIB=
6286 DSO_LDOPTS=
6287 AIX_LINK_OPTS='-bnso -berok'
6288 LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr'
6289 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr'
6291 aix4.2*)
6292 $as_echo "#define AIX_TIMERS 1" >>confdefs.h
6294 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
6296 AIX_LINK_OPTS='-brtl -bnso -berok'
6298 aix4.3*)
6299 $as_echo "#define AIX_TIMERS 1" >>confdefs.h
6301 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
6303 $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h
6305 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6307 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
6309 USE_IPV6=1
6310 AIX_LINK_OPTS='-brtl -bnso -berok'
6313 $as_echo "#define AIX_TIMERS 1" >>confdefs.h
6315 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
6317 $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h
6319 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6321 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
6323 USE_IPV6=1
6324 AIX_LINK_OPTS='-brtl -bnso -berok'
6326 esac
6327 CFLAGS="$CFLAGS -qro -qroconst"
6328 AIX_WRAP='$(DIST)/lib/aixwrap.o'
6329 AIX_TMP='./_aix_tmp.o'
6330 if test -n "$USE_64"; then
6331 MDCPUCFG_H=_aix64.cfg
6332 OBJECT_MODE=64
6333 else
6334 MDCPUCFG_H=_aix32.cfg
6336 PR_MD_CSRCS=aix.c
6337 RESOLVE_LINK_SYMBOLS=1
6340 *-bsdi*)
6341 $as_echo "#define XP_UNIX 1" >>confdefs.h
6343 $as_echo "#define BSDI 1" >>confdefs.h
6345 $as_echo "#define NEED_BSDREGEX 1" >>confdefs.h
6348 CFLAGS="$CFLAGS -Wall -Wno-format"
6349 CXXFLAGS="$CXXFLAGS -Wall -Wno-format"
6351 if echo "$OS_TEST" | grep -c 86 >/dev/null; then
6352 CPU_ARCH=x86
6353 elif echo "$OS_TEST" | grep -c sparc >/dev/null; then
6354 CPU_ARCH=sparc
6357 MDCPUCFG_H=_bsdi.cfg
6358 PR_MD_CSRCS=bsdi.c
6360 DSO_LDOPTS=-r
6362 case "$target_os" in
6363 bsdi1.1*)
6364 $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h
6366 $as_echo "#define _PR_STAT_HAS_ONLY_ST_ATIME 1" >>confdefs.h
6368 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
6370 MKSHLIB=
6371 DSO_CFLAGS=
6372 DSO_LDOPTS=
6375 bsdi2.1*)
6376 $as_echo "#define _PR_TIMESPEC_HAS_TS_SEC 1" >>confdefs.h
6378 $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h
6380 $as_echo "#define HAVE_DLL 1" >>confdefs.h
6382 $as_echo "#define USE_DLFCN 1" >>confdefs.h
6384 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h
6386 PR_MD_ASFILES=os_BSD_OS_386_2.s
6389 bsdi4.* | bsdi5.*)
6390 $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h
6392 $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h
6394 $as_echo "#define HAVE_DLL 1" >>confdefs.h
6396 $as_echo "#define USE_DLFCN 1" >>confdefs.h
6398 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h
6400 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
6401 DSO_CFLAGS=-fPIC
6402 DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
6403 STRIP="$STRIP -d"
6404 case "$target_os" in
6405 bsdi4.2* | bsdi4.3* | bsdi5.*)
6406 $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h
6408 $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h
6411 esac
6414 $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h
6416 $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h
6418 $as_echo "#define HAVE_DLL 1" >>confdefs.h
6420 $as_echo "#define USE_DLFCN 1" >>confdefs.h
6422 $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h
6425 esac
6429 *-darwin*)
6430 $as_echo "#define XP_UNIX 1" >>confdefs.h
6432 $as_echo "#define DARWIN 1" >>confdefs.h
6434 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
6436 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6438 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
6441 HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'`
6443 if test "$HOST_DARWIN_MAJOR" -ge 15 ; then
6444 $as_echo "#define HAS_CONNECTX 1" >>confdefs.h
6447 AS='$(CC) -x assembler-with-cpp'
6448 CFLAGS="$CFLAGS -Wall -fno-common"
6449 case "${target_cpu}" in
6450 arm*)
6451 CPU_ARCH=arm
6453 i*86*|x86_64)
6454 if test -n "$USE_64"; then
6455 CPU_ARCH=x86_64
6456 else
6457 CPU_ARCH=i386
6461 CPU_ARCH=ppc
6463 esac
6464 if test "`echo $CC | grep -c '\-arch '`" = "0"; then
6465 CC="$CC -arch $CPU_ARCH"
6467 ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
6468 if test "x$ac_cv_header_crt_externs_h" = xyes; then :
6469 $as_echo "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h
6474 DSO_CFLAGS=-fPIC
6475 DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
6476 _OPTIMIZE_FLAGS=-O2
6477 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
6478 STRIP="$STRIP -x -S"
6479 DLL_SUFFIX=dylib
6480 USE_PTHREADS=1
6481 MDCPUCFG_H=_darwin.cfg
6482 PR_MD_CSRCS=darwin.c
6483 PR_MD_ASFILES=os_Darwin.s
6485 # Add Mac OS X support for loading CFM & CFBundle plugins
6486 if test -f "${MACOS_SDK_DIR}/System/Library/Frameworks/Carbon.framework/Carbon"; then
6487 $as_echo "#define XP_MACOSX 1" >>confdefs.h
6489 OS_TARGET=MacOSX
6491 if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then
6492 export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET
6493 elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then
6494 case "${target_cpu}" in
6495 powerpc*)
6496 export MACOSX_DEPLOYMENT_TARGET=10.2
6498 i*86*)
6499 export MACOSX_DEPLOYMENT_TARGET=10.4
6501 esac
6505 if test "$MACOS_SDK_DIR"; then
6507 if test ! -d "$MACOS_SDK_DIR"; then
6508 as_fn_error $? "SDK not found. When using --with-macos-sdk, you must
6509 specify a valid SDK. SDKs are installed when the optional cross-development
6510 tools are selected during the Xcode/Developer Tools installation." "$LINENO" 5
6514 CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'`
6515 GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'`
6516 GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'`
6518 GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'`
6519 if test "$GCC_VERSION_MAJOR" -lt "4" ; then
6520 SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System/Library/Frameworks"
6521 if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then
6522 SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks"
6525 SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}"
6527 CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}"
6529 CPP="$CPP -nostdinc ${SDK_C_INCLUDE}"
6532 HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'`
6534 if test "$HOST_DARWIN_MAJOR" -lt 9 ; then
6535 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}"
6536 else
6537 MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}"
6540 LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS"
6541 export NEXT_ROOT=$MACOS_SDK_DIR
6543 if test -n "$CROSS_COMPILE" ; then
6544 HOST_CC="NEXT_ROOT= $HOST_CC"
6545 HOST_CXX="NEXT_ROOT= $HOST_CXX"
6547 else
6548 CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}"
6550 CPP="$CPP -isysroot ${MACOS_SDK_DIR}"
6552 if test "$GCC_VERSION_FULL" != "4.0.0" ; then
6553 LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}"
6554 else
6555 LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}"
6562 *-freebsd*)
6563 if test -z "$USE_NSPR_THREADS"; then
6564 USE_PTHREADS=1
6566 $as_echo "#define XP_UNIX 1" >>confdefs.h
6568 $as_echo "#define FREEBSD 1" >>confdefs.h
6570 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
6572 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6574 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
6576 CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
6577 MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
6578 if test "$MOZ_OBJFORMAT" = "elf"; then
6579 DLL_SUFFIX=so
6580 else
6581 DLL_SUFFIX=so.1.0
6583 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
6584 DSO_CFLAGS=-fPIC
6585 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
6586 MDCPUCFG_H=_freebsd.cfg
6587 PR_MD_CSRCS=freebsd.c
6590 *-hpux*)
6591 $as_echo "#define XP_UNIX 1" >>confdefs.h
6593 $as_echo "#define HPUX 1" >>confdefs.h
6595 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
6597 # HPUX report the POLLHUP event for a socket when the
6598 # shutdown(SHUT_WR) operation is called for the remote end, even though
6599 # the socket is still writeable. Use select(), instead of poll(), to
6600 # workaround this problem.
6601 $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h
6603 $as_echo "#define _USE_BIG_FDS 1" >>confdefs.h
6605 DSO_LDOPTS='-b +h $(notdir $@)'
6606 PR_MD_CSRCS=hpux.c
6607 if test "$OS_TEST" = "ia64"; then
6608 DLL_SUFFIX=so
6609 DSO_LDOPTS="$DSO_LDOPTS +b '\$\$ORIGIN'"
6610 CPU_ARCH_TAG=_$OS_TEST
6611 if test -z "$USE_64"; then
6612 COMPILER_TAG=_32
6614 PR_MD_ASFILES=os_HPUX_ia64.s
6615 else
6616 $as_echo "#define hppa 1" >>confdefs.h
6618 DLL_SUFFIX=sl
6619 PR_MD_ASFILES=os_HPUX.s
6621 if test -n "$USE_64"; then
6622 MDCPUCFG_H=_hpux64.cfg
6623 else
6624 MDCPUCFG_H=_hpux32.cfg
6626 if test -z "$GNU_CC"; then
6627 CC="$CC -Ae"
6628 CXX="$CXX -ext"
6629 DSO_CFLAGS=+Z
6630 else
6631 DSO_CFLAGS=-fPIC
6632 ASFLAGS="$ASFLAGS -x assembler-with-cpp"
6635 if test -n "$MOZILLA_CLIENT"; then
6636 DEFAULT_IMPL_STRATEGY=_EMU
6639 if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then
6640 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
6642 $as_echo "#define HPUX9 1" >>confdefs.h
6644 DEFAULT_IMPL_STRATEGY=_EMU
6645 USE_NSPR_THREADS=1
6648 if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then
6649 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
6653 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
6654 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
6658 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
6659 $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h
6663 if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then
6664 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
6668 # HP-UX 11i v2 (B.11.23) or higher
6670 case "$OS_RELEASE" in
6671 [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*)
6672 USE_IPV6=1
6674 esac
6677 if test "$OS_RELEASE" = "B.10.01"; then
6678 $as_echo "#define HPUX10 1" >>confdefs.h
6680 DEFAULT_IMPL_STRATEGY=_EMU
6683 if test "$OS_RELEASE" = "B.10.10"; then
6684 $as_echo "#define HPUX10 1" >>confdefs.h
6686 $as_echo "#define HPUX10_10 1" >>confdefs.h
6688 DEFAULT_IMPL_STRATEGY=_PTH
6691 if test "$OS_RELEASE" = "B.10.20"; then
6692 $as_echo "#define HPUX10 1" >>confdefs.h
6694 $as_echo "#define HPUX10_20 1" >>confdefs.h
6696 if test -z "$GNU_CC"; then
6697 CFLAGS="$CFLAGS +DAportable +DS1.1"
6698 CXXFLAGS="$CXXFLAGS +DAportable +DS1.1"
6700 DEFAULT_IMPL_STRATEGY=_PTH
6703 if test "$OS_RELEASE" = "B.10.30"; then
6704 $as_echo "#define HPUX10 1" >>confdefs.h
6706 $as_echo "#define HPUX10_30 1" >>confdefs.h
6708 if test -z "$GNU_CC"; then
6709 CFLAGS="$CFLAGS +DAportable +DS1.1"
6710 CXXFLAGS="$CXXFLAGS +DAportable +DS1.1"
6712 DEFAULT_IMPL_STRATEGY=_PTH
6715 if echo "$OS_RELEASE" | grep ^B.11 >/dev/null; then
6716 $as_echo "#define HPUX10 1" >>confdefs.h
6718 $as_echo "#define HPUX11 1" >>confdefs.h
6720 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
6722 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
6724 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
6726 if test -z "$GNU_CC"; then
6727 if test -z "$USE_64"; then
6728 if test "$OS_TEST" = "ia64"; then
6729 CFLAGS="$CFLAGS +DD32"
6730 CXXFLAGS="$CXXFLAGS +DD32"
6731 else
6732 CFLAGS="$CFLAGS +DAportable +DS2.0"
6733 CXXFLAGS="$CXXFLAGS +DAportable +DS2.0"
6735 else
6736 if test "$OS_TEST" = "ia64"; then
6737 CFLAGS="$CFLAGS +DD64"
6738 CXXFLAGS="$CXXFLAGS +DD64"
6739 else
6740 CFLAGS="$CFLAGS +DA2.0W +DS2.0"
6741 CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0"
6745 DEFAULT_IMPL_STRATEGY=_PTH
6748 if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then
6749 USE_NSPR_THREADS=1
6750 USE_PTHREADS=
6751 USE_USER_PTHREADS=
6752 elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then
6753 USE_PTHREADS=1
6754 if test "$USE_NSPR_THREADS"; then
6755 USE_PTHREADS=
6757 if test "$USE_USER_PTHREADS"; then
6758 USE_PTHREADS=
6763 *-linux*|*-gnu*|*-k*bsd*-gnu|*-android*|*-linuxandroid*)
6764 if test -z "$USE_NSPR_THREADS"; then
6765 USE_PTHREADS=1
6766 IMPL_STRATEGY=_PTH
6768 $as_echo "#define XP_UNIX 1" >>confdefs.h
6770 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6772 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
6774 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
6776 case "${target}" in
6777 *-android*|*-linuxandroid*)
6778 OS_TARGET=Android
6779 $as_echo "#define LINUX 1" >>confdefs.h
6782 *-linux*)
6783 $as_echo "#define LINUX 1" >>confdefs.h
6786 esac
6787 CFLAGS="$CFLAGS -Wall"
6788 CXXFLAGS="$CXXFLAGS -Wall"
6789 MDCPUCFG_H=_linux.cfg
6790 PR_MD_CSRCS=linux.c
6791 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
6792 DSO_CFLAGS=-fPIC
6793 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
6794 _OPTIMIZE_FLAGS=-O2
6795 _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that
6796 # combo is not yet good at debugging inlined
6797 # functions (even when using DWARF2 as the
6798 # debugging format)
6799 COMPILER_TAG=_glibc
6800 if echo "$OS_TEST" | grep -c 86 >/dev/null; then
6801 CPU_ARCH=x86
6802 else
6803 CPU_ARCH=$OS_TEST
6805 CPU_ARCH_TAG=_${CPU_ARCH}
6806 case "${target_cpu}" in
6807 alpha)
6808 $as_echo "#define _ALPHA_ 1" >>confdefs.h
6810 $as_echo "#define __alpha 1" >>confdefs.h
6812 CFLAGS="$CFLAGS -mieee"
6813 CXXFLAGS="$CXXFLAGS -mieee"
6815 i*86)
6816 $as_echo "#define i386 1" >>confdefs.h
6818 PR_MD_ASFILES=os_Linux_x86.s
6820 ia64)
6821 PR_MD_ASFILES=os_Linux_ia64.s
6823 x86_64)
6824 if test -n "$USE_64"; then
6825 PR_MD_ASFILES=os_Linux_x86_64.s
6826 elif test -n "$USE_X32"; then
6827 PR_MD_ASFILES=os_Linux_x86_64.s
6828 CC="$CC -mx32"
6829 CXX="$CXX -mx32"
6830 else
6831 $as_echo "#define i386 1" >>confdefs.h
6833 PR_MD_ASFILES=os_Linux_x86.s
6834 CC="$CC -m32"
6835 CXX="$CXX -m32"
6838 ppc|powerpc)
6839 PR_MD_ASFILES=os_Linux_ppc.s
6841 powerpc64)
6842 if test -n "$USE_64"; then
6843 CC="$CC -m64"
6844 CXX="$CXX -m64"
6845 else
6846 PR_MD_ASFILES=os_Linux_ppc.s
6849 esac
6852 *-mingw*|*-msys*|*-cygwin*|*-mks*)
6853 $as_echo "#define XP_PC 1" >>confdefs.h
6855 $as_echo "#define WIN32 1" >>confdefs.h
6857 PR_MD_ARCH_DIR=windows
6858 RESOLVE_LINK_SYMBOLS=1
6860 if test -n "$GNU_CC"; then
6861 CC="$CC -mwindows"
6862 CXX="$CXX -mwindows"
6863 DLL_SUFFIX=dll
6864 MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))'
6865 RC=$WINDRES
6866 # Use temp file for windres (bug 213281)
6867 RCFLAGS='-O coff --use-temp-file'
6868 else
6869 LD=link
6870 AR='lib -NOLOGO -OUT:"$@"'
6871 AR_FLAGS=
6872 RANLIB='echo not_ranlib'
6873 STRIP='echo not_strip'
6874 RC=rc.exe
6875 GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb'
6876 OBJ_SUFFIX=obj
6877 LIB_SUFFIX=lib
6878 DLL_SUFFIX=dll
6880 # Determine compiler version
6882 _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
6884 CC_VERSION=`${CC} -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"`
6885 if test -z "$CC_VERSION"; then
6886 as_fn_error $? "Could not determine MSC version." "$LINENO" 5
6889 _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'`
6890 _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'`
6891 _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'`
6892 _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'`
6893 MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION}
6895 if test "$_CC_MAJOR_VERSION" -eq "14"; then
6896 if test $_CC_RELEASE -gt 50727; then
6897 _USE_DYNAMICBASE=1
6898 elif test $_CC_BUILD -ge 762; then
6899 _USE_DYNAMICBASE=1
6901 $as_echo "#define _CRT_SECURE_NO_DEPRECATE 1" >>confdefs.h
6903 $as_echo "#define _CRT_NONSTDC_NO_DEPRECATE 1" >>confdefs.h
6905 elif test $_CC_MAJOR_VERSION -ge 15; then
6906 _USE_DYNAMICBASE=1
6907 $as_echo "#define _CRT_SECURE_NO_WARNINGS 1" >>confdefs.h
6909 $as_echo "#define _CRT_NONSTDC_NO_WARNINGS 1" >>confdefs.h
6913 if test -n "$_USE_DYNAMICBASE"; then
6914 DLLFLAGS="$DLLFLAGS -DYNAMICBASE"
6917 # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic
6918 # tape manipulation utility (or something else)
6919 if test "$MSC_VER" -ge "1400"; then
6921 _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p'
6924 MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'`
6925 if test -n "$MSMT_TOOL"; then
6926 MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"`
6927 if test -z "$MSMANIFEST_TOOL_VERSION"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&5
6929 $as_echo "$as_me: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&2;}
6931 MT=mt
6932 unset MSMT_TOOL
6933 else
6934 as_fn_error $? "Microsoft (R) Manifest Tool must be in your \$PATH." "$LINENO" 5
6938 CFLAGS="$CFLAGS -W3 -nologo -GF -Gy"
6939 DLLFLAGS="$DLLFLAGS -OUT:\"\$@\""
6940 _DEBUG_FLAGS=-Zi
6941 _OPTIMIZE_FLAGS=-O2
6943 PROFILE_GEN_CFLAGS="-GL"
6944 PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT"
6945 PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952"
6946 PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE"
6948 if test "$MSC_VER" -ge "1800"; then
6949 CFLAGS="$CFLAGS -FS"
6950 PROFILE_GEN_CFLAGS="$PROFILE_GEN_CFLAGS -Gw"
6951 PROFILE_USE_CFLAGS="$PROFILE_USE_CFLAGS -Gw"
6954 if test -z "$MOZ_OPTIMIZE"; then
6955 CFLAGS="$CFLAGS -Od"
6958 if test "$USE_DEBUG_RTL" = 1; then
6959 if test -n "$USE_STATIC_RTL"; then
6960 CFLAGS="$CFLAGS -MTd"
6961 else
6962 CFLAGS="$CFLAGS -MDd"
6964 else
6965 if test -n "$USE_STATIC_RTL"; then
6966 CFLAGS="$CFLAGS -MT"
6967 else
6968 CFLAGS="$CFLAGS -MD"
6972 if test -n "$MOZ_DEBUG"; then
6973 $as_echo "#define _DEBUG 1" >>confdefs.h
6975 else
6976 DEFINES="$DEFINES -U_DEBUG"
6979 if test -n "$MOZ_DEBUG_SYMBOLS"; then
6980 if test -n "$MOZ_OPTIMIZE"; then
6981 DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF"
6982 LDFLAGS="$LDFLAGS -DEBUG -OPT:REF"
6983 else
6984 DLLFLAGS="$DLLFLAGS -DEBUG"
6985 LDFLAGS="$LDFLAGS -DEBUG"
6989 OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS"
6990 if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then
6991 OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE"
6994 if test "$OS_TARGET" = "WINNT"; then
6995 CFLAGS="$CFLAGS -GT"
6996 LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
6997 LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
6998 else
6999 LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
7000 LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
7002 fi # GNU_CC
7004 if test -n "$USE_STATIC_TLS"; then
7005 $as_echo "#define _PR_USE_STATIC_TLS 1" >>confdefs.h
7009 if test "$OS_TARGET" = "WINNT"; then
7010 $as_echo "#define WINNT 1" >>confdefs.h
7012 else
7013 $as_echo "#define WIN95 1" >>confdefs.h
7015 # undefine WINNT as some versions of mingw gcc define it by default
7016 DEFINES="$DEFINES -UWINNT"
7017 $as_echo "#define _PR_GLOBAL_THREADS_ONLY 1" >>confdefs.h
7021 if test "$CPU_ARCH" = "x86"; then
7022 CPU_ARCH_TAG=
7023 else
7024 CPU_ARCH_TAG=$CPU_ARCH
7027 if test "$USE_DEBUG_RTL" = 1; then
7028 OBJDIR_SUFFIX=OBJD
7031 case "$OS_TARGET" in
7032 WINNT)
7033 MDCPUCFG_H=_winnt.cfg
7035 WIN95)
7036 MDCPUCFG_H=_win95.cfg
7039 as_fn_error $? "Missing OS_TARGET for ${target}. Use --enable-win32-target to set." "$LINENO" 5
7041 esac
7043 case "$target_cpu" in
7044 i*86)
7045 if test -n "$USE_64"; then
7046 $as_echo "#define _AMD64_ 1" >>confdefs.h
7048 else
7049 $as_echo "#define _X86_ 1" >>confdefs.h
7051 if test -z "$GNU_CC" -a "$MSC_VER" -ge "1700"; then
7052 CFLAGS="$CFLAGS -arch:IA32"
7056 x86_64)
7057 $as_echo "#define _AMD64_ 1" >>confdefs.h
7059 USE_64=1
7061 aarch64)
7062 $as_echo "#define _ARM64_ 1" >>confdefs.h
7064 USE_64=1
7066 ia64)
7067 $as_echo "#define _IA64_ 1" >>confdefs.h
7069 USE_64=1
7072 $as_echo "#define _CPU_ARCH_NOT_DEFINED 1" >>confdefs.h
7075 esac
7078 *-netbsd*)
7079 $as_echo "#define XP_UNIX 1" >>confdefs.h
7081 $as_echo "#define NETBSD 1" >>confdefs.h
7083 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
7085 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
7087 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
7089 if test -z "$USE_NSPR_THREADS"; then
7090 USE_PTHREADS=1
7092 MDCPUCFG_H=_netbsd.cfg
7093 PR_MD_CSRCS=netbsd.c
7095 DSO_CFLAGS='-fPIC -DPIC'
7096 CFLAGS="$CFLAGS -ansi -Wall"
7097 CXXFLAGS="$CXXFLAGS -ansi -Wall"
7098 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
7100 if test -z "$OBJECT_FMT"; then
7101 if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then
7102 OBJECT_FMT=a.out
7103 DLL_SUFFIX=so.1.0
7104 DSO_LDOPTS='-shared'
7105 else
7106 OBJECT_FMT=ELF
7107 DLL_SUFFIX=so
7108 DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)'
7112 if test "$LIBRUNPATH"; then
7113 DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
7117 *-nto*)
7118 $as_echo "#define XP_UNIX 1" >>confdefs.h
7120 $as_echo "#define NTO 1" >>confdefs.h
7122 $as_echo "#define _QNX_SOURCE 1" >>confdefs.h
7124 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
7126 MDCPUCFG_H=_nto.cfg
7127 PR_MD_CSRCS=nto.c
7128 MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@'
7129 DSO_CFLAGS=-fPIC
7130 DSO_LDOPTS=-shared
7131 OS_LIBS="$OS_LIBS -lsocket"
7132 _OPTIMIZE_FLAGS="-O1"
7133 _DEBUG_FLAGS="-gstabs"
7136 *-openbsd*)
7137 $as_echo "#define XP_UNIX 1" >>confdefs.h
7139 $as_echo "#define OPENBSD 1" >>confdefs.h
7141 $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h
7143 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
7145 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
7147 CFLAGS="$CFLAGS -ansi -Wall"
7148 CXXFLAGS="$CXXFLAGS -ansi -Wall"
7149 DLL_SUFFIX=so.1.0
7150 DSO_CFLAGS=-fPIC
7151 MDCPUCFG_H=_openbsd.cfg
7152 PR_MD_CSRCS=openbsd.c
7153 OS_LIBS="-lc"
7154 if test -z "$USE_NSPR_THREADS"; then
7155 USE_PTHREADS=1
7157 DSO_LDOPTS='-shared -fPIC -Wl,-soname,$(notdir $@)'
7158 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
7161 *-qnx*)
7162 $as_echo "#define XP_UNIX 1" >>confdefs.h
7164 $as_echo "#define QNX 1" >>confdefs.h
7166 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
7168 USE_NSPR_THREADS=1
7169 MDCPUCFG_H=_qnx.cfg
7170 PR_MD_CSRCS=qnx.c
7173 *-riscos*)
7174 $as_echo "#define XP_UNIX 1" >>confdefs.h
7176 $as_echo "#define RISCOS 1" >>confdefs.h
7178 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
7180 USE_PTHREADS=1
7181 MDCPUCFG_H=_riscos.cfg
7182 PR_MD_CSRCS=riscos.c
7183 DSO_CFLAGS=-fPIC
7184 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
7185 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
7188 *-*-sco*)
7189 $as_echo "#define XP_UNIX 1" >>confdefs.h
7191 $as_echo "#define SCO 1" >>confdefs.h
7193 $as_echo "#define sco 1" >>confdefs.h
7195 $as_echo "#define SYSV 1" >>confdefs.h
7197 $as_echo "#define _SVID3 1" >>confdefs.h
7199 $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h
7201 CC='cc -b elf -KPIC'
7202 CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w'
7203 USE_NSPR_THREADS=1
7204 CPU_ARCH=x86
7205 DSO_LDOPTS='-b elf -G'
7206 MDCPUCFG_H=_scoos.cfg
7207 PR_MD_SRCS=scoos.c
7210 *-solaris*)
7211 if test -z "$USE_NSPR_THREADS"; then
7212 USE_PTHREADS=1
7214 $as_echo "#define XP_UNIX 1" >>confdefs.h
7216 $as_echo "#define SVR4 1" >>confdefs.h
7218 $as_echo "#define SYSV 1" >>confdefs.h
7220 $as_echo "#define __svr4 1" >>confdefs.h
7222 $as_echo "#define __svr4__ 1" >>confdefs.h
7224 $as_echo "#define SOLARIS 1" >>confdefs.h
7226 $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h
7228 CPU_ARCH=`uname -p`
7229 MDCPUCFG_H=_solaris.cfg
7230 PR_MD_CSRCS=solaris.c
7231 LD=/usr/ccs/bin/ld
7232 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
7233 RESOLVE_LINK_SYMBOLS=1
7234 case "${OS_RELEASE}" in
7235 5.8|5.9)
7238 # It is safe to use the -Bdirect linker flag on Solaris 10 or later.
7239 USE_B_DIRECT=1
7241 esac
7242 if test -n "$GNU_CC"; then
7243 DSO_CFLAGS=-fPIC
7244 if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
7245 GCC_USE_GNU_LD=1
7247 DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore'
7248 if test -n "$USE_B_DIRECT"; then
7249 DSO_LDOPTS="$DSO_LDOPTS,-Bdirect"
7251 else
7252 DSO_CFLAGS=-KPIC
7253 DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs -z ignore'
7254 if test -n "$USE_B_DIRECT"; then
7255 DSO_LDOPTS="$DSO_LDOPTS -Bdirect"
7258 if test -n "$GNU_CC"; then
7259 CFLAGS="$CFLAGS -Wall"
7260 CXXFLAGS="$CXXFLAGS -Wall"
7261 if test -n "$USE_MDUPDATE"; then
7262 CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)"
7263 CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)"
7265 GCC_AS=`$CC -print-prog-name=as`
7266 if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then
7267 GNU_AS=1
7269 else
7270 CFLAGS="$CFLAGS -xstrconst"
7271 CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife"
7272 if test -z "$MOZ_OPTIMIZE"; then
7273 CFLAGS="$CFLAGS -xs"
7274 CXXFLAGS="$CXXFLAGS -xs"
7276 _OPTIMIZE_FLAGS=-xO4
7278 if test -z "$GNU_AS"; then
7279 ASFLAGS="$ASFLAGS -Wa,-P"
7281 if test -n "$USE_64"; then
7282 if test -n "$GNU_CC"; then
7283 CC="$CC -m64"
7284 CXX="$CXX -m64"
7285 else
7286 if test "$OS_TEST" = "i86pc"; then
7287 CC="$CC -xarch=amd64"
7288 CXX="$CXX -xarch=amd64"
7289 else
7290 CC="$CC -xarch=v9"
7291 CXX="$CXX -xarch=v9"
7295 if test "$OS_TEST" = "i86pc"; then
7296 if test -z "$USE_64"; then
7297 $as_echo "#define i386 1" >>confdefs.h
7300 CPU_ARCH_TAG=_$OS_TEST
7301 # The default debug format, DWARF (-g), is not supported by gcc
7302 # on i386-ANY-sysv4/solaris, but the stabs format is. It is
7303 # assumed that the Solaris assembler /usr/ccs/bin/as is used.
7304 # If your gcc uses GNU as, you do not need the -Wa,-s option.
7305 if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then
7306 _DEBUG_FLAGS=-gstabs
7307 if test -z "$GNU_AS"; then
7308 _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s"
7312 case "${target_os}" in
7313 solaris2.3*)
7314 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
7317 solaris2.4*)
7318 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
7321 solaris2.5*)
7322 $as_echo "#define SOLARIS2_5 1" >>confdefs.h
7326 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
7328 # The lfcompile64(5) man page on Solaris 2.6 says:
7329 # For applications that do not wish to conform to the POSIX or
7330 # X/Open specifications, the 64-bit transitional interfaces
7331 # are available by default. No compile-time flags need to be
7332 # set.
7333 # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.
7334 # The native compiler, gcc 2.8.x, and egcs don't have this problem.
7335 if test -n "$GNU_CC"; then
7336 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
7340 esac
7341 case "${target_os}" in
7342 solaris2.3*)
7344 solaris2.4*)
7346 solaris2.5*)
7348 solaris2.6*)
7350 solaris2.7*)
7353 # Solaris 8 or higher has IPv6.
7354 $as_echo "#define _PR_INET6 1" >>confdefs.h
7357 esac
7358 if test "$CPU_ARCH" = "sparc"; then
7359 # 64-bit Solaris SPARC requires V9 architecture, so the following
7360 # is not needed.
7361 if test -z "$USE_64"; then
7362 ULTRASPARC_LIBRARY=nspr_flt
7365 # Purify requires that binaries linked against nspr also
7366 # be linked against -lrt (or -lposix4) so add it to OS_LIBS
7367 _rev=`uname -r`
7368 _librt=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'`
7369 OS_LIBS="$OS_LIBS $_librt"
7372 *-sco-sysv5*)
7373 $as_echo "#define XP_UNIX 1" >>confdefs.h
7375 $as_echo "#define UNIXWARE 1" >>confdefs.h
7377 $as_echo "#define SVR4 1" >>confdefs.h
7379 $as_echo "#define SYSV 1" >>confdefs.h
7381 USE_NSPR_THREADS=1
7382 if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then
7383 $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h
7385 CC='$(NSDEPTH)/build/hcc cc'
7386 CXX='$(NSDEPTH)/build/hcpp CC'
7387 MDCPUCFG_H=_unixware.cfg
7388 else
7389 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
7391 $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h
7393 $as_echo "#define _PR_HAVE_SOCKADDR_LEN 1" >>confdefs.h
7395 MDCPUCFG_H=_unixware7.cfg
7397 PR_MD_CSRCS=unixware.c
7398 DSO_LDOPTS=-G
7399 CPU_ARCH=x86
7402 *-os2*)
7403 $as_echo "#define XP_OS2 1" >>confdefs.h
7405 $as_echo "#define XP_PC 1" >>confdefs.h
7407 $as_echo "#define BSD_SELECT 1" >>confdefs.h
7409 $as_echo "#define TCPV40HDRS 1" >>confdefs.h
7411 LIB_SUFFIX=lib
7412 DLL_SUFFIX=dll
7413 RC=rc.exe
7414 PR_MD_ARCH_DIR=os2
7415 PROG_SUFFIX=.exe
7416 NSINSTALL=nsinstall
7417 MDCPUCFG_H=_os2.cfg
7418 RESOLVE_LINK_SYMBOLS=1
7420 $as_echo "#define OS2 1" >>confdefs.h
7422 AR=emxomfar
7423 AR_FLAGS='r $@'
7424 CFLAGS="$CFLAGS -Wall -Zomf"
7425 CXXFLAGS="$CFLAGS -Wall -Zomf"
7426 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
7427 DSO_CFLAGS=
7428 DSO_LDOPTS='-Zomf -Zdll'
7429 LDFLAGS='-Zmap'
7430 _OPTIMIZE_FLAGS="-O2 -s"
7431 _DEBUG_FLAGS="-g -fno-inline"
7432 if test -n "$MOZ_OPTIMIZE"; then
7433 DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"
7435 IMPLIB='emximp -o'
7436 FILTER='emxexp -o'
7437 if test -n "$MOZ_OS2_HIGH_MEMORY"; then
7438 LDFLAGS="$LDFLAGS -Zhigh-mem"
7439 $as_echo "#define MOZ_OS2_HIGH_MEMORY 1" >>confdefs.h
7443 # GCC for OS/2 currently predefines these, but we don't want them
7444 DEFINES="$DEFINES -Uunix -U__unix -U__unix__"
7448 $as_echo "#define XP_UNIX 1" >>confdefs.h
7452 esac
7454 if test -z "$SKIP_LIBRARY_CHECKS"; then
7458 case $target in
7459 *-darwin*|*-os2*)
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7463 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7464 if ${ac_cv_lib_dl_dlopen+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 ac_check_lib_save_LIBS=$LIBS
7468 LIBS="-ldl $LIBS"
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7472 /* Override any GCC internal prototype to avoid an error.
7473 Use char because int might match the return type of a GCC
7474 builtin and then its argument prototype would still apply. */
7475 #ifdef __cplusplus
7476 extern "C"
7477 #endif
7478 char dlopen ();
7480 main ()
7482 return dlopen ();
7484 return 0;
7486 _ACEOF
7487 if ac_fn_c_try_link "$LINENO"; then :
7488 ac_cv_lib_dl_dlopen=yes
7489 else
7490 ac_cv_lib_dl_dlopen=no
7492 rm -f core conftest.err conftest.$ac_objext \
7493 conftest$ac_exeext conftest.$ac_ext
7494 LIBS=$ac_check_lib_save_LIBS
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7497 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7498 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7499 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7500 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7501 OS_LIBS="-ldl $OS_LIBS"
7508 esac
7513 if test $ac_cv_c_compiler_gnu = yes; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
7515 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
7516 if ${ac_cv_prog_gcc_traditional+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 ac_pattern="Autoconf.*'x'"
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 #include <sgtty.h>
7523 Autoconf TIOCGETP
7524 _ACEOF
7525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7526 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7527 ac_cv_prog_gcc_traditional=yes
7528 else
7529 ac_cv_prog_gcc_traditional=no
7531 rm -f conftest*
7534 if test $ac_cv_prog_gcc_traditional = no; then
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 #include <termio.h>
7538 Autoconf TCGETA
7539 _ACEOF
7540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7541 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7542 ac_cv_prog_gcc_traditional=yes
7544 rm -f conftest*
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
7549 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
7550 if test $ac_cv_prog_gcc_traditional = yes; then
7551 CC="$CC -traditional"
7555 _SAVE_LIBS="$LIBS"
7556 LIBS="$LIBS $OS_LIBS"
7557 for ac_func in dladdr gettid lchown setpriority strerror syscall secure_getenv __secure_getenv
7558 do :
7559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7560 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7561 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7562 cat >>confdefs.h <<_ACEOF
7563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7564 _ACEOF
7567 done
7569 LIBS="$_SAVE_LIBS"
7573 # Check whether --with-ccache was given.
7574 if test "${with_ccache+set}" = set; then :
7575 withval=$with_ccache; CCACHE=$withval
7576 else
7577 CCACHE="no"
7581 if test "$CCACHE" != "no"; then
7582 if test -n "$CCACHE"; then
7583 if test "$CCACHE" = "yes"; then
7584 CCACHE=
7585 else
7586 if test ! -e "$CCACHE"; then
7587 as_fn_error $? "$CCACHE not found" "$LINENO" 5
7591 for ac_prog in $CCACHE ccache
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_path_CCACHE+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 case $CCACHE in
7601 [\\/]* | ?:[\\/]*)
7602 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7616 done
7617 done
7618 IFS=$as_save_IFS
7621 esac
7623 CCACHE=$ac_cv_path_CCACHE
7624 if test -n "$CCACHE"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7626 $as_echo "$CCACHE" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7633 test -n "$CCACHE" && break
7634 done
7636 if test -z "$CCACHE" -o "$CCACHE" = ":"; then
7637 as_fn_error $? "ccache not found" "$LINENO" 5
7638 elif test -x "$CCACHE"; then
7639 CC="$CCACHE $CC"
7640 CXX="$CCACHE $CXX"
7641 else
7642 as_fn_error $? "$CCACHE is not executable" "$LINENO" 5
7646 # Check whether --enable-strip was given.
7647 if test "${enable_strip+set}" = set; then :
7648 enableval=$enable_strip; if test "$enableval" = "yes"; then
7649 ENABLE_STRIP=1
7654 case "${target_os}" in
7655 hpux*)
7656 if test -z "$GNU_CC"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for +Olit support" >&5
7659 $as_echo_n "checking for +Olit support... " >&6; }
7660 if ${ac_cv_hpux_usable_olit_option+:} false; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 ac_cv_hpux_usable_olit_option=no
7664 rm -f conftest*
7665 echo 'int main() { return 0; }' | cat > conftest.c
7666 ${CC-cc} ${CFLAGS} +Olit=all -o conftest conftest.c > conftest.out 2>&1
7667 if test $? -eq 0; then
7668 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then
7669 ac_cv_hpux_usable_olit_option=yes
7672 rm -f conftest*
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_usable_olit_option" >&5
7676 $as_echo "$ac_cv_hpux_usable_olit_option" >&6; }
7678 if test "$ac_cv_hpux_usable_olit_option" = "yes"; then
7679 CFLAGS="$CFLAGS +Olit=all"
7680 CXXFLAGS="$CXXFLAGS +Olit=all"
7681 else
7682 CFLAGS="$CFLAGS +ESlit"
7683 CXXFLAGS="$CXXFLAGS +ESlit"
7687 esac
7689 case "$target_os" in
7690 darwin*)
7691 _HAVE_PTHREADS=1
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
7695 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
7696 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 ac_check_lib_save_LIBS=$LIBS
7700 LIBS="-lpthreads $LIBS"
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7704 /* Override any GCC internal prototype to avoid an error.
7705 Use char because int might match the return type of a GCC
7706 builtin and then its argument prototype would still apply. */
7707 #ifdef __cplusplus
7708 extern "C"
7709 #endif
7710 char pthread_create ();
7712 main ()
7714 return pthread_create ();
7716 return 0;
7718 _ACEOF
7719 if ac_fn_c_try_link "$LINENO"; then :
7720 ac_cv_lib_pthreads_pthread_create=yes
7721 else
7722 ac_cv_lib_pthreads_pthread_create=no
7724 rm -f core conftest.err conftest.$ac_objext \
7725 conftest$ac_exeext conftest.$ac_ext
7726 LIBS=$ac_check_lib_save_LIBS
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
7729 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
7730 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
7731 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads"
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7734 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7735 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 ac_check_lib_save_LIBS=$LIBS
7739 LIBS="-lpthread $LIBS"
7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7743 /* Override any GCC internal prototype to avoid an error.
7744 Use char because int might match the return type of a GCC
7745 builtin and then its argument prototype would still apply. */
7746 #ifdef __cplusplus
7747 extern "C"
7748 #endif
7749 char pthread_create ();
7751 main ()
7753 return pthread_create ();
7755 return 0;
7757 _ACEOF
7758 if ac_fn_c_try_link "$LINENO"; then :
7759 ac_cv_lib_pthread_pthread_create=yes
7760 else
7761 ac_cv_lib_pthread_pthread_create=no
7763 rm -f core conftest.err conftest.$ac_objext \
7764 conftest$ac_exeext conftest.$ac_ext
7765 LIBS=$ac_check_lib_save_LIBS
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7768 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7769 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7770 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread"
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
7773 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
7774 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 ac_check_lib_save_LIBS=$LIBS
7778 LIBS="-lc_r $LIBS"
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7782 /* Override any GCC internal prototype to avoid an error.
7783 Use char because int might match the return type of a GCC
7784 builtin and then its argument prototype would still apply. */
7785 #ifdef __cplusplus
7786 extern "C"
7787 #endif
7788 char pthread_create ();
7790 main ()
7792 return pthread_create ();
7794 return 0;
7796 _ACEOF
7797 if ac_fn_c_try_link "$LINENO"; then :
7798 ac_cv_lib_c_r_pthread_create=yes
7799 else
7800 ac_cv_lib_c_r_pthread_create=no
7802 rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804 LIBS=$ac_check_lib_save_LIBS
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
7807 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
7808 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
7809 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r"
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
7812 $as_echo_n "checking for pthread_create in -lc... " >&6; }
7813 if ${ac_cv_lib_c_pthread_create+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 ac_check_lib_save_LIBS=$LIBS
7817 LIBS="-lc $LIBS"
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7821 /* Override any GCC internal prototype to avoid an error.
7822 Use char because int might match the return type of a GCC
7823 builtin and then its argument prototype would still apply. */
7824 #ifdef __cplusplus
7825 extern "C"
7826 #endif
7827 char pthread_create ();
7829 main ()
7831 return pthread_create ();
7833 return 0;
7835 _ACEOF
7836 if ac_fn_c_try_link "$LINENO"; then :
7837 ac_cv_lib_c_pthread_create=yes
7838 else
7839 ac_cv_lib_c_pthread_create=no
7841 rm -f core conftest.err conftest.$ac_objext \
7842 conftest$ac_exeext conftest.$ac_ext
7843 LIBS=$ac_check_lib_save_LIBS
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
7846 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
7847 if test "x$ac_cv_lib_c_pthread_create" = xyes; then :
7848 _HAVE_PTHREADS=1
7862 esac
7865 # Check whether --with-pthreads was given.
7866 if test "${with_pthreads+set}" = set; then :
7867 withval=$with_pthreads; if test "$withval" = "yes"; then
7868 if test -n "$_HAVE_PTHREADS"; then
7869 USE_PTHREADS=1
7870 USE_USER_PTHREADS=
7871 USE_NSPR_THREADS=
7872 else
7873 as_fn_error $? " --with-pthreads specified for a system without pthread support " "$LINENO" 5;
7875 else
7876 USE_PTHREADS=
7877 _PTHREAD_LDFLAGS=
7879 else
7880 if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then
7881 USE_PTHREADS=1
7882 USE_USER_PTHREADS=
7883 USE_NSPR_THREADS=
7888 # Check whether --enable-user-pthreads was given.
7889 if test "${enable_user_pthreads+set}" = set; then :
7890 enableval=$enable_user_pthreads; if test "$enableval" = "yes"; then
7891 if test -n "$_HAVE_PTHREADS"; then
7892 USE_PTHREADS=
7893 USE_USER_PTHREADS=1
7894 USE_NSPR_THREADS=
7895 else
7896 as_fn_error $? " --enable-user-pthreads specified for a system without pthread support " "$LINENO" 5;
7902 # Check whether --enable-nspr-threads was given.
7903 if test "${enable_nspr_threads+set}" = set; then :
7904 enableval=$enable_nspr_threads; if test "$enableval" = "yes"; then
7905 USE_PTHREADS=
7906 USE_USER_PTHREADS=
7907 USE_NSPR_THREADS=1
7912 fi # SKIP_LIBRARY_CHECKS
7914 # Check whether --enable-ipv6 was given.
7915 if test "${enable_ipv6+set}" = set; then :
7916 enableval=$enable_ipv6; if test "$enableval" = "yes"; then
7917 USE_IPV6=1
7918 else
7919 USE_IPV6=
7924 if test -n "$USE_PTHREADS"; then
7925 rm -f conftest*
7926 ac_cv_have_dash_pthread=no
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthread" >&5
7928 $as_echo_n "checking whether ${CC-cc} accepts -pthread... " >&6; }
7929 echo 'int main() { return 0; }' | cat > conftest.c
7930 ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
7931 if test $? -eq 0; then
7932 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
7933 ac_cv_have_dash_pthread=yes
7934 case "$target_os" in
7935 freebsd*)
7936 # Freebsd doesn't use -pthread for compiles, it uses them for linking
7939 CFLAGS="$CFLAGS -pthread"
7940 CXXFLAGS="$CXXFLAGS -pthread"
7942 esac
7945 rm -f conftest*
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthread" >&5
7947 $as_echo "$ac_cv_have_dash_pthread" >&6; }
7949 ac_cv_have_dash_pthreads=no
7950 if test "$ac_cv_have_dash_pthread" = "no"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthreads" >&5
7952 $as_echo_n "checking whether ${CC-cc} accepts -pthreads... " >&6; }
7953 echo 'int main() { return 0; }' | cat > conftest.c
7954 ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
7955 if test $? -eq 0; then
7956 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
7957 ac_cv_have_dash_pthreads=yes
7958 CFLAGS="$CFLAGS -pthreads"
7959 CXXFLAGS="$CXXFLAGS -pthreads"
7962 rm -f conftest*
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthreads" >&5
7964 $as_echo "$ac_cv_have_dash_pthreads" >&6; }
7967 case "$target" in
7968 *-solaris*)
7969 if test "$ac_cv_have_dash_pthreads" = "yes"; then
7970 _PTHREAD_LDFLAGS=
7973 *-freebsd*)
7974 $as_echo "#define _REENTRANT 1" >>confdefs.h
7976 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
7978 if test "$ac_cv_have_dash_pthread" = "yes"; then
7979 _PTHREAD_LDFLAGS="-pthread"
7980 else
7981 _PTHREAD_LDFLAGS="-lc_r"
7984 *-netbsd*)
7985 if test "$ac_cv_have_dash_pthread" = "yes"; then
7986 _PTHREAD_LDFLAGS="-pthread"
7989 *-bsdi*)
7990 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
7992 if test "$ac_cv_have_dash_pthread" = "yes"; then
7993 _PTHREAD_LDFLAGS=
7996 *-openbsd*)
7997 if test "$ac_cv_have_dash_pthread" = "yes"; then
7998 _PTHREAD_LDFLAGS=-pthread
8001 *-linux*|*-gnu*|*-k*bsd*-gnu)
8002 $as_echo "#define _REENTRANT 1" >>confdefs.h
8005 esac
8007 else
8008 if test -n "$USE_USER_PTHREADS"; then
8009 USE_PTHREADS=
8010 USE_NSPR_THREADS=
8011 else
8012 _PTHREAD_LDFLAGS=
8016 case "$target" in
8017 *-aix*)
8018 if test -n "$USE_NSPR_THREADS"; then
8019 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8022 case "$target_os" in
8023 aix4.1*)
8024 if test -z "$USE_PTHREADS"; then
8025 $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h
8029 aix4.2*)
8030 if test -z "$USE_NSPR_THREADS"; then
8031 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
8035 aix4.3*)
8036 if test -z "$USE_NSPR_THREADS"; then
8037 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
8040 if test -n "$USE_PTHREADS"; then
8041 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h
8046 if test -z "$USE_NSPR_THREADS"; then
8047 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
8050 if test -n "$USE_PTHREADS"; then
8051 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h
8055 esac
8057 *-bsdi*)
8058 if test -n "$USE_PTHREADS"; then
8059 $as_echo "#define _PR_NEED_PTHREAD_INIT 1" >>confdefs.h
8063 *-freebsd*)
8064 if test -n "$USE_NSPR_THREADS"; then
8065 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8069 *-hpux*)
8070 if test -n "$USE_NSPR_THREADS"; then
8071 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8074 if test "$USE_PTHREADS"; then
8075 cat >>confdefs.h <<_ACEOF
8076 #define _POSIX_C_SOURCE 199506L
8077 _ACEOF
8079 $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h
8082 if test "$USE_USER_PTHREADS"; then
8083 cat >>confdefs.h <<_ACEOF
8084 #define _POSIX_C_SOURCE 199506L
8085 _ACEOF
8089 *-linux*|*-gnu*|*-k*bsd*-gnu)
8090 if test -n "$USE_NSPR_THREADS"; then
8091 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8095 *-mingw*|*-msys*|*-cygwin*|*-mks*|*-os2*)
8096 USE_PTHREADS=
8097 _PTHREAD_LDFLAGS=
8098 USE_USER_PTHREADS=
8100 *-netbsd*|*-openbsd*)
8101 if test -n "$USE_NSPR_THREADS"; then
8102 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8106 *-solaris*)
8107 if test -n "$USE_NSPR_THREADS"; then
8108 $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h
8111 if test -n "$USE_PTHREADS"; then
8112 $as_echo "#define _REENTRANT 1" >>confdefs.h
8114 $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h
8116 if test "$OS_TEST" = "i86pc"; then
8117 if test -n "$USE_64"; then
8118 PR_MD_ASFILES=os_SunOS_x86_64.s
8119 else
8120 PR_MD_ASFILES=os_SunOS_x86.s
8122 else
8123 if test -n "$USE_64"; then
8124 PR_MD_ASFILES=os_SunOS_sparcv9.s
8129 *-nto*)
8130 if test -n "$USE_PTHREADS"; then
8131 $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h
8133 $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h
8137 esac
8139 OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS"
8141 if test -n "$_SAVE_OPTIMIZE_FLAGS"; then
8142 _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS"
8145 if test -n "$_SAVE_DEBUG_FLAGS"; then
8146 _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS"
8149 if test -n "$MOZ_OPTIMIZE"; then
8150 CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS"
8151 CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS"
8154 if test -n "$MOZ_DEBUG_SYMBOLS"; then
8155 CFLAGS="$CFLAGS $_DEBUG_FLAGS"
8156 CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS"
8159 if test -n "$MOZ_OPTIMIZE"; then
8160 OBJDIR_TAG=_OPT
8161 else
8162 OBJDIR_TAG=_DBG
8165 if test -n "$USE_64"; then
8166 COMPILER_TAG=_64
8169 RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}"
8171 case "$target_os" in
8172 cygwin*|mks*)
8173 CC="\$(CYGWIN_WRAPPER) $CC"
8174 CXX="\$(CYGWIN_WRAPPER) $CXX"
8175 RC="\$(CYGWIN_WRAPPER) $RC"
8177 esac
8179 # Check whether --enable-wrap-malloc was given.
8180 if test "${enable_wrap_malloc+set}" = set; then :
8181 enableval=$enable_wrap_malloc; if test "$enableval" = "yes"; then
8182 _WRAP_MALLOC=1
8187 if test -n "$_WRAP_MALLOC"; then
8188 if test -n "$GNU_CC"; then
8189 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=malloc,--wrap=calloc,--wrap=valloc,--wrap=free,--wrap=realloc,--wrap=memalign"
8190 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=__builtin_new,--wrap=__builtin_vec_new,--wrap=__builtin_delete,--wrap=__builtin_vec_delete"
8191 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=strdup,--wrap=strndup"
8192 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=posix_memalign,--wrap=malloc_usable_size"
8193 else
8194 as_fn_error $? "--enable-wrap-malloc is not supported for non-GNU toolchains" "$LINENO" 5
8199 # Check whether --with-wrap-malloc was given.
8200 if test "${with_wrap_malloc+set}" = set; then :
8201 withval=$with_wrap_malloc; WRAP_LDFLAGS="${WRAP_LDFLAGS} $withval"
8309 MAKEFILES="
8310 Makefile
8311 config/Makefile
8312 config/autoconf.mk
8313 config/nsprincl.mk
8314 config/nsprincl.sh
8315 config/nspr-config
8316 config/nspr.pc
8317 lib/Makefile
8318 lib/ds/Makefile
8319 lib/libc/Makefile
8320 lib/libc/include/Makefile
8321 lib/libc/src/Makefile
8322 lib/tests/Makefile
8323 pkg/Makefile
8324 pr/Makefile
8325 pr/include/Makefile
8326 pr/include/md/Makefile
8327 pr/include/obsolete/Makefile
8328 pr/include/private/Makefile
8329 pr/src/Makefile
8330 pr/src/io/Makefile
8331 pr/src/linking/Makefile
8332 pr/src/malloc/Makefile
8333 pr/src/md/Makefile
8334 pr/src/md/${PR_MD_ARCH_DIR}/Makefile
8335 pr/src/memory/Makefile
8336 pr/src/misc/Makefile
8337 pr/src/threads/Makefile
8338 pr/tests/Makefile
8339 pr/tests/dll/Makefile
8342 if test "$OS_TARGET" = "Linux"; then
8343 MAKEFILES="$MAKEFILES
8344 pkg/linux/Makefile
8346 elif test "$OS_TARGET" = "SunOS"; then
8347 MAKEFILES="$MAKEFILES
8348 pkg/solaris/Makefile
8349 pkg/solaris/SUNWpr/Makefile
8350 pkg/solaris/SUNWprd/Makefile
8354 if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then
8355 MAKEFILES="$MAKEFILES
8356 pr/src/threads/combined/Makefile
8358 elif test -n "$USE_PTHREADS"; then
8359 MAKEFILES="$MAKEFILES
8360 pr/src/pthreads/Makefile
8362 elif test -n "$USE_BTHREADS"; then
8363 MAKEFILES="$MAKEFILES
8364 pr/src/bthreads/Makefile
8368 if test -n "$USE_CPLUS"; then
8369 MAKEFILES="$MAKEFILES
8370 pr/src/cplus/Makefile
8371 pr/src/cplus/tests/Makefile
8375 echo $MAKEFILES > unallmakefiles
8377 ac_config_files="$ac_config_files $MAKEFILES"
8379 ac_config_commands="$ac_config_commands default"
8381 cat >confcache <<\_ACEOF
8382 # This file is a shell script that caches the results of configure
8383 # tests run on this system so they can be shared between configure
8384 # scripts and configure runs, see configure's option --config-cache.
8385 # It is not useful on other systems. If it contains results you don't
8386 # want to keep, you may remove or edit it.
8388 # config.status only pays attention to the cache file if you give it
8389 # the --recheck option to rerun configure.
8391 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8392 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8393 # following values.
8395 _ACEOF
8397 # The following way of writing the cache mishandles newlines in values,
8398 # but we know of no workaround that is simple, portable, and efficient.
8399 # So, we kill variables containing newlines.
8400 # Ultrix sh set writes to stderr and can't be redirected directly,
8401 # and sets the high bit in the cache file unless we assign to the vars.
8403 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8404 eval ac_val=\$$ac_var
8405 case $ac_val in #(
8406 *${as_nl}*)
8407 case $ac_var in #(
8408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8409 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8410 esac
8411 case $ac_var in #(
8412 _ | IFS | as_nl) ;; #(
8413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8414 *) { eval $ac_var=; unset $ac_var;} ;;
8415 esac ;;
8416 esac
8417 done
8419 (set) 2>&1 |
8420 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8421 *${as_nl}ac_space=\ *)
8422 # `set' does not quote correctly, so add quotes: double-quote
8423 # substitution turns \\\\ into \\, and sed turns \\ into \.
8424 sed -n \
8425 "s/'/'\\\\''/g;
8426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8427 ;; #(
8429 # `set' quotes correctly as required by POSIX, so do not add quotes.
8430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8432 esac |
8433 sort
8435 sed '
8436 /^ac_cv_env_/b end
8437 t clear
8438 :clear
8439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8440 t end
8441 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8442 :end' >>confcache
8443 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8444 if test -w "$cache_file"; then
8445 if test "x$cache_file" != "x/dev/null"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8447 $as_echo "$as_me: updating cache $cache_file" >&6;}
8448 if test ! -f "$cache_file" || test -h "$cache_file"; then
8449 cat confcache >"$cache_file"
8450 else
8451 case $cache_file in #(
8452 */* | ?:*)
8453 mv -f confcache "$cache_file"$$ &&
8454 mv -f "$cache_file"$$ "$cache_file" ;; #(
8456 mv -f confcache "$cache_file" ;;
8457 esac
8460 else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8462 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8465 rm -f confcache
8467 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8468 # Let make expand exec_prefix.
8469 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8471 # Transform confdefs.h into DEFS.
8472 # Protect against shell expansion while executing Makefile rules.
8473 # Protect against Makefile macro expansion.
8475 # If the first sed substitution is executed (which looks for macros that
8476 # take arguments), then branch to the quote section. Otherwise,
8477 # look for a macro that doesn't take arguments.
8478 ac_script='
8479 :mline
8480 /\\$/{
8482 s,\\\n,,
8483 b mline
8485 t clear
8486 :clear
8487 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
8488 t quote
8489 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
8490 t quote
8491 b any
8492 :quote
8493 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8494 s/\[/\\&/g
8495 s/\]/\\&/g
8496 s/\$/$$/g
8498 :any
8501 s/^\n//
8502 s/\n/ /g
8506 DEFS=`sed -n "$ac_script" confdefs.h`
8509 ac_libobjs=
8510 ac_ltlibobjs=
8512 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8513 # 1. Remove the extension, and $U if already installed.
8514 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8515 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8516 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8517 # will be set to the directory where LIBOBJS objects are built.
8518 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8519 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8520 done
8521 LIBOBJS=$ac_libobjs
8523 LTLIBOBJS=$ac_ltlibobjs
8527 : "${CONFIG_STATUS=./config.status}"
8528 ac_write_fail=0
8529 ac_clean_files_save=$ac_clean_files
8530 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8532 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8533 as_write_fail=0
8534 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8535 #! $SHELL
8536 # Generated by $as_me.
8537 # Run this file to recreate the current configuration.
8538 # Compiler output produced by configure, useful for debugging
8539 # configure, is in config.log if it exists.
8541 debug=false
8542 ac_cs_recheck=false
8543 ac_cs_silent=false
8545 SHELL=\${CONFIG_SHELL-$SHELL}
8546 export SHELL
8547 _ASEOF
8548 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8549 ## -------------------- ##
8550 ## M4sh Initialization. ##
8551 ## -------------------- ##
8553 # Be more Bourne compatible
8554 DUALCASE=1; export DUALCASE # for MKS sh
8555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8556 emulate sh
8557 NULLCMD=:
8558 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8559 # is contrary to our usage. Disable this feature.
8560 alias -g '${1+"$@"}'='"$@"'
8561 setopt NO_GLOB_SUBST
8562 else
8563 case `(set -o) 2>/dev/null` in #(
8564 *posix*) :
8565 set -o posix ;; #(
8566 *) :
8568 esac
8572 as_nl='
8574 export as_nl
8575 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8576 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8577 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8578 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8579 # Prefer a ksh shell builtin over an external printf program on Solaris,
8580 # but without wasting forks for bash or zsh.
8581 if test -z "$BASH_VERSION$ZSH_VERSION" \
8582 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8583 as_echo='print -r --'
8584 as_echo_n='print -rn --'
8585 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8586 as_echo='printf %s\n'
8587 as_echo_n='printf %s'
8588 else
8589 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8590 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8591 as_echo_n='/usr/ucb/echo -n'
8592 else
8593 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8594 as_echo_n_body='eval
8595 arg=$1;
8596 case $arg in #(
8597 *"$as_nl"*)
8598 expr "X$arg" : "X\\(.*\\)$as_nl";
8599 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8600 esac;
8601 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8603 export as_echo_n_body
8604 as_echo_n='sh -c $as_echo_n_body as_echo'
8606 export as_echo_body
8607 as_echo='sh -c $as_echo_body as_echo'
8610 # The user is always right.
8611 if test "${PATH_SEPARATOR+set}" != set; then
8612 PATH_SEPARATOR=:
8613 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8614 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8615 PATH_SEPARATOR=';'
8620 # IFS
8621 # We need space, tab and new line, in precisely that order. Quoting is
8622 # there to prevent editors from complaining about space-tab.
8623 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8624 # splitting by setting IFS to empty value.)
8625 IFS=" "" $as_nl"
8627 # Find who we are. Look in the path if we contain no directory separator.
8628 as_myself=
8629 case $0 in #((
8630 *[\\/]* ) as_myself=$0 ;;
8631 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 for as_dir in $PATH
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
8636 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8637 done
8638 IFS=$as_save_IFS
8641 esac
8642 # We did not find ourselves, most probably we were run as `sh COMMAND'
8643 # in which case we are not to be found in the path.
8644 if test "x$as_myself" = x; then
8645 as_myself=$0
8647 if test ! -f "$as_myself"; then
8648 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8649 exit 1
8652 # Unset variables that we do not need and which cause bugs (e.g. in
8653 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8654 # suppresses any "Segmentation fault" message there. '((' could
8655 # trigger a bug in pdksh 5.2.14.
8656 for as_var in BASH_ENV ENV MAIL MAILPATH
8657 do eval test x\${$as_var+set} = xset \
8658 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8659 done
8660 PS1='$ '
8661 PS2='> '
8662 PS4='+ '
8664 # NLS nuisances.
8665 LC_ALL=C
8666 export LC_ALL
8667 LANGUAGE=C
8668 export LANGUAGE
8670 # CDPATH.
8671 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8674 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8675 # ----------------------------------------
8676 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8677 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8678 # script with STATUS, using 1 if that was 0.
8679 as_fn_error ()
8681 as_status=$1; test $as_status -eq 0 && as_status=1
8682 if test "$4"; then
8683 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8684 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8686 $as_echo "$as_me: error: $2" >&2
8687 as_fn_exit $as_status
8688 } # as_fn_error
8691 # as_fn_set_status STATUS
8692 # -----------------------
8693 # Set $? to STATUS, without forking.
8694 as_fn_set_status ()
8696 return $1
8697 } # as_fn_set_status
8699 # as_fn_exit STATUS
8700 # -----------------
8701 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8702 as_fn_exit ()
8704 set +e
8705 as_fn_set_status $1
8706 exit $1
8707 } # as_fn_exit
8709 # as_fn_unset VAR
8710 # ---------------
8711 # Portably unset VAR.
8712 as_fn_unset ()
8714 { eval $1=; unset $1;}
8716 as_unset=as_fn_unset
8717 # as_fn_append VAR VALUE
8718 # ----------------------
8719 # Append the text in VALUE to the end of the definition contained in VAR. Take
8720 # advantage of any shell optimizations that allow amortized linear growth over
8721 # repeated appends, instead of the typical quadratic growth present in naive
8722 # implementations.
8723 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8724 eval 'as_fn_append ()
8726 eval $1+=\$2
8728 else
8729 as_fn_append ()
8731 eval $1=\$$1\$2
8733 fi # as_fn_append
8735 # as_fn_arith ARG...
8736 # ------------------
8737 # Perform arithmetic evaluation on the ARGs, and store the result in the
8738 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8739 # must be portable across $(()) and expr.
8740 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8741 eval 'as_fn_arith ()
8743 as_val=$(( $* ))
8745 else
8746 as_fn_arith ()
8748 as_val=`expr "$@" || test $? -eq 1`
8750 fi # as_fn_arith
8753 if expr a : '\(a\)' >/dev/null 2>&1 &&
8754 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8755 as_expr=expr
8756 else
8757 as_expr=false
8760 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8761 as_basename=basename
8762 else
8763 as_basename=false
8766 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8767 as_dirname=dirname
8768 else
8769 as_dirname=false
8772 as_me=`$as_basename -- "$0" ||
8773 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8774 X"$0" : 'X\(//\)$' \| \
8775 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8776 $as_echo X/"$0" |
8777 sed '/^.*\/\([^/][^/]*\)\/*$/{
8778 s//\1/
8781 /^X\/\(\/\/\)$/{
8782 s//\1/
8785 /^X\/\(\/\).*/{
8786 s//\1/
8789 s/.*/./; q'`
8791 # Avoid depending upon Character Ranges.
8792 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8793 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8794 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8795 as_cr_digits='0123456789'
8796 as_cr_alnum=$as_cr_Letters$as_cr_digits
8798 ECHO_C= ECHO_N= ECHO_T=
8799 case `echo -n x` in #(((((
8800 -n*)
8801 case `echo 'xy\c'` in
8802 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8803 xy) ECHO_C='\c';;
8804 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8805 ECHO_T=' ';;
8806 esac;;
8808 ECHO_N='-n';;
8809 esac
8811 rm -f conf$$ conf$$.exe conf$$.file
8812 if test -d conf$$.dir; then
8813 rm -f conf$$.dir/conf$$.file
8814 else
8815 rm -f conf$$.dir
8816 mkdir conf$$.dir 2>/dev/null
8818 if (echo >conf$$.file) 2>/dev/null; then
8819 if ln -s conf$$.file conf$$ 2>/dev/null; then
8820 as_ln_s='ln -s'
8821 # ... but there are two gotchas:
8822 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8823 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8824 # In both cases, we have to default to `cp -pR'.
8825 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8826 as_ln_s='cp -pR'
8827 elif ln conf$$.file conf$$ 2>/dev/null; then
8828 as_ln_s=ln
8829 else
8830 as_ln_s='cp -pR'
8832 else
8833 as_ln_s='cp -pR'
8835 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8836 rmdir conf$$.dir 2>/dev/null
8839 # as_fn_mkdir_p
8840 # -------------
8841 # Create "$as_dir" as a directory, including parents if necessary.
8842 as_fn_mkdir_p ()
8845 case $as_dir in #(
8846 -*) as_dir=./$as_dir;;
8847 esac
8848 test -d "$as_dir" || eval $as_mkdir_p || {
8849 as_dirs=
8850 while :; do
8851 case $as_dir in #(
8852 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8853 *) as_qdir=$as_dir;;
8854 esac
8855 as_dirs="'$as_qdir' $as_dirs"
8856 as_dir=`$as_dirname -- "$as_dir" ||
8857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8858 X"$as_dir" : 'X\(//\)[^/]' \| \
8859 X"$as_dir" : 'X\(//\)$' \| \
8860 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8861 $as_echo X"$as_dir" |
8862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8863 s//\1/
8866 /^X\(\/\/\)[^/].*/{
8867 s//\1/
8870 /^X\(\/\/\)$/{
8871 s//\1/
8874 /^X\(\/\).*/{
8875 s//\1/
8878 s/.*/./; q'`
8879 test -d "$as_dir" && break
8880 done
8881 test -z "$as_dirs" || eval "mkdir $as_dirs"
8882 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8885 } # as_fn_mkdir_p
8886 if mkdir -p . 2>/dev/null; then
8887 as_mkdir_p='mkdir -p "$as_dir"'
8888 else
8889 test -d ./-p && rmdir ./-p
8890 as_mkdir_p=false
8894 # as_fn_executable_p FILE
8895 # -----------------------
8896 # Test if FILE is an executable regular file.
8897 as_fn_executable_p ()
8899 test -f "$1" && test -x "$1"
8900 } # as_fn_executable_p
8901 as_test_x='test -x'
8902 as_executable_p=as_fn_executable_p
8904 # Sed expression to map a string onto a valid CPP name.
8905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8907 # Sed expression to map a string onto a valid variable name.
8908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8911 exec 6>&1
8912 ## ----------------------------------- ##
8913 ## Main body of $CONFIG_STATUS script. ##
8914 ## ----------------------------------- ##
8915 _ASEOF
8916 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8919 # Save the log message, to keep $0 and so on meaningful, and to
8920 # report actual input values of CONFIG_FILES etc. instead of their
8921 # values after options handling.
8922 ac_log="
8923 This file was extended by $as_me, which was
8924 generated by GNU Autoconf 2.69. Invocation command line was
8926 CONFIG_FILES = $CONFIG_FILES
8927 CONFIG_HEADERS = $CONFIG_HEADERS
8928 CONFIG_LINKS = $CONFIG_LINKS
8929 CONFIG_COMMANDS = $CONFIG_COMMANDS
8930 $ $0 $@
8932 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8935 _ACEOF
8937 case $ac_config_files in *"
8938 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8939 esac
8943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8944 # Files that config.status was made for.
8945 config_files="$ac_config_files"
8946 config_commands="$ac_config_commands"
8948 _ACEOF
8950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8951 ac_cs_usage="\
8952 \`$as_me' instantiates files and other configuration actions
8953 from templates according to the current configuration. Unless the files
8954 and actions are specified as TAGs, all are instantiated by default.
8956 Usage: $0 [OPTION]... [TAG]...
8958 -h, --help print this help, then exit
8959 -V, --version print version number and configuration settings, then exit
8960 --config print configuration, then exit
8961 -q, --quiet, --silent
8962 do not print progress messages
8963 -d, --debug don't remove temporary files
8964 --recheck update $as_me by reconfiguring in the same conditions
8965 --file=FILE[:TEMPLATE]
8966 instantiate the configuration file FILE
8968 Configuration files:
8969 $config_files
8971 Configuration commands:
8972 $config_commands
8974 Report bugs to the package provider."
8976 _ACEOF
8977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8978 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8979 ac_cs_version="\\
8980 config.status
8981 configured by $0, generated by GNU Autoconf 2.69,
8982 with options \\"\$ac_cs_config\\"
8984 Copyright (C) 2012 Free Software Foundation, Inc.
8985 This config.status script is free software; the Free Software Foundation
8986 gives unlimited permission to copy, distribute and modify it."
8988 ac_pwd='$ac_pwd'
8989 srcdir='$srcdir'
8990 test -n "\$AWK" || AWK=awk
8991 _ACEOF
8993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8994 # The default lists apply if the user does not specify any file.
8995 ac_need_defaults=:
8996 while test $# != 0
8998 case $1 in
8999 --*=?*)
9000 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9001 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9002 ac_shift=:
9004 --*=)
9005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9006 ac_optarg=
9007 ac_shift=:
9010 ac_option=$1
9011 ac_optarg=$2
9012 ac_shift=shift
9014 esac
9016 case $ac_option in
9017 # Handling of the options.
9018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9019 ac_cs_recheck=: ;;
9020 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9021 $as_echo "$ac_cs_version"; exit ;;
9022 --config | --confi | --conf | --con | --co | --c )
9023 $as_echo "$ac_cs_config"; exit ;;
9024 --debug | --debu | --deb | --de | --d | -d )
9025 debug=: ;;
9026 --file | --fil | --fi | --f )
9027 $ac_shift
9028 case $ac_optarg in
9029 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9030 '') as_fn_error $? "missing file argument" ;;
9031 esac
9032 as_fn_append CONFIG_FILES " '$ac_optarg'"
9033 ac_need_defaults=false;;
9034 --he | --h | --help | --hel | -h )
9035 $as_echo "$ac_cs_usage"; exit ;;
9036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9038 ac_cs_silent=: ;;
9040 # This is an error.
9041 -*) as_fn_error $? "unrecognized option: \`$1'
9042 Try \`$0 --help' for more information." ;;
9044 *) as_fn_append ac_config_targets " $1"
9045 ac_need_defaults=false ;;
9047 esac
9048 shift
9049 done
9051 ac_configure_extra_args=
9053 if $ac_cs_silent; then
9054 exec 6>/dev/null
9055 ac_configure_extra_args="$ac_configure_extra_args --silent"
9058 _ACEOF
9059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9060 if \$ac_cs_recheck; then
9061 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9062 shift
9063 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9064 CONFIG_SHELL='$SHELL'
9065 export CONFIG_SHELL
9066 exec "\$@"
9069 _ACEOF
9070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9071 exec 5>>config.log
9073 echo
9074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9075 ## Running $as_me. ##
9076 _ASBOX
9077 $as_echo "$ac_log"
9078 } >&5
9080 _ACEOF
9081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9082 _ACEOF
9084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9086 # Handling of arguments.
9087 for ac_config_target in $ac_config_targets
9089 case $ac_config_target in
9090 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
9091 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9093 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9094 esac
9095 done
9098 # If the user did not use the arguments to specify the items to instantiate,
9099 # then the envvar interface is used. Set only those that are not.
9100 # We use the long form for the default assignment because of an extremely
9101 # bizarre bug on SunOS 4.1.3.
9102 if $ac_need_defaults; then
9103 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9104 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9107 # Have a temporary directory for convenience. Make it in the build tree
9108 # simply because there is no reason against having it here, and in addition,
9109 # creating and moving files from /tmp can sometimes cause problems.
9110 # Hook for its removal unless debugging.
9111 # Note that there is a small window in which the directory will not be cleaned:
9112 # after its creation but before its name has been assigned to `$tmp'.
9113 $debug ||
9115 tmp= ac_tmp=
9116 trap 'exit_status=$?
9117 : "${ac_tmp:=$tmp}"
9118 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9120 trap 'as_fn_exit 1' 1 2 13 15
9122 # Create a (secure) tmp directory for tmp files.
9125 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9126 test -d "$tmp"
9127 } ||
9129 tmp=./conf$$-$RANDOM
9130 (umask 077 && mkdir "$tmp")
9131 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9132 ac_tmp=$tmp
9134 # Set up the scripts for CONFIG_FILES section.
9135 # No need to generate them if there are no CONFIG_FILES.
9136 # This happens for instance with `./config.status config.h'.
9137 if test -n "$CONFIG_FILES"; then
9140 ac_cr=`echo X | tr X '\015'`
9141 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9142 # But we know of no other shell where ac_cr would be empty at this
9143 # point, so we can use a bashism as a fallback.
9144 if test "x$ac_cr" = x; then
9145 eval ac_cr=\$\'\\r\'
9147 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9148 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9149 ac_cs_awk_cr='\\r'
9150 else
9151 ac_cs_awk_cr=$ac_cr
9154 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9155 _ACEOF
9159 echo "cat >conf$$subs.awk <<_ACEOF" &&
9160 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9161 echo "_ACEOF"
9162 } >conf$$subs.sh ||
9163 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9164 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9165 ac_delim='%!_!# '
9166 for ac_last_try in false false false false false :; do
9167 . ./conf$$subs.sh ||
9168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9170 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9171 if test $ac_delim_n = $ac_delim_num; then
9172 break
9173 elif $ac_last_try; then
9174 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9175 else
9176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9178 done
9179 rm -f conf$$subs.sh
9181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9182 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9183 _ACEOF
9184 sed -n '
9186 s/^/S["/; s/!.*/"]=/
9189 s/^[^!]*!//
9190 :repl
9191 t repl
9192 s/'"$ac_delim"'$//
9193 t delim
9196 s/\(.\{148\}\)..*/\1/
9197 t more1
9198 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9201 b repl
9202 :more1
9203 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9206 s/.\{148\}//
9207 t nl
9208 :delim
9210 s/\(.\{148\}\)..*/\1/
9211 t more2
9212 s/["\\]/\\&/g; s/^/"/; s/$/"/
9215 :more2
9216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9219 s/.\{148\}//
9220 t delim
9221 ' <conf$$subs.awk | sed '
9222 /^[^""]/{
9224 s/\n//
9226 ' >>$CONFIG_STATUS || ac_write_fail=1
9227 rm -f conf$$subs.awk
9228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9229 _ACAWK
9230 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9231 for (key in S) S_is_set[key] = 1
9232 FS = "\a"
9236 line = $ 0
9237 nfields = split(line, field, "@")
9238 substed = 0
9239 len = length(field[1])
9240 for (i = 2; i < nfields; i++) {
9241 key = field[i]
9242 keylen = length(key)
9243 if (S_is_set[key]) {
9244 value = S[key]
9245 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9246 len += length(value) + length(field[++i])
9247 substed = 1
9248 } else
9249 len += 1 + keylen
9252 print line
9255 _ACAWK
9256 _ACEOF
9257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9258 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9259 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9260 else
9262 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9263 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9264 _ACEOF
9266 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9267 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9268 # trailing colons and then remove the whole line if VPATH becomes empty
9269 # (actually we leave an empty line to preserve line numbers).
9270 if test "x$srcdir" = x.; then
9271 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9273 s///
9274 s/^/:/
9275 s/[ ]*$/:/
9276 s/:\$(srcdir):/:/g
9277 s/:\${srcdir}:/:/g
9278 s/:@srcdir@:/:/g
9279 s/^:*//
9280 s/:*$//
9282 s/\(=[ ]*\).*/\1/
9284 s/\n//
9285 s/^[^=]*=[ ]*$//
9289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9290 fi # test -n "$CONFIG_FILES"
9293 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
9294 shift
9295 for ac_tag
9297 case $ac_tag in
9298 :[FHLC]) ac_mode=$ac_tag; continue;;
9299 esac
9300 case $ac_mode$ac_tag in
9301 :[FHL]*:*);;
9302 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9303 :[FH]-) ac_tag=-:-;;
9304 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9305 esac
9306 ac_save_IFS=$IFS
9307 IFS=:
9308 set x $ac_tag
9309 IFS=$ac_save_IFS
9310 shift
9311 ac_file=$1
9312 shift
9314 case $ac_mode in
9315 :L) ac_source=$1;;
9316 :[FH])
9317 ac_file_inputs=
9318 for ac_f
9320 case $ac_f in
9321 -) ac_f="$ac_tmp/stdin";;
9322 *) # Look for the file first in the build tree, then in the source tree
9323 # (if the path is not absolute). The absolute path cannot be DOS-style,
9324 # because $ac_f cannot contain `:'.
9325 test -f "$ac_f" ||
9326 case $ac_f in
9327 [\\/$]*) false;;
9328 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9329 esac ||
9330 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9331 esac
9332 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9333 as_fn_append ac_file_inputs " '$ac_f'"
9334 done
9336 # Let's still pretend it is `configure' which instantiates (i.e., don't
9337 # use $as_me), people would be surprised to read:
9338 # /* config.h. Generated by config.status. */
9339 configure_input='Generated from '`
9340 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9341 `' by configure.'
9342 if test x"$ac_file" != x-; then
9343 configure_input="$ac_file. $configure_input"
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9345 $as_echo "$as_me: creating $ac_file" >&6;}
9347 # Neutralize special characters interpreted by sed in replacement strings.
9348 case $configure_input in #(
9349 *\&* | *\|* | *\\* )
9350 ac_sed_conf_input=`$as_echo "$configure_input" |
9351 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9352 *) ac_sed_conf_input=$configure_input;;
9353 esac
9355 case $ac_tag in
9356 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9358 esac
9360 esac
9362 ac_dir=`$as_dirname -- "$ac_file" ||
9363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9364 X"$ac_file" : 'X\(//\)[^/]' \| \
9365 X"$ac_file" : 'X\(//\)$' \| \
9366 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9367 $as_echo X"$ac_file" |
9368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9369 s//\1/
9372 /^X\(\/\/\)[^/].*/{
9373 s//\1/
9376 /^X\(\/\/\)$/{
9377 s//\1/
9380 /^X\(\/\).*/{
9381 s//\1/
9384 s/.*/./; q'`
9385 as_dir="$ac_dir"; as_fn_mkdir_p
9386 ac_builddir=.
9388 case "$ac_dir" in
9389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9392 # A ".." for each directory in $ac_dir_suffix.
9393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9394 case $ac_top_builddir_sub in
9395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9397 esac ;;
9398 esac
9399 ac_abs_top_builddir=$ac_pwd
9400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9401 # for backward compatibility:
9402 ac_top_builddir=$ac_top_build_prefix
9404 case $srcdir in
9405 .) # We are building in place.
9406 ac_srcdir=.
9407 ac_top_srcdir=$ac_top_builddir_sub
9408 ac_abs_top_srcdir=$ac_pwd ;;
9409 [\\/]* | ?:[\\/]* ) # Absolute name.
9410 ac_srcdir=$srcdir$ac_dir_suffix;
9411 ac_top_srcdir=$srcdir
9412 ac_abs_top_srcdir=$srcdir ;;
9413 *) # Relative name.
9414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9415 ac_top_srcdir=$ac_top_build_prefix$srcdir
9416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9417 esac
9418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9421 case $ac_mode in
9424 # CONFIG_FILE
9427 _ACEOF
9429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9430 # If the template does not know about datarootdir, expand it.
9431 # FIXME: This hack should be removed a few years after 2.60.
9432 ac_datarootdir_hack=; ac_datarootdir_seen=
9433 ac_sed_dataroot='
9434 /datarootdir/ {
9438 /@datadir@/p
9439 /@docdir@/p
9440 /@infodir@/p
9441 /@localedir@/p
9442 /@mandir@/p'
9443 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9444 *datarootdir*) ac_datarootdir_seen=yes;;
9445 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9447 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9448 _ACEOF
9449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9450 ac_datarootdir_hack='
9451 s&@datadir@&$datadir&g
9452 s&@docdir@&$docdir&g
9453 s&@infodir@&$infodir&g
9454 s&@localedir@&$localedir&g
9455 s&@mandir@&$mandir&g
9456 s&\\\${datarootdir}&$datarootdir&g' ;;
9457 esac
9458 _ACEOF
9460 # Neutralize VPATH when `$srcdir' = `.'.
9461 # Shell code in configure.ac might set extrasub.
9462 # FIXME: do we really want to maintain this feature?
9463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9464 ac_sed_extra="$ac_vpsub
9465 $extrasub
9466 _ACEOF
9467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9470 s|@configure_input@|$ac_sed_conf_input|;t t
9471 s&@top_builddir@&$ac_top_builddir_sub&;t t
9472 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9473 s&@srcdir@&$ac_srcdir&;t t
9474 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9475 s&@top_srcdir@&$ac_top_srcdir&;t t
9476 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9477 s&@builddir@&$ac_builddir&;t t
9478 s&@abs_builddir@&$ac_abs_builddir&;t t
9479 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9480 $ac_datarootdir_hack
9482 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9483 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9485 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9486 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9487 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9488 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9490 which seems to be undefined. Please make sure it is defined" >&5
9491 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9492 which seems to be undefined. Please make sure it is defined" >&2;}
9494 rm -f "$ac_tmp/stdin"
9495 case $ac_file in
9496 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9497 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9498 esac \
9499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9503 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9504 $as_echo "$as_me: executing $ac_file commands" >&6;}
9506 esac
9509 case $ac_file$ac_mode in
9510 "default":C) chmod +x config/nspr-config ;;
9512 esac
9513 done # for ac_tag
9516 as_fn_exit 0
9517 _ACEOF
9518 ac_clean_files=$ac_clean_files_save
9520 test $ac_write_fail = 0 ||
9521 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9524 # configure is writing to config.log, and then calls config.status.
9525 # config.status does its own redirection, appending to config.log.
9526 # Unfortunately, on DOS this fails, as config.log is still kept open
9527 # by configure, so config.status won't be able to write to it; its
9528 # output is simply discarded. So we exec the FD to /dev/null,
9529 # effectively closing config.log, so it can be properly (re)opened and
9530 # appended to by config.status. When coming back to configure, we
9531 # need to make the FD available again.
9532 if test "$no_create" != yes; then
9533 ac_cs_success=:
9534 ac_config_status_args=
9535 test "$silent" = yes &&
9536 ac_config_status_args="$ac_config_status_args --quiet"
9537 exec 5>/dev/null
9538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9539 exec 5>>config.log
9540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9541 # would make configure fail if this is the last instruction.
9542 $ac_cs_success || as_fn_exit 1
9544 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9546 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}