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