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