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