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