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