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