mips64: fix clobbering s0 in setjmp() [BZ #22624]
[glibc.git] / configure
blob9da9fb2736ff21268c780354c45da569a45dbbcb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU C Library (see version.h).
5 # Report bugs to <https://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203 else
204 as_have_required=no
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
228 done;;
229 esac
230 as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
239 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269 $0: https://sourceware.org/bugzilla/ about your system,
270 $0: including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do have one."
274 exit 1
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
292 { eval $1=; unset $1;}
294 as_unset=as_fn_unset
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
301 return $1
302 } # as_fn_set_status
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
314 # as_fn_mkdir_p
315 # -------------
316 # Create "$as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
345 /^X\(\/\/\)$/{
346 s//\1/
349 /^X\(\/\).*/{
350 s//\1/
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 } # as_fn_mkdir_p
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
374 # implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
378 eval $1+=\$2
380 else
381 as_fn_append ()
383 eval $1=\$$1\$2
385 fi # as_fn_append
387 # as_fn_arith ARG...
388 # ------------------
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
395 as_val=$(( $* ))
397 else
398 as_fn_arith ()
400 as_val=`expr "$@" || test $? -eq 1`
402 fi # as_fn_arith
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
410 as_fn_error ()
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419 } # as_fn_error
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424 else
425 as_expr=false
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430 else
431 as_basename=false
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436 else
437 as_dirname=false
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
449 /^X\/\(\/\/\)$/{
450 s//\1/
453 /^X\/\(\/\).*/{
454 s//\1/
457 s/.*/./; q'`
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
480 :lineno
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
504 -n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
512 ECHO_N='-n';;
513 esac
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518 else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
536 else
537 as_ln_s='cp -pR'
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544 else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 test -n "$DJDIR" || exec 7<&0 </dev/null
560 exec 6>&1
562 # Name of the host.
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 # Initializations.
570 ac_default_prefix=/usr/local
571 ac_clean_files=
572 ac_config_libobj_dir=.
573 LIBOBJS=
574 cross_compiling=no
575 subdirs=
576 MFLAGS=
577 MAKEFLAGS=
579 # Identity of this package.
580 PACKAGE_NAME='GNU C Library'
581 PACKAGE_TARNAME='glibc'
582 PACKAGE_VERSION='(see version.h)'
583 PACKAGE_STRING='GNU C Library (see version.h)'
584 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/'
585 PACKAGE_URL='http://www.gnu.org/software/glibc/'
587 ac_unique_file="include/features.h"
588 enable_option_checking=no
589 ac_subst_vars='LTLIBOBJS
590 LIBOBJS
591 RELEASE
592 VERSION
593 mach_interface_list
594 DEFINES
595 static_nss
596 profile
597 libc_cv_multidir
598 libc_cv_pie_default
599 libc_cv_pic_default
600 shared
601 static
602 ldd_rewrite_script
603 use_ldconfig
604 libc_cv_rootsbindir
605 libc_cv_localstatedir
606 libc_cv_sysconfdir
607 libc_cv_complocaledir
608 libc_cv_rtlddir
609 libc_cv_slibdir
610 use_nscd
611 libc_cv_gcc_unwind_find_fde
612 libc_extra_cppflags
613 libc_extra_cflags
614 libc_cv_cxx_thread_local
615 CPPUNDEFS
616 have_selinux
617 have_libcap
618 have_libaudit
619 LIBGD
620 libc_cv_cc_loop_to_function
621 libc_cv_cc_submachine
622 libc_cv_cc_nofma
623 libc_cv_mtls_dialect_gnu2
624 fno_unit_at_a_time
625 libc_cv_output_format
626 libc_cv_has_glob_dat
627 libc_cv_hashstyle
628 libc_cv_fpie
629 libc_cv_z_execstack
630 libc_cv_z_combreloc
631 ASFLAGS_config
632 libc_cv_cc_with_libunwind
633 libc_cv_insert
634 libc_cv_protected_data
635 INSTALL_INFO
636 PERL
637 BASH_SHELL
638 CXX_BITS_STD_ABS_H
639 CXX_CMATH_HEADER
640 CXX_CSTDLIB_HEADER
641 CXX_SYSINCLUDES
642 SYSINCLUDES
643 PYTHON
644 PYTHON_PROG
645 AUTOCONF
647 BISON
650 MAKEINFO
651 MSGFMT
652 MAKE
655 GPROF
656 OBJCOPY
657 OBJDUMP
659 LN_S
660 INSTALL_DATA
661 INSTALL_SCRIPT
662 INSTALL_PROGRAM
663 sysnames
664 submachine
665 multi_arch
666 no_stack_protector
667 stack_protector
668 libc_cv_ssp
669 libc_cv_with_fp
670 base_machine
671 have_tunables
672 build_pt_chown
673 build_nscd
674 build_obsolete_nsl
675 link_obsolete_rpc
676 libc_cv_static_nss_crypt
677 libc_cv_nss_crypt
678 experimental_malloc
679 enable_werror
680 all_warnings
681 force_install
682 bindnow
683 hardcoded_path_in_tests
684 enable_timezone_tools
685 use_default_link
686 sysheaders
687 ac_ct_CXX
688 CXXFLAGS
690 READELF
692 cross_compiling
693 BUILD_CC
694 OBJEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
700 host_os
701 host_vendor
702 host_cpu
703 host
704 build_os
705 build_vendor
706 build_cpu
707 build
708 subdirs
709 REPORT_BUGS_TEXI
710 REPORT_BUGS_TO
711 PKGVERSION_TEXI
712 PKGVERSION
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 with_pkgversion
755 with_bugurl
756 with_gd
757 with_gd_include
758 with_gd_lib
759 with_binutils
760 with_selinux
761 with_headers
762 with_default_link
763 enable_sanity_checks
764 enable_shared
765 enable_profile
766 enable_static_pie
767 enable_timezone_tools
768 enable_hardcoded_path_in_tests
769 enable_stackguard_randomization
770 enable_hidden_plt
771 enable_bind_now
772 enable_stack_protector
773 enable_static_nss
774 enable_force_install
775 enable_maintainer_mode
776 enable_kernel
777 enable_all_warnings
778 enable_werror
779 enable_multi_arch
780 enable_experimental_malloc
781 enable_nss_crypt
782 enable_obsolete_rpc
783 enable_obsolete_nsl
784 enable_systemtap
785 enable_build_nscd
786 enable_nscd
787 enable_pt_chown
788 enable_tunables
789 enable_mathvec
790 with_cpu
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
802 CXXFLAGS
803 CCC'
804 ac_subdirs_all=''
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
854 ac_prev=
855 ac_dashdash=
856 for ac_option
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
871 # Accept the important Cygnus configure options, so we can diagnose typos.
873 case $ac_dashdash$ac_option in
875 ac_dashdash=yes ;;
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
894 --config-cache | -C)
895 cache_file=config.cache ;;
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211 esac
1212 done
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267 test "$silent" = yes && exec 6>/dev/null
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1296 /^X\(\/\/\)$/{
1297 s//\1/
1300 /^X\(\/\).*/{
1301 s//\1/
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1309 else
1310 ac_srcdir_defaulted=no
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1399 cat <<\_ACEOF
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1410 esac
1411 cat <<\_ACEOF
1413 Optional Features:
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --disable-sanity-checks really do not use threads (should not be used except
1418 in special situations) [default=yes]
1419 --enable-shared build shared library [default=yes if GNU ld]
1420 --enable-profile build profiled library [default=no]
1421 --enable-static-pie enable static PIE support and use it in the
1422 testsuite [default=no]
1423 --disable-timezone-tools
1424 do not install timezone tools [default=install]
1425 --enable-hardcoded-path-in-tests
1426 hardcode newly built glibc path in tests
1427 [default=no]
1428 --enable-stackguard-randomization
1429 initialize __stack_chk_guard canary with a random
1430 number at program start
1431 --disable-hidden-plt do not hide internal function calls to avoid PLT
1432 --enable-bind-now disable lazy relocations in DSOs
1433 --enable-stack-protector=[yes|no|all|strong]
1434 Use -fstack-protector[-all|-strong] to detect glibc
1435 buffer overflows
1436 --enable-static-nss build static NSS modules [default=no]
1437 --disable-force-install don't force installation of files from this package,
1438 even if they are older than the installed files
1439 --enable-maintainer-mode
1440 enable make rules and dependencies not useful (and
1441 sometimes confusing) to the casual installer
1442 --enable-kernel=VERSION compile for compatibility with kernel not older than
1443 VERSION
1444 --enable-all-warnings enable all useful warnings gcc can issue
1445 --disable-werror do not build with -Werror
1446 --enable-multi-arch enable single DSO with optimizations for multiple
1447 architectures
1448 --disable-experimental-malloc
1449 disable experimental malloc features
1450 --enable-nss-crypt enable libcrypt to use nss
1451 --enable-obsolete-rpc build and install the obsolete RPC code for
1452 link-time usage
1453 --enable-obsolete-nsl build and install the obsolete libnsl library and
1454 depending NSS modules
1455 --enable-systemtap enable systemtap static probe points [default=no]
1456 --disable-build-nscd disable building and installing the nscd daemon
1457 --disable-nscd library functions will not contact the nscd daemon
1458 --enable-pt_chown Enable building and installing pt_chown
1459 --enable-tunables Enable tunables support. Known values are 'yes',
1460 'no' and 'valstring'
1461 --enable-mathvec Enable building and installing mathvec [default
1462 depends on architecture]
1464 Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1468 --with-bugurl=URL Direct users to URL to report a bug
1469 --with-gd=DIR find libgd include dir and library with prefix DIR
1470 --with-gd-include=DIR find libgd include files in DIR
1471 --with-gd-lib=DIR find libgd library files in DIR
1472 --with-binutils=PATH specify location of binutils (as and ld)
1473 --with-selinux if building with SELinux support
1474 --with-headers=PATH location of system headers to use (for example
1475 /usr/src/linux/include) [default=compiler default]
1476 --with-default-link do not use explicit linker scripts
1477 --with-cpu=CPU select code for CPU variant
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CPP C preprocessor
1488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1494 Report bugs to <https://sourceware.org/bugzilla/>.
1495 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
1496 General help using GNU software: <http://www.gnu.org/gethelp/>.
1497 _ACEOF
1498 ac_status=$?
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 GNU C Library configure (see version.h)
1560 generated by GNU Autoconf 2.69
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1604 ac_retval=1
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1609 } # ac_fn_c_try_compile
1611 # ac_fn_cxx_try_compile LINENO
1612 # ----------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_cxx_try_compile ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_cxx_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1642 ac_retval=1
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1647 } # ac_fn_cxx_try_compile
1649 # ac_fn_cxx_try_link LINENO
1650 # -------------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_cxx_try_link ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_cxx_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1683 ac_retval=1
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1693 } # ac_fn_cxx_try_link
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_link ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 test -x conftest$ac_exeext
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1729 ac_retval=1
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_link
1740 cat >config.log <<_ACEOF
1741 This file contains any messages produced by compilers while
1742 running configure, to aid debugging if configure makes a mistake.
1744 It was created by GNU C Library $as_me (see version.h), which was
1745 generated by GNU Autoconf 2.69. Invocation command line was
1747 $ $0 $@
1749 _ACEOF
1750 exec 5>>config.log
1752 cat <<_ASUNAME
1753 ## --------- ##
1754 ## Platform. ##
1755 ## --------- ##
1757 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1758 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1759 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1760 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1761 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1763 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1764 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1766 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1767 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1768 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1769 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1770 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1771 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1772 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1774 _ASUNAME
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 $as_echo "PATH: $as_dir"
1782 done
1783 IFS=$as_save_IFS
1785 } >&5
1787 cat >&5 <<_ACEOF
1790 ## ----------- ##
1791 ## Core tests. ##
1792 ## ----------- ##
1794 _ACEOF
1797 # Keep a trace of the command line.
1798 # Strip out --no-create and --no-recursion so they do not pile up.
1799 # Strip out --silent because we don't want to record it for future runs.
1800 # Also quote any args containing shell meta-characters.
1801 # Make two passes to allow for proper duplicate-argument suppression.
1802 ac_configure_args=
1803 ac_configure_args0=
1804 ac_configure_args1=
1805 ac_must_keep_next=false
1806 for ac_pass in 1 2
1808 for ac_arg
1810 case $ac_arg in
1811 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1813 | -silent | --silent | --silen | --sile | --sil)
1814 continue ;;
1815 *\'*)
1816 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 esac
1818 case $ac_pass in
1819 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1821 as_fn_append ac_configure_args1 " '$ac_arg'"
1822 if test $ac_must_keep_next = true; then
1823 ac_must_keep_next=false # Got value, back to normal.
1824 else
1825 case $ac_arg in
1826 *=* | --config-cache | -C | -disable-* | --disable-* \
1827 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1828 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1829 | -with-* | --with-* | -without-* | --without-* | --x)
1830 case "$ac_configure_args0 " in
1831 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1832 esac
1834 -* ) ac_must_keep_next=true ;;
1835 esac
1837 as_fn_append ac_configure_args " '$ac_arg'"
1839 esac
1840 done
1841 done
1842 { ac_configure_args0=; unset ac_configure_args0;}
1843 { ac_configure_args1=; unset ac_configure_args1;}
1845 # When interrupted or exit'd, cleanup temporary files, and complete
1846 # config.log. We remove comments because anyway the quotes in there
1847 # would cause problems or look ugly.
1848 # WARNING: Use '\'' to represent an apostrophe within the trap.
1849 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1850 trap 'exit_status=$?
1851 # Save into config.log some information that might help in debugging.
1853 echo
1855 $as_echo "## ---------------- ##
1856 ## Cache variables. ##
1857 ## ---------------- ##"
1858 echo
1859 # The following way of writing the cache mishandles newlines in values,
1861 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1862 eval ac_val=\$$ac_var
1863 case $ac_val in #(
1864 *${as_nl}*)
1865 case $ac_var in #(
1866 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1867 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1868 esac
1869 case $ac_var in #(
1870 _ | IFS | as_nl) ;; #(
1871 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1872 *) { eval $ac_var=; unset $ac_var;} ;;
1873 esac ;;
1874 esac
1875 done
1876 (set) 2>&1 |
1877 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1878 *${as_nl}ac_space=\ *)
1879 sed -n \
1880 "s/'\''/'\''\\\\'\'''\''/g;
1881 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1882 ;; #(
1884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1886 esac |
1887 sort
1889 echo
1891 $as_echo "## ----------------- ##
1892 ## Output variables. ##
1893 ## ----------------- ##"
1894 echo
1895 for ac_var in $ac_subst_vars
1897 eval ac_val=\$$ac_var
1898 case $ac_val in
1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900 esac
1901 $as_echo "$ac_var='\''$ac_val'\''"
1902 done | sort
1903 echo
1905 if test -n "$ac_subst_files"; then
1906 $as_echo "## ------------------- ##
1907 ## File substitutions. ##
1908 ## ------------------- ##"
1909 echo
1910 for ac_var in $ac_subst_files
1912 eval ac_val=\$$ac_var
1913 case $ac_val in
1914 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915 esac
1916 $as_echo "$ac_var='\''$ac_val'\''"
1917 done | sort
1918 echo
1921 if test -s confdefs.h; then
1922 $as_echo "## ----------- ##
1923 ## confdefs.h. ##
1924 ## ----------- ##"
1925 echo
1926 cat confdefs.h
1927 echo
1929 test "$ac_signal" != 0 &&
1930 $as_echo "$as_me: caught signal $ac_signal"
1931 $as_echo "$as_me: exit $exit_status"
1932 } >&5
1933 rm -f core *.core core.conftest.* &&
1934 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1935 exit $exit_status
1937 for ac_signal in 1 2 13 15; do
1938 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1939 done
1940 ac_signal=0
1942 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1943 rm -f -r conftest* confdefs.h
1945 $as_echo "/* confdefs.h */" > confdefs.h
1947 # Predefined preprocessor variables.
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_NAME "$PACKAGE_NAME"
1951 _ACEOF
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955 _ACEOF
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1959 _ACEOF
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_STRING "$PACKAGE_STRING"
1963 _ACEOF
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1967 _ACEOF
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_URL "$PACKAGE_URL"
1971 _ACEOF
1974 # Let the site file select an alternate cache file if it wants to.
1975 # Prefer an explicitly selected file to automatically selected ones.
1976 ac_site_file1=NONE
1977 ac_site_file2=NONE
1978 if test -n "$CONFIG_SITE"; then
1979 # We do not want a PATH search for config.site.
1980 case $CONFIG_SITE in #((
1981 -*) ac_site_file1=./$CONFIG_SITE;;
1982 */*) ac_site_file1=$CONFIG_SITE;;
1983 *) ac_site_file1=./$CONFIG_SITE;;
1984 esac
1985 elif test "x$prefix" != xNONE; then
1986 ac_site_file1=$prefix/share/config.site
1987 ac_site_file2=$prefix/etc/config.site
1988 else
1989 ac_site_file1=$ac_default_prefix/share/config.site
1990 ac_site_file2=$ac_default_prefix/etc/config.site
1992 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1994 test "x$ac_site_file" = xNONE && continue
1995 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1997 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1998 sed 's/^/| /' "$ac_site_file" >&5
1999 . "$ac_site_file" \
2000 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 as_fn_error $? "failed to load site script $ac_site_file
2003 See \`config.log' for more details" "$LINENO" 5; }
2005 done
2007 if test -r "$cache_file"; then
2008 # Some versions of bash will fail to source /dev/null (special files
2009 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2010 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2012 $as_echo "$as_me: loading cache $cache_file" >&6;}
2013 case $cache_file in
2014 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015 *) . "./$cache_file";;
2016 esac
2018 else
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2020 $as_echo "$as_me: creating cache $cache_file" >&6;}
2021 >$cache_file
2024 # Check that the precious variables saved in the cache have kept the same
2025 # value.
2026 ac_cache_corrupted=false
2027 for ac_var in $ac_precious_vars; do
2028 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2029 eval ac_new_set=\$ac_env_${ac_var}_set
2030 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2031 eval ac_new_val=\$ac_env_${ac_var}_value
2032 case $ac_old_set,$ac_new_set in
2033 set,)
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2036 ac_cache_corrupted=: ;;
2037 ,set)
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2039 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2040 ac_cache_corrupted=: ;;
2041 ,);;
2043 if test "x$ac_old_val" != "x$ac_new_val"; then
2044 # differences in whitespace do not lead to failure.
2045 ac_old_val_w=`echo x $ac_old_val`
2046 ac_new_val_w=`echo x $ac_new_val`
2047 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2050 ac_cache_corrupted=:
2051 else
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2054 eval $ac_var=\$ac_old_val
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2057 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2059 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2060 fi;;
2061 esac
2062 # Pass precious variables to config.status.
2063 if test "$ac_new_set" = set; then
2064 case $ac_new_val in
2065 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2066 *) ac_arg=$ac_var=$ac_new_val ;;
2067 esac
2068 case " $ac_configure_args " in
2069 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2070 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2071 esac
2073 done
2074 if $ac_cache_corrupted; then
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2079 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2081 ## -------------------- ##
2082 ## Main body of script. ##
2083 ## -------------------- ##
2085 ac_ext=c
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093 ac_config_headers="$ac_config_headers config.h"
2095 ac_aux_dir=
2096 for ac_dir in scripts "$srcdir"/scripts; do
2097 if test -f "$ac_dir/install-sh"; then
2098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/install-sh -c"
2100 break
2101 elif test -f "$ac_dir/install.sh"; then
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/install.sh -c"
2104 break
2105 elif test -f "$ac_dir/shtool"; then
2106 ac_aux_dir=$ac_dir
2107 ac_install_sh="$ac_aux_dir/shtool install -c"
2108 break
2110 done
2111 if test -z "$ac_aux_dir"; then
2112 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2115 # These three variables are undocumented and unsupported,
2116 # and are intended to be withdrawn in a future Autoconf release.
2117 # They can cause serious problems if a builder's source tree is in a directory
2118 # whose full name contains unusual characters.
2119 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2120 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2121 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2127 # Check whether --with-pkgversion was given.
2128 if test "${with_pkgversion+set}" = set; then :
2129 withval=$with_pkgversion; case "$withval" in
2130 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2131 no) PKGVERSION= ;;
2132 *) PKGVERSION="($withval) " ;;
2133 esac
2134 else
2135 PKGVERSION="(GNU libc) "
2139 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2145 # Check whether --with-bugurl was given.
2146 if test "${with_bugurl+set}" = set; then :
2147 withval=$with_bugurl; case "$withval" in
2148 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2149 no) BUGURL=
2151 *) BUGURL="$withval"
2153 esac
2154 else
2155 BUGURL="http://www.gnu.org/software/libc/bugs.html"
2159 case ${BUGURL} in
2161 REPORT_BUGS_TO=
2162 REPORT_BUGS_TEXI=
2165 REPORT_BUGS_TO="<$BUGURL>"
2166 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2168 esac;
2173 cat >>confdefs.h <<_ACEOF
2174 #define PKGVERSION "$PKGVERSION"
2175 _ACEOF
2178 cat >>confdefs.h <<_ACEOF
2179 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2180 _ACEOF
2183 # Glibc should not depend on any header files
2186 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2187 # here to work around the Autoconf issue discussed in
2188 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2189 # AC_PROG_CPP
2191 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2192 # issue discussed in
2193 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2198 subdirs="$subdirs "
2201 # Make sure we can run config.sub.
2202 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2203 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2206 $as_echo_n "checking build system type... " >&6; }
2207 if ${ac_cv_build+:} false; then :
2208 $as_echo_n "(cached) " >&6
2209 else
2210 ac_build_alias=$build_alias
2211 test "x$ac_build_alias" = x &&
2212 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2213 test "x$ac_build_alias" = x &&
2214 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2215 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2216 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2220 $as_echo "$ac_cv_build" >&6; }
2221 case $ac_cv_build in
2222 *-*-*) ;;
2223 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2224 esac
2225 build=$ac_cv_build
2226 ac_save_IFS=$IFS; IFS='-'
2227 set x $ac_cv_build
2228 shift
2229 build_cpu=$1
2230 build_vendor=$2
2231 shift; shift
2232 # Remember, the first character of IFS is used to create $*,
2233 # except with old shells:
2234 build_os=$*
2235 IFS=$ac_save_IFS
2236 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2240 $as_echo_n "checking host system type... " >&6; }
2241 if ${ac_cv_host+:} false; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 if test "x$host_alias" = x; then
2245 ac_cv_host=$ac_cv_build
2246 else
2247 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2248 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2253 $as_echo "$ac_cv_host" >&6; }
2254 case $ac_cv_host in
2255 *-*-*) ;;
2256 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2257 esac
2258 host=$ac_cv_host
2259 ac_save_IFS=$IFS; IFS='-'
2260 set x $ac_cv_host
2261 shift
2262 host_cpu=$1
2263 host_vendor=$2
2264 shift; shift
2265 # Remember, the first character of IFS is used to create $*,
2266 # except with old shells:
2267 host_os=$*
2268 IFS=$ac_save_IFS
2269 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2273 ac_ext=c
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278 if test -n "$ac_tool_prefix"; then
2279 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2282 $as_echo_n "checking for $ac_word... " >&6; }
2283 if ${ac_cv_prog_CC+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2296 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2300 done
2301 done
2302 IFS=$as_save_IFS
2306 CC=$ac_cv_prog_CC
2307 if test -n "$CC"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2309 $as_echo "$CC" >&6; }
2310 else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2312 $as_echo "no" >&6; }
2317 if test -z "$ac_cv_prog_CC"; then
2318 ac_ct_CC=$CC
2319 # Extract the first word of "gcc", so it can be a program name with args.
2320 set dummy gcc; ac_word=$2
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2324 $as_echo_n "(cached) " >&6
2325 else
2326 if test -n "$ac_ct_CC"; then
2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_ac_ct_CC="gcc"
2337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2340 done
2341 done
2342 IFS=$as_save_IFS
2346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2347 if test -n "$ac_ct_CC"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2349 $as_echo "$ac_ct_CC" >&6; }
2350 else
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2352 $as_echo "no" >&6; }
2355 if test "x$ac_ct_CC" = x; then
2356 CC=""
2357 else
2358 case $cross_compiling:$ac_tool_warned in
2359 yes:)
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2362 ac_tool_warned=yes ;;
2363 esac
2364 CC=$ac_ct_CC
2366 else
2367 CC="$ac_cv_prog_CC"
2370 if test -z "$CC"; then
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}cc; ac_word=$2
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if ${ac_cv_prog_CC+:} false; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389 ac_cv_prog_CC="${ac_tool_prefix}cc"
2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2393 done
2394 done
2395 IFS=$as_save_IFS
2399 CC=$ac_cv_prog_CC
2400 if test -n "$CC"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2402 $as_echo "$CC" >&6; }
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405 $as_echo "no" >&6; }
2411 if test -z "$CC"; then
2412 # Extract the first word of "cc", so it can be a program name with args.
2413 set dummy cc; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if ${ac_cv_prog_CC+:} false; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 else
2422 ac_prog_rejected=no
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2431 ac_prog_rejected=yes
2432 continue
2434 ac_cv_prog_CC="cc"
2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2438 done
2439 done
2440 IFS=$as_save_IFS
2442 if test $ac_prog_rejected = yes; then
2443 # We found a bogon in the path, so make sure we never use it.
2444 set dummy $ac_cv_prog_CC
2445 shift
2446 if test $# != 0; then
2447 # We chose a different compiler from the bogus one.
2448 # However, it has the same basename, so the bogon will be chosen
2449 # first if we set CC to just the basename; use the full file name.
2450 shift
2451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2459 $as_echo "$CC" >&6; }
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2467 if test -z "$CC"; then
2468 if test -n "$ac_tool_prefix"; then
2469 for ac_prog in cl.exe
2471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if ${ac_cv_prog_CC+:} false; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2492 done
2493 done
2494 IFS=$as_save_IFS
2498 CC=$ac_cv_prog_CC
2499 if test -n "$CC"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501 $as_echo "$CC" >&6; }
2502 else
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504 $as_echo "no" >&6; }
2508 test -n "$CC" && break
2509 done
2511 if test -z "$CC"; then
2512 ac_ct_CC=$CC
2513 for ac_prog in cl.exe
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$ac_ct_CC"; then
2523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532 ac_cv_prog_ac_ct_CC="$ac_prog"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2536 done
2537 done
2538 IFS=$as_save_IFS
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2545 $as_echo "$ac_ct_CC" >&6; }
2546 else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2552 test -n "$ac_ct_CC" && break
2553 done
2555 if test "x$ac_ct_CC" = x; then
2556 CC=""
2557 else
2558 case $cross_compiling:$ac_tool_warned in
2559 yes:)
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564 CC=$ac_ct_CC
2571 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 as_fn_error $? "no acceptable C compiler found in \$PATH
2574 See \`config.log' for more details" "$LINENO" 5; }
2576 # Provide some information about the compiler.
2577 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2578 set X $ac_compile
2579 ac_compiler=$2
2580 for ac_option in --version -v -V -qversion; do
2581 { { ac_try="$ac_compiler $ac_option >&5"
2582 case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585 esac
2586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2587 $as_echo "$ac_try_echo"; } >&5
2588 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2589 ac_status=$?
2590 if test -s conftest.err; then
2591 sed '10a\
2592 ... rest of stderr output deleted ...
2593 10q' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2596 rm -f conftest.er1 conftest.err
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; }
2599 done
2601 EXEEXT=
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2603 $as_echo_n "checking for suffix of object files... " >&6; }
2604 if ${ac_cv_objext+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2611 main ()
2615 return 0;
2617 _ACEOF
2618 rm -f conftest.o conftest.obj
2619 if { { ac_try="$ac_compile"
2620 case "(($ac_try" in
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2623 esac
2624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2625 $as_echo "$ac_try_echo"; } >&5
2626 (eval "$ac_compile") 2>&5
2627 ac_status=$?
2628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2629 test $ac_status = 0; }; then :
2630 for ac_file in conftest.o conftest.obj conftest.*; do
2631 test -f "$ac_file" || continue;
2632 case $ac_file in
2633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2635 break;;
2636 esac
2637 done
2638 else
2639 $as_echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 as_fn_error $? "cannot compute suffix of object files: cannot compile
2645 See \`config.log' for more details" "$LINENO" 5; }
2647 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2650 $as_echo "$ac_cv_objext" >&6; }
2651 OBJEXT=$ac_cv_objext
2652 ac_objext=$OBJEXT
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2654 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2655 if ${ac_cv_c_compiler_gnu+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659 /* end confdefs.h. */
2662 main ()
2664 #ifndef __GNUC__
2665 choke me
2666 #endif
2669 return 0;
2671 _ACEOF
2672 if ac_fn_c_try_compile "$LINENO"; then :
2673 ac_compiler_gnu=yes
2674 else
2675 ac_compiler_gnu=no
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2682 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2683 if test $ac_compiler_gnu = yes; then
2684 GCC=yes
2685 else
2686 GCC=
2688 ac_test_CFLAGS=${CFLAGS+set}
2689 ac_save_CFLAGS=$CFLAGS
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2691 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2692 if ${ac_cv_prog_cc_g+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 ac_save_c_werror_flag=$ac_c_werror_flag
2696 ac_c_werror_flag=yes
2697 ac_cv_prog_cc_g=no
2698 CFLAGS="-g"
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2703 main ()
2707 return 0;
2709 _ACEOF
2710 if ac_fn_c_try_compile "$LINENO"; then :
2711 ac_cv_prog_cc_g=yes
2712 else
2713 CFLAGS=""
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715 /* end confdefs.h. */
2718 main ()
2722 return 0;
2724 _ACEOF
2725 if ac_fn_c_try_compile "$LINENO"; then :
2727 else
2728 ac_c_werror_flag=$ac_save_c_werror_flag
2729 CFLAGS="-g"
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2734 main ()
2738 return 0;
2740 _ACEOF
2741 if ac_fn_c_try_compile "$LINENO"; then :
2742 ac_cv_prog_cc_g=yes
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_c_werror_flag=$ac_save_c_werror_flag
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2752 $as_echo "$ac_cv_prog_cc_g" >&6; }
2753 if test "$ac_test_CFLAGS" = set; then
2754 CFLAGS=$ac_save_CFLAGS
2755 elif test $ac_cv_prog_cc_g = yes; then
2756 if test "$GCC" = yes; then
2757 CFLAGS="-g -O2"
2758 else
2759 CFLAGS="-g"
2761 else
2762 if test "$GCC" = yes; then
2763 CFLAGS="-O2"
2764 else
2765 CFLAGS=
2769 ac_ext=c
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 if test $host != $build; then
2776 for ac_prog in gcc cc
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy $ac_prog; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_BUILD_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$BUILD_CC"; then
2786 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_BUILD_CC="$ac_prog"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2799 done
2800 done
2801 IFS=$as_save_IFS
2805 BUILD_CC=$ac_cv_prog_BUILD_CC
2806 if test -n "$BUILD_CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
2808 $as_echo "$BUILD_CC" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2815 test -n "$BUILD_CC" && break
2816 done
2820 # On Suns, sometimes $CPP names a directory.
2821 if test -n "$CPP" && test -d "$CPP"; then
2822 CPP=
2824 if test -z "$CPP"; then
2825 CPP="$CC -E"
2828 if test -n "$ac_tool_prefix"; then
2829 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2830 set dummy ${ac_tool_prefix}readelf; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_READELF+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$READELF"; then
2837 ac_cv_prog_READELF="$READELF" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2850 done
2851 done
2852 IFS=$as_save_IFS
2856 READELF=$ac_cv_prog_READELF
2857 if test -n "$READELF"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
2859 $as_echo "$READELF" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2867 if test -z "$ac_cv_prog_READELF"; then
2868 ac_ct_READELF=$READELF
2869 # Extract the first word of "readelf", so it can be a program name with args.
2870 set dummy readelf; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$ac_ct_READELF"; then
2877 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_ac_ct_READELF="readelf"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2890 done
2891 done
2892 IFS=$as_save_IFS
2896 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2897 if test -n "$ac_ct_READELF"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
2899 $as_echo "$ac_ct_READELF" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2905 if test "x$ac_ct_READELF" = x; then
2906 READELF="false"
2907 else
2908 case $cross_compiling:$ac_tool_warned in
2909 yes:)
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2912 ac_tool_warned=yes ;;
2913 esac
2914 READELF=$ac_ct_READELF
2916 else
2917 READELF="$ac_cv_prog_READELF"
2921 # We need the C++ compiler only for testing.
2922 ac_ext=cpp
2923 ac_cpp='$CXXCPP $CPPFLAGS'
2924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2927 if test -z "$CXX"; then
2928 if test -n "$CCC"; then
2929 CXX=$CCC
2930 else
2931 if test -n "$ac_tool_prefix"; then
2932 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CXX+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$CXX"; then
2942 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2955 done
2956 done
2957 IFS=$as_save_IFS
2961 CXX=$ac_cv_prog_CXX
2962 if test -n "$CXX"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2964 $as_echo "$CXX" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2971 test -n "$CXX" && break
2972 done
2974 if test -z "$CXX"; then
2975 ac_ct_CXX=$CXX
2976 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$ac_ct_CXX"; then
2986 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CXX="$ac_prog"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3001 IFS=$as_save_IFS
3005 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3006 if test -n "$ac_ct_CXX"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3008 $as_echo "$ac_ct_CXX" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3015 test -n "$ac_ct_CXX" && break
3016 done
3018 if test "x$ac_ct_CXX" = x; then
3019 CXX="g++"
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022 yes:)
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025 ac_tool_warned=yes ;;
3026 esac
3027 CXX=$ac_ct_CXX
3033 # Provide some information about the compiler.
3034 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3035 set X $ac_compile
3036 ac_compiler=$2
3037 for ac_option in --version -v -V -qversion; do
3038 { { ac_try="$ac_compiler $ac_option >&5"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044 $as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3046 ac_status=$?
3047 if test -s conftest.err; then
3048 sed '10a\
3049 ... rest of stderr output deleted ...
3050 10q' conftest.err >conftest.er1
3051 cat conftest.er1 >&5
3053 rm -f conftest.er1 conftest.err
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }
3056 done
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3059 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3060 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h. */
3067 main ()
3069 #ifndef __GNUC__
3070 choke me
3071 #endif
3074 return 0;
3076 _ACEOF
3077 if ac_fn_cxx_try_compile "$LINENO"; then :
3078 ac_compiler_gnu=yes
3079 else
3080 ac_compiler_gnu=no
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3087 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3088 if test $ac_compiler_gnu = yes; then
3089 GXX=yes
3090 else
3091 GXX=
3093 ac_test_CXXFLAGS=${CXXFLAGS+set}
3094 ac_save_CXXFLAGS=$CXXFLAGS
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3096 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3097 if ${ac_cv_prog_cxx_g+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3101 ac_cxx_werror_flag=yes
3102 ac_cv_prog_cxx_g=no
3103 CXXFLAGS="-g"
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3108 main ()
3112 return 0;
3114 _ACEOF
3115 if ac_fn_cxx_try_compile "$LINENO"; then :
3116 ac_cv_prog_cxx_g=yes
3117 else
3118 CXXFLAGS=""
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3123 main ()
3127 return 0;
3129 _ACEOF
3130 if ac_fn_cxx_try_compile "$LINENO"; then :
3132 else
3133 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3134 CXXFLAGS="-g"
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3139 main ()
3143 return 0;
3145 _ACEOF
3146 if ac_fn_cxx_try_compile "$LINENO"; then :
3147 ac_cv_prog_cxx_g=yes
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3157 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3158 if test "$ac_test_CXXFLAGS" = set; then
3159 CXXFLAGS=$ac_save_CXXFLAGS
3160 elif test $ac_cv_prog_cxx_g = yes; then
3161 if test "$GXX" = yes; then
3162 CXXFLAGS="-g -O2"
3163 else
3164 CXXFLAGS="-g"
3166 else
3167 if test "$GXX" = yes; then
3168 CXXFLAGS="-O2"
3169 else
3170 CXXFLAGS=
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
3182 $as_echo_n "checking whether $CXX can link programs... " >&6; }
3183 if ${libc_cv_cxx_link_ok+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 ac_ext=cpp
3187 ac_cpp='$CXXCPP $CPPFLAGS'
3188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3192 # Default, dynamic case.
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3197 main ()
3201 return 0;
3203 _ACEOF
3204 if ac_fn_cxx_try_link "$LINENO"; then :
3205 libc_cv_cxx_link_ok=yes
3206 else
3207 libc_cv_cxx_link_ok=no
3209 rm -f core conftest.err conftest.$ac_objext \
3210 conftest$ac_exeext conftest.$ac_ext
3211 # Static case.
3212 old_LDFLAGS="$LDFLAGS"
3213 LDFLAGS="$LDFLAGS -static"
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3217 #include <iostream>
3220 main()
3222 std::cout << "Hello, world!";
3223 return 0;
3226 _ACEOF
3227 if ac_fn_cxx_try_link "$LINENO"; then :
3229 else
3230 libc_cv_cxx_link_ok=no
3232 rm -f core conftest.err conftest.$ac_objext \
3233 conftest$ac_exeext conftest.$ac_ext
3234 LDFLAGS="$old_LDFLAGS"
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
3243 $as_echo "$libc_cv_cxx_link_ok" >&6; }
3244 if test $libc_cv_cxx_link_ok != yes; then :
3245 CXX=
3248 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
3249 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3252 # This will get text that should go into config.make.
3253 config_vars=
3255 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3257 # Check whether --with-gd was given.
3258 if test "${with_gd+set}" = set; then :
3259 withval=$with_gd; case "$with_gd" in
3260 yes|''|no) ;;
3261 *) libgd_include="-I$withval/include"
3262 libgd_ldflags="-L$withval/lib" ;;
3263 esac
3268 # Check whether --with-gd-include was given.
3269 if test "${with_gd_include+set}" = set; then :
3270 withval=$with_gd_include; case "$with_gd_include" in
3271 ''|no) ;;
3272 *) libgd_include="-I$withval" ;;
3273 esac
3278 # Check whether --with-gd-lib was given.
3279 if test "${with_gd_lib+set}" = set; then :
3280 withval=$with_gd_lib; case "$with_gd_lib" in
3281 ''|no) ;;
3282 *) libgd_ldflags="-L$withval" ;;
3283 esac
3288 if test -n "$libgd_include"; then
3289 config_vars="$config_vars
3290 CFLAGS-memusagestat.c = $libgd_include"
3292 if test -n "$libgd_ldflags"; then
3293 config_vars="$config_vars
3294 libgd-LDFLAGS = $libgd_ldflags"
3298 # Check whether --with-binutils was given.
3299 if test "${with_binutils+set}" = set; then :
3300 withval=$with_binutils; path_binutils=$withval
3301 else
3302 path_binutils=''
3306 # Check whether --with-selinux was given.
3307 if test "${with_selinux+set}" = set; then :
3308 withval=$with_selinux; with_selinux=$withval
3309 else
3310 with_selinux=auto
3315 # Check whether --with-headers was given.
3316 if test "${with_headers+set}" = set; then :
3317 withval=$with_headers; sysheaders=$withval
3318 else
3319 sysheaders=''
3326 # Check whether --with-default-link was given.
3327 if test "${with_default_link+set}" = set; then :
3328 withval=$with_default_link; use_default_link=$withval
3329 else
3330 use_default_link=default
3334 # Check whether --enable-sanity-checks was given.
3335 if test "${enable_sanity_checks+set}" = set; then :
3336 enableval=$enable_sanity_checks; enable_sanity=$enableval
3337 else
3338 enable_sanity=yes
3342 # Check whether --enable-shared was given.
3343 if test "${enable_shared+set}" = set; then :
3344 enableval=$enable_shared; shared=$enableval
3345 else
3346 shared=yes
3349 # Check whether --enable-profile was given.
3350 if test "${enable_profile+set}" = set; then :
3351 enableval=$enable_profile; profile=$enableval
3352 else
3353 profile=no
3356 # Check whether --enable-static-pie was given.
3357 if test "${enable_static_pie+set}" = set; then :
3358 enableval=$enable_static_pie; static_pie=$enableval
3359 else
3360 static_pie=no
3363 # Check whether --enable-timezone-tools was given.
3364 if test "${enable_timezone_tools+set}" = set; then :
3365 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
3366 else
3367 enable_timezone_tools=yes
3372 # Check whether --enable-hardcoded-path-in-tests was given.
3373 if test "${enable_hardcoded_path_in_tests+set}" = set; then :
3374 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
3375 else
3376 hardcoded_path_in_tests=no
3381 # Check whether --enable-stackguard-randomization was given.
3382 if test "${enable_stackguard_randomization+set}" = set; then :
3383 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3384 else
3385 enable_stackguard_randomize=no
3388 if test "$enable_stackguard_randomize" = yes; then
3389 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3393 # Check whether --enable-hidden-plt was given.
3394 if test "${enable_hidden_plt+set}" = set; then :
3395 enableval=$enable_hidden_plt; hidden=$enableval
3396 else
3397 hidden=yes
3400 if test "x$hidden" = xno; then
3401 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3405 # Check whether --enable-bind-now was given.
3406 if test "${enable_bind_now+set}" = set; then :
3407 enableval=$enable_bind_now; bindnow=$enableval
3408 else
3409 bindnow=no
3413 if test "x$bindnow" = xyes; then
3414 $as_echo "#define BIND_NOW 1" >>confdefs.h
3418 # Check whether --enable-stack-protector was given.
3419 if test "${enable_stack_protector+set}" = set; then :
3420 enableval=$enable_stack_protector; enable_stack_protector=$enableval
3421 else
3422 enable_stack_protector=no
3425 case "$enable_stack_protector" in
3426 all|yes|no|strong) ;;
3427 *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
3428 esac
3430 # Check whether --enable-static-nss was given.
3431 if test "${enable_static_nss+set}" = set; then :
3432 enableval=$enable_static_nss; static_nss=$enableval
3433 else
3434 static_nss=no
3437 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3438 static_nss=yes
3439 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3443 # Check whether --enable-force-install was given.
3444 if test "${enable_force_install+set}" = set; then :
3445 enableval=$enable_force_install; force_install=$enableval
3446 else
3447 force_install=yes
3452 # Check whether --enable-maintainer-mode was given.
3453 if test "${enable_maintainer_mode+set}" = set; then :
3454 enableval=$enable_maintainer_mode; maintainer=$enableval
3455 else
3456 maintainer=no
3460 # Check whether --enable-kernel was given.
3461 if test "${enable_kernel+set}" = set; then :
3462 enableval=$enable_kernel; minimum_kernel=$enableval
3465 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3466 # Better nothing than this.
3467 minimum_kernel=""
3468 else
3469 if test "$minimum_kernel" = current; then
3470 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3474 # Check whether --enable-all-warnings was given.
3475 if test "${enable_all_warnings+set}" = set; then :
3476 enableval=$enable_all_warnings; all_warnings=$enableval
3481 # Check whether --enable-werror was given.
3482 if test "${enable_werror+set}" = set; then :
3483 enableval=$enable_werror; enable_werror=$enableval
3484 else
3485 enable_werror=yes
3490 # Check whether --enable-multi-arch was given.
3491 if test "${enable_multi_arch+set}" = set; then :
3492 enableval=$enable_multi_arch; multi_arch=$enableval
3493 else
3494 multi_arch=default
3498 # Check whether --enable-experimental-malloc was given.
3499 if test "${enable_experimental_malloc+set}" = set; then :
3500 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3501 else
3502 experimental_malloc=yes
3507 # Check whether --enable-nss-crypt was given.
3508 if test "${enable_nss_crypt+set}" = set; then :
3509 enableval=$enable_nss_crypt; nss_crypt=$enableval
3510 else
3511 nss_crypt=no
3514 if test x$nss_crypt = xyes; then
3515 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3516 if test $? -ne 0; then
3517 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3519 nspr_includes=-I$(nspr-config --includedir 2>/dev/null)
3520 if test $? -ne 0; then
3521 as_fn_error $? "cannot find include directory with nspr-config" "$LINENO" 5
3523 old_CFLAGS="$CFLAGS"
3524 CFLAGS="$CFLAGS $nss_includes $nspr_includes"
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528 typedef int PRBool;
3529 #include <hasht.h>
3530 #include <nsslowhash.h>
3531 void f (void) { NSSLOW_Init (); }
3533 main ()
3537 return 0;
3539 _ACEOF
3540 if ac_fn_c_try_compile "$LINENO"; then :
3541 libc_cv_nss_crypt=yes
3542 else
3543 as_fn_error $? "
3544 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 old_LIBS="$LIBS"
3548 old_LDFLAGS="$LDFLAGS"
3549 LIBS="$LIBS -lfreebl3"
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3552 typedef int PRBool;
3553 #include <hasht.h>
3554 #include <nsslowhash.h>
3556 main ()
3558 NSSLOW_Init();
3560 return 0;
3562 _ACEOF
3563 if ac_fn_c_try_link "$LINENO"; then :
3564 libc_cv_nss_crypt=yes
3565 else
3566 as_fn_error $? "
3567 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3569 rm -f core conftest.err conftest.$ac_objext \
3570 conftest$ac_exeext conftest.$ac_ext
3571 # Check to see if there is a static NSS cryptographic library.
3572 # If there isn't then we can't link anything with libcrypt.a,
3573 # and that might mean disabling some static tests.
3574 LDFLAGS="$LDFLAGS -static"
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577 typedef int PRBool;
3578 #include <hasht.h>
3579 #include <nsslowhash.h>
3581 main ()
3583 NSSLOW_Init();
3585 return 0;
3587 _ACEOF
3588 if ac_fn_c_try_link "$LINENO"; then :
3589 libc_cv_static_nss_crypt=yes
3590 else
3591 libc_cv_static_nss_crypt=no
3593 rm -f core conftest.err conftest.$ac_objext \
3594 conftest$ac_exeext conftest.$ac_ext
3595 LDFLAGS="$old_LDFLAGS"
3596 CFLAGS="$old_CFLAGS"
3597 LIBS="$old_LIBS"
3598 else
3599 libc_cv_nss_crypt=no
3600 libc_cv_static_nss_crypt=no
3606 # Check whether --enable-obsolete-rpc was given.
3607 if test "${enable_obsolete_rpc+set}" = set; then :
3608 enableval=$enable_obsolete_rpc; link_obsolete_rpc=$enableval
3609 else
3610 link_obsolete_rpc=no
3615 if test "$link_obsolete_rpc" = yes; then
3616 $as_echo "#define LINK_OBSOLETE_RPC 1" >>confdefs.h
3620 # Check whether --enable-obsolete-nsl was given.
3621 if test "${enable_obsolete_nsl+set}" = set; then :
3622 enableval=$enable_obsolete_nsl; build_obsolete_nsl=$enableval
3623 else
3624 build_obsolete_nsl=no
3629 if test "$build_obsolete_nsl" = yes; then
3630 $as_echo "#define LINK_OBSOLETE_NSL 1" >>confdefs.h
3634 # Check whether --enable-systemtap was given.
3635 if test "${enable_systemtap+set}" = set; then :
3636 enableval=$enable_systemtap; systemtap=$enableval
3637 else
3638 systemtap=no
3641 if test "x$systemtap" != xno; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3643 $as_echo_n "checking for systemtap static probe support... " >&6; }
3644 if ${libc_cv_sdt+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 old_CFLAGS="$CFLAGS"
3648 CFLAGS="-std=gnu11 $CFLAGS"
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651 #include <sys/sdt.h>
3652 void foo (int i, void *p)
3654 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3655 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3657 _ACEOF
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659 libc_cv_sdt=yes
3660 else
3661 libc_cv_sdt=no
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 CFLAGS="$old_CFLAGS"
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3667 $as_echo "$libc_cv_sdt" >&6; }
3668 if test $libc_cv_sdt = yes; then
3669 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3671 elif test "x$systemtap" != xauto; then
3672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3675 See \`config.log' for more details" "$LINENO" 5; }
3679 # Check whether --enable-build-nscd was given.
3680 if test "${enable_build_nscd+set}" = set; then :
3681 enableval=$enable_build_nscd; build_nscd=$enableval
3682 else
3683 build_nscd=default
3688 # Note the use of $use_nscd is near the bottom of the file.
3689 # Check whether --enable-nscd was given.
3690 if test "${enable_nscd+set}" = set; then :
3691 enableval=$enable_nscd; use_nscd=$enableval
3692 else
3693 use_nscd=yes
3697 # Check whether --enable-pt_chown was given.
3698 if test "${enable_pt_chown+set}" = set; then :
3699 enableval=$enable_pt_chown; build_pt_chown=$enableval
3700 else
3701 build_pt_chown=no
3705 if test "$build_pt_chown" = yes; then
3706 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3710 # Check whether --enable-tunables was given.
3711 if test "${enable_tunables+set}" = set; then :
3712 enableval=$enable_tunables; have_tunables=$enableval
3713 else
3714 have_tunables=yes
3718 if test "$have_tunables" = yes; then
3719 $as_echo "#define HAVE_TUNABLES 1" >>confdefs.h
3723 # The abi-tags file uses a fairly simplistic model for name recognition that
3724 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3725 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3726 # This doesn't get used much beyond that, so it's fairly safe.
3727 case "$host_os" in
3728 linux*)
3730 gnu*)
3731 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3733 esac
3735 # Check whether --enable-mathvec was given.
3736 if test "${enable_mathvec+set}" = set; then :
3737 enableval=$enable_mathvec; build_mathvec=$enableval
3738 else
3739 build_mathvec=notset
3743 # We keep the original values in `$config_*' and never modify them, so we
3744 # can write them unchanged into config.make. Everything else uses
3745 # $machine, $vendor, and $os, and changes them whenever convenient.
3746 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3748 # Don't allow vendor == "unknown"
3749 test "$config_vendor" = unknown && config_vendor=
3750 config_os="`echo $config_os | sed 's/^unknown-//'`"
3752 # Some configurations imply other options.
3753 elf=yes
3755 # The configure fragment of a port can modify these to supplement
3756 # or override the table in the case statement below. No fragment should
3757 # ever change the config_* variables, however.
3758 machine=$config_machine
3759 vendor=$config_vendor
3760 os=$config_os
3761 base_os=''
3763 submachine=
3765 # Check whether --with-cpu was given.
3766 if test "${with_cpu+set}" = set; then :
3767 withval=$with_cpu; case "$withval" in
3768 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3769 no) ;;
3770 *) submachine="$withval" ;;
3771 esac
3776 # An preconfigure script can set this when it wants to disable the sanity
3777 # check below.
3778 libc_config_ok=no
3780 # A preconfigure script for a system that may or may not use fpu
3781 # sysdeps directories sets this to a preprocessor conditional for
3782 # whether to use such directories.
3783 with_fp_cond=1
3785 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3786 then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3788 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3789 for frag in $frags; do
3790 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3791 echo $ECHO_N "$name $ECHO_C" >&6
3792 . "$frag"
3793 done
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3795 $as_echo "" >&6; }
3800 ### By using the undocumented --enable-hacker-mode option for configure
3801 ### one can skip this test to make the configuration not fail for unsupported
3802 ### platforms.
3804 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3805 case "$machine-$host_os" in
3806 *-linux* | *-gnu*)
3809 as_fn_error $? "
3810 *** The GNU C library is currently unavailable for this platform.
3811 *** If you are interested in seeing glibc on this platform visit
3812 *** the \"How to submit a new port\" in the wiki:
3813 *** https://sourceware.org/glibc/wiki/#Development
3814 *** and join the community!" "$LINENO" 5
3816 esac
3819 # Set base_machine if not set by a preconfigure fragment.
3820 test -n "$base_machine" || base_machine=$machine
3823 # Determine whether to use fpu or nofpu sysdeps directories.
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
3825 $as_echo_n "checking for use of fpu sysdeps directories... " >&6; }
3826 if ${libc_cv_with_fp+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 cat > conftest.c <<EOF
3830 #if $with_fp_cond
3831 int dummy;
3832 #else
3833 # error "no hardware floating point"
3834 #endif
3836 libc_cv_with_fp=no
3837 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \
3838 1>&5 2>&5 ; then
3839 libc_cv_with_fp=yes
3841 rm -f conftest*
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
3844 $as_echo "$libc_cv_with_fp" >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
3848 $as_echo_n "checking for -fstack-protector... " >&6; }
3849 if ${libc_cv_ssp+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
3853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3854 (eval $ac_try) 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; }; then :
3858 libc_cv_ssp=yes
3859 else
3860 libc_cv_ssp=no
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
3865 $as_echo "$libc_cv_ssp" >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
3868 $as_echo_n "checking for -fstack-protector-strong... " >&6; }
3869 if ${libc_cv_ssp_strong+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
3873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; }; then :
3878 libc_cv_ssp_strong=yes
3879 else
3880 libc_cv_ssp_strong=no
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
3885 $as_echo "$libc_cv_ssp_strong" >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
3888 $as_echo_n "checking for -fstack-protector-all... " >&6; }
3889 if ${libc_cv_ssp_all+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
3893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }; }; then :
3898 libc_cv_ssp_all=yes
3899 else
3900 libc_cv_ssp_all=no
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
3905 $as_echo "$libc_cv_ssp_all" >&6; }
3907 stack_protector=
3908 no_stack_protector=
3909 if test "$libc_cv_ssp" = yes; then
3910 no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
3911 $as_echo "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
3915 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
3916 stack_protector="-fstack-protector"
3917 $as_echo "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
3919 elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then
3920 stack_protector="-fstack-protector-all"
3921 $as_echo "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
3923 elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then
3924 stack_protector="-fstack-protector-strong"
3925 $as_echo "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
3927 else
3928 stack_protector="-fno-stack-protector"
3929 $as_echo "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
3936 if test -n "$stack_protector"; then
3937 no_ssp=-fno-stack-protector
3938 else
3939 no_ssp=
3941 if test "$enable_stack_protector" != no; then
3942 as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
3946 # For the multi-arch option we need support in the assembler & linker.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
3948 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
3949 if ${libc_cv_ld_gnu_indirect_function+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 cat > conftest.S <<EOF
3953 .type foo,%gnu_indirect_function
3954 foo:
3955 .globl _start
3956 _start:
3957 .globl __start
3958 __start:
3959 .data
3960 #ifdef _LP64
3961 .quad foo
3962 #else
3963 .long foo
3964 #endif
3966 libc_cv_ld_gnu_indirect_function=no
3967 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
3968 -nostartfiles -nostdlib $no_ssp \
3969 -o conftest conftest.S 1>&5 2>&5; then
3970 # Do a link to see if the backend supports IFUNC relocs.
3971 $READELF -r conftest 1>&5
3972 LC_ALL=C $READELF -r conftest | grep 'no relocations' >/dev/null || {
3973 libc_cv_ld_gnu_indirect_function=yes
3976 rm -f conftest*
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
3979 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
3981 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
3983 $as_echo_n "checking for gcc attribute ifunc support... " >&6; }
3984 if ${libc_cv_gcc_indirect_function+:} false; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 cat > conftest.c <<EOF
3988 extern int func (int);
3989 int used_func (int a)
3991 return a;
3993 static void *resolver ()
3995 return &used_func;
3997 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
3999 libc_cv_gcc_indirect_function=no
4000 if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \
4001 2>&5 ; then
4002 if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then
4003 libc_cv_gcc_indirect_function=yes
4006 rm -f conftest*
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
4009 $as_echo "$libc_cv_gcc_indirect_function" >&6; }
4011 # Check if gcc warns about alias for function with incompatible types.
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
4013 $as_echo_n "checking if compiler warns about alias for function with incompatible types... " >&6; }
4014 if ${libc_cv_gcc_incompatible_alias+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 cat > conftest.c <<EOF
4018 int __redirect_foo (const void *s, int c);
4020 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
4021 __typeof (__redirect_foo) *foo_impl (void)
4023 return 0;
4026 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
4028 libc_cv_gcc_incompatible_alias=yes
4029 if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then
4030 libc_cv_gcc_incompatible_alias=no
4032 rm -f conftest*
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
4035 $as_echo "$libc_cv_gcc_incompatible_alias" >&6; }
4037 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
4038 if test x"$multi_arch" = xyes; then
4039 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4040 else
4041 multi_arch=no
4044 if test x"$libc_cv_gcc_indirect_function" != xyes; then
4045 # GCC 8+ emits a warning for alias with incompatible types and it might
4046 # fail to build ifunc resolvers aliases to either weak or internal
4047 # symbols. Disables multiarch build in this case.
4048 if test x"$libc_cv_gcc_incompatible_alias" == xyes; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
4050 $as_echo "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
4051 if test x"$multi_arch" = xyes; then
4052 as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
4055 $as_echo "$as_me: WARNING: Multi-arch is disabled." >&2;}
4056 multi_arch=no
4057 elif test x"$multi_arch" = xyes; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
4059 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
4060 $as_echo "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
4061 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
4064 multi_arch_d=
4065 if test x"$multi_arch" != xno; then
4066 multi_arch_d=/multiarch
4069 # Compute the list of sysdep directories for this configuration.
4070 # This can take a while to compute.
4071 sysdep_dir=$srcdir/sysdeps
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4073 $as_echo_n "checking sysdep dirs... " >&6; }
4074 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4075 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4077 test "x$base_os" != x || case "$os" in
4078 gnu*)
4079 base_os=mach/hurd ;;
4080 linux*)
4081 base_os=unix/sysv ;;
4082 esac
4084 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4085 tail=$os
4086 ostry=$os
4087 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4088 ostry="$ostry /$o"
4089 tail=$o
4090 done
4091 o=`echo $tail | sed 's/[0-9]*$//'`
4092 if test $o != $tail; then
4093 ostry="$ostry /$o"
4095 # For linux-gnu, try linux-gnu, then linux.
4096 o=`echo $tail | sed 's/-.*$//'`
4097 if test $o != $tail; then
4098 ostry="$ostry /$o"
4101 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4102 base=
4103 tail=$base_os
4104 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4105 set $b
4106 base="$base /$1"
4107 tail="$2"
4108 done
4110 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4111 mach=
4112 tail=$machine${submachine:+/$submachine}
4113 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4114 set $m
4115 # Prepend the machine's FPU directory unless --without-fp.
4116 if test "$libc_cv_with_fp" = yes; then
4117 maybe_fpu=/fpu
4118 else
4119 maybe_fpu=/nofpu
4121 # For each machine term, try it with and then without /multiarch.
4122 for try_fpu in $maybe_fpu ''; do
4123 for try_multi in $multi_arch_d ''; do
4124 mach="$mach /$1$try_fpu$try_multi"
4125 done
4126 done
4127 tail="$2"
4128 done
4131 # Find what sysdep directories exist.
4132 sysnames=
4133 for b in $base ''; do
4134 for m0 in $mach ''; do
4135 for v in /$vendor ''; do
4136 test "$v" = / && continue
4137 for o in /$ostry ''; do
4138 test "$o" = / && continue
4139 for m in $mach ''; do
4140 try_suffix="$m0$b$v$o$m"
4141 if test -n "$try_suffix"; then
4142 try_srcdir="${srcdir}/"
4143 try="sysdeps$try_suffix"
4144 test -n "$enable_debug_configure" &&
4145 echo "$0 DEBUG: try $try" >&2
4146 if test -d "$try_srcdir$try"; then
4147 sysnames="$sysnames $try"
4148 { test -n "$o" || test -n "$b"; } && os_used=t
4149 { test -n "$m" || test -n "$m0"; } && machine_used=t
4150 case x${m0:-$m} in
4151 x*/$submachine) submachine_used=t ;;
4152 esac
4155 done
4156 done
4157 done
4158 done
4159 done
4161 # If the assembler supports gnu_indirect_function symbol type and the
4162 # architecture supports multi-arch, we enable multi-arch by default.
4163 case $sysnames in
4164 *"$multi_arch_d"*)
4167 test x"$multi_arch" = xdefault && multi_arch=no
4169 esac
4170 if test x"$multi_arch" != xno; then
4171 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4176 if test -z "$os_used" && test "$os" != none; then
4177 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4179 if test -z "$machine_used" && test "$machine" != none; then
4180 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4182 if test -z "$submachine_used" && test -n "$submachine"; then
4183 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4187 # We have now validated the configuration.
4189 # Expand the list of system names into a full list of directories
4190 # from each element's parent name and Implies file (if present).
4191 set $sysnames
4192 names=
4193 while test $# -gt 0; do
4194 name=$1
4195 shift
4197 case " $names " in *" $name "*)
4198 # Already in the list.
4199 continue
4200 esac
4202 # Report each name as we discover it, so there is no long pause in output.
4203 echo $ECHO_N "$name $ECHO_C" >&6
4205 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4207 case $name in
4208 /*) xsrcdir= ;;
4209 *) xsrcdir=$srcdir/ ;;
4210 esac
4211 test -n "$enable_debug_configure" &&
4212 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4214 for implies_file in Implies Implies-before Implies-after; do
4215 implies_type=`echo $implies_file | sed s/-/_/`
4216 eval ${implies_type}=
4217 if test -f $xsrcdir$name/$implies_file; then
4218 # Collect more names from the `Implies' file (removing comments).
4219 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
4220 for x in $implied_candidate; do
4221 found=no
4222 if test -d $xsrcdir$name_base/$x; then
4223 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
4224 found=yes
4226 try="sysdeps/$x"
4227 try_srcdir=$srcdir/
4228 test -n "$enable_debug_configure" &&
4229 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
4230 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4231 then
4232 eval "${implies_type}=\"\$${implies_type} \$try\""
4233 found=yes
4235 if test $found = no; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
4237 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
4239 done
4241 done
4243 # Add NAME to the list of names.
4244 names="$names $name"
4246 # Find the parent of NAME, using the empty string if it has none.
4247 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4249 test -n "$enable_debug_configure" &&
4250 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
4251 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
4253 # Add the names implied by NAME, and NAME's parent (if it has one), to
4254 # the list of names to be processed (the argument list). We prepend the
4255 # implied names to the list and append the parent. We want implied
4256 # directories to come before further directories inferred from the
4257 # configuration components; this ensures that for sysv4, unix/common
4258 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4259 # after sysv4).
4260 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
4261 test -n "$sysnames" && set $sysnames
4262 done
4264 # Add the default directories.
4265 default_sysnames="sysdeps/generic"
4266 sysnames="$names $default_sysnames"
4268 # The other names were emitted during the scan.
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4270 $as_echo "$default_sysnames" >&6; }
4273 ### Locate tools.
4275 # Find a good install program. We prefer a C program (faster),
4276 # so one script is as good as another. But avoid the broken or
4277 # incompatible versions:
4278 # SysV /etc/install, /usr/sbin/install
4279 # SunOS /usr/etc/install
4280 # IRIX /sbin/install
4281 # AIX /bin/install
4282 # AmigaOS /C/install, which installs bootblocks on floppy discs
4283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4286 # OS/2's system install, which has a completely different semantic
4287 # ./install, which can be erroneously created by make from ./install.sh.
4288 # Reject install programs that cannot install multiple files.
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4290 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4291 if test -z "$INSTALL"; then
4292 if ${ac_cv_path_install+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 # Account for people who put trailing slashes in PATH elements.
4301 case $as_dir/ in #((
4302 ./ | .// | /[cC]/* | \
4303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4304 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4305 /usr/ucb/* ) ;;
4307 # OSF1 and SCO ODT 3.0 have their own names for install.
4308 # Don't use installbsd from OSF since it installs stuff as root
4309 # by default.
4310 for ac_prog in ginstall scoinst install; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4313 if test $ac_prog = install &&
4314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4315 # AIX install. It has an incompatible calling convention.
4317 elif test $ac_prog = install &&
4318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4319 # program-specific install script used by HP pwplus--don't use.
4321 else
4322 rm -rf conftest.one conftest.two conftest.dir
4323 echo one > conftest.one
4324 echo two > conftest.two
4325 mkdir conftest.dir
4326 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4327 test -s conftest.one && test -s conftest.two &&
4328 test -s conftest.dir/conftest.one &&
4329 test -s conftest.dir/conftest.two
4330 then
4331 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4332 break 3
4336 done
4337 done
4339 esac
4341 done
4342 IFS=$as_save_IFS
4344 rm -rf conftest.one conftest.two conftest.dir
4347 if test "${ac_cv_path_install+set}" = set; then
4348 INSTALL=$ac_cv_path_install
4349 else
4350 # As a last resort, use the slow shell script. Don't cache a
4351 # value for INSTALL within a source directory, because that will
4352 # break other packages using the cache if that directory is
4353 # removed, or if the value is a relative name.
4354 INSTALL=$ac_install_sh
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4358 $as_echo "$INSTALL" >&6; }
4360 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4361 # It thinks the first close brace ends the variable substitution.
4362 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4364 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4366 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4368 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4369 # The makefiles need to use a different form to find it in $srcdir.
4370 INSTALL='\$(..)./scripts/install-sh -c'
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4373 $as_echo_n "checking whether ln -s works... " >&6; }
4374 LN_S=$as_ln_s
4375 if test "$LN_S" = "ln -s"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377 $as_echo "yes" >&6; }
4378 else
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4380 $as_echo "no, using $LN_S" >&6; }
4384 # Was a --with-binutils option given?
4385 if test -n "$path_binutils"; then
4386 # Make absolute; ensure a single trailing slash.
4387 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4388 CC="$CC -B$path_binutils"
4390 AS=`$CC -print-prog-name=as`
4391 LD=`$CC -print-prog-name=ld`
4392 AR=`$CC -print-prog-name=ar`
4394 OBJDUMP=`$CC -print-prog-name=objdump`
4396 OBJCOPY=`$CC -print-prog-name=objcopy`
4398 GPROF=`$CC -print-prog-name=gprof`
4401 # Determine whether we are using GNU binutils.
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4403 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4404 if ${libc_cv_prog_as_gnu+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 # Most GNU programs take a -v and spit out some text including
4408 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4409 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4410 libc_cv_prog_as_gnu=yes
4411 else
4412 libc_cv_prog_as_gnu=no
4414 rm -fr contest*
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4417 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4418 rm -f a.out
4419 gnu_as=$libc_cv_prog_as_gnu
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4422 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4423 if ${libc_cv_prog_ld_gnu+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 # Most GNU programs take a -v and spit out some text including
4427 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4428 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4429 libc_cv_prog_ld_gnu=yes
4430 else
4431 libc_cv_prog_ld_gnu=no
4433 rm -fr contest*
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4436 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4437 gnu_ld=$libc_cv_prog_ld_gnu
4440 # Accept binutils 2.25 or newer.
4441 for ac_prog in $AS
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444 set dummy $ac_prog; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_prog_AS+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -n "$AS"; then
4451 ac_cv_prog_AS="$AS" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_prog_AS="$ac_prog"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4464 done
4465 done
4466 IFS=$as_save_IFS
4470 AS=$ac_cv_prog_AS
4471 if test -n "$AS"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4473 $as_echo "$AS" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4480 test -n "$AS" && break
4481 done
4483 if test -z "$AS"; then
4484 ac_verc_fail=yes
4485 else
4486 # Found it, now check the version.
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4488 $as_echo_n "checking version of $AS... " >&6; }
4489 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4490 case $ac_prog_version in
4491 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4492 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4493 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4494 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4496 esac
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4498 $as_echo "$ac_prog_version" >&6; }
4500 if test $ac_verc_fail = yes; then
4501 AS=: critic_missing="$critic_missing as"
4505 if test -n "`$LD --version | sed -n 's/^GNU \(gold\).*$/\1/p'`"; then
4506 # Accept gold 1.14 or higher
4507 for ac_prog in $LD
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510 set dummy $ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_LD+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$LD"; then
4517 ac_cv_prog_LD="$LD" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_LD="$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4536 LD=$ac_cv_prog_LD
4537 if test -n "$LD"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4539 $as_echo "$LD" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4546 test -n "$LD" && break
4547 done
4549 if test -z "$LD"; then
4550 ac_verc_fail=yes
4551 else
4552 # Found it, now check the version.
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4554 $as_echo_n "checking version of $LD... " >&6; }
4555 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4556 case $ac_prog_version in
4557 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4558 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*)
4559 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4560 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4562 esac
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4564 $as_echo "$ac_prog_version" >&6; }
4566 if test $ac_verc_fail = yes; then
4567 LD=: critic_missing="$critic_missing GNU gold"
4570 else
4571 for ac_prog in $LD
4573 # Extract the first word of "$ac_prog", so it can be a program name with args.
4574 set dummy $ac_prog; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_LD+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$LD"; then
4581 ac_cv_prog_LD="$LD" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_LD="$ac_prog"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4600 LD=$ac_cv_prog_LD
4601 if test -n "$LD"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4603 $as_echo "$LD" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4610 test -n "$LD" && break
4611 done
4613 if test -z "$LD"; then
4614 ac_verc_fail=yes
4615 else
4616 # Found it, now check the version.
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4618 $as_echo_n "checking version of $LD... " >&6; }
4619 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4620 case $ac_prog_version in
4621 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4622 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4623 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4624 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4626 esac
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4628 $as_echo "$ac_prog_version" >&6; }
4630 if test $ac_verc_fail = yes; then
4631 LD=: critic_missing="$critic_missing GNU ld"
4636 # These programs are version sensitive.
4638 for ac_prog in gnumake gmake make
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_MAKE+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$MAKE"; then
4648 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_MAKE="$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4663 IFS=$as_save_IFS
4667 MAKE=$ac_cv_prog_MAKE
4668 if test -n "$MAKE"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4670 $as_echo "$MAKE" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4677 test -n "$MAKE" && break
4678 done
4680 if test -z "$MAKE"; then
4681 ac_verc_fail=yes
4682 else
4683 # Found it, now check the version.
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4685 $as_echo_n "checking version of $MAKE... " >&6; }
4686 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4687 case $ac_prog_version in
4688 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4689 3.79* | 3.[89]* | [4-9].* | [1-9][0-9]*)
4690 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4691 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4693 esac
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4695 $as_echo "$ac_prog_version" >&6; }
4697 if test $ac_verc_fail = yes; then
4698 critic_missing="$critic_missing make"
4702 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if ${ac_cv_prog_MSGFMT+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -n "$MSGFMT"; then
4712 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 ac_cv_prog_MSGFMT="$ac_prog"
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4725 done
4726 done
4727 IFS=$as_save_IFS
4731 MSGFMT=$ac_cv_prog_MSGFMT
4732 if test -n "$MSGFMT"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4734 $as_echo "$MSGFMT" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4741 test -n "$MSGFMT" && break
4742 done
4744 if test -z "$MSGFMT"; then
4745 ac_verc_fail=yes
4746 else
4747 # Found it, now check the version.
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4749 $as_echo_n "checking version of $MSGFMT... " >&6; }
4750 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4751 case $ac_prog_version in
4752 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4753 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4754 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4755 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4757 esac
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4759 $as_echo "$ac_prog_version" >&6; }
4761 if test $ac_verc_fail = yes; then
4762 MSGFMT=: aux_missing="$aux_missing msgfmt"
4765 for ac_prog in makeinfo
4767 # Extract the first word of "$ac_prog", so it can be a program name with args.
4768 set dummy $ac_prog; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if ${ac_cv_prog_MAKEINFO+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$MAKEINFO"; then
4775 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784 ac_cv_prog_MAKEINFO="$ac_prog"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4790 IFS=$as_save_IFS
4794 MAKEINFO=$ac_cv_prog_MAKEINFO
4795 if test -n "$MAKEINFO"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4797 $as_echo "$MAKEINFO" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4804 test -n "$MAKEINFO" && break
4805 done
4807 if test -z "$MAKEINFO"; then
4808 ac_verc_fail=yes
4809 else
4810 # Found it, now check the version.
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4812 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4813 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4814 case $ac_prog_version in
4815 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4816 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
4817 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4818 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4820 esac
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4822 $as_echo "$ac_prog_version" >&6; }
4824 if test $ac_verc_fail = yes; then
4825 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4828 for ac_prog in sed
4830 # Extract the first word of "$ac_prog", so it can be a program name with args.
4831 set dummy $ac_prog; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if ${ac_cv_prog_SED+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -n "$SED"; then
4838 ac_cv_prog_SED="$SED" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847 ac_cv_prog_SED="$ac_prog"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4851 done
4852 done
4853 IFS=$as_save_IFS
4857 SED=$ac_cv_prog_SED
4858 if test -n "$SED"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4860 $as_echo "$SED" >&6; }
4861 else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4867 test -n "$SED" && break
4868 done
4870 if test -z "$SED"; then
4871 ac_verc_fail=yes
4872 else
4873 # Found it, now check the version.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4875 $as_echo_n "checking version of $SED... " >&6; }
4876 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4877 case $ac_prog_version in
4878 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4879 3.0[2-9]*|3.[1-9]*|[4-9]*)
4880 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4881 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4883 esac
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4885 $as_echo "$ac_prog_version" >&6; }
4887 if test $ac_verc_fail = yes; then
4888 SED=: aux_missing="$aux_missing sed"
4891 for ac_prog in gawk
4893 # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_prog_AWK+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$AWK"; then
4901 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910 ac_cv_prog_AWK="$ac_prog"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4914 done
4915 done
4916 IFS=$as_save_IFS
4920 AWK=$ac_cv_prog_AWK
4921 if test -n "$AWK"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4923 $as_echo "$AWK" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4930 test -n "$AWK" && break
4931 done
4933 if test -z "$AWK"; then
4934 ac_verc_fail=yes
4935 else
4936 # Found it, now check the version.
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
4938 $as_echo_n "checking version of $AWK... " >&6; }
4939 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4940 case $ac_prog_version in
4941 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4942 3.1.[2-9]*|3.[2-9]*|[4-9]*)
4943 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4944 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4946 esac
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4948 $as_echo "$ac_prog_version" >&6; }
4950 if test $ac_verc_fail = yes; then
4951 critic_missing="$critic_missing gawk"
4954 for ac_prog in bison
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_BISON+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$BISON"; then
4964 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_BISON="$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4979 IFS=$as_save_IFS
4983 BISON=$ac_cv_prog_BISON
4984 if test -n "$BISON"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4986 $as_echo "$BISON" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4993 test -n "$BISON" && break
4994 done
4996 if test -z "$BISON"; then
4997 ac_verc_fail=yes
4998 else
4999 # Found it, now check the version.
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5001 $as_echo_n "checking version of $BISON... " >&6; }
5002 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5003 case $ac_prog_version in
5004 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5005 2.7*|[3-9].*|[1-9][0-9]*)
5006 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5007 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5009 esac
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5011 $as_echo "$ac_prog_version" >&6; }
5013 if test $ac_verc_fail = yes; then
5014 critic_missing="$critic_missing bison"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
5019 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
5020 if ${libc_cv_compiler_ok+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5028 main ()
5031 #if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9)
5032 #error insufficient compiler
5033 #endif
5035 return 0;
5037 _ACEOF
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 libc_cv_compiler_ok=yes
5040 else
5041 libc_cv_compiler_ok=no
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
5046 $as_echo "$libc_cv_compiler_ok" >&6; }
5047 if test $libc_cv_compiler_ok != yes; then :
5048 critic_missing="$critic_missing compiler"
5051 if test -n "$ac_tool_prefix"; then
5052 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5053 set dummy ${ac_tool_prefix}nm; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_NM+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if test -n "$NM"; then
5060 ac_cv_prog_NM="$NM" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_prog_NM="${ac_tool_prefix}nm"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5073 done
5074 done
5075 IFS=$as_save_IFS
5079 NM=$ac_cv_prog_NM
5080 if test -n "$NM"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5082 $as_echo "$NM" >&6; }
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5090 if test -z "$ac_cv_prog_NM"; then
5091 ac_ct_NM=$NM
5092 # Extract the first word of "nm", so it can be a program name with args.
5093 set dummy nm; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test -n "$ac_ct_NM"; then
5100 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109 ac_cv_prog_ac_ct_NM="nm"
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5113 done
5114 done
5115 IFS=$as_save_IFS
5119 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5120 if test -n "$ac_ct_NM"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5122 $as_echo "$ac_ct_NM" >&6; }
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5128 if test "x$ac_ct_NM" = x; then
5129 NM="false"
5130 else
5131 case $cross_compiling:$ac_tool_warned in
5132 yes:)
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5135 ac_tool_warned=yes ;;
5136 esac
5137 NM=$ac_ct_NM
5139 else
5140 NM="$ac_cv_prog_NM"
5144 if test "x$maintainer" = "xyes"; then
5145 for ac_prog in autoconf
5147 # Extract the first word of "$ac_prog", so it can be a program name with args.
5148 set dummy $ac_prog; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_AUTOCONF+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$AUTOCONF"; then
5155 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_AUTOCONF="$ac_prog"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5168 done
5169 done
5170 IFS=$as_save_IFS
5174 AUTOCONF=$ac_cv_prog_AUTOCONF
5175 if test -n "$AUTOCONF"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5177 $as_echo "$AUTOCONF" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5184 test -n "$AUTOCONF" && break
5185 done
5186 test -n "$AUTOCONF" || AUTOCONF="no"
5188 case "x$AUTOCONF" in
5189 xno|x|x:) AUTOCONF=no ;;
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5192 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5193 if ${libc_cv_autoconf_works+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
5197 libc_cv_autoconf_works=yes
5198 else
5199 libc_cv_autoconf_works=no
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5203 $as_echo "$libc_cv_autoconf_works" >&6; }
5204 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5206 esac
5207 if test "x$AUTOCONF" = xno; then
5208 aux_missing="$aux_missing autoconf"
5210 else
5211 AUTOCONF=no
5214 # Check for python3 if available, or else python.
5215 for ac_prog in python3 python
5217 # Extract the first word of "$ac_prog", so it can be a program name with args.
5218 set dummy $ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_prog_PYTHON_PROG+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$PYTHON_PROG"; then
5225 ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_PYTHON_PROG="$ac_prog"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5240 IFS=$as_save_IFS
5244 PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
5245 if test -n "$PYTHON_PROG"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
5247 $as_echo "$PYTHON_PROG" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5254 test -n "$PYTHON_PROG" && break
5255 done
5256 test -n "$PYTHON_PROG" || PYTHON_PROG="no"
5258 case "x$PYTHON_PROG" in
5259 xno|x|x:) PYTHON_PROG=no ;;
5260 *) ;;
5261 esac
5263 if test "x$PYTHON_PROG" = xno; then
5264 aux_missing="$aux_missing python"
5265 else
5266 PYTHON="$PYTHON_PROG -B"
5270 test -n "$critic_missing" && as_fn_error $? "
5271 *** These critical programs are missing or too old:$critic_missing
5272 *** Check the INSTALL file for required versions." "$LINENO" 5
5274 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5275 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5276 *** some features or tests will be disabled.
5277 *** Check the INSTALL file for required versions." >&5
5278 $as_echo "$as_me: WARNING:
5279 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5280 *** some features or tests will be disabled.
5281 *** Check the INSTALL file for required versions." >&2;}
5283 # if using special system headers, find out the compiler's sekrit
5284 # header directory and add that to the list. NOTE: Only does the right
5285 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5286 if test -n "$sysheaders"; then
5287 SYSINCLUDES=-nostdinc
5288 for d in include include-fixed; do
5289 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5290 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5291 done
5292 SYSINCLUDES="$SYSINCLUDES \
5293 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5294 if test -n "$CXX"; then
5295 CXX_SYSINCLUDES=
5296 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5297 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5298 test "x$cxxheaders" != x &&
5299 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5300 done
5306 # Obtain some C++ header file paths. This is used to make a local
5307 # copy of those headers in Makerules.
5308 if test -n "$CXX"; then
5309 find_cxx_header () {
5310 echo "#include <$1>" | $CXX -M -MP -x c++ - 2>/dev/null \
5311 | sed -n "\,$1:,{s/:\$//;p}"
5313 CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
5314 CXX_CMATH_HEADER="$(find_cxx_header cmath)"
5315 CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"
5321 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5322 # since this would lead to problems installing/building glibc.
5323 # LD_LIBRARY_PATH contains the current directory if one of the following
5324 # is true:
5325 # - one of the terminals (":" and ";") is the first or last sign
5326 # - two terminals occur directly after each other
5327 # - the path contains an element with a dot in it
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5329 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5330 case ${LD_LIBRARY_PATH} in
5331 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5332 ld_library_path_setting="contains current directory"
5335 ld_library_path_setting="ok"
5337 esac
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5339 $as_echo "$ld_library_path_setting" >&6; }
5340 if test "$ld_library_path_setting" != "ok"; then
5341 as_fn_error $? "
5342 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5343 *** building glibc. Please change the environment variable
5344 *** and run configure again." "$LINENO" 5
5347 # Extract the first word of "bash", so it can be a program name with args.
5348 set dummy bash; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_path_BASH_SHELL+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 case $BASH_SHELL in
5355 [\\/]* | ?:[\\/]*)
5356 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5374 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5376 esac
5378 BASH_SHELL=$ac_cv_path_BASH_SHELL
5379 if test -n "$BASH_SHELL"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5381 $as_echo "$BASH_SHELL" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5389 # Extract the first word of "perl", so it can be a program name with args.
5390 set dummy perl; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_path_PERL+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 case $PERL in
5397 [\\/]* | ?:[\\/]*)
5398 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5408 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 break 2
5412 done
5413 done
5414 IFS=$as_save_IFS
5416 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5418 esac
5420 PERL=$ac_cv_path_PERL
5421 if test -n "$PERL"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5423 $as_echo "$PERL" >&6; }
5424 else
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5430 if test "$PERL" != no &&
5431 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5432 PERL=no
5434 # Extract the first word of "install-info", so it can be a program name with args.
5435 set dummy install-info; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 case $INSTALL_INFO in
5442 [\\/]* | ?:[\\/]*)
5443 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5448 for as_dir in $as_dummy
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5458 done
5459 done
5460 IFS=$as_save_IFS
5462 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5464 esac
5466 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5467 if test -n "$INSTALL_INFO"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5469 $as_echo "$INSTALL_INFO" >&6; }
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5478 $as_echo_n "checking for .set assembler directive... " >&6; }
5479 if ${libc_cv_asm_set_directive+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 cat > conftest.s <<EOF
5483 .text
5484 foo:
5485 .set glibc_conftest_frobozz,foo
5486 .globl glibc_conftest_frobozz
5488 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5489 # (but it doesn't work), so we must do a linking check to be sure.
5490 cat > conftest1.c <<\EOF
5491 extern int glibc_conftest_frobozz;
5492 void _start() { glibc_conftest_frobozz = 1; }
5494 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5495 -nostartfiles -nostdlib $no_ssp \
5496 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5497 libc_cv_asm_set_directive=yes
5498 else
5499 libc_cv_asm_set_directive=no
5501 rm -f conftest*
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5504 $as_echo "$libc_cv_asm_set_directive" >&6; }
5505 if test $libc_cv_asm_set_directive = yes; then
5506 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5511 $as_echo_n "checking linker support for protected data symbol... " >&6; }
5512 if ${libc_cv_protected_data+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 cat > conftest.c <<EOF
5516 int bar __attribute__ ((visibility ("protected"))) = 1;
5518 libc_cv_protected_data=no
5519 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
5520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5524 test $ac_status = 0; }; }; then
5525 cat > conftest.c <<EOF
5526 extern int bar;
5527 int main (void) { return bar; }
5529 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
5530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5531 (eval $ac_try) 2>&5
5532 ac_status=$?
5533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5534 test $ac_status = 0; }; }; then
5535 libc_cv_protected_data=yes
5538 rm -f conftest.*
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5542 $as_echo "$libc_cv_protected_data" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
5546 $as_echo_n "checking linker support for INSERT in linker script... " >&6; }
5547 if ${libc_cv_insert+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 cat > conftest.c <<EOF
5551 const int __attribute__ ((section(".bar"))) bar = 0x12345678;
5552 int test (void) { return bar; }
5554 cat > conftest.t <<EOF
5555 SECTIONS
5557 .bar : { *(.bar) }
5559 INSERT AFTER .rela.dyn;
5561 libc_cv_insert=no
5562 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
5563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5564 (eval $ac_try) 2>&5
5565 ac_status=$?
5566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5567 test $ac_status = 0; }; }; then
5568 libc_cv_insert=yes
5570 rm -f conftest.*
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
5574 $as_echo "$libc_cv_insert" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5578 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5579 if ${libc_cv_broken_alias_attribute+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 cat > conftest.c <<EOF
5583 extern int foo (int x) __asm ("xyzzy");
5584 int bar (int x) { return x; }
5585 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5586 extern int dfoo;
5587 extern __typeof (dfoo) dfoo __asm ("abccb");
5588 int dfoo = 1;
5590 libc_cv_broken_alias_attribute=yes
5591 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5596 test $ac_status = 0; }; }; then
5597 if grep 'xyzzy' conftest.s >/dev/null &&
5598 grep 'abccb' conftest.s >/dev/null; then
5599 libc_cv_broken_alias_attribute=no
5602 rm -f conftest.c conftest.s
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5606 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5607 if test $libc_cv_broken_alias_attribute = yes; then
5608 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5612 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5613 if ${libc_cv_have_sdata_section+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 echo "int i;" > conftest.c
5617 libc_cv_have_sdata_section=no
5618 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5619 | grep '\.sdata' >/dev/null; then
5620 libc_cv_have_sdata_section=yes
5622 rm -f conftest.c conftest.so
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5626 $as_echo "$libc_cv_have_sdata_section" >&6; }
5627 if test $libc_cv_have_sdata_section = yes; then
5628 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
5633 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
5634 if ${libc_cv_ctors_header+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 libc_cv_ctors_header=yes
5638 cat > conftest.c <<EOF
5639 int _start (void) { return 0; }
5640 int __start (void) { return 0; }
5642 __attribute__ ((constructor)) void ctor (void) { asm (""); }
5643 __attribute__ ((destructor)) void dtor (void) { asm (""); }
5646 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -o conftest
5647 conftest.c -static -nostartfiles -nostdlib
5648 1>&5'
5649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5653 test $ac_status = 0; }; }; then :
5654 if $READELF -WS conftest$ac_exeext | $AWK '
5655 { gsub(/\[ */, "[") }
5656 $2 == ".ctors" || $2 == ".dtors" {
5657 size = strtonum("0x" $6)
5658 align = strtonum("0x" $NF)
5659 seen[$2] = 1
5660 stub[$2] = size == align * 2
5662 END {
5663 ctors_ok = !seen[".ctors"] || stub[".ctors"]
5664 dtors_ok = !seen[".dtors"] || stub[".dtors"]
5665 exit ((ctors_ok && dtors_ok) ? 0 : 1)
5667 '; then :
5668 libc_cv_ctors_header=no
5671 else
5672 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
5675 rm -f conftest*
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
5679 $as_echo "$libc_cv_ctors_header" >&6; }
5680 if test $libc_cv_ctors_header = no; then
5681 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5686 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5687 if ${libc_cv_cc_with_libunwind+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5691 cat > conftest.c <<EOF
5692 int main (void) { return 0; }
5694 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5695 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
5696 libc_cv_cc_with_libunwind=yes
5697 else
5698 libc_cv_cc_with_libunwind=no
5700 rm -f conftest*
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
5703 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
5705 if test $libc_cv_cc_with_libunwind = yes; then
5706 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
5710 ASFLAGS_config=
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
5712 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
5713 if ${libc_cv_as_noexecstack+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 cat > conftest.c <<EOF
5717 void foo (void) { }
5719 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5720 -S -o conftest.s conftest.c 1>&5'
5721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725 test $ac_status = 0; }; } \
5726 && grep .note.GNU-stack conftest.s >/dev/null \
5727 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
5728 -c -o conftest.o conftest.s 1>&5'
5729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5733 test $ac_status = 0; }; }
5734 then
5735 libc_cv_as_noexecstack=yes
5736 else
5737 libc_cv_as_noexecstack=no
5739 rm -f conftest*
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
5742 $as_echo "$libc_cv_as_noexecstack" >&6; }
5743 if test $libc_cv_as_noexecstack = yes; then
5744 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
5749 $as_echo_n "checking for -z combreloc... " >&6; }
5750 if ${libc_cv_z_combreloc+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 cat > conftest.c <<EOF
5754 extern int bar (int);
5755 extern int mumble;
5756 int foo (void) { return bar (mumble); }
5758 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5759 -fPIC -shared $no_ssp -o conftest.so conftest.c
5760 -nostdlib -nostartfiles
5761 -Wl,-z,combreloc 1>&5'
5762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5766 test $ac_status = 0; }; }
5767 then
5768 if $READELF -S conftest.so | grep -E '.rela?.dyn' > /dev/null; then
5769 libc_cv_z_combreloc=yes
5770 else
5771 libc_cv_z_combreloc=no
5773 else
5774 libc_cv_z_combreloc=no
5776 rm -f conftest*
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
5779 $as_echo "$libc_cv_z_combreloc" >&6; }
5780 if test "$libc_cv_z_combreloc" = yes; then
5781 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
5787 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
5788 libc_linker_feature=no
5789 if test x"$gnu_ld" = x"yes"; then
5790 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z execstack"`
5791 if test -n "$libc_linker_check"; then
5792 cat > conftest.c <<EOF
5793 int _start (void) { return 42; }
5795 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5796 -Wl,-z,execstack -nostdlib -nostartfiles
5797 -fPIC -shared -o conftest.so conftest.c
5798 1>&5'
5799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5803 test $ac_status = 0; }; }
5804 then
5805 libc_linker_feature=yes
5807 rm -f conftest*
5810 if test $libc_linker_feature = yes; then
5811 libc_cv_z_execstack=yes
5812 else
5813 libc_cv_z_execstack=no
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5816 $as_echo "$libc_linker_feature" >&6; }
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
5820 $as_echo_n "checking for linker that supports --no-dynamic-linker... " >&6; }
5821 libc_linker_feature=no
5822 if test x"$gnu_ld" = x"yes"; then
5823 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\--no-dynamic-linker"`
5824 if test -n "$libc_linker_check"; then
5825 cat > conftest.c <<EOF
5826 int _start (void) { return 42; }
5828 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5829 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
5830 -fPIC -shared -o conftest.so conftest.c
5831 1>&5'
5832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5836 test $ac_status = 0; }; }
5837 then
5838 libc_linker_feature=yes
5840 rm -f conftest*
5843 if test $libc_linker_feature = yes; then
5844 libc_cv_no_dynamic_linker=yes
5845 else
5846 libc_cv_no_dynamic_linker=no
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5849 $as_echo "$libc_linker_feature" >&6; }
5850 config_vars="$config_vars
5851 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
5854 $as_echo_n "checking for -static-pie... " >&6; }
5855 if ${libc_cv_static_pie+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
5859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863 test $ac_status = 0; }; }; then :
5864 libc_cv_static_pie=yes
5865 else
5866 libc_cv_static_pie=no
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
5871 $as_echo "$libc_cv_static_pie" >&6; }
5872 config_vars="$config_vars
5873 have-static-pie = $libc_cv_static_pie"
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
5876 $as_echo_n "checking for -fpie... " >&6; }
5877 if ${libc_cv_fpie+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
5881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5885 test $ac_status = 0; }; }; then :
5886 libc_cv_fpie=yes
5887 else
5888 libc_cv_fpie=no
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
5893 $as_echo "$libc_cv_fpie" >&6; }
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
5898 $as_echo_n "checking for --hash-style option... " >&6; }
5899 if ${libc_cv_hashstyle+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 cat > conftest.c <<EOF
5903 int _start (void) { return 42; }
5905 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5906 -fPIC -shared -o conftest.so conftest.c
5907 -Wl,--hash-style=both -nostdlib 1>&5'
5908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; }; }
5913 then
5914 libc_cv_hashstyle=yes
5915 else
5916 libc_cv_hashstyle=no
5918 rm -f conftest*
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
5921 $as_echo "$libc_cv_hashstyle" >&6; }
5924 # The linker's default -shared behavior is good enough if it
5925 # does these things that our custom linker scripts ensure that
5926 # all allocated NOTE sections come first.
5927 if test "$use_default_link" = default; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
5929 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
5930 if ${libc_cv_use_default_link+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 libc_cv_use_default_link=no
5934 cat > conftest.s <<\EOF
5935 .section .note.a,"a",%note
5936 .balign 4
5937 .long 4,4,9
5938 .string "GNU"
5939 .string "foo"
5940 .section .note.b,"a",%note
5941 .balign 4
5942 .long 4,4,9
5943 .string "GNU"
5944 .string "bar"
5946 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
5947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5951 test $ac_status = 0; }; } &&
5952 ac_try=`$READELF -S conftest.so | sed -n \
5953 '${x;p;}
5954 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
5959 then
5960 libc_seen_a=no libc_seen_b=no
5961 set -- $ac_try
5962 while test $# -ge 2 -a "$1" = NOTE; do
5963 case "$2" in
5964 .note.a) libc_seen_a=yes ;;
5965 .note.b) libc_seen_b=yes ;;
5966 esac
5967 shift 2
5968 done
5969 case "$libc_seen_a$libc_seen_b" in
5970 yesyes)
5971 libc_cv_use_default_link=yes
5974 echo >&5 "\
5975 $libc_seen_a$libc_seen_b from:
5976 $ac_try"
5978 esac
5980 rm -f conftest*
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
5983 $as_echo "$libc_cv_use_default_link" >&6; }
5984 use_default_link=$libc_cv_use_default_link
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
5988 $as_echo_n "checking for GLOB_DAT reloc... " >&6; }
5989 if ${libc_cv_has_glob_dat+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat > conftest.c <<EOF
5993 extern int mumble;
5994 int foo (void) { return mumble; }
5996 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5997 -fPIC -shared -o conftest.so conftest.c
5998 -nostdlib -nostartfiles $no_ssp
5999 1>&5'
6000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 test $ac_status = 0; }; }
6005 then
6006 if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then
6007 libc_cv_has_glob_dat=yes
6008 else
6009 libc_cv_has_glob_dat=no
6011 else
6012 libc_cv_has_glob_dat=no
6014 rm -f conftest*
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
6017 $as_echo "$libc_cv_has_glob_dat" >&6; }
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
6021 $as_echo_n "checking linker output format... " >&6; }
6022 if ${libc_cv_output_format+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if libc_cv_output_format=`
6026 ${CC-cc} -nostartfiles -nostdlib $no_ssp -Wl,--print-output-format 2>&5`
6027 then
6029 else
6030 libc_cv_output_format=
6032 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
6035 $as_echo "$libc_cv_output_format" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6039 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6040 if ${libc_cv_fno_toplevel_reorder+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 cat > conftest.c <<EOF
6044 int foo;
6046 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6047 conftest.c 1>&5'
6048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6049 (eval $ac_try) 2>&5
6050 ac_status=$?
6051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052 test $ac_status = 0; }; }
6053 then
6054 libc_cv_fno_toplevel_reorder=yes
6055 else
6056 libc_cv_fno_toplevel_reorder=no
6058 rm -f conftest*
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6061 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6062 if test $libc_cv_fno_toplevel_reorder = yes; then
6063 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6064 else
6065 fno_unit_at_a_time=-fno-unit-at-a-time
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
6070 $as_echo_n "checking for -mtls-dialect=gnu2... " >&6; }
6071 if ${libc_cv_mtls_dialect_gnu2+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 cat > conftest.c <<EOF
6075 __thread int i;
6076 void foo (void)
6078 i = 10;
6081 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fPIC -mtls-dialect=gnu2
6082 conftest.c 1>&5'
6083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087 test $ac_status = 0; }; }
6088 then
6089 libc_cv_mtls_dialect_gnu2=yes
6090 else
6091 libc_cv_mtls_dialect_gnu2=no
6093 rm -f conftest*
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5
6096 $as_echo "$libc_cv_mtls_dialect_gnu2" >&6; }
6098 config_vars="$config_vars
6099 have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2"
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6102 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6103 if ${libc_cv_have_section_quotes+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 cat > conftest.c <<EOF
6107 static const int foo
6108 __attribute__ ((section ("bar"))) = 1;
6110 if ${CC-cc} -S conftest.c -o conftest.s; then
6111 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6112 libc_cv_have_section_quotes=yes
6113 else
6114 libc_cv_have_section_quotes=no
6116 else
6117 libc_cv_have_section_quotes=unknown
6119 rm -f conftest.{c,s}
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6123 $as_echo "$libc_cv_have_section_quotes" >&6; }
6124 if test $libc_cv_have_section_quotes = yes; then
6125 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6130 $as_echo_n "checking for __builtin_memset... " >&6; }
6131 if ${libc_cv_gcc_builtin_memset+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 cat > conftest.c <<\EOF
6135 void zero (void *x)
6137 __builtin_memset (x, 0, 1000);
6140 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
6141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6142 (eval $ac_try) 2>&5
6143 ac_status=$?
6144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6145 test $ac_status = 0; }; };
6146 then
6147 libc_cv_gcc_builtin_memset=no
6148 else
6149 libc_cv_gcc_builtin_memset=yes
6151 rm -f conftest*
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6154 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6155 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6156 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6161 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6162 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 cat > conftest.c <<\EOF
6166 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6167 char *foo (const char *a, const char *b)
6169 return __builtin_strstr (a, b);
6172 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
6173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177 test $ac_status = 0; }; };
6178 then
6179 libc_cv_gcc_builtin_redirection=yes
6180 else
6181 libc_cv_gcc_builtin_redirection=no
6183 rm -f conftest*
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6186 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6187 if test "$libc_cv_gcc_builtin_redirection" = no; then
6188 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6192 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6193 if ${libc_cv_cc_nofma+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 libc_cv_cc_nofma=
6197 for opt in -ffp-contract=off -mno-fused-madd; do
6198 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6203 test $ac_status = 0; }; }; then :
6204 libc_cv_cc_nofma=$opt; break
6206 done
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6209 $as_echo "$libc_cv_cc_nofma" >&6; }
6212 if test -n "$submachine"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6214 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6215 if ${libc_cv_cc_submachine+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 libc_cv_cc_submachine=no
6219 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6220 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6225 test $ac_status = 0; }; }; then :
6227 libc_cv_cc_submachine="$opt"
6228 break
6230 done
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6233 $as_echo "$libc_cv_cc_submachine" >&6; }
6234 if test "x$libc_cv_cc_submachine" = xno; then
6235 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6241 __attribute__ ((__optimize__))" >&5
6242 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6243 __attribute__ ((__optimize__))... " >&6; }
6244 if ${libc_cv_cc_loop_to_function+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 cat > conftest.c <<EOF
6248 void
6249 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6250 foo (void) {}
6252 libc_cv_cc_loop_to_function=no
6253 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258 test $ac_status = 0; }; }
6259 then
6260 libc_cv_cc_loop_to_function=yes
6262 rm -f conftest*
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6265 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6266 if test $libc_cv_cc_loop_to_function = yes; then
6267 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6273 $as_echo_n "checking for libgd... " >&6; }
6274 if test "$with_gd" != "no"; then
6275 old_CFLAGS="$CFLAGS"
6276 CFLAGS="$CFLAGS $libgd_include"
6277 old_LDFLAGS="$LDFLAGS"
6278 LDFLAGS="$LDFLAGS $libgd_ldflags"
6279 old_LIBS="$LIBS"
6280 LIBS="$LIBS -lgd -lpng -lz -lm"
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <gd.h>
6285 main ()
6287 gdImagePng (0, 0)
6289 return 0;
6291 _ACEOF
6292 if ac_fn_c_try_link "$LINENO"; then :
6293 LIBGD=yes
6294 else
6295 LIBGD=no
6297 rm -f core conftest.err conftest.$ac_objext \
6298 conftest$ac_exeext conftest.$ac_ext
6299 CFLAGS="$old_CFLAGS"
6300 LDFLAGS="$old_LDFLAGS"
6301 LIBS="$old_LIBS"
6302 else
6303 LIBGD=no
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6306 $as_echo "$LIBGD" >&6; }
6309 # SELinux detection
6310 if test x$with_selinux = xno ; then
6311 have_selinux=no;
6312 else
6313 # See if we have the SELinux library
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6315 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6316 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 ac_check_lib_save_LIBS=$LIBS
6320 LIBS="-lselinux $LIBS"
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6324 /* Override any GCC internal prototype to avoid an error.
6325 Use char because int might match the return type of a GCC
6326 builtin and then its argument prototype would still apply. */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 char is_selinux_enabled ();
6332 main ()
6334 return is_selinux_enabled ();
6336 return 0;
6338 _ACEOF
6339 if ac_fn_c_try_link "$LINENO"; then :
6340 ac_cv_lib_selinux_is_selinux_enabled=yes
6341 else
6342 ac_cv_lib_selinux_is_selinux_enabled=no
6344 rm -f core conftest.err conftest.$ac_objext \
6345 conftest$ac_exeext conftest.$ac_ext
6346 LIBS=$ac_check_lib_save_LIBS
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6349 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6350 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
6351 have_selinux=yes
6352 else
6353 have_selinux=no
6356 if test x$with_selinux = xyes ; then
6357 if test x$have_selinux = xno ; then
6358 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6362 # Check if we're building with SELinux support.
6363 if test "x$have_selinux" = xyes; then
6365 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6368 # See if we have the libaudit library
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6370 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6371 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 ac_check_lib_save_LIBS=$LIBS
6375 LIBS="-laudit $LIBS"
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6379 /* Override any GCC internal prototype to avoid an error.
6380 Use char because int might match the return type of a GCC
6381 builtin and then its argument prototype would still apply. */
6382 #ifdef __cplusplus
6383 extern "C"
6384 #endif
6385 char audit_log_user_avc_message ();
6387 main ()
6389 return audit_log_user_avc_message ();
6391 return 0;
6393 _ACEOF
6394 if ac_fn_c_try_link "$LINENO"; then :
6395 ac_cv_lib_audit_audit_log_user_avc_message=yes
6396 else
6397 ac_cv_lib_audit_audit_log_user_avc_message=no
6399 rm -f core conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6401 LIBS=$ac_check_lib_save_LIBS
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6404 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6405 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
6406 have_libaudit=yes
6407 else
6408 have_libaudit=no
6411 if test "x$have_libaudit" = xyes; then
6413 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6418 # See if we have the libcap library
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6420 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6421 if ${ac_cv_lib_cap_cap_init+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 ac_check_lib_save_LIBS=$LIBS
6425 LIBS="-lcap $LIBS"
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6429 /* Override any GCC internal prototype to avoid an error.
6430 Use char because int might match the return type of a GCC
6431 builtin and then its argument prototype would still apply. */
6432 #ifdef __cplusplus
6433 extern "C"
6434 #endif
6435 char cap_init ();
6437 main ()
6439 return cap_init ();
6441 return 0;
6443 _ACEOF
6444 if ac_fn_c_try_link "$LINENO"; then :
6445 ac_cv_lib_cap_cap_init=yes
6446 else
6447 ac_cv_lib_cap_cap_init=no
6449 rm -f core conftest.err conftest.$ac_objext \
6450 conftest$ac_exeext conftest.$ac_ext
6451 LIBS=$ac_check_lib_save_LIBS
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6454 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6455 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
6456 have_libcap=yes
6457 else
6458 have_libcap=no
6461 if test "x$have_libcap" = xyes; then
6463 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
6470 CPPUNDEFS=
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
6472 $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
6473 if ${libc_cv_predef_fortify_source+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6480 main ()
6483 #ifdef _FORTIFY_SOURCE
6484 # error bogon
6485 #endif
6487 return 0;
6489 _ACEOF
6490 if ac_fn_c_try_compile "$LINENO"; then :
6491 libc_cv_predef_fortify_source=no
6492 else
6493 libc_cv_predef_fortify_source=yes
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
6498 $as_echo "$libc_cv_predef_fortify_source" >&6; }
6499 if test $libc_cv_predef_fortify_source = yes; then
6500 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
6504 # Some linkers on some architectures support __ehdr_start but with
6505 # bugs. Make sure usage of it does not create relocations in the
6506 # output (as the linker should resolve them all for us).
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker provides working __ehdr_start" >&5
6508 $as_echo_n "checking whether the linker provides working __ehdr_start... " >&6; }
6509 if ${libc_cv_ehdr_start+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6513 old_CFLAGS="$CFLAGS"
6514 old_LDFLAGS="$LDFLAGS"
6515 old_LIBS="$LIBS"
6516 CFLAGS="$CFLAGS -fPIC"
6517 LDFLAGS="$LDFLAGS -nostdlib -nostartfiles -shared $no_ssp"
6518 LIBS=
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6522 typedef struct {
6523 char foo;
6524 long val;
6525 } Ehdr;
6526 extern const Ehdr __ehdr_start __attribute__ ((visibility ("hidden")));
6527 long ehdr (void) { return __ehdr_start.val; }
6529 _ACEOF
6530 if ac_fn_c_try_link "$LINENO"; then :
6531 if $READELF -r conftest | grep -F __ehdr_start >/dev/null; then
6532 libc_cv_ehdr_start=broken
6533 else
6534 libc_cv_ehdr_start=yes
6536 else
6537 libc_cv_ehdr_start=no
6539 rm -f core conftest.err conftest.$ac_objext \
6540 conftest$ac_exeext conftest.$ac_ext
6541 CFLAGS="$old_CFLAGS"
6542 LDFLAGS="$old_LDFLAGS"
6543 LIBS="$old_LIBS"
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ehdr_start" >&5
6547 $as_echo "$libc_cv_ehdr_start" >&6; }
6548 if test "$libc_cv_ehdr_start" = yes; then
6549 $as_echo "#define HAVE_EHDR_START 1" >>confdefs.h
6551 elif test "$libc_cv_ehdr_start" = broken; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker is broken -- you should upgrade" >&5
6553 $as_echo "$as_me: WARNING: linker is broken -- you should upgrade" >&2;}
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
6557 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
6558 if ${libc_cv_builtin_trap+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 libc_cv_builtin_trap=no
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6566 main ()
6568 __builtin_trap ()
6570 return 0;
6572 _ACEOF
6573 if ac_fn_c_try_compile "$LINENO"; then :
6575 libc_undefs=`$NM -u conftest.o |
6576 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6577 2>&5` || {
6578 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
6580 echo >&5 "libc_undefs='$libc_undefs'"
6581 if test -z "$libc_undefs"; then
6582 libc_cv_builtin_trap=yes
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
6588 $as_echo "$libc_cv_builtin_trap" >&6; }
6589 if test $libc_cv_builtin_trap = yes; then
6590 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
6594 ac_ext=cpp
6595 ac_cpp='$CXXCPP $CPPFLAGS'
6596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
6602 $as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; }
6603 if ${libc_cv_cxx_thread_local+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6607 old_CXXFLAGS="$CXXFLAGS"
6608 CXXFLAGS="$CXXFLAGS -std=gnu++11"
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6612 #include <thread>
6614 // Compiler support.
6615 struct S
6617 S ();
6618 ~S ();
6620 thread_local S s;
6621 S * get () { return &s; }
6623 // libstdc++ support.
6624 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
6625 #error __cxa_thread_atexit_impl not supported
6626 #endif
6628 _ACEOF
6629 if ac_fn_cxx_try_compile "$LINENO"; then :
6630 libc_cv_cxx_thread_local=yes
6631 else
6632 libc_cv_cxx_thread_local=no
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 CXXFLAGS="$old_CXXFLAGS"
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
6639 $as_echo "$libc_cv_cxx_thread_local" >&6; }
6642 ac_ext=c
6643 ac_cpp='$CPP $CPPFLAGS'
6644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6649 ### End of automated tests.
6650 ### Now run sysdeps configure fragments.
6652 # They also can set these variables.
6653 use_ldconfig=no
6654 ldd_rewrite_script=no
6655 libc_cv_sysconfdir=$sysconfdir
6656 libc_cv_localstatedir=$localstatedir
6657 libc_cv_gcc_unwind_find_fde=no
6658 libc_cv_idn=no
6660 # Iterate over all the sysdep directories we will use, running their
6661 # configure fragments.
6662 for dir in $sysnames; do
6663 case $dir in
6664 /*) dest=$dir ;;
6665 *) dest=$srcdir/$dir ;;
6666 esac
6667 if test -r $dest/configure; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
6669 $as_echo "running configure fragment for $dir" >&6; }
6670 . $dest/configure
6672 done
6674 if test x"$build_mathvec" = xnotset; then
6675 build_mathvec=no
6677 config_vars="$config_vars
6678 build-mathvec = $build_mathvec"
6683 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6684 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
6689 # A sysdeps configure fragment can reset this if IFUNC is not actually
6690 # usable even though the assembler knows how to generate the symbol type.
6691 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
6692 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
6696 if test x"$libc_cv_gcc_indirect_function" = xyes; then
6697 $as_echo "#define HAVE_GCC_IFUNC 1" >>confdefs.h
6701 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
6702 # configure fragment can override the value to prevent this AC_DEFINE.
6704 if test "x$use_nscd" != xno; then
6705 $as_echo "#define USE_NSCD 1" >>confdefs.h
6708 if test "x$build_nscd" = xdefault; then
6709 build_nscd=$use_nscd
6719 if test x$use_ldconfig = xyes; then
6720 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
6730 $as_echo_n "checking whether -fPIC is default... " >&6; }
6731 if ${libc_cv_pic_default+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 libc_cv_pic_default=yes
6735 cat > conftest.c <<EOF
6736 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6737 # error PIC is default.
6738 #endif
6740 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6741 libc_cv_pic_default=no
6743 rm -f conftest.*
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
6746 $as_echo "$libc_cv_pic_default" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
6750 $as_echo_n "checking whether -fPIE is default... " >&6; }
6751 if ${libc_cv_pie_default+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 libc_cv_pie_default=yes
6755 cat > conftest.c <<EOF
6756 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
6757 # error PIE is default.
6758 #endif
6760 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6761 libc_cv_pie_default=no
6763 rm -f conftest.*
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_default" >&5
6766 $as_echo "$libc_cv_pie_default" >&6; }
6769 # Set the `multidir' variable by grabbing the variable from the compiler.
6770 # We do it once and save the result in a generated makefile.
6771 libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
6774 if test "$static_pie" = yes; then
6775 # The linker must support --no-dynamic-linker.
6776 if test "$libc_cv_no_dynamic_linker" != yes; then
6777 as_fn_error $? "linker support for --no-dynamic-linker needed" "$LINENO" 5
6779 # Default to PIE.
6780 libc_cv_pie_default=yes
6781 $as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
6784 config_vars="$config_vars
6785 enable-static-pie = $static_pie"
6794 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6795 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6799 ac_config_files="$ac_config_files config.make Makefile"
6801 ac_config_commands="$ac_config_commands default"
6803 cat >confcache <<\_ACEOF
6804 # This file is a shell script that caches the results of configure
6805 # tests run on this system so they can be shared between configure
6806 # scripts and configure runs, see configure's option --config-cache.
6807 # It is not useful on other systems. If it contains results you don't
6808 # want to keep, you may remove or edit it.
6810 # config.status only pays attention to the cache file if you give it
6811 # the --recheck option to rerun configure.
6813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6815 # following values.
6817 _ACEOF
6819 # The following way of writing the cache mishandles newlines in values,
6820 # but we know of no workaround that is simple, portable, and efficient.
6821 # So, we kill variables containing newlines.
6822 # Ultrix sh set writes to stderr and can't be redirected directly,
6823 # and sets the high bit in the cache file unless we assign to the vars.
6825 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6826 eval ac_val=\$$ac_var
6827 case $ac_val in #(
6828 *${as_nl}*)
6829 case $ac_var in #(
6830 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6832 esac
6833 case $ac_var in #(
6834 _ | IFS | as_nl) ;; #(
6835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6836 *) { eval $ac_var=; unset $ac_var;} ;;
6837 esac ;;
6838 esac
6839 done
6841 (set) 2>&1 |
6842 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6843 *${as_nl}ac_space=\ *)
6844 # `set' does not quote correctly, so add quotes: double-quote
6845 # substitution turns \\\\ into \\, and sed turns \\ into \.
6846 sed -n \
6847 "s/'/'\\\\''/g;
6848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6849 ;; #(
6851 # `set' quotes correctly as required by POSIX, so do not add quotes.
6852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6854 esac |
6855 sort
6857 sed '
6858 /^ac_cv_env_/b end
6859 t clear
6860 :clear
6861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6862 t end
6863 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6864 :end' >>confcache
6865 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6866 if test -w "$cache_file"; then
6867 if test "x$cache_file" != "x/dev/null"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6869 $as_echo "$as_me: updating cache $cache_file" >&6;}
6870 if test ! -f "$cache_file" || test -h "$cache_file"; then
6871 cat confcache >"$cache_file"
6872 else
6873 case $cache_file in #(
6874 */* | ?:*)
6875 mv -f confcache "$cache_file"$$ &&
6876 mv -f "$cache_file"$$ "$cache_file" ;; #(
6878 mv -f confcache "$cache_file" ;;
6879 esac
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6884 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6887 rm -f confcache
6889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6890 # Let make expand exec_prefix.
6891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6893 DEFS=-DHAVE_CONFIG_H
6895 ac_libobjs=
6896 ac_ltlibobjs=
6898 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6899 # 1. Remove the extension, and $U if already installed.
6900 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6901 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6902 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6903 # will be set to the directory where LIBOBJS objects are built.
6904 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6905 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6906 done
6907 LIBOBJS=$ac_libobjs
6909 LTLIBOBJS=$ac_ltlibobjs
6913 : "${CONFIG_STATUS=./config.status}"
6914 ac_write_fail=0
6915 ac_clean_files_save=$ac_clean_files
6916 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6918 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6919 as_write_fail=0
6920 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6921 #! $SHELL
6922 # Generated by $as_me.
6923 # Run this file to recreate the current configuration.
6924 # Compiler output produced by configure, useful for debugging
6925 # configure, is in config.log if it exists.
6927 debug=false
6928 ac_cs_recheck=false
6929 ac_cs_silent=false
6931 SHELL=\${CONFIG_SHELL-$SHELL}
6932 export SHELL
6933 _ASEOF
6934 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6935 ## -------------------- ##
6936 ## M4sh Initialization. ##
6937 ## -------------------- ##
6939 # Be more Bourne compatible
6940 DUALCASE=1; export DUALCASE # for MKS sh
6941 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6942 emulate sh
6943 NULLCMD=:
6944 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6945 # is contrary to our usage. Disable this feature.
6946 alias -g '${1+"$@"}'='"$@"'
6947 setopt NO_GLOB_SUBST
6948 else
6949 case `(set -o) 2>/dev/null` in #(
6950 *posix*) :
6951 set -o posix ;; #(
6952 *) :
6954 esac
6958 as_nl='
6960 export as_nl
6961 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6962 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6963 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6964 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6965 # Prefer a ksh shell builtin over an external printf program on Solaris,
6966 # but without wasting forks for bash or zsh.
6967 if test -z "$BASH_VERSION$ZSH_VERSION" \
6968 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6969 as_echo='print -r --'
6970 as_echo_n='print -rn --'
6971 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6972 as_echo='printf %s\n'
6973 as_echo_n='printf %s'
6974 else
6975 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6976 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6977 as_echo_n='/usr/ucb/echo -n'
6978 else
6979 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6980 as_echo_n_body='eval
6981 arg=$1;
6982 case $arg in #(
6983 *"$as_nl"*)
6984 expr "X$arg" : "X\\(.*\\)$as_nl";
6985 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6986 esac;
6987 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6989 export as_echo_n_body
6990 as_echo_n='sh -c $as_echo_n_body as_echo'
6992 export as_echo_body
6993 as_echo='sh -c $as_echo_body as_echo'
6996 # The user is always right.
6997 if test "${PATH_SEPARATOR+set}" != set; then
6998 PATH_SEPARATOR=:
6999 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7000 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7001 PATH_SEPARATOR=';'
7006 # IFS
7007 # We need space, tab and new line, in precisely that order. Quoting is
7008 # there to prevent editors from complaining about space-tab.
7009 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7010 # splitting by setting IFS to empty value.)
7011 IFS=" "" $as_nl"
7013 # Find who we are. Look in the path if we contain no directory separator.
7014 as_myself=
7015 case $0 in #((
7016 *[\\/]* ) as_myself=$0 ;;
7017 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7023 done
7024 IFS=$as_save_IFS
7027 esac
7028 # We did not find ourselves, most probably we were run as `sh COMMAND'
7029 # in which case we are not to be found in the path.
7030 if test "x$as_myself" = x; then
7031 as_myself=$0
7033 if test ! -f "$as_myself"; then
7034 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7035 exit 1
7038 # Unset variables that we do not need and which cause bugs (e.g. in
7039 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7040 # suppresses any "Segmentation fault" message there. '((' could
7041 # trigger a bug in pdksh 5.2.14.
7042 for as_var in BASH_ENV ENV MAIL MAILPATH
7043 do eval test x\${$as_var+set} = xset \
7044 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7045 done
7046 PS1='$ '
7047 PS2='> '
7048 PS4='+ '
7050 # NLS nuisances.
7051 LC_ALL=C
7052 export LC_ALL
7053 LANGUAGE=C
7054 export LANGUAGE
7056 # CDPATH.
7057 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7060 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7061 # ----------------------------------------
7062 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7063 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7064 # script with STATUS, using 1 if that was 0.
7065 as_fn_error ()
7067 as_status=$1; test $as_status -eq 0 && as_status=1
7068 if test "$4"; then
7069 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7070 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7072 $as_echo "$as_me: error: $2" >&2
7073 as_fn_exit $as_status
7074 } # as_fn_error
7077 # as_fn_set_status STATUS
7078 # -----------------------
7079 # Set $? to STATUS, without forking.
7080 as_fn_set_status ()
7082 return $1
7083 } # as_fn_set_status
7085 # as_fn_exit STATUS
7086 # -----------------
7087 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7088 as_fn_exit ()
7090 set +e
7091 as_fn_set_status $1
7092 exit $1
7093 } # as_fn_exit
7095 # as_fn_unset VAR
7096 # ---------------
7097 # Portably unset VAR.
7098 as_fn_unset ()
7100 { eval $1=; unset $1;}
7102 as_unset=as_fn_unset
7103 # as_fn_append VAR VALUE
7104 # ----------------------
7105 # Append the text in VALUE to the end of the definition contained in VAR. Take
7106 # advantage of any shell optimizations that allow amortized linear growth over
7107 # repeated appends, instead of the typical quadratic growth present in naive
7108 # implementations.
7109 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7110 eval 'as_fn_append ()
7112 eval $1+=\$2
7114 else
7115 as_fn_append ()
7117 eval $1=\$$1\$2
7119 fi # as_fn_append
7121 # as_fn_arith ARG...
7122 # ------------------
7123 # Perform arithmetic evaluation on the ARGs, and store the result in the
7124 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7125 # must be portable across $(()) and expr.
7126 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7127 eval 'as_fn_arith ()
7129 as_val=$(( $* ))
7131 else
7132 as_fn_arith ()
7134 as_val=`expr "$@" || test $? -eq 1`
7136 fi # as_fn_arith
7139 if expr a : '\(a\)' >/dev/null 2>&1 &&
7140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7141 as_expr=expr
7142 else
7143 as_expr=false
7146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7147 as_basename=basename
7148 else
7149 as_basename=false
7152 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7153 as_dirname=dirname
7154 else
7155 as_dirname=false
7158 as_me=`$as_basename -- "$0" ||
7159 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7160 X"$0" : 'X\(//\)$' \| \
7161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7162 $as_echo X/"$0" |
7163 sed '/^.*\/\([^/][^/]*\)\/*$/{
7164 s//\1/
7167 /^X\/\(\/\/\)$/{
7168 s//\1/
7171 /^X\/\(\/\).*/{
7172 s//\1/
7175 s/.*/./; q'`
7177 # Avoid depending upon Character Ranges.
7178 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7179 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7180 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7181 as_cr_digits='0123456789'
7182 as_cr_alnum=$as_cr_Letters$as_cr_digits
7184 ECHO_C= ECHO_N= ECHO_T=
7185 case `echo -n x` in #(((((
7186 -n*)
7187 case `echo 'xy\c'` in
7188 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7189 xy) ECHO_C='\c';;
7190 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7191 ECHO_T=' ';;
7192 esac;;
7194 ECHO_N='-n';;
7195 esac
7197 rm -f conf$$ conf$$.exe conf$$.file
7198 if test -d conf$$.dir; then
7199 rm -f conf$$.dir/conf$$.file
7200 else
7201 rm -f conf$$.dir
7202 mkdir conf$$.dir 2>/dev/null
7204 if (echo >conf$$.file) 2>/dev/null; then
7205 if ln -s conf$$.file conf$$ 2>/dev/null; then
7206 as_ln_s='ln -s'
7207 # ... but there are two gotchas:
7208 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7209 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7210 # In both cases, we have to default to `cp -pR'.
7211 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7212 as_ln_s='cp -pR'
7213 elif ln conf$$.file conf$$ 2>/dev/null; then
7214 as_ln_s=ln
7215 else
7216 as_ln_s='cp -pR'
7218 else
7219 as_ln_s='cp -pR'
7221 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7222 rmdir conf$$.dir 2>/dev/null
7225 # as_fn_mkdir_p
7226 # -------------
7227 # Create "$as_dir" as a directory, including parents if necessary.
7228 as_fn_mkdir_p ()
7231 case $as_dir in #(
7232 -*) as_dir=./$as_dir;;
7233 esac
7234 test -d "$as_dir" || eval $as_mkdir_p || {
7235 as_dirs=
7236 while :; do
7237 case $as_dir in #(
7238 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7239 *) as_qdir=$as_dir;;
7240 esac
7241 as_dirs="'$as_qdir' $as_dirs"
7242 as_dir=`$as_dirname -- "$as_dir" ||
7243 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7244 X"$as_dir" : 'X\(//\)[^/]' \| \
7245 X"$as_dir" : 'X\(//\)$' \| \
7246 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7247 $as_echo X"$as_dir" |
7248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7249 s//\1/
7252 /^X\(\/\/\)[^/].*/{
7253 s//\1/
7256 /^X\(\/\/\)$/{
7257 s//\1/
7260 /^X\(\/\).*/{
7261 s//\1/
7264 s/.*/./; q'`
7265 test -d "$as_dir" && break
7266 done
7267 test -z "$as_dirs" || eval "mkdir $as_dirs"
7268 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7271 } # as_fn_mkdir_p
7272 if mkdir -p . 2>/dev/null; then
7273 as_mkdir_p='mkdir -p "$as_dir"'
7274 else
7275 test -d ./-p && rmdir ./-p
7276 as_mkdir_p=false
7280 # as_fn_executable_p FILE
7281 # -----------------------
7282 # Test if FILE is an executable regular file.
7283 as_fn_executable_p ()
7285 test -f "$1" && test -x "$1"
7286 } # as_fn_executable_p
7287 as_test_x='test -x'
7288 as_executable_p=as_fn_executable_p
7290 # Sed expression to map a string onto a valid CPP name.
7291 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7293 # Sed expression to map a string onto a valid variable name.
7294 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7297 exec 6>&1
7298 ## ----------------------------------- ##
7299 ## Main body of $CONFIG_STATUS script. ##
7300 ## ----------------------------------- ##
7301 _ASEOF
7302 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7305 # Save the log message, to keep $0 and so on meaningful, and to
7306 # report actual input values of CONFIG_FILES etc. instead of their
7307 # values after options handling.
7308 ac_log="
7309 This file was extended by GNU C Library $as_me (see version.h), which was
7310 generated by GNU Autoconf 2.69. Invocation command line was
7312 CONFIG_FILES = $CONFIG_FILES
7313 CONFIG_HEADERS = $CONFIG_HEADERS
7314 CONFIG_LINKS = $CONFIG_LINKS
7315 CONFIG_COMMANDS = $CONFIG_COMMANDS
7316 $ $0 $@
7318 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7321 _ACEOF
7323 case $ac_config_files in *"
7324 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7325 esac
7327 case $ac_config_headers in *"
7328 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7329 esac
7332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7333 # Files that config.status was made for.
7334 config_files="$ac_config_files"
7335 config_headers="$ac_config_headers"
7336 config_commands="$ac_config_commands"
7338 _ACEOF
7340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7341 ac_cs_usage="\
7342 \`$as_me' instantiates files and other configuration actions
7343 from templates according to the current configuration. Unless the files
7344 and actions are specified as TAGs, all are instantiated by default.
7346 Usage: $0 [OPTION]... [TAG]...
7348 -h, --help print this help, then exit
7349 -V, --version print version number and configuration settings, then exit
7350 --config print configuration, then exit
7351 -q, --quiet, --silent
7352 do not print progress messages
7353 -d, --debug don't remove temporary files
7354 --recheck update $as_me by reconfiguring in the same conditions
7355 --file=FILE[:TEMPLATE]
7356 instantiate the configuration file FILE
7357 --header=FILE[:TEMPLATE]
7358 instantiate the configuration header FILE
7360 Configuration files:
7361 $config_files
7363 Configuration headers:
7364 $config_headers
7366 Configuration commands:
7367 $config_commands
7369 Report bugs to <https://sourceware.org/bugzilla/>.
7370 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
7371 General help using GNU software: <http://www.gnu.org/gethelp/>."
7373 _ACEOF
7374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7375 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7376 ac_cs_version="\\
7377 GNU C Library config.status (see version.h)
7378 configured by $0, generated by GNU Autoconf 2.69,
7379 with options \\"\$ac_cs_config\\"
7381 Copyright (C) 2012 Free Software Foundation, Inc.
7382 This config.status script is free software; the Free Software Foundation
7383 gives unlimited permission to copy, distribute and modify it."
7385 ac_pwd='$ac_pwd'
7386 srcdir='$srcdir'
7387 INSTALL='$INSTALL'
7388 test -n "\$AWK" || AWK=awk
7389 _ACEOF
7391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7392 # The default lists apply if the user does not specify any file.
7393 ac_need_defaults=:
7394 while test $# != 0
7396 case $1 in
7397 --*=?*)
7398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7399 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7400 ac_shift=:
7402 --*=)
7403 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7404 ac_optarg=
7405 ac_shift=:
7408 ac_option=$1
7409 ac_optarg=$2
7410 ac_shift=shift
7412 esac
7414 case $ac_option in
7415 # Handling of the options.
7416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7417 ac_cs_recheck=: ;;
7418 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7419 $as_echo "$ac_cs_version"; exit ;;
7420 --config | --confi | --conf | --con | --co | --c )
7421 $as_echo "$ac_cs_config"; exit ;;
7422 --debug | --debu | --deb | --de | --d | -d )
7423 debug=: ;;
7424 --file | --fil | --fi | --f )
7425 $ac_shift
7426 case $ac_optarg in
7427 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7428 '') as_fn_error $? "missing file argument" ;;
7429 esac
7430 as_fn_append CONFIG_FILES " '$ac_optarg'"
7431 ac_need_defaults=false;;
7432 --header | --heade | --head | --hea )
7433 $ac_shift
7434 case $ac_optarg in
7435 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7436 esac
7437 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7438 ac_need_defaults=false;;
7439 --he | --h)
7440 # Conflict between --help and --header
7441 as_fn_error $? "ambiguous option: \`$1'
7442 Try \`$0 --help' for more information.";;
7443 --help | --hel | -h )
7444 $as_echo "$ac_cs_usage"; exit ;;
7445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7446 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7447 ac_cs_silent=: ;;
7449 # This is an error.
7450 -*) as_fn_error $? "unrecognized option: \`$1'
7451 Try \`$0 --help' for more information." ;;
7453 *) as_fn_append ac_config_targets " $1"
7454 ac_need_defaults=false ;;
7456 esac
7457 shift
7458 done
7460 ac_configure_extra_args=
7462 if $ac_cs_silent; then
7463 exec 6>/dev/null
7464 ac_configure_extra_args="$ac_configure_extra_args --silent"
7467 _ACEOF
7468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7469 if \$ac_cs_recheck; then
7470 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7471 shift
7472 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7473 CONFIG_SHELL='$SHELL'
7474 export CONFIG_SHELL
7475 exec "\$@"
7478 _ACEOF
7479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7480 exec 5>>config.log
7482 echo
7483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7484 ## Running $as_me. ##
7485 _ASBOX
7486 $as_echo "$ac_log"
7487 } >&5
7489 _ACEOF
7490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7492 # INIT-COMMANDS
7494 config_vars='$config_vars'
7496 _ACEOF
7498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7500 # Handling of arguments.
7501 for ac_config_target in $ac_config_targets
7503 case $ac_config_target in
7504 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7505 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
7506 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7507 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7509 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7510 esac
7511 done
7514 # If the user did not use the arguments to specify the items to instantiate,
7515 # then the envvar interface is used. Set only those that are not.
7516 # We use the long form for the default assignment because of an extremely
7517 # bizarre bug on SunOS 4.1.3.
7518 if $ac_need_defaults; then
7519 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7520 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7524 # Have a temporary directory for convenience. Make it in the build tree
7525 # simply because there is no reason against having it here, and in addition,
7526 # creating and moving files from /tmp can sometimes cause problems.
7527 # Hook for its removal unless debugging.
7528 # Note that there is a small window in which the directory will not be cleaned:
7529 # after its creation but before its name has been assigned to `$tmp'.
7530 $debug ||
7532 tmp= ac_tmp=
7533 trap 'exit_status=$?
7534 : "${ac_tmp:=$tmp}"
7535 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7537 trap 'as_fn_exit 1' 1 2 13 15
7539 # Create a (secure) tmp directory for tmp files.
7542 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7543 test -d "$tmp"
7544 } ||
7546 tmp=./conf$$-$RANDOM
7547 (umask 077 && mkdir "$tmp")
7548 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7549 ac_tmp=$tmp
7551 # Set up the scripts for CONFIG_FILES section.
7552 # No need to generate them if there are no CONFIG_FILES.
7553 # This happens for instance with `./config.status config.h'.
7554 if test -n "$CONFIG_FILES"; then
7557 ac_cr=`echo X | tr X '\015'`
7558 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7559 # But we know of no other shell where ac_cr would be empty at this
7560 # point, so we can use a bashism as a fallback.
7561 if test "x$ac_cr" = x; then
7562 eval ac_cr=\$\'\\r\'
7564 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7565 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7566 ac_cs_awk_cr='\\r'
7567 else
7568 ac_cs_awk_cr=$ac_cr
7571 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7572 _ACEOF
7576 echo "cat >conf$$subs.awk <<_ACEOF" &&
7577 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7578 echo "_ACEOF"
7579 } >conf$$subs.sh ||
7580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7581 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7582 ac_delim='%!_!# '
7583 for ac_last_try in false false false false false :; do
7584 . ./conf$$subs.sh ||
7585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7587 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7588 if test $ac_delim_n = $ac_delim_num; then
7589 break
7590 elif $ac_last_try; then
7591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7592 else
7593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7595 done
7596 rm -f conf$$subs.sh
7598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7599 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7600 _ACEOF
7601 sed -n '
7603 s/^/S["/; s/!.*/"]=/
7606 s/^[^!]*!//
7607 :repl
7608 t repl
7609 s/'"$ac_delim"'$//
7610 t delim
7613 s/\(.\{148\}\)..*/\1/
7614 t more1
7615 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7618 b repl
7619 :more1
7620 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7623 s/.\{148\}//
7624 t nl
7625 :delim
7627 s/\(.\{148\}\)..*/\1/
7628 t more2
7629 s/["\\]/\\&/g; s/^/"/; s/$/"/
7632 :more2
7633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7636 s/.\{148\}//
7637 t delim
7638 ' <conf$$subs.awk | sed '
7639 /^[^""]/{
7641 s/\n//
7643 ' >>$CONFIG_STATUS || ac_write_fail=1
7644 rm -f conf$$subs.awk
7645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7646 _ACAWK
7647 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7648 for (key in S) S_is_set[key] = 1
7649 FS = "\a"
7653 line = $ 0
7654 nfields = split(line, field, "@")
7655 substed = 0
7656 len = length(field[1])
7657 for (i = 2; i < nfields; i++) {
7658 key = field[i]
7659 keylen = length(key)
7660 if (S_is_set[key]) {
7661 value = S[key]
7662 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7663 len += length(value) + length(field[++i])
7664 substed = 1
7665 } else
7666 len += 1 + keylen
7669 print line
7672 _ACAWK
7673 _ACEOF
7674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7675 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7676 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7677 else
7679 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7680 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7681 _ACEOF
7683 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7684 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7685 # trailing colons and then remove the whole line if VPATH becomes empty
7686 # (actually we leave an empty line to preserve line numbers).
7687 if test "x$srcdir" = x.; then
7688 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7690 s///
7691 s/^/:/
7692 s/[ ]*$/:/
7693 s/:\$(srcdir):/:/g
7694 s/:\${srcdir}:/:/g
7695 s/:@srcdir@:/:/g
7696 s/^:*//
7697 s/:*$//
7699 s/\(=[ ]*\).*/\1/
7701 s/\n//
7702 s/^[^=]*=[ ]*$//
7706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7707 fi # test -n "$CONFIG_FILES"
7709 # Set up the scripts for CONFIG_HEADERS section.
7710 # No need to generate them if there are no CONFIG_HEADERS.
7711 # This happens for instance with `./config.status Makefile'.
7712 if test -n "$CONFIG_HEADERS"; then
7713 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7714 BEGIN {
7715 _ACEOF
7717 # Transform confdefs.h into an awk script `defines.awk', embedded as
7718 # here-document in config.status, that substitutes the proper values into
7719 # config.h.in to produce config.h.
7721 # Create a delimiter string that does not exist in confdefs.h, to ease
7722 # handling of long lines.
7723 ac_delim='%!_!# '
7724 for ac_last_try in false false :; do
7725 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7726 if test -z "$ac_tt"; then
7727 break
7728 elif $ac_last_try; then
7729 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7730 else
7731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7733 done
7735 # For the awk script, D is an array of macro values keyed by name,
7736 # likewise P contains macro parameters if any. Preserve backslash
7737 # newline sequences.
7739 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7740 sed -n '
7741 s/.\{148\}/&'"$ac_delim"'/g
7742 t rset
7743 :rset
7744 s/^[ ]*#[ ]*define[ ][ ]*/ /
7745 t def
7747 :def
7748 s/\\$//
7749 t bsnl
7750 s/["\\]/\\&/g
7751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7752 D["\1"]=" \3"/p
7753 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7755 :bsnl
7756 s/["\\]/\\&/g
7757 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7758 D["\1"]=" \3\\\\\\n"\\/p
7759 t cont
7760 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7761 t cont
7763 :cont
7765 s/.\{148\}/&'"$ac_delim"'/g
7766 t clear
7767 :clear
7768 s/\\$//
7769 t bsnlc
7770 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7772 :bsnlc
7773 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7774 b cont
7775 ' <confdefs.h | sed '
7776 s/'"$ac_delim"'/"\\\
7777 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7780 for (key in D) D_is_set[key] = 1
7781 FS = "\a"
7783 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7784 line = \$ 0
7785 split(line, arg, " ")
7786 if (arg[1] == "#") {
7787 defundef = arg[2]
7788 mac1 = arg[3]
7789 } else {
7790 defundef = substr(arg[1], 2)
7791 mac1 = arg[2]
7793 split(mac1, mac2, "(") #)
7794 macro = mac2[1]
7795 prefix = substr(line, 1, index(line, defundef) - 1)
7796 if (D_is_set[macro]) {
7797 # Preserve the white space surrounding the "#".
7798 print prefix "define", macro P[macro] D[macro]
7799 next
7800 } else {
7801 # Replace #undef with comments. This is necessary, for example,
7802 # in the case of _POSIX_SOURCE, which is predefined and required
7803 # on some systems where configure will not decide to define it.
7804 if (defundef == "undef") {
7805 print "/*", prefix defundef, macro, "*/"
7806 next
7810 { print }
7811 _ACAWK
7812 _ACEOF
7813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7814 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7815 fi # test -n "$CONFIG_HEADERS"
7818 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7819 shift
7820 for ac_tag
7822 case $ac_tag in
7823 :[FHLC]) ac_mode=$ac_tag; continue;;
7824 esac
7825 case $ac_mode$ac_tag in
7826 :[FHL]*:*);;
7827 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7828 :[FH]-) ac_tag=-:-;;
7829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7830 esac
7831 ac_save_IFS=$IFS
7832 IFS=:
7833 set x $ac_tag
7834 IFS=$ac_save_IFS
7835 shift
7836 ac_file=$1
7837 shift
7839 case $ac_mode in
7840 :L) ac_source=$1;;
7841 :[FH])
7842 ac_file_inputs=
7843 for ac_f
7845 case $ac_f in
7846 -) ac_f="$ac_tmp/stdin";;
7847 *) # Look for the file first in the build tree, then in the source tree
7848 # (if the path is not absolute). The absolute path cannot be DOS-style,
7849 # because $ac_f cannot contain `:'.
7850 test -f "$ac_f" ||
7851 case $ac_f in
7852 [\\/$]*) false;;
7853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7854 esac ||
7855 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7856 esac
7857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7858 as_fn_append ac_file_inputs " '$ac_f'"
7859 done
7861 # Let's still pretend it is `configure' which instantiates (i.e., don't
7862 # use $as_me), people would be surprised to read:
7863 # /* config.h. Generated by config.status. */
7864 configure_input='Generated from '`
7865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7866 `' by configure.'
7867 if test x"$ac_file" != x-; then
7868 configure_input="$ac_file. $configure_input"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7870 $as_echo "$as_me: creating $ac_file" >&6;}
7872 # Neutralize special characters interpreted by sed in replacement strings.
7873 case $configure_input in #(
7874 *\&* | *\|* | *\\* )
7875 ac_sed_conf_input=`$as_echo "$configure_input" |
7876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7877 *) ac_sed_conf_input=$configure_input;;
7878 esac
7880 case $ac_tag in
7881 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7883 esac
7885 esac
7887 ac_dir=`$as_dirname -- "$ac_file" ||
7888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7889 X"$ac_file" : 'X\(//\)[^/]' \| \
7890 X"$ac_file" : 'X\(//\)$' \| \
7891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7892 $as_echo X"$ac_file" |
7893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7894 s//\1/
7897 /^X\(\/\/\)[^/].*/{
7898 s//\1/
7901 /^X\(\/\/\)$/{
7902 s//\1/
7905 /^X\(\/\).*/{
7906 s//\1/
7909 s/.*/./; q'`
7910 as_dir="$ac_dir"; as_fn_mkdir_p
7911 ac_builddir=.
7913 case "$ac_dir" in
7914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7917 # A ".." for each directory in $ac_dir_suffix.
7918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7919 case $ac_top_builddir_sub in
7920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7922 esac ;;
7923 esac
7924 ac_abs_top_builddir=$ac_pwd
7925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7926 # for backward compatibility:
7927 ac_top_builddir=$ac_top_build_prefix
7929 case $srcdir in
7930 .) # We are building in place.
7931 ac_srcdir=.
7932 ac_top_srcdir=$ac_top_builddir_sub
7933 ac_abs_top_srcdir=$ac_pwd ;;
7934 [\\/]* | ?:[\\/]* ) # Absolute name.
7935 ac_srcdir=$srcdir$ac_dir_suffix;
7936 ac_top_srcdir=$srcdir
7937 ac_abs_top_srcdir=$srcdir ;;
7938 *) # Relative name.
7939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7940 ac_top_srcdir=$ac_top_build_prefix$srcdir
7941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7942 esac
7943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7946 case $ac_mode in
7949 # CONFIG_FILE
7952 case $INSTALL in
7953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7955 esac
7956 _ACEOF
7958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7959 # If the template does not know about datarootdir, expand it.
7960 # FIXME: This hack should be removed a few years after 2.60.
7961 ac_datarootdir_hack=; ac_datarootdir_seen=
7962 ac_sed_dataroot='
7963 /datarootdir/ {
7967 /@datadir@/p
7968 /@docdir@/p
7969 /@infodir@/p
7970 /@localedir@/p
7971 /@mandir@/p'
7972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7973 *datarootdir*) ac_datarootdir_seen=yes;;
7974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7977 _ACEOF
7978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7979 ac_datarootdir_hack='
7980 s&@datadir@&$datadir&g
7981 s&@docdir@&$docdir&g
7982 s&@infodir@&$infodir&g
7983 s&@localedir@&$localedir&g
7984 s&@mandir@&$mandir&g
7985 s&\\\${datarootdir}&$datarootdir&g' ;;
7986 esac
7987 _ACEOF
7989 # Neutralize VPATH when `$srcdir' = `.'.
7990 # Shell code in configure.ac might set extrasub.
7991 # FIXME: do we really want to maintain this feature?
7992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7993 ac_sed_extra="$ac_vpsub
7994 $extrasub
7995 _ACEOF
7996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7999 s|@configure_input@|$ac_sed_conf_input|;t t
8000 s&@top_builddir@&$ac_top_builddir_sub&;t t
8001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8002 s&@srcdir@&$ac_srcdir&;t t
8003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8004 s&@top_srcdir@&$ac_top_srcdir&;t t
8005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8006 s&@builddir@&$ac_builddir&;t t
8007 s&@abs_builddir@&$ac_abs_builddir&;t t
8008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8009 s&@INSTALL@&$ac_INSTALL&;t t
8010 $ac_datarootdir_hack
8012 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8013 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8015 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8016 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8018 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8020 which seems to be undefined. Please make sure it is defined" >&5
8021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8022 which seems to be undefined. Please make sure it is defined" >&2;}
8024 rm -f "$ac_tmp/stdin"
8025 case $ac_file in
8026 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8027 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8028 esac \
8029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8033 # CONFIG_HEADER
8035 if test x"$ac_file" != x-; then
8037 $as_echo "/* $configure_input */" \
8038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8039 } >"$ac_tmp/config.h" \
8040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8041 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8044 else
8045 rm -f "$ac_file"
8046 mv "$ac_tmp/config.h" "$ac_file" \
8047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8049 else
8050 $as_echo "/* $configure_input */" \
8051 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8052 || as_fn_error $? "could not create -" "$LINENO" 5
8056 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8057 $as_echo "$as_me: executing $ac_file commands" >&6;}
8059 esac
8062 case $ac_file$ac_mode in
8063 "default":C)
8064 case $CONFIG_FILES in *config.make*)
8065 echo "$config_vars" >> config.make;;
8066 esac
8067 test -d bits || mkdir bits ;;
8069 esac
8070 done # for ac_tag
8073 as_fn_exit 0
8074 _ACEOF
8075 ac_clean_files=$ac_clean_files_save
8077 test $ac_write_fail = 0 ||
8078 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8081 # configure is writing to config.log, and then calls config.status.
8082 # config.status does its own redirection, appending to config.log.
8083 # Unfortunately, on DOS this fails, as config.log is still kept open
8084 # by configure, so config.status won't be able to write to it; its
8085 # output is simply discarded. So we exec the FD to /dev/null,
8086 # effectively closing config.log, so it can be properly (re)opened and
8087 # appended to by config.status. When coming back to configure, we
8088 # need to make the FD available again.
8089 if test "$no_create" != yes; then
8090 ac_cs_success=:
8091 ac_config_status_args=
8092 test "$silent" = yes &&
8093 ac_config_status_args="$ac_config_status_args --quiet"
8094 exec 5>/dev/null
8095 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8096 exec 5>>config.log
8097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8098 # would make configure fail if this is the last instruction.
8099 $ac_cs_success || as_fn_exit 1
8103 # CONFIG_SUBDIRS section.
8105 if test "$no_recursion" != yes; then
8107 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8108 # so they do not pile up.
8109 ac_sub_configure_args=
8110 ac_prev=
8111 eval "set x $ac_configure_args"
8112 shift
8113 for ac_arg
8115 if test -n "$ac_prev"; then
8116 ac_prev=
8117 continue
8119 case $ac_arg in
8120 -cache-file | --cache-file | --cache-fil | --cache-fi \
8121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8122 ac_prev=cache_file ;;
8123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8125 | --c=*)
8127 --config-cache | -C)
8129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8130 ac_prev=srcdir ;;
8131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8134 ac_prev=prefix ;;
8135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8137 --disable-option-checking)
8140 case $ac_arg in
8141 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8142 esac
8143 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8144 esac
8145 done
8147 # Always prepend --prefix to ensure using the same prefix
8148 # in subdir configurations.
8149 ac_arg="--prefix=$prefix"
8150 case $ac_arg in
8151 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8152 esac
8153 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8155 # Pass --silent
8156 if test "$silent" = yes; then
8157 ac_sub_configure_args="--silent $ac_sub_configure_args"
8160 # Always prepend --disable-option-checking to silence warnings, since
8161 # different subdirs can have different --enable and --with options.
8162 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8164 ac_popdir=`pwd`
8165 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8167 # Do not complain, so a configure script can configure whichever
8168 # parts of a large source tree are present.
8169 test -d "$srcdir/$ac_dir" || continue
8171 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8173 $as_echo "$ac_msg" >&6
8174 as_dir="$ac_dir"; as_fn_mkdir_p
8175 ac_builddir=.
8177 case "$ac_dir" in
8178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8181 # A ".." for each directory in $ac_dir_suffix.
8182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8183 case $ac_top_builddir_sub in
8184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8186 esac ;;
8187 esac
8188 ac_abs_top_builddir=$ac_pwd
8189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8190 # for backward compatibility:
8191 ac_top_builddir=$ac_top_build_prefix
8193 case $srcdir in
8194 .) # We are building in place.
8195 ac_srcdir=.
8196 ac_top_srcdir=$ac_top_builddir_sub
8197 ac_abs_top_srcdir=$ac_pwd ;;
8198 [\\/]* | ?:[\\/]* ) # Absolute name.
8199 ac_srcdir=$srcdir$ac_dir_suffix;
8200 ac_top_srcdir=$srcdir
8201 ac_abs_top_srcdir=$srcdir ;;
8202 *) # Relative name.
8203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8204 ac_top_srcdir=$ac_top_build_prefix$srcdir
8205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8206 esac
8207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8210 cd "$ac_dir"
8212 # Check for guested configure; otherwise get Cygnus style configure.
8213 if test -f "$ac_srcdir/configure.gnu"; then
8214 ac_sub_configure=$ac_srcdir/configure.gnu
8215 elif test -f "$ac_srcdir/configure"; then
8216 ac_sub_configure=$ac_srcdir/configure
8217 elif test -f "$ac_srcdir/configure.in"; then
8218 # This should be Cygnus configure.
8219 ac_sub_configure=$ac_aux_dir/configure
8220 else
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8222 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8223 ac_sub_configure=
8226 # The recursion is here.
8227 if test -n "$ac_sub_configure"; then
8228 # Make the cache file name correct relative to the subdirectory.
8229 case $cache_file in
8230 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8231 *) # Relative name.
8232 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8233 esac
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8236 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8237 # The eval makes quoting arguments work.
8238 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8239 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8240 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8243 cd "$ac_popdir"
8244 done
8246 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8248 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}