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